I used to work on a Java application that ran 24/7 and logged to a file on the system. The log file was rotated every week and it usually stood around 4GB.
When the shit hit the fan, I checked the log and tried to reverse-engineer how things got so bad. This is similar to what [...]
Archive for June, 2009
Log slicing with grep and sed
Posted in development on June 28, 2009 | 1 Comment »
JSLint with SpiderMonkey
Posted in development on June 21, 2009 | Leave a Comment »
I’ve talked about SpiderMonkey before. Being able to instantly evaluate JavaScript code is great but you can use FireBug for that. I argued that the main reason to use SpiderMonkey is to script the command-line. Integrating with JSLint is an example of using your tools intelligently.
JSLint
JSLint is a tool that “looks for problems in JavaScript [...]
Netcat tricks
Posted in development on June 14, 2009 | 5 Comments »
Web development means working at a very high level of abstraction. For the magic to work, a multitude of technologies must also work: networks, sockets, HTTP. Like all leaky abstractions, however, we can sidestep a lot of the complexity until things stop working.
Netcat does exactly what its name says: it cats stuff over a network. [...]
SpiderMonkey Introduction
Posted in development on June 7, 2009 | 2 Comments »
Lately, I’ve been working on JavaScript stuff at work. When it comes to JavaScript debugging, Firebug can take you a long way. Firebug is not, however, a very scriptable environment.
SpideMonkey is “Gecko’s JavaScript engine written in C”. For our purposes, SpiderMonkey is a command-line tool to execute JavaScript.
You can build it from source or look [...]