Category: Uncategorized

2GB ram has higher temperature than 4GB ram

Just buy one more 2nd hand server. Everything are the same including the OS, except one using 8x2GB ram and the other using 4x4GB ram. I found out 4GB ram has lower temperature than 2GB ram. I guess is because in 4GB-ram-block server, it has more space between each ram (because i only used 4…
Read more


2014/06/01 0

My new server

Just bought a 2nd hand HP server (8core + 16GB ram), cost me $2630 HKD. One 1TB 2.5″ hard disk cost me $450. Total $3080. It reboot only take 20 seconds, dell needs 5 mins (CRAZY!!!)   read count : 621


2014/05/20 0

Analyst android ELF dependency-graph by elf-dependency-walker

Someone asked me in email about using elf-dependency-walker to analyst library or executable in linux. I found out android is using ELF format for its libraries or executables too. So the rest is simple. Please download the android emulator, within the directory there is the system image, which contain the file system. You can see in…
Read more


2014/05/13 0

solved : compile error in ffmpeg “error: invalid combination of opcode and operands”‏

I am using ubuntu 12.04 64 bits and trying compile ffmpeg and got this error: libavfilter/x86/vf_pullup.asm:59: error: invalid combination of opcode and operands libavfilter/x86/vf_pullup.asm:138: error: invalid combination of opcode and operands libavfilter/x86/vf_pullup.asm:175: error: invalid combination of opcode and operands To solve this, add “–disable-mmx” to your ./configure read count : 822


2014/05/13 1

sox and ffmpeg (convert hls into live hls) usage

These are the basic usage of SOX This script will convert ffmpeg HLS into “live streaming HLS” The above script has to run with ffmpeg: /root/download/ffmpeg-2.1.4/ffmpeg -f alsa -ac 2 -i hw:0,0 -strict experimental -acodec libmp3lame -map 0 -f segment -segment_list out.m3u8 -segment_format libmp3lame -segment_time 0.5 -segment_list_flags +live ‘a%05d.mp3’ read count : 642


2014/05/08 0

filter port in httpd.conf

  read count : 239


2014/05/03 0

Eclipse CDT too many semantic errors

If you have too many “semantic error” in eclipse CDT, such like this   You can switch it off in project properties but unblock “Syntax and Semantic Errors” read count : 376


2014/04/22 0

When ESXi expire, you will see this dialog

When ESXi expire, you will see this dialog, so you know what features need money read count : 323


2014/03/26 0

Open vswitch overview

Start ovs monitor, look at the tabs’ name, you probably know how many function that OVS offer, this give me a big picture of integrate ova into openstack. read count : 279


2013/12/22 0

How geek work

This is how geek work. http://www.inside.com.tw/2013/05/13/the-secret-of-a-geek-s-productivity read count : 325


2013/12/09 0

my vlc command to stream video to pc/iOS/android

Stream to a mp4 Stream to a FLV  Stream to a HLS read count : 2576


2013/08/22 2

Samsung galaxy s4, charging the battery, using samsung USB cable is much faster

Samsung galaxy s4, charging the battery, using samsung USB cable is much faster than third-party usb cable, here is my test 1) samsung power adapter + samsung usb cable, charge from 10% to 30% takes 20 minutes 2) samsung power adapter + third-party 3M-long usb cable, charge from 10% to 30% takes 1 hour and 15…
Read more


2013/05/13 1

A very professional ppt that talk about system performance tuning

A very professional ppt that talk about system performance tuning download : scalelinuxperformance-130224171331-phpapp01 read count : 562


2013/04/17 0

GDB will remove all breakpoint and set it back repeatly

When you set the breakpoint by input the “b” command, the gdb will not set it immediately, it will wait until the user pressed “c” to cont execute the program. After you pressed “c”, gdb will set all the breakpoints for you. The most funny thing is : when gdb hit a breakpoint and gain…
Read more


2013/03/23 0

How to use QMP, send command remotely to qemu

To use qmp and send command to qemu from another process, start qemu by This will create a file /tmp/test.gmp for interchange the command. Then you can start another terminal and invoke command.txt: !!! remark, must invoke { “execute”: “qmp_capabilities” } before invoke any qmp command read count : 1363


2013/03/20 1

add 1440×900 resolution to vnc

read count : 7109


2013/03/07 0

PSI probe for tomcat can’t generate chart

Add this “CATALINA_OPTS=-Djava.awt.headless=true” to catalina.sh read count : 276


2013/01/31 0

Fix the PermGen error in tomcat

Fix the PermGen error in tomcat, execute this before startup.sh: export JAVA_OPTS=”-XX:PermSize=2048m” read count : 256


2013/01/15 0

Ported ubuntu theme to fedora

Ported ubuntu theme to fedora, tested on FC17, unzip themes.tar.bz2 in /usr/share/themes read count : 261


2013/01/04 0

How to change Fedora’s font rendering to get an Ubuntu-like result

Font rendering is a matter of taste. However, I personally think Ubuntu’s default font rendering is the most eye-pleasing one of the whole Linux eco-system. And if a website’s CSS font stack is looking good on Ubuntu, you can be relatively sure that it also works for Mac or MS Windows as long as the used fonts are available on these…
Read more


2012/12/13 4

qemu-kvm’s library dependencies

chrome’s library dependencies read count : 516


2012/12/11 0

chrome’s library dependencies

chrome’s library dependencies read count : 222


2012/12/11 0

The way i compile elfutils

autoheader aclocal -I m4 autoconf automake -a -c ./configure make read count : 465


2012/12/10 0

my .vimrc

read count : 248


2012/12/10 0

get out of the keying trouble when you start chrome in fedora 17

just add “–password-store=basic” in the option you start chrome. read count : 235


2012/12/09 0

Filter out special character in json

$str=”`!@#$%^&*()_+[]\{}|;’:\”,./?”; $str=str_replace(“\\”,”\\\\”, $str); $str=str_replace(“\””,”\\\””, $str); read count : 256


2012/11/29 0