Archive for December, 2008
Query Google Finance From the Command Line
This is a one line bash script I wrote to query a stock’s price from Google Finance. It uses wget to get the HTML page from Google Finance and then grep and cut to extract the stock’s price. The script is based on the current HTML format of the Google Finance pages and might not work if Google decide to change this format (It’s easy to modify, though).
To have the script:
Open your favorite text editor (mine is vim), and type/paste this:
Use Jemdoc to Create Static HTML Pages
Jemdoc Is a tool (in fact, it’s a python script) that I discovered about a year ago, but had time to test it only recently. Its purpose is to create a clean and standard compliant HTML pages in a very short time. Its syntax is easy to learn (In fact, I’m not sure that “syntax” is the appropriate word for this, since it’s much simpler than a “regular” syntax).
Anyway, I decided to write the complete post about Jemdoc using Jemdoc itself
, so the rest of this post is located here.
Enjoy
Add Colors to Your Manpages
I use the manpages a lot. Manpages are a very useful database of information for linux users and developers. The problem with them is that their appearance becomes boring after a while.
I already wrote a post about reading them from firefox, so they’re displayed in a nice way as html pages.
In this post we’ll add colors to the manpages viewed from inside the shell.
First, open your ~/.bashrc file. To open it with gedit you can type:
gedit ~/.bashrc
View the Manpages in Firefox
A cool way to view manpages in linux: View them as html (with color) in firefox.
First, you need to install a program called man2html. Doing this in Ubuntu is as easy as opening a terminal and typing:
sudo apt-get install man2html
Now, that you have this program installed, open your firefox.
Did You Notice the New Task Manager in Gmail?
As usual, Google releases a new great feature/service, silently, and after a while it becomes so popular. In fact, this is one thing that I love about Google: You always have to look for new features and new services, they won’t let you know unless you actively want to know.
Anyway, recently I discovered a very cool (and useful) service in GMail: A Task Manager built-in GMail, with a minimal and simple UI (this is one other thing that I like in Google).
The Power of Polymorphism (Video)
This video is part of “The Clean Code Talks” series, which is itself a part of the great “Google TechTalks”.
The video shows the strength of using polymorphism instead of switch statements and “if” conditionals, to get a much cleaner cleaner code, allowing it to be more readable, testable and maintainable.
One of the best videos I watched in this series.
Command Line Tools I Like
Though my love with Linux started because its GUI, especially compiz fusion, I discovered through time that Linux’s power is in its command line, almost every thing can be done from there, easily, clean and fast.
Here is a list of the command line tools I use most of the time:
About Me
Tags
Categories
- Algorithms
- Bash
- BlackBerry
- Collaboration
- Command Line
- Cool Tricks
- Easter Eggs
- Ebooks
- Firefox
- Hardware
- Humor
- iPhone
- Linux
- Linux Development
- Linux Kernel
- Networks
- Open Knowledge
- Other
- Productivity
- Programming
- Regular Expressions
- Science
- Security
- Shell Scripts
- Short Posts
- Social Networks
- Thoughts
- Tools
- Vim
- Web Development
- Websites
Popular Posts
Calendar
Archives
- September 2010 (2)
- August 2010 (2)
- July 2010 (5)
- June 2010 (1)
- May 2010 (1)
- April 2010 (3)
- March 2010 (1)
- January 2010 (1)
- December 2009 (2)
- September 2009 (13)
- July 2009 (1)
- June 2009 (6)
- May 2009 (4)
- March 2009 (18)
- February 2009 (10)
- January 2009 (10)
- December 2008 (7)
- November 2008 (8)
- October 2008 (1)
- August 2008 (1)
- July 2008 (1)
- June 2008 (1)
