Tag: fix

  • Ubuntu 12.10 to 13.04 Server Upgrade Error

    Are you Googl’ing around trying to figure out why you’re getting this error when trying to `do-release-upgrade’ your Ubuntu 12.10 system, even though you’re pretty much up to date? root@mia:~# do-release-upgrade Checking for a new Ubuntu release Traceback (most recent call last): File “/usr/bin/do-release-upgrade”, line 145, in <module> fetcher.run_options += [“–mode=%s” % options.mode, AttributeError: type…

  • LaTeX Broken On MacPort “texlive” Update

    I spent about 4 hours today troubleshooting a stupid, stupid issue with the “texlive +full” package as provided by MacPorts, which is required to run certain GUI LaTeX editors such as TeXShop. Several days ago I ran an innocuous-looking… preston$ sudo port sync preston$ sudo port upgrade outdated …and amongst many things that updated, texlive…

  • Rails 2.0: selenium-on-rails routes.rb fix

    When I updated a few projects to Rails 2.0 last year, selenium-on-rails stopped working … some issue with routing and the lame way selenium-on-rails adds its routes. I didn’t spend the time to figure out exactly what the routing problem was, but did manage to hack a quick fix into routes.rb. This feels like the…

  • Rails 2.0: Testing For Well-Formed XML With assert_well_formed

    Here’s an easy way to validate that you’re always rendering well-formed HTML in an ordinary Rails application. I’ve written and verified this on Rails 2.0.1…

  • Rails attachment_fu/Kropper Scaling Fix: attachment_fu_skip_resize

    I recently integrated Kropper into a custom RoR application for OpenRain affiliate img surf. A fundamental flaw in the upload-save-crop-save process used by Kropper is that attachment_fu automatically scales down the image on first save to :resize_to dimensions. After the subsequent crop–which may result in a significant drop in resolution–the image is scaled back up…

  • Fixing "wrong number of arguments" Error w/Rails 1.2.3 Upgrade

    If you’ve just upgraded your Rails gem from 1.2.2 to 1.2.3 and are getting the following error on database hits.. wrong number of arguments (1 for 0) /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/vendor/mysql.rb:566:in `initialize’ ..note that updating RAILS_GEM_VERSION in environment.rb appears to be required. Running a 1.2.2 application on 1.2.3 (even when 1.2.2 and all dependencies installed) will yield this…