Monthly Archive for July, 2007

Sylar to play Spock in Star Trek XI

Zachary Quinto will play Spock in the upcoming Star Trek movie. Sylar is definitely one of the most memorable characters in Heroes, so I have high hopes for the new Spock!

RDF API for PHP 0.9.5: Bug with ResResource and ResModel::find

I ran into a problem when using the statement-centric find(…) query using the OntModel with the RDF Vocabulary. The specified RDF resources were treated like NULL in the find function. In order to fix this, create a ResProperty instead of a ResResource, and all will be well. This can be done like so:

$rest = $this->ontModel->find($statement->getObject(), new ResProperty(RDF_NAMESPACE_URI . 'rest'), NULL);

References

My open source contribution, a bug report :) : ResResource as parameter for ResModel::find does not work.

Customizing EMF XML Serialization

It’s unfortunately that much documentation on the Eclipse Modeling Framework (EMF) is scattered around the ‘net. After digging through the EMF newsgroups (which are immensely useful, and full of useful information!) and several articles, I pieced together how XML serialization of an Ecore model can be customized using ExtendedMetaData EAnnotations.

EMF ExtendedMetaData Screenshot

However, when saving the model the XMLResource.OPTION_EXTENDED_META_DATA option must be set to true in order for the EAnnotations to be effective. To do this:

Map options = new HashMap();options.put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
options.put(XMLResource.OPTION_XML_MAP, xmlMap);

Finally, saving the model with the specified XML resource options:

resource.save(options); //Save with the options map

References

7-11s become Kwik-E-Marts

Check out some photos of a real life Kwik-E-Mart!

Turn off caching on the PHP SOAP extension

WSDL not being updated from your PHP SOAP app?

After struggling for three hours trying to figure out what was wrong with my web service, it turned out that the WSDL was being cached by the PHP SOAP extension. To disable WSDL caching, add the following lines to the php.ini configuration file:

[soap]
soap.wsdl_cache_enabled = "0"

You should also delete the cached WSDL (located in /tmp/ for me).

Presentation on Corpus-based Learning of Analogies and Semantic Relations

Presentation slides on the paper “Corpus-based learning of Analogies and Semantic Relations” by Turney and Littman for CS886: Natural Language Computing.

Download [Download not found].

Intel Metro Laptop – Thinnest laptop in the world

Crazy. I don’t know why there’s this obsession over thin electronics (like the Moto RAZR), but the Intel Metro laptop is insane. Take a look. I love my chunky Thinkpad Z61p, but hey, if Intel can pack as much power as my Z61p into that small package, then I’m all for thin :P

Enable root account in Ubuntu

Ubuntu disables the root account by default. One simple command can re-enable it:

sudo passwd root

To switch to the root user in the shell:

su

Alternatively, you can switch to the root user in the shell without enabling the user account by using the following command:

sudo -s

Suspend2 now known as TuxOnIce

The Suspend2 project has been renamed TuxOnIce in order to differentiate itself from the actual process of suspending to ram and suspending to disk. TuxOnIce screams geekiness.

Lenovo T61p Announced

The Lenovo Thinkpad T61p has just been announced. It has the option of a WUXGA (1920×1200) screen, and comes with UWB, the successor to Bluetooth, which allows for 100 megabit transfer speeds… meaning the possibility of wireless port replicators. Imagine hooking up the laptop with your desktop keyboard and monitor, wirelessly. That’s cool. I think that the WUXGA screen is an IPS screen still, but don’t count on future models having IPS displays.

Eternal Sunshine of the Spotless Mind

Eternal Sunshine of the Spotless Mind is one weird movie. It’s one of those movies that get you thinking. It’s also one of those movies that doesn’t really make sense until the end. There’s just so much detail packed into it. Definitely recommended if you’re into strange artsy movies with a touch of sci-fi and romance.

Generative Software Development Lab Site Launch

I’m part of the Generative Software Development Lab and also the designer of the lab website (also powered by Wordpress!)

It’s still a work in progress. We still need a new header image that actually reflects the work in our lab (instead of a badly cropped photo of the Midnight Sun). The publications list is still MIA. If you have any suggestions, feel free to leave a comment!

The new woggie.net

Welcome to the new woggie.net. I will be adding more content in the future, so stay tuned!

Update: I started transferring some of the Linux guides from my old site, but found that many of them were outdated and obsolete. It’s great to find that a lot of things just work now with most Linux distributions :)