Nginx and W3 Total Cache

With the increasing popularity of the lightweight nginx server, the latest developer build of W3 Total Cache, includes support for nginx. As nginx does not have directory specify files (e.g. .htaccess), the settings are intended to be added to one’s nginx.conf file. Before preceding, I simply cannot pass up an opportunity to extol the virtues… Continue reading Nginx and W3 Total Cache

Apache: Not GET Request

My error logs were recently filled with repetions of the the following line: [Date] [warn] [client IP] Not GET request: 2., referer: As it turned out this was caused by the mod_pagespeed module (from Google). Disabling it has stopped the errors, I will be trying out a newer version of the module shortly. Additional info:… Continue reading Apache: Not GET Request

Setting up TinyDNS on Amazon’s Linux

If you need to setup both a DNS Server and DNS Cache, consider http://www.fefe.de/djbdns/#splithorizon – there are some issues with the points below that need to be resolved (specifically the resolv.conf pointing to the dnscache, without pointing the dnscache at the djbdns). DNS nameservers serve the purpose of mapping a domain name to an IP address. Typically,… Continue reading Setting up TinyDNS on Amazon’s Linux

Using the Hosts File to Test Virtual Servers

As it becomes increasingly easy to deploy servers in a cloud, we often find ourselves wanting to test changes to servers on a running instance. Prudence advices against experimenting on a production server, but there are times when it is necessary to test on a fully functioning instance. For instance, if one wishes to switch… Continue reading Using the Hosts File to Test Virtual Servers

Installing vsftpd on Amazon’s Linux AMI

By default, Amazon’s Linux AMI provides only the amzn repository. While this repository does have quite a selection of packages, there are a few commonly used packages that are missing (e.g. php-mcrypt). On the FTP side, the only FTP server included is VS-FTP (vsftpd). While my personal preference has historically been pure-ftpd, this is a… Continue reading Installing vsftpd on Amazon’s Linux AMI

Decoding a Base64 Email Attachment

I had a few files containing email attachments that needed to be converted into usable files. The following code (which has no checks in it), did the trick: <?php function decode_email_attachment(){ $data= file_get_contents($inputfile); file_put_contents($outputfile, base64_decode(str_replace( “\r\n”, “”, $data ))); } ?>

Basic Email Analysis

Despite ever increasing security, it appears that email accounts are breached more often now than ever before. Quite possibly this comes down to the user as opposed to the email service itself. The focus of this article includes distinguishing between spam sent from an unknown account and illegitimate emails sent from a known account; a… Continue reading Basic Email Analysis

Keyboard Annoyances

As with everything, increased computer usage tends to form certain habits. In most cases, there is nothing wrong with this, however, when things change, these habits can be significantly disrupted. Two such irregularities, and their solutions, are outlined below. The International Keyboard Many laptops come with keyboards that natively support multiple languages (e.g. provide accents).… Continue reading Keyboard Annoyances

Fractions

For many people the mere mention of fractions elicits a wince, and while these lovely math constructs played a notable role in our early years of math, they are reasonably simple entities. While most humans revisit fractions over many years and often still fail to grasp the concept, for a computer, the elementary operations with… Continue reading Fractions