Java Development
Monday, February 28, 2011
Thursday, January 13, 2011
xargs and pipes
Being a linux n00b, I've recently discovered the powers of xargs and |
for example, diffing two files is as easy as
find . -name "foo.txt" | xargs diff
BRILLIANT
http://www.linux.com/archive/feed/45679
for example, diffing two files is as easy as
find . -name "foo.txt" | xargs diff
BRILLIANT
http://www.linux.com/archive/feed/45679
Wednesday, December 15, 2010
Interesting xml parsing technique using jaxb and StAX
Use and analysis of Jax-B (xml to java binding) and StAX, which is a pull based xml parser. This combination makes ease of parsing (jax-b) and memory management (StAX).
However, because there are two different libraries in use, I would argue that complexity is now a wash.
http://www.javarants.com/2006/04/30/simple-and-efficient-xml-parsing-using-jaxb-2-0/
However, because there are two different libraries in use, I would argue that complexity is now a wash.
http://www.javarants.com/2006/04/30/simple-and-efficient-xml-parsing-using-jaxb-2-0/
Tuesday, September 28, 2010
Wednesday, September 8, 2010
Routers
Just found out about tomato firmware for wireless routers. Seems that linksys makes a router specifically to be flashed by third parties. WRT54GL seems to be quite a winner. Tomato will allow wireless bridging and client mode
cable modem <--wired--> wireless router <--wireless--> wireless router <--wired--> Device
cable modem <--wired--> wireless router <--wireless--> wireless router <--wired--> Device
Wednesday, August 18, 2010
Cygwin fun
Two fun things I've learned about cygwin today... The first is about emacs!
I forget the exact reason, but "c-x c-c" won't quit unless you add "set CYGWIN=binmode tty ntsec " to your Cygwin.bat in the cygwin directory.
Secondly files that are created in windows need to be stripped of their line ends. You can do this by running d2u on the file you are trying to use in cygwin.
I forget the exact reason, but "c-x c-c" won't quit unless you add "set CYGWIN=binmode tty ntsec " to your Cygwin.bat in the cygwin directory.
Secondly files that are created in windows need to be stripped of their line ends. You can do this by running d2u on the file you are trying to use in cygwin.
Sunday, August 1, 2010
Args4j vs jcommander
http://java.dzone.com/articles/life-too-short-parse-command?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+javalobby%2Ffrontpage+%28Javalobby+%2F+Java+Zone%29&utm_content=Google+Reader
Found this article on google reader and am just posting here to ponder the difference in args4j amd jcommander
Found this article on google reader and am just posting here to ponder the difference in args4j amd jcommander
Subscribe to:
Comments (Atom)