Kernel, Virus and Programming

gcc, binutils and newlib can all be compiled at once.

gcc, binutils and newlib can all be compiled at once. This article http://www.embecosm.com/appnotes/ean9/ean9-howto-newlib-1.0.pdf said gcc, binutils and newlib are from the same source tree. Using the following script can linkup all files into a single directory and compile all of them at once. Just put the directories (binutils-2.24 , gcc-4.9.0 , newlib-2.1.0) and the above script in the…
Read more


2014/05/03 1

Miglayout has bug? JPanel doens’t grow

Miglayout has bug? JPanel doens’t grow, but for JButton or JTextField, they can.


2014/04/26 1

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”


2014/04/22 0

Found a bug in ndisasm

Type this command, ndisasm will hang (I guess it eat up all 4GB address space, disassemble offset starts at 0xfffffff0, which is very high address). My version is “NDISASM version 2.11.02 compiled on Apr 9 2014”, running on mac mavericks. temp file : temp.bin The bug is filed here https://sourceforge.net/p/nasm/bugs/557/


2014/04/21 1

gdb protocol, “g” command

This is the tcpflow dump for the gdb protocol “g” command, it contains all register values. Let’s parse it: After the trace: target.c::debug_print_register gdbarch.c::gdbarch_register_name i386-tdep.c::i386_register_names The register packet can be decode by:


2014/04/19 0

GKD progress 2014/04/14

Still working on the stub. Refactor the whole project and adding one more layer (add debugger stub to support different emulators) to the architecture, all are very hard and time consuming, even the whole project is developed by me. But this experience make be serious to the project-initial-design. Architecture is *important* !!!


2014/04/14 0

dot in mac and linux produce different kind of ortho edge

dot in mac and linux produce different kind of ortho edge. I think the dot version affected it. Here is dot version in linux: Here is dot version in mac:


2014/04/06 1

Titan Language Rhapsody

Titan Language Rhapsody begin tran; var myCloud as Cloud var vm=myCloud.createVM(cpu=1, mem=2GB, public_ip=dhcp); vm.wait(VM.RUNNING); var trigger1 as Trigger; trigger1.addSensor(‘cpu>80%, duration>10s’); trigger1.addSensor(‘memory>80%, duration>10s’); trigger1.addAction(new Action(ACTION.SCALE_UP, 1)); vm.addTrigger(trigger1; commit;


2014/04/06 0

VM log dialog show correct process list for windows VM

VM log dialog show correct process list for windows VM.


2014/03/28 0

When ESXi expire, you will see this dialog

When ESXi expire, you will see this dialog, so you know what features need money


2014/03/26 0

a java example to record from microphone and save it to wav file and playback

This is a very simple java program to record from microphone and save it to wav file and playback


2014/03/23 1

very old concept design for openstack dashboard in 2012

very old concept design for openstack dashboard in 2012


2014/03/04 0

Cinders use LV Name as the volume ID

Cinders use LV Name as the volume ID


2014/02/28 2

Titan dev status 2014/02/24

watching youtube in remote window is smooth. Video recording function need to be enhance, at least add basic searching


2014/02/25 0

a good html 5 video streaming tutorial http://phoboslab.org/log/2013/09/html5-live-video-streaming-via-websockets


2014/02/24 0

Restart server+cinder

When you restart the cinder node, make sure all your VG drives are up before starting tgt and cinder-volumne service. You can type “pvdisplay” command to see if there anything. Otherwise the cinder will still up and show you the storage volume, but you can’t start any vm by “nova boot”.


2014/02/09 0

rename computer name for sharepoint 2010

after rename computer name for sharepoint 2010, need this command:


2014/02/08 0

The titan design should reference to this

I should learn this before design the titan further


2014/02/06 0

dev update


2014/02/04 0

Ribbon bar is better

Ribbon bar is better. Original design put the major buttons on the LHS, but it grabs space than the tree (describe the openstack architecture). Also the original design put all the function buttons on the bottom, it is better to put it on the ribbon bar that on the top. In ribbon bar, major button…
Read more


2014/01/30 1

Availability zone in titan

Availability zone in titan, will work out this in chinese new year holiday.


2014/01/29 1

openstack VM hang up after changed screen solution

openstack VM hang up after changed screen solution, i tried to change the screen resolution from 1280×1024 to 800×600, the screen just size down, but the VM is hang. It is completely hang because i can’t even ping/ssh to that VM. Do you know the reason?


2014/01/21 0

slow ssh connect to host from openstack vm

if you having a slow-login problem when you are trying to connect ssh from the openstack vm to the outside world. This will solve the issue: Edit /etc/nsswitch.conf , change “hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4” to “hosts: files dns”, no need to restart anything, ssh login prompt will come out quickly.


2014/01/18 0

titan agent is working!

titan agent is working! it is written in java, sending back the server status (cpu/mem/etc…) back to titan server in json form.


2014/01/15 0

VM process window, i think this will be good enough

Still working on the VM process window, I want titan user able to see clearly inside VM. In this window, the chart will show the cpu/memory usage of that VM. I will enhance it to: 1. When select a process on the bottom, the chart will show the cpu usage only to that process. This…
Read more


2014/01/13 0

vSphere client chart options

Here is the screens from vsphere client, many things for us to learn how to design charting.


2014/01/10 0

openstack vm can’t access interest (solved)

Here is my home openstack lab, if you follow the openstack official guide to try openstack, your environment will be pretty similar than mine. I met a trouble: my openstack vm can’t access internet. Here is how to solve it: My environment is: 1) I got a broadband line, connected to the gateway server, the gateway…
Read more


2014/01/08 0

Instance chart

You can now select a VM, click the “log” button on the bottom, you can see vm’s cpu/memory chart.


2014/01/08 0

you can start nova in this way

When you failed to start nova-network or nova-compute by command “service nova-compute start”, the log will has nothing. But you can solve this by “service nova-compute start && ps aux|grep nova-compute”, this command will list out the command line to start nova-compute, just paste that into your terminal, now your nova-compute is running directly rather…
Read more


2014/01/07 0

Titan Architecture (2014/01/05 update)

This is the Titan architectural diagram. Titan solution consists of 4 projects, they are: 1. Titan Server – It is the core part of the system, it used to controls all openstack services (nova, neutron, etc…). The role of the titan server is to execute the command from Titan management tool. 2. Titan – It…
Read more


2014/01/05 0

Great article about openstack+linux network

Great article about openstack+linux network http://robhirschfeld.com/2013/10/16/openstack-neutron-using-linux-bridges-technical-explanation/


2014/01/04 0

“nova show” command doesn’t retrieve all the log records from table instance_faults

I am designing the log window (see below) for titan to show the error log for an instance. When the instance is fail to start, i can use “nova show” to get the error message, but the message is only the last record of table instance_faults, so the log message is not complete. Any openstack command…
Read more


2014/01/04 0

Titan Log window

When you try to launch a new VM, and if it is failed. You can click the “Log” button to view the error message, this help you to trace the error.


2014/01/03 0

finally bring up windows 7 in openstack

finally bring up windows 7 in openstack, one weird thing is : I don’t need to install virtio driver to make it works.


2013/12/28 3

Defining the Cloud

A cloud must be built on pooled, virtual infrastructure. This includes not only the CPU and memory resources but also the storage and networking and associated services. The cloud should provide application mobility between clouds, allowing the consumer to easily enter the cloud and exit the cloud with existing workloads. The use of existing consumer tools for…
Read more


2013/12/27 0

Jetty require servlet-api 2.5 to fix “java.lang.NoSuchMethodError

Jetty require servlet-api 2.5 to fix “java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String”, don’t add “org.mortbay.jetty servlet-api”, you need :


2013/12/26 0

My new switch TP-Link

My new switch TP-Link, very cheap, just $628 HKD. Will buy two more computers to setup a better openstack lab.


2013/12/24 0

devstack neutron problem

When you meet the following error when starting devtsack with neutron, add “enable_service q-lbaas” in your localrc. Error: My localrc After the fix, my neutron is running


2013/12/23 2