September 2011
1 post
simple Netflix queue export bookmarklet
This morning I was trying to generate a list of the movies I have in my Netflix queues, after copying and pasting and failing to get what I wanted I decided to write a simple script. So, I worked on this bit of JavaScript during my lunch break.
Simply drag Netflix Exporter into your bookmarks. Go to your desired queue (DVD or Instant) and click on the bookmark, the page will be replaced with the...
July 2011
1 post
4 tags
adding extra CoffeeScript goodies to Sublime Text...
I started playing around with CoffeeScript this weekend and I quickly realized that switching back and forth between text editor and terminal was not a good workflow (especially when first learning the language and figuring out what is compiled to what). So, after looking around a bit, I found that there is an existing CoffeeScript TextMate bundle and since Sublime Text 2 is compatible with some...
March 2011
1 post
migratordotnet 0.8 + elmah SqlServer migration...
I’ve been using the excellent error logging module elmah in a project for some time now. This same project uses the migratordotnet framework to maintain the different versions of the database schema, this tool works great and it’s pretty easy to use. But, when trying to get the elmah SqlServer script to execute from a migration I discovered a bug in migratordotnet :(
So, instead of...
November 2010
1 post
customize HTML output of MvcSiteMapProvider...
The latest version of the SiteMap provider for ASP.NET MVC now includes support for templated helpers. This means you can use your SiteMap to dynamically create your site navigation based on your SiteMap and make it look extra shiny. Create your partial views under the “Views\Shared\DisplayTemplates" folder in your project and customize the output to your heart’s content. Here is...
September 2010
2 posts
Mercurial global ignore pattern (it's awesome)
This is the global ignore pattern for Mercurial that we use at my workplace, i think it’s pretty awesome and i wanted to share it. It’s configured to work with users on Mac OS X and Windows, with projects in all versions of Visual Studio, Eclipse projects (even Flex app projects), as well as some other extra pesky files you wouldn’t want in your shared repository. I’m not...
Mercurial keyring extension in Windows
After trying various ways to get the mercurial_keyring extension installed in Windows (via easy_install), i finally found a way. The solution is a bit counter-intuitive if you’re like me and only wanted to use the command line tool (hg.exe). So, the way to get this to work is to simply install TortoiseHG (uninstall any version of Mercurial you might have installed). The installer will...
August 2010
1 post
3 tags
Install MySQLdb for Python 2.6 in Windows 7 64-bit
Getting this to work took me about 5 hours (lots of trial and error, lots of patience), there might be a better/faster/easier way to get this adapter to work but i couldn’t find it (and believe me, i searched like crazy).
These are the steps i took to get MySQLdb to work:
Download and install MySQL Community Server 5.1.49 Windows (x86, 64-bit), MSI Installer (mysql-5.1.49-winx64.msi)
...
November 2009
0 posts
5 tags
Google Static Maps image and url generator
A Halloween treat for my fellow developers!
To my surprise, I woke up early today and not being able to go back to sleep i started programming to pass the time. Having recently used the Google Maps API for a couple of freelance projects, i got the idea of building a tool for generating images and API URLs using jQuery and the newly updated Static Maps API. It’s handy for prototyping and...
July 2009
2 posts
3 tags
SuperGenPass iPhone Version
i made this modified version of the handy SuperGenPass mobile page out of necessity. i use the bookmarklet version of this tool for almost all my passwords (so i use it constantly), i also used the mobile version when i was away from my computer. but, when it came to using it on my ipod touch, i found it to be cumbersome and unpleasant (mainly because in the mobile page the generated password box...
2 tags
Jolicloud OS Alpha on ASUS EeePC 901 mini review
a couple of months back i signed up for an invitation code for the cool looking Jolicloud OS. a few days ago the invitation code hit my inbox. i quickly downloaded the 600MB disk image of this exciting new OS, i borrowed my sister’s EeePC, followed the excellent setup instructions on the website and i was quickly on my way to new OS goodness. unfortunately, i was a bit disappointed, i was...
June 2009
1 post
3 tags
simple email obfuscation with jQuery
javascript email obfuscation works by hiding or obscuring an email address in the source html code so that email harvesting robots can’t understand it, but when the page is accessed by a human a small piece of javascript code de-obfuscates it.
this simple but useful trick makes the classic javascript email obfuscation techniques even simpler (about 3 or 4 lines less of code more simple :P)....
May 2009
3 posts
4 tags
up-to-date freshly compiled subversion (svn) for...
Mac OS X 10.5 comes pre-installed with all the necessary svn command line utilities needed to get started on your versioned project. this is great, except that this version of svn is 1.4, and you probably need/want the latest and greatest (as of this post, version 1.6.2). you have two options, either download the precompiled binaries all packaged and ready to use from Collabnet (booring…),...
1 tag
Mozilla Bespin-esque theme for Notepad++
a long time ago, in a galaxy far, far away…
ok, maybe not that long ago. a couple of months back, after trying out Mozilla Bespin i decided that the basic style that came with Notepad++ was not enough for me anymore. i really liked the style of the Bespin text editor so i set out to recreate that look. luckily the internets came to the rescue, a user submitted theme for TextMate provided...
2 tags
howto segment large dmg (and other) files in Mac...
i use this trick every once in a while when i need to store a large ( > 4GB ) .dmg or .iso file in an external drive. most external drives are formatted using FAT32, which is a very common filesystem and pretty much guarantees support across multiple OSs. this is a great feature and i almost always never format drives because of it, the problem with this is that FAT32 has a filesize limit of...