Tuesday, March 16, 2010

Don't rush through the Digital Economy Bill

I’ve just written to my MP telling them why I am concerned that the Digital Economy Bill could be rushed through without a full Parliamentary debate.

Will you write to your MP too and tell them why the government shouldn’t rush through these draconian laws.

It only took two minutes: http://www.38degrees.org.uk/digitaleconomybill

Labels: , ,


Thursday, March 12, 2009

Dell 5530/Ericsson f3507g on Linux

A few months back I posted a howto guide on getting this mobile broadband card working with Linux, what I failed to mention was I continued to work on these scripts. I feel it is appropriate to post a status update on what I use now especially given there appears to be no further updates on the NetworkManager front.

I no longer use UMTSMon as I found it relied on AT+CSQ for the signal quality and during UMTS and HSPA connections, the f3507g/dell 5530 returns either the previous GPRS value or 99,99 which UMTSMon considers as no connection available.

I've used a simplified wvdial.conf scripts and now do the rest of the radio work using python.

wvdial.conf

# Author: Barry John Williams
# Creative Commons Attribute-Share Alike 2.5 UK:Scotland Licence

[Dialer defaults]
New PPPD = yes
Stupid Mode = 1
Modem Type = ACM Modem
Modem = /dev/ttyACM1
Init1 = AT
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"ip","internet"
Baud = 460800
ISDN = 0
Phone = *99***1#
Password = web
Username = web


You will need to update the Init3 command for your own provider and the password and username for your service. In this case it is set up for Vodafone UK.

To dial up to the web I currently use ppptray which is a python app and displays an icon in your notification area which you click to toggle connectivity. Behind the scenes it calls pon and poff which in turn use wvdial to enable the connection.

I modify my pon and poff scripts to just call the default wvdial configuration. You can find pon and poff in /usr/bin.

pon

#!/bin/sh

# Author: Barry John Williams
# Creative Commons Attribute-Share Alike 2.5 UK:Scotland Licence

PATH=/bin:/usr/bin:/usr/sbin:/sbin
wvdial >> /var/log/ppp.log 2>&1


poff

#!/bin/sh

# Author: Barry John Williams
# Creative Commons Attribute-Share Alike 2.5 UK:Scotland Licence

PATH=/bin:/usr/bin:/usr/sbin:/sbin
kill `lsof /dev/ttyACM1 | grep wvdial | awk '{print $2}'`


I have written a python program (dell5530_mon.py) which monitors the broadband card on /dev/ttyACM0. It polls the card every few seconds requesting the current network provider, access type and signal quality (even for UMTS connections). This information is made available in the /tmp directory:











MB_NETWORKThe current network provider (e.g. Vodafone UK)
MB_SIGNALThe current signal strength represented using characters from the 'PizzaDude Bullet' font (downloadable from dafont.com)
MB_TYPEThe current network access type (GPRS, 3G, 3G+, NONE)


These files are only updated if there is a change from the previous value, additionally my /tmp folder is on a ramdisk to save SSD writes so you may want to either do this or move the files to another volatile location.

dell5530_mon.py also uses pynotify to display a notification if the network provider changes or the connection type changes. This is useful if you are travelling through different signal areas, you are notified when the signal is lost or moves from 3G to 3G+ for example.

I run the monitor on startup automatically switching the radio on, it also enables the radio whenever I resume my machine from standby, this just leaves clicking the ppptray button to go online. I intend to bring this functionality within dell5530_mon.py but haven't done so yet. My goal is to automatically connect to the web if no other connection is available and provide the signal strength in the notification area (with ability to toggle radio and connection states from a context menu).

In the meantime, I use conky to read the values stored in the /tmp directory to display the current network operator, connection type and signal quality in addition to receiving the notifications.

I hope people find this useful, all the code is made available under a creative commons licence and can be downloaded below:

Dell 5530 Python Monitor (dell5530_mon.py)

Note this also comes with a radio.py library which can be used as a standaline program to get the status of the radio and enable/disable it. At the moment I've configured dell5530_mon.py to enable the radio in 3G only mode (since mine kept falling back to a GPRS signal despite 3G being available). If you want it to connect to both types of networks, you will need to change a line in dell5530_mon.py from radio.on(ser,radio.UMTS) to radio.on(ser,radio.PREFER).

Once the monitor has detected a network operator, it tries to enable the GPS functionality on /dev/ttyACM2. However, this appears to be a bit hit and miss...

Useful Links:

Labels: , , , , , ,


// posted by Barry @ 08:28 13 Comments Links to this post

Wednesday, June 18, 2008

Firefox 3

I've been using Firefox 3 now for the past day on both my Mac and Windows computers. I used to use Safari beforehand and am desperately missing Inquisitor - perhaps I'll find a similar extension or it's built in and I haven't realised.

So far I like the native widgets so it's aqualicious in Mac OS X which is nice - but you don't get the fancy Cocoa textbox facilities (spell as you type, built in dictionary lookup, etc) which Safari offers. I don't like the big "back" button, but luckily I discovered "use small icons" in the toolbar customisation which keeps it the same size as the rest. I've installed the del.icio.us extension which I used regularly with FF 2 on Windows, unfortunately it doesn't use the losenge shaped buttons on Mac OS X which makes the toolbar appear a little odd.

As a thank you, Mozilla are offering certificates to those who downloaded which is cool!

Labels: , ,


// posted by Barry @ 14:01 0 Comments Links to this post

Tuesday, September 11, 2007

Help find Steve Fossett using Google Earth

I think this is a really impressive use of Google Earth and the internet (centred around Amazon's "turk" technology); a massive distributed effort using recent satellite images on both Amazon and linked to Google Earth to find the missing explorer, Steve Fossett.

Basically you log into Amazon using your normal book buying username and password and select which Turk you want to do - the Steve Fossett one is free, but many others you can get paid for. Then you are presented with an example image and the image Amazon want you to check. You simply select "yes" (there is something interesting) or "no" (move along, nothing to see here).



Go to Amazon's Mechanical Turk (www.mturk.com)
Original article on BBC News

Labels: , , , , ,


// posted by Barry @ 07:54 0 Comments Links to this post

Tuesday, June 26, 2007

Mac OS X Grapher




Recently I thought I'd dive into the 'Grapher' program provided free with Mac OS X Tiger in the Application/Utilities folder to simulate an equation I'd been given.

Writing it into the equation bar was surprising because it displays it all very nicely converting a * to a nice dot and bracketing and dividing nicely as you type! Further, I discovered an item in the context menu to export the equation as an image or... A LaTeX equation!!

Labels: , , , ,


// posted by Barry @ 16:24 0 Comments Links to this post

Tuesday, June 19, 2007

Manhunt 2 Banned




The computer game Manhunt 2 has been rejected classification by the BBFC (British Board of Film Classification) - an unelected group of people who decide what is acceptable for the British public to watch.

This game's predecessor was given an 18 rating which apparently was at the "top end of the scale". Manhunt 2 clearly surpasses that, no doubt due to it's probable increased graphics realism and something which I read separately; the Wii version's ability to control stabbing and mutilation by performing the motion with the wiimote...

Whilst I'm not one for buying this particular genre of games I would have like to have seen the wiimote stabbing action purely out of curiousity, not out of some hidden wanton desire which the BBFC rejection now makes this appear.

a range of unjustifiable harm risks to both adults and minors


Let's quickly skim over the adult part. If a person starts to commit these acts based on a computer game, then that person has a problem. It's not the games fault!

They should perhaps do a lab test - pull a few hundred people of the streets, let them play the game for a few hours a day for a full month and release them into the wild and see what they do. I doubt very much they will all turn into killing machines*. Although, you may find that a fraction of those that do have tendencies for violence may be catalysed by the computer game - but since (I presume) that number is quite small, why stop the rest of us. It's a bit like banning peanuts because some of the population is allergic to them.

Now to the minors, sorry, that's why it should be an 18. 18 means, don't let people who's ages are less than 18 watch or play... Let's assume it did get an 18 classification. I'm not ignorant enough to realise that kids would get hold of it because "it's cool". Some of their parents would have even bought it for them, their friends would play it, etc. This is a decision the parents should be making based on the age rating and it really should become an offense just like (unsupervised) underage drinking is. Perhaps there is a useful application of DRM here.

Furthermore, rejecting the game now makes it even more 'cool' in the average kid's eyes because they'll have to import it from the US and play it on their chipped PS2s...

Come on, where there is a will there is a way. Why bother banning games - you'll still be able to get hold of them. It's not going to stop it, is it?

*If someone makes a movie out of this then I had the idea first!

Labels: , , , ,


// posted by Barry @ 16:26 0 Comments Links to this post

Sunday, May 06, 2007

DRS Software

Steven Murdoch left an interesting comment on my previous posting about the Scottish Election Chaos. Namely that the electoral commission recommends that in the event of crosses and numbers being placed in the wrong columns a system where the ballot can still be counted and not simply discarded as 'spoiled'. Steven simply hoped that the software does follow this recommendation.

As a recent convert to Apple Mac OS X from Linux over 2 years ago, I'm not quite the Open Source Advocate as I once was. However, if ever there was a case for OSS, this must be it. I really would like the ability for the public to audit the software DRS has written to ensure it follows the guidelines. Even though it has been 'independently reviewed', I simply don't trust the programmers who wrote it unless I can see test suite results and/or the code. They don't have to reveal the company secrets that actually interpret the glyphs written on the paper - but they can open the algorithm used to produce the final results.

Labels: , , ,


// posted by Barry @ 11:19 0 Comments Links to this post

Thursday, May 03, 2007

Colourful Encryption



The HD-DVD encryption system was cracked over the last week and the AACS licensing authority is trying to take down the numbers wherever they appear on the net. They are failing miserably as a google search for the numbers yesterday revealed 30,000 results and today they're indexing 370,000 pages with those numbers!

t3knomanser decided that it was a good idea to create a colour palette containing those numbers, unfortunately when he converted it to GIF - the HEX encoding was lost.

What do you think of the pretty image I've created on this page? I quickly made it up in photoshop using some colours I thought go quite well together...

t3knomanser's blog
Originally found on Boing Boing

The above image is licenced under Creative Commons. I hereby waive the Attribution requirement on this licence.

Labels: , ,


// posted by Barry @ 09:04 0 Comments Links to this post

Wednesday, March 28, 2007

Apple TV like Sync on a Macbook Pro

I was wondering earlier when and if someone could write a piece of software which makes any mac pretend it was an Apple TV. One of the features I like about the new Apple TV is the ability to 'push' and 'sync' music and video onto the device from any iTunes library, So.... if someone could figure out how to emulate an Apple TV's response to iTunes - you could possibly make any computer pretend to be an Apple TV and sync your music to any computer!

There are programs out there like SyncOTunes and SlingShot, these are all rsync based with some AppleScript to update iTunes' library - no disrespect to their authors, but they are separate applications. The Apple TV emulation would make the whole thing seamless and integrated within iTunes.

Perhaps I should have a look at this, although this may mean purchasing an Apple TV, which, until it supports DivX out of the box (or post installable without warranty voiding) I'm not interested in :)

Labels: , ,


// posted by Barry @ 07:29 1 Comments Links to this post

Wednesday, March 14, 2007

Vista Upgrade Flowchart

Click on the image to make it larger.

Labels: ,


// posted by Barry @ 22:28 0 Comments Links to this post

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]