Wednesday, March 11, 2009

Finally!

Today I was rewarded for reading Slashdot - I found this article.  It explained, using better examples and more tv-business-savvy, what I've been saying for years: Fox is messing with me.

Okay, maybe not just me - lots of other people too.  Ever since Firefly and Futurama debuted and then were run off the air, I was convinced there was a secret Fox plot to produce shows I couldn't help but be obsessed with and then yank them away.  Turns out, as is often the case, I was right.  Right enough that other people noticed.  When Futurama was first on the air, it was an awesome show and I loved it.  Fox had the NFL contract for Sunday night football and Futurama would be preempted at the drop of a flag.  So it would take patient weeks to finally catch a new episode.  With Firefly, the show seemed pretty good, but it randomly was on or not, episodes in some order, but not the right one.  No wonder people stopped watching - it was too difficult!

The same pattern is being repeated with the 3 excellent sci-fi shows on Fox: Fringe, Dollhouse and The Sarah Conner Chronicles.  Two of these shows are parked firmly in the secret tv-series burial ground, Friday night.  Back to back, for extra mourning.  The third, Fringe, which has started to garner solid ratings, is on hiatus for 2 months.  For some reason.  Reality tv I believe it is known as.  I've said it before - I don't particularly like reality tv because I believe in entertainment where the writers are paid well.  And they write the show ahead of time, not five minutes into class like so many grade 6 English assignments.

The author of the above article, Ron Hogan, offers one item that makes some sense.  Fox doesn't seem to know a good show from a bad one, but at least the good content creators (JJ Abrams, Joss Whedon, Summer Glau) can't produce good shows anywhere else.  I know Summer Glau is not a writer, producer or director, but she's good content all on her own.  See this xkcd comic for further proof.  So basically Fox is holding all the good stuff hostage, but isn't issuing any demands.  They taunt us with the occasional glimpses, but you have to keep your eyes peeled because it may show up at any time...

So summary: Fox has good content but refuses to let anyone else see it.  Even if they want to give good money for it.  Maybe blog posts can change things.  The power of bits - it's in you!

Tuesday, March 10, 2009

Stupid federal budget

I heard Stephen Harper gave a press conference today, chiding the opposition to hurry along and approve the budget if they really cared about delivering stimulus to the Canadian people.  There are two things wrong with that:
  1. If approved today, the budget doesn't come into effect until Mar 27, so whatever.
  2. The budget bill includes environment regulation changes and other modifications, resulting in a 500 page document.
I agreed with the sentiment I heard from a senator - if the Conservatives are so concerned with getting a budget going, why did they prorogue parliament?  Also, it smacks of dirty tricks to bundle lots of non-budget changes in with the budget and then publicly berate people for considering it carefully.  This is a similar trick to the political party financing changes Mr. Harper tried to make late last year and caused the opposition parties to unite.  I'm starting to agree with Jack Layton - his opinions only - that Mr. Harper isn't to be trusted.  He was cowed, censured (privately) by his own party for the mistakes leading up to prorogation.  And still he continues with the style that caused the upheaval.

It really bothers me when Mr. Harper grandstands like this in the media.  In his first term as prime minister, he refused to talk to reporters, except on his own terms.  Even now he only speaks when it serves his purposes.  His communique plays on the ignorance of the public - that people only listen to his version of events.  If Mr. Harper was concerned about speed and effectiveness, he would try harder to cooperate with the opposition parties and he would have made a budget that only contained budget items!  My own ignorance as to the contents of this budget bill also bothers me - I can recall some suggestion of the complexities of the budget bill, but that was glossed over in the warm glow of Liberal-Conservative non-fighting.

Monday, March 9, 2009

Post 187

Well, number 187 is not prime - I'll say it out right.  The square root is > 14, so 13 is the largest prime to test.  Turns out 11*17 = 187, so there you go.  But it is our little primality test to kick things off.  On a brighter and more personal note, I made it to the gym today, after many abortive attempts.  Hopefully I will make it tomorrow and things will be good.  Not going is easy, but after going I always feel so much better and I wonder why I don't go.  It is very weird.  Must be kind of like smoking - many people say they know that smoking isn't good for them, but they keep doing it.  When they finally quite for a few weeks, they see how much better they feel and wonder why they didn't quit before.  The reason is a little more obvious for smoking - there is a physical addiction component.  I'd think that the gym-attendance would be more along the physical addiction track but laziness is obviously the stronger factor.  It's like we say at my house - greed and laziness are the mothers of invention.

Always confused me that "necessity is the mother of invention" because it is so obviously wrong.  When people are in real need, they grab whatever they find at hand and adapt it to the need, kind of like using a hammer to drive screws through the plywood to seal your house before the hurricane.  Innovation requires persistence, like when a better version of an existing tool is created.  If you needed that better tool to operate, you couldn't have started!  Instead, you use what you have and the irritation at the fact whatever you're doing could be easier grows until you create the thing that will make your life easier - the invention!  Think of Thomas Edison, who worked his lab mercilessly and used the media to crush his opponents - that's greed.  He wouldn't go to that trouble just because he could make new things - those new things were sold for money that he could use!

Well, there's the mid-post rant - here's the political one.  President Obama announced that the US government will now sponsor embryonic stem-cell research.  I think it is a good thing to pursue research.  What Bush specified was very limiting, not allowing for much variance at all.  I heard some comments from people opposed to this research, all talking about the dangerous moral and ethical grounds.  I think such research needs ethical guidelines, but some of the reasoning didn't sit well with me.  For example, the claim that such research could result in more abortions.  Linking the embryonic stem cell research with abortion is attempt to create moral outrage where simple guidelines would suffice.  I wonder if the same people that are opposed to abortion are opposed to all other fertility protocols, because they have more abortions and ethics to worry about in that area.  Anyway, I think that this current path is better than what came before.  

Sunday, March 8, 2009

Another Sunday

I forgot about the switch to daylight savings - thanks again for a stupid time change Mr. Bush - until I woke up this morning.  I thought about it Friday, I thought about it Saturday, I went to bed early Saturday night and forgot to adjust the time on my watch, alarm clock and so on.  But it's alright now - the time moves early on a Sunday for good reason.  Other than that gaffe, I had a pretty good day.  Spent the early part finishing off V for Vendetta, but haven't made it through the background material yet.  Got some good drum practise with Rock Band in.  Made it to the grocery store for one of my trademark "big" runs.  I came out of it pretty good.  Helped my parents access things online.  But now it is the end of the day and I must do some gaming - something neglected for most of this week.  Monday awaits...

Saturday, March 7, 2009

Moore Day

Pretty slow day today - nice to relax and read for most of the day.  After my disappointing Watchmen attempt, I decided to start reading "V for Vendetta" today.  I'm about 220 pages in and it's pretty darn good.  I'm enjoying it highly.  Also watched the latest Futurama movie - the last in the series of 4 - The Wild Green Yonder.  First impressions are that it's definitely better than the 2nd and 3rd movies, and possibly the best in the series.  Can't really make that call until I watch it more carefully - I was busy doing chores while it played.  Also watch Madagascar 2 - and I approve highly of that.  Really good - love the penguins.  Anyhoo, that's about it for tonight - I'm bushed.  I'll have to make sure I get things done on the ole compu-trolla tomorrow.

Friday, March 6, 2009

Late posting....

Little bit late - using the ole blogger trickery to make this post for Friday.  No big whoop.  Anyhoo, I had lots of stuff planned for today - getting my wheel fixed, going to buy "Watchmen", going to see "Watchmen".  I hoped to be giving my impressions of the movie "Watchmen", but sadly all showings were sold out by 8:45pm.  Which is pretty impressive - so I'm not sure when I'll be able to see it!  So instead, saw the movie "Taken" with Liam Neeson.  I liked it - good action film.  Nothing too deep, other than listen to your father.  The CIA operative, not the rich step-dad.

As for my car, my rim was not dented as badly as I feared and required a few blows with the hammer to straighten.  Got that done, balance checked, wash for $22.  A very small service - I'm used to spending no less than $120 every time I take my car in, so this is a welcome anomaly.  I still have to get a new wheel cover, but I'll wait a bit before I get that.  I should explain that my car uses synthetic oil, so even an oil change runs $80, although I only have to do it every 10 or 12 thousand km.  For me that's about 6 months, so it's cheaper than $29.99 every 2 months.

Fortunately I was able to make it to the bookstore and got a copy of the "Watchmen" graphic novel, along with "V for Vendetta".  I've been curious to read more of Allan Moore's work, and I'll have to find "From Hell" eventually too.  I've seen the movie versions of "V for Vendetta" and "From Hell", but heard that the graphic novels were much better.  I borrowed a "Watchmen" 6 months ago and it was good, but it needs multiple readings.  Which is why I acquired my own copy.  So off to peruse those and then to bed.

Thursday, March 5, 2009

Amusing Anecdote

Today , as I am feeling much more coherent than the last few nights, I will present a more coherent entry.  During my normal, waking life I often pilot my own vehicular transport, terrestrial transport module, or car.  This is a tale of transporticus interruptus, car troubles of a chilling nature.  Maybe a chilling-warming-chilling nature - you decide!

Two days ago I was heading home from work.  I was in the left-hand lane a comfortable distance behind the next car.  As I approached an intersection, the car in front took an odd line through it.  I realized that it was avoid a pothole.   This road defect didn't look too bad and I didn't want to swerve because I wasn't sure if there was a car beside me.  I thought I probably would miss it, but I was wrong - full on with the front wheel.  For a moment, I wasn't sure if the wheel was still attached - perhaps the car was just holding itself up on that side out of habit.  Later I was convinced that I had four wheels still.

The next day after work, I decided to travel the same path, but with the knowledge of the hole, and see if I my wheel cover was there.  I discovered that morning that it was missing.  I caught sight of it, but I wasn't positive.  Looking ahead, I discovered that the two cars in front were not moving, so I slammed on my brakes.  The person loading the trunk (at the bus stop) looked kind of surprised - much like I was.  You don't expect people park and load cars on a road that doesn't have parking or stopping.  Much less to do it at a bus stop.  But I guess that's just me.

This morning, I decided to take a closer look at my wheel - maybe I just couldn't see the cover.  Further inspection indicated that the cover was indeed gone and the the tire was flatter than the others.  Perhaps this was from the dent in the rim - nearly 3 cm deep.  The wheel cover would best be retrieved in the morning, I surmised, after then events of the previous evening.  I parked and walked over to where I saw the cover the night before.  It was not my wheel cover.  I looked around and spotted another - it was not mine.  I gazed more carefully and found the wheel cover in the bushes, but sadly it was not mine either.  It was no where I could find it.

Tomorrow I shall try and make a trip by the spot and take some pictures of the covers and the pothole, if it's still there.  Maybe some municipal workers, or helpful squirrels, filled the pothole with asphalt today.  One can only hope....

Wednesday, March 4, 2009

Maven thoughts, then patterns thoughts

I'm still plodding away at Maven at work.  There was some discussion as to naming patterns, conventions, directory structure etc.  Most of these things weren't ground-breaking, just items that require agreement.  Without agreement, some benefits are lost.  The only point I wanted to see was that modules and Java packages corresponded.  Everyone in my group agreed with that idea, so I went to voice my concern with one of the main drivers behind the Maven efforts.  He said essentially the same thing, but pointed out an exception.  Imagine an interface is described in module I, with two concrete implementations in module A and module B.  If module I uses a factory, it must have special access to module A and module B.  Specifically, module A and module B should be non-public, package protected perhaps.  This leads to having the interface, factory and implementations in one Java package even though logically they three separate pieces.  I wasn't 100% comfortable with the example, but I couldn't identify any flaws in the reasoning.  Then I hit on why I didn't like it - I don't think I like factory classes.

I've used factory classes a few times in the recent past, but they aren't something I agree with as much.  They are hard to test and the classes that use factory are also hard to test.  I think I would prefer each of the modules be a separate Java package with a single public entry point in module A and module B.  The user would be able to determine which implementation to use, instead of putting all that logic in the factory class.  However, either implementation would work and are equally correct.  It also illustrated the point that the name conventions and layouts are guidelines, not rules.  The exceptions occur frequently enough that slavish adherence to particular rules will cause more problems than necessary.  Rather the rules are there to help remind people to really consider why they are using complex constructs.

This brings me to some thoughts on patterns.  The Abstract Factory pattern was mentioned above and my desire to avoid using it comes from a certain unease with ideas of software patterns.  I've previously had discussions with a co-worker who expressed the idea that there is something wrong with patterns, but he couldn't put his finger on it.  I suggested that it was because the patterns don't solve all problems (otherwise software development could have been fully automated by now) and the pattern requires adjustment all the time.  It seems like the problems are fit to the patterns, rather than using patterns to solve problems.  I think that patterns have been used by those that want to turn software development into more of an engineering discipline with common issues that simply need to be recognized and well-known (well-described?) solutions applied.  I agreed that these were my ideas on the topic, but didn't do the unease any justice.  My co-worker has been reading Christopher Alexander's book on pattern language, as Alexander is the source of the ideas adapted to software development.

I suppose the real issues come from those who apply the software design patterns too easily, without first considering the problem.  As time has gone on, I've been adding criteria and considerations to things I need to design.  Things like ease of understanding the result, simplicity of implementation, testability, current requirements.    Also, with the various patterns I've been involved in, they've been customized and adjusted in ways that suggest one of two things (or both): 1) pattern didn't fit and the problem is being adjusted to suit the pattern and 2) so many adjustments are made so that the pattern is only partially there.

Anyway, this is not a well-reasoned argument - it's barely written down at all!  Hopefully I will be able to devote some more thought and then more time to describing some of these things more coherently.  Not tonight though.

Tuesday, March 3, 2009

Blank silence

Confronted with the silence of the blank page.  That, and the silence.  Makes for a quiet emptiness or something.  Whatever it is, I guess it didn't last forever because I can hear typing.  I really need to head of to bed - I've been staying up way to late for no good reason.  Plus tomorrow is hockey and I had to pay for a goalie.  I'm hopeful that we'll get more than 6 or 7 skaters 'cause that's not enough to spread the costs nicely.  I also need to look into getting a new stick or something - the two I have now are still in one piece, but the toe is looking rather misshapen on both.  I just don't know when the sales will start - soon I guess.  Some places get the ice out before the end of March, which means most leagues will be done by then.  Not me - I like the fact the two games I play are every week.  Or almost every week.  Keeps things interesting all year long.

Took a small break to look at Kimota94's page and found his reference to 6 word stories.  I put some there as comments, but here are some more (because I'm really tired and it makes things like this more amusing):
  • Don't go! She cried. So lonely...
  • This sentence is short but complete.
  • Don't decry what you haven't written.
  • Contractions make writing small stories easier.
  • Marshmallows are mellifluous; muffins less so.
  • From the Simpson's: "Brevity is... wit"
  • March madness revealed in small sentences.
  • This sentence is not about itself.
  • "Long enough, it is" quoth Yoda.
  • Curb the garbage, keep wife happy.
  • Deep hole jarred vehicle - potholes suck.

Monday, March 2, 2009

Watching...

Don't have much insight today into anything in particular.  Not that I expect to have many things to say every day in every way, getting better and better.  I suppose I just hoped that I'd be able to yank a topic out of somewhere with a bit more easy.  I don't know why I kid myself so - find the topic is always the hardest part!  Well for me anyway.  I do remember the creative writing assignments I had in grade school.  I could come up with several riffs on whatever the theme was.  One I always enjoyed was the guy with shirt covered in stains from his chicken flambe.  He could be counted on to do unusual things, that's for sure.

The Watchmen movie is going to be out this Friday and a friend suggested in a Facebook update that the midnight Thursday showing should be attended.  There's going to be two showings in London (Ontario, Canada for those arriving via search engine), one at the Silver City and the other at the Wellington 8.  Very interesting.  Anyway, I promised my friend we'd see it Friday, so I'll have to see if he's willing to change the time.  I've only read the graphic novel once - a sad condition which I hope to correct through a purchase this week.  I've come to realize how much I like Alan Moore's writing, so I need to acquire some more of his work and that's a really good place to start.  That and Neil Gaiman.  I've seen the trailer once and parts of the commercials.  I know the story, so I'm hopeful that the visuals will live up to the story.  All will be revealed soon.

On another completely topic, get a load of that Martin Brodeur.  I read this article on the CBCsports.ca site, completely ignorant of his comeback.  Wow!  I agree with the assessment that Brodeur's time off served to improve his game, not hurt it.  Very impressive.  Mr. Brodeur is now within striking distance of Terry Sawchuck's all-time shutout mark and Patrick Roy's career win mark.  With this pace, he may break both at once!  The Hockey Hall of Fame is probably preparing space for him right now...

Sunday, March 1, 2009

Build tools

I referred to the Maven change at my work the other day, but I didn't take the time to describe some of the basic principals that I was using.  These principals generate questions rather than exclude or include things.  As I mentioned in this post, any build tool can be configured to support your environment.  Using that logic, why would anyone move beyond shell scripts and batch files?  That's the first item in the philosophy:

1.  Can this project use the build tool in the way it was designed?
For make, this means try to use only the implicit rules and organize your pieces so that all the interdependent files are within the same directory.  For maven, this means organizing your project in a modular fashion where each of the configuration files describe only the dependencies between the modules.  When you move out of the comfort zone for the tool, you increase the likelihood of mistakes, or design cul-de-sacs.  Every design has certain features that shape it, and those features exclude other items or make them difficult to achieve.  Using Maven to build a project developed entirely in C raises a flag.

2. Can the build tool handle the corner case you know about now?
Pretty simple thing to remember - if the tool can't handle all your current requirements, how will you deal with the unexpected?

3. Can the tool be setup to run correctly from a sandbox?
By sandbox I mean can the tool be useful without referring to non-local items.  I understand that one of the features of Maven is that it can keep various libraries up-to-date by retrieving the latest version.  By "retrieve" it means connect via HTTP, I believe.  I've been informed that this behaviour can be disabled, which would be a plus in my view.  When building a particular project, it is preferable to be able to identify, before the build, the files that will be included.  That doesn't really provide any more or less protection from error, but it makes the process more repeatable and leads to the next point.

4. Can the tool be setup to run correctly from a source control?
Imagine you have a project in a source control system and you connect with a new machine.  Can  you do a single check, run the build tool and generate the proper output?  This is something that I value highly.  It speaks to repeatability and how fast you can get new project members up to speed.  It also means that as long as you have project source, you can build it.  Someone I knew at university was doing his PhD, but he said that he could no longer print or display his Master's thesis.  He wrote it in PostScript or LaTeX dialect and could no longer find the pieces the render the source as it appeared in the hard copy.  Many companies and individuals rely on open source tools.  If they do not keep the tools along with the project, they risk not being able to build the project from source in the future.  

5. Can developers operate effectively without modifying the configuration files?
One of the problems I've seen in various workplaces is build configuration differences.  If the build configuration files have to be checked out of source control and modified to build correctly, that is a large potential problem.  Ideally, build configurations would not need to be altered unless files are added or removed - even some tolerance of those changes would be good.  If these files have to be checked out, different groups produce slightly different builds, which leads to errors arising from these small changes.  These errors are very hard to track down and can be avoided with proper tool selection.

To summarize - the idea is that doing the right thing is easy and the wrong thing (unexpected things) is hard.  It should be easy to identify where everything came from and how something was built.  These things may take a large amount of configuration - a ramp up time learning how to use a tool properly.  As for Maven, so far I think it's right for what we are doing at work - but there are caveats.  The main one being the potential for cross-module changes, of which I know of one current example at work.  Items that touch many modules can be refactored by adding more indirection (or abstraction), but this has it's own cost.  Oh well - such complexity is what makes things difficult and what keeps me employed.  I just want to make sure that I don't forget the potential problem areas in the future.

Saturday, February 28, 2009

Lots of swimming - just not me.

Saturday is the day the kids go swimming and today was an important day in the lesson cycle - report day.  My older son passed the current level after one go - something he hasn't done before.  He went through several lesson cycles pretty much acclimatizing to the whole "water" thing.  I was worried at first, until I was informed how much time I spent at the early badge levels.  Now he seems to be picking up on some of the important pieces and so is making more rapid progress.

Talking with my older son today before his lesson, I found out he went swimming on Friday with his class from school.  I forgot about it, but I thought it was an excellent idea to give a few lessons to all children of a certain age.  Some quick exposure and a few basic concepts should do wonders to help kids that run into water-related troubles.  There always seemed to be a clear division between swimmers and non-swimmers when I was a kid, largely economic.  Some families had pools, so those kids swam.  Some families thought it was important that children swim (like my parents) so they had lessons.

What made today be "lots of swimming" rather than a "Saturday amount" of swimming was the party my oldest son attended in the afternoon.  Turns out a pool in Ingersoll (the Victoria  Community Centre) has the facilities and staff to run events in and around the pool.  The kids had an hour in the pool and then adjourned to a room for pizza and cake.  It certainly looked like a good time.

Friday, February 27, 2009

A Friday at work

Post 177 - not prime, but at least the product of two primes: 59 and 3.  Had a pretty good at work, especially at lunch hour.  The last Friday of every month some people bring in their Rock Band and have at it over lunch - but must be done by 1pm.  Anyway, it's a pretty good time - there are quite a few people that are really good with the various instruments, especially a couple of incredible drummers.  Always impressive.

More interesting was the initial reports of some investigations into using Maven.  Maven is a development tool, used to compile/package and generally create a piece of software.  Other similar tools are "make" and "ant", with ant being more closely related.  Currently we use ant to manage our builds, but there will be a move to maven for the next release.  Given some of the problems encountered testing it out, I wanted to find out what has been motivating the move.  Especially when I found out how easy it was to retrieve libraries from Internet sources.  For an open source project, this is a tremendous feature, but for a proprietary embedded system, I'd be more comfortable with a rigidly contained system.  By that I mean one that will not attempt to search for data beyond a specified file system area.  So I went to talk to the person who has been working on this initiative for the longest and he had all the "goods", so to speak.

The reason for the move had two main motivations - the first being the default mode that Maven operates in.  Maven expects projects to be structured as a series of modules.  This encourages projects which have lots of pieces with well defined boundaries.  This is something that our company wants to promote internally, so Maven promotes it by making it the simplest choice.  Maven's strength comes in the way it describes dependencies between modules, with the simplest configurations being when most configuration files only contain the dependencies.  The second motivator was that modules can describe a dependency on an old version, so development could continue in place without breaking other modules.

After my conversation, I was pretty happy with the discussion.  The tool doesn't eliminate problems, but steps will be taken to minimize the likelihood of certain problems.  I wanted to convince myself that we won't be walking into a new set of pitfalls without enough forethought.  I believe if certain configurations are used, the future project will have fewer potential problems.

Ah well, I guess that's a first cut at that discussion.  My brain is tired and trying to get me to sleep, so it won't let me continue heavy thinking.  Tomorrow then...

Thursday, February 26, 2009

Scout bowling

The cubs got invited by the scouts to go bowling tonight.  Worked out pretty well - we took over a nice 5-pin alley, the Fairmont Lanes.  The kids seemed to have a good time - they were definitely loud enough to seem like they were having fun.  My elder son, who is currently in cubs, bowled without the bumpers and used his unorthodox style to reach 96 for the first game.  He went into the 10th frame with 94 and I thought he'd be able to break 100.  It's pretty good considering the best game he had a few weeks back was 103 with the bumpers.  And he'd like to go back, but I suspect it's the "claw" machine that's more interesting.  He really wanted to play so I gave him some money.  He managed to win a monkey on his 4th try.  A stuffed monkey, which I'm calling Curly.  Because of the Three Stooges.  It's a bowling themed name.  Whatever.

I'm trying to be a little more proactive at work, although its a detestable word.  I have to use a different phrase, or generate some clever euphemism...  Self-starter isn't better.  Self-motivated is as bad as self-starter, while auto-motivated just sounds wrong.  Maybe I could say "I'll eat it like a duck" because ducks don't chew their food...  Nah - "on like stink on a dog"? Too negative - implies I keep forgetting my deodorant.  Hmm - "on it like killer bees on everyone?"  Nope.  "Like bankers on a bailout?" Bingo!  I'll be more banker-on-bailout at work - seizing the cash, er, opportunities that present themselves.

Wednesday, February 25, 2009

Communication

It's review time at work.  That usually means it's time to try and figure out what happened in the past year and how to phrase it just - communicate what makes yourself stand out.  Hopefully you stand above.  Now review time means all the rehashing and debating is done and the explaining begins.  I sense that most of the managers dread this time of year, but I don't think they should be too worried.  I think they're worried about all the questions that arise from the reviews, but it's pretty much what it is and I don't think there will be too many questions about how - more about what comes next.  One of the things mentioned by my manager was that I have to improve my communication.

It's interesting that I decided to do some writing every day to improve my communication skills and that it's something to work on.  I think the idea was that I'm not a bad communicator now, but I could be so much better.  Potential and all that rot.  So I endeavor to be a more nuanced communicator.

Which brings me to this post over at Kimota94's Place.  I find it petty that someone would expunge all comments by a particular person.  I suppose in the blog system the comment removal would be hidden from the wider audience, so once the decision is made to decline comments from a particular source, it can be accomplished in secret.  The thing is, if someone disagrees or displeases you that much, it shows more character to leave the comments there.  It's one thing if someone is being belligerent, but in general the comments speak for themselves.  If the comment is that contrary or disagreeable, it should be evident to everyone.  Then such irritation reflects back on the poster rather than the blogger.

Sentences make sense not.  Sleep must obtain.  Cease communication.

Tuesday, February 24, 2009

No hockey!?!

Just found out that hockey for tomorrow is cancelled due to rink troubles.  Both pads are having trouble with the chillers apparently.  Which sucks because we had enough people committed to have a few people sitting on each bench!  Wow!  That hasn't happened for some time.  I hope people get the email before the head out tomorrow.  Maybe I ought to get to the gym instead then - my paunch is getting unruly.  I need to drop a bunch of weight and I haven't been controlling my eating the way I should.  Which is to act like some kind of adult and demonstrate some restraint.  Crazy I know, but there it is.  Actually doing physical activity helps out, but whatever.

Did a little research into RMI and IxC at work today.  Don't really get a chance to explore new stuff there, but this important for our upcoming projects.  RMI is "Remote Method Invocation", a system to run code in a "remote" Java Virtual Machine (JVM).  Depending on the environment, the word "remote" can mean different things.  It could represent a distant machine on the Internet or an app running in a logically separate sandbox (or context).  IxC is "InterXlet Communication", and is part of some of the mobile Java profiles (J2ME, PBP, CLDC and lots of other acronyms).  You can look at JSR-217, which is Personal Basis Profile (PBP) 1.1, looking for the package javax.microedition.xlet.ixc.  What I've discovered so far is that IxC removes the generic portion of RMI by eliminating the registry and replacing with the IxcRegistry.  Not really very much, but we spent a bunch of time trying to work out if it was possible to replace RMI registry with something of our own devising.  So far, we have to say "no" if the objects to be exported were written to use IxC.  

Before you get all huffy and add comments to illuminate my idiocy, the code in question has two parts - simple calls and callback registration.  The first part can be done without much difficulty, but callbacks are tricky.  The callbacks originate in the object to be exported.  Let's say there are two app contexts, A and B.  Class Foo is registered in context A and sometime later app Woogle in context B uses RMI to get a reference to Foo.  Class Foo was written to be used over RMI, so it can marshal data and so forth.  All we need to do is create the registry and setup the communication path between context A and context B.  Now let's say Foo.addListener(Remote listener) is used by Woogle to pass an instance of MyListener.  So when class Foo wants to invoke the listener, the instance resides in context B.  The only way to make the invocation is to use RMI from context A to invoke a method in an object in context B.

Such is my work.  Maybe I'll have more interesting (read: concrete) details in the next few days.  That way I can accomplish the task of learning something new at work.

Monday, February 23, 2009

Mmm... Blizzard cake...

Monday again.  On the way to work, I had that little light go off.  Not the shining beacon of creativity, but the ominous amber glow of potential problem.  My wife and I went to a birthday bash on Saturday for some friends who have birthdays around the same time we do, and she made the off-hand comment about where her cake was.  At the time, it was a playful jest, directed at not-me, so who would remember such a trifle.  On the way to work I put somethings together and realized I failed in my ice-cream-cake-retrieval duties as a husband.  Please, don't let it happen to you - buy three or four and store them in your secret chest freezers to have ready-to-serve on a moments notice.  You will be surprised when such dates spring out from the corners at you!  Prepare the cakes with "Happy 21st Birthday" or keep a fresh tube of icing in the cupboard if you can trust your sugar-messaging abilities.  Remember - keep that tube of icing fresh!  Check it every few weeks by consuming the 2cm of sweet, sweet frosting nearest the cap.  It is the only way to ensure that the icing has gone stale!  Also, it's fun to eat sugar.  So at least you'll be happy until your Islets of Langerhans pack it in - but the icing will be fresh!  Small price for edible writing.

As for me, I was able to procure a Blizzard-cake to complement the fine meal to be had this evening.  I think it was appreciated and unexpected - a good sign!  Plus the fact I survived the weekend meant that I didn't miss too badly in the first place.  The ice-cream cake was pretty good and I think I will get one again.  I also think that it will serve more than 8-10 people.  Maybe 12-16, but then again, that's what I see based on how much we've had tonight.

Sunday, February 22, 2009

Ah, Sunday

It's the day after curling day in London.  Not to be confused with Hockey Day in Canada, which happened to be the same day.  Coincidence.  Seriously.  Curling is fun, it turns out, and I am eager to engage in it again.  My technique sucks, but that's what practice is for.  There was talk of making this event annual or semi-annual and I expressed my eagerness for such an undertaking.  I don't believe my brief post from yesterday indicated how I was the only person to put rocks in play on the very first end - one actually in the house!  After that, I was too heavy, too left or way too light.  So all over the map.  An hour of practice by myself would be nice, but that's for another time.  I'll have to contact someone I work with who curls - maybe I can arrange for more ice time.  Might be difficult if I can't convince my wife though...

Today was also the end of a cub camp for my eldest son - I think he had a pretty good time.  He actually managed to pack most of his stuff the way it arrived.  Even more impressive if you saw how the various sacks were bulging dangerously on the way in.  Camps can be pretty chaotic, but they also provide time to play with fire.  Campfire, out in the snow, with sticks and no accelerants.  So the good kind of playing.  All his clothes smell like smoke, so either the camp burned down, or he enjoyed the campfires.  The buildings were all there when I picked him up, so there you go.  Pretty good setup for winter camping - they had modestly heated buildings to camp in.  I've been winter camping - once - and it was okay as a scout.  As a cub, not so much.  You have to keep your coat on inside your sleeping bag and basically figure out how to stay snug without fire.  Inside your sleeping bag - no flaming tents or the like.

Saturday, February 21, 2009

Bar blog!

Well, I'm at the Black Shire, enjoying a post curling brew. It's my friends Kim and Sinclair. Like my wife and I, they have birthdays in Feb and March. Of course I'm enjoying a post-curling-appropriate Labatt 50 and listening to stories about Chuck Norris. The curling went well I threw the winning stone in the first end. All subsequent rocks went out of play, but our team managed to win 2 of 4 ends. We played a new pair of teams for everyend to keep things moving. Anyhoo, time to get more 50.

Friday, February 20, 2009

Dollhouse, Episode 2

I don't know how rabid a fan of this show is, so I'd like to warn the reader that I may leak some spoilers below, so read at own risk.  It's my speculation however.

I admit it - I am a fan of Joss Whedon.  Not forever, not of everything he does, but definitely since Firefly.  Just finished watching Episode 2 of Dollhouse, which revealed more back story, particularly about Alpha.  They are still setting up the parameters of the show, so it is hardly time to make judgements about how good it will be overall.  The surface stuff is all good - action, character interactions, the layering.  However it struck me what the central idea of the series is, and it seems to me that it comes from the Dune series by Frank Herbert.

Not to be petulant, but only from the Frank Herbert stretch - particularly the volumes after God Emperor of Dune.  What has been revealed about Alpha is that he was somehow able to access multiple imprints and escaped the Dollhouse.  A central theme in the later Dune novels was that it was possible to awaken a clone's memory to give it access to every copy of itself that existed in the past.  Don't worry about time travel and so on, but the suggestion was that there is something that binds the mind to something that persists longer than the living body.  One could use the label "soul" for this - the soul is eternal and persists beyond one lifetime and represents everything that a particular body/mind set learned.  In Dune it was an important step to be able to access these old mind/body pairings, suddenly acquiring memories and skills that the current mind/body pair haven't directly experienced.

Sounds vaguely like the Dollhouse premise of "imprinting".  On one side, there is the operators of the Dollhouse that are using science and technology to wipe clean the dolls.  On the other side is Alpha who was able, eventually, to access the wiped information.  This ability seems to be rare, so Alpha has achieved it and it also appears that Echo is close to achieving this. 

The other thing is that Echo appears to be able to learn across imprints and almost instantaneously.  Watch episode two carefully to pick up on this evidence.

So far, excellent TV.  At least for me.