Article 24
It's a mystery to me why the FreeBSD folks don't publish this better (for example, a mention on http://www.freebsd.org/security/ doesn't seem unreasonable), but FreeBSD has an easy to use system for...
View ArticleArticle 23
A couple of MacPorts errors I just encountered:Error: Unable to execute port: can't read "frameworks_dir": no such variableI had version 1.6 and it seems the recommendation to fix this is to update to...
View ArticleArticle 22
When sorting complex structures in Perl is is common to use syntax like:sort { $lname{$a} <=> $lname{$b} || $fname{$a} <=> $fname{$b} } @namesThe Perl sort documentation lists examples with...
View ArticleArticle 21
Speaking of Perl, Ruby and sorting, sort in both Perl and Ruby allow you to specify a code block to implement your own arbitrary sorting routine. Perl's documentation shows you how you can define this...
View ArticleArticle 20
I was working on building the mysql ruby gem. My mysql install is in a non-standard location. I could get the gem to build with syntax like:gem install mysql --...
View ArticleArticle 19
With the Oracle client 10.2.0.1.0 installer if you are automating the install with a response file, set UNIX_GROUP_NAME to something like say 'dba', then run the install but you are not in the dba...
View ArticleArticle 18
Update: SourceForge no longer offers the Wikispaces wiki, this post is left up for historical curiosity.The default wiki for SourceForge projects is used to be called Wikispaces. The CSS stylesheet...
View ArticleArticle 17
How to insert a new line above the current line in TextMate? A la capital O in vi? I couldn't find it in the TextMate book, nor searching around online. A few seconds of fiddling on the keyboard turned...
View ArticleArticle 16
Excel on the Mac defaults to portrait mode. Nearly all spreadsheets I create I want in landscape and finally tracked down how to set this as the default.Open up a new documentSet it to landscape via...
View ArticleArticle 15
I've been using the workaround shown at http://blog.zenspider.com/2008/05/httpsssl-warning-cleanup.html for a while now to eliminate the "using default DH parameters" warning you get when using https...
View ArticleArticle 14
If your Ruby app using https or some other form of SSL is complaining about:net/http.rb:567: warning: can't set verify locationsThen you probably passed in a bogus path to your CA file or path. In my...
View ArticleArticle 13
I needed to set the UID for an account on my Mac OS X 10.6 (Snow Leopard) box. Various posts online said that you can right click on an account in System Preferences -> Accounts to access the...
View ArticleArticle 12
User-Friendly RESTful Routes in Rails RESTful routes created via map.resources use the :id field for URLs for individual resources. I.e. if user 'joebob' has an id of 42 then the URL for his resource...
View ArticleArticle 11
Filesystem Hierarchy Standard for Mac OS X I frequently refer to the Filesystem Hierarchy Standard when trying to figure out where to put files on Linux systems. I recently started doing some Mac...
View ArticleArticle 10
I'm working on a MacRuby project in Xcode. I upgraded Xcode from 4.0 to 4.0.1 and Interface Builder stopped working right for my project. New outlets weren't showing up so I couldn't connect them to...
View ArticleArticle 9
Upgraded to Mac OS 10.7 (Lion)? Tried to update Macports with sudo port selfupdate and get: Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed...
View ArticlePython Packages
I'm new to the Python and Django world, having primarily worked with Ruby and Ruby on Rails for the last few years. In reading about how to manage dependencies several folks referred to pip and...
View ArticleArticle 7
FIOS Router CLI and DHCP I recently got Verizon FIOS service. The router Verizon provides is an Actiontec MI424WR. Verizon goes to some trouble to hide the Actiontec branding; but, for example, the...
View ArticleArticle 6
Ruby, OptionParser, and Switches with Optional Arguments Ruby's OptionParser supports switches with optional arguments. Both the official documentation and the pickaxe book give examples of various...
View ArticleArticle 5
Versioning RESTful APIs There seems to be general (but definitely not complete) consensus among REST experts that the proper way to version a REST API is via custom MIME/media types. You can Google...
View Article