Category Archives: coding

[Java] Quarantining Request Parameters

This is a follow-up on an earlier post in which I described a method for modifying HTTP request parameters on the fly in a servlet/web application. I mentioned that the technique could be used to provide a filter that automatically … Continue reading

Posted in coding, java, servlet | Tagged , , | Leave a comment

[Java] URL Rewriting on Tomcat (or any other servlet container)

Here is a very nice little utility I found recently on an unfortunately very difficult to navigate website. In case it’s not immediately apparent from that site what I am referring to, I’m talking about the ‘UrlRewriteFilter‘ utility featured near … Continue reading

Posted in coding, configuration, java, servlet, software | Tagged , , | 3 Comments

[Java] Override HTTP Request Parameters

Often in a Java web-application I come across cases where it would be useful to directly override or modify one or more HTTP request parameters. To be clear, by “request parameter” I am referring to the value that is returned … Continue reading

Posted in coding, java | Tagged , , | 2 Comments

[Objective-C + Cocoa] Runtime Performance Profiling

The iPhone SDK and XCode provide some very useful tools for application profiling, particularly with respect to tracking memory consumption and pinpointing memory leaks and other similar issues, but one thing which I have found lacking in the default toolset … Continue reading

Posted in coding, objective-c | Tagged , , | 1 Comment

[Objective-C + Cocoa] Screen Capture, Multiplexing, and More

It’s been a bit quiet on the coding-front lately, so I thought I’d share a small handful of various utilities that I’ve developed over the past few weeks. None of them are particularly revolutionary, but they can certainly prove useful … Continue reading

Posted in coding, objective-c | Tagged , , , | 16 Comments

Introducing Webcomix

I wanted to take a brief moment to invite anyone who stumbles across this post to beta-test my latest personal project; Webcomix. Webcomix is a simple web-comic aggregation service that allows you to read a number of different comics on … Continue reading

Posted in banter, javascript, software | Tagged , , | Leave a comment

[JavaScript + CSS] Fun with Google Maps

Here are a couple of quick Google Maps hacks that I came up with quite awhile ago; several years ago, in fact. While not hugely useful or profound, they do expose some fairly large holes in the Google Maps API. … Continue reading

Posted in coding, javascript | Tagged , , | 2 Comments

[Cocoa + iPhone] Avoiding ‘_handleMemoryWarning:’ Crashes

Spend enough time developing iPhone applications (particularly if you go to the trouble of collecting crash logs from your apps), and eventually you are bound to come across something like the following: This error occurs most frequently when suspending an … Continue reading

Posted in coding, objective-c | Tagged , , | 1 Comment

[JavaScript] setTimeout() and Closures

If you’ve done any amount of non-trivial JavaScript coding then you have probably come across the ‘setTimeout()‘ function before. In case you haven’t, this function takes a JavaScript expression and evaluates/executes it after a set delay (specified in milliseconds). For … Continue reading

Posted in coding, javascript | Tagged , | Leave a comment

[JavaScript] parseInt() Quirks

Here’s a subtle little feature of JavaScript’s ‘parseInt()‘ function that I recently stumbled across. The radix used in the parse will default to 8 (octal) if the string you are parsing includes a leading zero. For instance: …will return 7, … Continue reading

Posted in coding, javascript | Tagged , | 3 Comments