Archive for the ‘programming’ Category

managing source code using git

January 1, 2009

git sound strange to me. But, as i learn more, it is a very good piece of software for any programmer to manage their code.

#apt-get install git-core

starting with git with just 10 commands
Manage source code using git
Git user manual

free installer for windows

November 5, 2008

Inno setup from jrsoftware.org is a free installer for window program. Another one is NSIS, and open source system to create window installer.

Wix Installer is another option. Just found out about Wix recently and it seem a very good option.

Wix Project page
Wix Tutorial page
Innosetup homepage
NullSoft scriptable install system

forex exchange rate

October 30, 2008

one of my client asking me to write a software for his money changer company. The current exchange rates can
be downloaded from

http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml
http://www.bnm.gov.my/statistics/exchangerates.php

LibXML2 tutorial

October 30, 2008

libxml2 one of the most important c library programmer must know.

LibXML2 official tutorial

glibcurl

October 30, 2008

very interesting curl library binding using glib. It make life easier to use http in gtk program

more info
Official libcurl website

Flickcurl c library for flickr API

October 29, 2008

Globalization support for software application

October 27, 2008

ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications

ICU projects

convert video to flv

October 19, 2008

ffmpg and memcoder


hardy2@hardy2-laptop:~$ cat .bin/video-flv_png
#!/bin/bash
filename="$@"
filename=${filename%.*}
ffmpeg -sameq -i "$@" -s 640x480 -ar 44100 -r 25 $filename.flv -pass 2
ffmpeg -itsoffset -0 -i "$@" -vcodec png -vframes 1 -an -f rawvideo
-s 640x480 $filename.1.png
ffmpeg -itsoffset -0.5 -i "$@" -vcodec png -vframes 1 -an -f
rawvideo -s 640x480 $filename.2.png
ffmpeg -itsoffset -1 -i "$@" -vcodec png -vframes 1 -an -f rawvideo
-s 640x480 $filename.3.png

by dotanchoen.com

Vagrind

October 16, 2008

a memory error detector, a thread error detector, a cache and branch-prediction profiler, a call-graph generating cache profiler, and a heap profiler, a data race detector, and an instant memory leak detector

valgrind project homepage

magical square root

October 10, 2008


/*
================
SquareRootFloat
================
*/
float SquareRootFloat(float number) {
long i;
float x, y;
const float f = 1.5F;

x = number * 0.5F;
y = number;
i = * ( long * ) &y;
i = 0x5f3759df - ( i >> 1 );
y = * ( float * ) &i;
y = y * ( f - ( x * y * y ) );
y = y * ( f - ( x * y * y ) );
return number * y;
}

Original article from code maestro