2013年9月17日 星期二

what define means in javascript

http://requirejs.org/docs/api.html#define

2013年8月5日 星期一

zend doctrine entity generate get set

http://support.orm-designer.com/474/export-to-orm-doctrine2-auto-generates-getters-and-setters

orm:generate-entities --update-entities="true" --generate-methods="true" [path to your entities].

notice: your php entity namespace setting .... if you use zend studio to new class, change entity namespcae to Application\Entity.....or you have other ideas

2013年7月14日 星期日

cordova ant編jar 檔fail

下載了cordova的project試著要編出cordova.jar

卻發生失敗,查了資料發現是ant工具太新,下載ant 1.8.3後則可正常

2013年5月12日 星期日

ndk APP_STL := stlport_static

新增一application.mk
將需要參數APP_STL := stlport_static   ......

等加入便可 include vector

2013年5月8日 星期三

javap 得到Type Signatures

http://rxwen.blogspot.tw/2010/12/tools-for-working-with-android-jni.html

到project的目錄下command:
 javap -classpath bin/classes -s -p com.rmd.jni.MainActivity

得到signature.....

2013年4月19日 星期五

chrome 開發人員工作字體大小

版本 26.0.1410.64 m

按ctrl +  放大

2013年4月8日 星期一

jq cross domain

jquery:

$.ajax({ type: "GET", url: "http://localhost:8000/aa.php",
  data: {name: 'Chad'},
 dataType: 'jsonp', 
 jsonp: 'jsonp_callback',
success: function(json) { var tt = json; alert(tt); $("#result").html('submitted successfully'); },
 error: function(json) { alert("failure"); $("#result").html('there is error while submit'); } });


/
$jsonp = false;
if ( isset( $_GET[ 'jsonp_callback' ] ) ) {
    $_GET[ 'jsonp_callback' ] = strip_tags( $_GET[ 'jsonp_callback' ] );
    $jsonp              = true;

    $pre  = $_GET[ 'name' ] . '(';
    $post = ');';
} //isset( $_GET[ 'callback' ] )

/* Encode JSON, and if jsonp is true, then ouput with the callback
 ** function; if not - just output JSON. */

$json = json_encode($_GET[ 'name' ]);

//print( ( $jsonp ) ? $pre . $json . $post : $json );
//print($_GET[ 'jsonp_callback' ].'('.$json.')');
echo $jsonp_callback,$_GET['jsonp_callback'] . "(" . $json . ")";
?>

2013年3月6日 星期三

osmdroid

offline review: using mobileatlascreator---using mapkin produce zip,putting in the sdcard/osmdroid/

limit zoom level: overwrite mapview