Buy Reviews
Powered by MaxBlogPress  

工作達人停機升級

點閱人數:1次 11月 20th, 2009 by ㄚ琪

戴爾的伺服器來了,所以要升級主機了!

時間:2009/11/20 09:00~11/21

如果完成會再公告,屆時大家就可以有較好的環境,可以用了!先這樣!

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

DroidDraw:Android手機的圖形使用介面編輯器

點閱人數:12次 11月 19th, 2009 by ㄚ琪

前幾天試著在介紹NetBeans下的Android開發裡用Netbeans開發Androd程式,總覺得有點敗筆,就是它沒有像Eclipse裡頭的ADT那麼好用,在視覺化上就很困擾,課本 Google Android SDK開發範例大全裡有提到DroidDraw這個工具,可以線上免費下載(Mac OS X, Windows, Linux)到電腦執行,也可以直接在它的站上http://www.droiddraw.org/操作,我試過之後還不錯:

2009-11-19_105812

我還不會很會玩,所以玩得有點彆手,不過如果好好看教學Tutorials的話,應該就會很厲害了,哈哈!

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

PicasaWeb API 如何用php寫呢?

點閱人數:12次 11月 18th, 2009 by ㄚ琪

這是在藍色小舖看到的一個懸賞話題,因為我在Blogger有部落格nokia 5800ㄚ琪的Blogger部落格Health Spa,而且有在使用投影片的功能,那是抓Picasa相簿的,我的工作達人則是抓Flickr的,Flickr的api應該也有人在試,這個問題讓我想試試看,Google的這個相簿的api怎樣使用。

用Google可以找到Picasa 網頁相簿 Data API,是中文的喔,但是如果你要檢視最近發佈的用戶端程式庫和範例程式碼,就開始是英文的了,想說繁體的中文翻譯還沒出來喔,看來Google可以找我去做翻譯的工作喔!

內容非常的豐富,但我只針對PHP client library (v1.0)這個部份稍做測試,要在PHP使用PicasaWeb API就需要先裝好Google Data PHP Client Library,其他的AMP環境當然已經假設裝好了,安裝的步驟如下:

  1. 1.下載 Google Data Client Library files.
  2. 2.解壓縮下載的檔案,可以看到四個子資料夾:
    • demos — Sample applications
    • documentation — Documentation for the client library files
    • library — The actual client library source files.
    • tests — Unit-test files for automated testing.
  3. 新增library為PHP的路徑,在 Getting Started with the Google Data PHP Client Library這頁裡有提到三個方法,我就先行修改設定php.ini,也有一些步驟:
    1. 1.用最愛的編輯器開啟php.ini檔。
    2. 2.找到參考PHP路徑的這一行,開頭應該是include_path.
    3. 3.加入你儲存Zend Framework的路徑到列表中,並依照你的作業系統來操作:
      /path1:/path2:/usr/local/lib/php/library

      在Windows則是像這樣:

      \path1;\path2;\php\library
    4. 4.儲存並關閉檔案。
    5. 重新啟動Apache,然後可以在demos找到一個叫InstallationChecker.php的PHP Installation Checker script,順利的話你會看到這樣的畫面:
    6. 2009-11-18_152326
    7. 另外裡面有一隻Photos.php的程式,我猜應該就是跟Picasa相簿有關的程式,就大概看了一下程式碼,很多不過很有結構,所以可以好好的當作範例來玩:
    8. 一開始會出現Please login to your Google Account.這樣的連結,就給它點進去,然後有個要求登入的畫面:
    9. 2009-11-18_111115
    10. 當然你要有Google的帳號,不然玩屁啊!
    11. 2009-11-18_111133
    12. 出現授予存取權限的按鈕給你按!然後就有一些簡單的連結功能可以點選使用:
    13. 2009-11-18_135444
    14. 還不錯玩喔!有需要再詳細解說程式碼!
喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

自賀2009第五屆華文部落格大獎初選入圍

點閱人數:14次 11月 18th, 2009 by ㄚ琪

中午時收到「華文部落格大獎」執行小組於2009年11月18日上午9:59寄來的2009第五屆華文部落格大獎初選入圍通知,內容是這樣的:

親愛的劉世琪格主,您好:

恭喜您!您已入圍第五屆全球華文部落格大獎年度最佳親子家庭部落格的初審階段。 我們已於網站上公佈初審入圍名單,歡迎您也上來看看其他入圍參賽者的優質部落格。 http://blogaward.chinatimes.com/2009/nomineesum.aspx

另外,部落格大獎活動辦法規定,入圍者需在自己的部落格上張貼入圍貼紙,並附上連回活動首頁之超連結(http://blogaward.chinatimes.com),同時發表一篇入圍宣告文章(內容、長短不拘),若於入圍公佈後一周內(11/25下午5:00止)仍未張貼文章及入圍貼紙,將視為非部落格作者本人報名,以棄權論。

您可直接到活動網頁上下載初審入圍貼紙。
http://blogaward.chinatimes.com/2009/first-banner.htm

複審時間為:2009年11月18日~11月30日;

我們將於12月05日(六)公佈決選入圍名單,也請您密切注意。

感謝您對全球華文部落格大獎的支持和參與。

「華文部落格大獎」執行小組 敬上

哈哈!工作達人入圍了耶,真是令人高興!

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

介紹NetBeans下的Android開發

點閱人數:19次 11月 17th, 2009 by ㄚ琪

這篇netbeans tutorial的教學是在這裡找到的,一般開發Android連官網上也是推薦用Eclipse的,但是因為Java ME的新版跟Netbeans整合的太密合了,所以我這幾天都在習慣用Netbeans,順便也想試試在Netbeans是否也可以開發Android程式。

前往Netbeans的網站,雖說也有中文的,但是內容還是很少,很多是停留在netbeans 5.5階段,所以我也mail給負責繁體中文的人看看,是否可以讓我幫忙翻譯這篇,不過還未得到通知前,我就先放在工作達人吧!

原文是在 26 November, 2008使用 NetBeans 6.5 及 Android SDK 1.0 Release 1發佈的,當然我可不能照抄對不對,少說也得更新一下,所以我用的是Netbeans 6.7跟Android SDK 2.0。

在這篇文章中,我會告訴你如何使用Netbeans的nbandroid這個netbeans plugin來在Android平台上設計程式。

 

先決條件

在開始開發Android應用程式前,你應該已經通曉:

  • Android 架構
  • 撰寫Android應用程式的瀏覽

請參考Android SDK documentation 關於上面的資訊。

你將需要:

安裝NetBeans的Android 外掛

nbandroid project 提供了在NetBeans上開發Android的外掛,有三種方式來安裝:

強烈建議 使用nbandroid更新中心,可以參考如何安裝Android外掛到Netbeans

  • 下載並安裝NBMs,從這裡下載,一旦下載完成,到工具->外掛程式->Downloaded安裝外掛。
  • 你也可以複製專案的mercurial repository ,然後建立模組套件再接著安裝他們。(How?)
新增Android平台

在安裝這個外掛後,你必須到工具->Java平台新你的Android平台:

2009-11-16_170820

2009-11-16_170900

指定你的Android SDK 位置:

2009-11-17_171527

2009-11-16_171016

2009-11-16_171032

新增一個新的Android project

現在,到檔案->New Projects,你現在應該會看到一個新的紀錄:

2009-11-16_171047

按下一步使用預設的名稱 (或改變它!)

2009-11-16_171128

你會看到像下面那樣的新專案結構:

2009-11-16_171403

檔案MainActivity.java 顯示在下:

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.me.hellodroid;

import android.app.Activity;
import android.os.Bundle;

/**
 *
 * @author amit
 */
public class MainActivity extends Activity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        // ToDo add your GUI initialization code here
    }

}

就如Android SDK documentation所說得,Android應用程式會組成一系列的活動,產生的檔案MainActivity.java是這個應用程式的主要活動。

執行你的專案

現在建置並執行你的專案,你的專案建置成功然後Android emulator 啟動:

我們的 Hello World在哪裡?

只要加入

setContentView(R.layout.main);

到上面的檔案在// ToDo add your GUI initialization code here,這個位置

這是由外掛產生的,因為main.xml 包含了產生的主要的view。

另外的方式我們可以這樣做。

我們應該新增支援到骨架程式碼裡來顯示文字- Hello, Android, 新增下列的程式碼到檔案的"// ToDo add your GUI initialization code here"位置處:

TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);

你會注意到netbeans ide抱怨說- "Cannot find symbol",這是因為我們需要匯入類別TextView,在NetBeans很容易解決,只要在錯誤處點擊並選擇"Add import for.."

檔案應該像這樣:

package org.me.androidapplication1;

import android.app.Activity;

import android.os.Bundle;
import android.widget.TextView;

/**
 *
 * @author amit
 */
public class MainActivity extends Activity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

       TextView tv = new TextView(this);
       tv.setText("Hello, Android");
       setContentView(tv);
    }

}

 

現在再一次執行專案:

2009-11-16_171949

結論

‘nbandroid’專案只是很多貢獻機會的開始,請加入http://kenai.com/projects/nbandroid/

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

如何安裝Android外掛到Netbeans

點閱人數:9次 11月 17th, 2009 by ㄚ琪

安裝這個外掛的手推就是在你的NetBeans安裝註冊nbandroid更新中心,更新中心的位址是http://kenai.com/downloads/nbandroid/updates.xml,要註冊這個更新中心,只要到工具->外掛程式,然後照著下面的圖操作就可以安裝這個外掛:

設定 的標籤裡按下加入按鈕填寫名稱及URL:

2009-11-17_164843

2009-11-16_170012

可用的外掛程式 標籤裡在Search文字欄位裡輸入android ,檢查找到的外掛然後按下安裝

2009-11-16_170118

接受授權:

2009-11-16_170135

下載中:

2009-11-16_170146

Continue (並且忽略未簽名的外掛)

2009-11-16_170531

2009-11-16_170544

好了,你可以開始Android應用程式…

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

android download

點閱人數:32次 11月 17th, 2009 by ㄚ琪

這幾天又看到Android SDK更新了,版本已經到2.0,趕緊到download sdk那邊下載這個最新檔android-sdk_r3-windows.zip,感覺安裝更人性化了,下載後解壓縮,直接點擊SDK Setup.exe進入安裝畫面,以前好像還沒有這樣子smart,讓我貼幾張圖給各位瞧瞧:

2009-11-16_161434

設定你的代理伺服器,如果你有的話!

2009-11-16_160853

2009-11-16_160824

2009-11-16_161421

2009-11-16_163829

新增一個AVD,我就隨便填,就好了,接下來我要用netbeans來開發android的程式!敬請期待!

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

讀走出軟體工場

點閱人數:10次 11月 16th, 2009 by ㄚ琪

image

最近預約借到了阿朱的走出軟體工場,很好奇他是在寫什麼?對於正在提供web services、很想寫出手機的應用程式,以及最近剛從戴爾下單買一台最簡單的入門級server的ㄚ琪來說會有什麼幫助,我還不得而知,但是我看了序言之後,我大概有譜了,書不會很厚,應該可以很快看完,而且我覺得可以花些時間看看,應該對我會很有幫助的,期待讀完它!

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

cscope

點閱人數:24次 11月 13th, 2009 by ㄚ琪

今天在酷!學園看到這樣一個問題:cscope 使用問題 ,很好奇cscope是什麼東西,後來Google之後才知道這個原來是用vim來trace source code的,它擁有的功能如下:

1.Allows searching code for:

  • all references to a symbol
  • global definitions
  • functions called by a function
  • functions calling a function
  • text string
  • regular expression pattern
  • a file
  • files including a file
  • 2.Curses based (text screen)

    3.An information database is generated for faster searches and later reference

    4.The fuzzy parser supports C, but is flexible enough to be useful for C++ and Java, and for use as a 5.generalized ‘grep database’ (use it to browse large text documents!)

    6.Has a command line mode for inclusion in scripts or as a backend to a GUI/frontend

    7.Runs on all flavors of Unix, plus most monopoly-controlled operating systems.

    也有中文的教學:Using Cscope with Vim — translated to Chinese (external link)

    我也注意到它的DOS/Windows的支援,

    喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
    • Digg
    • del.icio.us
    • Google Bookmarks
    • Hemidemi
    • MyShare
    • Technorati
    • StumbleUpon
    • Diigo
    • Facebook
    • Twitter

    http://www.x4labs.com/why-we-are-different.php

    點閱人數:3次 11月 14th, 2009 by ㄚ琪

    In Taiwan there is a strong culture of silence and inability to talk about rectile dysfunction with other people. It is difficult for me to understand the meaning when I read the page “doctor recommended penis enlargement”. Who needs the penis extender? So I continue to study the site about penis enlargement. I have to admit many English expressions and vocabulary related to the medical field is not easy for me. I only know there are two commonly used types of traction devices used for penis extenders, the modern 1 inch wide silicone comfort strap and the classic noose.  The very special technique of 1 inch wide silicone comfort strap provides persons who are receiving medical treatment from a doctor or hospital with an better level of comfort and improved blood circulation, two fundamental factors of the penis enlargement process. And I know that X4 Labs and their unique Hybrid Traction System offers patients the ability to choice which system suits them best.

    What is the X4 Labs?  X4 Labs, a Canadian medical research and development business organization, has worked closely with leading male-health specialists and urologists to make the world’s first Hybrid Support System-based penis extender successful.

    If you feel it is useful. You can get information from the site. And I believe the doctor can slove your problems.

    喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
    • Digg
    • del.icio.us
    • Google Bookmarks
    • Hemidemi
    • MyShare
    • Technorati
    • StumbleUpon
    • Diigo
    • Facebook
    • Twitter
    456