December 2011
1 post
7 tags
Compiling phpredis on Zend Server CE/OSX Lion
Download phpredis source code from https://github.com/nicolasff/phpredis git clone git://github.com/nicolasff/phpredis.git By default, compiling PHP extension on OSX Lion will generate a 64bit binary. However, Zend Server CE only support PHP 32bit. Therefore, I must compile phpredis in 32bit architecture. phpize ./configure CFLAGS="-arch i386" make Verify if phpredis is 32bit (Mach-O bundle...
Dec 1st
22 notes
October 2011
1 post
Oct 23rd
7,964 notes
July 2011
2 posts
Jul 27th
1 note
Jul 26th
3 notes
June 2011
1 post
Jun 9th
9 notes
May 2011
2 posts
May 25th
1 note
May 6th
April 2011
2 posts
Apr 3rd
30 notes
Apr 3rd
5 notes
March 2011
7 posts
Mar 30th
Mar 30th
Mar 25th
4 notes
Mar 24th
6 notes
Mar 13th
Mar 4th
February 2011
0 posts
Feb 28th
January 2011
2 posts
Jan 21st
Jan 21st
December 2010
6 posts
Dec 28th
Dec 27th
Dec 18th
3 notes
Dec 1st
Dec 1st
Dec 1st
November 2010
3 posts
Nov 23rd
1 note
Nov 23rd
5 notes
Nov 17th
October 2010
4 posts
Oct 18th
Oct 8th
540 notes
Oct 8th
8 tags
Using terminal commands with SOCKS proxy
Most GUI applications can connect through SOCKS proxy, however not many console programs support this type of proxy. Wget, cURL, and aptitude all can use HTTP and FPT proxy, but only cURL supports SOCKS. Here is the tip for making all console apps can work with SOCKS. First, we must install tsocks. On Ubuntu: sudo apt-get install tsocks On Mac OS X: sudo port install tsocks Configure...
Oct 6th
September 2010
1 post
Sep 22nd
13 notes
August 2010
9 posts
Aug 26th
34 notes
Aug 26th
Aug 22nd
Aug 22nd
Aug 19th
Aug 18th
Aug 8th
1 note
Aug 8th
1 note
Aug 8th
July 2010
1 post
Jul 7th
379 notes
June 2010
4 posts
Jun 28th
Jun 20th
Jun 17th
2 notes
Jun 9th
15 notes
May 2010
1 post
1 tag
"Would you kill the big guy" from the BBC
“Here comes a train and it’s out of control Blasting its whistle and belching out coal Up ahead there are five people tied to the track It’s going too fast and there’s no turning back With a flick of a switch and the train will divert To a line where the five people will not get hurt But there’s one person already tied to that line Do you flick the switch or do...
May 7th
March 2010
4 posts
Mar 16th
Mar 16th
Mar 16th