<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1744909791713269913</id><updated>2026-08-15T11:33:19.023+08:00</updated><category term="心情"/><category term="遊記"/><category term="iPhone"/><category term="iOS"/><category term="Android"/><category term="心得"/><category term="科技"/><category term="摘錄"/><category term="Dubai"/><category term="Xcode"/><category term="cebu"/><category term="lproj"/><category term="object c"/><category term="Lion"/><category term="Mac OSX"/><category term="UITableViewCell"/><category term="UIWebView"/><category term="debug"/><category term="deprecated"/><category term="distribution"/><category term="facebook"/><category term="google map"/><category term="iPad"/><category term="趣事"/><category term="10.8"/><category term="AppleLanguages"/><category term="ApplicationLoader 2.5.1"/><category term="AudioQueue"/><category term="CFBundleIconFiles"/><category term="CFURL"/><category term="CS193P"/><category term="Cling"/><category term="CoreGraphics"/><category term="HTTP"/><category term="NSError"/><category term="NSLog"/><category term="NSLog xcode"/><category term="NSURLConnection"/><category term="OS X 10.7.3"/><category term="Olivia Ong"/><category term="Onavo"/><category term="PRODUCT_NAME"/><category term="QuartzCore"/><category term="R.java"/><category term="RGB"/><category term="SBUserNetwork"/><category term="SDWebImage"/><category term="UIColor"/><category term="UIGestureRecognizer"/><category term="UIKit"/><category term="UITableViewCellEditingStyleDelete"/><category term="UITableViewCellEditingStyleInsert"/><category term="UITableViewController"/><category term="UIViewController"/><category term="UI_USER_INTERFACE_IDIOM"/><category term="UPnP"/><category term="apache"/><category term="archives"/><category term="background task"/><category term="bounds"/><category term="dropbox"/><category term="flight mode"/><category term="frame"/><category term="gateway"/><category term="google play"/><category term="google plus"/><category term="hex"/><category term="icon"/><category term="interfaceOrientation"/><category term="library"/><category term="linear PCM"/><category term="live audio stream"/><category term="loadHTMLString"/><category term="mountain lion"/><category term="multitasking"/><category term="music"/><category term="navigation bar"/><category term="performSelector"/><category term="personal hotspot"/><category term="preference"/><category term="programming guide"/><category term="provision"/><category term="reachability"/><category term="reuseIdentifier"/><category term="settings bundle"/><category term="social.framework"/><category term="splash screen"/><category term="systemVersion"/><category term="textfield"/><category term="url encode"/><category term="validate"/><category term="virtualbox"/><category term="web sharing"/><category term="wifi"/><category term="wireshark"/><category term="xcode4"/><category term="youtube"/><category term="測驗"/><title type='text'>JingJong&#39;s Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>178</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-2180579443277089487</id><published>2015-04-15T11:23:00.001+08:00</published><updated>2015-04-15T11:23:13.130+08:00</updated><title type='text'>Multiple SSH keys on your computer</title><summary type="text">  平常用慣了Git來管理程式, 但是  公司跟個人的開發環境應該分清楚一點比較好.    例如說我平常自己個人在github或是bitbucket上開發  一開始會follow教學, 先產生SSH key  cd ~/.ssh  ssh-keygen -t rsa -C &quot;user_name@whatever.com&amp;quot;    然後copy 公鑰id_rsa.pub到server上, 像是：  pbcopy &amp;lt; ~/.ssh/id_rsa.pub  或是手動複製  cat ~/.ssh/id_rsa.pub    但是要新增另外一把SSH key在同一台機器上, 可以使用下面的方法：  ssh-keygen -t rsa -f ~/.ssh/accountB -C &quot;user_name@whatever.com&amp;quot;    然後新增並編輯config：  touch</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/2180579443277089487/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2015/04/multiple-ssh-keys-on-your-computer.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/2180579443277089487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/2180579443277089487'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2015/04/multiple-ssh-keys-on-your-computer.html' title='Multiple SSH keys on your computer'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-1782405483743794306</id><published>2015-04-08T11:30:00.001+08:00</published><updated>2015-04-08T11:32:46.014+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="virtualbox"/><title type='text'>VirtualBox設定Windows vm的網路</title><summary type="text">

環境

host: Mac OS X 10.9.5

vm: Windows XP 32 bit



1. 設定網路

選擇NAT, 介面卡選Intel PRO/1000 MT Desktop這個, 然後按確定








2. 設定分享資料夾

指定分享的資料夾路徑, 確認Auto mount有勾選, 然後按確定.





有興趣可以參考youtube的教學, 到此為止應該都還順利,

但是教學影片中的作者電腦已經出現&quot;網路磁碟機&quot;(Network Drives).

我花了n個小時看了各種介紹, 有些要用cmd, 有些教說要新增&quot;網路磁碟機&quot;,&amp;nbsp;但是都沒用!!!




3.&amp;nbsp;NOTE! 非常重要的一步!

切換到windows vm畫面, 選擇視窗最上方一排Devices &amp;gt; Insert Guest Additions CD image…

</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/1782405483743794306/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2015/04/virtualboxwindows-vm.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/1782405483743794306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/1782405483743794306'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2015/04/virtualboxwindows-vm.html' title='VirtualBox設定Windows vm的網路'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNs_Vq1ViX0lTICcQV6w8cTqC36zOzUcfdiesdrNwbJpgzIaYU8usn6G5demciagyvuFPEm3NjIltjm-59v4nGUB_3T2Z5U3vpyG7sxefApX6jkSuF6NHm4sAh_RRxGQ-MEOb2jjeu3Xw/s72-c/e26d29aa69a2be71804b710914075a05-751669.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-341918243094851283</id><published>2015-04-07T13:33:00.001+08:00</published><updated>2015-04-07T13:35:25.206+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Cling"/><category scheme="http://www.blogger.com/atom/ns#" term="UPnP"/><title type='text'>Android Studio使用Cling library顯示支援UPnP的裝置</title><summary type="text">

Cling官方網站



Cling介紹

Cling的四大模組:

Cling Core

實作UPnP 1.0協議, 可以在網路上宣告其服務, 也可用來寫一個control point尋找附近的UPnP裝置並使用其服務. 值得注意的是, Cling 2.x 要求API 15以上, 舊版Cling 1.x&amp;nbsp;才支援更舊的OS版本.



Cling Support

擴展UPnP服務的模組, 像是media server, renderer, 或是NAT port mapping等等.



Cling Workbench

是一個for桌機的應用程式



Cling MediaRenderer

基於gstreamer的一個獨立的UPnP MediaRenderer.



我們只要list出附近有支援UPnP的裝置,

所以只會用到Cling Core的部分

</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/341918243094851283/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2015/04/android-studiocling-libraryupnp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/341918243094851283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/341918243094851283'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2015/04/android-studiocling-libraryupnp.html' title='Android Studio使用Cling library顯示支援UPnP的裝置'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-6026438188188676689</id><published>2014-07-11T11:52:00.001+08:00</published><updated>2014-07-11T11:57:24.048+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>[Android] 使用UIL套件並將網路資源儲存在手機端</title><summary type="text">



來源：eleZeta@flickr,&amp;nbsp;CC BY-ND 2.0


前言  

Android的開發者一定都知道Universal Image Loader (UIL)套件

也一定知道套件初始化的一些基本設置




1
2
3
4
5
 ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)
                .discCacheExtraOptions(800, 800, CompressFormat.JPEG, 25, null)
                              .memoryCache(new WeakMemoryCache())
                              .</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/6026438188188676689/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2014/07/android-uil.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/6026438188188676689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/6026438188188676689'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2014/07/android-uil.html' title='[Android] 使用UIL套件並將網路資源儲存在手機端'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaZQV-zECxr8oFvSnQv2K2LtrFuWr0bATYxJ7Q3uz2XgLDqsosQRabbLLVc71uXfkNxJ19YcV3Y8Z33NyIq3sABebRC_VJJX4jLO5ioX2q0KDZ48yvP67hl0B3uhE_6oz0oEI5A0-Kaws/s72-c/adf1048aa3a037246ea163bb6707411d-771993.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-3664148556759513368</id><published>2014-07-11T10:01:00.001+08:00</published><updated>2014-07-17T15:12:47.752+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>[Android] google-play-services_lib 的小問題</title><summary type="text">

在Android的開發環境中, 設定google-play-service的library是滿稀鬆平常的事情.

不過我後來發現, 常常在Android SDK Manager做了update後, 這error又出現了!


  



如果又遇到Unable to resolve target &#39;android-x&#39; (無論是8還是9還是什麼鬼數字)

不妨先將google-play-services的專案移除, 並重新import.

然後進入project的properties選單, 確認一下project build target跟我們自己的專案是不是有一樣!







我的專案使用的API level是14, 重新勾選後就正常啦!

    
     Evernote helps you remember everything and get organized </summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/3664148556759513368/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2014/07/android-google-play-serviceslib.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/3664148556759513368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/3664148556759513368'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2014/07/android-google-play-serviceslib.html' title='[Android] google-play-services_lib 的小問題'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg60GVyHfCQGrcLkgH-OmG4axC1XxRb7DzYuxYl9kbEI39I2YRG02LJc0w3a8IKRlbuQU7HtbMdDUjSrOL0S-U8fons14RMGceeem3XPI_4W1PO2yif-8yke7b1Sft82qlFwMeF9cerhVM/s72-c/5ca05eadcc812c77dee9afeb7e46b12f-789031.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-1138684727032480864</id><published>2014-07-10T18:01:00.001+08:00</published><updated>2014-07-17T15:13:36.742+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>iOS7 UITableViewCell 分隔線偏移的問題</title><summary type="text">

前言

除了先前文章提到過iOS7 的UITableViewCell如果想讓image貼齊靠左的技巧.

還有分隔線啦!




問題

我想這直接看圖片是再清楚不過了!
  




實作




1
2
if ([tableView respondsToSelector:@selector(setSeparatorInset:)])
    [tableView setSeparatorInset:UIEdgeInsetsZero];






夠簡單了吧 ;)
    
     Evernote helps you remember everything and get organized effortlessly. Download Evernote.         

</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/1138684727032480864/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2014/07/ios7-uitableviewcell.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/1138684727032480864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/1138684727032480864'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2014/07/ios7-uitableviewcell.html' title='iOS7 UITableViewCell 分隔線偏移的問題'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSAiB2X804pDGYM3orl62lbtoc-AQ5G2YyDCvfqCVMg7y42Uai0R4regZNEe7ZIBCq3sufEzbSvafU2O5XkA0zxu6H8Z4-7aOo73id6pFsUOOfHoKxcQ1YHRCrHZmriMzul7q9BOc7EWg/s72-c/ee483aaa2c84c9abfccd1cd78ca24e2d-775127.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-315380655453923176</id><published>2014-07-10T16:51:00.000+08:00</published><updated>2014-08-01T16:06:18.721+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OSX"/><category scheme="http://www.blogger.com/atom/ns#" term="wireshark"/><title type='text'>救命的一行文 - MAC OS X使用Wireshark卻發現Interface找不到</title><summary type="text">在MAC OS X上想要使用Wireshark一定要有X11的環境,
可惜從Mountain Lion開始就被Apple給移除了.
因此要下載XQuartz來解決, 官方網站

不知打哪個版本開始, Wireshark只有user權限,
所以無法直接去選擇我們想要攔截的interface.
所以現在請打開command line, 並輸入

sudo chown &amp;nbsp;/dev/bpf*
這樣就會有權限可以選interface囉!

參考連結：justincarmony</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/315380655453923176/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2014/07/mac-os-xwiresharkinterface.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/315380655453923176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/315380655453923176'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2014/07/mac-os-xwiresharkinterface.html' title='救命的一行文 - MAC OS X使用Wireshark卻發現Interface找不到'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-4757355398031209452</id><published>2014-03-03T17:05:00.001+08:00</published><updated>2014-07-17T15:12:32.336+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="google play"/><title type='text'>[Android] 打包, 發佈APK到GooglePlay</title><summary type="text">

打包APK



1. Project (Right Click) &amp;gt; Android Tools &amp;gt; Export Signed Application Package...
  






2. Click&amp;nbsp;&quot;&quot;Browse&quot; to choose the project we want to export.&amp;nbsp;Then click&amp;nbsp;&quot;Next&quot;






3. Suppose we have&amp;nbsp;keystore already. Enter the password of the keystore.

Keystore可以把它想作是鑰匙圈, 裡面可存放不同名字(Alias)的key.&amp;nbsp;

通常適用於同一個公司/團體下, 有不同的產品. (一個Keystore多個key)






4. Again, enter </summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/4757355398031209452/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2014/03/android-apkgoogleplay.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/4757355398031209452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/4757355398031209452'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2014/03/android-apkgoogleplay.html' title='[Android] 打包, 發佈APK到GooglePlay'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSR6Il1FYjaGhXL7QEv-lqDfjqteEhIwiOvrdkY0ljjrXh3oDTYF9BLsZf4ax32sYJupf90qC0K4Hzz6AuBDT5NnTZTQvd9eLpEj-f2cFREN2exaaFZRSnqPXdf-FonKCq8llmn6JtwJs/s72-c/72e689c64d926844579e3516d8cd96be-741625.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-5774928671205859223</id><published>2014-01-21T10:30:00.001+08:00</published><updated>2014-07-17T15:13:49.444+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>iOS SDK Release Notes for iOS 7.1 beta 4</title><summary type="text">

iOS7.1 beta4今早release了，翻了一下release note跟大家分享一下。

Bluetooth Known Issues&amp;nbsp;
32-bit apps running on a 64-bit device cannot attach to BTServer.  



已知問題32位元的app在iPhone 5S會有藍牙連線的問題，已經beta好幾版都沒有改= =+  





CFNetwork Notes

A compatibility behavior has been added to address an issue where some web servers would send the wrong Content-Length value for &quot;Content-Encoding: gzip&quot; content. Previously,</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/5774928671205859223/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2014/01/ios-sdk-release-notes-for-ios-71-beta-4.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/5774928671205859223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/5774928671205859223'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2014/01/ios-sdk-release-notes-for-ios-71-beta-4.html' title='iOS SDK Release Notes for iOS 7.1 beta 4'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-2088145429978064596</id><published>2013-12-12T14:39:00.001+08:00</published><updated>2014-07-17T15:14:06.894+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dropbox"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>iOS App 串接 Dropbox API第一次就上手</title><summary type="text">
前言  

最近發現我好飢渴阿(大誤!)

很多網路服務API都很有趣, 也很完整, 高手滿坑滿谷.

就像Steve Jobs說的 &#39;stay hungry stay foolish&#39;

今天就來玩玩Dropbox的API吧~




申請APP帳號

Dropbox開發者首頁(Link)

左側有App Console的標籤, 點擊然後選擇Create app.



&amp;gt; 要先同意使用者條款跟隱私權政策






&amp;gt; 然後要選擇app的類型.

1. 先選右邊的Dropbox API app

2. 然後選擇Files and datastores (注意！選Datastores only沒法對data做access動作！)

&amp;nbsp; &amp;nbsp; 就像這位仁兄遇到的問題一樣.

3. 我只允許我的app access自己app所建立的資料夾

4. 設定一下</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/2088145429978064596/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/12/ios-app-dropbox-api.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/2088145429978064596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/2088145429978064596'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/12/ios-app-dropbox-api.html' title='iOS App 串接 Dropbox API第一次就上手'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM6xvmRMoqUh5yvc_sbim3flH0XLQg3N_KM837g8JpWIkXJ4mduSrcwK9Tk9LWw9OxE0W2UuAJ2KcjES9t5hBFGs9WMPg7dWzq_9YoGdaXW5xpMFo4ZtB-uNAOl7uoBPrCE26i9ZqnbsI/s72-c/8a0a79e3e67d3184ea260f75660d48e4-783596.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-6589139102606948184</id><published>2013-12-11T16:08:00.001+08:00</published><updated>2013-12-11T16:13:06.463+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google plus"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>iOS App share with Google Plus</title><summary type="text">
前言  

Google Plus的分享功能要加到iOS專案裡面不會太困難.

官方網站的原文教學



環境設定

下載Google+ iOS SDK (official link)



檢查一下
AssetsLibrary.framework  

Foundation.framework

CoreLocation.framework

CoreMotion.framework

CoreGraphics.framework

CoreText.framework

MediaPlayer.framework

Security.framework

SystemConfiguration.framework

UIKit.framework



並從下載回來的Google+ iOS SDK資料夾內

拖曳&amp;amp;import
GooglePlus.framework  
</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/6589139102606948184/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/12/ios-app-share-with-google-plus.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/6589139102606948184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/6589139102606948184'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/12/ios-app-share-with-google-plus.html' title='iOS App share with Google Plus'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgDarWvUBwaxIUwAQIzdgGyO3YsDyC9oNskuy5AQSrkchXE6bWXnYoy1ecG9kQ4jOujS14vI3iAYq-7FA_F_3BiuRoLuDO2NEjucPLofSHhjbk5VPU6tQcrMT0iyzedjZ2AI7HSKtl9DU/s72-c/3cae5808a0402bab5746248690d98e1e-791559.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-346708957879710662</id><published>2013-12-11T14:01:00.001+08:00</published><updated>2013-12-11T14:14:08.225+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><title type='text'>[Android] share with Facebook SDK 3.5</title><summary type="text">
前言  

原本在開發者沙盒(SandBox)模式下一切都還滿順利的,

不料上到Google Play發現原本的功能不work,&amp;nbsp;

花了一些時間才發現小細節.

自己記錄一下, 同時也給需要的人參考一下.



以下我就自己的開發歷程,&amp;nbsp;

先從沙盒模式說起,&amp;nbsp;

最後再談關閉沙盒模式要注意的地方.




下載&amp;amp;Import FaceBook SDK

可以參考官方文件的原文教學

我是用SDK 3.5.2 (Official Download Link&amp;nbsp;/&amp;nbsp;Github SDK3.6)



I&#39;ll skip the installation of Facebook in emulator here.



&amp;gt; Right click / &#39;File&#39; on top





&amp;gt; Existing </summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/346708957879710662/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/12/android-share-with-facebook-sdk-35.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/346708957879710662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/346708957879710662'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/12/android-share-with-facebook-sdk-35.html' title='[Android] share with Facebook SDK 3.5'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpKivMt-b1diFlazod2VleCxc0M75mPTeNTOs7dhm1mXzAku1lL7Kalc0q0R8iBUK_YpxVRxoUvFS4YoDC4U6mSaxP2CUQ9vTH2VdFX81_nLltDIRafG_vbaT9MoPgxf_-pUJujon3Rfo/s72-c/dc944ad406017984adfb5a873a273dcd-718663.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-8267533830697002927</id><published>2013-12-04T10:36:00.001+08:00</published><updated>2013-12-11T09:41:56.760+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="youtube"/><title type='text'>在iOS app用webview播放YouTube影片</title><summary type="text">

前言
如果要直接launch YouTube app來播放, 那需要URL scheme:  


youtube://
http://www.youtube.com/v/VIDEO_IDENTIFIER
http://www.youtube.com/watch?v=VIDEO_IDENTIFIER

今天我需要用嵌入webview 方式播放YouTube影片來提供比較好的使用者體驗:D






實作

原理就是用webview 的loadHTMLString 方法來讀取我們assign好的HTML內容.

廢話不說, 直接上code!
webplayer = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    webplayer.scalesPageToFit </summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/8267533830697002927/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/12/ios-appwebviewyoutube.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/8267533830697002927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/8267533830697002927'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/12/ios-appwebviewyoutube.html' title='在iOS app用webview播放YouTube影片'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVk_WKpykAYnIuQmZy_OkyYSNaLVabotPNhqc8t5DGbWs2aZRWi1jJpjTb8Wgl47ejcoAY6y_bJIBshTmqVFb3pXgMzP40nLHIq_SVxet3Ifwxk1mjslpp_LirDAJN9tTcgBaloKUPtio/s72-c/6f72d2e6f6dc5223353bd3e73a0a289f-778679.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-7488617044301977311</id><published>2013-11-21T11:49:00.001+08:00</published><updated>2013-12-11T09:42:15.093+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><title type='text'>iOS7 UITableViewCell imageView offset issue</title><summary type="text">
前言  

iOS7的新界面風格確實給UX設計師跟工程師帶來不少困擾，

尤其是UITableView的layout變動讓我花了不少時間去調整。



問題

我在cell.imageView裡頭放的圖片位置跑掉了。





嘗試
// Not work 1.
[cell.imageViewsetFrame:CGRectOffset(cell.imageView.frame,-15,0)];

// Not work 2.
[tableViewsetContentOffset:CGPointMake(-15,0)];

// Not work 3.
if([selfrespondsToSelector:@selector(edgesForExtendedLayout)])
 self.edgesForExtendedLayout=UIRectEdgeNone;
 
// Not </summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/7488617044301977311/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/11/ios7-uitableviewcell-imageview-offset_21.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/7488617044301977311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/7488617044301977311'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/11/ios7-uitableviewcell-imageview-offset_21.html' title='iOS7 UITableViewCell imageView offset issue'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPPXVi-HoC9hJgYwQ8WDR_rgGsg-kEyy3QvDAWwF1k0ZOal61WweFnI8Ni7ESEI-HOYaja1Hummh1f8C9ACiyTrZurYMp7tCKNciNBEVR739VLUcUZqVO0aJ-X5Y4GYMw2Kb8qMkdoAFI/s72-c/ae7e95cda3895312144f504609fcb7fb-747188.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-4071886301390738714</id><published>2013-10-03T16:52:00.001+08:00</published><updated>2013-10-03T16:55:13.990+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>[Android] 後悔了, 我想修改ActionBar的樣式</title><summary type="text">    
     
From Evernote:
    
     
[Android] 後悔了, 我想修改ActionBar的樣式
    


前言  




一開始乖乖跟著別人的教學做出來的App大概像這樣，

不知道是那裡怪怪的， 總覺得有點生硬：



瞧瞧人家的就是比較fashion XD



對吼！就是看起來憨憨的ActionBar啦！



一開始專案建立沒選好，要怎麼辦呢？

還是可以反悔的，沒別招，手動改囉～







動手



事情是這樣發生的：

在AndroidMainifest.xml裡頭我節錄的最後一行，

說明了app theme是參考styles.xml裡面AppTheme的設定。





有頭緒了！而styles.xml藏在哪？

在專案/res/values，/res/values-v11，跟/res/values-v14底下都有</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/4071886301390738714/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/10/android-actionbar.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/4071886301390738714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/4071886301390738714'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/10/android-actionbar.html' title='[Android] 後悔了, 我想修改ActionBar的樣式'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlEpovCeku2v4NlzmJ11e9jVGqCCiZHuUNosPuq1SIR-r7Tni69F9DFNxFouPhywQ2YzN0CEsfxBGrStZIvSgzjd57gnOAeGv0LhjzoD_LnEFYMrEdoU98o2cPxOg0aScLiDXnfHHg2os/s72-c/e02ac1250af38edf269d746b94020c5e-732155.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-761496025292016689</id><published>2013-09-15T08:13:00.001+08:00</published><updated>2013-09-18T10:06:13.715+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dubai"/><title type='text'>旋風式杜拜(Dubai)之行 - Day5</title><summary type="text">               From Evernote:                        旋風式杜拜(Dubai)之行 - Day5               前言(100/11/12)    每天起床迎接我的天氣都這麼好, 每棟大樓設計都不一樣, 賞盡各建築師的傑作, 讓人心情愉悅.      早上發現了附近的一家super market.  貨架上各式各樣的優格.      看起來應該是&amp;quot;舶來品&amp;quot;的水果      天氣熱嘛, 總是要吃點甜筒~      喔~然後網友有推薦 &amp;quot;必吃&amp;quot; 雪糕也讓我買到啦!!!! 還不錯喔 ^^b      觀光  飯店通往海邊必經的一座橋 (白天版)      橋上可以看到飯店後方的港灣, 果然停滿有錢人的遊艇      過了橋就是面海的飯店了, 飯店相連著好幾棟都由空橋串起.       空橋下</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/761496025292016689/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day5.html#comment-form' title='7 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/761496025292016689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/761496025292016689'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day5.html' title='旋風式杜拜(Dubai)之行 - Day5'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3cIlQbXKIUW9UuU64peo35PwahTYiUiEThl1tMp87mW5UkJUKjvNaahBK65rRoOFf4BYyJMufeR3xQHFhrNx1ChTsGT7dSyXee8B1K28kAlhtreqCBACnO7invCOK_Arr69p0qvqypVI/s72-c/f2b8d82b8ffd0eeecb0495e290b19e27-799748.jpeg" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-9213534621950415055</id><published>2013-09-13T15:17:00.001+08:00</published><updated>2013-09-14T08:11:41.046+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dubai"/><title type='text'>旋風式杜拜(Dubai)之行 - Day4</title><summary type="text">    
     
From Evernote:
    
     
旋風式杜拜(Dubai)之行 - Day4
    


前言(100/11/11)  



今天我不貼三餐文了XD

杜拜這邊星期五是不上班的, 所以只有一位同事加班陪我.

早上也是&quot;打滴&quot;到沙漠中央洽公.



真的是沙漠中央喔!

車子順著路旁的小徑, 方向盤一轉從原本的柏油路切到了黃沙滾滾的…沙漠中.

然後就在煙塵瀰漫中切著西瓜, 上下顛簸, 然後在我已經完全迷失方向之際, 抵達公司.

其實襯著藍天矗立在荒漠之中也是很有fu的! (肅然起敬貌~)





公司停車場





公司對面還是工地





瞧~真的就坐落在沙漠中啦





中午同事Noor帶我到附近的餐廳覓食, 不過食堂是休息的.

後來跑去吃休息站旁的Subway~

我們中途也聊了幾句, 交換了一些訊息.

老實說, 這邊的</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/9213534621950415055/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day4.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/9213534621950415055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/9213534621950415055'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day4.html' title='旋風式杜拜(Dubai)之行 - Day4'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL9qNz7g7vXmJsLkM4c5WZLO1ty8GDZrwMuQlKDEq4o2ztX6m5Kz3FZsKkalGouAZ2gyJvKOTWasJRL-3e73QmDcKPO4TSLvffAXGXPYFNRbT-DCo8e1My7NFcViKTOxz37v3iLKp7HyI/s72-c/5276a3759a2b707328efbc2dc499ed80-732238.jpeg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-1905034197263414427</id><published>2013-09-13T13:40:00.001+08:00</published><updated>2013-09-14T08:11:28.062+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dubai"/><title type='text'>旋風式杜拜(Dubai)之行 - Day3</title><summary type="text">    
     
From Evernote:
    
     
旋風式杜拜(Dubai)之行 - Day3
    


晨間(100/11/10)  

早起後又開始在附近找尋商店買早餐. 早上沒時間, 不然跨過橋就是海邊了.





很乖的幫公司節省開支 - 我的早餐





Debugging...

這天中餐就比較早開動了XD

個人滿喜歡這種印度料理的, 咖哩雞肉+生菜+卷餅 ,比起&quot;偽&quot;中式便當好吃喔!





晚餐自理真的有點頭痛.

餐廳已經不多了, 菜單也完全看不懂, 勉強從英文推敲餐點的樣貌.

繞來繞去, 最後還是決定來吃個&quot;鮮蝦炒飯&quot;好了.



喔~蝦子呢? 我吃完了.

蛤~飯都沒吃, 這麼挑食喔? 不,我已經吃一半掉了, 太飽了!

一點都不誇張喔. 可能點到&quot;家庭號&quot;份量真的是嚇死我了@@~



飯後往海邊走去, 從海灘往回照, 燈火通明</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/1905034197263414427/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day3.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/1905034197263414427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/1905034197263414427'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day3.html' title='旋風式杜拜(Dubai)之行 - Day3'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTC838hs63tIddyAeDqdvX9LHQ7hWM_kluyPuWcLUbBu8cQ0pLEsyAQbxz4724z5MoLP5sFtDHAI3tszuP79uA1S7A90E0k2E8G0iiwaAuEvrbIOWXfwCepU3a9qem-sG3nun3vf2teiQ/s72-c/118f8aa8bd7b2f260e56525a9f07c08c-747993.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-524134267894803466</id><published>2013-09-13T13:20:00.001+08:00</published><updated>2013-09-14T08:11:16.096+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dubai"/><title type='text'>旋風式杜拜(Dubai)之行 - Day2</title><summary type="text">    
     
From Evernote:
    
     
旋風式杜拜(Dubai)之行 - Day2
    



晨間 (100/11/09)



早上起床後因為飯店沒有附早餐的關係, 我到附近的商店買了早餐.

痾~有點像比薩的麵包跟一杯巧克力牛奶




喔～在台灣出發前, 同事跟我說當地會有同仁開車來載我.

然後我在Lobby等待約定的時間, 果然有台貼有公司logo的車子來載我了!

哈, 路上我們用英文稍微聊了一下.

水, 杜拜這邊很貴.

油, 便宜到不行.

車, 跑車滿街跑, 有錢人家3,4台車不稀奇, 稅金很少是主因.

外國人很多, 度假, 置產, 搞生意, 乘私人遊艇, 熱鬧的很.



Debugging...

第一天的中餐, 是一直到快下午2點才吃~

我都快餓昏了, 後來才知道當地沒有這麼早吃中餐的習慣.

不過同事很貼心的幫我選了</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/524134267894803466/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day2.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/524134267894803466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/524134267894803466'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day2.html' title='旋風式杜拜(Dubai)之行 - Day2'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBNp4etw3H060pEgL_zqYuPNO7hV0IunzT3W38W1kaYc3g-SYdrWP3Qzrr7ZbpmfxtF0clYgqkrFFm00fxhHa2sCP_D0vOnvsLWzxkF80c61IhAyqOJLSB9-ou5jYYGc_5b2YY0TOeSfQ/s72-c/1e1c4ed36d9caf37966370f3451c46b6-732580.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-101079964808364582</id><published>2013-09-12T14:41:00.000+08:00</published><updated>2013-09-12T14:47:30.789+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dubai"/><title type='text'>旋風式杜拜(Dubai)之行 - Day1</title><summary type="text">    
     
From Evernote:
    
     
旋風式杜拜(Dubai)之行 - Day1
    



前言

因為一些技術上的問題,

我非常有幸的被公司指派前往杜拜解決當地BU的問題.

一整個旅程中很多驚險的事情, 也鬧了不少笑話,

雖然過了這麼久的時間,

我對這特別的旅程印象卻是依然清晰.



由於事發突然, 我記得出發前是自己上網訂飯店的.

適逢杜拜的一個很大的節慶假期的尾巴,

怎麼都訂不到可以連續入住的飯店,

索性拆開來訂, 幫公司省錢, 又可以體驗到不同飯店的風情.

第一天住的是市中心的&amp;nbsp;Byblos Hotel

後來的幾天住的是&amp;nbsp;Marina Byblos Hotel



出發前我還有在網路上換了一些旅支,

可能貪圖那一點點匯率上的優惠吧,

我現在真的想不透我怎麼會換了旅支想拿去杜拜用.



啟程 </summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/101079964808364582/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day1.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/101079964808364582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/101079964808364582'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/09/dubai-day1.html' title='旋風式杜拜(Dubai)之行 - Day1'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEB-wOJ1Btf7nKekX2L9Jg87JaHcZhWOOy_OnyHReCfhRRjO14MALYvNPAdBp5ve-u7XzHdguuX-dTkqJrzsI9f84PkF9i0Ktxn_1F6Wsf2LKVhP9KTEZIk_XVQwhpxbfWS3xjIlAopJ4/s72-c/5fc118c429c235f6eb4619d41bf2eef4-792228.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-5488118565164930764</id><published>2013-09-11T09:21:00.000+08:00</published><updated>2014-07-04T11:44:46.114+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="SDWebImage"/><category scheme="http://www.blogger.com/atom/ns#" term="UITableViewCell"/><title type='text'>iOS 使用SDWebImage在table view載入不同高度圖片</title><summary type="text">    
     
From Evernote:
    
     
iOS 使用SDWebImage在table view載入不同高度圖片
    


前言  

剛開始我有種困擾，

我希望用table view的方式載入圖片。

下載方式既是非同步，

每個table view cell還要依據圖片大小來調整高度。

這…這...我一度有打算放棄，

改用scroll view來實作～



困境

但是一想到最基本的scroll view實作方式，

就是在create content時指定好frame的大小及內容來源。

也就是說，如果我有100張圖片，豈不要發100個requests！

網路接口都被我塞爆了，再者高度也無法事先取得阿！



咦～其實有比較高明的作法，

我只載入前後幾張圖，loading總比較輕了吧。

不過通常都實作在有paging的情況下(就是</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/5488118565164930764/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/09/ios-sdwebimagetable-view_17.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/5488118565164930764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/5488118565164930764'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/09/ios-sdwebimagetable-view_17.html' title='iOS 使用SDWebImage在table view載入不同高度圖片'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-4184050950790533161</id><published>2013-09-09T16:02:00.001+08:00</published><updated>2013-09-09T16:04:13.323+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="R.java"/><title type='text'>[Android] 難搞透了的R.java</title><summary type="text">雖然我發現,stackoverflow的分享功能很方便
但還是在我blog留點資料好了 ~&quot;~&amp;nbsp;


對新手一定要這麼殘忍嗎??
一起手馬上遇到這難搞的R.java問題.
如果一直卡在R.xx.xx cannot be resolved or is not a field.

最有可能就是class import了 android.R 這個壞東西,
請改成packagename.R 就搞定了~呼.

花了我好幾天時間, 搞得我都快崩潰了的爛問題!


希望能幫到快要絕望的人!
資料來源: stackoverflow</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/4184050950790533161/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/09/android-rjava.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/4184050950790533161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/4184050950790533161'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/09/android-rjava.html' title='[Android] 難搞透了的R.java'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-2933486852663110998</id><published>2013-09-02T09:57:00.000+08:00</published><updated>2013-09-05T08:15:50.839+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google map"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="UIWebView"/><title type='text'>使用WebView來顯示google街景地圖</title><summary type="text">&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

緣起

2012年底新版的google map開始就支援街景地圖,


如今google官方也都有開api出來取用街景.

如果app不想讓user跳出程式來觀看google街景地圖,

也不想k一堆官方文件, 用WebView來嵌入是最快選擇了.





需求


有gps座標資料, 然後想要顯示該地區的街景





實作


比較老土的作法是把下面的string存成一份html檔案在local,


然後讀出html後轉成string再把經緯度給填上.




後來發現也不用這麼搞, 直接寫一份就對了!


NSString *htmlString = [NSString stringWithFormat:@&quot;&amp;lt;html&amp;gt;\

</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/2933486852663110998/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/09/webviewgoogle.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/2933486852663110998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/2933486852663110998'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/09/webviewgoogle.html' title='使用WebView來顯示google街景地圖'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC3svVEuP7eQ3sKzpuc5il06I8-6SQ3B0n8MINpIT3Ks4O-sKzlScy5RynseP3KxDhZw75lP-DTPJ5zG76bq9l7frDcgWWmyria9NnLF4P7JSjPFV_c_H92tAJyWMnZLOq0uvlZxF3cuo/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-08-30+%E4%B8%8B%E5%8D%883.26.02.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-6750385995605995818</id><published>2013-08-30T15:16:00.002+08:00</published><updated>2013-08-30T15:17:47.848+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="social.framework"/><title type='text'>在iOS6 使用facebook分享文章的功能</title><summary type="text">緣起
記得早先在寫iOS app要在上面分享個東西到facebook上面,&amp;nbsp;
除了研讀facebook的api外, code也比較複雜一點.
現在iOS6的social framework已經有支援了,不拿來用用太可惜了.
當然要客製化, 讀取朋友列表等等還是得回頭k一下facebook的官方文件啦.


需求
這次只是很簡單的想要在 &quot;個人的動態消息&quot; 上分享訊息
訊息包含了&quot;文字描述&quot;, &quot;URL link&quot;, &quot;圖片&quot;
分析一下發現官方提供的東西已經很夠用了.
於是讓我們來看看要怎麼實作吧~


實作
SDK最低需求:iOS6
xcode版本: 4.5或更新(筆者使用4.6.3)

1. project &amp;gt; targets &amp;gt; Build Phases&amp;nbsp;
添加Social.framework

2. 在viewController.m 底下
#</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/6750385995605995818/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/08/ios6-facebook.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/6750385995605995818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/6750385995605995818'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/08/ios6-facebook.html' title='在iOS6 使用facebook分享文章的功能'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1744909791713269913.post-7851728209615471480</id><published>2013-08-12T15:03:00.003+08:00</published><updated>2013-10-01T12:05:30.364+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="google map"/><title type='text'>[Android] 使用Google Map with V2 API</title><summary type="text">&amp;nbsp;1. 確認下載並配置好Google Play services SDK




Window &amp;gt; Android SDK Manager

















題外話: 透過這個Google Play services APK 似乎有與server端連線, 否則怎麼能update new APIs?&amp;nbsp;


再說連線方式猜測應該是類似推播方式, 註冊完等需要update時喚起手機端service APK對應function到server update?

如果Google Play services APK不大改interface, 開發者應該不會太痛苦才是




又發現Google Play services囊括Google+, map等服務, 這會不會很痴肥阿!?


不過這些服務都已經整合OAuth2相當方便阿




運作方式如下圖



</summary><link rel='replies' type='application/atom+xml' href='http://jingjong404.blogspot.com/feeds/7851728209615471480/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://jingjong404.blogspot.com/2013/08/android-google-map-with-v2-api.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/7851728209615471480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1744909791713269913/posts/default/7851728209615471480'/><link rel='alternate' type='text/html' href='http://jingjong404.blogspot.com/2013/08/android-google-map-with-v2-api.html' title='[Android] 使用Google Map with V2 API'/><author><name>jingjong404</name><uri>http://www.blogger.com/profile/10414711131180601087</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfw5ElzNCa2XAwZnKrBhyBcVG9ZeO34i1pLkgGvQAilJO1HjAdWVu4s245_bVG-brNHF5MlllbqF3dDXE-nm-e2VcWcBc_wXH_MMMz_Pa2jd09HxGhhaO8BbEbz239PxWU9sEFFzCTIqo/s72-c/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7+2013-08-01+%E4%B8%8B%E5%8D%881.49.53.png" height="72" width="72"/><thr:total>2</thr:total></entry></feed>