Archive

Archive for the ‘Technology’ Category

Complete localization of the internet experience with IDN and the effect on US companies

November 1st, 2009 kiat No comments

ICANN, after years of planning, recently announced that full IDNs are a go, so that an FQDN can theoretically be completely internationalized with a selection of around 100K characters, outside the 37 available now for TLDs (26 alphabetic, 10 numeric and 1 punctuation mark – the hyphen).  The limitations on the extent of a language’s characters will be down to the internationalization of the first level TLDs and the subsequent IDN naming efforts of the gTLDs and ccTLDs at the second and third levels.  Here are some examples of existing, working FQDN IDNs ( <a href="http://例

How Google Wave could transform journalism

October 6th, 2009 kiat No comments

At the LA Times some great ideas about Wave applied to a specific work activity…

……”For the last two months, while we’ve been testing the Google Wave developer preview, we have been talking amongst ourselves about how this thing could change (or add to) what we do. So, here’s a list of a few wild ideas we had for using Wave.” Covering…

  • Collaborative reporting
  • Record and archive interviews
  • Live editing
  • Smarter story updates
  • Discuss while you read
  • Transparent writing process
  • Instant polls
  • Wiki news aggregator
Categories: Innovation & Design, Kiat, Technology Tags:

Automating word list translations, e.g. English to Pinyin

January 26th, 2009 kiat 2 comments
Tim Ferriss fourhourworkweek blog

Tim Ferriss' FHWW blog

Sarah and I are both a big fan of Tim Ferriss and his blog and check out what he’s writing at from time to time. He has fascinating views on language learning and I found the great article linked above, which produces two, “top 100″ English word lists, written and spoken – which I saved. I’d been thinking about making a script to translate single English words into Pinyin to save me time going to a website and looking it up.

Read more…

Quick oneliner to get lots of linked files (e.g. mp3s) from a webpage

January 26th, 2009 kiat No comments

Obviously this will work for any type of file that one wants, e.g. ogg files. The need came from me trying to find great resources on Chinese language sites, and stumbling upon clearchinese.com which had a ton of mp3s buried in links. Here is the oneliner which I ran on my laptop running a Ubuntu Hardy/8.04:

for f in $(elinks -dump http://www.clearchinese.com/mp3-lessons/newbie/index.htm | sed -n 's%.*\(http:.*mp3\)$%\1%p' | sort -u ); do wget -N $f ; done

Read more…

Howto : Pinyin on Ubuntu

January 26th, 2009 kiat No comments
Pinyin Tone Chart

Pinyin Tone Chart

As I’m very interested in communicating in Mandarin Chinese, my studies are centred on Pinyin rather than traditional or simplified Chinese characters. To help me write and display Pinyin tones on my laptop and not just in the (real) notepad I’ve been using, I’d been meaning to get this done for a little while, so with a few hours to use this Sunday it was time to get this sorted. I’m really pleased with the results and decided to share my experiences. This is all working on my Ubuntu Hardy/8.04 laptop and likely to on most modern Linux/Gnome systems. These are the pinyin packages I have installed.

[kiat@kiat-t61-uk ~]$ aptitude search pinyin
i scim-pinyin - smart pinyin IM engine for SCIM platform
p skim-scim-pinyin - Skim support for Smart Pinyin IMEngine
i uim-pinyin - Pinyin input method for uim

Read more…

altodrive.com : cloud backup service with free hardware box

June 2nd, 2008 kiat No comments

After an impromptu lunchtime discussion today with Rian and Jeff, I thought about a service that makes PC/iPod backup at home seamless to 1+ cloud data stores (e.g. gdrive), via a simple to configure, backup caching, stylish hardware box delivered to your door, which plugs into your router and provides USB/ethernet/Wi-Fi connectivty for any device you want backed up, which then does off-peak backup in the background to the cloud – also offers easy restore functionality. Of course the device should be fanless, solid state, be completely Open Source and hackable, with an easy user upgradeable HDD. Question is how best to monetize this? So spent a few hours tonight bashing out some ideas, including buying a domain name, configuring DNS and writing 2 main webpages which I’ve put in a Google presentation for speed, http://www.altodrive.com

Time to get back into blogging…

January 15th, 2008 kiat No comments

Realised today that I really need to get back into blogging when yet another annoyance reminded me I needed to share thoughts (yes I know it’s a negative thing, but at least it has the positive result in getting back to what I enjoyed doing but got lazy). Perhaps the frequencies of peoples blog posts can be mapped to some underlying feature of their experience or character: I wonder who has blogged on precisely the same days as me – no more or less. Would I like to read their blogs? Maybe. It would make an interesting bit of scripting to find that out. Well back to today. Busy at work, very wet weather with pond like puddles all over the place. Noticed when I got off the train that a sign said that the doors close 30 seconds before departure to ensure trains left on time: hmmm….that’s all very well but the trains seem to pull in only around 40 seconds before they are set to leave again. Not for the first time have I seen the doors stay open for around 10 secs or so before – must seeing what’s the shortest time it takes the staff to blow their whistles after the doors have first opened. I bet it’s sub 10 seconds in places on the Aldershot-Waterloo line. I don’t like being rushed unnecessarily but it must be very awkward for the elderly and infirm to be rushed like that: seems again it’s passengers suffering again – variable, frequently indifferent customer service at stations, little or no waiting rooms (what protection do railway customers have from the elements? leaky old Edwardian roofs mostly), fares up again, minimal ticket checking so people make a mockery of the first class ticket system on some lines. Oh I could go on.

Today was the day after a works football game I organise. It got a bit physical and eventually, inevitably, terribly, pointlessly someone got injured and today their ankle is double the size. Will need to get more proper sportsmanship, decency, fairness and good humour back into the game. Football is just one of those things in life for me that it can always be magic, refreshing, enjoyable no matter what the last game was like. Now I just need to find more time to play it, play more bridge and poker and bass guitar, see more of my friends etc. Not exactly New Year resolutions (calling well intentioned ideas that seems to be a kiss of death!) but certainly aims. To do that I need to free up more time. Daily my work in London means I’m almost always 12-13 hours away from home: I’ve got to somehow get some hours back – the plan to work on the train is not giving me as much work time as I’d want (80 minutes) since the data network Vodafone GPRS/3G is very variable and basically crap along that train line. Note to self: get more life into the work/life balance!

On the TV right now is a Horizon documentary on how to kill humanely in terms of the death penalty: it strikes me that why not just prefix the existing method on-site with a sufficiently strong general anaesthetic? Basically put the condemned person to sleep first. Enough of that.

Good to see Linux heading into mainstream computing: the desktop and the “phonetop”. gOS, Android, the Eee PC laptop…lovely. I’m starting to see that inevitably the Windows protectionist market share will erode and balance to fundamentally better value OS whether they be free in some way (Linux) or not (Mac). It’s just incredible that a global company with such dominating market share cannot provide a high value product/service – perhaps it’s part of the territory, in that the sheer number of app developers in an essentially closed source and complicated model means that it’s almost impossible to develop a stable, fast extensible platform.

GPS, Wi-Fi, UMTS and Google maps with gpsdrive on Linux

July 1st, 2007 kiat 7 comments

Just a quick post on my gpsdrive setup. I hadn’t used it for a couple of years, but that didn’t matter really as it hasn’t changed much in that time either. The realtime downloadable map support is still only expedia.{de,com} but it would be cool to add in google too. I found a Spanish website where someone has done all the hard work generating a grid of google map URLs and I wrote a script to download and apply them to the coordinates file.

All the networking hardware was bought from Solwise, I wrote a script which automates the downloading and adding grids of google maps to gpsdrive. Next I want to plot position by GPS in real time within Google maps itself within firefox and upload WLAN APs dynamically, which will require a mobile internet connection, thereby an interesting alternative to gpsdrive. Would be cool to be able to run that in offline mode too. Will upload scripts, photos, screenshots etc of my current setup soon.

One time setup

  1. Configure system to connect to the GPS. If using bluetooth, see gps-start for details, configuring rfcomm.conf. Test: turn on GPS, as root run gps-start and “cat /dev/rfcomm1″ should show NMEA sentences streaming by.
  2. Configure gpsd. If the gspdrive’s gpsd is not working properly try the latest gpsd. Test: “telnet localhost 2947″ and issue
    commands like “p” for position (the gpsd man page has details) and check reponses
  3. Configure the Wi-Fi card to use an appropriate driver which supports monitor mode (e.g. hostap, madwifi, …). Test: change to monitor mode and check with iwconfig
  4. Configure Kismet (kismet.conf) for the card (e.g. “source=hostap,wlan0,wlan0″, “waypointdata=%h/.gpsdrive/way_kismet.txt” and “suiduser=$your_username”. Test: run kismet and check WLAN info
  5. Configure mysql for the database gspdrive will use to store WLAN AP and Geo data: using the create.sql script from gpsdrive makes it easier. Test: check with some mysql queries, e.g. echo “select * from waypoints limit 3″ | mysql -u gast -pgast geoinfo
  6. Save and edit the scripts in appropriate locations: /root/bin/gps-start and ~/.gpsdrive/google-maps-script
  7. Configure gpsdrive to read the file kismet is writing to “way_kismet.txt”

Starting session

  1. Turn GPS on and run gps-start as root: screenshot
  2. Run kismet as root. screenshot
  3. Run gpsdrive as your regular (unprivileged) user that you also configured kismet for. screenshot

Adding Google maps

  1. Best to not have gpsdrive running
  2. Go to http://gtm.tel.uva.es/ztep/maps/dmap.htm and browse to the area you want. I tend to set the zoom between 12-17 to get 8×10 maps in a grid, overlap 10% (rather than the default 5%) to guarantee decent overlap, and of course toggle to gpsdrive. Here is an screenshot of one of my configurations. Once the maps are generated, save the page which doesn’t need to be rendered fully by your browser so no need to wait for all the thumbnail images to load.
  3. Run the google-maps-script which I’ve put in ~/.gpsdrive for testing, but ~/bin is prob better. This scripts auto downloads and adds the multiple google maps for gpsdrive to use. I decided to stop using Expedia completely (such ugly maps!) and edited them out of ~/.gpsdrive/map_koord.txt and currently have 865 Google maps there from approx 12 runs of this.
  4. Start gpsdrive and you should be able to navigate to your new Google maps

Have fun!

Global Help Desk for the developing world: open sourcing services, a universal LUG with industrial strength SLAs

February 5th, 2007 kiat No comments

It’s been an aim of mine for a while to find time to use what I know and can do to help others. But I’ve never had much time for local LUGs since uni (and they don’t really need me), and the charitable tech organisations (like Geek Corps) that I found weren’t something I could spare the time to get involved in, since I was busy trying to make ends meet and get my career to a place I felt comfortable with. I knew I could spend some time, but that I’d prefer to do it from home and make use of my broadband link. Also it meant not being parted from the wife, which work has a habit of doing. It struck me that what was missing was a sufficiently large organisation that provided support, primarily remotely, for people that needed it in developing countries. I wanted – I want – to do my bit, but in a way that makes best use of the resources at my disposal. I could donate a fiver a month, but wouldn’t a few hours of my time (worth tens or hundreds of pounds depending on how one measures it) be more useful?

Being in the Linux/Open Source business for a few years now it’s struck me that uptake of Linux in particular in schools (and other orgs with scant cash resources that could be better spent elsewhere: like on teachers) is hampered by the lack of low cost, dependable professional support. This situation is identical to that faced by businesses who did not have the coinfidence that Linux can return benefits over the long term, supportable and supported by both internal staff and an industry that can provide professional Linux/Open Source services. Like Red Hat, like IBM, like SuSE, Canonical, Novell, Spikesource and a growing raft of other companies.
Now consider a set of schools in a developing country and the resources available are exponentially smaller. If it is dependable, professional support that will help, then low cost is not good enough – it must be free (as in beer). This realisation got me thinking that if a sufficiently large group of charitably minded FLOSS geeks (desktop, server and network admins, etc) got together then we could provide a reliable, professional set of services for vertain locations globally. With enough people then this thought of open sourcing services could, with great organisation, energy and will of it’s members, provide industry strength support at zero cost for the end user: an org/school/charity/medical centre etc that could vastly benefit from the enabling power and freedom of Open Source.

So what would it take? Well I know from experience that it is possible to provide 24×5 enterprise Linux Help Desk support with less than 10 people (I did it with 7) globally for over 1000 end users. However I think hundreds, but probably thousands are needed. Why? Momentum, growth, scale: more volunteers means more help can be given. The vision is wide ranging but it is possible to start small. Perhaps with as few as 10 people. What would that give us? Well if 10 people could pledge and give 2 hours per week, then that is 2×5 support (2 hours, 5 days a week) with 2 people on at any one time, to cover for illness etc. More personnel would be needed as the services grow in depth, coverage and type. Apart from people it would also take resources, personal and organisational. Personal resources are easiest: basically a computer connected to the internet is all that is needed to get started. Organisational would be stuff like web hosting, bandwidth, mirroring services, Legal/business help, marketing etc – but that’s for later.

I’ll just braindump the rest of my ideas for now which have been building up for months. classroom-in-a-box, internet-cafe-in-a-box ideas where the only install required (http/ftp/cd/dvd) is to the server with a distro selected from a range available, wrapped in kickstart (or equivalent), the freshly installed server then itself fully configured to be the kickstart (or other) server for the other clients be they thin, fat or something in between. I forsee a matrix of distros on the top, with install types (school, cafe, medical centre, office) on the left, that build distro-independent identical servers via a unified build environment, that can then install any client computer of choice. More tomorrow….

Thinkpad T43, RHEL4 and the Integrated Fingerprint Reader

April 29th, 2006 kiat No comments

In short it works like a charm. Very cool to login via gdm, virtual terminal and the screensaver with the swipe of my index finger. Of course I could not resist trying my other fingers and none of those worked as hoped.  The Thinkpad T43 I use is a company laptop, but after following the How to enable the fingerprint reader page on the excellent thinkwiki.org site, it was very straightforward to get working. Needed to “up2date pam-devel”, adapted the Fedora install script to RHEL4, and followed the xscreensaver howto there simply porting the 4.22 patch back to RHEL4′s 4.18 version (which I ended up wrapping into an rpm: xscreensaver-4.18-5.rhel4.10.rhis.src.rpm).