Syndicate content

Pages with category Development

  • 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

    code

    #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:

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

    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.


    fckeditor-6.x-2.x-plugin.tar.gz

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


    fckeditor-6.x-1.x-plugin.zip

  • 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 http://stackoverflow.com/questions/11182637/data-in-cassandra-not... 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:

    http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html

    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

  • The other day, I wrote a module for Drupal. Up to here, no problem. What I wrote required a small amount of Javascript to make a dropdown menu feature work. That worked just fine under Mozilla and FireFox, and even Safari & Konqueror.

    When I tried with Internet Explorer, nope. Not working at all.

    The function I was using goes like this:

Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

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