Skip to content

Getting burnt by publish-without-saving in WordPress

I apologize to anyone that read my last post and found it abruptly ending. I just got burnt trying to write some long additions to my last blog post then promptly hit publish assuming I was done.

What I did NOT realize, is that Publish in WordPress does NOT mean:

  1. Save current contents in the text edit window
  2. Publish updated content to blog

What it DID do was

  • Publish to blog last saved contents for post

That would not have been so bad if I didn’t lose 3 paragraphs that I entered into the text edit window WITHOUT saving. I guess from now on I will be hitting ‘Save’ every other minute to ensure I have a not so old snapshot of my current blog post.

Helping openwferu follow the Ruby way

Hello (openwfe) World

John Mettraux who is the project lead for OpenWFE has given me commit rights to his Ruby port of
OpenWFE.

I have to say I’m flattered by the trust in receiving commit rights considering:

  1. I have no experience with workflow systems
  2. I’m not exactly a Ruby expert

First thing I did was check out the source and noticed that the rdoc for the source was reasonable but lacked examples for getting started. For a simpler library like Math this might be doable however a workflow engine has quite a few moving parts so it’s hard to know where to start.

I decided that my first task would be to add some examples to get someone else up to speed (such a myself) without having to crawl through the unit tests. However, after updating the README.txt I was noting things.

Restructuring the directory layout

When I started with openwferu I saw the following type of directory structure:

$ tree -d -L 2 --dirsfirst openwfe-ruby/ 
openwfe-ruby/
|-- lib
|   `-- ru
|-- tst
`-- website
    `-- src

Basically a decently structured project however one problem is that this directory structure does not adhere to subversion’s normal directory setup of branches/ tags/ trunk/ . This creates a few problems such as:

  1. Force developers to learn a new directory layout convention
  2. Makes it difficult to create tags and branches of the project
  3. Forces customization of svn tools that rely on this directory structure

After discussing with John on this matter. He agreed we should restructure the directories around to adhere to a typical subversion layout.
After restructuring the codebase it now looks like this:

$ tree -d -L 3 --dirsfirst . 
.
|-- branches
|-- tags
`-- trunk
    `-- openwfe-ruby
        |-- lib
        |-- pkg
        `-- test

Gemification of OpenWFEru

I was about to start up on documenting the codebase again when I realized that OpenWFEru’s release system was basically a shell script. Actually, most of the release tools were small shell scripts to handle tasks for running unit tests, creating a zipfile release, and generating rdoc from the sourcecode.

While this is okay, the Ruby world has built the Gems package management system to handle these problems. So I decided my next task was to bring openwferu into the gems world. This involved RTFM…

Unfortunately, I found the docs on the Gems website pretty weak at explaining the process besides some hand waving and a reference to some build tool called Rake. Luckily, I have a copy of Programming Ruby sitting on my desk here so flipped it open to Chapter 17 on package management with RubyGems and just followed through the example and substituted all relevant parameters with ones that were suitable for OpenWFE. A little bit later I had both a gemspec file and a Rakefile ready. Note that the Rakefile is a superset of the gemspec file (a Gemspec is basically embedded inside the Rakefile and some tasks are added to Rake). I took my shot at trying to generate a gem however failed…

The reason for the failure was based on OpenWFE following the version numbering policies of its java-based cousin (1.7.3pre1-something). No biggie, except the Ruby Gems website explains in detail why you should follow a version policy of major.minor.build (ex. 1.5.4). After discussing this with John, we decided to renumber OpenWFE to 0.9.0 as the API is mostly complete and the base functionality is there. However, there are some details that prevent it from being called a 1.0 release. I’ll let John decide on that.

After renumbering the versions, I ran the rake command listed in Programming Ruby that would generate a gem file (rake pkg/openwferu-0.9.0.gem). Lo and to my surprise, it built the gem all properly. No major fusses. A good portion of this can be attributed to John mostly following ruby conventions of keepign your code inside of lib/ rather than splattered all across the file system. Once nice thing about Rake and the Gemspec is that they are basically Ruby files so anything you can dream up in Ruby can be added into these files to help in customizing a build file. Luckily, for OpenWFE there wasn’t much needed. But it’s a double win as there is a much lower mental overhead in learning how to declare your build configuration without having to context switch between two different syntaxes (I mean you ant).

Now that gems can be easily created I can return to my original activity of trying to add examples and better documentation on using OpenWFE along with an extra activity of figuring out how to get the built gem files on RubyForge.

A nice brief summary on what Open Sourcing Java means

I found this blog post from Stephen O’ Grady an excellent summary on the latest news surrounding Sun open sourcing Java. It certainly saved a lot of time wading through Java Jargon just to find some real news.

Smalltalk.rb

Avi Bryant blogged about his first concrete steps towards getting Ruby running on top of a Smalltalk VM. He calls it Smalltalk.rb

I’m pretty sure this is the lightestweight bootstrap there can be towards the goal of eventually getting Ruby running on a Smalltalk VM. No new parser needed: we use JRuby’s. No new compiler needed: we use Squeak’s.

He also started a Google Group on it to get interested parties involved. I wish him and those the best of luck as this is very promising stuff.

References

SmallTalk.rb Google Groups

Linux powered Mp3 player

About time…


Linux Mp3 Player


Got to wait until Feb 2007 to get your hands on one though. Hope it doesn’t cost too much

Hello WordPress world!

I’ve migrated to the WordPress setup here.   The manila instance that was running was getting old and decrepit.

Let’s see how this goes

Why compatibility is important for large corps

Their operations division is responsible for 9,000 different install scripts for their employees around the world.

That’s INSTALL scripts for programs. Not the programs themselves. I think you can do the math from there.

Read it yourself

The first international workshop on Plan 9

If you are in Madrid, Spain during the Dec 4-5th timeframe of 2006 it looks like you can jump in on the first Plan 9 international workshop.

I’m still trying to get a machine that runs Plan 9 without much fuss to see how it is but I always find new information on Plan 9 interesting to read.

Plan 9 Workshop site
OSNews link to Plan 9 workshop

The story of one guy’s life

via James Duncan Davidson’s blog

Sony Walkman creator retires

And what does he have to say? (Well at least through the reporter filter)

Kihara has written in his books that it still boiled his blood to think that consumers have been forced to use the “inferior” VHS over Sony’s Betamax.

Sony has had a history of good engineering quality. However, lately they’ve gotten soft and in my opinion really started NOT getting it when it comes to engineering the next tool. Example, The Mylo.

Sony really needs to wake up and realize the world of electronics is a much larger place than the little playground they had to themselves for decades and start learning to play ALONG with others rather than create more messes that takes years to resolve.

As for ‘inferior’ VHS. Well, if Apple wasn’t stupid back in the 80s Microsoft wouldn’t exist. ’nuff said

Read it yourself via Slashdot

Solar power getting cheaper?

Anything that means solar technology is getting cheaper is a good thing in my book although the link is to a Technology Review article. So far Technology Review keeps talking about great technologies that I rarely see in my daily existence. But they do make great press. But I can always be hopeful.

The Technology Review article via Slashdot

The OLPC has won an award already but no one is actually USING one


This really gets to me. The OLPC has won a Popular Science award yet it isn’t even out yet. I’m sorry ‘in manufacturing’ does NOT mean it’s in the hands of children who need it most. Until I see THAT I watch by the sidelines skeptical.

PS3 Launch a mess in Japan?

Here’s something you probably won’t read in the local Japanese newspapers:

This is the true face of the PlayStation 3 debut in Japan. Hardcore gamers are not here waiting in line overnight, buying a first-run PS3, and running home to play some good old next-gen gaming. Rather, opportunistic Japanese businessmen have the largest presence, hiring poor Chinese men and women to wait in line for a PS3

Frankly, this is yet another blunder for Sony but I bet it will be silenced by the Japanese media so the only people who will know about it are:

  • People reading this blog (All 3 of you!)
  • Gamers not in Japan
  • All the Kotaku.com readers

A very sad thing this is. It really makes me wonder whether it’s even fun anymore to sit in line for these launch events if some enterprising people are just going to hire some homeless folk to wait in line for them. Anyways, if you’re reading this. Spread the word far and wide, please.Read it yourself on Kotaku

Reviews on Practical Ocaml

Apress released a book titled Practical Ocaml and while I was excited about the book and read the interview with the author. However, after looking briefly through the comments on Lambda the Ultimate I might have to reconsider purchasing this book.

Ehud comments:
I haven’t seen the book yet, but it’s really sad if the book is as problematic as this thread indicates. I had high hopes for the “Practical X” line of books. I thought it might become an O’reilly-like brand for books about non-mainstream language

Matt comments :
This book is a big disappointment. As already noted, it has some severe stylistic problems and the writing is uninspiring, to say the least. But by far the worst problem is that the author’s knowledge of his subject is simply insufficient. This shows up all over the place, but I’ll highlight two examples that I think exemplify the issue.

William comments :
Some items are given only a superficial introduction (e.g. variants — a very important part of OCaml), and then used fairly heavily two chapters later without so much as a pointer back to their introduction for people skimming the book.

and finally Merjis (one of the technical reviewers) writes on his blog :
I only wrote one candid assessment, and decency and privacy prevent me from disclosing what was in it. I will just say that it was not positive.

Needless to say, a very disappointing round of comments. The part regarding poor introduction of material then abusing it later on is a serious flaw in my assessment of the book. I have been suffering this problem for years on many different topics (maybe it’s just because I’m brain damaged) and it’s one of the major things I always am critical about when evaluating the learning process on anything. Crappy treatment of the foundations you are trying to build the rest of your mental model on is terrible.

Related

  • A Lambda the Ultimate contributers view on Ocaml the language itself is available here
  • A much better (and free) introduction to Ocaml (supposedly) is available here

Photosynth, a new way of seeing relations in your photo collection

I just took a glance at

photosynch and

am really impressed with the applications of computer vision and image

processing techniques to create a really unique application.

The basic

idea is to take a pile of photos that are related to each other somehow

(imagine taking zillions of pictures of the Taj Mahal from tons of

different places) find similar features in all the images and try to

reconstruct a mock 3d space that shows the spacial relation between

all of your photos. This is really cool as you might be able to create

a very interesting photo tour from your photo collection in a 3d

navigatable space.

Oddly, I was trying to come up with a similar idea to link videos stills

in QuickTimeVR movies and try to use the linkable features in QuicktimeVR

to provide clickable hotspots that would take you to another photo that

was a picture of the same scene however this is far slicker and if it works

with very little intervention from the user besides pointing to a pile

of photos and letting it do its job that would be great.

However, there are still caveats. The whole process takes hours or days

to currently do and the current technology preview is only for a pre-rendered

project. The true acid test will be in my opinion the ability to

just point to a folder of pictures and have it do its job with as little

possible human intervention as possible. That is a not a trivial problem

but I’m sure we’ll see something interesting especially since it has

two (very well)

known researchers

in the computer vision field. I’m really looking forward to the results

of their labor. My last question is how many technologies behind this

are patented already. It’d be great if it an OSS implementation inspired

from this project could be made however patents are a sticky problem.

Try it yourself

( 6 or 7 REQUIRED)