Wednesday, May 22, 2013

Executing PowerShell script

  1. Check your execution policy:
    PS> Get-ExecutionPolicy
  2. The execution policy is "Restricted" by default
  3. Change it to "Unrestricted"
    PS> Set-ExecutionPolicy Unrestricted
  4. Then you can run your script
    e.g. PS> .\scriptfile.ps1
Ref: http://ithelp.ithome.com.tw/question/10028377

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

Sync multiple git repo at once

Use the following command in Linux will do the job:  ls -d RepoNames* | xargs -I{} git -C {} pull