C - Character manipulation - Displaying a char

Today I will show you how to transform a decimal number, an hexadecimal number and a binary number into the same character.

And you will see that this transformation is made by the terminal, the shell and Linux (or UNIX ;).

Let's see an example, with 3 files and after with printf():

UNIX & GNU/Linux - User commands - Using grep

Maybe you sometimes asked yourself how to find a part of a code inside all your files.
But how to find this part of code?
We can use the grep user command to display this part of a code.

We can moreover display this code in color.

Let's see an example of the grep user command.

Assembly - GNU/Linux - Hello World!

In this tutorial, we are going to see how to create an executable from an assembly file.

The following example uses a 32-bit version of Ubuntu.
Notice that the version is important when you compiling your assembly file.
It is the same for the linkage operation.

Let's see it in detail.

UNIX & GNU/Linux - User commands - Using fs

To set ACL correctly, you can use the fs user command.

Let's take an example to set the ACL:

UNIX & GNU/Linux - System calls - Using execve()

The execve() system call function is used to execute a binary executable or a script.
The function returns nothing on success and -1 on error.

Assembly - objdump - -p command

To see the header of a binary, in our example "ls", we have to use the -p command of the objdump tool.

Let's try it:

$ objdump -p /bin/ls

Result:

UNIX & GNU/Linux - Emacs - Phases of the Moon

Yes it really exits!
You can see, with Emacs, the phase of the Moon for the next 12 weeks.

Make an ALT + X and write this:

lunar-phases

Result:

PHP 5 - array() - Using is_array()

How to know if a variable is an array() or not?
Easy with the is_array() function.

Let's see an example of the is_array() function:

Zend - Framework 1.11 - Create a new project

1) Dowload the Zend framework To easily create a new project with Zend framework we have to go until the bin/ directory of the framework package. 2) Once downloaded from the official website, go until this directory:

UNIX & GNU/Linux - Emacs - Display number lines

If you want to see number of lines in Emacs, you have to activate it.

Let's start this tiny tutorial:

Open Emacs, click ALT + X and write linum-mode then type RETURN.

Well done, it works!

To deactivate it, just retype this command.

Pages

Subscribe to BadproG.com RSS