Monday, June 22nd, 2009 | Author: number.0

It’s just so simple, but maybe you don’t know, so did I before. So here is how to remove the gadget that you don’t need anymore

1. Go to My Documents\My Google Gadgets

2. Select the Gadget that you want to remove and delete it

3. It’s just simple, and you are done :)

There should be a better Gadget manager in Google Desktop, do you think so ?

Share/Save/Bookmark

Tuesday, May 19th, 2009 | Author: number.0

When trying to install Silverlight 2 Tools for Visual Studio 2008 SP1 I got a Fatal Error

(C:\Users\user\AppData\Local\Temp\Silverlight Tools RTW\Silverlight.2.0_Developer.exe) failed with 0×80070643 - Fatal error during installation. .

 

After sometimes, i managed to get it working after uninstalling the Silverlight RTM for that I forgot to remove before installing Silverlight 2 Tools for VS2008, so hopefully this might help other also

Share/Save/Bookmark

Friday, April 10th, 2009 | Author: number.0

While trying to get Mapnik WMS server work on Debian Lenny, I found out that there were some errors with the lxml installation, before doing

easy_install lxml

be sure that you have libxml2 and libxslt-dev installed

apt-get install libxml2 libxml2-dev

apt-get install libxslt-dev

Share/Save/Bookmark

Monday, April 06th, 2009 | Author: number.0

Follow these steps to start importing ESRI Shapefiles into Postgis database

1. Generate SQL from the shapefile using shp2pgsql

shp2pgsql -W UTF-8 <file_name.shp> <schema>.<table_name> > <filename.sql>

ex:

shp2pgsql –W UTF-8 world.shp public.world > world.sql

2. Open the generated sql file, append “WITH OIDS” before “;” of the CREATE TABLE statement

3. Now import the sql file into Postgis, using psql command

psql -h <host_name> -U <user_name> -d <db_name> -f <file_name.sql>

ex:

psql -h 127.0.0.1 -U postgres -d world -f world.sql

4.Use Query tool available in PgAdmin3

CREATE INDEX <index_name> ON <table_name> USING gist (<spatial_attribute>);
VACUUM ANALYZE <table_name>

ex:

CREATE INDEX world_the_geom_gist ON world USING gist (the_geom);
VACUUM ANALYZE world

Share/Save/Bookmark

Thursday, April 02nd, 2009 | Author: number.0

Just found out a nice sliding boxes and captions Jquery plugin which fits perfectly for my new website projects, why don’t you have a sliding-boxlook at this link and see yourself

Share/Save/Bookmark

Tuesday, March 31st, 2009 | Author: number.0

Try to access the security page of XAMPP (http://localhost/security/) and if you get an Access Forbidden Error then here is a simple solution to get rid of the error message

+ Go to xampp\apache\conf\extra

+ Edit httpd-xampp.conf

+ Change the line

Allow from localhost

to

Allow from 127.0.0.1

+ Save & restart XAMPP server

+ Try http://localhost/security/ again and good luck

Share/Save/Bookmark

Category: application, programming  | Tags: , ,  | 2 Comments
Saturday, November 29th, 2008 | Author: number.0

You might need to do this sometimes, tt’s as simple as this:

On Linux:

rm -rf `find . -name .svn`

On Windows

Create a .bat file (some name like: delete_svn.bat) at the root of the directory from where u want to delete all .svn subfolders

for /f “tokens=* delims=” %%i in (’dir /s /b /a:d *svn’) do (
rd /s /q “%%i”
)

Share/Save/Bookmark

Category: linux  | Tags: , ,  | One Comment
Tuesday, November 04th, 2008 | Author: number.0

I decided to try Google App Engine for a personal project, that pulls yahoo weather at a regular time interval, but as I dived into Google App Engine then this simple thing can not be done in cron jobs, so I started to think about the solution, here is what I came up with, just the idea:

- Create a Cronjob class to handle the cronjob: this class will do the all the tasks that need to be done regularly
- Use javascript at client side to refresh the Cronjob page at a regular time interval.

I think the idea is simple, it does solve the problem but require you to have the page opened all the time. Some of you may have better idea?

Share/Save/Bookmark

Saturday, November 01st, 2008 | Author: number.0

I’m quite new to Django, Pinax and mod_wsgi, so today i decided to try on Pinax with a Slackware 12.1 development box. Everytime I forget after doing something, so better to note it down here, easier for me to remind it later, official Pinax 0.5 has been out for few days, and it’s a good time to try it to see how it can replace my current home-made PHP CMS. I’m not very used to Django, so another chance to play with it, my experience with Python framework only stop at Skunkweb & Quixote.

more…

Share/Save/Bookmark

Monday, October 27th, 2008 | Author: number.0

Okay, here is a quick way to get everything recursively downloaded using wget

$wget -rkp -np <url here>

Share/Save/Bookmark

Category: linux  | Tags: , ,  | One Comment