RSSAmplifier

Blog

Misspelled Nemesis Club

Recent content on Misspelled Nemesis Club

moreati.org.ukRSS feed ↗54 posts

Latest posts

Can I prove I'm over age, on the Internet?

Yes. Provided I share my name, date of birth, driver’s license, and inside leg measurement with every .com, .click, and their 1443 Harrys. 
 I’d prefer not to share those. 
 Can I privately prove I’m over age, on the Internet? 
 Maybe, eventually. 
 Let’s say I’m a visitor to your website. A law requires you to block access to under 16s, an “I am…

Ansible is Stringly Typed

Summary 
 Ansible is weakly typed, but in particular variables set on the command line are stringly typed .
If a string is used in a condition (e.g. when: skip_build ) it leads to surprising results, because any non-empty string (e.g. "false" ) evaluate as truthy .
I recommend casting all variables in conditionals, or other calculations. 
 Prefer 
 - name : Some task 
 ...…

Verbose regular expressions, now you have one and a bit problems

Regular expressions (regexes) are famously hard to read or write. There are
some techniques you can use to improve this. Like any other code you write,
your regular expression patterns should 
 
 include comments 
 break apart large blocks into smaller related sections 
 use named variables and identifiers 
 
 Verbose regular expressions, and named caputure groups…

Taste testing for fun and profit

Last week I ran three
 blind taste tests 
at a local meetup.
They covered cola, diet cola, and chocolate sandwich bars.
I wanted to find out what goes into running a taste test, how peoeple
react and to get some measurable results. 
 ] 
 My inspiration was a recent TV programme called
 “Eat Well for Less?” 
In the show families have their normal…

Excel tables, structured references and OpenOffice

In Microsoft Excel and OpenOffice Calc one can name a range of cells
and refer to the name in a formula. So rather than writing =SUM(C2:C7) 
one can write =SUM(SaleAmt) . Excel calls this a “Defined Name”. In Excel
2007 one can also create a
“ table ”,
which is a region of cells that store records and fields in the rows and
columns. The first row of…

I Want My New EV (with apologies to Dire Straits)

I’ve hit a wall with this, so please take it and do with it as you will. 
 Mileage for Nothing 
 Sung to “Money for Nothing” by Dire Straits 
 I.. Want.. My.. New.. E.. V.. 
Now look at them yo-yos that’s the way you do it 
You charge the batt’ries on the New EV 
That ain’t workin’ that’s the way you do it 
Mileage for…

MPGe of an electric car, revisited

Last year in MPGe of an electric car 
I attempted to compare the
carbon emissions of the BMW Mini-E, and my own Ford Sport Ka. The result
was 212 g/km (30 MPGe) for the Mini-E charged from coal, and 172 g/km
for my Sport Ka (37 MPGe). In retrospect, the comparison was far too
rough to draw conclusions from. This post is an attempt to correct that.
This morning the Today…

Hacker Culture and geek groups in Birmingham, West Midlands

Birmingham has a vibrant community of geek/enthusiast groups, of which
I’m proud to be a part. That said, it’s sometimes hard to find or even
know about all of them, without the right. So collected here are the
groups I know of: 
 
 Birmingham LUG 
 Linux User Group that meets at the University of Birmingham, on the
third Thursday of each month. Meetings are…

MPGe of an electric car

Does an electric car gets better or worse mileage than a conventional
petrol or diesel car? To a large extent, it depends on what we choose to
include or exclude in the calculation. We can measure the whole chain,
accounting for every step in the process of extraction, refinement,
transportation and use - a well to wheel model. Or more easily, and less
accurately, we can…

Electric vehicle forums and websites

There are quite a few forums on the net for electric bikes, scooters,
motorcycles and cars. Mostly they cover early adopter issues, tinkering,
advocacy and DIY conversions. Here are the ones I’ve been drawn to: 
 
 Endless Sphere , A
lively forum with an emphasis on electric bikes 
 V is for Voltage Another lively forum
with many posts on scooters and motorcycles,…

A new twist on spam?

These two messages appeared on the Spatialite mailing list today: 
 
 From: stefanobartol87453@gmail.com Subject:Where can I find an online
anti-virus that doesn’t install on your PC? I’ve got 5 PCs that I’m
trying to use to train disadvantaged young people. The problem is they
are riddled with viruses and a firewall blocks me from updating them.
The…

Electric scooter

Petrol is fantastic stuff. It’s driven modern society, to the point of
defining it: dirty, but very effective. Petrol has been so popular
because of it’s convenience - as a liquid it’s easy to handle; and the
fantastic amount of energy it holds - about 10 kilowatt hours in each
litre. That’s an amazing amount of energy, in a very small space If…

Some LocalView Intranet performance tips

LocalView
Intranet is a
web mapping product developed and sold by ESRI UK, predominantly to
local councils. The current version (as of August 2009) is 2.1 SP2,
supported on ArcGIS Server 9.2 SP5. The following are some straight
forward tips for improving it’s performance: 
 
 The ArcMap document (mxd) defining each map service is critical to
every aspect of…

Back on the air

Apologies if your email to me has bounced these last few days. My domain
was due for renewal, and neither I nor my calendar went bing. Everything
should be back now, if you’ve sent me something and I haven’t reacted or
replied please resend it.

Make a Windows installer for your python module

To help you build and distribute your Python packges, Python provides
 distutils .
This library knows how to bring together your modules, where to put
scripts and how to compile C extensions. The process is driven by a
setup.py file, written by the package author or maintainer. Depending on
what argument is passed, setup.py can install the package, build an
archive or build…

EuroPython 2009 open for registration

If you’ve enjoyed PyCon UK the last 2 years, the
bad news is that it won’t be happening this year. The good news is
that EuroPython 2009 is coming to sunny
Birmingham instead, for 3 days from Tues 30th June to Thurs 2nd July and
 registration is now open . The
even better news is that until 14th March it’s really cheap , like 50%
off cheap making the 3 day…

The Shapefile 2.0 manifesto

Geographic Information Systems (GIS) are by their nature data driven.
The data comes in a wide variety of raster and vector formats. Rasters
hold raw, continuous data recorded striaght from the real world. An
example is Satellite/aerial imagery, this is a commonly held in an open
format with broad support, such as
 GeoTIFF or
 GeoJPEG . Vector
formats 
hold refined,…

MXDPERFSTAT

Investigating the performance of an intranet mapping website this week,
I was introduced
 MXDPERFSTAT . It’s a
fantastic tool for investigating map display performance. Given an
ArcMap document (a .mxd file) it runs ArcMap and loops over the map
layers, displaying each at a list of scales (e.g. 1:100000, 1:10000,
1:2500, 1:500) automatically. Scale cut-offs are…

Self decrypting emails considered harmful

Sending a sensitive file, one that should be encrypted, amongst Linux
and OSS geeks is doable. Most have heard of PGP, many have a GPG key
( here is
mine )
and some even use it. Sending an encrypted file to most people is a
non-starter. The software may be there (Outlook is S/MIME capable), but
the knowledge and the experience definately isn’t. Which is a…

from ESRI.ArcGIS import Geodatabase

A couple of years ago I tried to use ArcObjects, through
IronPython .
It didn’t quite work. Last week I tried again, using the newly released
IronPython 2.0. This time it worked better.
 create_sde_conn_file.py 
is based on CreateSDEConnFile.java, from Creating ArcSDE connection
files on the fly using Python and
ArcObjects 
on ESRI’s Geoprocessing blog.…

meetyourmessenger.co.uk smells phishy

Here&rsquo;s an email I received today: &#xA; &#xA; From: meetYourmessenger <no-reply@meetyourmessenger.com>&#xA;Subject: You have (1) new message from Adam Hi alex, You have&#xA;(1) unread invitation &ldquo;Hello :-)&rdquo; from Adam at meetYourmessenger.co.uk&#xA;Click here Show the message in your temporary inbox at&#xA;meetYourmessenger.co.uk &#xA; &#xA; I know an Adam on MSN Messenger, he…

Only one predication, Windows 7 will be released as Windows Vista SP 2.5

I have no evidence, and it&rsquo;s wishful thinking more than anything.&#xA;However, I predict that just before the expected release Microsoft will&#xA;reveal Windows 7 is to be a free upgrade for Windows Vista users. P.S.&#xA;If you have any trouble posting a comment to this blog, please let me&#xA;know on alex@moreati.org.uk .

Timesheets in OpenOffice Calc and Excel

Putting my timesheets in order today, I finally figured out how to make&#xA;Excel deal correctly with time durations. The default is to treat values&#xA;as a date/time, formatted as hh:mm. So a value such as 37:00 - meant as&#xA;a duration - is displayed as 13:00 (1 PM the following day). To correct&#xA;this, choose custom cell formatting, and enter the format as [h]:mm. In&#xA;OpenOffice Calc,…

Deep Zoom and others for displaying large images on the web

Slashgeo have noted the release of Deep Zoom in&#xA;Javascript &#xA;aka Seadragon , by Microsoft. Deep&#xA;Zoom &#xA;allows one to deliver a very high resolution image over the web, with&#xA;pan and zoom. Only the portions viewed are download, so bandwidth usage&#xA;is minimised. Until now Deep Zoom was Silverlight only. It works&#xA;similarly to OpenStreetMap, Google Maps or Live Search Maps. A…

Firefox rendering/scrolling slow on Linux? Try reseting page zoom

For months now, I&rsquo;ve found Firefox on my Linux laptop to sometimes be&#xA;sluggish and a CPU hogging, particularly when scrolling. T-Mobile UK and&#xA;Engadget were the worst affected. Visiting t-mobile.co.uk saturated the&#xA;CPU for several seconds whilst rendering. The result looked horrible -&#xA;grainy, and badly pixelated. I&rsquo;d attributed this to X, Nvidia, browser&#xA;sniffing,…

Another Python cheat sheet

I couldn&rsquo;t find a Python cheat sheet that I liked, so I made another. &#xA; &#xA; Python cheat sheet 0.1 (A4,&#xA;OpenDocument) &#xA; Python Cheat sheet 0.1 (A4,&#xA;PDF) &#xA; &#xA; It&rsquo;s rough, but pretty usable. I need to make better use of&#xA;space/colour, choose a clearer font and link it into the Python docs.&#xA;The license will be either Python Software Foundation&#xA;License…

Barriers to year of linux on the desktop

This post is a tribute to Linux&#xA;Hater who sadly&#xA; has retired . He was&#xA;insightful and right about many&#xA;things ,&#xA;although sometimes a bit too&#xA;whiny .&#xA;Linux currently holds about 1% market&#xA;share &#xA;on the desktop. It has gained 0.5% in 2&#xA;years ,&#xA;whilst Mac OS X has gained 3%, and MS Windows has lost 4%. In the&#xA;browser market Firefox is now nudging 20%…

This week I have been mostly learning...

&#xA; The XBox 360&#xA;( Xenon ), Wii&#xA;( Broadway )&#xA;and Playstation 3&#xA;( Cell ) all use&#xA;an IBM licensed PowerPC CPU. &#xA; The Ubuntu spell-check dictionary includes &lsquo;SPARCstation&rsquo;, but not&#xA;&lsquo;PlayStation&rsquo;. &#xA; YSlow rocks. &#xA; Users of IIS should not believe the official&#xA;docs &#xA;on HTTP Compression, instead go to Coding&#xA;Horror . &#xA; MythTV…

Honey I hid the dot-files

Backing up my home folder this weekend, in readiness for the Ubuntu&#xA;Intrepid beta I spotted some unusual path names scroll by: &#xA; ~/.local/share/applications&#xA;~/.local/share/desktop-directories&#xA;~/.local/share/gnome-do&#xA;~/.local/share/mime&#xA;~/.local/share/Mono Paint&#xA;~/.local/share/Trash&#xA;~/.local/share/tracker`&#xA; &#xA; It turns out that the hidden folders $HOME/.local/…

Job Seeking

It&rsquo;s been Five years since I moved to Birmngham, to begin work with&#xA; Defence Estates . I&rsquo;ve enjoyed my&#xA;time there, the people are fantastic and I&rsquo;ve learnt much. It&rsquo;s now time&#xA;to move on; I want to find new challenges and broader horizons. If&#xA;you&rsquo;re looking for a DBA, a system administrator, someone skilled in GIS&#xA;support, or in application support…

SubHuman GTK theme: making GTK play nice with Fitts

In Fitts Law and Minimalism vs GTK+ and&#xA;Qt &#xA;I complained about the excessive use of borders and padding in GTK+ and&#xA;Qt. Here&rsquo;s what I&rsquo;ve got so far (click for unscaled versions): &#xA; &#xA; Although work in progress still, I think the window looks cleaner&#xA;already. Most importantly the chat history scrollbar now lies flush with&#xA;the window edge. To achieve this,…

Commenting is now fixed, sorry

Anybody who tried to register on this blog during the last 6 months or&#xA;so, would not have received an activation email. So many people will&#xA;have been unable to comment. If this has happened to you sorry for the&#xA;inconvenience. This Wordpress installation can now send emails, thanks&#xA;to the Configure SMTP&#xA;plugin by Scott&#xA;Reilly . If you have any problems, please&#xA;email me,…

Fitts&#39; Law and Minimalism vs GTK&#43; and Qt

It all started with the Pidgin chat window, which is surrounded by&#xA;several pixels of padding. To my eyes the padding doesn&rsquo;t achieve&#xA;anything, it just wastes space and detracts from the clean, minimalist&#xA;lines of the Buddy List. After much fumbling, I managed to change it in&#xA;the Pidgin source code . Bug&#xA;6987 &#xA;with patch was duly filed. Now I&rsquo;ve become obsessed,…

Free/Open Source Government: part 2

On 31st March the British Standards Institute (BSI) submitted an updated&#xA;vote of approval, on ISO 29500 (MS OOXML). The move surprised many,&#xA;myself included. In September 2007 the BSI had voted &lsquo;No - with&#xA;comments&rsquo;, attaching a long list of reasons. The response had been&#xA;prepared in the open over the web, using the BSI OOXML&#xA;Wiki . It was&#xA;applauded by many,…

Ubuntu Long Term Support and LugRadio Live

My first ever LugRadio Live was LRL&#xA;2006 , which was the&#xA;perfect opportunity to pickup CDs of the then newly&#xA;released Ubuntu 6.06&#xA;LTS . My last ever LugRadio Live is&#xA; LRL 2008 , which will be the perfect&#xA;opportunity to pickup CDs of the now newly&#xA;released &#xA; Ubuntu 8.04.1 LTS . See you there,&#xA;July 19th - 20th.

@Programmers of web forum/blog software

Dear web 2.0 coolios, Please stop writing comment systems with&#xA;half-assed threading. I understand you had to replace all those icky&#xA;newsgroups on usenet, but you could have done a better job. Take a look&#xA;at Google&#xA;Groups ,&#xA; Gmane . See how all&#xA;those conversations are nicely grouped together? See how nobody is&#xA;writing @previous_author? Please sort it out, because the…

&#34;Unlimited&#34;*

The term &ldquo;unlimited&rdquo; has been stretched in various ways over the last&#xA;few years. Usually it&rsquo;s been qualified, limited if you will, by some&#xA;undefined fair use policy in the small print. Well now those hidden&#xA;limits are getting aired. If you squint, Tiscali&rsquo;s current TV ad admits&#xA;a 3 GB limit for their headline price. T-Mobile are very up front on&#xA;their…

Power consumption on Linux with the proprietary Nvidia driver

By default the proprietary driver for Nvidia cards on Linux fires an&#xA;interrupt for every frame drawn on screen, whether it needs to or not.&#xA;This increases power consumption. To avoid this use version 100.14.19 or&#xA;later of the driver (the nvidia-glx-new package in Ubuntu 8.04 provides&#xA;169.12) and set OnDemandVBlankInterrupts to true in&#xA; /etc/X11/xorg.conf . For…

Free/Open Source Government: part 1

Several events for me in the last fortnight converged almost perfectly&#xA;on a common theme &#xA; &#xA; On Thursday 28 March The Register reported from an anonymous source,&#xA;that the British Standards Institute (BSI) would reverse their&#xA;vote &#xA;on the proposed DIS 29500 standard from &lsquo;No - with comments&rsquo; to Yes.&#xA;In response John Pugh MP, Liberal Democrat member wrote a…

UKUUG spring 2008 and 1st PostgreSQL UK conference report

My first UK Unix User Group conference and the first ever Postgres UK&#xA;conference ended on Wednesday. Both were successful, reactions I&#xA;overheard were good. Dave Page has a posted a&#xA; wrapup .&#xA;My favorite talk of the conference has to be Software patents and open&#xA;standards by Pieter&#xA;Hintjens. His style was engaging and his words cleared my understanding&#xA;and opinion of…

Notes on using sdelayer to mosaic data into ArcSDE

For those who aren&rsquo;t familiar, ArcSDE is server software that sits atop&#xA;a database to spatially enable it. The resulting geodatabase is able to&#xA;store geographic features (e.g. roads, buildings, endangered habitats)&#xA;along with more common SQL data types. ArcSDE can also store&#xA;georeferenced rasters such as scanned plans/maps or satellite/aerial&#xA;imagery. To load raster data…

Review of the Candy Trio 503: a combination hob, oven & dishwasher

I joined the property ladder 2 years ago, a nice prefab steel-framed&#xA;maisonette with only one problem - a minute builder-specified kitchen.&#xA;There was too little storage, not enough worktop space and critically no&#xA;room for a dishwasher. To the rescue comes the Candy&#xA;Trio &#xA; 503 - a free&#xA;standing, all-electric 60 cm cooker with an integrated dishwasher. The&#xA;top half is a…

UK Unix Users Group Spring & Postgresql UK Conferences

The UKUUG Spring 2008 and&#xA;first ever PostgreSQL UK &#xA;conference are soon. The UKUUG conference runs from Monday 31st March&#xA;until Wednesday 2nd April, the Postgres event runs for 1 day on the&#xA;Wednesday. They&rsquo;re both in&#xA; Birmingham , at the&#xA; Conservatoire . That&rsquo;s the&#xA;same location that held the first PyCon UK, for those of you keeping&#xA;track. I&rsquo;ll be…

On migrating between internet service providers

Apologies to anyone who got email to moreati.org.uk bounced or a 404&#xA;over the last week. I&rsquo;ve been moving hosting provider, from Dreamhost to&#xA;Webfaction and ironing out some finer points of DNS configuration - I&rsquo;m&#xA;a DBA Jim, not a network engineer. Thanks to standards and open source&#xA;software information services are becoming interchangeable commodities,&#xA;like…

How to make T-Mobile Web n Walk a real web connection

Thanks to a comment on the blog post Hacking&#xA;T-Mobile ,&#xA;I&rsquo;ve discovered that the T-Mobile Web n Walk transparent proxy can be&#xA; bypassed neutered. Assuming you use Firefox, here are the steps: &#xA; &#xA; Install the Modify Headers &#xA;addon. &#xA; In Tools -> Modify Headers, open the Modify Headers dialog. &#xA; Along the top row set the operation as Add, the name…

Tiscali: Cheap and crap

I&rsquo;ll admit it, I&rsquo;m cheap when it comes to telecommunication. I generally&#xA;look for the line rental refund when renewing my mobile and I hate&#xA;paying line rental to BT. Two years ago I moved house, outside the area&#xA;cabled by Blueyonder, who were great. First I tried Orange broadband,&#xA;which was free with my mobile phone. It was slow and the supplied router&#xA;was a bit…

The IBM compatible PC, catching the Amiga since 1992

Around 1992 my second computer was an Amiga&#xA;500+ , a lovely machine. It&#xA;beat the pants off any PC at the time, particularly for playing&#xA;Lemmings. Many Amigas used a television for their display, as a result&#xA;they could run at a super high&#xA; interlaced resolution. This&#xA;looked awful and induced headaches. Interlacing is a fairly good&#xA; compromise for television shows…

Brought to you by the letters H, D, D and the sound tinkle

It is said there are 2 types of people: &#xA; &#xA; Those who perform backups. &#xA; Those who&rsquo;ve never lost valuable data. &#xA; &#xA; This is wrong, I&rsquo;m in a third, transitory group. I&rsquo;m no longer in the&#xA;second group, but I&rsquo;m not yet in the first. I resolve to join, once I&#xA;replace my ex hard disk - now a rattle. Embarrassingly, it took with it&#xA;my gpg private…

Python implementations matrix

For the last week or so I&rsquo;ve been putting together a spreadsheet, to&#xA;compare the various Python implementations on support of PEPs and&#xA;library modules. It is ready for a first release, but far from complete: &#xA; &#xA; CPython 1.5 - 2.5 coverage is good. &#xA; IronPython 1.0 - 1.1 has library coverage &#xA; Jython only has release dates &#xA; PyPy has not been started &#xA; &#xA;…

Tabular data with Python slides, from PyCon UK

At PyCon UK 2007 I gave a short talk on using&#xA;Python to deal with tabular data. The slides, demos and&#xA;modules &#xA;for my talk are available for download. There is material in the&#xA;download that I didn&rsquo;t present on the day. The talk covers extracting&#xA;data from various tabular data formats. This is the first step of an&#xA; Extract, Transform Load&#xA;(ETL) &#xA;operation. It…