Rails Security Alert

2013-01-10 06:20:28 +0000

Rails has just had a rather nasty security alert, get your application upgraded now. If you know what you are doing, you can follow the instructions inside of the Security Alert notes, if you don’t, then you can get an fixed price upgrade service from reInteractive. But whatever you do, do it soon.

Read the rest of this entry

After installing a second drive with my home folder on it in my MacBook Pro, I noticed that FileVault 2 had only encrypted my main volume.

This was a problem, because most of the sensitive data is on the second volume, with my home folder. So it had to be fixed.

The solution is quite simple:

Read the rest of this entry

I have a 15" Macbook Pro, early 2010 model. It had a 500Gb Seagate 7200 RPM Momentus
drive in it, and had been serving me well over the past year but I wanted to give it
a speed boost, so I purchased a 240Gb SSD for the OS drive and new 500Gb Seagate Hybrid
drive with an OWC optical bay mounting kit for the data drive.

Read the rest of this entry

If you have a Rails 2.x app and hitting this, there is a simple fix while you wait to upgrade to Rails 3.

Read the rest of this entry

A New World of Resources

2011-05-23 22:04:00 +0000

Last year I attacked a long lost black sheep of the Rails family, ActionMailer. This was because I had a project that needed to use email and I found the current implementation, shall we say, somewhat lacking. This year, I’m turning my attention to really the only remaining black sheep left, ActiveResource.

Read the rest of this entry

Rails Static Pages

2011-04-18 13:00:00 +0000

Static pages are one of those things that you have to get around to doing for every website. This is how we implemented them on StillAlive to make them maintainable and also cacheable.

Read the rest of this entry

Twitter Replacing Rails? So?

2011-04-09 21:25:00 +0000

Twitter are reportedly moving away from Ruby on Rails. It’s on a lot of people’s tweets and on our Rails Oceania Mailing list. But the real question that should be asked is “So?”

Read the rest of this entry

If your backups on EngineYard cloud are zero length, maybe it is a permissions problem.

Read the rest of this entry

Our Rails Rumble Entry - StillAlive.com

2010-10-19 18:18:00 +0000

StillAlive.com is our RailsRumble entry, and I am quite happy with it!

Read the rest of this entry

I had the situation where I wanted to rename a basic part of the TellThemWhen website, that is, changing the name of “instants” to “notifications”. As this was a major part of the whole website, I had to make sure existing URLs still resolved correctly, luckily in Rails 3, this couldn’t be simpler!

Read the rest of this entry

RubyX are the maintainers for the RailsPlugins.org website with hosting kindly donated by EngineYard. As the site is all about compatibility with Rails 3, the irony was not lost on us that the site is running on Rails 2.3.5. I will do a series of posts which cover how we updated the site to Rails 3.

Read the rest of this entry

A new protocol for social interaction

2010-09-19 01:31:00 +0000

In my last post I discussed the bubbling up horrors of having our online identity controlled by faceless mega-corporations. But it didn’t really provide any useful direction. This is my attempt to fill that gap. Specifically, how should we go about sharing our thoughts and emotions online, without having to give up the ownership of our data to a centralised body? These are my thoughts.

Read the rest of this entry

What is a distributed social network?

2010-09-17 02:16:52 +0000

I’ve been reflecting on the future of the “social networks” and contemplating on how modern solutions have gotten it wrong. These are my musings.

Read the rest of this entry

Bundler and Public Git Sources

2010-09-16 17:58:00 +0000

If you have a public git source in your production Gemfile, then you are doing it wrong.

Read the rest of this entry

The docs for Heroku and memecached do not cover Rails 3. So here is the short version:

Read the rest of this entry

Why Bundler?

2010-09-10 03:22:37 +0000

I have moved all of my Rails applications, and every client application I am consulting for over to Bundler and using Gemfiles, and you should too.

Read the rest of this entry

Rails Commit Access

2010-09-10 02:58:41 +0000

Hi all, I’m really happy to announce that I am the first Australian to have been invited into the commit team for Ruby on Rails!

Read the rest of this entry

Introducing TellThemWhen

2010-09-09 15:44:00 +0000

I have had a scratch I have wanted to itch for a long time, and that is about how to share times online. TellThemWhen is my solution to this problem.

Read the rest of this entry

You might run into this problem if you are bringing a Rails 2.3 app onto Bundler, specifically, when you try and run “rake cucumber” or just “rake” for RSpec you get an error about uninitialized constant Rails::Boot::Bundler.

Read the rest of this entry

This Relationship is Worth Nothing

2010-06-13 10:50:10 +0000

Today was the last day I had booked in my hotel room. I had won this room through an Internet bidding service at a heavy discount of $85 per night. However, I needed to extend my stay in the hotel another two days and that is where this relationship went to hell.

Read the rest of this entry

Thank YOU...

2010-06-11 14:50:46 +0000

In his recent keynote to RailsConf 2010, Gary Vaynerchuk gave a wonderful talk about the power of “thank you”. Something we all intrinsically understand, yet not enough of us practice.

Read the rest of this entry

Inline Attachments for ActionMailer

2010-06-07 23:40:00 +0000

ActionMailer’s support for inline attachments sucks. Totally. Until now.

Read the rest of this entry

Note, this post has been recreated now that Rails 3 has been released. Please see: Updating Railsplugins.org to Rails 3

Read the rest of this entry

It is moments like these that you realise why it is you love Ruby so much…

Read the rest of this entry

Here are the simple (?) steps to get Rails 3 running with the above technologies.

Read the rest of this entry

Action Mailer, go Proc thyself

2010-05-03 10:11:00 +0000

On my recent Rails Dispatch screen cast, I had a seemingly innocent example of a default header, using Time.now to insert a time stamp.

Read the rest of this entry

The Real News Donation Drive

2010-04-30 10:33:35 +0000

If you haven’t checked out the The Real News Network, now is the time.

Read the rest of this entry

ActionMailer ScreenCast and Article

2010-04-24 04:43:14 +0000

I was asked by the guys at EngineYard (who have created RailsDispatch) to host this week’s topic, ActionMailer.

Read the rest of this entry

Installing RSpec for Rails 3

2010-04-14 20:48:06 +0000

Installing RSpec for Rails 3 was quite simple, here is a short guide to make sure you can also do it :)

Read the rest of this entry

I am speaking at RailsConf 2010

2010-04-12 05:51:17 +0000

If you visit my website, you can see the badge, and it is true, this Aussie munchkin is making the trek to the US of A to talk to a bunch of people about a little section of Rails.

Read the rest of this entry

In Rails 3 the location and way you declare the session secret and session store have changed.

Read the rest of this entry

You need to sing that title along to this tune but it struck me as a great idea for a post.

Read the rest of this entry

If you are switching over a Rails 2.3 app to Bundler with a Rails App, or you are setting up a new one, you might run into this error when you try to boot rails or run a rake task, thankfully the solution is simple.

Read the rest of this entry

Bundle Me Some Sanity

2010-03-31 21:40:44 +0000

You know, there are these two guys working in broad daylight on Bundler, Yehuda and Carl (he’s the one in the sidecar), but I don’t think people have really grasped the importance of what they are doing.

Read the rest of this entry

Getting Mail (and therefore ActionMailer 3) working with GMail SMTP is crazy simple, if you know how.

Read the rest of this entry

Put your mailer where the action is!

2010-03-02 04:28:20 +0000

Recently I was pointed at an article by Robby on Rails which discussed where mailers belong. Well, after reading the amazingly long discussion, I feel the solution is quite simple.

Read the rest of this entry

Why Force a Choice?

2010-02-20 17:48:58 +0000

Recently I have been reading a bit from the Python crowd, and I realised a key point on why Rails is successful, you are not forced to choose.

Read the rest of this entry

How to make an RSS feed in Rails

2010-02-12 22:12:05 +0000

Easy. Don’t. Use an ATOM feed instead. Rails is opinionated software, it has an opinion on feeds, there is an atom_feed helper, but no rss_feed helper? Omission? Nup.

Read the rest of this entry

Rails 3 Routing with Rack

2010-02-07 05:56:12 +0000

You probably all have heard that “Rails lets you route to Rack applications directly” and thought “Oh really?” well… bet you didn’t think it would be this simple.

Read the rest of this entry

Bundle me some Rails

2010-02-06 00:42:17 +0000

Bundler rocks, but you need to think differently about how to start and run your Rails app.

Read the rest of this entry

Helping out in Haiti

2010-02-05 15:03:33 +0000

Lots of people are flying to Haiti to help out from all walks of life, good to see some Scientologists getting in there as well.

Read the rest of this entry

Watch your self

2010-02-05 02:36:49 +0000

Blocks and closures are probably the most powerful, and least understood part of the Ruby programming language, combined instance_eval, it can create some unintuitive bugs.

Read the rest of this entry

Is Rails 3.0 a Game Changer?

2010-02-04 00:38:07 +0000

With Rails 3 on its way to release, and all it is bringing in terms of features and refactorization, some might be wondering, is it a “game changer”?

Read the rest of this entry

Where did the scripts go?

2010-02-03 19:46:00 +0000

The recent commit removing the contents of the script directory streamlines rails somewhat. But there were a lot of files in that directory, this is a quick cheat sheet on what replaces what…

Read the rest of this entry

validates :rails_3, :awesome => true

2010-01-31 12:17:00 +0000

The new validation methods in Rails 3.0 have been extracted out to Active Model, but in the process have been sprinkled with DRY goodness…

Read the rest of this entry

New Rails Version 3.0 Guides Online

2010-01-29 16:53:00 +0000

I am going through and updating a lot of the guides for Rails. As I do each one, I will update this post.

Read the rest of this entry

New ActionMailer API in Rails 3.0

2010-01-26 12:13:00 +0000

Action Mailer has long been the black sheep of the Rails family. Somehow, through many arguments, you get it doing exactly what you want. But it takes work! Well, we just fixed that.

Read the rest of this entry

Mail gem version 2 released

2010-01-23 17:05:00 +0000

The past month has seen a flurry in activity on the Mail gem but I just pushed 2.0.3 to GemCutter, it is quite a release!

Read the rest of this entry

How to rename a Rails 3 Application

2010-01-19 14:01:00 +0000

Renaming a Rails 3 application is something you have to think about now. No, really… :)

Read the rest of this entry

Rails 3.0 Examples

2010-01-19 13:38:00 +0000

Rails 3.0 has a lot of new features. Getting to understand them can be a challenge. I made a Rails 3.0 repository on github to help everyone get to know some of the new ActiveModel API

Read the rest of this entry

DECCA Driving Day

2010-01-01 14:11:00 +0000

Recently my father invited me out to a motorkhana day at the DECCA driving facility in Victoria. He asked me to do a write up for him to send out to his members. For something completely different to my usual tech blogs, here it is:

Read the rest of this entry

Philip Island Track Day

2010-01-01 12:40:00 +0000

WHAT ARE YOU SLOWING DOWN FOR?!” my father shouted over the screaming engine of our BMW e30 racer. I managed to fugitively tear my eyes off the apex for a split second, just enough time to stab a glance of horror towards the passenger seat, but before I had the chance to vocalise my “Because we are going to crash!?” my father rejoined with “THIS IS A FLAT OUT CORNER! BURY THE GAS!”

Read the rest of this entry

Mail now merged into ActionMailer

2009-12-30 16:00:00 +0000

Well, it is done, Mail 1.4.2 has now been merged into ActionMailer.

Read the rest of this entry

If you are running a rails app on Windows Server (GASP) then you will run into the problem of how to restart your apps?

Read the rest of this entry

Ruby on Rails Tips Page

2009-12-22 03:21:33 +0000

As part of the 100th Episode of Railscasts last year, I wrote up a series of Ruby on Rails Tips.

Read the rest of this entry

Monitoring a DAHDI or Zaptel Channel

2009-12-22 02:52:39 +0000

Sometimes you need to listen to a DAHDI channel or listen to a Zaptel channel on an Asterisk box, here is how you do it.

Read the rest of this entry

Mail gets some compliments!

2009-11-01 21:25:06 +0000

As you know, I have put out the new mail gem… here are some of the things people have said about it:

Read the rest of this entry

Rails doesn’t play well with test-unit 2.x… if you try you get something like: Test::Unit::TestResult::TestResultFailureSupport on from /Library/Ruby/Gems/1.8/gems/test-unit-2.0.5/lib/test/unit/testresult.rb:28

Read the rest of this entry

New Mail gem released

2009-10-28 06:44:56 +0000

OK… birthday time. Mail is now a gem!

Read the rest of this entry

Mail and Bounced Emails

2009-09-18 21:30:13 +0000

You might have to deal with bounced emails in your application. The new mail library makes this a no brainer…

Read the rest of this entry

You may know I maintain the TMail library. Well, recently I’ve been working on the next version.

Read the rest of this entry

Custom Music on Hold for Asterisk

2009-07-02 05:50:15 +0000

I needed to change the music on hold for my Asterisk servers…

Read the rest of this entry

I had a Ruby on Rails app giving a bunch of invalid authenticity token errors. I spent a while hunting down the solution until I found this write up. Very useful.

Read the rest of this entry

Windows ipconfig does not show anything

2009-01-05 18:32:50 +0000

I had a Windows XP system (service pack 2) that would only return “Windows IP configuration” and then nothing, no indication of network disconnection nothing, well, there’s a good fix for it.

Read the rest of this entry

FreeBSD rc scripts

2009-01-05 01:19:54 +0000

I’ve always wanted a concise practical guide to rc scripting in FreeBSD, well, here it is

Read the rest of this entry

How to monitor a logged in professional

2008-11-23 11:41:42 +0000

Sometimes you will need to get a professional to log into your system to help you out. You should watch what they do, and this is the easiest way I know.

Read the rest of this entry

TMail Moves to GIT

2008-11-21 21:36:49 +0000

Social networking here we come!

Read the rest of this entry

Funny...

2008-11-20 03:47:37 +0000

Some people think that rails is getting bloated… but through the hard efforts of core committers, the fluff and fat is getting sliced and trimmed down like a Döner kebab spit at a turkish festival…

Read the rest of this entry

How to reset a sequence with PostgreSQL

2008-11-02 01:49:37 +0000

Read the rest of this entry

I have a bunch of HP DL 360 and DL 380 servers that I run OpenBSD on as gateways. This is how to monitor their RAID drive status and temperature status…

Read the rest of this entry

Terminator - Timeout without Mercy

2008-09-10 17:40:04 +0000

If you have been following my posts on Ruby-Talk and Ruby on Rails and even RSpec mailing list (and who wouldn’t?! I mean, aside from my mother) then you would have noticed I have been banging my head against a brick wall on the subject of System calls not being handled by the Timeout libraries in Ruby…

Read the rest of this entry

When you are coding, you should try to separate out the things that change from the things that stay the same. This isn’t my idea, but it is worth tip’n here as I just saw a really good, simple example of this…

Read the rest of this entry

Fortune...

2008-07-07 10:01:02 +0000

I got his when I logged into one of my OpenBSD boxes today. Interestingly true…

Read the rest of this entry

Examples of Behaviour Spec'n

2008-06-29 07:02:48 +0000

In my previous post (Spec Behaviour not Implementation) I went on a froth roll about why you should treat controller actions as black boxes. Here I give an all to common example of why this is good and how you can write specs that won’t break at the most trivial change.

Read the rest of this entry

This has been said a lot, and doesn’t really need repeating by someone like me, but, as this is a tips page, I should put it here.

Read the rest of this entry

Tip #26 - Start Small

2008-06-24 07:22:38 +0000

If you are getting frustrated with RSpec, then you have probably skipped a gradient. Start smaller!

Read the rest of this entry

Tip #25 - Logging is your friend...

2008-06-24 07:18:17 +0000

Sometimes when you need someone to just look over your code and figure out what the heck is going on, you can turn to your best coding friend, this friend sits away in the log directory carefully collecting data waiting for your beck and call…

Read the rest of this entry

This tip is coming to you from a frustrated developer having to read someone else’s specs….

Read the rest of this entry

Tip #23 - Know your fundamentals

2008-06-20 16:15:31 +0000

You would expect any professional to know their stuff, for a Ruby on Rails beginner, this is no less important.

Read the rest of this entry
Read the rest of this entry

It's amazing what you find...

2008-06-06 18:12:46 +0000

When you go looking for a postgres module for puppet…

Read the rest of this entry

RSpec Story xhr problem

2008-06-05 07:20:59 +0000

If you are using RSpec stories (and if you are not, why not?) you might run into this little problem. doing an xhr :post returns ArgumentError: wrong number of arguments (4 for 3)

Read the rest of this entry

This tip actually applies to every open source project out there… it is, how do you ask a question that will get you the maximum chance of a good answer?

Read the rest of this entry

Tip #21 - Developer Info On Every Page

2008-06-02 07:37:55 +0000

When you are making a rails site, you sometimes need to get to the session hash or the params hash and see just what got sent back to the browser, but going in, editing the template and reloading is just a PITA, here is a quick tip that can help you have that (and any other) information no more than a click away, at any time, and any view….

Read the rest of this entry

Found this video clip while bouncing around the interwebs ™

Read the rest of this entry

Rails 2.1 is out

2008-05-31 17:42:26 +0000

Well, Rails 2.1 is now released.

Read the rest of this entry

If you are like me and are on a mac in a Windows Network, you will be happy to hear that our uphill battle on connecting to AD servers is now a thing of the past.

Read the rest of this entry

Tip #20 - Subscribe to Rails Envy

2008-05-26 20:02:10 +0000

Even though they got my name wrong :) Gregg Poolak and Jason Seinfield have a fantastic podcast that you all should subscribe to.

Read the rest of this entry

Tip #19 - Raaums Hints Rock

2008-05-26 19:50:16 +0000

When I was learning Ruby on Rails, this site by Raaum was a god send.

Read the rest of this entry

Tip #18 - Take Back Your App Folder!

2008-05-17 17:14:13 +0000

Contrary to popular (?) belief, your app folder’s content is not restricted to models, controllers, helpers and views. You can through some other stuff in there as well!

Read the rest of this entry

Tip #17 - Struct Your Stuff!

2008-05-12 17:31:38 +0000

Ruby is a really dynamic language, and you can do a lot of cool things, one of them is a Struct (Structure) that allows you to make throw away objects that you can call methods on….

Read the rest of this entry

If you are using BE DE DE or TE DE DE, then you will get situations in your specs or tests where you want to be able to just create a valid model of another type to test against. This is where factories and builders come in handy.

Read the rest of this entry

Hard Reset / Rebooting a Soekris Net 5501

2008-05-04 07:30:05 +0000

If you have a Soekris Net5501, sometimes they will not reboot when you tell them to. Hanging just after the memory test. Here is how you force them to reboot.

Read the rest of this entry

Tip #15 - Read Other People's Code

2008-04-25 20:56:42 +0000

It is a great tip, and one I do fairly often, go download some code and read it until you understand it.

Read the rest of this entry

If you use Rails, you sometimes get a situation where the custom error messages just don’t work, here is how you can fix it…

Read the rest of this entry

Tip #13 - BangBang Transformations!

2008-04-22 18:02:21 +0000

Ruby is marvelous, everything evaluates. Which means a lot of the time, you can get away with things like ‘if @user…” and just depend on the existence of the @user var. But what if you just really need a Boolean true or false? Here is a little pattern you can use to do this…

Read the rest of this entry

Tip #12 - HTML and HTTP are Your Friends

2008-04-20 07:26:31 +0000

What is an <em> tag? How do you manually make a select box? What about a multi value select box? Do you know the difference between a <submit> tag and a <button> tag? Can you hand code a form to make a restful post to one of your Rails controllers? If you can’t do all the above with plain HTML and no rails helpers or don’t know the difference between a GET and POST request and when you use either, then you need to read on. If you can, feel free to skip to the next section.

Read the rest of this entry

Bloggers Unite

2008-04-19 07:03:58 +0000

This year on May 15th there is going to be a world wide bloggers unite on the subject of Human Rights.

This is a great opportunity to raise public awareness on the subject of Human Rights. We all have them, but in the modern world of pending global governments (which I think are just another way to remove power from the people) It is time for all of us to become away of what it means to be living on this planet, what it means to be a member of this society, what it means to have a family and what it means to just be you.

Read the rest of this entry

Tip #11 - Transact Your Migrations!

2008-04-17 10:23:10 +0000

If you are using Rails, you are most likely using migrations. Have you ever had a migration fail half way through? Have you ever then had to figure out how to find each change and revert it in the database? Would you like to never have to do that again? Here is how…

Read the rest of this entry

Tip #10 - The Ruby Language

2008-04-17 07:40:40 +0000

Learning Rails is hard enough without also facing the task of learning Ruby at the same time. Here I go over some of the must knows in Ruby so that you get some basic understanding of how to do Rails.

Read the rest of this entry

I know it is a bit late, and all the other cooler technology blogs have already covered this…

Read the rest of this entry

Tip #9 - Learn Programming Theory

2008-04-16 13:18:55 +0000

Being a Rails developer means that, yes, you too need to learn how to (gasp) program! No, seriously! Here are my tips on that subject.

Read the rest of this entry

Tip #8 - Must Know Facets of Ruby on Rails

2008-04-16 12:38:59 +0000

Sometimes it is easy to forget that when you take the plunge to learn something as encompassing as ruby on Rails, you forget just how MUCH you need to learn, and it can all seem a bit overwhelming at first. Here is a good way to go about learning it.

Read the rest of this entry

Face it, you use Ruby, you use Rails, you are going to use the shell, either in the console or directly, here are some shortcuts I can’t live without.

Read the rest of this entry

PostgreSQL on Windows - Startup Errors

2008-04-15 10:20:04 +0000

If you are using PostgreSQL on Windows and you get: FATAL: pre-existing shared memory block is still in use Or you get: HINT: Check if there are any old server processes still running, and terminate them. errors, here is how you fix it.

Read the rest of this entry

About Me

2008-04-15 08:30:54 +0000

Read the rest of this entry

So, in the last two tips, I have shown how to check the format of the email and save the actual address only in the database. But how to check that the email domain name is valid? Easy!

Read the rest of this entry

So you have an email address field on a form in Rails, but how are you going to make sure that all those users enter a sane and well formatted email address? Here is a simple fix to that problem.

Read the rest of this entry

Did you know that Rails has inbuilt a strong email handling library called (ahem) TMail? I just so happen to maintain this now (Minero Aoki wrote it), but it gives you a great way to validate email addresses…

Read the rest of this entry

Tip #3 - Sexy Date Select Fields!

2008-04-12 11:31:45 +0000

Tired of having 5 different pick lists or spinners to set a date on your form? Me too, that’s why calendar_date_select was made, and it’s soo easy to install…

Read the rest of this entry

Tip #2 - Daemonize Your Gems!

2008-04-11 21:15:24 +0000

If you program in Ruby on Rails and or Ruby, you will find yourself firing up “gem server” all the time, so why not make it automatic?

Read the rest of this entry

Tip #1 - Subscribe to the Railscasts

2008-04-10 11:09:06 +0000

After watching Ryan’s 100th episode with the special duck typing sound effect at the start, he mentions a competition for the whole Ruby on Rails community. So here is my first tip!

Read the rest of this entry

Handling Bounced Email with Ruby and TMail

2008-03-24 11:52:25 +0000

If you are using a Ruby on Rails app, or Nitro, or just a plain Ruby application that handles email, you will need to handle at some point, bounced messages. This a simple way to get to the guts of the email and find out what the error codes are…

Read the rest of this entry

Debugging the Rails Session Store

2008-03-16 08:05:58 +0000

The Ruby on Rails session is a dark and mysterious lady who is with you ever step of your applications development way… Usually she goes about doing her business without any problems, but sometimes things go awry… and hell hath no fury like a session scorned…

Read the rest of this entry

What is Scientology Anyway?!?!

2008-03-15 09:54:31 +0000

And why is it that everyone seems to have an opinion on it? Some people hate it, some people participate in it, other people just don’t know what it is, don’t know what the fuss is about and couldn’t care less…

Read the rest of this entry

L. Ron Hubbard's Birthday

2008-03-13 05:16:22 +0000

If Mr Hubbard were still with us, he would have had another birthday today. With all the humanitarian works his philosophy of Scientology has sparked, it is interesting to see just who this man is and what he actually did, without all the media induced hoo-ha.

Read the rest of this entry

I had a situation where I had two tables, one was read only data and the other was where I would put my new data. They both modeled the same object (a person) but I had to figure out how to have ONE object for the system to interact with.

That is, how do you make two tables into one model in Rails?

MULTI-TABLE INHERITANCE!!!!!

Read the rest of this entry

Well, 1.2.2 is now released. You can get the latest version by gem install tmail or download from the TMail Rubyforge project

Read the rest of this entry

This problem actually relates to any site that uses queued effects, I just ran into it on Ruby on Rails. The problem is that if you queue up too many scriptaculous effects on a dom object, you will end up having nothing displayed, or flickering or highlights that never fade etc…

Read the rest of this entry

Simple Rails Javascript Form Validation

2008-03-02 18:57:26 +0000

If you have a form with some required text fields (like, name, password) then waiting for your users to hit submit is too late to tell them those fields are required. The other option is disabling the submit button until they have filled in the data, here is how…

Read the rest of this entry

If you are programming a Ruby on Rails AJAX application, you will have to handle system exceptions at some point, because if you don’t, the user gets to sit watching a spinner.gif file merrily spinning away for the rest of his or her natural existence…

Read the rest of this entry

Real News Launching!

2008-02-26 05:21:51 +0000

If you are like me and are sick of the advertising rubbish that is passed off to us as news, then you will find this news service a breath of fresh air.

Read the rest of this entry

Javascript Field Monitor

2008-02-24 09:36:20 +0000

While working on a recent Ruby on Rails project, I needed to be able to check the changes in the forms that were appearing on the page and highlight those fields on change. I looked around and couldn’t really find anything I liked, so I made one.

Read the rest of this entry

You need one of these

2008-02-22 12:42:20 +0000

Read the rest of this entry

If you are using Ruby on Rails with AJAX to update parts or whole pages of your site, you will hit the history problem soon enough, luckily, with Really Simple History and Rails’ RJS templates and helpers, it becomes quite trivial to handle.

Read the rest of this entry

You know you are Australian if...

2008-01-28 04:59:04 +0000

I received this list in my email today… it’s very good and accurate.

Read the rest of this entry

Personal Integrity

2008-01-27 10:40:17 +0000

Just what is personal integrity?

Read the rest of this entry

Contributing to TMail

2008-01-16 20:44:31 +0000

I recently added a new page to the TMail site, contributing!

Read the rest of this entry

Installing Ruby 1.9 on Mac OSX

2008-01-16 12:25:07 +0000

If you have ruby and a mac, no doubt you want to try out 1.9 – but be warned, some things can break! This little tutorial shows you how to install Ruby 1.9 in parallel to your 1.8.x installation… which can be handy…

Read the rest of this entry

You may have read my other article about Andrew Morton’s unauthorized biography, well, the Church of Scientology has responded.

Read the rest of this entry

Sometimes the media just get it right after all… Thank you CNN for posting one of the most informative dissertations on one of the worlds most uninformative fiction stories.

Read the rest of this entry

I have an SQLServer that has dates before 1970. If you have this, then you will get crashes with the latest SQL Server Adapter. This shows you how to get around it while we get it fixed in the adapter.

Read the rest of this entry

The Mephisto Docs tell you to put the Site.multi_sites_enabled = true into the environments files, but this is no longer true…

Read the rest of this entry

Ruby on Rails makes wonderful use of the two cornerstone Ruby classes, Hash and Array. Here I give a short tutorial on how to use Hash and Array with Rails.

Read the rest of this entry

With version 2.0 of Rails, getting it talking to SQLServer has become a whole lot easier.

Read the rest of this entry

It’s great to see Religious Recognition being gotten for Scientology in Spain

Read the rest of this entry

How to Upgrade to Rails 2.0

2007-12-12 15:40:31 +0000

Read the rest of this entry

Ruby Conf 2007 Talks Are Online

2007-12-10 07:03:18 +0000

Read the rest of this entry

Using TMail Gem in Rails 1.2.6

2007-12-10 06:39:34 +0000

Ruby on Rails 2.0 includes the ability to load a gem version of TMail instead of the bundled version inside of ActionMailer. However, if you are running on Rails 1.2.6, this doesn’t help you much. Here is how you take advantage of the latest fixes to the TMail library and stay in the 1.2.x branch of Rails

Read the rest of this entry

“Mikel, I need a website to promote the Drug education campaign we are doing, needs a contact form, signup form and lots of basic information, oh, it would be good if it could have a blog on it as well – maybe in the future.”

This was the brief I got a few weeks ago to make http://www.drugfacts.org.au/...

Read the rest of this entry

Feedburner Site Stats on Mephisto

2007-12-09 14:34:27 +0000

If you use Feedburner and want to use Site Stats, there isn’t a ready made template, this is how you do it.

Read the rest of this entry

Query the results from a stored procedure

2007-12-09 06:23:52 +0000

Read the rest of this entry

This is a fun little exception in Ruby that you have to catch explicitly in order to get hold of it in a rescue block.

Read the rest of this entry

New Drug Education Site Up

2007-12-07 17:01:01 +0000

I am part of the Drug Free Ambassadors and we are working out how to get 100,000 drug educations books out in ONE DAY! We just put a new website up using Rails 2.0 and Mephisto…

Read the rest of this entry

Will Smith again in the papers

2007-12-07 16:49:20 +0000

You know, news papers are designed, from the ground up, to produce stories that sell newspapers… nothing else…

Read the rest of this entry

New L. Ron Hubbard Website

2007-12-07 16:40:02 +0000

There is a new L. Ron Hubbard website online, you should go check it out.

Read the rest of this entry

Are you a real programmer?

2007-12-04 17:23:09 +0000

I might be biased, I might be talking from a lack of experience, but if you are reading this and you are not involved in an open source project, then you are not a real programmer…

Read the rest of this entry

S.I.M.P.L.E

2007-12-04 04:55:13 +0000

Read the rest of this entry

Tip of the day

2007-12-02 11:14:40 +0000

Read the rest of this entry

Being constantly connected to the Internet is a double edged sword. The volume of distractions are just massive and keeping your focus can be difficult. At least that is how it is for me. This is how I solve it…

Read the rest of this entry

TMail 1.2.0 Released!

2007-12-01 15:44:48 +0000

TMail 1.2.0 is now out. Here are the gory bits:

Read the rest of this entry

Copying an SQLServer Database

2007-11-30 15:38:57 +0000

When you are testing and developing code, you don’t want to be playing with a live database at all, this is how you copy it to your local system.

Read the rest of this entry

TMail 1.2.0 is on the horizon

2007-11-30 15:10:39 +0000

We are about to release TMail 1.2.0…

Read the rest of this entry

Playing with PCs is no fun

2007-11-30 15:07:45 +0000

I work on a Mac. Lots. Recently I have had to do some rails work on a PC… and going back to WindowsXP is NO fun at all…

Read the rest of this entry

In a protest march yesterday, Kate Ceberano and her husband Lee, took the anti-psych march to the streets

Read the rest of this entry

It seems the City of Utah have seen the effectiveness of the Purification Detoxification Program from the works of L. Ron Hubbard.

Read the rest of this entry

This is cool! The Industry of Death Exhibit is in Melbourne.

Read the rest of this entry

Sometimes you just have to go ahead and do it the hard way.

The last three days was that time for me. I had to write an application that interfaced with an existing MS SQLServer system, and I couldn’t change the schema of any existing table… what to do? Well… I can tell you it was a lesson in the difference between being opinionated software and bigoted software…

Read the rest of this entry

Today I upgraded the SVN on my server for 1.4.3 to 1.4.5 and got this strange error:

svn:/usr/lib/libpthread.so.6.3: /usr/lib/libpthread.so.7.0 : WARNING: symbol(_thread_kern_thread) size mismatch, relink your program

How RUDE!

Read the rest of this entry

Ruby on Rails 1.2.6 is out

2007-11-25 18:13:11 +0000

Maintenance release to handle a remote hole in the framework. You can get the details here

Read the rest of this entry

Please, think of your server!

2007-11-25 09:56:04 +0000

This is the first blog entry of the RSPCS… the Royal Society of the Performance and Care of Servers… our first target, people’s abuse of the use of ActiveRecord’s “find” class method.

Read the rest of this entry

Why REST?

2007-11-24 18:29:11 +0000

So you are a new Ruby on Rails developer and trying to figure out what Rails and REST is? Or maybe you touched it before but never really figured it out?..

Read the rest of this entry

You know you should. I know, I know, you read it once, referred to it a bunch of times. But right now, stop reading this and go read it!

Read the rest of this entry

Drug Free Ambassadors hit the Glebe Fair

2007-11-22 19:45:45 +0000

scientology.net.au has a story about the Drug Free Ambassadors going to the Glebe Fair and signing up kids to be drug free.

Read the rest of this entry

Saving TMail into an ActiveRecord model

2007-11-22 17:00:18 +0000

ActiveRecord works well when we are saving strings and integers, but what if you want to save a real, live, honest-to-God Ruby OBJECT like a TMail::Mail instance?? Well.. serialize to the rescue!

Read the rest of this entry

Updating to Rails 2.0 RC

2007-11-21 18:59:30 +0000

Now that Rails 2.0 is comming up… what to do and how to do it? – Note, this has been updated to include Rails 2.0 itself…

Read the rest of this entry

Getting the truth about drugs

2007-11-20 12:38:26 +0000

Scientologists are anti-drug. If you ask someone about Scientology and drugs, most people will tell you we don’t like them. Here is why…

Read the rest of this entry

Ushering in a new religion?

2007-11-20 12:32:16 +0000

Usher is now studying Scientology…

Read the rest of this entry

Found this while going around the net today… Will Smith supports Tom Cruise in his religion.

Read the rest of this entry

Scientology VMs help in the South Pacific

2007-11-20 12:22:56 +0000

Getting the Prime Minister of Samoa to talk at your closing ceremony has got to be a good result…

Read the rest of this entry

TMail::Mail instances had an instance method called create_forward hidden away in net.rb. We move it up into the big time with ticket 15445

Read the rest of this entry

Moving a website

2007-11-20 08:01:42 +0000

I had to help move a website recently from a .com.au to a .org.au. I had to dig around to find the right procedure to keep the links correct and maintain our rankings, this is the end result:

Read the rest of this entry

If you use Google webmaster tools, you would have used the sitemap.xml file to tell Google about the pages your site has. While there are tools to make this, I wanted it to be automatic, so I made Rails make it for me!

Read the rest of this entry

Interesting method definition in ruby

2007-11-18 16:19:49 +0000

Today, while doing some documentation on the TMail library, I found an interesting method declaration in the interface.rb file that has me stumped…

Read the rest of this entry

Stored Procedures and MS SQL Server

2007-11-17 07:52:35 +0000

OK, ok, OOOOKAY ALREADY!

I’ll say it…..

My name is Mikel, and I’m using Microsoft SQL Server with Rails…

Read the rest of this entry

Where to start maintaining?

2007-11-17 07:28:19 +0000

As mentioned previously in the TMail blog, I am now maintaining the code base with another team member. But where to start?

Read the rest of this entry

How to make a reply address with TMail

2007-11-16 15:48:48 +0000

Read the rest of this entry

Keep RSpec Current

2007-11-15 10:28:25 +0000

I like living on the edge with RSpec. It actually is not so bad. Every week or so I do an update on the trunk, but this is a few steps that should be automated, this is how you do it.

Read the rest of this entry

RSpec Textmate Bundle Troubles

2007-11-15 05:43:09 +0000

I love RSpec, I love textmate… but sometimes… they just don’t love each other…

Read the rest of this entry

Vector magic

2007-11-15 04:36:39 +0000

Vector magic converts your bitmaps into beautiful phots… for free!

Read the rest of this entry

Why use lambda in RSpec?

2007-11-14 14:16:30 +0000

RSpec allows you to write nice readable tests… and some little tricks make it even nicer! And I don’t know about you, but the word lambda is (1) ugly, (2) means basically bugger all and (3) is hard to pronounce late at night… so lets replace it!

Read the rest of this entry

TMail Is Growing

2007-11-13 16:41:31 +0000

TMail is the mail library that powers ActionMailer in Ruby on Rails and the mail component of Nitro… and it is alive!

Read the rest of this entry

My new blog site

2007-11-13 06:32:41 +0000

Moving is always interesting and a challenge, in this case it was no less so…

Read the rest of this entry