跳到主要內容

文章

目前顯示的是 九月, 2015的文章

[Java] Timer - 每秒印一個log,測試service是否還活著

    void testMyScheduleDelayAndPeriod(){           Timer timer = new Timer();         System. out .println( "Delay:0秒, Period:1秒" );         System. out .println( "In testScheduleDelayAndPeriod:" + new Date());                  // schedule(TimerTask task, long delay, long period)         timer.schedule( new TimerTask() {              public void run() {                   System. out .println( "Task~ 執行時間:" + new Date());              }          }, 0, 1000);       }

電視直播

  TaiwanTV 線上直播︰ http://www.taiwantv.co/   SOPCAST︰ mac http://www.sopcast.com/cn/download/mac.html http://sopcast.en.softonic.com/mac   windows http://www.sopcast.com/download/win.html http://www.azofreeware.com/2007/11/sopcast-202.html   android http://www.sopcast.org/download/android.html   確定可以看的頻道︰ 年代新聞 sop://124.232.150.188:3920/5712   http://www.tvonlinestreams.com/sopcast-channel/ CCTV1 HD sop://124.232.150.188:3912/8893 CCTV3 HD sop://124.232.150.188:3912/6030 CCTV6 HD sop://124.232.150.188:3912/6032 CCTV8 HD sop://124.232.150.188:3912/6033 鳳凰資訊 sop://124.232.150.188:3912/8891 鳳凰衛視 HD sop://124.232.150.188:3912/8891 HKC1HD sop://46.246.89.189:3912/252605 Mifi.TV-1 sop://46.246.89.189:3912/146448 Mifi.TV-2 sop://46.246.89.189:3912/146449 ELTA體育 sop://124.232.150.188:3920/5691 民視 sop://124.232.150.188:3920/5692 台視 sop://124.232.150.188:3920/5696 大愛 sop://124.232.150.188:3920/5697 中視 sop://124.232.150.188:3920/5698 NAT sop://124.232.150.188:3920/5699 探索頻道

Node.js 上傳檔案

  Node.js 入門 http://www.nodebeginner.org/index-zh-tw.html Download https://nodejs.org/en/download/   安裝過程︰ 下載msi並安裝 安裝express: npm install -g express npm install -g express-generator   上下傳 file 範例 - Node.js http://iosdevelopersnote.blogspot.tw/2012/08/file-nodejs.html   Express框架 http://javascript.ruanyifeng.com/nodejs/express.html   nodejs小问题:[1]express不是内部或外部命令 http://jingyan.baidu.com/article/922554468a3466851648f419.html

[Swift] String Format for NT$

  var amount = NSNumber(int: 8880) var _currencyFormatter = NSNumberFormatter() _currencyFormatter.numberStyle = NSNumberFormatterStyle.DecimalStyle //_currencyFormatter.currencyCode = "NT$ " //_currencyFormatter.formatterBehavior = NSNumberFormatterBehavior.BehaviorDefault //_currencyFormatter.negativeFormat = "-$#,##0" _currencyFormatter.positiveFormat = "NT$ #,##0" _currencyFormatter.stringFromNumber(amount)   輸出結果︰ NT$ 8,880   參考︰ http://www.cokco.cn/thread-35548-1-1.html http://www.freair.com/bbs/simple/?t558.html

[IOS] 自動增加 build number

  if [ "${CONFIGURATION}" = "Release" ]; then // script buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}") buildNumber=$(($buildNumber + 1)) /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE" /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" fi   參考︰ http://nerds.weddingpartyapp.com/tech/2014/07/10/automatic-build-numbers-in-xcode/

英打復習

記得當兵的時候,同梯的營參四問我有沒有好用的輸入法 所以我就給了他嘸蝦米輸入法,我大學時練過,不過沒練起來,那時還是用一指神功… 然後我就跟說欲練神功必先自…不是啦,我是說要練中打必要先練英打才行! 過了一個禮拜,再遇到他,他說他嘸蝦米練起來了,我說屁啦~他說不信你看… 我說你英打怎麼練起來的,他說就a到z打10遍就練起來啦,我說怎麼可能!! 他說不信你試試~ abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqtstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvexyz 然後…我英打就練起來了