SCI Blog

My Spine is the Command Line

Tue, 05/19/2009 - 06:25 -- Kyle Skrinak
I love this kind of stuff. Here's a simple command line script that will output xHTML gallery of images in a single directory. Requires ImageMagick and zsh.
for i in sponsor-logos/*.*;do
j=`identify -format "width=\"%[fx:w]\" height=\"%[fx:h]\"" $i`
echo \<div\>\<img src=\"$i\" $j alt=\"$i:t\" /\>\<\/div\>

Cool vim random line shuffle trick

Sun, 05/17/2009 - 18:25 -- Kyle Skrinak
Recently, I needed to perform a random sort of lines in vim. After a little bit of googling, I came up with the following: (Works on Mac OS X Leopard and ubuntu 9.4) Create the following perl script file:
#!/usr/bin/perl -w
use strict;
use List::Util 'shuffle';
my @lines = <>;
print shuffle( @lines );

ubuntu 9.04: First Thoughts

Fri, 04/24/2009 - 07:51 -- Kyle Skrinak
I did a poorly-advised thing -- I upgraded my ubuntu production laptop to 9.04 on the day of its release. I have noticed that each successive kernel update pushed out of become increasingly reliable, and so my comfort level with performing low-level upgrades.

fink is dead; long live macports

Thu, 04/16/2009 - 04:53 -- Kyle Skrinak
I come not to bury fink, but to check macports out. If you look over my mac os x installation recipe (which is now more stained than my wife's kitchen recipes thanks to all the changes) fink is remarkably out-of-date, often bested by Apple hosted binaries. It all begs the question, why keep using it? MacPorts, on the other hand, is the distribution system of choice at gimp, imagemagick, to name two quickly. Let's see how it works; installing now.

Please hurry, FF 3.5

Mon, 04/06/2009 - 12:19 -- Kyle Skrinak
I was noticing odd jerky performance with Firefox 3.1b3 that wasn't making sense. So I ran the SunSpider benchmarks on FF3.1b3 and FF 3.0.8 with Firebug on and off. FF 3.0.8 with FB on is faster (5308) than FF3.1b3 with FB (beta) on (8350) which was a bit of a shock. I eagerly await the  official release of FF3.5 and the core add-ons updating to follow.

A faithful but ugly Puppy or a sexy but slow Crunchbang distro?

Sat, 03/28/2009 - 09:35 -- Kyle Skrinak
This is a followup to this post. About 2 months ago, I successfully installed Crunchbang linux on my old kitchen laptop. Why? Puppy is mostly stable and reliable but its built-in power management is bare bones. It has a scant number of packages built for it. (To wit -- getting sshd loaded is not trivial, as it should be) Its screensaver is as basic as they come.

A random thought on GoDaddy and their target buyer

Sat, 03/28/2009 - 08:11 -- Kyle Skrinak
I've noticed that the sites we run on GoDaddy are generally slower than non-GD sites. One site is particularly slow (a nearly unmodified Drupal installation) and I've been, ahem, corresponding with GD on the matter. I qualify that as the responses are nearly all boilerplate -- you can't miss the pattern after your third email question to their support staff.

Inserting Meta Descriptions in WordPress

Sat, 03/28/2009 - 06:55 -- Kyle Skrinak
Another problem, another plugin? Managing CMS plugins can become its own cost center if you're not prudent about selection and inclusion. Here is my most recent case in point. I need to add unique meta descriptions to WordPress. I've already added unique titles to this site via yet another plugin. So I found this page on adding one manually, which gets you 99% of the way there. He actually gets you all the way, but a tweak to his instructions brings it together.


Subscribe to SCI Blog