#63: upgrading to Rails 2.3 yields ArgumentError for dynamic finders
Solved!
Doing something like Post.find_by_title('something') yields something like:
ArgumentError in WelcomeController#index
wrong number of arguments (2 for 1)
Application Trace | Framework Trace | Full Trace
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3...
#62: Share SSHFS via Samba
Fuse doesn't allow other users to access mounted directories, in order to get it working with samba and the security=user model you need to pass 'allow_other' to the call of sshfs:
mount -t smbfs -o username=<user>,password=<passwd> //<server...
#61: MacBook Pro network access slow on battery in 10.5.8
Solved!
After upgrading to Mac OS X 10.5.8 on the MacBook Pro 15 in (early 2008), my wireless network speed plunges when on battery power, compared with adapter power. Ping to the nearest network router on AirPort Extreme should be ~1ms (and is when on adapter power...
#59: getFatBlock error when upgrading Seagate Barracuda 7200.11 firmware
Solved!
When trying to upgrade firmware on a Seagate Barracuda 7400.11 from version SD15 to SD1A, the FreeDOS boot CD reports a number of " error reading partition table drive 01 sector 0 " errors. This is followed by " get Fatblock failed:0x000000e8 " or some variant...
#58: reverting a single svn revision
Solved!
How have I gone this long without know how to do this...
#57: Access raw pixel data from iPhone movies
I have the new iPhone and want to build an app with it for computer vision research. Ideally, we could process video in real time. This is not possible within the confines of the SDK. Next goal is to be able to at least process a video on the iPhone after it...
#56: Passenger can't find a shared module in Rails
Solved!
I recently put some shared code from a Rails app into a module in app/models/shared/sweepers_module.rb. The module itself was called Shared::Sweepers. I included it in some sweeper classes, and everything worked fine in Mongrel. In Passenger, though, I got...
#55: accessing locals hash within an ActionView partial
Solved!
How do you access the hash of locals you pass into a partial from within that partial?
#54: mac is stuck? what's ctrl-alt-del??
Solved!
stupid mac just locked up. i'm a PC guy looking for ctrl-alt-del
#53: slicing rexml collections
Solved!
REXML is dumb and doesn't implement normal Ruby enumerable slicing with ranges.
#52: My computer is slow! Firefox is a CPU/resource hog!
I'm on OS X 10.5 running FF 3
#51: Broken shell command substitution in crontab
Solved!
In a cronjob, I want to execute a date sub-command and substitute the results in place into the overall shell command. Something like:
1 5 * * * bash -c 'cp /foo/bar /foo/bar.$(date +%Y%m%d).sql'
Unfortunately, this breaks with an error at runtime:
/bin...
#50: MySQL suddenly stops working: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I had to reboot my Mac (OS 10.5, Intel MBP). After that, MySQL wouldn't start back up, giving me:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
when trying to call mysql on the command line.
Calling mysql...
#49: Subversion 1.6.2 explodes on first network access
Solved!
After compiling Subversion 1.6.2 from source on OS X 10.5 Leopard, the compilation is apparently successful, but svn dies when it tries to connect to the network for the first time. Crash log reports that symbols are missing from libneon.dylib.
Crash report...
#48: Rails to Blogger, Wordpress integration
Looking for a reasonable library or wrapper around the Blogger API and Wordpress AtomPub/XML-RPC APIs, so that I can syndicate content to various blog engines, or just post content to user-specified blogs in general.
#47: finding a time zone give lat/lon coordinates
Solved!
A little while ago we started using time zones in iNat, which was more troublesome than anticipated. One problem I ran into was automatically setting the time zone from pre-existing observations given their lat/lon. I ended up http://www.earthtools.org/webservices...
#46: JEPController:checkBundle couldn't find libawt.jnilib
Solved!
At some point, my Firefox 3.0.x on OS X 10.5 stopped opening Java applets. The failure occurs silently -- the applet simply doesn't run, with no apparent error message in the browser.
In the Console log, the output is
5/20/09 11:43:02 AM [0x0-0x104104].org...
#45: why is Rails logging to ".log"?!
Solved!
I started using Workling, but quickly realized it was logging to "log/.log" for some inane reason.
#44: multivalue facet fields in acts_as_solr
Solved!
Solr supports faceted search, which is good, but acts_as_solr has pretty terribly documentation, which is bad.

kueda
yliu
lindsayt