Thursday, March 20, 2014

Android ListView Animations

Just found a library ListViewAnimations which delivers nice animations for list items in Android.

To start an animation programatically, we may consider something like:
v.clearAnimation();
Animation animation = AnimationUtils.loadAnimation(getActivity(), R.anim.slide_top_to_bottom);
v.startAnimation(animation);

Monday, March 17, 2014

Using Google Map API to access Google Earth Enterprise

Nice references for showing Google Earth Enterprise maps using the Map API:
The major thing is that we will use GFusionMap object instead of google.maps.Map object in the JavasScript. So that we can specify the GEE server definitions when we create the map object.

Monday, March 3, 2014

ArcGIS Server Cached Map Expiry Time

The tiled cached map expire time can be controlled by a variable "cacheControlMaxAge" in ArcGIS Server Administrator Directory, available starting at ArcGIS for Server (Window) 10.2.

Ref: http://resources.arcgis.com/en/help/main/10.2/index.html#//015400000577000000

The default HTTP header "max-age" is 86400 (i.e. 24 hours), which seems cannot be changed in ArcGIS Server 10.0.

For Android SDK 10.2, the map caching activities only works on the particular session. That means when the user quit the app and start it again. The previous cache will not be used.

Saturday, February 22, 2014

OpenOffice keeps showing the restoring window in OSX


If your OpenOffice just keeps showing the restoring window / reopen document window in OSX:




Simply remove all the contents in the following directory:

/Users/<user name>/Library/Saved Application State/org.openoffice.script.savedState

Horrible implementation...

Wednesday, February 19, 2014

Check httpd.conf syntax

Simply run the following command:

httpd -t

It will shows "Syntax OK" if your httpd.conf works.

Tuesday, November 5, 2013

Customize the 404 page for ArcGIS Server Map Services

ArcGIS Server 10 internal Tomcat web root:
       \ArcGIS\Server10.0\java\manager\web_output

ArcGIS Server 10 internal Tomcat conf:
       \ArcGIS\Server10.0\java\manager\service\managerappserver\conf

You may modify the web.xml by adding the error page definition:

        ...

        <welcome-file-list>
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>

        <error-page>
            <error-code>404</error-code>
            <location>/404.htm</location>
        </error-page>

    </web-app>

And the 404 error file can put in the root (/web_output)


Thursday, October 31, 2013

Monday, September 9, 2013

Cases for Eclipse not started correctly

  1. !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

    Solution: Try to remove the file "workspace\.metadata\.plugins\org.eclipse.core.resources\.snap"
  2. Sometimes the eclipse hangs in the splash screen.

    Solution: Try to remove the file "workspace\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi"

Upgrade nodejs in conda (from v18 to v26)

If your conda env is nodejs v18, doing a conda install nodejs=26 is likely to create a lot of conflict. Consider remove those conflicting p...