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...
October 2011
1 post
July 2011
2 posts
June 2011
1 post
May 2011
2 posts
April 2011
2 posts
March 2011
7 posts
February 2011
0 posts
January 2011
2 posts
December 2010
6 posts
November 2010
3 posts
October 2010
4 posts
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...
September 2010
1 post
August 2010
9 posts
July 2010
1 post
June 2010
4 posts
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...
March 2010
4 posts