Rails project launcher (1)

Journal entry April 25, 2008

Jesper asked on the Copenhagen Ruby Brigade mailing list what scripts and tricks use to launch their environment when developing Rails projects on OS X. iTerm shell script A bunch of people pointed to this handy iTerm shortcut, which uses…

Copenhagen.rb, Programming , 1 comments

On Rails 2.0, SQL Server adapter, gems, vendor and load paths (0)

Journal entry November 22, 2007

Over the last few days I have been moving the BiQ application to Rails 2.0 PR. I’ve so far run into a fair deal of issues; one annoying one that I figured I’d share. The gist of the matter is…

BiQ on Rails, Programming, Projects , 0 comments

Looking for patch +1’s (2)

Journal entry September 18, 2007

During his keynote today, and now on the Rails blog, David explained the new policy for getting patches into Rails. Basically the new policy requires every patch to have documentation, tests and 3 supporters. It’s a welcome change, especially if…

Programming , 2 comments

Rails Rumble - The Return of Railsday (0)

Journal entry August 13, 2007

Looks like someone decided to resurrect the Railsday concept. While it has a different name, a different duration, a different judging process (and probably a ton of other differences), Rails Rumble is still all about getting a small team together…

Programming , 0 comments

OS X, MacPorts, ImageMagick, and RMagick (2)

Journal entry August 5, 2007

2 hours down the drain, and all I had to do: sudo port install ImageMagick sudo port install rb-rmagick…

Programming, Software, Technology , 2 comments

Using YSlow to optimize websites (7)

Journal entry July 26, 2007

Yahoo! has released a great Firefox addon - or rather, an addon for a Firefox addon - called YSlow. YSlow allows you to analyze and suggest improvements to various performance metrics on the website you’re currently visiting. For kicks I…

BiQ on Rails, Programming, Webdesign , 7 comments

Fixing FreeTDS on OS X like a Ruby-wielding ostrich would (3)

Journal entry June 25, 2007

I am having massive problems connecting my MacBook Pro with the Microsoft SQL Server 2000 we have at work. I’ve connected to the same SQL Server (more or less) painlessly from Debian a couple of times before, so it…

BiQ on Rails, Programming , 3 comments

Prototype and TEXTware QUICKfind vs Internet Explorer (5)

Journal entry April 16, 2007

You know we’re sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn’t it? After launching the rewritten and redesigned BiQ I…

BiQ on Rails, Browsers, Programming, Projects, Software, Technology , 5 comments

Launch: BiQ on Rails (3)

Journal entry April 2, 2007

After 6 months of evangelizing and advocating, followed by 6 more months of rewriting, and then 3 more months of building new features and enhancing existing ones, we have finally launched the new version of BiQ. Going from ASP/VBScript on…

BiQ on Rails, Programming, Projects, Software, Technology, Webdesign , 3 comments

Changes in Rails 1.2.3 (0)

Journal entry March 14, 2007

Rails 1.2.3 was released today, primarily to fix a few bugs and compatibility issues with the recently released Ruby 1.8.6. Since the Rails team doesn’t provide an aggregate changelog and I was going through the individual changelogs to see what…

Programming, Technology , 0 comments

Rails 2.0 deprecations (2)

Journal entry March 13, 2007

The Rails core team is cleaning up. That’s obviously a good thing, however it does leave us facing a kabillion deprecation warnings when running tests and whatnot. Unfortunately the official deprecations page appears to have been thrown together quickly after…

Read the full entry, Programming, Technology , 2 comments

I’m a top Rails contributor? (0)

Journal entry January 30, 2007

Cool, I made it into the top 40 Rails contributors in January. Which means I might end up with a free registration to the US RailsConf 2007 and a hotel room, courtesy of CD Baby - assuming enough of the…

BiQ on Rails, Programming , 0 comments

Online payments are still a mess (0)

Journal entry January 16, 2007

This is a followup to my previous rant about the state of accepting online subscriptions. A few things happened after my post. Most importantly the client met with a focus group of potential users, and - among other things -…

Business, Programming, Projects, Technology , 0 comments

After the rewrite (2)

Journal entry January 2, 2007

Around 6 months ago I started the actual progress of rewriting our existing, customer facing application at BiQ. A week or two before christmas the rewrite went feature complete. That is; all the features we want and need in the…

BiQ on Rails, Programming, Projects, Technology , 2 comments

One reason to upgrade Ruby to 1.8.5 (0)

Journal entry December 19, 2006

Last week I took a quick executive decision to deploy BiQ on Debian Etch instead of Sarge as initially planned. Mainly so we could take advantage of Ruby 1.8.5 (let me hear you scream “Mongrel”) and Subversion 1.4.something. Today, yet…

BiQ on Rails, Programming, Software , 0 comments

Simplifying my Rails views (4)

Journal entry December 8, 2006

Rails views are powerful creatures. You have the full power of Ruby right at your fingertips, which makes it easy to write too much Ruby code in your view making them become cluttered and hard to read. The following is…

Programming , 4 comments

Accepting online subscriptions is a mess (6)

Journal entry December 7, 2006

Payment gateways, merchant accounts, transaction fees, statements, grraaaah, it’s driving me bonkers. Here’s the deal: I have a client wanting to sell subscriptions for his web application. Nothing fancy, everyone’s doing it. It should be easy finding a payment gateway…

Business, Programming, Projects, Technology , 6 comments

Google Code Search launches (1)

Journal entry October 6, 2006

Google Code Search is a new search on Google Labs specifically for searching through, well, source code. And what do the geeks do with it? Figure out how many fucks are in the code of various languages Find serial number…

Programming, Technology , 1 comments

Railsconf Europe 2006 (0)

Journal entry September 14, 2006

Railsconf Europe 2006 opened today and is now well underway. Unfortunately, I did not get to go there, however Jesper and other members of Copenhagen.rb are there, and Jesper is liveblogging the event on copenhagenrb.dk. Good job, Jesper!…

Blogging, Copenhagen.rb, Programming , 0 comments

Slowing down tests (0)

Journal entry August 25, 2006

There I go again, trying to be too clever for my own good. In an attempt to do less I tossed the fixtures loading into test_helper. I figured it’d be a lot easier to just add to that single fixtures…

Programming , 0 comments

An actual helpful error message (0)

Journal entry August 11, 2006

Wow, an exception error message that actually suggests a fix for the error, and the fix is correct. How great is that? ActionController::RedirectBackError: No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called…

Programming, Usability , 0 comments

Run specific tests via Rake (6)

Journal entry July 28, 2006

Geoffrey Grosenbach recently discoved what’s effectively method_missing for rake tasks. I’ve taken his experimental proposed rake task, and changed (I’m reluctant to say “improved”) it slighty. This modified version uses a different syntax (rake test:foo:bar instead rake foo_bar) and regex…

Programming , 6 comments

The first small steps (3)

Journal entry July 25, 2006

I am now well over a week into putting BiQ on Rails, and I’ve been having so much fun. The fact that I actually getting paid for writing code that’s pretty and well tested means so much to the enjoyment…

BiQ on Rails, Business, Programming, Projects , 3 comments

BiQ on Rails, it’s a go! (8)

Journal entry July 11, 2006

At long last! I got the final commitment from my boss. We’ll be moving down the path of rebuilding BiQ using Ruby on Rails. Goodbye stupid ASP, hello sweet Ruby. Our preliminary tests shows that nothing we are currently doing…

BiQ on Rails, Programming, Projects , 8 comments

SQL Server 2000 seems confused (2)

Journal entry July 4, 2006

So I am getting this error in my Windows Application Event Log: The log file for database ‘tempdb’ is full. Back up the transaction log for the database to free up some log space. Fair enough, it happens. But when…

Programming, Projects , 2 comments

MSDN hates Firefox (6)

Journal entry June 30, 2006

Microsoft, a company that proclaims to be devoted to web standards, has updated parts of their MSDN Library VBScript Language Reference. They’ve hidden the most valuable details of each funtion behind some pointless click-to-expand links. Apart from being a usability…

Programming, Webdesign , 6 comments

Phew, Rails Day is over (4)

Journal entry June 19, 2006

After 24 hours of insane, non-stop coding, designing, talking, and general tom-foolery, Rails Day 2006 is over. Nearly 200 teams competed, committing over 5000 total changesets to the official SVN server. My team Even though I got a team fairly…

Programming, Projects, Webdesign , 4 comments

Railsday is acoming (4)

Journal entry June 13, 2006

This coming Saturday will bring about 24 hours of Rails programming mayhem. Participating would be extremely cool and fun to boot, but I have no team or no really good ideas for a killer application. So uhm, anyone need a…

Programming , 4 comments

Ruby on Rails Copenhagen meetup venue

Journal entry June 12, 2006

The venue for the Ruby on Rails Copenhagen meetup has been found: Café Selina (top floor), Skindergade 43, Copenhagen. Jesper has the details and links….

Copenhagen.rb, Life, Programming

Calling Railsheads in Copenhagen

Journal entry May 31, 2006

Thursday, June 29th, at 20:30 we (Jesper Rønn-Jensen and I) would very much like to see anyone with a passion for Rails at some unspecified location in Copenhagen. It’s just going to be a casual and relaxed meetup to see…

Copenhagen.rb, Programming

Benchmarking Ruby, DBI, and ODBC (3)

Journal entry May 17, 2006

Also known as “The blog post where Jakob publically ridicules himself pretending to know squat about benchmarking” As part of our investigation into changing platforms, we’ll be looking for ways to make Rails or Ruby break down and cry. We’ll…

Read the full entry, Programming , 3 comments

Watch out for those return values (0)

Journal entry May 16, 2006

For the first time a Rubyism has bit me using Rails. I needed to make sure a field was set to false and not null. So I added af before_save callback to my ActiveRecord model: before_save :set_defaults def set_defaults self.signup_completed…

Programming , 0 comments

One day with Scott Raymond (2)

Journal entry May 14, 2006

Thursday marked a major step on the path to exploring Rails as an alternative for BiQ. As I’ve mentioned earlier I’ve been looking for someone to come and present Rails for us. We found Scott Raymond of Blinksale and IconBuffet…

Read the full entry, BiQ on Rails, Business, Programming, Projects, Technology , 2 comments

acts_as_legacy (2)

Journal entry April 21, 2006

At the recent Canada on Rails conference Robby Russel introduced his upcoming plugin, Acts as legacy. Facing a 60+ table legacy system, I will definitely be watching that space. Acts_as_legacy would allow me to not worry about our existing scripts…

BiQ on Rails, Programming, Projects , 2 comments

Ruby, Rails, and the mainstream (6)

Journal entry April 7, 2006

It seems I have stirred quite a pot around the office with my recent ravings about Rails. Today the tech-head on the board sent me this article about why Rails won’t make it into the mainstream and asked for my…

Read the full entry, Programming, Technology , 6 comments

Using SQL Server views as Rails “tables” (0)

Journal entry March 27, 2006

In an effort to get a feel for the effort it’ll take to rewrite BiQ, I’ve been rewriting a vertical slice of our functionality. As part of that I’ve been setting up a test Ruby on Rails application and building…

BiQ on Rails, Programming , 0 comments

Running Rails tests on SQL Server (0)

Journal entry March 27, 2006

Quick tip: If you want to run your Rails test suite through Rake on Windows using SQL Server, you need to have the scptxfr.exe utility in your path. On our development server, which is a pretty standard Microsoft SQL Server…

Programming , 0 comments

Looking for a Rails champion (2)

Journal entry March 16, 2006

At the day job I’m the sole developer and maintainer of a legacy ASP/VBScript system. Yes, ASP/VBScript. No, not .NET. And yes, it’s driving me insane. The code contains around 42000 lines of VBSCript drivel and 30000 lines of supporting…

BiQ on Rails, Business, Programming, Projects, Technology , 2 comments

Making CodeHighlighter play nice (0)

Journal entry February 27, 2006

I want snippets of code that I publish here on Mentalized to have fancy colors and syntax highlighting. It makes reading code easier in my editors and it should make it easier here as well. Enter CodeHighlighter. a lightweight, unobstrusive…

Read the full entry, Mentalized.net, Programming , 0 comments

When numbers aren’t numbers (4)

Journal entry February 27, 2006

Today, on #rubyonrails, a stubborn developer insisted on storing phone numbers as integers. The rest of the channel tried to persuade him/her that this was a really, really bad idea. Part of the conversation went: <Cyanshade> you assume that all…

Programming , 4 comments

Hello Ruby on Rails world (1)

Journal entry February 6, 2006

To some people Rails have a fairly high learning curve. And certainly, it’s somewhat higher than, say, PHP. However, in the longer run learning Rails definitely pays off. This is a step by step tutorial to getting over the first…

Read the full entry, Programming , 1 comments

RailsConf, waah waah (0)

Journal entry February 3, 2006

So RailsConf 2006 registration has opened. Boy oh boy, would I like to go. But clocking in at minimum $400 for registration and a lot more for travelling expenses I can’t justify it. The side job doesn’t currently make enough…

Programming , 0 comments

Kill the Rails pluralization (0)

Journal entry February 2, 2006

One of the oft-ranted about features of Rails, is the Inflector - also known as that f***** pluralizer. To turn it off, put this in your config/environment.rb, below the line that says “Include your application configuration below”: ActiveRecord::Base.pluralize_table_names = false…

Programming , 0 comments

no such file to load — mkmf (3)

Journal entry January 24, 2006

While checking out Scott Baron’s coverage-tool for Ruby, insurance, I ran into a minor issue on my - by now - fairly beat up Debian installation. jcop@mental:~$ sudo gem install insurance Attempting local installation of ‘insurance’ Local gem file not…

Programming , 3 comments

Ruby on Rails 1.0 released (0)

Journal entry December 14, 2005

Woo, Ruby on Rails finally gets that mythical 1 point oh label. Congratulations core team. And with a great-looking new website designed by Jason Fried, 37signals is making sure noone misses the link between the signals and Rails. Good things…

Programming , 0 comments

Announcing WoW Snitch (0)

Journal entry December 7, 2005

WoW Snitch is a small application of mine that eases the pain of uploading data from your World of Warcraft AddOns to multiple websites. If you know what Matt Millers fine UniUploader is and does, you can think of WoW…

Games, Programming, Projects , 0 comments

Setting the request content type in Rails (0)

Journal entry November 14, 2005

To set the content type and character set of your responses of your Rails applicaiton, add this to your Application Controller (/app/controllers/application.rb): class ApplicationController < ActionController::Base before_filter :set_content_type def set_content_type @headers["Content-Type"] = "text/html; charset=utf-8" end end This can obviously be…

Programming , 0 comments

How to stay on Rails 0.13.1 (1)

Journal entry October 26, 2005

In these times where Rails 1.0 Release Candidates introduce memory leaks, bugs, and whatnot, you might want to lock your Rails application to a tried and tested version. In your config/environment.rb, change your require_gem lines from require ‘active_support’ require ‘active_record’…

Programming , 1 comments

My stages of Ruby on Rails acceptance (0)

Journal entry October 14, 2005

Andy Budd has posted a about the stages of technological acceptance. They seem to mirror my acceptance of Ruby and Rails quite well. I remember back when David showed me Ruby for the first time. Come to think of it,…

Programming , 0 comments

has_and_belongs_to_one_self (0)

Journal entry October 4, 2005

This little Ruby on Rails snippet solves a problem I’ve seen some people get confused by. I figured I’d share my way of doing it. The trick to behind creating a has_and_belongs_to_many association that associates rows in the same table…

Programming , 0 comments

Respect my table name prefix (0)

Journal entry August 23, 2005

What’s wrong with this line of Ruby on Rails code? Car.find(:all, :conditions => [‘cars.year = ?’, @year]) If you’re doing your own, internal application, nothing major is wrong. However if your application is meant for distribution and end-user-deployment, you’re making…

Read the full entry, Programming , 0 comments

Hire people, not languages (0)

Journal entry August 22, 2005

Aristotle Pagaltzis of Plasmasturm about hiring people with no experience in some specific programming language: […] if I was a manager, I’d consider someone who has no experience with the tools the company uses but no problem picking them up…

Programming , 0 comments

Readable Rails code (4)

Journal entry August 18, 2005

Man, I love how humanly readable Ruby on Rails code can be. I mean, I reckon even my mother could guess what this line of actual code does: redirect_to login_url unless current_user.has_permission_to(MANAGE_USERS)…

Programming , 4 comments

If your WM/Picture describes a fish (0)

Journal entry April 25, 2005

I had this sent in a mail today, and frankly am not quite sure what to make of it. According to MSDNs documentation for the WM_PICTURE structure, if your structure ever needs to contain “A bright colored fish”, you need…

Programming , 0 comments

MySQL Error 12 from table handler (2)

Journal entry April 8, 2005

Lately I’ve been getting the occasional “Error 12 from table handler” from the MySQL server on my latest pet project. It’s only certain queries that fail, but when it has failed once it seemingly keeps failing until the MySQL server…

Programming , 2 comments

Ruby on Rails hurts developer productivity (0)

Journal entry March 18, 2005

Gah, using Ruby on Rails is seriously influencing my productivity at work in a negative way. I take longer doing simple stuff, my code has more errors and never works the first time anymore. “Why? How? Everybody else praise Rails…

Programming , 0 comments

Hunting down VBScript error codes (0)

Journal entry December 9, 2004

MSDN’s documentation sucks. Wanting to raise a runtime error in VBScript, I looked up the appropriate method; err.raise on MSDN. The description there is pretty straightforward, until you get to the part where you want to decide on an error…

Read the full entry, Programming, Webdesign , 0 comments

Retrofitting unit tests (1)

Journal entry December 1, 2004

I spent a good deal of yesterday adding testcases to the recently added unittests on BiQ. I really like the way unit testing invites me to break my code by coming up with unhandled cases. I basically went through my…

Programming , 1 comments