Much ado about scripting, Linux & Eclipse: card subject to change

2007-05-11

Happiness in Codeslavery

Oh. My. God. It's over. Bug 106804, "rearrange the features to minimize external dependencies", is finally done. It's been quite the ride, as you can see in the bug. The last three days are a blur, but it's done. Marcelo and I have been fighting the good fight solidly from Tuesday until this morning to contain this change in time for the M7 + 1 deadline. Thanks to the PDE folks for providing invaluable assistance in deciding what paths to take. Pascal, Kim, Sonia, Andrew: you guys rock. Thanks also to everyone else I've bugged with 'have you ever done this with your features / does your project do this?' questions to determine if we were treading into impossible territory or following an existing path.

EMF now contains smaller features which can be installed via Update Manager to compose whatever legal combination you want. Thanks to Update Manager finally working with features' dependencies on plugins, you can use PDE to generate a feature's dependencies and have the Update Site actually work when you hit 'Select Required' to pick up all the associated required features and their contained plugins. (You have no idea how freakin' exciting this, and how long I've been waiting for this to work.) I still think features suck, but for now I'll allow that they suck a little less than last week.

So, here's the obligatory shout-out to the community to try out EMF 2.3.0M7, and let us know any issues you might have w/ migration & adoption. You can grab it from the usual places. Please don't hesitate to speak up in bug 106804: if there are any unforeseen migration pains, I'll use your comments to draft documentation explaining what's different, why, and how to roll with the changes next week after I've slept a little.

Thanks, everyone, and happy EMF'ing.

2007-05-04

Bad hash index. No cookie.

So I open up Notes 7 this afternoon and it tells me it wants to delete my old mail (because disc space is costly, after all). Gmail provides me 2.8G free storage, but IBM needs to purge my mail regularly to save space. Whatever. I decline its polite offer, but being a good Corporate Citizen, I decide to clean up my inbox myself, and get this lovely error message. I now have an inbox with deleted messages (marked with an 'x') I can't actually delete.

Maybe it's time to take zx's advice and step up to Notes 8 beta.

2007-05-03

Cracking NT passwords

Scenario: Desktop system that's been running linux for about a year, with an oft-ignored WinXP NTFS partition on it for those rare Windows-only tasks.

Problem: So oft-ignored, I've forgotten my XP login password.

Solution: A number of options exist, but I was looking for a simple 'boot into linux partition and then hack such-and-such file'. Didn't find anything like that (and my old'ish linux install doesn't have write-to-NTFS support anyway), so I decided to try a boot CD solution, trusting that if source is provided it's probably not some trojan exploit thingamabob. First one I tried was Peter Nordahl's Offline NT Password & Registry Editor, cd070409.zip, which worked like a charm.

Sidenote: I then updated XP using Windows Update and the machine ground to a halt for a few hours, ultimately having to be shut off because it wouldn't shut down properly. Several reboots later it's working again, but that's pretty much standard for Windows. Gah.

Survivor: Gazoo

Over two months have passed since I opened bug 175200, calling for a new Gazoo logo and icon for incubating projects. Many submissions have been considered. The final three need your votes to decide who will walk away with the title of Survivor: Gazoo.

With apologies to Mark Burnett (and none to Jeff Probst)...

It is: time to vote.

2007-04-30

EMF: It's A Beautiful Thing

At the moment, there are at least 11 different ways to get EMF, topped just the way you like it:

  • 9 zips: 3 SDKs (EMF-SDO-XSD, EMF-SDO, XSD SDK), 3 runtimes (EMF-SDO, XSD & Standalone), examples, tests, and models [1]
  • 2 different Update Manager methods (install EMF-SDO-XSD SDK or install individual features) [2]

Is this sufficient? Some say it's already overkill, but others say no, and with the lofty goal of pleasing most of the people, most of the time, we're now exploring creating a whole new set of features in EMF [3].

This new set of features [4] is intended to add more options via Update Manager, as that's the most commonly used mechanism (80% of all requests tracked by eclipse.org last year) for downloading EMF. The old features remain -- they're just being chopped up more finely.

Those who want fries with that can order a combo meal and drive forward to the second window to pick up their zips; those who want EMF à la carte will now be able to order off the Update Manager menu, so they can pick and choose the toppings, er, features, they want for their special-needs diet.

Please comment or vote for bug 106804 if you have concerns or kudos.

2007-04-27

Only 34 shopping days left!

Well, TV Turn Off Week is almost over, and as the weekend draws near and part two of Doctor Who (2005) "The Daleks Take Manhattan" readies itself to be ripped and shared across the internet (thank you, TPB!), it's time once again to remind all ya'll to get out and vote for the Java Developer's Journal 2007 Reader's Choice Awards. Yes, I said 'all ya'll'. I've been taking some online classes in Southern as a Second Language at the Hacker T. Tech Public School.

EMF sits firmly as the #3 Java Modeling Tool, and though it briefly enjoyed the #1 Java Component spot, it's now down by a mere 9 votes. C'mon, people, we can win this!

2007-04-24

Will the real EMF please stand up?

Thanks to the wonder of Google Alerts, I discovered tonight that there's yet another entity/concept going by the moniker EMF. The list now contains software, music, physics... and at least one consulting company that writes about MDD (or is it MDD?) and embedded systems:

... to name but a few.

embeddedforecast.com's whitepaper, entitled What Do You Do When the Horse You’re Riding Drops Dead: Why Model Driven Design is Emerging as a Preferred Best Practice, has some very nice things to say about the world of MDD. While it doesn't actually mention Eclipse or EMF -- presumably to avoid confusing the reader with ambiguous TLAs, it does mention Telelogic's Rhapsody which is built on Eclipse, and speaks highly of UML, stating that organizations using modeling are seven times more likely to make or beat schedules. It also suggests some Dilbert-like solutions to the problem faced when riding a dead horse. Worth a look.

TrackPoint no more?

For shame! I was comparing Thinkpads the other night when I noticed that the new Lenovo systems seemed to be missing the much-beloved and very useful TrackPoint from their 3000 Family of laptops.

A little more digging tonight through Lenovo's Design Matters blog, and I discovered that not only is it conspicuously absent from all 3000 laptops, but it's an intentional design/marketing choice, not some accidental oversight!

We intentionally did not include a TrackPoint because notebooks within this price category tend to use pads. If you really want a TrackPoint I suggest you buy a ThinkPad. [1]

If you've never used a TrackPoint, it can be a bit odd to first get used to it, but once you're accustomed to using the rubber-tipped, 3-button "keyboard nipple", it's much more efficient than a run-of-the-mill grease-prone two-button touchpad, because unlike a touchpad, it responds to directional pressure like a mouse or trackball rather than making you pretend your finger is a stylus to 'draw' your cursor around the screen.

Luckily, you can still get a TrackPoint on Lenovo's Thinkpads. I wonder how much longer they'll be available?

One final note: this poll suggests I'm not the only vocal TrackPoint fan out there, and also that my cap of choice is the most popular. Woohoo! Maybe there's hope for the future of the TrackPoint.

2007-04-19

DRM Packaging for Linux

In order to put .mp3s on my new SE W810i phone as ringtunes, I have to convert them first to .dm files. This is a pain, but it could be worse. So, I found SonyEricsson's DRM Packager, installed it, and it works great. Unfortunately, they only provide this tool for Windows and Mac.

So, naturally, it was time to write a Linux implementation. ;-)


Setting up the DRM Packager for use with Linux is easy. Packaging is faster on a native Windows system (seconds instead of milliseconds), but then you have to actually boot Windows, so overall it's still faster.

I'm currently using the following tools for converting MP3s to ringtunes:

  1. mp3 slicing: kwave sound editor, part of KDE (save as uncompressed .wav files)
  2. mpeg compression: lame or sneetchalizer (.mp3 or .mp4)
  3. DRM packaging: Sony Ericsson's DRM Packager tool -- details below (.dm)
  4. copying files to device: Konqueror, part of KDE (drag and drop from hard drive to usb device)

DRM packaging

  1. Download 'DRM Packager 1.35 - Windows' from Sony Ericsson's site.
  2. Install from Executable (using WINE) to default location, eg: ~/.wine/drive_c/Program Files/Sony Ericsson/DRM Packager/.
  3.   wine ~/DRMPackager-1.35-Windows.exe
  4. If your WINE instance doesn't use z: as the drive for the filesystem root (/), edit drmpack.sh and change to s: or whatever your WINE wants.
  5.   rootDir="z:"; # wine directory mapping
  6. Run drmpack.sh to convert a single file or recurse through a directory of .mp3 & .mp4 files, in order to generate .dm files. For syntax help, run w/o commandline options or read the source.
  7.   nickb@nickbdesk:~/ringtunes $ ./drmpack.sh tunes
    
      Processing directory /home/nickb/ringtunes/tunes ...
      Creating /home/nickb/ringtunes/tunes/neuroticfish_shortcommercial.dm ...
      Creating /home/nickb/ringtunes/tunes/neuroticfish_theyrecomingtotakemeaway.dm ...
      Creating /home/nickb/ringtunes/tunes/placebo_runningupthathill.dm ...
      Creating /home/nickb/ringtunes/tunes/placebo_postblue.dm ...
  8. If you prefer a GUI, use DRM Packager.desktop to launch the GUI tool using WINE, then browse for files to add to the GUI, and click 'Create DRM Content'. For Sony Ericsson W810i, DO NOT CHANGE THE DEFAULT SETTINGS! You can launch the GUI from the commandline with:
  9.   wine "c:\Program Files\Sony Ericsson\DRM Packager\DRMPackagerGUI.exe"
  10. If the GUI won't open, try copying MSVCP60.DLL into the DRM Packager install folder. If you don't have a Windows machine handy to grab this file from, Google for a site like http://www.dll-files.com/dllindex/dll-files.shtml?msvcp60 you trust and download it from there.

Tested with:

  • Sony Ericsson W810i phone
  • Sony Ericsson DRMPackager-1.35-Windows.exe
  • WINE 0.9.9-0ubuntu2
  • MEPIS Linux 6.0 (based on Kubuntu 6.06LTS)
  • Windows XP Pro SP2
  • Thinkpad T60p

2007-04-18

We're sorry, the Gmail you have reached is not in service.