Lee Maguire graded snobberies, bawdiness, hypocrisy

Posted
15 May 2005
12am

Category
Games

XBox 360: Something for the ladies

Edge magazine has a big article about the XBOX 360 this month (the one in the gold Zelda box). I felt I had to share this part with you:

Allard takes Tony Hawk as a starting point and suggests different ways for non-gamers to get involved. A girl watching her brother play might be affronted by his avatar’s poor choice of clothes and use her laptop to access the Tony Hawk website’s clothing design tool. A few experimental efforts later, and she can upload a new T-shirt for him in the game. He wears it with pride, and his friends online like the look of it. And now the sister can go into business, selling her design via Live’s peer-to-peer micropayments system (previously announced at GDC). “Is she playing the game?” asks Allard. ”I don’t know, but she’s having fun.” Mum can get in on the act too. Not much of a gamer, but she’s keen to watch her son compete in one of these pro-gaming tournaments. Using a photo of herself taken with the 360′s camera, she can use a Sims 2-like system to create a recognisable avatar of herself, and get in position in the crowd, ready to cheer as her son comes in for his run.

This fits, I imagine, Microsoft’s profile of the kind of gamer the new XBox will be targetting. “Yeah, so I’m wearing clothes my little sister designed and I have a virtual representation of my mother to accompany me. Who’s up for a deathmatch?”


Posted
8 May 2005
9pm

Category
Uncategorized

Tags

Shuffle redux

And talking of Linux hardware – much of the (minimal) fussing about getting the iPod shuffle working under Linux that I mentioned back in March is now unnecessary. The version of gtkpod in Debian/unstable now has shuffle support – and the automount process can be simplified by a simple xml file I modified from development files and dropped into /etc/hal/fdi/local-ipod.fdi. So I guess that for later distros you won’t even have to do that.

The following allows shuffle to be automounted (based on its USB id) under /media/ipod (where both gtkpod and rhythmbox look for it). (updated 2005-11-23)

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->

<!-- iPod Shuffle -->
<deviceinfo version="0.2">
  <device>
    <match key="block.is_volume" bool="true">
      <match key="volume.fsusage" string="filesystem">
        <match key="@block.storage_device:@storage.physical_device:usb.vendor_id" int="0x05ac">
          <match key="@block.storage_device:@storage.physical_device:usb.product_id" int="0x1300">
            <merge key="volume.policy.desired_mount_point" type="string">ipod</merge>
            <merge key="volume.label" type="string">iPod: </merge>
            <append key="volume.label" type="copy_property">info.product</append>
            <merge key="volume.policy.mount_option.check=r" type="bool">true</merge>
            <merge key="volume.policy.mount_option.utf8" type="bool">false</merge>
            <append key="info.capabilities" type="string"> portable_audio_player</append>
            <merge key="portable_audio_player.access_method" type="string">storage</merge>
            <merge key="portable_audio_player.type" type="string">ipod</merge>
            <merge key="portable_audio_player.storage_device" type="copy_property">info.udi</merge>
            <merge key="portable_audio_player.output_formats" type="strlist">audio/mpeg audio/x-mp3 audio/aac</merge>
            <merge key="storage.requires_eject" type="bool">true</merge>
          </match>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>

Using an EyeToy under Linux

Updated: see end of entry.

One thing that has impressed me with Gnome over the past year or so has been the improvement in the ease of setup of random peripherals. The fruits of “Project Utopia” (udev/Hal/DBUS) mean that plugging in most bits of hardware seems to do something very close to an approximation of “the right thing”.

Now, anyone used to using OS X isn’t going to be impressed – but, if you’ve just woken from a coma you fell into during a particularly long kernel recompile back in 1997 (as I did), trust me – you would be.

So when I look at the USB PS2 EyeToy camera I ask “What amount of faffing about will it take to use this with Linux?”. Ostensibly because I just want it to work, so that I can get on with my life/work, but secretly hoping that it’ll be just broken enough to provide some tiny intellectual challenge.

Sadly, it isn’t recognised as a webcam when plugging it into an the PC. It is picked up by the system, but it’s recognised as a USB audio device for some reason. However, when I select the tab in the Volume Control app, there are no sliders to adjust.

A little bit of research on the web reveals that the EyeToy uses the OmniVision OV519 chipset. While the stock kernel includes support for previous OmniVision webcams (ov511) these drivers are not usable with the OV519 chipset. However there is an experimental ov51x driver which supports the OV519. So that needs to be downloaded, untarred, and (assuming appropriate build packages are installed) compiled.

When the module is compiled, I ran “insmod ov51x” and the following was reported

Linux video capture interface: v1.00
ov51x.c: USB OV519 video device found
ov51x.c: Sensor is an OV7648
ov51x.c: Device at usb-0000:00:01.2-2 registered to minor 0
usbcore: registered new driver ov51x
ov51x.c: v1.65-1.11-mark : ov51x USB Camera Driver

EyeToy in Linux Device Manager window

The device /dev/video0 was magically created, so I duly launched
Camorama and got… nothing. D’oh.

Reading the FAQ I found that the difference between the OV519 and other, supported, webcams is that, rather than outputting a video stream, the OV519 outputs a series of JPEG images. I guess that makes sense for the EyeToy, which needs to quickly compare differences between “frames” in order for its motion tracking to work.  With a combination of fast USB and image decoding, such as on the PS2, it’ll look just like a video stream.

But, since almost all webcam apps use video4linux (which doesn’t support JPEG streams), there’s not very wide application support. A simple image grabbing app, “getjpeg”, is distributed with the ov51x source, so at the very least you can grab some images with it.

Fortunately Debian distributes the “gg” fork of gqcam which, as of January, includes support for JPEG webcams.

It’s not as featured as Camorama, but it does allow you to preview the video from the camera, freeze a frame and save it as an image. You need to select “JPEG” in the filter menu to see the image. Another issue is that it defaults to checking for a camera at “/dev/video” which wasn’t created on my system. This can be worked around by adding a line into /etc/udev/rules.d/local.rules


KERNEL="video0", SYMLINK="video"

webcam shot

UPDATE: Turns out someone has hacked JPEG decompression into a kernel module – and now the EyeToy works with Camorama! Viva HackerZ!


You wanted which magazine?

Something from Grant Morrison’s Pop Magic! popped into my head when I was in the newsagent today.

The first person to create and launch a mass-market glossy magic magazine for young women will become as rich in the first decade of 21c, as the creators of Loaded magazine became in the last decade of 20c.

I was queueing behind someone buying a copy of the new pre-teen girl targeted Witch Magazine (a name I predict will not lead to any hi-larious mix-ups with consumer title Which? Magazine).

Apparently, since being developed by Disney in Italy in 2001, it’s become
a big seller worldwide (it’s being published by BBC magazines in the UK).
The same customer was also purchasing a copy of “You Are What You Eat” magazine which appeared to feature Rentaghost’s “Hazel the McWitch” on the cover. I guess Grant was on to something.


University Challenged

I just walked into the flat, and my flatmate was watching University Challenge. One of the starter questions was to name the fashion designer who designed Dredd’s costume in the movie version of Judge Dredd.

“Gianni Versace”, I say with confidence. “Jean-Paul Gaultier” claims Paxman.”No! Not Gaultier, Versace!” I shout… at the television.

To the IMDb!
It’s possible my flatmate now believes I’m some metrosexual male, knowledgeable on matters of fashion, rather than the Eltingville-esque comic book geek I actually am.

But I suspect not.


Random hardware

I was given a brand-new iPod shuffle this weekend (thanks Che!). Not only do I now get the fresh experience of owning technology that’s not already considered obsolete, I also haven’t owned a piece of personal stereo technology since the crappy generic-brand personal cassette player I had when I was 13.

While I’m not a Apple design fetishist, it is a lovely little object. And its smaller, cheaper, simpler approach is more in line with my own tastes in personal tech than the previous models. And the lanyard will make it ideal for some kind of… exercise. Importing the high-octane electronica soundtracks from first-person shooters and racing games should do the trick.

And really, it only looks like a sinister techno-cult talisman when worn over a black turtleneck.

Unlike, well, almost everyone I know, I’ve never spent weeks ripping and encoding my CD collection. I could never spare the cycles to run MP3 players, so I let the Napster revolution pass me by. And since I don’t use Windows or OSX at home, I’m certainly not going to be using iTunes any time soon.

So my first job was to rip my CDs - apt-get sound-juicer, a fairly straight-forward CD ripper for Gnome. Sound Juicer, by default, rips tracks into to the hacker’s choice audio format, Ogg Vorbis. Sadly the Shuffle won’t play these directly, so .oggs would need to be transcoded before being synced to the iPod. And juicer doesn’t support Apple’s favoured MPEG4 AAC codec (although an FAAC plugin exists for the gstreamer framework it’s built on). So it’s back to the lingua franca of digital audio distribution, MP3.

But, of course, the pure Debian distribution doesn’t support MP3 encoding out-of-the-box (as it were). But like various other codecs and other programs affected by patent issues, support can be added by adding a repository (tainted with the stench of practical compromise) to your apt sources.list.

But even admitting these sites exist is a betrayal of the free software movement. So I won’t.

But, since the devil makes all the best digital media, you’ll probably already have added one, and thus the following should do the trick:


apt-get install gstreamer0.8-lame

The next task is getting linux to talk to the iPod. Fortunately, upon plugging it into a USB socket, it presents itself as a virginal USB mass storage device and thus appears as a fresh SCSI disk on the system. Since it uses the variable naming of the removable SCSI devices, we need to set up a dynamic symlink using udev by adding the following into /etc/udev/rules.d/local.rules:


# iPod shuffle  

BUS="scsi", SYSFS{model}="iPod", KERNEL="sd*", NAME="%k", SYMLINK="ipod"

Then mkdir /media/ipod, add the following to /etc/fstab and restart udev


/dev/ipod /media/ipod vfat rw,user,noauto,sync 0 0

I then apt-got gtkpod which gives a graphical playlist manager allowing syncing. Sadly the latest release predates the launch of the shuffle, and it emerges that the shuffle uses a different database than the disk based iPods, thus older software can read the data on the shuffle, but it can’t modify it.

Fortunately for me a short-term solution has appeared, since those dedicated ipod-owning perl-hackers have, this last weekend, released GNUpod version 0.98,  collection of ipod management scripts now with Shuffle support.


mount /media/ipod  

gnupod_INIT.pl -m /media/ipod # on the first use only

gnupod_addsong.pl -m /media/ipod ~/Music/Foo/*.mp3

mktunes.pl -m /media/ipod

umount /media/ipod

And I’m all set. Hurrah!


Networking UML under Debian

I recently needed to setup the networking on a Debian box with three network cards on three different networks, each assigned three IP addresses – two of which would be assigned to taps for UML hosts.

It was actually a little more complex that I was expecting. Of the few configuration examples I’ve seen on the web, none of them adequately covered the mixing bridges and tunnels in “/etc/network/interfaces”.

Weirdly, even though I’ve been using it for a few years, it’s only now that I’m beginning to grok ifupdown (the Debian way of configuring network interfaces). It’s a powerful, simple, and extensible enough to support fairly complex actions with simple, elegant, configurations. For example, ”uml_proxy_*” handles inserting static routes and ARP proxying.

The downside, sadly, is that it’s near impossible to provide any definitive documentation of “interfaces” – good luck finding documentation for ”uml_proxy_*”!

The following “/etc/network/interfaces” requires the extensions provided by resolvconf, uml-utilities, and bridge-utils to run correctly.

auto lo
iface lo inet loopback

auto umltap0_0 umltap0_1
auto umltap1_0 umltap1_1
auto umltap2_0 umltap2_1

iface umltap0_0 inet static
        tunctl_user uml
        address 192.0.2.30
        netmask 255.255.255.240

iface umltap0_1 inet static
        tunctl_user uml
        address 192.0.2.26
        netmask 255.255.255.240

iface umltap1_0 inet static
        tunctl_user uml
        address 10.140.1.3
        netmask 255.255.255.0

iface umltap1_1 inet static
        tunctl_user uml
        address 10.140.1.4
        netmask 255.255.255.0

iface umltap2_0 inet static
        tunctl_user uml
        address 10.51.1.143
        netmask 255.255.255.0

iface umltap2_1 inet static
        tunctl_user uml
        address 10.51.1.144
        netmask 255.255.255.0

auto br0 br1 br2
iface br0 inet static
        pre-up ifconfig eth0 0.0.0.0 promisc up
        address 192.0.2.27
        netmask 255.255.255.240
        network 192.0.2.16
        broadcast 192.0.2.31
        gateway 192.0.2.17
        bridge_fd 0
        bridge_hello 0
        bridge_stp off
        bridge_ports eth0 umltap0_0 umltap0_1
        uml_proxy_arp 192.0.2.30 192.0.2.26
        uml_proxy_ether br0
        dns-search example.com
        dns-nameservers 192.0.2.17
        post-down ifconfig eth0 down

iface br1 inet static
        pre-up ifconfig eth1 0.0.0.0 promisc up
        address 10.140.1.2
        netmask 255.255.255.0
        network 10.140.1.0
        broadcast 10.140.1.255
        bridge_fd 0
        bridge_hello 0
        bridge_stp off
        bridge_ports eth1 umltap1_0 umltap1_1
        uml_proxy_arp 10.140.1.3 10.140.1.4
        uml_proxy_ether br1
        post-down ifconfig eth1 down

iface br2 inet static
        pre-up ifconfig eth2 0.0.0.0 promisc up
        address 10.51.1.142
        netmask 255.255.255.240
        bridge_fd 0
        bridge_hello 0
        bridge_stp off
        bridge_ports eth2 umltap2_0 umltap2_1
        uml_proxy_arp 10.51.1.143 10.51.1.144
        uml_proxy_ether br2
        up route add -net 10.51.0.0/16 gw 10.51.1.129 br2
        post-down ifconfig eth2 down

Creating Debian apt backup CDs

It’s nearing the end of the year and the annual festival of dumping data to CD, possibly in advance of the traditional New Year Computer Reinstallation celebration.

Of course, if you’re tracking Debian unstable or testing you probably don’t have full installation CDs. These are too dynamic to make it worth creating full CD installation sets. Usually buring a small ‘netinst’ CD, and pulling the packages from the net will suffice.

However, unless you’re on the same local network as a debian mirror, a full network installation can be painfully slow. The following technique was honed in the days when I used to track unstable with a 56k modem (phear!).

Firstly, apt-get install deborphan.

deborphan is a program that checks the current installation for installed packages that do not represent a dependency for any other package. Typically these ‘orphaned’ packages are library packages of a version that has been superseded in the dependencies of other programs and is now no longer being used. Normal apt-getting won’t remove these packages unless the explicitally conflict with something else. Running “apt-get remove `deborphan`“ will remove these unused libraries.

By default deborphan will only output a list of orphaned libraries, but with the “-a” switch it will output all package types with are not dependencies. Since this will mostly consist of the applications you actually use, it’s not suitable for piping into apt-get remove. Using the “-A” switch (as root) will add it to the “keep” list and suppress it from deborphan output.

If you run “deborphan -an--no-show-section > tmpfile” you’ll have a list of the orphaned packages not currently in the keep list. Edit this file and remove the packages that you don’t think need to be installed. Then do ”deborphan -A - < tmpfile” to populate the keep list. (You can also use ”editkeep” as root.)

In theory the deborphan keep list should now consist of a list of packages that should be selected when reinstalling the system.

Next, apt-get install apt-move.

Unless you run “apt-get clean“, your apt cache (/var/cache/apt/archives/) is probably full of debian archives. apt-move takes the files in the archives considered current and organises them into a repository that is apt accessible.

Firstly, set up the archive with “mkdir -p /srv/mirrors/debian/.disk“ then configure apt-move via /etc/apt-move.conf to use LOCALDIR=/srv/mirrors/debian (and any other settings that apply to you.
Then run “apt-move update“.

The directory should now be suitable for use as an apt repository, either locally, via something like NFS, or used in an httpd configuration.

deb file:///srv/mirrors/debian/ unstable main

“apt-move update && apt-get clean” should be run periodically, say once a week. When you’re re-installing, or when the size of the repository is approaching the capacity of your CD or DVD you’ll want to dump it out.


deborphan -L | sort > /srv/mirrors/debian/keepecho "Debian backup (`date +%Y%m%d`)" > /srv/mirrors/debian/.disk/info

mkisofs -hide-rr-moved -allow-leading-dots -r -f \

-V "`< /srv/mirrors/debian/.disk/info`" \

-x /srv/mirrors/debian/.apt-move \

/srv/mirrors/debian | cdrecord -v -

Label the disk as “Debian backup (20041224)” where the date corresponds to the current date. If you’re not planning on re-installing soon, you might want to run “apt-cdrom add” to add the CD to apt’s lists.

When you come to install using the netinst process, add this CD (and possibly others) to apt when prompted. Then when you are asked to select your packages, choose none (this leave you with a bare base debian system). Mount the custom CD and do:

apt-get install deborphan 

deborphan -A - < /media/cdrom/keep

apt-get install `deborphan -L`

(you could get the list from the CD keep file directly, but doing it this way means that repopulating the keep file on the new system isn’t forgotten).

If it works you should be getting most of your packages from the CD ROM, and only downloading newer versions from remote repositories.


By the order of MANDAMUS!

Checking the spam bin today, I came across an interesting, and new to me development in the Nigerian scam (in which “cleared” checks later bounce). I’ve seen the Dutch lottery wins and those goofy widow-of-deposed-general emails for a while now. But the emails from Vincent Gravens are the next step in the scam’s evolution.

The email you receive is apparently from a lawyer based in your own country apparently representing the estate of a (recently deceased) rich relative. A scenario that would pique the interest of quite a few, I’d imagine.

The number of data points is pretty low – a surname and a country (probably generated based on the top-level-domain of the email address) in a simple mail merge. We probably haven’t reached a future where rogue AIs are crunching online genealogy resources and spidering FOAF files in order to actually impersonate your friends and family, but we’re a small step closer.

Obviously, the next great advance in the deception will come when one of the Nigerian scammers pays someone to actually proof-read their form letters.

I’ve reproduced the message below. The address given is that of an actual solicitors office, but given the weird extra line on the address, I’m guessing it’s pulled at random from a list of London solicitors addresses. The only other references I can find to the Gravens mail online are in a German blog entry and a recent consumer warning story on a US website. It looks like information about this varient was added to the wikipedia hivemind in April.

Gravens & Associates
37 Bedford Row
London
WC1R 4JH
DX 75 Chancery Lane
Phone:+44-704-0112915

Email:gravens_chamb1@fastermail.com
Dear YourSurname,  

With all sincerity my names is Mr.Vincent Gravens, a practicing financial attorney representing the late Mr.RandomFirstname YourSurname, my late client who died Recently leaving some estate funds Amounting(5.5million US Dollars)Five Million,Five Hundred Thousand Us Dollars deposited with his Finance House in Europe.Since he died, I have received from his Finance House, an order of MANDAMUS, mandating me to locate any of his relatives/confidant for purpose of Preparing them to receive ! the deposited sum.

However,The fund may be Donated to trust fund if there is no response to this Mandamus Within the period the Finance House permitted the search. I am currently in London and I decided to seek your collaboration in confidence. To permit me present you to the payment institution as the beneficiary/Next of kin to the deceased. There is evidence to back up our claims On presenting you as the Bonafide beneficiary to the fund.

All I require is your cooperation to work it out. I guarantee that this will be executed under a legitimate arrangement that will protect you and me from any breach of the law.Please reach me with your personal details. I will be sending you the transaction Detail of the transaction lmmediately. I repeat I have covered every legal side of the transaction.

Respond most urgent.I anticipate your urgent response to enable us meet the required date.

Please reply through this private email box

Email:gravens_chamb1@fastermail.com

Best regards,
Vincent Gravens


Posted
5 December 2004
5pm

Category
Games

Clarified game labeling

Apparently parents and shopkeepers are confused about the fact that
games that have been rated “18″ by the BBFC are not to be sold to persons
below that age. Clearly it’s the clarity of the labelling (which in the case of BBFC rated games, is the same as that for films) that’s the problem here. The BBC is reporting that

The government is holding a further meeting on Friday with industry and retail representatives as well as the British Board of Film Classification to discuss how labelling can be made clearer.

Here are a couple of suggestions on how UK videogame labelling could be clarified:

alternative labelling for video games

Clearer labeling for games recieving an 18 certificate from the BBFC

suggested new pegi symbol
 Suggested new PEGI icon for games containing “Shocking Images”


← Before After →