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.
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.
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.
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.
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.)
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.
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.
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.