Category Archives: Gossip
disable gnome “unable to mount…” dialog

gsettings set org.gnome.desktop.media-handling automount false …and enable it again: gsettings set org.gnome.desktop.media-handling automount true
why i receive zero in my socket

I have two programs, one written in c++, the other is in java. C++ keep sending bytes to java, overtime write out 400KB. Java keep receiving the data using the readBytes function, this function returns an integer which is the number of byte it actually read for the function call. For every send (400kb) in […]
(solved) install .net 3.5 to azure windows 2012

Install the below fix will resolve this issue http://support2.microsoft.com/kb/3005628
[solved] usb wireless mouse freeze periodically in ubuntu 12.04 lts

usb wireless mouse freeze periodically in ubuntu 12.04 lts, edit /boot/grub/grub.cfg, add a boot option irqpoll will fix it
We should mix 4K and 4M Page

I was fixing the PSE and PAE page table display for GKD, I found out Linux using 4M page to map large address space and it uses 4K page to map broken space. So advance OS should mix use of 4K and 4M page.   Now GKD supports PSE=1 (4M page)
I think i am under dns attack

I think i am under dns attack, in my /var/log/message i keep seeing these. Someone is using over 2000 ip to lookup my dns server.
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!!!)  
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 […]
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
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’
filter port in httpd.conf

 
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”
When ESXi expire, you will see this dialog

When ESXi expire, you will see this dialog, so you know what features need money
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.
A very professional ppt that talk about system performance tuning

A very professional ppt that talk about system performance tuning download : scalelinuxperformance-130224171331-phpapp01
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
PSI probe for tomcat can’t generate chart

Add this “CATALINA_OPTS=-Djava.awt.headless=true” to catalina.sh
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 […]
my .vimrc

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

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