You are here: Home >Archive for December, 2009

Shwartzian Transform

I was trying to merge sort a list of files based on their last modified date when someone said to me “do a schwartzian”. Now, I had no idea what they were talking about so off to google I went. It’s basically this (shamelessly ripped from Wikipedia): @sorted = map { $_->[0] } sort { [...]

Tags:

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
Read User's Comments0

Finding which package a file belongs to on Debian

With Debian there is a handy utility called apt-file which allows you to see which package owns a file even if it is not currently installed. I used it earlier to find where “mysql_config” lived so I could upgrade DBD::mysql. aptitude install apt-file && apt-file update then apt-file search filename

Tags:

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
Read User's Comments0