You are viewing a read-only archive of the Blogs.Harvard network. Learn more.
Skip to content

{ Category Archives } fixes

Debugging when puppetd gives `read_cert’: super: no superclass method `read_cert’ (NoMethodError)

I just ran into this obscure problem with Puppet. I’m writing it down in the hopes I will remember not to do something like this again… $ sudo puppetd –test –noop /opt/local/lib/ruby/site_ruby/1.8/puppet/network/http_pool.rb:41:in `read_cert’: super: no superclass method `read_cert’ (NoMethodError)        from /opt/local/lib/ruby/site_ruby/1.8/puppet/executables/client/certhandler.rb:62:in `read_cert’        from /opt/local/lib/ruby/site_ruby/1.8/puppet/executables/client/certhandler.rb:24:in `read_retrieve’        from […]

Tagged

Spamassassin SIGPIPE errors and the zero file mail message mystery

Awhile back I was noticing I was definitely losing emails. As one can might imagine, this is a scary experience since this brings into doubt if the mail system under use is doing something funny to the mail. My first place to look was in the mail logs for the SMTP server and other associated […]

Getting Ruby 1.9.1p243 to work on OS X 10.5.8 with Japanese input support on irb

Awhile back I installed Ruby 1.9.1 in such a way as to co-exist with my current Ruby installation [1], [2] (I should use rvm [3] these days…) However, one issue that cropped up during an IRB session was I could not copy and paste Japanese characters into the IRB repl. This is very very painful […]

Using a non-standard port for Capistrano SSH gateways

I have a love-hate affair with Capistrano. It is a great tool if you are a Ruby person and need to do something NOW on a bunch of machines. But the docs are in a constant state of suck from my point of view. The Capify.org website helps for remembering the ‘simple’ details on what […]

Enabling ZeroConf / Bonjour DNS resolution in OpenSolaris

On small LAN networks that do not have an internal DNS server. There is a nice technology called ZeroConf that uses multicast to enable name lookup resolution. It has been baked into OS X for quite some time now. Linux and other UNIX flavors have been picking this up as well. OpenSolaris also includes this […]

Tagged

Insert the current filename into current edited file in vim

I had a need for inserting the name of the current file into a bunch of files I was editing. I was pretty sure there was a function to do this in vim and after some searching I was right. To insert the current filename. In Insert Mode, type CTRL-r % and it will insert […]

Getting X working again after swapping hardware on Open Solaris nv100

After having dain bramaged myself for years with Linux usage. I had gotten spoiled into believing an OS should make it simple to do the following: 1. Shutdown computer 2. Swap around hardware components 3. Restart 4. Life is good However any techie should tell you this is a pipe dream on Windows. Mac users […]

Getting KDE 4.1.0 on a Fedora 8 machine when KDE 3 is already there

According to the Fedora FAQ one should be able to update with just this sudo yum –enablerepo=updates-testing groupupdate “KDE (K Desktop Environment)” However when I did, I ran into some icons from packages kdepim-3.5.9 and kdegraphics-4.1.0 conflicting with packages crystalsvg-icon-theme and libkipi. Here is a log… file /usr/share/icons/crystalsvg/48×48/apps/kpalmdoc.png from install of kdepim-3.5.9-10.fc9.i386 conflicts with file […]

Fixing that svn: Unrecognized format for the relative external URL

So recently I saw this when doing a svn checkout of a project and ran into the following: $ svn co http://svn.somewhere.com/svn/projects svn: Unrecognized format for the relative external URL ”. Wonderful. This indicated to me there was a problem with the svn externals somewhere. After noodling a little I decided to Google around and […]

Multiple renaming utilities: mmv

There are many multiple file rename utilities that you can dig up. One that I am used to on Debian/Ubuntu-based distros is called rename which is one that is derived from the Perl Cookbook. However, note that this rename script does not seem to exist on other UNIX variants in a packaged format. It definitely […]

svnbackup-restore.rb, svnbackup’s handy companion tool

Doug Hellman’s svnbackup script tool is a really handy tool for setting up automated backups for a subversion repository. However, the non-fun time comes when one wants to restore a subversion repository that has way too many dumpfiles parts. The instructions for restoration are basically ‘roll your own’ if you want to try to automate […]

Can’t install anymore extensions in Firefox 3? Kill extensions.rdf

I’ve been trying out Firefox 3 and one strategy I do is to copy my Mozilla Firefox folder with me to whatever machine I go to so I don’t have to reinstall plugins, re-enter all my passwords, and configure everything about Firefox until I’m happy. However, it seems due to some reason or another I […]

One way to clean out a gazillion files in a directory without causing the server to hang on IO

Had a case where I had some rails app that was using files for its session store and had been running like that for months. While it was a careless (and dumb) thing to run it that way, we had to do something about it since it was eating up close to 85% of the […]

OS X 10.4.11 update, you suck

After a long time of not updating my trusty old iLamp iMac, I finally updated it to 10.4.11 over the weekend and let it lie. Later on I hear a report that Safari won’t start up. That’s odd, I’ve never heard of Safari having launch problems before. I check the log and I see something […]

Fixing that really irritating perl: warning: Setting locale failed. on OS X leopard

Anytime I’ve been running a perl based script on my leopard box I got this really irritating output with whatever else I was expecting: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = “En_US”, LANG = (unset) are supported and installed on your system. perl: warning: Falling back to […]