Author: Admin
• Sunday, April 12th, 2009

ActiveScaffold is an AJAX based scaffolding framework for Rails. It is used to build beautiful maintenance screens (CRUD: Create, Read, Update, Delete) screens for your application. I’m using it extensively in my OfficeQuote project. Everything was going swimmingly until I upgraded to Firefox 3.0.8.

After the upgrade, I started getting the following errors when updating a record.

RJS error:
TypeError: $$(”#item-update-54-form a.cancel”).first().link is undefined

How to fix:

1. Edit active_scaffold.js. In the register_cancel_hooks: function() method, replace this line…
this.adapter.getElementsByClassName(’cancel’).each(function(elem) {
with this line…
this.adapter.select(’.cancel’).each(function(elem) {

Note: There is a (’.') period in front of the word ‘cancel’ in the replacement line. This is what tripped me up.

2. Delete javascripts from $RAILS_ROOT/public/javascripts/active_scaffold/default so that they will be re-deployed when you start the application.

3. Upgrade prototype.js to 1.6.0.3
.
4. Flush browser cache.

5. Restart server.

I found this link useful. Like many of the people who tried the fixes described on this thread, I experienced no relief from the error. This is because I thought the change was to replace the getElementsByClassName with select. I didn’t see the period in front of the cancel string.

ActiveScaffold at Google Groups

Author: Admin
• Saturday, February 14th, 2009

Many years ago, I developed an application used to create job quotes for a business that designed and manufactured conveyor systems. It was a simple application developed in Lotus 123. The application was originally developed for a single user and it worked pretty well. Eventually, several people in the company were using it.

Five or six years ago, I ported the app to Excel/Word. It is now used by several people in three business offices of the same company. Though the application works pretty well, it is becoming more difficult to support it because all of the users have different versions of Excel/Word and slight incompatibilities make it difficult for them to share their work.

As the application is being used by more and more users, I decided to take the concept of the application to the web. I have begun work on OfficeQuote Online. You can find the initial version of the app here.

The primary goal of OfficeQuote Online is that it should be a simple design. It won’t have a lot of bells and whistles to complicate its configuration and use. 

For the time being, access to the application is free. If you decide to use it, please keep in mind that this app is under development and probably will be for some time. There are bugs and huge gaps in functionality but this will improve with time. If you do use it, I would really like to here from you. Tell me what you would like to see in a Quoting and Job tracking system. I can’t guarantee that I will incorporate your requests but I will guarantee that I will give careful consideration to your ideas.

Category: MyBlog  | Tags:  | Leave a Comment

Author: Admin
• Wednesday, December 10th, 2008

I was never a big coffee drinker. Even during my 4 year stint in the Navy where many sailors walked around with a coffee cup hooked to their belt, I didn’t pickup the habit. Then about 20 years ago, I read an article about the many health benefits of tea. I decided to give tea a try and I was hooked.

I never gave caffeine a second thought. I never noticed the pick-me-up many people describe from drinking coffee. I drank tea because I enjoyed the taste and it was a good way to increase the amount of water I drank each day.

I started out drinking only one or two cups of tea a day but after reading more about the health benefits I figured, why not drink more? In recent years, I was consuming five or six cups a day. Surprisingly, I could even drink a cup of tea before going to bed and I had no trouble falling asleep.

But then gradually, something changed. I started getting occasional mild headaches. These seemed to occur mostly on the weekends when I typically drank less tea. After some self analysis, my wife and I came to the conclusion it was due to the reduction in caffeine intake that was causing the headaches. Simple solution — drink more tea on the weekends. Eventually the headaches increased in severity. I started getting skull splitting headaches. The pounding in my head was so intense, that even light hurt my eyes and I would feel sick to my stomach. I read that a little caffeine could help reduce headaches so I would drink a tea or a caffeinated soft drink to take the edge off.

A few years ago during an annual physical, I mentioned to my doctor that I was getting these sever headaches. He diagnosed them as low grade migraines and perscribed a migraine drug and Excedrine Migraine. The mgraine drug had to be taken before the start of the pain. Unlike many migraine suffers, I experienced little or no pre-migraine tells so the migrain drug was not effective. I only used it once and experienced little to no relief. The Excedrine Migraine pills worked great however. Come to find out, one of the principle ingrediants of Excedrine is caffeine.

Then about a year ago, I started waking up in the middle of the night with splitting headaches. Eventually, I was waking up three or four times a week in the middle of the night with sever neck and head pain. I thought it was the pillow I was using. A new pillow fixed the problem (or so I thought) for about two weeks then the headaches returned. My wife new someone who swore her nighttime headaches went away after she started using a wedge pillow. This pillow, which sells for $100.00, is made of some space-age foam and is ergonomically shaped to reduce sholder, neck and head strain. My wife bought one and the first few nights I slept without interuption. We both thought, the problem was solved. A hundred dollar pillow is worth every penny if it works. Then a week later, the headaches came back.

Then, last year at my annual physical, I talked to my doctor about the headaches. I told him that they were mostly happening in the middle of the night. He asked me how much caffeine I was consuming and when. I told him I was drinking five to six large cups a day. Without hesitating, he said he thought the headaches were brought on by caffeine withdrawal. He recommended that I cut back on caffeine.

I immediately started to reduce the caffeine by replacing half of the tea I drank with de-caf. A week later, I eliminated it all together.

This was nine months ago and I haven’t had a single headache since the first week without caffeine. Not one headache at night, during the day or on the weekends. I can’t believe that I have spent years suffering with headaches weekly or even daily all because of caffeine. I thank my doctor for changing my life every time I see him. Caffeine is very, very bad.

Category: MyBlog  | Leave a Comment

Author: Admin
• Monday, November 03rd, 2008

Hello and welcome to my blog.

Category: MyBlog  | Comments off