Archive for February, 2012

Prompt is blue in IPython

February 29, 2012 Leave a comment

If you want green prompt, open ~/.ipython/ and uncomment this line:

o.autoexec.append('%colors Linux')
Categories: python Tags: , ,

jabbatron: an interactive installer script for Ubuntu

February 29, 2012 Leave a comment

Update (20120328): jabbatron is now available via pypi (sudo pip install jabbatron).

Whenever you install a new Ubuntu system, each time you need to repeat the same steps: edit .bashrc, install mc, install vim, etc. It’d be nice to automate these steps.

There are lots of installer scripts for this task but most of them are written in bash. As I’m better in Python, I made my own version in Python. Here it is.


Categories: python, ubuntu Tags: ,

Listen to Pandora Radio from anywhere

February 26, 2012 Leave a comment

See the end of this post.

Update (20121110)
If you want to listen to Pandora Radio, there is an easier method.

Categories: Uncategorized Tags:

Learn C The Hard Way

February 25, 2012 Leave a comment

Learn C The Hard Way will fill in the “beginning programmer” gap in the literature on the C Programming language. It will teach good modern C programming practices and avoid habits that lead to buffer overflows, security defects, and other problems that even experienced programmers cause. This book is designed for:

  • Students who have read LPTHW or LRTHW.
  • Programmers with skill in one other “scripting” language.
  • Programmers who need to relearn C.
  • Objective-C programmers who want better C skills.
  • People who like a challenge.”

FoxyProxy, proxy switcher for Firefox

February 23, 2012 1 comment

While browsing, you want to use a proxy server.

The FoxyProxy add-on allows you to switch proxies easily.

Useful Links

Use Case
Say you want to listen to Pandora Radio but when you visit their website you get a warning in your face: “You are not a US resident therefore you don’t exist. Go away!” What can you do? Install FoxyProxy, set up a US proxy, verify it on an arbitrary site to see if it works, then visit the Pandora website again. Problem solved.

Related posts

Update (20121110)
If you want to listen to Pandora Radio, there is an easier method.

Categories: firefox Tags: , ,

Oh my Gosh! 100,000 visitors!

February 23, 2012 Leave a comment

Today the blog had its 100,000th visitor! Wow, thanks! When I started this blog I was afraid that after a while I wouldn’t have anything to write about. Fortunately it’s not the case. Sometimes I wish I had more time for this blog. In the world of Linux one can learn something new every day.

Categories: Uncategorized Tags: ,

Slogan generator

February 23, 2012 Leave a comment

You have a great project and you need a slogan for it.

Then Sloganmaker is for you. However, it only makes one slogan at a time. I wanted to get several slogans, thus choosing the best one is easier.

For this, I made a simple Python script that uses Sloganmaker as an API (available here). It’s part of my jabbapylib library (whose new motto is: “Nail it with jabbapylib.“).


$ python 'Jabba Laci'

Sample output:

Jabba Laci can't be hurried.
You can count on Jabba Laci.
There's a Jabba Laci in your future.
It's wonderful, it's Jabba Laci.
Jabba Laci whatever.
Jabba Laci fresh you up.
It's miracle in the rain, it's Jabba Laci.
More smiles with Jabba Laci.
The Jabba Laci effect.
Everyone should believe in Jabba Laci.
Always the right answer with Jabba Laci.

LOL :)

Categories: python Tags: , ,