You are here

leelight's blog

Test Push service with MDS and BlackBerry Widgets

 You will find the both push demo and the blackberry widgets demo soure here:
http://docs.blackberry.com/en/developers/deliverables/10605/Push_install_sample_app_server-side_882946_11.jsp

I have done everything following the tuturial step by step, but when i tried to send push data using the push demo, i always get the "400 Response error' from local MDS server.
Logs:  400 PushServlet: FAILED -#06 The specified delivery method is not possible

(T)Android - Driving Direction (Route Path)

The DrivingDirection package (com.google.googlenav.DrivingDirection) is
removed since Android SDK 1.1. However, in this article, you will leanr
how to adopt driving direction function in
MapView object without the DrivingDirection package.

Read more: http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html#ixzz0rfsIHaO2

 

Get boundary coodinate from Google static map

We can use the following url to create one static google map image:
"http://maps.google.com/staticmap?center=" + lat + "," + lng + "&format="
+ format + "&zoom=" + zoom + "&size=" + width + "x" + height + "&key=" + apiKey;

How could know the boundary coordinate information of this image?
What we know:
1. center latitude/longitude point where map centered on
2. map image's total pixel width/height
3. map zoom level.

Some Andorid WMS clients

1. gvSIG Mini is a free viewer of many On/Offline Maps:
- OpenStreetMap
- Yahoo
- Microsoft Bing
- Google Maps
- PNOA (ES)
- Ordnance Survey (UK)
- Yandex (RU)
- etc

It also has interesting features, such as:
- WMS & WMS-C Client
- Route calculation
- Address/POI search
- Share location (twitter, SMS, e-mail, facebook, ...)
- GPS, cell & WiFi location
- WVGA
- Navigation mode
- Compass support
- Street View integration
- Layer configuration downloader
- QuickZoom: SlideBar or DoubleTap
- Android 2.1 support (now from 1.5 up to 2.1)

Turn Apache or Tomcat server to reverse proxy server

I. For Apache server

Iit is easy:

To use the apache proxy directives you need to have
the following modules loaded:

Blog: 

[WARN] Unknown module requested 'missingplugin'; all active GWT modules must be specified in the command line arguments

After i got some problem by debugging with GWT 2.0, I downgraded from 2 to 1.7, but I got this error when running "Web Application":
[WARN] Unknown module requested 'missingplugin'; all active GWT modules must be specified in the command line arguments

I did this, and solve the problem:
1. Internet Explorer | Tools | Internet Options | Delete Cookies
2. Internet Explorer | Tools | Internet Options | Delete Files
3. Internet Explorer | Tools | Internet Options | Clear History

In GWT debug browser windows will ask you about the Gear if you are using Google Gear.

Ref:

Blog: 

Hibernate Exception: org.hibernate.HibernateException: unknown Oracle major version [0]

I transferred one project with Hibernate 3 to Hibernate 3.2, when i run it i got such Exception:

Caused by: org.hibernate.HibernateException: unknown Oracle major version [0]
........

Solution:
I was using the old Oracle classes12.jar driver lib, this could to be an issue for Hibernate 3.2 where OracleDriver.getMajorVersion returns 0, this in turn confuses hibernate.
Upgrade classes12.jar to ojdbc14.jar fixed the problem.

Refer:
https://forum.hibernate.org/viewtopic.php?p=2373597

Determining whether or not a polygon (2D) has its vertices ordered clockwise or counterclockwise(T)

Org link: http://debian.fmi.uni-sofia.bg/~sergei/cgsr/docs/clockwise.htm

 


Determining whether or not a polygon (2D) has its
vertices ordered clockwise or counterclockwise
Written by Paul Bourke
March 1998

Mobile Developer's Guide to the Galaxy- from J2mePolish site

News from J2mepolish site:

Mobile Developer's Guide- first edition out now


Pages

Subscribe to RSS - leelight's blog