Leo's Technical Blog
user

Leo's Technical Blog

Mostly about computer programming.


Featured

tips, imovie

Convert MPG videos to MP4 (to edit them in iMovie)

Posted on .

I just filmed a couple of clips to edit them later in iMovie. Surprisingly, the MPG files generated by my (consumer, low end) camera were not importable in iMovie. Armed with ffmpeg $ brew install ffmpeg if you don't have it already installed) and bash, it was…

Featured

tips, osx

Some OSX Command Line Stuff

Posted on .

A couple of neat tricks that I use from time to time: $ mdfind: How could I be a Mac user for almost 3 years without knowing that you could use spotlight from the command line!? $ purge: Flushes the disk cache. Usually, you don't mess with that stuff and just…

Featured

tips, safari

Beware: Mobile Safari's phone detection changes the DOM and can mess your CSS styles

Posted on .

This is just a quick tip which hopefully can make someone save a few hours of pain: If you have a webpage which works perfectly on every decent browser on the earth (that excludes IE6, of course) but, which has some CSS issue on the iPhone and iPad, and only o…

Featured

tips, git

Essential Git commands

Posted on .

The following drawing illustrates the basic Git commands I tend to use everyday. It was extracted from a presentation (in Spanish) I made on Continuum a few weeks ago. (Drawing by Ricardo Alfaro, who took my ugly whiteboard sketch and somehow translated it in…

Featured

tips, google

Fixed-width font on Gmail again

Posted on .

Update August 2013: Here is the same trick for Chrome users (and updated to GMail's 2013 UI), Updated on February 2010 to fix the composing area to fixed font again. Looks like Gmail changed the classes of their HTML elements again, as the last trick for fixed…

Featured

python, tips

Python command line tricks

Posted on .

Here is a couple of useful tricks you can perform on any machine with Python installed. 1. Serve the current directory via HTTP $ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ... Quite useful for sharing files on a network when the usual fi…

Featured

tips

External incentives don't work with programmers

Posted on .

The surprising science of motivation is a very good talk by Dan Pink that explains what most people with (real) experience in the software programming field already know: If someone isn't internally motivated to work on something (for “something” i…