Tweeter buttonFacebook buttonLinkedin button

Category: Programming

LightBlue

LightBlue is a cross-platform Bluetooth API for Python which provides simple access to Bluetooth operations. It is available for Mac OS X, GNU/Linux and Nokia’s Python for Series 60 platform for mobile phones.
LightBlue provides simple access to:
* Device and service discovery (with and without end-user GUIs)
* Standard [...]

Thursday March 4th, 2010 in Programming | No Comments »

Fork alternative in PHP

This is an alternative of fork in PHP with exec() function:
exec(“/bin/ping 192.168.0.1 -c 12 2>/dev/null >&- /dev/null &”);
Sources:
http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/
http://immike.net/blog/2007/04/08/fork-php-and-speed-up-your-scripts/

Monday December 7th, 2009 in PHP, Programming | No Comments »

BASH I/O stdout, stdin, and stderr

Some times we don’t want that command print out messages, and we need to clean all out messages (error or standard out) that it generates. For to solve this, we are going to use the I/O facility provided by BASH.
BASH provide 3 file descriptors, and they are:
0 – stdin – Used for get data.
1 – [...]

Tuesday April 28th, 2009 in BASH, Programming | No Comments »