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.
Sunday, March 2, 2014
Friday, February 21, 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...
Tuesday, February 18, 2014
Check httpd.conf syntax
Simply run the following command:
httpd -t
It will shows "Syntax OK" if your httpd.conf works.
Monday, November 4, 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
\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)
Friday, November 1, 2013
References for setting up app routing in IIS 7
Application Request Routing in IIS
- http://learn.iis.net/page.aspx/482/install-application-request-routing/
- http://blogs.iis.net/wonyoo/archive/2011/04/20/how-to-install-application-request-routing-arr-2-5-without-web-platform-installer-webpi.aspx
- http://blogs.iis.net/wonyoo/archive/2011/03/29/why-is-application-request-routing-version-2-5-available-only-via-web-platform-installer.aspx
Thursday, October 31, 2013
Wednesday, October 30, 2013
Remove the "Zoom to" link in Callout of ArcGIS Javascript API
We can add the following style to hide the "Zoom to" link:
.action.zoomTo {
display: none;
}
Ref:
http://forums.arcgis.com/threads/89318-Remove-quot-Zoom-to-quot-link
.action.zoomTo {
display: none;
}
Ref:
http://forums.arcgis.com/threads/89318-Remove-quot-Zoom-to-quot-link
Sunday, September 8, 2013
Cases for Eclipse not started correctly
- !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" - Sometimes the eclipse hangs in the splash screen.
Solution: Try to remove the file "workspace\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi"
Wednesday, May 22, 2013
Executing PowerShell script
- Check your execution policy:
PS> Get-ExecutionPolicy - The execution policy is "Restricted" by default
- Change it to "Unrestricted"
PS> Set-ExecutionPolicy Unrestricted - Then you can run your script
e.g. PS> .\scriptfile.ps1
Thursday, May 2, 2013
ESRI ArcGIS JS API version 3.4 hiding the Dojo Dnd style "dojoDndAvatar"
For ArcGIS JS API v3.4, if you include "esri.css" in your project, then your Dojo Dnd Avatar (the floating hints while you're doing drag and drop) will be disappeared.
Why? Because in "esri.css", esri.css got the following style:
.dojoDndAvatar {display: none;}
God... What the hell ESRI guys are doing ?!
Why? Because in "esri.css", esri.css got the following style:
.dojoDndAvatar {display: none;}
God... What the hell ESRI guys are doing ?!
Subscribe to:
Posts (Atom)
CSP on Apache
To add CSP to root if sort of funny. The following will NOT work for most cases !! <LocationMatch "^/$"> Header s...
-
When Office2003 couldn't find file SKU011.CAB: regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -...
-
The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and ...
-
Suppose you got a file in Big5 containing some HKSCS characters (e.g. 深水埗, 赤鱲角, etc). When your environment (Ref: Charset.defaultCharset( ) ...
