Apr
12
2011
vfork() explained: to use or not to use.
The vfork() call is a special implementation of the fork() call. vfork() is available on about all unices systems. This is a preview of vfork() explained: to use or not to use.. Read the full post (541 words, estimated... Read moreMar
25
2011
Network programming: A simple multithreaded ping implementation in C
Here it is the simplePing, it is a simple multithreaded ping implementation coded from scratch. First of all we need some requirements to satisfy: REQ_OS_01 simplePing shall run on Linux Systems. REQ_OS_03 simplePing shall be invoked using... Read more
A tiny printf for embedded systems
Often embedded systems have small amount of RAM and flash, so you could have the need of specifically written standard functions. This is a preview of A tiny printf for embedded systems. Read the full post (1559 words,... Read moreJan
05
2011
Quines in C
Here is a Quine in ANSI C. #include <stdio.h> This is a preview of Quines in C. Read the full post (200 words, estimated 48 secs reading time) Read moreJan
02
2011
Quines: a new Hello World
A quine, in computing, is a program producing its complete source code as its only output without simply opening the source file of the program and printing the contents (such actions are considered cheating). This type of program is offered... Read moreDec
23
2010
C/Ruby/Perl/bash: How to check for root user
Often, during my work, I must check for the user that is launching my applications, specifically some applications like ping/shutdown/../.. need to be executed by root user. I collected four pieces of code in four languages Ruby... Read moreDec
12
2010
The endianness problem and how to test the endianness
<"In computing, endianness is the ordering of individually addressable sub-units (words, bytes, or even bits) within a longer data word stored in external memory. The most typical cases are the ordering of bytes within a 16-, 32-, or 64-bit... Read moreOct
17
2010
How to convert an NSString to Char and vice versa
I have a lot of code written in C, since I'm writing code for the iPhone the need of reusing this old code has arisen. One of the first thing to do is the conversion between NSString and char... Read moreSep
29
2010
Simple tcp client server: the echo client
In this article I'll show you the code for the tcp client for the echo server. This is a preview of Simple tcp client server: the echo client. Read the full post (469 words, estimated 1:53 mins reading time) Read moreSep
24
2010
Simple tcp client server: the echo server
In this article I will show you how to write a simple TCP echo server. The echo server is the simpliest server you can develop, it waits for data from a client and then sends the same data to... Read more
iOS 4.1: Apple has just released its SDK
This morning Apple has released the iOS 4.1 for the iPhone. Good news from this firmware: Some bugs have been solved. HDR is now available for iPhone 4 Game Center is now available. The Ping social network is now integrated... Read moreAug
31
2010
New platforms for RTI DDS 4.5c
The latest version of RTI DDS (4.5c) adds support for the following new platforms: Windows 7 (32/64-bit) and Windows Server 2008 R2 (64-bit) with Visual Studio® 2010 support Mac OS® X on x64 VxWorks® 6.7 Fedora™ 9 on Cell... Read moreAug
03
2010
Compute difference between two dates – source code
Many times I need to compute differences between two dates, I built a library to do this, here it is the source code. This is a preview of Compute difference between two dates – source code. Read the full... Read moreJul
01
2010
New RTI Software Release
Over 40 New Features! RTI Data Distribution Service 4.5 has been released. This release offers more than 40 new capabilities, including: Accelerated systems of systems integration Fast data lookup and access Secure network communication Enhanced support for multicore... Read moreJun
26
2010
How to Display an Alert on the iPhone
On the iPhone, to display an alert message to the user you can use the UIAlertView class. This class is declared in the UIAlertView.h header file. For your convenience you can use the following method to initialize an alert... Read moreMay
28
2010
The Usart Bla bla bla: Using the Standard IO facilities #16
Using the Standard IO facilities of the avr-libc The avr-libc gives some facilities of the standard I/O. Only a limited subset of the standard IO is implemented (refer to the <stdio.h>: Standard IO facilities section of the avr-libc... Read moreMay
18
2010
The Usart Bla bla bla: The command line arguments #15
The getopt function int getopt(int argc, char * const argv, const char *optstring); extern char *optarg; extern int optind, opterr, optopt; The getopt function is used to parse command option. The parameters argc and argv are the argument count... Read moreMay
11
2010
The Usart Bla bla bla: The shell functions #14
The Shell functions The shell contains the following functions: vConsoleLoop vEchoff vEchon iGetChar iPutChar cGetLine This is a preview of The Usart Bla bla bla: The shell functions #14. Read the full post (224 words, estimated 54 secs reading... Read moreMay
07
2010
A simple log manager in C. Part #3
In this article I' show how to handle multiple levels log. At first we need a function that will set the level we want to use, this function will update the valu of a global variable, then we need... Read moreApr
27
2010

