Choose or Lose
Posted by Vince Wadhwani on Nov 16, 2007 in | politics
I hate the fact that the political campaign for President is already underway. I'm tired of all the rhetoric already and the media does no one any favors by starting the circus early. Worse is that they've got a habit of creating drama and following stories rather than allowing candidates to address issues. If it were up to the media the Yankees and Red Sox would play for the pennant every year and then the Red Sox and Cubs would play each other in the World Series and both lose. Let the circle of drama continue! Today, I found a website that allows you to answer some simple questions and then matches a candidates views to your own. It seems to represent all the candidates equally so perhaps you should check it out and see what comes up. In case you were wondering -- I have nothing to do with this website at all.
Quick Tip: Add CUPS Printers via Web
Posted by Vince Wadhwani on Nov 15, 2007 in | gnu/linux
I thought I knew how to add a CUPS printer via the web browser. Just go to localhost:631 and follow the easy menus. But then I ran into an authentication error where it asked me to enter the username and password for "CUPS". No matter what I put there (my password, root password, etc.) it wouldn't allow me through. Turns out there are two things you need to do to get through.
Linux for Mac Users
Posted by Vince Wadhwani on Nov 14, 2007 in | gnu/linux
I've spent most of my Internet enabled life on Macs. I did have a stint with FreeBSD and Archlinux on a Thinkpad X41 but for the most part I'm used to the Mac keyboard with the super-handy command key. Moving to a Dell was a bit of a shock (for many reasons) made more difficult by the heavy use of the control key and lack of command key. There is an Alt key where command is on the mac keyboard and many apps like Katapult and Yakuake use it by default. That's great, but I don't want to unlearn all those keystrokes I'm used to on a mac. So let's swap the control and alt keys!
Kill and Restart Compiz in Debian Sid
Posted by Vince Wadhwani on Nov 11, 2007 in | gnu/linux
I recently loaded my laptop with a minor variant of Debian's Unstable (sid) called Sidux. I'll probably touch base on it more in another post but for now I'll say that it's pretty cool. Thanks to the efforts of the kernel developers Suspend/Resume works out of the box. That is, unless you have Compiz enabled.
Ubuntu Upgrade Went Wrong & Right
Posted by Vince Wadhwani on Nov 07, 2007 in | gnu/linux
Wow, it all started off so badly but in the end things turned out ok. This humble server was running on Ubuntu Edgy Eft and I decided to upgrade it to Gutsy via Feisty. I followed my own instructions and did an upgrade but it didn't quite work out. The upgrader crashed out on me with an error of some sort. Naturally, I thought to just type sudo do-release-upgrade but it didn't do what I expected.
Quick Tip: Call Will Paginate Only When Required
Posted by Vince Wadhwani on Oct 31, 2007 in | ruby
Say you've got a partial that you're using to render some collection of things like products. You want to call that partial when displaying all your products but also when you're only displaying your 5 most recent products. The problem is if you just call will_paginate(@products) in your view you'll get an undefined method page_count error.
sudo: unable to lookup via gethostbyname()
Posted by Vince Wadhwani on Oct 29, 2007 in | gnu/linux
I've been playing around with Slicehost lately. I was looking at the deprec gem and using capistrano to setup a rails stack on Gutsy Gibbon. Unfortunately, the procedure doesn't seem to work in Gutsy so I rebuilt my slice and stepped back to Dapper. In the process of upgrading to Feisty, I noticed that the sudo command gave an error:
sudo: unable to lookup mycomputername via gethostbyname()
Not sure when that started happening but it's consistent across all my rebuilds. So here's how you fix it:
Ajax Ruby API Without a Network
Posted by Vince Wadhwani on Oct 26, 2007 in | ruby
A while back I mentioned how to get the Rails API Without a Network. Well, Brian's been busy and he's not only updated his docs to include 1.2.4 and Rails Edge, but he's also put the Ruby API up as well using the same Ajaxy goodness as before. Head over to Ruby Brain to download it!
Thanks to Brian "Breakpoint" Chamberlain for letting this loose!
Free Music Download - Never The Nines
Posted by Vince Wadhwani on Oct 24, 2007 in | music
Upgrade from Feisty Fawn to Gutsy Gibbon
Posted by Vince Wadhwani on Oct 20, 2007 in | gnu/linux
Ubuntu has come a long way since Warty Warthog. Ever since their first LTS release (Dapper Drake) it's been possible to upgrade fairly painlessly from one distribution to the next. If you're running a slice over at Slicehost you'll likely be able to get Gutsy by default, but until then follow these instructions for upgrading from Dapper to Feisty and then read on for the dead-simple instructions to go one step further to Gutsy Gibbon. These instructions are best used for servers.. there are other methods for Desktop upgrades.