Archive for the 'Uncategorized' Category

Splatter 0.2 Release

Screenshots

Comment View Bug detail view

What’s new?

  • Massive number of bugs fixed
  • Comment posting functionality
  • Little icons display when comments are unread
  • Filter by date
  • Stable release :)

Download

The tease continues

Splatter
Click on image to view full size

Can we get any more awesome than this?
Only time will tell.

Packaged and giftwrapped!

I decided to set up a pre-release ppa of Splatter, to try and take my mind off of certain things.

Please note that this uses a very restrictive license, a variant of MIT/X11. You can see it here. The license is flicked from jsmin.

It’s very very very alpha (think one weekend of bored hacking). You can get the ppa for lucid lynx alpha 3 here(I don’t run jaunty, but will set it up for that too, soon): Update: Repo broken. Will be fixed.

Update 2:

If you’re feeling particularly brave and foolhardy, you can fetch the packages for Ubuntu Lucid Lynx from my personal package archive here:

https://launchpad.net/~anirudhs/+archive/splatter

Update 3: Karmic support available. A bug exists in the lucid package that has been fixed in the karmic one. Will push to the lucid one as well in the evening after classes.

Sneak preview – Splatter

Hosted by imgur.com

Hosted by imgur.com

Hosted by imgur.com

Hosted by imgur.com

Hosted by imgur.com

Hosted by imgur.com

Hosted by imgur.com

Hosted by imgur.com

Ir_black vim/textmate custom color scheme in MonoDevelop

I use the fantastic ir_black theme for vim [screenshot]. I wanted something similar to this for MonoDevelop. So I wrote it, and here’s what it looks like (with the Consolas font on both MD and Vim):

If you want to use it, you need to download IrBlackStyle.xml and add this file through MonoDevelop’s settings – Edit > Preferences > Text Editor > Syntax Highlighting > Add. You should be able to use the theme now.

If something went wrong, and you want to re-install or modify your local copy, you need to remove ~/.config/MonoDevelop/syntaxmodes/IrBlackStyle.xml. You can alternatively just edit this file instead.

Update: This theme is now available in MonoDevelop trunk. w00t!

Upload-to-patchbin script now available

[M-x infomercial-mode]
[world is black and white]
Want to endow your patch with awesome code-review functionality and impress fellow hackers? Email, attaching patches, wrapping, line widths got you down? Want to give feedback on code but can’t because you don’t want to copy, paste, quote and appease the demons of fixed-width formatting?

Some people said patchbin.com was the answer. Yes, it made collaborating a lot easier by making each line a comment thread, and it’s a lot saner than attaching an entire patch – it would make life on IRC, email and chat so much easier. Alas, I can’t be bothered to copy an entire patch into the clipboard and paste it into a new webpage.

Sigh. You know what would be badass – a commandline based uploader for patchbin. But of course there’s no such thing. It’s not like I can just pipe the output of a diff command into another program which would automatically upload it to patchbin. I’d just say “git diff|patchbin” or “cat awesomefeature.patch | patchbin”, and that’d be it. Haha! while that would be overwhelmingly awesome, that does not exist.
[world becomes color]

Oh my! Look what the heavens have dropped into my address bar! It can’t be!

http://anirudhsanjeev.org/projects/PatchBinUploadScript

Oh! Praise the gods of open source for this 50 lines of concentrated awesome!
[/informercial-mode]

(I am bored and need coffee. Can you tell?)

Patchbin.com open to public

I swear this project was jinxed. Everytime I sat down to finish, deploy and make a release, something always ends up distracting me. Finally, after a long sunday evening of debugging and wrestling with crazy python syntax errors and horrible confusion resulting from not remembering what git branch I was tracking, I think it’s ready for public use.

So here we are: Patchbin.com

For example, here is the famous DeOMGifying commit from Ruby On Rails – the agile, pragmatic web framework for LOLCats :) http://patchbin.com/Lfgb9d

Now for some well deserved coffee!

meep! Turns out the host went down for some reason just after I finished deploying.

Sneak Preview – Patchbin!

A little sneak preview of my latest project.

While talking over chai with Ramkumar, I thought aloud that it might be a neat idea if I could start a code review by just pasting a patch in something like pastebin and get a code review functionality like Google’s Mondrian or Reviewboard. I should be able to paste a patch like in Pastebin and see a visual diff and also be able to send it to mailing lists where people can make comments. I was looking to write a small app to brush up on my django skills and to practice deployment on a production server and this seemed like an ideal opportunity.

The project was a little more complex than the original one-weekend timeframe I anticipated, but I’m happy with the way things have come out.

Here’s a sneak preview of the near-complete app. I’m just fine-tuning the diff parsing algorithm and need to purchase VPS hosting and deploy the app, and hope to do that by tuesday.

Here are some screenshots: 1. Pasting a new patch:

  1. The default diff view:

  1. Creating a comment

  1. Replying to a comment (you can reply on either side):

Hopefully this will make collaborating on patches a lot more I was using this patch from the linux kernel patchwork site for display here. The backend is completely open-source and is written in django and will be hosted on prgmr or linode.

Amon Amarth live!

I love Amon Amarth. Their album – With Oden on our side – is my favorite album of all time. And there would be no way in hell I would miss them – an off-mainstream swedish outfit – performing in India!

I’d purchased a large (40”) flag bearing the cover of the “With Oden on our side” Album a few months ago. It adorned my hostel room wall next to my bed. (Hence I lived literally “With Oden on my side”.) I took it back home and painstakingly stiched and duct-taped it onto a eleven foot pole so I could raise the flag and fly it high!

And here is the result (look for the flag in the first minute or so):

Some bloke even mentioned it somewhere online:

“Someone in the crowd had mercifully brought an Amarth flag that flew high and proud” [source]

Overall the concert was absolutely mindblowing! I never expected to see these guys perform anytime unless I went to some european place. My only regret was that the show ended too early because the Police closed the concert as nothing can run after 10 around here. They couldn’t even play their crowd-pleasing hit – “Pursuit of Vikings”. I felt that the other opening bands and “Textures” (who played before them) got too much time.

The exact same thing happened when Megadeth came and performed – Machine Head could play a full setlist leaving the main act short and the audience desperately wanting. I just hope this encourages show organizers to avoid trying to get a “woodstock” like experience by cramming many bands in and realizing most people just come in to watch one or two famous bands.

Either way, it was one of the most awesome nights of my life. I had seen Amon Amarth. Nothing else would’ve mattered.

Marathon time!

Yay! Last weekend I successfully ran the 22 km half marathon at the Bangalore Midnight Marathon. It was an absolutely fantastic experience, which took all of 2 hours and 10 minutes to complete. This was the longest I’d run at a single stretch until now, and it wasn’t as difficult as I’d originally expected.

The first 10 kilometers were a breeze, something I was quite used to. The next 4 kilometers were the hardest, after which it became surprisingly easy, as long as I kept my mind completely distracted – an easy task for me!

The run was great! Several hundred people turned up. A lot of people were skeptical as they had to run the same stretch of road 10 or 20 times for the half and full marathon. Many people I know opted to stay out of the run citing boredom and monotony, but the real passionate runners turned out in big numbers. Even my parents thought it was slightly weird – why would I drive out 30 kilometers to run 22 more at midnight and drive back afterward? I am not too sure myself, but I’m real glad I did it.

Hopefully by next year, I’ll be able to run a full marathon.