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

2012年10月31日 星期三

dropbox api modified

SimpleDateFormat("EEE, dd MMM yyyy kk:mm:ss ZZZZZ")


11-01 10:26:41.981: W/System.err(11396): java.text.ParseException: Unparseable date: "Wed, 31 Oct 2012 08:22:17 +0000" (at offset 0)

加上locale

2012年6月20日 星期三

android app:stick service

youtube demonstration:
http://www.youtube.com/watch?v=NXpapHwczCE
Stick service is a tool you can save copy text and always be shown at every application. If you click the square of text, then you press paste you got the text you want.
After installation, press start button to open the service. If you want it to be minimized after choosing the text square, you can have the box checked. If you start the service, you will see a rectangle with ">" in the left middle of the screen. If you copy a number of text, it will be shown in the square and you can choose it to your copy data.
When using,you can drag it by long press on the blue area.
Function:
1.Copy text not in a row, and click the square to get the paragraph we want.
2.It is more convenient for us to write sms or e-mail, if we want to share some information with others.
3. It helps a lot if we want to sort out data we research through the Internet.
Here is the download link:
https://play.google.com/store/apps/details?id=ser.dom&hl=en

2012年2月6日 星期一

將有單引號的字存入sqldatabase

先將單引號取代為二個單引號再存

2012年1月2日 星期一

2011年11月29日 星期二

android 程式使用post或get傳送至server

1.manifest.xml增加internet permission
  • 使用get方法:
String url="http://www.google.com/guestbook.jsp"?name=ox&id=100;
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(url);

  • 使用post方法
String url="http://www.google.com/guestbook.jsp";
HttpClient client = new DefaultHttpClient();
HttpPost request = new HttpPost(url);
List pair=new ArrayList();
pair.add(new BasicNameValuePair("name","ox"));
pair.add(new BasicNameValuePair("id","100"));
try
{
request.setEntity(new UrlEncodedFormEntity(pair));
} catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); }

2011年8月28日 星期日

Android app -словарь для многоязычных:"myabc","myabc for tablet"



Это приложение для изучения английских слов.Что он может сделать:
1.автономно словарь(На английском языке, чтобы некоторыми видами языке)
2.предложение лексику запросов истории вы можете просмотреть лексику, пока вы действительно знакомы с ней.
3.Вы можете искать слова из своего словаря истории, она помогает, если вы помните только часть слова




4.Если вы выбрали один из многоязычного словаря пакета и хотите изменить язык, не проблема, вы можете загрузитьдругой языковой пакет на рынке и выполнить его, чтобы установить его.

5.Если вы уже вспомнили слова, вы можете убрать некоторые из запросов истории или все из них.

6. Виджет предлагают "myabc for tablet" Виджет позволяет более легко просматривать словарь

внимание:Виджетов предоставляется только для планшета, так что только "myabc за таблетку" имеет эту функцию.

приложение демонстрация:



2011年8月24日 星期三

安卓程式多國語言字典Android app dictionary for multi-language: "myabc","myabc for tablet"


此為一幫助學習英文字彙之安卓程式,以下為其功能:
This is a application for learning English words. What's it can do:

1.離線字典(英翻某種語言,以android market上提供的為主)
2.提供生字列表-讓你可以重覆溫習生字直到您熟悉為止
3.你可以在生字列表中使用搜尋功能,當你只記得單字的前幾個字母時,仍可找到單字

1.Off-line dictionary (English to some kinds of language)

2.Offering vocabulary-you can review vocabulary until you're really familiar with it.

3.You can search word from your vocabulary, it helps if you only remember parts of the word



4.如果您下載android market上所有的字典檔,字典隨著您執行何種語言的字典檔就可使用英文翻何種語言。
5.當您記住這些字彙時,您可一次性清除或選擇多個一次清除
6.widget只在 myabc for tablet中提供,所以只能使用於tablet,widget使您可在桌面上瀏覽生字,增加背誦之機會

4.When you choose English to one of multi-language, if you have downloaded other dictionary, you can change it anytime by running other dictionary.
5. If you remember the word, you can clean some of them or all of them.
6.Widget are offered with myabc for tablet. Widget is more convenient for reviewing vocabulary.

注意:.widget只在 myabc for tablet程式中提供