leelight's blog

Touch J2ME Polish--3. Debug and Build with Ant

At first you should pay attenion to the source folder, if you have converted one existing project to Polish project. Polish's default source directoty is source/src, and default resource directory is resources. Please go to the project's properties and change the Java Build Path setting like this. Otherwise you can not build it successfully.

Now you can debug or build the project with Ant.

GIS Developing Follow Me with PHP--How to input CSV file with WKT into MySQL

If you have one CSV file that containing the WKT format SQL spatial data, how to input the data into MySQL?
For testing, at first create a table containing spatial colomn:

CREATE TABLE `geometry` (
`id` int( 11 ),
`geom` GEOMETRY ,
PRIMARY KEY ( `id` )
) TYPE = MYISAM;

In MySQL's operation software, Admin or PHPMyAdmin, you could run such SQL code to input the data:

"INSERT INTO geometry (id, geom) VALUES ('1', GeomFromText('LINESTRING(1283074 10562093,1283074 10562093,1283074 10562093)'));

svg2svgtconverter, one small interesting tool for converting SVG to SVGT

Yesterday I downloaded the Nokia S60 Platform SDKs for Symbian OS( for Java), from Nokia offical website. The version is 3rd edition, the newest SDK for developping J2ME. After the installation, I found one directory named S60Tools in the toolkit and there is one install file inside.
That is svg2svgtconverter.exe, you can easily know what kind of this software is from its name. Of course I installed it for testing,  only 1.85 Mb.

Touch J2ME Polish--2. Create Projects or Convert Existing Projects

After the installation of Polish, we can create Polish Project NOW~~

Create New J2ME Projects


1. Open File->New->Project, find the J2ME Plish Project in Java directory. (Why not in J2ME directory?) A funny chelonian, lol



2. Enter a project name, and click Generate Template if you like, it will create a MIDlet template in a package you named.

Error retrieving feature.xml in Eclipse--Using Software Updates and then Find and install

If you are using Eclispe, maybe you will meet such error after you have installed a Eclipse plugin:
Error retrieving "feature.xml". [error in opening zip file]
When you open Help->Software Updates->Find and install to install a new plugin, this error will cause that you can not install the new one. What is the problem?
Do you remember how did you install the last Eclipse plugin? I guess you download the package and unzip or just put it into Eclipse's directory, without using the Software Updates tool in Help menu in Eclipse.

Touch J2ME Polish--1. Installation

It is not required to introduce the famous J2ME Polish, the open source tools for creating "polished" wireless Java applications. J2ME Polish is best known for its ability to build and the  user interface, but  its inviting point is more than this. If you are a J2ME developper, I can bet that have found the reality is not like what sun has said:"Write once, run anywhere", but "Write once, debug anywhere", and you have tried of and hated to debug your applications on so many different devices, even they have only a little bit differences, you must modify hundreds of code. You can try J2ME Polish, maybe it can help you to solve those boring problems.

70 Popular Ajax Applications' Demo and Source Code

  1. Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell
  2. AJAX - microlink pattern tutorial : A microlink is a link that opens up content below it.
  3. Ajax BBC News RSS Reader : demo by Nigel Crawley
  4. AJAX Chat in Python with Dojo : at AquaAjax
  5. Ajax Chess : multiplayer chess

OpenLayers, put map anywhere

Putting a map in your web page is easy with OpenLayers. 8 lines of html codes, you will have a map viewer in your blog, forum or web site.
<iframe
src="http://openlayers.org/viewer/"
width="300" height="200"
scrolling="no"
marginwidth="0" marginheight="0"
frameborder="0">
</iframe>
Just like this, Hi, this is NOT a static image, it is a map viewer, try to click the explore tools to move and zoom in,out. Cool?

GIS Developing Follow Me with PHP-- Use Cache to Speed up your Web Map Server or other WebServers

Are you managing or taking care of a Web Map Server, Web Feature Server or other Web Servers? Have you been puzzled by the high traffic and insufferable speed of your server? Have your custumers always complained that  they must wait  one one year to get the map when they sent their queries to the server?
The following solutions could help you to sovle your problems.
1. Client Cache: Sets the expired time of pages in browser in the client side
2. GZIP: Uses gzip when transfering the data to accelerate

GIS Developing Follow Me with PHP--Load GeoAttribute from DBF dBase format

1. What is DBF dBase Format?

dBASE was the first widely used database management system or DBMS for microcomputers, published by Ashton-Tate for CP/M, and later on the Apple II, Apple Macintosh, UNIX [1], VMS [2], and IBM PC under DOS where it became one of the best-selling software titles for a number of years. dBASE was never able to transition successfully to Microsoft Windows and was eventually displaced by newer products like Paradox, Clipper, FoxPro, and Microsoft Access. dBASE was sold to Borland in 1991, which sold the rights to the product line in 1999 to the newly-formed dBASE Inc.

Syndicate content