Archive for January, 2010
Cheaper Domain Names
I’ve finally decided to get myself a reseller account for all my domains. This way, the prices I get are really cheap, and as a lot of providers already use the orderbox interface, there is nothing I need to do or implement to start using the site.
The benefits are sort of immediate, with reseller-cost domains available at ~8USD when providers normally charge ~10USD.
Now, even if these domains are resold at near cost price, providing just a service, it would be possible to get the costs down even more. Expect more on this…
Download files from a 4chan post
If you need to download all images (or files) from a 4chan post, then here is a quick script to do it. You can run it using PHP on the command line. Saves a lot of time when you see interesting wallpapers and things like that.
Once you save the file, make it executable by using
chmod a+x download-4chan.php
and then you can start downloading all the images using something like
./download-4chan.php http://boards.4chan.org/wg/res/2508871
Shorten URLs in strings with bit.ly
Here is a simple class that shortens the URLs within a string using the bit.ly shortening service. Example is at the bottom of the file.
If you only need to shorten a list of URLs (not within the string), then use the “shorten” function. Bitly api documentation is at http://code.google.com/p/bitly-api/wiki/ApiDocumentation .
Hello world!
Everything important should begin with a “Hello World”. After this, the journey can begin…