YARA is a multi-platform program running on Windows, Linux and Mac OS X. More about Yara python module can see it here. YARA used this keyword with rules under files.

The Yara documentation can be found in this link. The Yara python module uses version 1.7.7 and this will… Continue Reading Yara python module – part 001 .

Google App Engine lets you run web applications on Google’s infrastructure. Login into your Google App Engine. I don’t have one then must activate it from here. Google will ask your Project name and project ID … see the next picture. Go to Codenvy website and make a new project… Continue Reading Using Codenvy with Google App Engine – testing with default python project .

If you know your username (for example admin) then use this:

Also, You may try through the console to see and change the password: Use the shell console and start the Django shell:

Now use this Django script:

If you need to create another superuser.

First, you need to have the PIL python module and import this.

Next will be this function. Basically will make and return one RGBA image data type.

The next step is to set the text, font, and the new image. I use Arggotsc.ttf. You can use any TrueType… Continue Reading Simple way to create png image with an input text.

An easy_install replacement is pip. The pip installs packages and managing Python packages. Let’s try to install packages.

Install the pip package. The recommended way to use the pip tool is within virtualenv since every virtualenv has pip installed in it automatically.

Let’s try again with PyOpenGL and… Continue Reading Using pip for installing and managing Python packages.

About the source code. I will try to embed python in C application. I will use a simple python script. This is a simple example using pygame python module.

Make a new folder and named Python_C using these commands in the shell:

Let’s see the C source… Continue Reading Embedding python in C under Fedora 16.

XSS attacks allow a user to inject client-side scripts into the browsers of other users. Using Django templates protects you against the majority of XSS attacks. To do this you need to protect your templates this code:

If you need to disable auto-escaping for an individual variable, then use… Continue Reading XSS sanitization on django – variables and templates