User login
Navigation
Recent blog posts
- Ubuntu mirrors up and improved!
- Google-jstemplate: Iterate object with unknown properties
- nginx https proxypass for php apps
- sugarcrm & memcache: Doing it Wrong
- subversion and https in Ubuntu Karmic
- Drupal: Views block delta converted to md5 hash
- Ubuntu Server install requires PAE
- Installing Drupal from command line
- Drupal: Handling form field weight through CCK
- minify javascript using Google Closure Compiler
angch's location
angch twitter
- angch: Heading to Brunei. Business class for a change.
- angch: tc qdisc htb activated on the mirror, and mirror reactivated. Hope nothing melts now.
- angch: Hmmm, tbf doesn't work as advertised. htb does. #qos #linux
- angch: @yoonkit me thinks #lucid is a much better tag than #lynx
- angch: Great, you broke the dc's net and they disconnected us. Running to tpm from shah alam
postgis

Postgis recipe: Extracting MULTILINESTRING into LINESTRING
angch — Wed, 30/09/2009 - 12:35
insert into linestringtable (the_geom, col1, col2, col3)
select st_geometryn(the_geom,n), col1, col2, col3
from
multilinestringtable,
generate_series(1, (select max(NumGeometries(the_geom)) from multilinestringtable)) n
where st_geometryn(the_geom,n) is not null
and GeometryType(st_geometryn(the_geom,n)) ='LINESTRING';Not horribly efficient, but gets the job done.

Malaysian state boundaries in SVG
angch — Thu, 06/08/2009 - 20:32
Malaysian state boundaries, in SVG compressed format as requested by Seah Hong Yee.
I made the .svg, converted from an internal database, but I'm not certain of the copyright of the original information. So I can't really put this under Creative Commons, sorry. But I hope it's okay under fair use.
Enjoy.

#geekcamp Malaysia presentation: A Coder's Intro to PostgreSQL+PostGIS
angch — Wed, 10/06/2009 - 19:53
Gave a quick and dirty talk at #geekcamp Malaysia: A Coder's Intro to PostgreSQL + PostGIS.
This looks like a topic I'd be revisiting and revising as I'm heavily into PostGIS these days, and definitely felt that the I missed several important topics. I'll just put this up here for now, and we'll see how well it improves.
