Rusty Razor Blade
Tech Thoughts, Mostly on LAMP - by Jon Haddad
  • About Me
  • Api Tester
  • iCal Agenda
  • Consulting

Another Attempt At Python

By jon On April 22, 2011 · 4 Comments

I tried Python out a while ago, but stopped trying it to learn it after some major frustrations. Maybe I didn’t dig deep enough into it. I found the documentation hard to read, and the module layout seemed a little random at times. For some reason I found executing an external process and getting [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →

SSH with multiple hops

By jon On April 18, 2011 · 1 Comment

Excellent question on superuser.com with a fantastic answer. If anyone needs to jump through multiple servers via ssh (or any other protocol) take a look at this answer.

ssh -L 9999:localhost:9999 host1 ssh -L 9999:localhost:1234 -N host2

These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →

Redis Wildcard Delete

By jon On April 5, 2011 · 2 Comments

Redis supports a keys command, which takes in a pattern, but you can’t use patterns for deletes. Fortunately awk and xargs makes this easy.

Just throw this on your server (somewhere in the PATH), chmod 755, and you’re good to go.

#!/bin/bash
redis-cli keys $1 | awk ‘{print $1}’ | xargs –interactive redis-cli [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →

Combining iWatch with Reloader

By jon On March 26, 2011 · Leave a Comment

I had written a post about how to set up reloader.erl about a year ago. Reloader.erl is an incredibly useful library included in mochiweb for automatically reloading erlang libraries if they’ve been recompiled.

I had also written a post about iWatch and phpunit to follow source directories and automatically run a [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →

Using iWatch to Automatically Run Unit Tests (Linux)

By jon On February 23, 2011 · Leave a Comment

iWatch is a perl script that uses inotify to monitor files directories. It’s similar to the watch tool, which can do all sorts of stuff if the files or directories it’s watching are modified or affected in pretty much any way at all.

Install iWatch

apt-get install iwatch

I’ve got this 1 liner in a [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →

How to set up a local apt cache for Ubuntu

By jon On February 22, 2011 · Leave a Comment

Setting up a local cache is a smart idea if you’re going to be running a VM server, whether it be KVM, VirtualBox, or any other option really. I assume the same instructions will work with Debian, but I haven’t tried.

First up – install apt-cacher-ng.

apt-get install apt-cacher-ng

Add this to the bottom of [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →

Awesome Chrome Extension to Block Websites from Google Search Results

By jon On February 14, 2011 · Leave a Comment

I wrote a post a few years ago that made the digg and reddit homepage saying Experts Exchange should be removed from Google’s search results because they were using a technique called cloaking – hiding their content behind registration and showing a different version of their pages to the Google crawler.

Google just [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →

Setting up a DHCP Bridge in Ubuntu 10.10 for Virtualization

By jon On January 25, 2011 · Leave a Comment

Setting up a network bridge allows you to give a virtual machine it’s own IP address and make it accessible from the outside. A DHCP bridge is useful in a smaller network where static IPs aren’t assigned – like in a home or small office. You’ll want to do this if you’re setting up [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →

VirtualBox 4 – NAT Port Forwarding GUI

By jon On December 20, 2010 · 8 Comments

Version 4.0 of VirtualBox will have NAT port forwarding available in an easy to use GUI. The more fervent readers of this blog will remember this post which I described how to set this up on the command line.

Open your VirtualBox networking settings, and click the port forwarding button.

Click [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →

Erlang Code Auto Reloader – Auto Run Unit Tests and Hot Load Code after a Build

By jon On December 15, 2010 · Leave a Comment

I wrote this post a few months ago when I was developing a new Erlang application. I eventually ended up using the reloader I mentioned at the end, but never documented it. Now I’m about to start writing a new app, and I’m on a different machine.

First, get the reloader. It [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
Continue Reading →
← Previous Entries Next Entries →
  • Recent Comments

    • Anil on MySQL Triggers Tutorial
    • Ashish on MySQL Triggers Tutorial
    • David on iCal Agenda
    • jon on IP address geolocation SQL database
    • pim on IP address geolocation SQL database
    • jnns on Redis Wildcard Delete
    • K.C. Murphy on iCal Agenda
    • BA on Experts Exchange should be removed from Google search results
    • Andrew on Executing multiple curl requests in parallel with PHP and curl_multi_exec
    • Stu on Executing multiple curl requests in parallel with PHP and curl_multi_exec
  • Recent Posts

    • New Project: Jester
    • Open New Terminal Tip
    • Installing MySQLdb on MacOS Lion
    • Headless VM Server Using Ubuntu 11.10
    • Get rid of Facebook’s Awful Ticker
    • Api Tester now hosted on Github
    • Trac .11 jQuery bug
    • Multiple Filetypes in Vim
    • Git Tip: Setting Up Your Remote Server
    • Install issue pymongo on OSX (setuptools out of date)
  • Categories

    • amazon (1)
    • answerbag (6)
    • apache (9)
    • apple (8)
    • awk (2)
    • bbedit (2)
    • c++ (3)
    • chrome (2)
    • cluster (1)
    • cocoa (1)
    • collective intelligence (1)
    • curl (3)
    • db2 (1)
    • demand media (1)
    • ebay (1)
    • eclipse (4)
    • erlang (13)
    • facebook (1)
    • fortran (1)
    • gen_server (1)
    • git (5)
    • google (4)
    • haddad (1)
    • hdf5 (1)
    • html (1)
    • innodb (1)
    • itunes (1)
    • java (2)
    • jester (1)
    • kvm (1)
    • launchbar (1)
    • leex (1)
    • letsgetnuts.com (1)
    • libvirt (1)
    • links (6)
    • linux (27)
    • lucene (1)
    • mac (16)
    • memcached (1)
    • misconception (1)
    • mobile (1)
    • mono (1)
    • mssql (1)
    • munin (1)
    • mysql (31)
    • numpy (1)
    • oracle (1)
    • php (23)
    • puppet (4)
    • pyparsing (1)
    • pytables (1)
    • python (11)
    • q&a (1)
    • quicksilver (1)
    • rant (6)
    • readynas (1)
    • redis (2)
    • regex (1)
    • replication (1)
    • search (1)
    • shitty code (1)
    • solr (3)
    • spaces (1)
    • sshfs (1)
    • stored procedure (1)
    • svn (5)
    • textmate (2)
    • tips (22)
    • trac (1)
    • tutorial (4)
    • ubuntu (3)
    • Uncategorized (4)
    • unix (1)
    • vim (3)
    • virtual box (6)
    • vmware (1)
    • weird (3)
    • wikipedia (1)
    • windows (1)
    • xcode (1)
  • Blogroll

    • Adamwolkov.com
    • Crazytoon’s Blog
    • DavidGagne.net
    • I think everything is stupid
    • Scott Gale's Blog
    • splitmytab
    • The Downside
    • The JJ
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

Rusty Razor Blade

Pages

  • About Me
  • Api Tester
  • Consulting
  • iCal Agenda

The Latest

  • New Project: Jester
    I’ve started a new open source project called Jester. Jester is a […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2011 Rusty Razor Blade
Platform by PageLines