Hot Koehls

The more you know, the more you don’t know

03 Jun 2013

How to say "GIF"

Steve Wilhite, inventor of the GIF image file format, accepted a Webby Lifetime Achievement Award this past week. His acceptance "speech" is understated epic-ness.
20 Jun 2012

Display line numbers in WebSVN file detail view

WebSVN is an open source subversion repository browser written in PHP, offering a compelling alternative to the more obtuse ViewVC and the commercial Atlassian Fisheye. By default, WebSVN does not display line numbers when looking at the contents of a single file (i.e. URL’s containing filedetails.php). Fortunately, this is easily corrected if you enable Geshi syntax highlighting. It’s enabled by default, but double-check the contents of include/config.php, making sure that the line $config->useGeshi(); is present and not commented out.
07 Mar 2012

It's dangerous to go alone

Print and hang. Your goblin-slaying co-workers will thank you.
24 Feb 2012

Create Self-Signed Wildcard SSL Certificate

Here’s the command list to quickly create a self-signed SSL certificate from the Linux command line. You can copy/paste each line to the shell to generate the key. It assumes you will place each set of SSL files under a directory assigned per domain; at the end you will have a directory that contains the newly created .host, .key, .pem and .info files. mkdir /etc/ssl/subdomain.domain.com && cd /etc/ssl/subdomain.domain.com openssl genrsa 2048 > host.
16 Jan 2012

What comes after the yottabyte?

I was reviewing the data storage requirements for a project recently which had me talking in terabytes, and thinking long-term in petabytes. For those of you who don’t know, tera- and peta- are the binary prefixes for measuring units of digital information that come after giga- (as in “gigabyte”). The list of prefixes, which most people started using with the term “kilobyte,” are collectively called the SI Prefixes. SI prefixes are defined under the International System of Units (“SI” for short), which is maintained by the International Bureau of Weights and Measures.
13 Dec 2011

Write code like they do in Hollywood

Want to look like a badass hacker in front of your friends?
21 Nov 2011

Brian Rolle machine gun celebration

I’m not much of a sports guy, but this sack celebration by Eagles’ Linebacker Brian Rolle in last night’s game against the Giants has to be one of the best defensive celebrations I’ve ever seen. Equal parts hilarious and badass! (Apologies for the gif format, the NFL gestapo makes it hard to find real video clips.)
27 Oct 2011

Fix Wordpress "Fatal error: Allowed memory size" messages

You may (or may not) have noticed this site was down for the past few days, displaying a blank page no matter what URL was entered. After recalling that I had turned off PHP error onscreen outputting, I was presented with this lovely message: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate XX bytes) in /some/file on line XX This is a general PHP error, but the exact amount (33554432 bytes) occurs very frequently on Wordpress sites.
09 Sep 2011

Recover hijacked default keyword search engine in Firefox

Earlier today I installed what I thought was an update to the Xvid codec in order to watch a video. I should have been more careful with the source, as their installer proceeded to modify my Firefox installation, adding some junk toolbar called “Start Now” and changing my default search engine to Bing. (Sidebar: they can plead ignorance all they want, I’m certain the MS overlords are using every back-alley approach they can find to break the Google stranglehold.
04 May 2011

Using hashmarks for URL anchors in Apache rewrites

Today I had to make an Apache rewrite that redirected a custom URL not only to a different page, but also to a specific anchor link on the destination page. In other words, /foobar had to actually load /some/other/url#foobar. However, by default Apache rewrites will escape the hash (#) symbol, converting to its hexcode equivalent %23. So this rewrite… RewriteRule ^/foobar/?$ /some/other/url#foobar/ [R=301,L] will produce this URL… http://example.com/some/other/url%23foobar In order to make this rewrite work, we must prevent Apache from escaping the hash mark by using the noescape flag.