Bug in Og 0.26.0

Og 0.26.0 has a bug whereby schema_inheritance doesn’t work if you have more than one class inherit from the base class, and you are using the :evolve_schema => true in your Og.setup. Here is a patch which fixes that. I’ve submitted the patch to the Nitro team, but it won’t get rolled in until it … Continue reading “Bug in Og 0.26.0”

Og 0.26.0 has a bug whereby schema_inheritance doesn’t work if you have more than one class inherit from the base class, and you are using the :evolve_schema => true in your Og.setup.

Here is a patch which fixes that. I’ve submitted the patch to the Nitro team, but it won’t get rolled in until it has been thoroughly tested. Meanwhile, here it is in case you need it, in patch format.

diff -rN -u sql.rb /tmp/sql.rb 
--- sql.rb      2006-01-09 14:58:34.000000000 +1100
+++ /tmp/sql.rb 2006-01-09 14:57:35.000000000 +1100
@@ -595,8 +595,13 @@
       # holds the class name.
       fields << "ogtype VARCHAR(30)"
   
-      for desc in klass.descendents
-        properties.update(desc.properties)
+      # loop through superclasses up the inheritance chain, to ensure we don't miss any properties
+      superklass = klass.superclass
+      while (superklass.ancestors.include? SchemaInheritanceBase) do
+            for desc in superklass.descendents
+              properties.update(desc.properties)
+            end
+            superklass = superklass.superclass
       end
     end

wwdc

Yesterday Apple previewed Panther (Mac OS X 10.3) and also released Safari 1.0 and iChat AV. iChat AV is the thing I’ve gotten most used to at the moment due to the niftiness of having access to an audio and video stream – the quality is somewhat amazing as well – it’s the first time … Continue reading “wwdc”

Yesterday Apple previewed Panther (Mac OS X 10.3) and also released Safari 1.0 and iChat AV. iChat AV is the thing I’ve gotten most used to at the moment due to the niftiness of having access to an audio and video stream – the quality is somewhat amazing as well – it’s the first time I’ve ever seen video this good over a videoconferencing link and I’ve been playing with this sort of thing since about 1995.

They also announced the Power Mac G5 which is a big deal though most people won’t realise it. Frankly, in terms of processing it’s like comparing a modern computer to a computer from more than 10 years ago. We’ll not see the benefit of it right now and people will wonder how useful it was.

Looking forward to the future….

MyCalc

I’ve written my Calculator app, and given it an icon…and I’m pretty chuffed with the result. Next step, if you pardon the pun, is to get a little more familar with the system. I mean – it’s not as if we need another calculator application in the world is it? Related posts: Great design creates … Continue reading “MyCalc”

I’ve written my Calculator app, and given it an icon…and I’m pretty chuffed with the result. Next step, if you pardon the pun, is to get a little more familar with the system. I mean – it’s not as if we need another calculator application in the world is it?

So, programming…

I’ve started Cocoa programming and I’m preety happy with the results. Less than 24 hours and already I have a calculator application written that adds two numbers and can restrict the answer to two decimal places. Yes. It sounds crap but this is an application that you double-click, it responds to mouse clicks and all … Continue reading “So, programming…”

I’ve started Cocoa programming and I’m preety happy with the results. Less than 24 hours and already I have a calculator application written that adds two numbers and can restrict the answer to two decimal places.

Yes. It sounds crap but this is an application that you double-click, it responds to mouse clicks and all sorts. It behaves just like a proper application.

Very pleased with me.

Learning C for fun and profit

So.. I’ve started to learn to program. Frankly I’m making much more headway with C and Objective C than I ever did with Java. Here’s hoping that I’ll get my first application out by the end of the summer. Related posts: Co-Working coworking.ie CoWorking: profit or non-profit Calendaring for fun and profit.

So..

I’ve started to learn to program. Frankly I’m making much more headway with C and Objective C than I ever did with Java.

Here’s hoping that I’ll get my first application out by the end of the summer.

I want to help…

I want to be able to get up in the morning and go to work on foot. I want to not worry about pay or revenue targets. I like fixing things and I like being thanked for fixing things… Ah well, the week goes on Related posts: Digital Circle going independent and my thoughts on … Continue reading “I want to help…”

I want to be able to get up in the morning and go to work on foot.
I want to not worry about pay or revenue targets.
I like fixing things and I like being thanked for fixing things…

Ah well, the week goes on

There is trouble ahead…

Essentially due to poor business acumen and an unwillingness to prosecure one of the directors who embezzled tens of thousands from the company, Macinni is going out of business. If it was up to me I’d have prosecuted. But it wasn’t and now we all have to pay with our jobs. Our managing director is … Continue reading “There is trouble ahead…”

Essentially due to poor business acumen and an unwillingness to prosecure one of the directors who embezzled tens of thousands from the company, Macinni is going out of business.

If it was up to me I’d have prosecuted. But it wasn’t and now we all have to pay with our jobs. Our managing director is simply not going to involve the law and is covering up for her. Amazing what some men will do for sex.

Makes me think he was in on it all along….

Yikes

Over a month since I last wrote. I guess I’m not as stressed as I think I am. Meggan is now walking and almost running. She’s also trying hard to speak. We have “No” and “Mine” well established in her vocabulary. She can also say “Ba Doh” (Bad Dog) and “pwee” for please. I’ve been … Continue reading “Yikes”

Over a month since I last wrote. I guess I’m not as stressed as I think I am.

Meggan is now walking and almost running. She’s also trying hard to speak. We have “No” and “Mine” well established in her vocabulary. She can also say “Ba Doh” (Bad Dog) and “pwee” for please. I’ve been teaching her “Bottle” but she can only manage “P’tle”.

It’s fun. I think she likes talking.

What’s my motivation

Cabinet reshuffle means different priorities. One sales, one administration, one technical. What does it mean? Who’s the BMOC? Who’s got the cojones? And I bloody refuse to work tonight. I’m on strike. I’m sick to the teeth of writing this training course so I’m having a night off. Related posts: One year on, still a … Continue reading “What’s my motivation”

Cabinet reshuffle means different priorities.

One sales, one administration, one technical. What does it mean?

Who’s the BMOC? Who’s got the cojones?

And I bloody refuse to work tonight. I’m on strike. I’m sick to the teeth of writing this training course so I’m having a night off.