Posted by theBlatherskite
Wed, 25 Oct 2006 00:33:00 GMT
My pet project has recently grown to the point where I needed to shift over to a modern revision-control tool like Subversion (also known as svn – more info here).
I need to be able to access by repository from multiple computers, but access needs to be restricted and the authorization encrypted. Though the solution is simple (svn+ssh), its implementation required me to become much more familiar with various aspects of the console I hadn’t really explored.
This article assumes you have shell access on a remote server, where you intend to host your repository, and svn successfully installed. If you’ve got that, let’s right jump in!
Read more...
Posted in Ruby on Rails, Security, Servers | Tags repository, site5, ssh, subversion, svn | 7 comments | no trackbacks
Posted by theBlatherskite
Tue, 10 Oct 2006 02:03:00 GMT
I recently had to install FreeBSD on an older computer that had been reconditioned as a server. This entry walks through the basics of the installation (for a more detailed walkthrough, or more information about any specific step, refer to the FreeBSD documentation manual’s installation section.
Read more...
Posted in Servers | Tags FreeBSD, install, os, server, sysinstall | no comments | no trackbacks
Posted by theBlatherskite
Wed, 30 Aug 2006 11:47:00 GMT
New blogger that I am, I tried to sign up over at technorati last night. I’ve been joining new services like crazy lately in conjunction with my new stealth project (which, unfortunately, I’m not yet allowed to tell anyone about. But I promise you’ll be the first to know when it goes public), and since it gets hard to keep all those passwords straight I generated my 24-character passphrase in KeePass Password Safe before copy and pasting it into the technorati registration page – a little detail which will be important in a moment.
Read more...
Posted in Ruby on Rails, Security, Rants | Tags passphrase, password, rant, security, technorati, validation | no comments | no trackbacks
Posted by theBlatherskite
Tue, 29 Aug 2006 23:11:00 GMT
Say you’ve got a rails project, and you want it to interact with money in some way (probably not an unreasonable supposition). For this entry, we’ll pretend you’re working with a price attribute. If you map price to a database column of type decimal, it’ll come out as a float in ruby and you’ll end up with all sorts of nasty rounding errors (example, and some explanations).
I spent some time today looking for a simple solution to let me add prices together (you might think that’d be a basic capability in the easy-on-the-developer rails universe… but apparently you’d be wrong).
Read more...
Posted in Ruby on Rails | Tags acts_as_priceable, dollars_and_cents, float, plugin, pricing | no comments | no trackbacks
Posted by theBlatherskite
Thu, 17 Aug 2006 19:58:00 GMT
So acts_as_taggable seems, in theory, like quite a useful bit of code… but trying to get it working caused me more headaches than one would hope for a glorified convenience-method.
The main information source seems to be dema’s blog posting, but after painstakingly stepping through the instructions there I’ve come to the conclusion that the syntax listed no longer functions. Although it was posted more than a year ago, it still seems the most recent (decent) reference that I could find (note that he also has a previous article available here).
After struggling for quite a while, I’ve come to the conclusion that acts_as_taggable has been more or less ignored as a plugin (is this true? dema’s comment here states that responsibility for maintaining the plugin has drifted elsewhere), but the gem version appears to be under active development.
Read more...
Posted in Ruby on Rails | Tags acts_as_taggable, gem, plugin | 3 comments