Monday, December 20, 2010

XKCD on your GNOME background

Hi,

I wrote this little script which would download the latest XKCD comic and put it centred onto your GNOME Wallpaper.

It screenscraps the latest XKCD homepage and looks for the image URL, it then downloads it to /tmp and uses gconftool-2 to set it as your background.

Try it out and lemme know if you like it.

I have put a cron like
0 15 * * mon,wed,fri /path/to/xkcd.py
That will update my wallpaper at 3 p.m every Monday, Wednesday and Friday.

#TODO:
* Would like to make it Desktop independent.
* Would like to have the mouseover text below the comic.

#UPDATE:
Thanks to andy(see comments) this script uses JSON to get the data, and avoid screenscraping.

Thursday, December 16, 2010

Day 1 at FOSS.IN/2010 (and maybe some of Day 2)

(Yes, I am blogging after a long time.)

And I am blogging about FOSS.IN, Day - 1, while I am almost halfway though Day 2. Well that I because I am now sitting through Aditya Patwari's talk on Fedora Student's Contributing a.k.a Fedora Summer Coding, and waiting for my talk which would start soon. Yes, I am nervous, as I always am before my talks, and I wanted to do something to take the pressure off. ;-)

(Aditya is a surprisingly good speaker.)

Coming back to yesterday, I was sick. I took some medicines in the morning which kept me going through the day and I did enjoy a lot yesterday. I went in and met old friends from last FOSS.IN, and Ramkumar with his huge desktop-like-laptop with the heavy-expensive-doubleUSB-nonprinted-keyboard. With a cup of coffee we went to attend the talks.

(I see people leaving.)

Kishore Bhargava kicked-off with the opening ceremony (read lighting of diyas). Danese Cooper had her keynote on Wikipedia technologies. She started off with "Wikipedia != WikiLeaks". The talk was a good insight into the tools and practices that wikipedia uses to manage its backend. I took a few notes, for later reading.

(Arun SAG is telling the audience how to package emacs plugins. Arun is an engaging speaker.)

I had lunch. The queue was long, for the lunch and outside the men's. I had less food because I wasn't well. After lunch I went into Balbir Singh's talk on Operating System Caches in a Virtualised Environment. I wasn't very interested in the talk, I was waiting for Lennart's talk on systemd, hear from the horse's mouth. The talk was good (and the confetti dropping from the ceiling), I could understand most of what he was saying, and I even managed to ask a question. ;-)

(The hall always starts getting empty before I am to talk.)

I didn't want to know about hacking LibreOffice. So I spend the hour chatting. Next I went into Philip Tellis's talk on Boomerang, which was a client side JavaScript code that measured latency on the client side and send it back to a central server. The software looked good, but fishy.

(Arun is still going strong with the specfile for emacs-identica plugin)


Rahul
had his keynote next about the Failures of Fedora, and I was looking forward to that. It was informative, interesting at parts. After the talk they were starting off with a video interview of Julian Assange of WikiLeaks. We the Fedora Public decided to skip that and do a dinner party of our own.

(My talk of Four Seasons of Code is next, and I'm nervous)

The dinner party went good. Food was nice with all the beer (I did not drink) and the drunk brawls about git behaviour with pipes. Back at the hotel it was another war to get the wireless running with one faulty router.

(That's all, Arun is done with his talk, I'll go up now. Bye!)
(My talk's over, I'll just add a few links now and submit this.)

Monday, August 2, 2010

FSoC Weekend Hack Sessions

This weekend me and Gaurav sat together and had a look at how FSoC had been shaping up and where it was headed.

Lots of issues were tackled over two days. Listing some of those down here:

Saturday:

• Revised method of setting values and admin credentials in app_settings.yml
• Revamped Admin Dashboard.
• Image upload issue for Certificate.
• FAS registration Module as a Plugin.
• Customisable approach to development.
• Comments and Journal sharing the same Model.
• Calender displaying task deadlines.

Sunday:

• Edit settings.yml from Admin Dashboard.
• More work on the Admin Dashboard.
• Program name Abbr. year. in settings.
• FutureFeature: Project description markup.
• Task date checking for Summer Coding mode.
• data_file should go.
• Summer Coding dates to be moved to a settings file.
• URL validation.
• Tabbed/Ajaxified Dashboard, Projects, Users view.
• Failing tests.
• Access Controls go to Models.

These are only the points I got to note down, other than this there were more minor issues handled. Next weekend we plan to sit again and hack. :-)

Thursday, June 17, 2010

yum install sup

I am happy to announce that sup has now been pushed to the Fedora updates-testing repository.

Now you can do
yum install sup --enablerepo=updates-testing


It took packaging three rubygem dependencies
* rubygem-net-ssh
* rubygem-rmail
* rubygem-lockfile

The package is rubygem-sup. Apparently all rubygems have to be named this way, regardless of whether it is an application or library.

Use it, test it and provide karma to the package, so I can push it to stable. :-)

Thursday, June 10, 2010

rpmcat

One of the ideas that came out of packaging rubygem dependencies for sup and sup itself, was a need of a script that would cat a specific file from an rpm. Since rpmls exists, the next logical step would be a rpmcat.

Rahul told me to go ahead and write it down. He also gave me a few pointers.

Here it is.
Copy it to your /usr/bin/ and do a chmod +x

Usage:
$ rpmcat <RPM> <full-file-path>
(get the full-file-path from rpmls)

Don't try random stuff. It will break! :-P

Wednesday, June 2, 2010

FAD Pune, haml and sup

I was supposed to be working on and talking about Dorrie. But that meant I had to sync the F13 repository, which I was not prepared with.

So I started checking out haml and converted one of my FSoC templates to haml. That was fun. Takes some time to get the hang of, but it makes your templates really clean and beautiful. Here's a before/after.

Rahul then asked me why I was not packaging sup. I said that was because I had never packaged anything for Fedora before. He said now would be a good time to start.

So we started packaging sup. We made a rpm spec from the gem spec of sup. I found out that a lot of sup's dependencies were not packaged for Fedora. So I started with them first.

For the rest of Day1 and entire Day2 I spent making spec files and doing review requests.

I have two packages under review now. Another is on the way.

Hoping to get sup packaged for Fedora soon.
Yours,
Shreyank.

Monday, May 17, 2010

Sync RailsCasts

Since Kushal has a local copy of Meet the Gimp, I decided to sync Railscasts locally.

I wrote a script. It's available on my github.

Do sent in comments.

Posted from GScribble.