WPEngine recently started offering the ability to geolocate IP’s if you’re on the business plan or above. But for many of you still on the personal plan this is no help. If you have a low traffic site (less than 1000 visitors a day) then this could be a good solution for you. Put this […]
Scrapy has a nice built in feature to automatically download and store images that it comes across while scraping a website. There’s some great documentation on how to get started. Theres also some undocumented code that allows you to store your images on Amazon S3. Here’s how to do that: in your settings.py file: ITEM_PIPELINES […]
There might be a few reasons that you’d want to setup a bitcoin or altcoin wallet. I set one up recently for a client and found there wasn’t much info out there about compiling from source. Bitcoin has a PPA which makes it easier, but that doesn’t help us for the altcoins. The methods below […]
Laravel 4 has some very nice features in which you can build your api on. After reading about some best practices for REST many people suggest using ETags for validation caching. I’ve come up with a realtivley simple solution to enable ETag validation of your api data. I simply used a filter to catch the […]
Web notifications have been around for a while, but with Apple’s latest release of OSX 10.8 and notification center they are most likely to become a bit more popular. I had a look into the developer documentation for safari and found a nice chunk of code for displaying notifications in Safari 6.0.
Sometimes it’s hard to remember all the options you need to include to tar and gzip files or a folder from the command line. Here it is… tar -cvzf tarballname.tar.gz myfilestocompress To untar and unzip simply do: tar xvfz filename.tar.gz And if there are only certain files you want in the tar then do: tar […]
A useful reference for different MIME types: IANA | MIME Media Types.