Thursday, March 18, 2010

Wednesday, March 17, 2010

Dijkstra's Algorithm for Shortest Route Problems

http://optlab-server.sce.carleton.ca/POAnimations2007/DijkstrasAlgo.html

Programming: You're doing it wrong

If you're a programmer (as I am), please do yourself a favor and read this post by Marco Tabini in the 20th anniversary of his IT career:
http://www.phparch.com/2010/03/10/programming-youre-doing-it-wrong/

Some highlights of his post:

"Software development is the land of egos and opinions—and it seems that, no matter how bad we try, we're always doing things the wrong way."

"One of the things that I have learned in twenty years of attempting to program is that we’re all doing it wrong. You. Me. Everybody."

"If you’re agonizing over whether you’re writing good code, let me spare you the anguish: you’re doing it wrong—except if your code works, in which case you most definitely are doing it right."


Other posts by Tabini (worth to read):
- Stop Telling People to Optimize, and Start Teaching them to program
- 5 meta skills for the PHP programmer

Multiple IEs

If you are a Web developer you are likely to need a tool like this to test your site in multiple versions of Internet Explorer:

http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en

Saturday, March 13, 2010

Latex footnotes

Today I was writing a paper in Latex and tried to make a footnote referencing a URL... and the compiler threw tons of errors because it wasn't recognizing the http:// and the _ in the URL.

Here is the fix:
1. Use the package url:
\usepackage{url}

2. Inside the \footnote tag, open another tag for \url{}:
Some text here \footnote{\url{http://fix.com}} and some other text here.

Thursday, March 11, 2010

Google’s PageRank algorithm traced back to the 1940s

A co-worker sent me this link today and I found it very interesting:

http://www.geek.com/articles/chips/googles-pagerank-algorithm-traced-back-to-the-1940s-20100217/

The concept behind Google's search engine success is their PageRank algorithm. Well, it seems that the algorithm was first written in the 40s.

Regular Expression evaluator

If you work with Regular Expressions, you may find this tool useful:

http://rubular.com/