Category Archives: Computer

Php-fpm error after reinstall PHP

Error: lamnk@lamnk:~% sudo php-fpm start Starting php_fpm Error in argument 1, char 1: no argument for option – Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f ] php-cgi [args...] -a Run interactively -C Do not chdir to the script’s directory -c | Look for php.ini file in this directory -n No php.ini file will be [...]

Reset TCP/IP networking stack in Windows 7 and Vista

Sometimes your DHCP service is not able to pull an IP address, the reason could be that the network stack on Windows goes banana. To fix the problem, open command prompt with administrator privilege (click on Start → type in “cmd” → right click on the command prompt and choose “Run as Administrator”) and type [...]

Compile rtorrent on CentOS 64bit

Update 10.03.2011, 2 years later on a new Macbook: brew install rtorrent on Mac OS X (Snow Leopard 10.6.6) also falls for this error. The habit of writing work logs saves me a lot of time again I always fall for this error when compile rtorrent, so … : Error: checking for STUFF… configure: error: [...]

Alternative PHP Cache – APC – impact

Picture worths thousand words … I have never used a PHP accelerator before. Now it is a must to install APC for every new server (if you have enough memory to throw around).

XML-Mapping gem has permission problem

You may have this error when require ‘xml/mapping’ in your ruby script: /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require’: no such file to load — xml/mapping (LoadError) Solution: go to the gem directory of XML-Mapping (mine is /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/) and chmod all files in this directory to 644. Who is to point finger at here ? Rubygem or XML-Mapping authors ?

Screen: cannot find terminfo entry about rxvt-unicode

This error eccors if you use screen et cetera and don’t have a terminfo file for urxvt in /usr/share/terminfo/r/, especially if you are ssh’ing into another box. You just need to create a terminfo file named rxvt-unicode in this directory. More info about terminfo and how to compile it from a source file Update (09. [...]

Why i do not want to pay the Apple fashion premium

Notebookreview has a new review for Macbook Pro latest model (late 2008). Here is the spec: Mac OS X v10.5.5 Leopard and Windows XP SP3 (Boot Camp) Intel Core 2 Duo P8600 2.4GHz (3MB L2 cache, 1066MHz frontside bus) 2GB 1066MHz DDR3 SDRAM 250GB 5400rpm Serial ATA hard disk drive 15.4″ glossy widescreen LED backlit [...]

Cisco VPN Client freezes system with dual core CPU

It’s annoying as hell ! Not only we need to patch to use Cisco client on 64 bit systems, recently i find out Cisco don’t support SMP (multi core) in its VPN client. It means after you load the cisco module, there’s a big chance you will run into a kernel panic: oops, the whole [...]

2.6.26+ Kernel, fglrx, compiz fusion and the annoying small pauses when using those 3

Man, these freezes really bug me off … After setting up my laptop i realized every time i turn compiz on, the system would hang for 1-2 second then continue working. The time interval between two freezes is random. This problem happened with both closed source or open source drivers (for an ATI Mobility x2300 [...]

WordPress Blank Screen of Death

I’ve just encountered this problem when moving to a new host: the database was ok, php was working, htaccess ok, wp-config ok but my website always showed me a numb blank face. The problem drove me crazy since every other WordPress-powered sites on the same host worked. A fresh version of WordPress with the old [...]