The Linux Page

Pages with category Development

  • Strange thing! I could not find the list of HylaFAX status codes on the net (remember that HylaFAX is used to send facsimile.) They are listed in the faxd/STATUS.txt file for convenience, but I think they ought to be findable by Google so here they are.

    Note that each time HylaFAX sends an error, the message is included. So I guess most people don't really care that much. But it can be useful to know what's what... (when you're a programmer trying to get something done for your company...)

    All the codes are 3 digits, 000 meaning that everything worked just fine (best code ever!) The codes are very similar to the FTP codes and other Internet protocol errors (heard of 404?)

    [toc hidden:1]

  • The following is a list of points one wants to follow in order to create a log in form and the necessary code in the backend.

    Generate a secure Log In form (session id)

    Each time you create a Log In form (or any form if that matters,) you should include a hidden session identifier in it. This will help you prevent users from posting to your server without first loading the form. This alone already prevents a large number of robots from flooding your server with totally useless POST commands1

    • 1. If you know why they do that, let me know because there is really no reason to send totally ...

  • Today I discovered that I couldn't include the QDebug header file at the time I need it.

    When I write in C/C++ I like to add my test libraries at the point where I'm writing the debug function I'm working on so that way I can delete it all at once.

    So the skeleton of a file would look something like this:

    Comment (copyright/purpose of file)

    #include of all headers necessary


    #include of debug headers

    debug code

    However, today I had problems compiling and/or linking doing so. The qDebug() << ... expressions did not want to work.

    Moving the #include of debug headers to

  • Lists are most of the time used to create menus. These menus can easily be shown vertically on one side or another of your website.

    Now, most of the time, you will want to have one or two menus showing horizontally (like the top menu on this site, although that one is very specific to the Cute menu module.)

    If you are reading this, you probably already know how to create such menus. The HTML code looks like this:

      <li>Item 1</li>
      <li>Item 2</li>
      <li>Item 3</li>

    Note that sub-menu items are possible too, ...

  • Today, I was trying to run psql from a program when I got this error:

      Insecure $ENV{PATH} while running setuid at ...

    At first, I thought that psql would be testing something about the user, but in fact, psql is a perl script that runs in secure mode. In other words, this applies to any tool written in perl.

    The perl interpreter makes sure that the current user identifier is the same as the effective user identifier. When there is a mismatch, the interpreter breaks with that error.

  • This page is an extension to the InsertNode module available on Drupal.

    I include here a set of files that one may be interested in to enhance the experience with that module.

    If you have another file, let me know, and I might very well include it here (After reviewing the code!)

    Thank you.


    This file adds two prompts to help enter your [node: ... ] tag. This is based on Zewa's work.

  • I don't personally program in Java, but since I use Cassandra, Java is a requirement on my system.

    The OpenJdk works, but it is presented as having problems when running Cassandra. Having run in a problem (see on Stack Overflow,) I thought I would finally give a chance to Oracle and install their version to see whether that was the culprit.

    I was really thinking that the OpenJdk was working fine because I have two other systems working just fine, but those two ...

  • Now a day I like to install Solaris to check that my code compiles and generally runs under that OS.

    I think that's a good way to prove that the code is multi-OS ready even if it is only for Unices.

    OpenSolaris is free and can be downloaded from Oracle. The last URL I use was:

    The system, by default, comes with a directory named /usr/sfw which includes a really old version of gcc. It is possible, though, to move forward with a newer version of the compiler by installing a package. Under Solaris 11.2, this ...

  • It happens all the time. You create two or three option groups and start adding radio buttons.

    Then you write some VBA code attached to each button and/or their option group.

    And at some point in the development you notice that one was put in the wrong option group.

    Just deleting the option and creating a new one is not a good option because then you have to make totally sure you have the right setup and that can take some time to review.

    Instead, you can move a radio button from one option group to another by following these steps:

  • As I create website, I often deal with JavaScript code. At times, a variable doesn't make it for different reasons, for instance a part is missing and thus the variable generation doesn't happen. If then the script uses that undefined variable, then it generates an error. In some cases, it may not matter too much. However, when the variable that doesn't exist is hit, the JavaScript interpreter generates an exception and stops the execution of the script altogether (unless you capture the exceptions... Do you do that?!)

    The solution is to test the variable and since I always have to search how

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.