The Linux Page

Page list for Linux

  • Introduction

    Often, when you build a website, you want columns.

    Common designs include

  • I've got those 3 button mice from SGI as I was working with Indy's and O2's. I also have keyboards. Those are real good quality!

    Yesterday, I tried to right click and somehow, nothing happened. At first I thought maybe it was X going banana, but trying again and restarting did not change anything. I reset my KVM too, just in case. Still nothing.

  • I have noticed that quite a few people were trying to create UDP communication and I thought that proposing my class could help them. This is very basic as it does not define anything such as the size of a packet or any protocol to ensure arrival of the packets. However, it can be useful if you want to send a signal from one process to another, which is exactly how I use this implementation.

    This code is part of the Snap! C++ implementation. It can be found in the corresponding SourceForge.net repository.

    Header file:

    // UDP Client Server -- send/receive UDP packets
    // Copyright (C) 2013 ...
  • Ada variables are complex objects. When developing a compiler, you must definitively take that in account. You have several sides to your variables: one you need to be able to handle dynamic variables since the compiler will have to be capable of doing all the operations on all the constant variables just as if you were executing your program and it has to handle all the tests necessary to ensure integrity.

    So... we need a library that can handle integers, a library to handle floating points, a library to handle arrays, etc.

  • Since I have several computers running Ubuntu, I like to have them up to date, but it always takes a bit of time to download the new packages. I think those should be downloaded only once and then shared between all my computers (I also run VPS which can benefit from this sharing.)

    So, I decided to finally look into it and the simplest was to install apt-cacher-ng on my main server:

    sudo apt-get apt-cacher-ng

    That's it for the main server (from what I've read, at least, although I am thinking that maybe we need to tell apt-get to check that cache first even on the main system?)

    ...

  • Once in a while I want to add my user to a group and then right away make use of that group.

    Unfortunately, in general Unix kind of forces you to re-log in for the new group to be attached to your account.

    However, a command has been added, a while back, to do just that on the fly. Not something you would want to use in a script, but at least, it works for me when doing a few things here and there.

    In my case, I wanted to run QEMU, which I hadn't done in a while, and the system told me that it could not open the KVM, the error: kvm permission denied.

    The problem was that I was not part ...

  • Today I was working on a spreadsheet where I added a time for a calendar type of sheet.

    What I wanted to do is have a column where time increases without having to type each time manually.

    So I needed to add 15 or 30 minutes to the first time.

    Say my first time is 7am, it appears as 07:00:00 AM.

    In the next row (B4), I wanted to do something like:

    =B3+"15 minutes"

    The fact is that LibreOffice saves time and date as a double number where 1.0 represents 1 day.

    So to add just 15 minutes, you need to divide your number by the number of minutes in a day:

    =B3+15/60/24

    Or if ...

  • I just switched my websites from one server to another and noticed that on my main company site (http://www.m2osw.com) I would get a # at the end of the URL. Automatically added somehow. Thinking that could be a bad guy I checked the code and could not really see anything.

    Hitting "Back" once, I noticed that the # would be transformed to #atssh-digg. I don't have anything specific about digg on that page except the AddThis button. That adds Digg among some 150 different systems where you can share my pages.

  • Managing your own Drupal Download Site

    The other day, I was thinking, it would be nice if I could find the way to manage my own download site so people who use my modules that I do not provide directly on https://www.drupal.org would still show as expected (i.e. Green in the update window).

    I found this page about it: https://www.drupal.org/node/210984

    This is done by creating a service in your Drupal environment. You should use the ready made script named:

    project-release-serve-history.php

    which you can find in the D6 version of the Drupal project named Project. Being very ...

  • If you are running a webserver, you should use a webserver firewall. This prevents many attacks from being perpetrated on to your servers without the need to make your own applications more complex than necessary.

    The idea is very simple, if you have a few people who can edit your data from the Internet and those have a static IP address, you can check that the editor pages are only accessible to those IP addresses. Any other access can simply be blocked.

    [toc hidden:1]
Syndicate content

SMS From Me Logo

SMS From Me

To automatically start one on one conversations with your online leads.

     

Terms of Site Index

Find the page/content you are looking for with our index.