Monthly Archives: December 2012

Java bit manipulation example extended and explained

/** Extended java bit manipulaiton example   BitDemo.java wikipedia bit shifting for C/C++ is implicitly dependent on the left-handside operand!(arithmatic for signed int) The >> operator in C and C++ is not necessarily an arithmetic shift. Usually it is only an … Continue reading

Posted in Programming | Comments Off on Java bit manipulation example extended and explained

solved: ni-wsn 9791 can not receive user or debug message from strain gauge node

ni-wsn 9791 can not receive user or debug message from strain  gauge node original link on NI forum http://forums.ni.com/t5/Wireless-Sensor-Networks/ni-wsn-9791-can-not-receive-user-or-debug-message-from-strain/td-p/2248540 I am lazy to reupload all figures, refer to the forum post for figures. Here  I give the link to the … Continue reading

Posted in Programming, Sensor | Comments Off on solved: ni-wsn 9791 can not receive user or debug message from strain gauge node

parse netstat command lines output into python named-tuples!

“”” parse netstat command lines output into python named-tuples! update v0.2 and onwards has been uploaded to PyPI; using pip to install it

Posted in Download, Programming | Comments Off on parse netstat command lines output into python named-tuples!

fluent VOF initializaiton patch instead of UDF define_INIT()

Recently, I am doing VOF simulation on Fluent 6.3, But I can not init the mass-fraction in define_INIT() ————————–reply from fluent tech support——————— the Patching option in the GUI panel of Fluent which is more easier and straight forward compared … Continue reading

Posted in Research | Comments Off on fluent VOF initializaiton patch instead of UDF define_INIT()

kids poker game: twenty-four with python solver

“”” Game twenty-four point: practice kids’ mental arithmetic capability Rule: two/four players, who show two/onecards simultanously, try to make 3 arithmetic operations ( only four integer operaton+ – * / ) based on the four cards with number (1-10, J … Continue reading

Posted in Download, Programming | Comments Off on kids poker game: twenty-four with python solver