I was looking for traffic conditions prior to my drive to Toronto and found that the Ministry of Transportation uses Google Maps to display the location and images from the highway traffic cameras around Toronto. Very neat!
Monthly Archive for July, 2008
In anticipation for the Dark Knight, here is a clip of the dynamic duo from the original Batman starring Adam West and Burt Ward. A batcopter, a batladder, four cans of ocean repellent batspray… “Holy Sardines!”
I’ve recently started to experiment with distributed source control systems for my personal repository. I had been using Subversion previously, but it had several issues with directories that bothered me. In addition, since my primary computer was a laptop, I also wanted to have full commit and change tracking when I was offline.
So distributed source control systems seemed to fit the bill. I looked at two systems in particular, Mercurial and git. Mercurial caught my eye because of its simplicity, and similarity with the traditional, centralized SCMs such as CVS and Subversion. However, I actually started using git first. The reason was that many open source projects had switched to git and I needed to compile several bleeding edge packages. So, I had no choice but to learn to use git. However, I couldn’t really wrap my head around it. While git is no doubt, a very powerful SCM, it was also a very complicated SCM. I took me a good hour or so before I understood how to track branches.
So, I settled for Mercurial. While I was worried that Mercurial was too immature, the fact that the Mozilla projects are also using Mercurial was very comforting.
Continue reading ‘Distributed Source Control using Mercurial’
So the iPhone aka “something big” according to Roger’s has been released, and one of its greatest strengths is it’s extensible application platform. The iPhone SDK is available for free… but in order to have your application run on an actual iPhone, it will cost a developer $99 and an Intel powered Mac. Hmm.. great idea there, Apple. Charge the very people who might write applications promote the sales of the iPhone.
A visual comparison between using the PHP rand() pseudo-random generator and the numbers generated by random.org, a truly random generator.
We may have a celebrity moving into Waterloo… Stephen Hawking!
I’ve recently started using the beamer class to create slides for my presentation. Up till now, I’ve been using powerdot, and found it more than sufficient. I initially thought beamer to be far more complex than necessary. However, one feature convinced me to switch: PDFTeX and XeTeX support.
Both PDFTeX and XeTeX create a PDF directly from the LaTeX source. XeTeX is built on PDFTeX, and is of particular interest since it has added support for TrueType and OpenType fonts. For beamer presentations, this was great, since it opens up a huge selection of fonts for use in presentations. To change the default font in the document with XeTeX, use the fontspec package. The xunicode package provides additional mapping between LaTeX accents and the selected font. A third package, xltxtra provides some fixes relating to fonts.
\documentclass[xetex,mathserif,serif]{beamer} \usepackage{fontspec} \usepackage{xunicode} %Unicode extras! \usepackage{xltxtra} %Fixes \setmainfont{Calibri} \setmonofont[Scale=0.86]{Andale Mono}
Of course, you should replace Calibri and Andale Mono with a font of your choice.
Another nice package to use with PDFTeX, is the microtype package, which provides better font output. Enable the package with this line:
\usepackage[final,expansion=true,protrusion=true,spacing=true,kerning=true]{microtype}
XeTeX and PGF / TiKZ
PGF / TiKZ is a TeX library for drawing graphics using the PDFTeX and XeTeX drivers. However, you may encounter the following error message when attempting to compile a presentation with PGF / TiKZ pictures in your Beamer slides:
Package pgf Warning: Your graphic driver pgfsys-dvipdfm.def does not supported marking the current position.
Unfortunately, the included TiKZ library in the TeXLive 2007 distribution does not support XeTeX. This causes cross-picture coordinates to break, which can be used to draw arrows between various TiKZ pictures in a Beamer frame.
While we wait for TeXLive 2008, you can install the new version of PGF from the CTAN which adds support for the XeTeX driver. Simply download the package, and copy the files to your local ~/texmf/tex/ directory and execute texhash to update the TeX listings.
XeTeX and Wide Pages
Although I haven’t had much time to investigate the issue, but it seems that the pgfpages package that is used with beamer, is not entirely compatible with XeTeX. In particular, the commands:
\usepackage{pgfpages} \setbeameroption{show notes on second screen} %beamer \pgfpagesuselayout{two screens with optional second} %pgfpages
is enough to have pdflatex generate notes to the right of the slide, but on xelatex it doesn’t have any effect. This post by Tomáš Janoušek to the XeTeX mailing list noted that the problem was due to a bug in the pgfpages package. Adding the following snippet fixes the probblem:
\renewcommand\pgfsetupphysicalpagesizes{% \pdfpagewidth\pgfphysicalwidth\pdfpageheight\pgfphysicalheight% }
Switched providers and updated design. I found the old design far too distracting, so I hope this one is an improvement!








