Blog Archives

Rotating a Portrait-Mode Movie

I always forget how to do this: ffmpeg -i iphone-portrait-orientation.mov -b <bitrate-of-source-file>k iphone-portrait-orientation.avi mencoder -vf rotate=1 -o iphone-landscape-orientation.avi -oac copy -ovc lavc -lavcopts vbitrate=<bitrate-of-source-file> iphone-portrait-orientation.avi

Posted in *nix, code, geek life, how-to

Fiddling with my vim statusline

This: function! FileSize() let bytes = getfsize(expand(“%:p”)) if bytes <= 0 return “” endif if bytes < 1024 return bytes else return (bytes / 1024) . “k” endif endfunction set statusline=%1* “color to user mode 1 set statusline+=%<%t%w%h%m%r “tail of

Tagged with: ,
Posted in code, how-to

XHTML 1.1 Strict New Window Links With jQuery

I was throwing together a prototype site last night and I thought it might be nice to aim for XHTML 1.1 Strict compliance, really just for kicks. Most of the time, this is no big deal, but I was stuck

Tagged with: , ,
Posted in code, how-to

Installing the Cisco VPN Client on Windows 7

This set of instructions exists more or less on more than one site, usually completed by a few follow-up comments. For my own sanity and future reference, these are the 100% reproducible set of installation instructions, which prevent a nasty

Tagged with: , , ,
Posted in how-to, software notes, windows

Inserting video content into a LiveJournal comment

Yesterday I was looking for good instructions on inserting video content into a LiveJournal comment (for someone else) and couldn’t find any. So, after being successful, I felt it my geek duty to write up my directions in case, some

Tagged with: , , , ,
Posted in blogging, code, geek life, how-to

Cygwin Prompt Here (for tcsh)

In a post I can no longer find, Scott Hanselman blogged about a registry entry to add a “Command Prompt Here” item to Windows’ right-click context menu. This has, many times, saved me almost 30 seconds of opening cmd.exe and

Tagged with: , , ,
Posted in *nix, code, how-to, lifehacks, productivity, software notes, windows

Floppy Disk Pen Holder

Quite a while ago, my wife left me alone at home for an evening with nothing to do. Arguably, I could have cleaned or something, but I was feeling crafty, and had happened upon a tutorial on Instructables for creating

Tagged with: ,
Posted in geek life, how-to

Keeping SSH connections open (in PuTTY)

Lifehacker posted an article this morning about keeping SSH connections open in Linux (which was just a re-posting of an article on FOSSwire). This is helpful for all of those Linux users out there, but for those of us who

Tagged with: , ,
Posted in how-to, software notes

Using Subversion to safeguard my photos

During the backup project, I created a subversion repository for all of my installation media and installation files – anything I’d need to set up a new computer. The intention was to have a system that was a solid backup

Tagged with: , ,
Posted in code, geek habits, how-to

Code Highlighting With Google’s SyntaxHighlighter

This is (mostly) a test post to see how well Google’s SyntaxHighligher works. As you hopefully see below (if your browser supports javascript), it works well. I approve! function safe($num) { // there has to be a smarter way to

Tagged with:
Posted in code, how-to