XML processing in Elisp

Tagged:  •    •    •  
Recent versions Emacs has built in xml support, and there are libraries available that give you DOM and even XPath capabilities. I've started experimenting with it as I want to process Eclipse Workspaces. Ideally, I should be using XPath, but that has too many dependencies for now (it depends on parts of Semantic). So, using the xml-parse examples on EmacsWiki.org, here is some simple code to get a the "userid" attibutes from all the "to" elements of the following xml data:
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <note topic="weekend plans">
  3. <to userid="1">Tove</to>
  4. <from userid="2">Jani</from>
  5. <heading>Reminder</heading>
  6. <body>Don't forget me this weekend!</body>
  7. <to userid="3">Bob</to>
  8. <from userid="4">Sammy</from>
  9. <heading>Alas!</heading>
  10. <body>A new week!</body>
  11. </note>

Real-life software superheroes

Tagged:  •    •    •    •    •  

I only heard about Opera Software's scheduled visit to Durban on Monday. While I couldn't attend the lectures at DUT or UKZN I made damn sure that I could attend Thursday's "informal gathering" at the Suncoast News Café. You see, I started using Opera when it was still ad-supported (and I honestly don't remember the first version number that I used). Before Firefox even existed I was using a tabbed browser with mouse gestures, cool keyboard short-cuts, colour themes, customizable everything and built-in mail client. But I digress...

Keyboards and accidents

Tagged:  •    •    •  

If you ever accidentally pour a mug of tea on your keyboard and surrounding desk, hope that it is a Microsoft Basic keyboard. Because I did that yesterday and was very impressed with the keyboard design.

Compiling Emacs

Tagged:  •    •    •    •  

So, I'm back to trying to compile emacs-nt again, having discovered that the required W32 headers are in fact conveniently supplied by Mingw (albeit in a different package). Now I'm getting an "Unknown Processor" error. gcc -dumpmachine tells me I have an arm processor on my PC... perhaps this is the problem o_0

UPDATE: It turns out the Symbian SDK also provides a gcc, and this was in my path before the Mingw one. Hence the strange architecture.

Interesting Drupal sites

Tagged:  •  

I discovered two interesting sites listening to the latest Lullabot podcast (http://www.lullabot.com/podcast)

The first is Top Notch Themes (http://www.topnotchthemes.com/browse), which provides paid-for Drupal themes.

Themes are one area of Drupal that are not immediately obvious - more of an art than an exact science. If you have enough $$$$ you can even "buy out" a theme to get it removed from the site.

Opening an image in Opera 9.5 spawns multiple tabs

Tagged:  •    •  

I recently started seeing a bizarre problem in Opera. I believe it only happened in Opera 9.5 but I may be wrong. I suspect it may also be linked to Irfanview. Basically, when ever I opened an image via the context menu, or clicked on a image link, a gazillion (ok, 10 - 20) tabs would open, trying to load something from the cache directory - yet still no image.

I found the solution to the problem yesterday, in the Opera Forums:


Seems like something got mixed up in your file type associations. Probably the best thing is to reset them all.

Outlook 2007 "improvement" madness

Tagged:  •  

I just noticed that if you hold down ALT in Outlook 2007 you get helpful letters instead of underlines to show the short-cut key.

Was it really such an issue for people that they felt they had to spend resources on this "feature"?! o_0

Django first impressions

Tagged:  •    •  

Having been a Drupal fan for quite some time, I haven't really looked at other web frameworks. Indeed, I had missed the Ruby on Rails bandwagon, ignored twisted/nevow/... train, and didn't give Django a second thought. However, recently rooijan started talking about Django and made me curious.

Calcium - Calculator for S60 with sane UI

Tagged:  •    •    •  

I always appreciate an elegant solution to a problem. MTVoid has created a calculator app that is exactly that - elegant.

Coming soon to a Spar near you?

Tagged:  •  

This ranks high in the "Random" and "So what?" categories, I know, but I found it quite interesting. While at my local Spar, I snapped the following pic of a not-quite-functional little video screen:

20070930540

Syndicate content