<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-11006378</id><updated>2025-09-18T21:37:52.507+08:00</updated><category term="ubuntu"/><category term="gis"/><category term="google maps"/><category term="mapguide"/><category term="php"/><category term="css"/><category term="firefox"/><category term="javascript"/><category term="mapnik"/><category term="mysql"/><category term="openstreetmap"/><category term="optimization"/><category term="postgis"/><category term="rabbitmq"/><category term="streetview"/><category term="thinkpad"/><title type='text'>Helmi Ble&#39;be&#39;</title><subtitle type='html'>Open Source, programming and related stuff</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default?alt=atom&amp;redirect=false'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default?alt=atom&amp;start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>111</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-11006378.post-3383634892605094589</id><published>2012-10-16T10:17:00.000+08:00</published><updated>2012-10-16T10:17:10.324+08:00</updated><title type='text'>Cat</title><summary type="text">

Jelita

</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/3383634892605094589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/3383634892605094589' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/3383634892605094589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/3383634892605094589'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2012/10/cat.html' title='Cat'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-6030140899248425447</id><published>2012-05-15T13:55:00.000+08:00</published><updated>2012-05-15T13:55:29.791+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="rabbitmq"/><title type='text'>RabbitMQ PHP in Ubuntu 12.04</title><summary type="text">Testing  RabbitMQ PHP in Ubuntu 12.04
Examples for AMQP in official PHP site (last check 2012/05/15) not sync with API for PECL 1.0.1.
This is my version to test simple php amqp

emit_log.php: 


// Create a connection
$cnn = new AMQPConnection(array(&#39;login&#39;=&amp;gt;&#39;guest&#39;, &#39;password&#39;=&amp;gt;&#39;abc123&#39;));
$cnn-&amp;gt;connect();

// Create a channel
$ch = new AMQPChannel($cnn);

// Declare a new exchange
$ex</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/6030140899248425447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/6030140899248425447' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6030140899248425447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6030140899248425447'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2012/05/rabbitmq-php-in-ubuntu-1204.html' title='RabbitMQ PHP in Ubuntu 12.04'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-6045164889649014255</id><published>2010-10-30T14:16:00.000+08:00</published><updated>2010-10-30T14:16:55.957+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google maps"/><category scheme="http://www.blogger.com/atom/ns#" term="streetview"/><title type='text'>Custom Street View panorama using Google Maps v3</title><summary type="text">Notes and command line script to run when create custom Street View.
Demo

Create initial panorama
 * using point and shoot camera&amp;nbsp;take enough pictures to cover all around (8-12 is good enough)
 * use stitching software&amp;nbsp;to create equirectangular projection of the panorama
 * panorama must be aspect ratio 2:1

Streetview tiles
 * if initial panorama size 8192x4096, then for tile size </summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/6045164889649014255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/6045164889649014255' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6045164889649014255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6045164889649014255'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2010/10/custom-street-view-panorama-using.html' title='Custom Street View panorama using Google Maps v3'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-1203650692106210955</id><published>2010-09-07T12:27:00.000+08:00</published><updated>2010-09-07T12:27:45.733+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><title type='text'>Running two instances of Mozilla simultaneously</title><summary type="text">Useful when testing login multiple users for a web application during development
firefox -P profile1 -no-remotefirefox -P profile2 -no-remote
see&amp;nbsp;https://developer.mozilla.org/en/Debugging_Mozilla_on_Windows_FAQ#Running_two_instances_of_Mozilla_simultaneously</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/1203650692106210955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/1203650692106210955' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/1203650692106210955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/1203650692106210955'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2010/09/running-two-instances-of-mozilla.html' title='Running two instances of Mozilla simultaneously'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-6953014294503206256</id><published>2010-04-21T23:29:00.000+08:00</published><updated>2010-04-21T23:29:36.849+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="thinkpad"/><title type='text'>Ubuntu in ThinkPad X100e</title><summary type="text">ThinkPad X100e
Few notes while install Ubuntu Lucid:I install Lucid after upgrade from Karmic. Downloaded the Karmic AMD64 ISO, and run usb-creator to copy to my USB stick.
Make sure wireless enabled in BIOS, there is no hardware button to enable wireless! My lappy disabled it by default (I bought it without OS from Digital Mall, Petaling Jaya )
Get latest wireless driver and install it (wireless</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/6953014294503206256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/6953014294503206256' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6953014294503206256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6953014294503206256'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2010/04/ubuntu-in-thinkpad-x100e.html' title='Ubuntu in ThinkPad X100e'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-6200636931803186699</id><published>2010-04-14T21:57:00.002+08:00</published><updated>2010-04-14T22:04:49.113+08:00</updated><title type='text'>Optimize P1 W1MAX Signal</title><summary type="text">Position is the key. There is difference when P1 modem inside and outside (balcony) of my house.

Inside

Outside


I been using P1 since Aug 2009, and the signal mostly strong when placing the modem inside house. The signal is significantly difference this couple of days, might be due to P1 Network Upgrade Exercise (9-12 March 2010). Anyway hope better signal while streaming Arsenal games </summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/6200636931803186699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/6200636931803186699' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6200636931803186699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6200636931803186699'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2010/03/optimize-p1-w1max-signal.html' title='Optimize P1 W1MAX Signal'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm6lGqDAm9Fkeee46FGPe41zNwJqclibNXGwRPRlet2fLUAdhfO3vykKw8f3p3496bnE9PUil_B5Yy_DKYeq0R9_yXPW7BkpEBsQq5VSL3lGYTvMN3oZcMWtgsPtryqszrsWv6/s72-c/inside.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-1277386690780160672</id><published>2010-03-11T14:51:00.001+08:00</published><updated>2010-03-11T14:51:43.566+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google maps"/><title type='text'>Information Overload - Google Maps</title><summary type="text">
There is reason for word &#39;More...&#39;</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/1277386690780160672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/1277386690780160672' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/1277386690780160672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/1277386690780160672'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2010/03/information-overload-google-maps.html' title='Information Overload - Google Maps'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3KMJWaoYSShnhgOhojnEwLNYOAZaiKp41-lNUAtZ0MZU4-lTNT84UJWp-3sQdjr4NI4dMhiwAXghOILH_GdhdFH6er43iBf9FmRusQrOEKookR7ibGLzcm4oXDw3gRvgP2-yh/s72-c/information_overload.png" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-577489997198296355</id><published>2010-02-02T16:15:00.000+08:00</published><updated>2010-02-02T16:15:57.841+08:00</updated><title type='text'>Tilecache TMS fixes</title><summary type="text">Error message when working with tilecache TMS:

An error occurred: The requested layer (1.0.0) does not exist. Available layers are:
To fix it, only add one line as below:

helmi@gandalf:~/Packages/tilecache-2.10/TileCache/Services$ diff -C3 TMS.py TMS_fix.py 
*** TMS.py      2010-02-02 16:12:32.000000000 +0800
--- TMS_fix.py  2010-02-02 16:13:06.000000000 +0800
***************
*** 13,18 ****
---</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/577489997198296355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/577489997198296355' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/577489997198296355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/577489997198296355'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2010/02/tilecache-tms-fixes.html' title='Tilecache TMS fixes'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-3638223304524615294</id><published>2009-10-28T17:52:00.001+08:00</published><updated>2009-10-28T17:53:27.269+08:00</updated><title type='text'>gearman php problem on jaunty</title><summary type="text">Get this error on my ubuntu jaunty, works perfectly on hardy. I don&#39;t have the solution (hope expert out there post solution in comment)
helmi@gandalf:/tmp&gt; php reverse_client.php 
Sending job
ALERT - canary mismatch on efree() - heap overflow detected (attacker &#39;REMOTE_ADDR not set&#39;, file &#39;/tmp/reverse_client.php&#39;, line 10)

How I install:
helmi@gandalf:~/Packages/php&gt; sudo pecl install </summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/3638223304524615294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/3638223304524615294' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/3638223304524615294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/3638223304524615294'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/10/gearman-php-problem-on-jaunty.html' title='gearman php problem on jaunty'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-4857237829275606446</id><published>2009-10-16T21:41:00.000+08:00</published><updated>2009-10-16T21:41:02.412+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><title type='text'>Fix IE6 png transparency</title><summary type="text">Don&#39;t know who use IE6 these days (already 2009 lah), but one of my friend need to fix his website. So here the css (modified from a google result)

&amp;lt;!--[if lt IE 7]&amp;gt;
&amp;lt;style&amp;gt;
img {
  position: relative;
  behavior: expression((this.runtimeStyle.behavior=&quot;none&quot;)&amp;amp;&amp;amp;(this.pngSet?this.pngSet=true:(this.nodeName == &quot;IMG&quot; &amp;amp;&amp;amp; this.src.toLowerCase().indexOf(&#39;.png&#39;)&amp;gt;-1?(</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/4857237829275606446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/4857237829275606446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/4857237829275606446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/4857237829275606446'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/10/fix-ie6-png-transparency.html' title='Fix IE6 png transparency'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-5843372902556631527</id><published>2009-10-09T11:10:00.002+08:00</published><updated>2009-10-09T11:24:20.190+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Inconsistent PHP - I&#39;m sick of it</title><summary type="text">PHP is inconsistent, sick of it. $needle or $haystack? Which one first? List of php function that inconsistent needle/haystackhelmi@gandalf:/usr/share/doc/php-doc/html&gt; grep -l needle *| grep ^function | sed &#39;s/^function.//&#39;| sed &#39;s/.html$//&#39;| sed &#39;s/-/_/&#39;</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/5843372902556631527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/5843372902556631527' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/5843372902556631527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/5843372902556631527'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/10/inconsistent-php-im-sick-of-it.html' title='Inconsistent PHP - I&#39;m sick of it'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-416476545759723837</id><published>2009-10-02T20:53:00.005+08:00</published><updated>2009-10-08T07:53:26.294+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gis"/><category scheme="http://www.blogger.com/atom/ns#" term="openstreetmap"/><title type='text'>OpenStreetMap data for Malaysia = impressive progress!</title><summary type="text">Version 17 Apr 09Version 24 Sept 09OpenStreetMap data for Malaysia = impressive progress!Quite a lot of new road added at Kuala Lumpur for 5 months work.Map above viewed using udig.Google Map Maker is available for Malaysia, but don&#39;t think it easy for offline usage/internal use (hint:shapefile).</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/416476545759723837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/416476545759723837' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/416476545759723837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/416476545759723837'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/10/openstreetmap-data-for-malaysia.html' title='OpenStreetMap data for Malaysia = impressive progress!'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIPS_JDkxFAiFb61heqSY-Vuhy52sKWDINYkYRh5pVjwNAy854gVN4u3N8WOd0UWgsho1mFisEgbSlAIkn0j57cDSE6cgxiteLlnq6LR5gcf9gsfdr8gMzTl1wDPnKc80Jh8ma/s72-c/17+Apr+09.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-6952034535938231252</id><published>2009-08-28T12:21:00.003+08:00</published><updated>2009-08-28T12:36:12.852+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gis"/><category scheme="http://www.blogger.com/atom/ns#" term="postgis"/><title type='text'>Which location column more trusted?</title><summary type="text">You have database from your client with fields state, district (description of locations), and the_geom (latitude/longitude) column. Example of the db| state    | district | the_geom                                 || Selangor | Petaling | POINT(101.497838106615 3.27468487066054) |Anyone doing GIS should know that, the state, district fields is duplicate with the_geom since once we know the </summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/6952034535938231252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/6952034535938231252' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6952034535938231252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6952034535938231252'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/08/which-location-column-more-trusted.html' title='Which location column more trusted?'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-6717631254391915681</id><published>2009-06-26T00:15:00.003+08:00</published><updated>2009-06-26T00:26:29.382+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mapguide"/><category scheme="http://www.blogger.com/atom/ns#" term="mapnik"/><title type='text'>Mapnik need to know postgis column type</title><summary type="text">Mapnik need to know postgis column type to render properly. This mapnik xml for style not working for me. &amp;lt;Style name=&amp;quot;jalan_casing2&amp;quot;&amp;gt;    &amp;lt;Rule&amp;gt;      &amp;lt;Filter&amp;gt;[jenis] = &#39;lebuhraya&#39;&amp;lt;/Filter&amp;gt;      &amp;lt;MaxScaleDenominator&amp;gt;&amp;amp;maxscale_zoom7;&amp;lt;/MaxScaleDenominator&amp;gt;      &amp;lt;MinScaleDenominator&amp;gt;&amp;amp;minscale_zoom7;&amp;lt;/MinScaleDenominator&amp;gt;      &amp;lt;</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/6717631254391915681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/6717631254391915681' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6717631254391915681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/6717631254391915681'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/06/mapnik-need-to-know-postgis-column-type.html' title='Mapnik need to know postgis column type'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-3276589960851125800</id><published>2009-05-27T16:14:00.004+08:00</published><updated>2009-10-08T07:54:26.929+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mapguide"/><title type='text'>MapGuide 2.1beta</title><summary type="text">Eager to try beta version, here I log the problem I face and how I solve.Error msg:httpd.exe: Syntax error on line 127 of C:/Program Files/OSGeo/MapGuide/Web/Apache2/conf/httpd.conf: Cannot load ../Php/MgHttpHandler.dll into server: The specified procedure could not be found.Fix by move directive &#39;MgHttpHandler.dll&#39; upLoadFile ../Php/php5ts.dllLoadFile ../Php/ACE.dllLoadFile ../Php/</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/3276589960851125800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/3276589960851125800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/3276589960851125800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/3276589960851125800'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/05/mapguide-21beta.html' title='MapGuide 2.1beta'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-3424533825369033096</id><published>2009-05-26T17:29:00.001+08:00</published><updated>2009-05-26T17:30:20.556+08:00</updated><title type='text'>No nginx gzip on jaunty</title><summary type="text">https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/346010</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/3424533825369033096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/3424533825369033096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/3424533825369033096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/3424533825369033096'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/05/no-nginx-gzip-on-jaunty.html' title='No nginx gzip on jaunty'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-7620353735022153842</id><published>2009-05-13T15:39:00.003+08:00</published><updated>2009-05-13T15:46:42.782+08:00</updated><title type='text'>schema.table to &quot;schema&quot;.&quot;table&quot;</title><summary type="text">PHP&amp;lt;?php$st = &#39;schema.table&#39;;print join(&#39;.&#39;, array_map(create_function(&#39;$a&#39;, &#39;return \&#39;&quot;\&#39;.$a.\&#39;&quot;\&#39;;&#39;), explode(&#39;.&#39;, $st)));Selected 3 of 3 Lines; 11 of 11 Words; 124 of 124 BytesPythonst = &#39;schema.table&#39;print &#39;.&#39;.join(&#39;&quot;&#39;+i+&#39;&quot;&#39; for i in st.split(&#39;.&#39;))Selected 2 of 2 Lines; 9 of 9 Words; 69 of 69 BytesPython=PHP/2</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/7620353735022153842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/7620353735022153842' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/7620353735022153842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/7620353735022153842'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/05/schematable-to-schematable.html' title='schema.table to &quot;schema&quot;.&quot;table&quot;'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-9044620014708793701</id><published>2009-05-05T17:38:00.002+08:00</published><updated>2009-05-05T17:44:06.026+08:00</updated><title type='text'>Trac error - database disk image is malformed</title><summary type="text">One of my trac page got the error message &quot;database disk image is malformed&quot;&quot;underlying Trac DB is in serious trouble, may corrupted&quot; - Ticket #6347How I fix:sqlite3 trac.db .dump | sqlite3 trac2.dbcp trac.db trac.broken.dbcp trac2.db trac.db</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/9044620014708793701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/9044620014708793701' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/9044620014708793701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/9044620014708793701'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/05/trac-error-database-disk-image-is.html' title='Trac error - database disk image is malformed'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-4688262568198587566</id><published>2009-05-04T18:26:00.005+08:00</published><updated>2009-05-04T18:38:50.238+08:00</updated><title type='text'>Find files, php5 way</title><summary type="text">Find files, implemented using iterator.class RegexFilter extends FilterIterator {    protected $regex;    public function __construct(Iterator $it, $regex) {        parent::__construct($it);        $this-&gt;regex = $regex;    }    public function accept() {        return preg_match($this-&gt;regex, $this-&gt;current());    }}function find_files($path, $pattern, $include_dir=FALSE) {  $objects = new </summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/4688262568198587566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/4688262568198587566' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/4688262568198587566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/4688262568198587566'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/05/find-files-using-php5-way.html' title='Find files, php5 way'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-2036567871710757814</id><published>2009-05-04T12:03:00.003+08:00</published><updated>2009-05-04T12:09:28.679+08:00</updated><title type='text'>import data from csv into postgresql</title><summary type="text">We can use sql command, COPY. But programmer still need to create the table before copy the data. Simple python script to help#!/usr/bin/pythonfn = &#39;/home/helmi/world.csv&#39;columns = file(fn).readline()print &#39;create table world (%s text);&#39; % &quot; text,&quot;.join(columns.split(&#39;,&#39;))print &quot;copy world from &#39;%s&#39; with csv header;&quot; % fnthenpython csv2psql.py | psql mydb</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/2036567871710757814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/2036567871710757814' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/2036567871710757814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/2036567871710757814'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/05/import-data-from-csv-into-postgresql.html' title='import data from csv into postgresql'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-9165271773255825034</id><published>2009-03-06T16:14:00.008+08:00</published><updated>2009-04-01T17:14:50.235+08:00</updated><title type='text'>Validate KML</title><summary type="text">I implement dynamic KML data using PHP + Postgis for a pet project. The problem is, Google Earth don&#39;t tell you the error when our kml file have problem, such as invalid KML. It just not appear in &#39;My Places&#39; or &#39;Temporary Places&#39;. So, I keep wondering whether I open correct link, or php not working, etc.Previously how I debug is by check apache log or postgresql log. But just found the &#39;macho&#39; </summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/9165271773255825034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/9165271773255825034' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/9165271773255825034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/9165271773255825034'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2009/03/validate-kml.html' title='Validate KML'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-1401976218506415730</id><published>2008-11-29T23:50:00.002+08:00</published><updated>2008-11-30T00:03:20.104+08:00</updated><title type='text'>Vim smart syntax highlighting</title><summary type="text">Smart because it syntax highlighting sql in php heredoc. gedit and nano don&#39;t support this. I don&#39;t know about other editor.I used font size 16 all the time, big font eh ;-)</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/1401976218506415730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/1401976218506415730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/1401976218506415730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/1401976218506415730'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2008/11/vim-smart-syntax-highlighting.html' title='Vim smart syntax highlighting'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNg2XjDhH0YB7aAXCSpCchAMKlAwfx4a5Nn8rlJ-pf-lrtN_WWk3cSIZeRgTaNcJ6vNKfbiYB_oYjGKKG2eUNtZM_CPFmReOrPtRAmmw0HuadIwwdnEbm4w8a6VU0iv3sZ1ECe/s72-c/vim+smart+syntax+highlighting.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-2854213708835832363</id><published>2008-11-24T01:08:00.005+08:00</published><updated>2008-11-24T13:40:01.946+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Disable scrollkeeper on Ubuntu</title><summary type="text">&quot;proses ini hampir memakan 90% cpu dan memory, dan seringkali menyebabkan sistem menjadi hang&quot; -- happen to me today and not at right time.To disable:sudo mv /usr/bin/scrollkeeper-update /usr/bin/scrollkeeper-update.realsudo ln -s /bin/true /usr/bin/scrollkeeper-updatesudo find /var/lib/scrollkeeper/ -name \*.xml -type f -exec rm -f &#39;{}&#39; \;sudo dpkg-divert --local --divert /usr/bin/</summary><link rel='enclosure' type='text/html' href='http://mapopa.blogspot.com/2008/09/disable-scrollkeeper-on-ubuntu-is-good.html' length='0'/><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/2854213708835832363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/2854213708835832363' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/2854213708835832363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/2854213708835832363'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2008/11/disable-scrollkeeper-on-ubuntu.html' title='Disable scrollkeeper on Ubuntu'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-8578497632944099929</id><published>2008-10-31T09:41:00.002+08:00</published><updated>2008-10-31T10:09:42.223+08:00</updated><title type='text'>Google Maps driving direction to Machang, Malaysia</title><summary type="text">Google Maps driving direction back again as today, 31 Oct 2008. It not official, I guessed (since not mentioned in Google LatLong). So, I give it a try from Kuala Lumpur to MachangFrom MiscThe routing is accurate and fast (compared to Garmin Que+malsingmaps which lead me to Ipoh instead of Gua Musang before reach Machang). But the direction is not detail enough, see the instruction no 24 in </summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/8578497632944099929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/8578497632944099929' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/8578497632944099929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/8578497632944099929'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2008/10/google-maps-driving-direction-to.html' title='Google Maps driving direction to Machang, Malaysia'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvbmmNssz3OPNRem5TrEIQlzYtCCKSweyKcn3GlVdqjIMfLo_wcTNxFnheiPAbtlWj9lEcQnl8FpXgGtW0KrEriHImy7kRwi0Z-mFZIkXDiWqfk4HW3bK89pqJwAwWH6v9ppko/s72-c/Kuala%20Lumpur%20to%20Machang.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11006378.post-4934201385115449260</id><published>2008-10-16T04:21:00.002+08:00</published><updated>2008-10-16T04:27:19.751+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>1.0 is greater than 0.9.x [ies4linux]</title><summary type="text">helmi@gandalf:~/Packages/ubuntu/ies4linux-2.99.0.1$ ./ies4linux IEs4Linux 2 is developed to be used with recent Wine versions (0.9.x). It seems that you are using an old version. It&#39;s recommended that you update your wine to the latest version (Go to: winehq.com).and whenhelmi@gandalf:~/Packages/ubuntu/ies4linux-2.99.0.1$ wine --versionwine-1.0what?? I&#39;t wrong warning dude. 1.0 &amp;gt; 0.9.x</summary><link rel='replies' type='application/atom+xml' href='http://helmi-blebe.blogspot.com/feeds/4934201385115449260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/11006378/4934201385115449260' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/4934201385115449260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11006378/posts/default/4934201385115449260'/><link rel='alternate' type='text/html' href='http://helmi-blebe.blogspot.com/2008/10/10-is-greater-than-09x-ies4linux.html' title='1.0 is greater than 0.9.x [ies4linux]'/><author><name>Foobaz</name><uri>http://www.blogger.com/profile/13447190038974406237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>