Monthly Archives: May 2009

Ambulance chasing

A relatively busy weekend: five call outs. However, with all of them the ambulance crew got there before me. For most of the calls it was just a case of going in and checking if the crew needed any assistance, … Continue reading

Posted in Community First Responder | Comments Off on Ambulance chasing

Monitoring 2003 server – new project

I’ve been thinking about creating a Rails app to help me monitor my main Windows 2003 server. Today, one of the logical drives on the server got close to running out of space, so I realised it was time to … Continue reading

Posted in Ruby | Comments Off on Monitoring 2003 server – new project

Ignore files and folders via TortoiseSVN

Why ignore? Ignoring a file or folder from the Subversion system can reduce a lot of complexity from the repository. For example, if you edit your code via NetBeans, you probably don’t want to version control the .nbproject folder it … Continue reading

Posted in Ruby | Comments Off on Ignore files and folders via TortoiseSVN

Hearts are aflutter

One call out today (so far). Another lady with irregular heart beat. It seems I’m having a run of call outs to people with suspected heart attacks. It is strange how call outs seem to come in batches. A week … Continue reading

Posted in Community First Responder | Comments Off on Hearts are aflutter

Gathering SQL data with TempObject

Another place I use TempObject is to organise the data created from a custom SQL statement. I use custom SQL statements when I need to gather data from three or more tables or do complicated JOIN or CASE statements. It … Continue reading

Posted in Ruby | Comments Off on Gathering SQL data with TempObject

Using TempObject with a search form

Here is how I use TempObject with a search form. I’ll use an example of creating a form to return balls. In the controller I first create a TempObject with the attributes I want to offer in the search form: … Continue reading

Posted in Ruby | Comments Off on Using TempObject with a search form

Temp Object

I found creating search forms in Rails a little awkward because most of the built in Rails form elements expect to work with attributes of an object, whereas for a search form I just needed to pass a set of … Continue reading

Posted in Ruby | Comments Off on Temp Object

A tale of two vomits

When I was first training to become a Community First Responder (CFR), my main worry was that I would not be able to handle a patient being physically sick. The first time I had to deal with such a situation … Continue reading

Posted in Community First Responder | Comments Off on A tale of two vomits

Using a shared location for common code

I am a book lover, and have built up a lot of my Ruby and Rails knowledge from an ever expanding collection of books. No matter how big or small, most give me some new information or way of dealing … Continue reading

Posted in Ruby | Comments Off on Using a shared location for common code