from the desk of aniketh

code and ideas

Post your Gtalk/Jabber Status Automatically on Twitter

with one comment

If you need to post you google talk, or for that matter any jabber service, automatically to twitter, then have a look at my code over at http://github.com/aniketh/jabber-global-status

The list of commands that the server supports are :
add
- this command adds the users twitter credentials to the server

start
- starts auto-tweeting of users IM status message

stop
- stops auto-tweeting of users IM status message

tweet
- posts the message as a twitter update

del
- deletes user twitter credentials from the system

This code is basically just a combination of the xmpp php library and a twitter class for php. The biyly url shortening service has also been tied in just for completeness.

Written by aniketh

February 3rd, 2010 at 2:14 am

Posted in Uncategorized

Cheaper Domain Names

without comments

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…

Written by aniketh

January 23rd, 2010 at 1:18 am

Posted in Uncategorized

Download files from a 4chan post

without comments

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

Written by aniketh

January 13th, 2010 at 12:34 am

Posted in Uncategorized

Shorten URLs in strings with bit.ly

without comments

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 .

Written by aniketh

January 11th, 2010 at 8:53 pm

Posted in Uncategorized

Hello world!

without comments

Everything important should begin with a “Hello World”. After this, the journey can begin…

Written by aniketh

January 3rd, 2010 at 12:37 pm

Posted in Uncategorized