Archive for April, 2008

Change vs Click in the Flex 3 DataGrid

(related to a tip I found, but for Flex 3 and my own memory…)

In Flex3 you can be notified of changes to selections in your datagrid from using listeners to either the ‘click’ or ‘change’ events, the difference being that if you only listen for click events you won’t be notified when the user navigates or selects with the keyboard (obvious, but confused me for a bit). This seems a shame given Flex’s pretty good handling of keyboard navigation, so unless you only want mouse click events use a ‘change’ handler as standard.

Using a Click Handler:

<mx:DataGrid id="DG1" click="clickHandler(event)"/>
<mx:Script>
  public function clickHandler(event:MouseEvent):void
  {
      someControl.text = event.currentTarget.selectedItem.someDataField;
  } 
</mx:Script>

Using a Change Handler:

<mx:DataGrid id="DG2" change="changeHandler(event)"/>
<mx:Script>
  public function changeHandler(event:Event):void
  {
      someControl.text = event.target.selectedItem.someDataField;
  } 
</mx:Script>

Warning – don’t buy a bike from Geomoto

*** Update… George at Geomoto contacted me a week after and we worked it out, they’ve put on a new disc and break pads for me at no cost and everythings good so far. Nice one Geomoto, my faith is restored. ***

This may be a bit off topic but just wanted to put his out there to warn others in the North London area thinking of buying a motorbike or scooter to stear well clear of a shop called Geomoto in Finchley. After buying 3 bikes from them and spending untold in servicing over the years I’ve just received such appaling customer service that I’ll never be using them again.

I dropped my bike in for a full service last October asking them to fix everything they could find wrong with it, and it cost a fair few quid. Ever since I got it back there’s been a nasty metal on metal sound from the front wheel that I’d *never ever* heard before, although I forgot all about it as the bikes been sitting unridden from November till last week. Another machanic took a look a few days ago and told me the front pad had been wearing through the disc and they would both need replacing at a cost of several hundred pounds. So I went back to Geomoto today to find out what they were willing to do to put right a problem that was obviously either caused by them in the service, or a result of them not doing a proper service and changint the pads (I have no idea which as I’m no mechanic). Their answer… nothing, I’d have to pay for it all to be fixed?! Well I’m afraid that’s just not good enough, I’m not the type to have an argument in the shop but I hope this post and the money they will be loosing from all my future purchases somwhere else hurts them in some small way.

Customer service is not an option, and if you don’t get it the best thing you can do is vote with your feet and let everyone else know how you feel.

————————————
To hopefully help others find this post through Google I’m just reiterating that I’m talking about the Geomoto bike shop in Finchley, North London, N3 1JL. They also sell Vespa, Piaggio & Motorbikes. PLEASE DON’T SHOP THERE!!!

Review – eDimensional Stereo 3D glasses

I’ve seen adverts for 3d glasses for some time, the old TNT graphics cards use to come with support for ‘revelator’ glasses and the nVidia drivers had stero support built in for many years. However due to the way these glasses work you’ve always needed a CRT monitor with a high refresh rate (~120hz) to see the effect. Moving back to a mahoosive CRT and an ancient gfx card isn’t really an option if you want to play any newer games, so I (and I’m sure many others) have never really had a chance to try them out.

E-D 3d Glasses package

Recently I noticed an advert for these eDimensional Wireless 3D Glasses that claim to work on a standard LCD screen and promise you will “experience the latest in virtual reality technology with 3D images that float inside and outside of your monitor” in “all of your favorite gaming titles”. Hmmm, but as they were realatively cheap (sub £50) I thought I’d give them a go. There seems to be very little info on these glasses out there on the net post ’05, which is about when nVidia stopped supporting it’s consumer stereo 3d driver. I though a quick review could be useful for anyone else interested in giving stereoscopic 3d gaming a try on an LCD.
Continue Reading →

Help, Adobe Air for Linux ate my mimetypes?

**note** – I would have posted this in the bug list, but I can’t find it, the link from the FAQ just goes to the products page?

**fixed** – Ashutosh from Adobe provided a working fix in the comments below, nice one!

After installing the new Alpha of Adobe Air for Linux yesterday on Ubuntu 7.1 the mime types for .zip files seem to be broken and I can’t figure out how to fix them. When I clicked on a standard .zip file it used to open in FileRoller, it now gives me an error that the filename indicates it’s a zip but the contents indicate it’s an Air Application. I need to use ‘Open With’ to select FileRoller. Not the end of the world but a bit of a pain. Also, the files have a zip icon but this changes to a .air icon when I click it.

Poking around a bit I found xdg-mime included in the files installed with Air (side note, why? I’ve already got these installed, isn’t that the point of using the package manager to install this stuff?) and also an accompanying AdobeAir.xml file…

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
 
  <mime-type type="application/vnd.adobe.air-application-installer-package+zip">
    <comment>Adobe AIR Application</comment>
    <glob pattern="*.air"/>
    <magic priority="100">
      <match type="string" value="PK\003\004" offset="0"/>
    </magic>
  </mime-type>
</mime-info>

…not sure what the magic stuff does but it looks ok? Also testing with xdg-mime seems to point to the mime types being correct?

adam@ubuntu:~$ xdg-mime query filetype ~/Desktop/08_04_02.zip 
application/zip
adam@ubuntu:~$ xdg-mime query default application/zip
file-roller.desktop
adam@ubuntu:~$ xdg-mime query default application/vnd.adobe.air-application-installer-package+zip
AdobeAIR.desktop

There’s also an air.mime file that also looks ok to me..

application/vnd.adobe.air-application-installer-package+zip
        ext: air

I’ve also just spotted, the files have been simlinked incorrectly into /usr/share/mime-info/ …

ls -la /usr/share/mime-info/air.*
 
adam@ubuntu:~$ ls -la /usr/share/mime-info/
lrwxrwxrwx   1 root root      54 2008-03-31 20:26 air.keys -> /opt/Adobe AIR/Versions/1.0/xdg-utils/support/air.keys
lrwxrwxrwx   1 root root      54 2008-03-31 20:26 air.mime -> /opt/Adobe AIR/Versions/1.0/xdg-utils/support/air.mime

the links should be to /opt/Adobe AIR/Versions/1.0/support/* , no xdg-utils, so I’ve tried …

adam@ubuntu:~$ sudo unlink /usr/share/mime-info/air.keys 
adam@ubuntu:~$ sudo unlink /usr/share/mime-info/air.mime 
adam@ubuntu:~$ sudo ln -s /opt/Adobe\ AIR/Versions/1.0/support/air.keys /usr/share/mime-info/air.keys 
adam@ubuntu:~$ sudo ln -s /opt/Adobe\ AIR/Versions/1.0/support/air.mime /usr/share/mime-info/air.mime

but this doesn’t seem to fix anything. Any other ideas anyone?

———
note to self, may be time to look at a liquid layout for the blog :)