會開新分頁
   

最近在用Xmind來處理公司的實驗專題一些許多變因的主題,我想這麼多變因我一定要好好思考每一個組合,

我打算展開所有變因安排所有組合,有些變因有兩種結果,有些變因有三種結果,甚至有些是0~5的連續變化

然後我開始覺得棘手,我發現若最基本的6個變因每個兩種結果,這樣就是2的6次方就有64種結果,數量已經相當多了

如果再多幾個變因,每個變因可能性又再多幾個結果,那需要考慮的組合就真的很龐大

我驚覺我原來想要全部展開的計畫有多麼蠢,

image


changcc929 發表在 痞客邦 留言(1) 人氣()

 

這是Mars老師的說明圖

 

image

其中異步線程除了可調用@override內的doInBackground函數外,還可以在此函數調用publicProgress(int)

而此函數每運行一次則會同時觸發onProgressUpdate()函數,一般progressbar可以設定在此複寫裡面


changcc929 發表在 痞客邦 留言(0) 人氣()

 

 

通过修改<appwidget-provider> 中的minWidth 和minHeight值,

  1. <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
  2.     android:minWidth= "250dip"
  3.     android:minHeight= "40dip"
  4.     android:updatePeriodMillis= "86400000"
  5.     android:initialLayout= "@layout/test_widget"
  6.     >
  7. </appwidget-provider>

dp大小对应的cell 数如下表所示,4x1的widget的 android:minWidth= "250dip和 android:minHeight= "40dip"

image

本文出自 “whithin's” 博客,请务必保留此出处http://whithin.blog.51cto.com/690417/1184661

 

 

1.Widget觀念
widget就是在Home Screen顯示的元件,它只是View的一種,所以可以使用xml來設計layout。你可以設計一個在背景執行的Service,讓它定時去Update這個Widget。此外畫面的設計可以參考Dev手冊中的說明,尺寸的設計則有一個公式最小尺寸(dip) = (格子數 * 74) - 2。所謂的格子是指,Home Screen中劃分成4*4的格子,所以你的widget要佔滿幾個格子,就可以用這個公式去算出你的widget的尺寸,例如,要佔滿2格,就是(2*74)-2=146dip。

http://jjnnykimo.pixnet.net/blog/post/30251569-android-widget%E9%96%8B%E7%99%BC%E6%B5%81%E7%A8%8B

changcc929 發表在 痞客邦 留言(0) 人氣()

 

感謝底下作者找到yahoo api 找woeid的方法

ref:http://wcn2002.pixnet.net/blog/post/115070251-ios-app%E9%96%8B%E7%99%BC(2)

經由經緯度可得到相對應的地點的woeid值

http://query.yahooapis.com/v1/public/yql?q=select woeid from geo.placefinder where text="37.416275,-122.025092" and gflags="R"

節錄:

"Lat/Lon可以藉由LBS取得,
所以整個就很清楚簡單了,

文章標籤

changcc929 發表在 痞客邦 留言(0) 人氣()

參考Mars的方式為了要下載檔案,獨立寫了一個類別HttpDownloader.java 方便以後的引用

避免不必要的重複代碼

HttpDownloader.java

------------------------------------------------

public class HttpDownloader {
    private URL myurl=null;
    public String download(String urlstr){
    StringBuffer sb=new StringBuffer();

文章標籤

changcc929 發表在 痞客邦 留言(0) 人氣()

此處示範基本解析XML單項解析方式

當然接下來可以用自己的方式來遍歷解析

 

 

yahoo weather api

https://weather.yahooapis.com/forecastrss?w=2306179

<item>

<title>Conditions for Taipei City, TW at 11:29 pm CST</title>

<geo:lat>25.09</geo:lat>

<geo:long>121.56</geo:long>

<link>

http://us.rd.yahoo.com/dailynews/rss/weather/Taipei_City__TW/*http://weather.yahoo.com/forecast/TWXX0021_f.html

</link>

<pubDate>Sat, 17 May 2014 11:29 pm CST</pubDate>

<yweather:condition text="Mostly Cloudy" code="27" temp="81" date="Sat, 17 May 2014 11:29 pm CST"/>

<description>

<![CDATA[

<img src="http://l.yimg.com/a/i/us/we/52/27.gif"/><br /> <b>Current Conditions:</b><br /> Mostly Cloudy, 81 F<BR /> <BR /><b>Forecast:</b><BR /> Sat - Partly Cloudy. High: 86 Low: 77<br /> Sun - PM Thundershowers. High: 86 Low: 75<br /> Mon - Thunderstorms. High: 82 Low: 75<br /> Tue - Thunderstorms. High: 87 Low: 74<br /> Wed - Rain. High: 80 Low: 74<br /> <br /> <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Taipei_City__TW/*http://weather.yahoo.com/forecast/TWXX0021_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/> (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>

]]>

</description>

<yweather:forecast day="Sat" date="17 May 2014" low="77" high="86" text="Partly Cloudy" code="29"/>

<yweather:forecast day="Sun" date="18 May 2014" low="75" high="86" text="PM Thundershowers" code="39"/>

<yweather:forecast day="Mon" date="19 May 2014" low="75" high="82" text="Thunderstorms" code="4"/>

<yweather:forecast day="Tue" date="20 May 2014" low="74" high="87" text="Thunderstorms" code="4"/>

<yweather:forecast day="Wed" date="21 May 2014" low="74" high="80" text="Rain" code="12"/>

<guid isPermaLink="false">TWXX0021_2014_05_21_7_00_CST</guid>

</item>

文章標籤

changcc929 發表在 痞客邦 留言(0) 人氣()

 

 

超感謝Tim Chang部落格的教學

http://kw0006667.wordpress.com/2013/04/25/cocos2d-x-%E9%96%8B%E7%99%BC-android-app/

以及子龍山人

http://www.cnblogs.com/zilongshanren/archive/2012/04/28/2473282.html

的教學

changcc929 發表在 痞客邦 留言(0) 人氣()

image 

This place is my friend Ansel recommend me, and he found it in internet.

He is always has full of good restaurant list,and I always can got some good place to go.

Tonight is still during of the Chinese new year time,and we drive fool around the Taichung city,try to seize the last vaction of tail.

We follow the google map's instruction and arrive in the alley.

It's quite a relax place

Stuff on the manu is not expensive nor cheap. (About NT150/ 1 cup)

changcc929 發表在 痞客邦 留言(0) 人氣()

 

image

今天一夥四人無聊殺到Ikea殺時間,到了晚餐時間google了一下,

挑了一間網路上名店"大方蘭州拉麵館"

到現場跟我想像的拉麵店有落差,就是傳統小吃店的店鋪

反正就是殺進去吃,老板規定看電視只能看卡通台,老闆人很熱情解釋為什麼只看卡通台

不過結論是食物算是很好吃,而且麵條是現做,實在很有誠意,而且吃起來算是Q中帶硬的感覺

changcc929 發表在 痞客邦 留言(0) 人氣()

 

幾乎算是最後一天的美好的一天

目摽是韓國恐怖的生吃章魚!!

早晨又是從綠意盎然的仁川溪出發

image 

我們坐了地鐵到達了鷺梁津

這裡我們預計花費巨額,四位平均一位花700元左右

changcc929 發表在 痞客邦 留言(0) 人氣()