GET RID OF FACEBOOK'S AWFUL TICKER
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.
API TESTER NOW HOSTED ON GITHUB
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 a starting point, or to understand how Cocoa apps were written… 4 years ago… I don’t know....
TRAC .11 JQUERY BUG
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.
MULTIPLE FILETYPES IN VIM
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.
'GIT TIP: SETTING UP YOUR REMOTE SERVER'
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 command line and try again (e.g. ‘git pull ‘). See git-pull(1) for...
INSTALL ISSUE PYMONGO ON OSX (SETUPTOOLS OUT OF DATE)
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
ANOTHER ATTEMPT AT PYTHON
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 the results to be a little convoluted. (Since then I’ve learned to use...
SSH WITH MULTIPLE HOPS
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
REDIS WILDCARD DELETE
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 del {} \; How to use: redis-del pattern*
COMBINING IWATCH WITH RELOADER
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 unit test (or other command) when src files change. Really great for rapid...