mod_pagespeed speeds up your site and reduces page load time. This open-source Apache HTTP server module automatically applies web performance best practices to pages, and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow. mod_pagespeed Home Installation from Packages Docs Google developer blog posting on mod_pagespeed mod_pagespeed Articles
Posts By: nate
Testing antilag…
An Interactive Guide To The Fourier Transform
Yikes. Rather than deciphering it symbol-by-symbol, let’s experience the idea (hear the song then read the sheet music, dig?). Let’s start with a plain-English metaphor: What does the Fourier Transform do? Given a smoothie, it finds the recipe. How? Run the smoothie through filters to extract each ingredient. Why? Recipes are easier to analyze, compare,… Read more »
New motor installed
I got the motor in the car and it is running well. Stoked!
Ubuntu: Unable to install/update packages; Full /boot partition
UPDATE 11/17/15: Another nice command to auto purge old kernels is: sudo apt-get autoremove Also, removing old kernels is easy with sudo dpkg -r linux-image-3.2.0-83-generic ————————— Recently I wanted to install a new package on a Ubuntu server. Typically this is as simple as issuing a sudo apt-get install package-name But this time around, I… Read more »
Repairing a corrupted MySQL database table
Ran into a issue where I wanted to do a mysqldump of a database in order to transfer it to a new server. mysqldump -u user -p shoppingcart > sqloutput.sql This failed saying that three of the tables were corrupted. I ran the mysqlcheck utility to see if it could be repaired: mysqlcheck -u user… Read more »
Statsd
StatsD is a simple NodeJS daemon (and by “simple” I really mean simple — NodeJS makes event-based systems like this ridiculously easy to write) that listens for messages on a UDP port. (See Flickr’s “Counting & Timing” for a previous description and implementation of this idea, and check out the open-sourced code on github to… Read more »
Mozilla WebMaker Tools (Popcorn and XRay)
Popcorn Maker makes it easy to enhance, remix and share web video. Use your web browser to combine video and audio with content from the rest of the web — from text, links and maps to pictures and live feeds. popcorn.webmaker.org The X-Ray Goggles make it easy to see and mess around with the building… Read more »
New motor build… motor assembly.
Got the right rod bearings!Q\ Pistons in the hole! O-ring installed! Shannon Gordon making it happen. Shiny bits! Nice and clean. Head on, timing belt installed. Express delivery thanks again to Shannon.
Linux: Counting the number of lines inside multiple files
Recently I needed to recursively count the number of lines of code in each of the specific file types. In this instance I wanted to count the number of lines of code in my PHP files. The below command worked flawlessly. In addition to breaking down the line count in each directory, it gives a… Read more »
The effects of hurricane Sandy from a network point of view
I took a look at Internet Traffic report while the storm was hitting the upper northeast, and the results weren’t surprising. North American packet loss went up ~5%, while the traffic index went down. Again, not surprising, but cool to see nonetheless.
Enumerating a DNS zone by brute force
Sometimes a situation pops up where I need to retrieve the contents of a DNS zone but do not have access to the DNS servers. This is typically a situation where a client’s IT person is no longer available and before moving the name servers, we need to recreate the DNS zone on our name… Read more »
New motor build… prepping for bottom end assembly part 1
I got my downpipe, dumptube, manifold, and turbo exhaust housing thermal coated. Finished up my wiring harness for the most part. Turbo with the thermal coated exhaust housing. They powder coated my ECU lid for lulz Pulled the wirelocks from my old 81mm pistons in prep for the new ones. Got the motor on the… Read more »
PHP Snippet: Check if page is included by another page or not
Sometimes it is useful to know if a page has been included by another page or not, and then take action based on the result. A quick and handy way to accomplish this is to use a tenary operator to do something like: $included = strtolower(realpath(__FILE__)) != strtolower(realpath($_SERVER[‘SCRIPT_FILENAME’])); Which will return true if it is… Read more »
Linux: Find files greater than n size
Recently I had a issue where I needed to clean up some disk utilization on a linux server. In order to find a list of larger files, I used the following find command from the root directory I want to recurse through: find . -type f -size +50000k -exec ls -lh {} \; | awk… Read more »