Archive for the 'work' Category

Generally, you want to avoid sharing same account for web and system, because if the web account is compromised, the door to the system will be wide open. Not only that, basic authentication by Apache sends password in clear text, any packet sniffer can easily decipher the login credentials.
However, there are cases where authenticating against [...]


Over the weekend I was busy re-assigning the role of one of the desktops into a SAN server. This machine runs on AMD Athlon 64 1.8Ghz and Gigabyte K8-NF9 with 2GB DDR and 80GB IDE disk. No special casing nor rack system were used, just the good old desktop tower casing and some 400watts power [...]


These 3 should be a good starting point:
http://repast.sourceforge.net/
http://gillesdaniel.com/natlab/
http://ccl.northwestern.edu/netlogo/


What the the heck are those. Well, that’s what I need to find out. You see, there will be a couple of new staff that will be coming and supposedly actively using those 2. So there has to be someone who go out there and explore as much as possible, and come back to teach [...]


I find this particular page is very helpful: http://wiki.freaks-unidos.net/Apache2%20SSL%20and%20Subversion%20in%20Debian
Basically you need to:

Install Apache and openSSL if you have not done so.
Create RSA key and secure it
Create or copy a new site configuration file and enable it
Enable SSL module
Install subversion, subversion-tools and libapache2-svn
Create the new repo and change owner to www-data or just change owner if [...]


NAS is a great device to be hacked. Unlike hacking a router, you’ll eventually ended up having storage issues. With NAS, you can increase the system partition size easily, by growing the size of that partition.
LSPro is a pretty common and easy to hack. Everything you need to know about hacking this baby is written [...]


EFS Scripting

30Jan08

ESignal’s EFS is pretty neat. The IDE allows you to capture/stream market data, and by using their API you can write scripts to process the data and analyze it with, again, their API or your own, which you wrote in EFS.
EFS has the same syntax as Javascript, the same javascript that powered most of browser [...]


bash scripting

27Nov07

Iterate files inside folder:
for fn in “$SOURCE”/*csv
do
#operation
echo “$fn”
done
The quotes are necessary to handle path with spaces.
Use this command to erase unwanted lines:
sed ‘//d’ < input.foo > output.bar
This is to print a certain column from a stream of input:
awk ‘{print $x}’ where x is the desired column number.
To list just the file name and size of [...]


RSPython

31Oct07

I’ve decided to revive my blog due to this beast:
RSPython – Python interface to the R system and vice-versa.
I guess it would be great to have the best of both worlds, but the documentation (or lack of it) really puts me off. Nonetheless, I still need to play with this beast if I were to [...]