Category Archives: Programming

programming

Python 3.2 and Django 1.4 – installation.

Although most of us prefer the python version 2.6, today I tried to install the latest version of Django and Python 2.3.2. Make a new folder, named test-dj.

On the official site, I got the two archives:

I will start with the installation of python. We unzip the archive:

We execute the… Read More »

Writing a basic game with C++ and OpenGL libs – part 001.

This is a first part tutorial about Linux game using C++ and OpenGL libs. Writing a C++ game can be difficult. You will need to focus on program structure and then to know how to create the necessary classes. Let’s see the files I used:

The main.cpp file is the main program. This file… Read More »

Simple bash script to create folders, files and images .

How to create a series of directories using a standard format.

Let’s see the result :

Delete all this folder is easy, just use this command:

How to create a series of text files using a standard format.

Let’s see the result :

How to create a series of random… Read More »

Using size-optimization with gcc .

We use a simple hello program. Type the following program into your favorite editor.

We don’t want to debug our intro. We compile it using size-optimization and no frame-pointers.

Let’s see how big it executable.

We have about 9043 bytes. We’ll strip the executable and remove useless information. The strip command discard… Read More »

Replace words in the fields of table using SQL.

If you trying to apply a global text string with a replacement, then use this:

The your_sql_table is the name of the table. The field_from_your_sql_table is the field with records where will be found and replaced words. The wrong_word is the word search and replace by good_word

Python and OpenOffice – Start OpenOffice.

Simple python script to start the OpenOffice software. This script starts OpenOffice software. The script uses the following modules:

Now we define the arguments for each software OpenOffice:

The next step, we define a function that will start OpenOffice software. See below:

We use a variable to set the mode. In this… Read More »