`
文章列表
If you want to use an usb stick to install ubuntu server and you use windows, the fastest way is to    use universial usb installer (the latest version) to create a usb installer.     
     It looks like python community doesn't intend to "fix" this problem due to it is probably not a bug.   a quick work around is    open /distutils/msvc9compiler.py   find def manifest_setup_ldargs(self, output_filename, build_temp, ld_args)   add   ld_args.append('/MANIFEST') ...
well it has nothing to do with dojo but I don't bother to create another tag, so I keep using it.   when dealing with setting css properties on the fly we may come across some names with hyphens like   z-index, background-color and etc.   unfortunately, when trying to set a new value by domsty ...

customized event

    博客分类:
  • dojo
make sure the type of event is lower case otherwise it won't work.    
<div>     <object data="gwcs.pdf" type="application/pdf" width="500" height="500">         alt : <a href="gwcs.pdf">gwcs.pdf</a>     </object> </div>

fadeTo in dojo

    博客分类:
  • dojo
Jquery has a method called fadeTo can do animation for opacity change. equivalent version of dojo is   require(["dojo/_base/fx"],function(BaseFx) {    BaseFx.anim("divId", {opacity: your desired value}, xxx milliseconds);  });
when dojo version >= 1.7   make sure async: true is in you dojoConfig, otherwise, it may incur some very weird problems which wasted me two hours to figure out.    
 when creating checkbox on fly like   var cb = new CheckBox({});   you may find there is no label, the default checkbox is based on <input checkbox> so you need to add label manually. Based on my test today, direct appending label to check box doesn't work for me. Finally I had to add it s ...
well it's actually not a vertical layout but a work around.  I spent a few hours on internet for how to place some widgets in contentpane with vertical layout. (the default layout is horizontal). and I failed. I noticed there  were some persons did ask a similar question. One among them just said he ...

some notes about git

    博客分类:
  • git
first step:   git config --global user.name "John Doe" git config --global user.email johndoe@example.com   to add user name & email   then git config --list to check.   git help config to seek help.   You can get a Git project using two main approaches. The first takes an ...
when dealing with toolbar events like onDrawEnd with latest dojo version (1.9 herein)   the dojo/on or dojo/_base/connect is unable to work with it. We can use dojo/aspect instead.   require(['dojo/aspect',...], function(Aspect, ...) {  Aspect.after(toolbar, "onDrawEnd", function(geom ...
default method is GET, need POST.     <script>     require(["dojo/on","dojo/dom", "dojo/request/xhr", "dojo/json", "dojo/domReady!"],             function(On, Dom, Xhr, Json) {                 try {                     Xhr("/dojorp ...
when dojo 1.7 and AMD style is adopted, examples on arcgis website may not work directly. this post mark some changes   1: dojo.connect  --> dojo/on events name might be changed from "onXXX" to "xxx"    for example: map onLoad event is changed to load , now we use   on( ...
keytool -list -v -keystore xx.keystore   keytool -list -v -keystore xx\.android\debug.keystore    
It is a work around:   find /numpy/core/__init__.py, and omit 'del sys' which locates at the bottom of this file.   numpy 1.6.2 doesn't need 'del sys'.   update: use cx_freeze 4.3.2. this problem has been fixed.
Global site tag (gtag.js) - Google Analytics