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

Open New Terminal Tip

By jon On December 5, 2011 · Leave a Comment

I tend to open up several terminals when working on a project, so I usually want them to start in the same directory I’ve been working with. Stick this in your ~/.bash_profile to have your new terminal windows automatically cd to the directory you last used.

export PROMPT_COMMAND=’echo `pwd` > ~/.lastpwd’
cd `cat ~/.lastpwd [...]

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

Installing MySQLdb on MacOS Lion

By jon On November 9, 2011 · Leave a Comment

I ran into an issue installing the MySQLdb module.

>>> import MySQLdb
/Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.pyc, but /Users/jhaddad/Downloads/MySQL-python-1.2.3 is being added to sys.path
Traceback (most recent call last):
File ““, line 1, in
File “MySQLdb/__init__.py”, line 19, in
[...]

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

Headless VM Server Using Ubuntu 11.10

By jon On October 23, 2011 · 2 Comments

In this tutorial I’ll be guiding you through setting up a headless Ubuntu 11.10 box that you’ll manage using virt-manager, accessed via X11. My main machine is a Mac running OSX Lion. You’ll need the Ubuntu CD, and for the first part of the tutorial, physical access to the box with a keyboard and monitor. [...]

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

Get rid of Facebook’s Awful Ticker

By jon On October 12, 2011 · Leave a Comment

It’s appropriately named Facebook News Ticker Remover. Now I just need to clear out the entire right column. And most of the newsfeed.

Edit: Just found minimalist-facebook which hides even more features I can’t stand.

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 →

Api Tester now hosted on Github

By jon On October 5, 2011 · Leave a Comment

About 4 years ago I decided to write a little GUI tool for manually testing API calls. Put it on the top of my blog, people have downloaded it, and I haven’t touched it since then. Last updated timestamp was 2007.

I don’t know if anyone wants it, but it could be useful as [...]

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

Trac .11 jQuery bug

By jon On May 24, 2011 · 1 Comment

Running Ubuntu 10.04 LTS, we were seeing an error in trac (File js/jquery.js not found) about jQuery being missing.

After plowing through about 20 forums, I finally found a post which gave a tip similar to this:

ln -s /usr/share/pyshared/trac/htdocs/js/jquery.js /usr/lib/python2.6/dist-packages/trac/htdocs/js/jquery.js

After doing that, jQuery showed up.

These icons link to social bookmarking [...]

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

Multiple Filetypes in Vim

By jon On April 27, 2011 · Leave a Comment

I’m finding this useful as I work with snipmate and have defined custom snippets for solr config files. I still want to use the XML filetype, but I have no real use for the solr fields outside of editing the schema.xml file.

set filetype=xml.solr

Booya.

These icons link to social bookmarking sites where readers can [...]

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

Git Tip: Setting Up Your Remote Server

By jon On April 23, 2011 · Leave a Comment

Here’s a pretty common git error message if you’ve added a remote origin server manually.

You asked me to pull without telling me which branch you
want to merge with, and ‘branch.master.merge’ in
your configuration file does not tell me, either. Please
specify which branch you want to use on the [...]

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

Install issue pymongo on OSX (setuptools out of date)

By jon On April 22, 2011 · Leave a Comment

easy_install on the mac has some weird hardcoding issue where it uses a specific version of setuptools. You can read a really good explanation by Andreas Jacobsen here.

The fix is to use python to call easy_install instead of using the Apple provided one.

sudo python -m easy_install pymongo

These icons link to social [...]

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

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 →
← Previous 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

    • 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)
    • Another Attempt At Python
  • 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)
    • 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)
    • pytables (1)
    • python (10)
    • q&a (1)
    • quicksilver (1)
    • rant (6)
    • readynas (1)
    • redis (1)
    • 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

  • Open New Terminal Tip
    I tend to open up several terminals when working on a project, […]

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