Posts

Showing posts from 2013

Nice Online App Maker : Appmaker from Mozilla Labs

Image
Simple and fun:  https://appmaker.mozillalabs.com/

Android: Stop or quit the search UI

To quit the search UI in android: ((SearchManager)this.getSystemService(Context.SEARCH_SERVICE)).stopSearch();

Android app: Find your phone via SMS

Image
Beep My Phone is a useful Android app where you can send a SMS message to your phone, and the phone will play the notification sound no matter you had muted your phone or not. Check it out via: https://play.google.com/store/apps/details?id=com.mk2.beepmyphone

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>       ...

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

Desktop automation software

AutoHotkey, a nice one. http://www.autohotkey.com/

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

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"

Android App: Brightness Shortcut

Image
A useful app for android user to switch their screen brightness through shortcuts.        The most cool thing is that you can have shortcuts "Previous Brightness" and "Next Brightness", which allows you to switch the brightness with gestures (linked to shortcuts) in launchers. Click here to visit the app page in Google Play! Free version also available!

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 Ref: http://ithelp.ithome.com.tw/question/10028377

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 ?!

Avoid Android drawable resource to be scaled automatically

You know, you can have drawable images in Android (e.g. /res/drawable), you normally have it rescaled automatically according to your device dpi (e.g. ldpi, mdpi, hdpi, etc). If you just don't want Android to scale it for, put your graphic files in /res/drawable-nodpi. Reference:  http://blog.pseudoblue.com/2010/11/15/disable-pre-scaling-of-android-image-resources/

Customize your ACTION_CHOOSER Intent

For an Android Intent chooser, it is possible to either remove an Intent or add an custom Intent, this is how we do it: List < Intent > targetedShareIntents = new ArrayList < Intent >(); Intent intent = new Intent ( Intent.ACTION_SEND ); intent.setType( "text/plain" ); intent.putExtra( Intent.EXTRA_TEXT , "http://www.blogspot.com" ); List < ResolveInfo > resInfo = t his .getPackageManager().queryIntentActivities(intent, 0); for ( ResolveInfo resolveInfo : resInfo) {     String packageName = resolveInfo.activityInfo.packageName;     Intent targetedShareIntent = new Intent ( android.content.Intent.ACTION_SEND );    targetedShareIntent.setType( "text/plain" );    targetedShareIntent.putExtra( Intent.EXTRA_TEXT , "http://www.blogspot.com" );    targetedShareIntent.setPackage(packageName);     if (!packageName.equals( "com.facebook.katana" )) { // Remove Facebook Intent share   ...

[Windows] System Update Readiness Tool

To avoid Windows crash during system update, consider using the System Update Readiness Tool before doing the actual update, more information at:     http://windows.microsoft.com/en-US/windows7/What-is-the-System-Update-Readiness-Tool

Adjusting the screen resolution of BlueStack

The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Width