2012-10-22

xCode Tips

xCode Code-Folding

Fold                        ⌃⌘←     control+command+left
Unfold                      ⌃⌘→     control+command+right
Unfold All                  ⌃U      control+U
Fold Methods/Functions      ⌃⌘↑     control+command+up
Unfold Methods/Functions    ⌃⌘↓     control+command+down
Fold Comment Blocks         ⌃⇧⌘↑    control+shift+command+up
Unfold Comment Blocks       ⌃⇧⌘↓    control+shift+command+down
Focus Follows Selection     ⌃⌥⌘F    control+option+command+F

Indent

Indent Block Left                 ⌘[      command + [ 
Indent Block Right                ⌘]      command + ] 

Auto Indent 
step: 
1. select text 
2. right-click 
3. Click on "Structure" 
4. there's a "Re-indent selection" and other options in popup menu

2012-09-24

Using Xcode workspace




Using Open Source Static Libraries in Xcode 4

http://blog.carbonfive.com/2011/04/04/using-open-source-static-libraries-in-xcode-4/


Easy Xcode Static Library Subprojects and Submodules

http://www.blog.montgomerie.net/easy-xcode-static-library-subprojects-and-submodules


Helping Xcode Find Library Headers

http://www.cocoanetics.com/2012/01/helping-xcode-find-library-headers/

Mac 上常用的好工具整理

Mac 上常用的好工具整理


Alfred 一個快速開啟已安裝程式以及搜尋的工具

http://www.alfredapp.com/


Better Touch Tool 一個可以在滑鼠移到邊界時自動調整視窗大小,當然還有其他功能啦~~


看看介紹囉
http://www.macuknow.com/node/2716

http://mulicia.pixnet.net/blog/post/24733084-%E8%A7%A3%E6%94%BE%E4%BD%A0%E7%9A%84%E8%A7%B8%E6%8E%A7%E5%8A%9F%E8%83%BD%3Abetter-touch-tools%E3%80%81jitouch%E3%80%81magi

下載點
http://blog.boastr.net/


Text Wangler 一個文字編輯軟體,跟ultraedit差不多強大吧~~

介紹文
http://it.mjwo.org/2012/04/mac-os-x-textwrangler-4.html

下載點
http://www.barebones.com/products/TextWrangler/


Sublime Text 也是一個文字編輯軟體,有很多適合Coding用的功能喔

介紹文
http://kevintsengtw.blogspot.tw/p/sublime-text-2.html#.UGCY7aT9EWU
下載點
http://www.sublimetext.com/


Yahoo中文輸入法

下載點
http://tw.media.yahoo.com/keykey/instruction_mac.php


Terminal 介面調整


http://osxdaily.com/2012/02/24/ir_black-theme-add-colors-easily-to-the-terminal-in-mac-os-x/


Office 

Kingsoft Office Suite 2012:微軟 Office 無痛轉移的最佳方案

Libre Office


繪圖軟體 

向量 : Inkscape
點陣 :Gimp

2012-09-17

iOS image processing

iOS image processing library

用著iphone上拍照的軟體,想著以前大學好像學過一門課叫做Image processing 這一類的,所以關於影像處理這一部分的東西應該會有現成的library可以拿來使用吧~~

於是乎就問了問Google大神

最後找到了這一包強大的東西了.說明中寫著有用到iPhone的硬體加速,裝起來跑,還真的有加速的感覺了。有興趣的請跑跑看examples裡面的FilterShowcase吧~
https://github.com/BradLarson/GPUImage


以下的似乎沒這麼強大..留作參考囉~
http://maniacdev.com/2012/05/easy-and-extremely-fast-ios-uiimage-image-processing-library-blursharpenemboss/

http://maddogsoftware.wordpress.com/2011/06/05/uiimage-processing-using-vdspaccelerate-framework/

ios youtube download

How to download the youtube video and save it?


問了問google大神..
Keyword: stackoverflow download youtube videos ios
找到一些討論串
http://stackoverflow.com/questions/5087249/save-youtube-video-to-iphone-in-the-app

最後找到了一個可以運作的程式碼囉~~喔耶!!
https://github.com/comonitos/youtube_video

2012-09-14

Android Camera 常見問題

Android Camera 常見問題

同事在使用客製化的Camera的時候遇到不少問題,大致上如下面的連結所提到的問題都有碰到了

Android Camera 照相机常见问题 解决方法
http://zhaostudy2.blog.163.com/blog/static/135350205201111710030726/


後來一切的問題在Google Android的SDK裡面的Sample找到了解答
在Android sdk的目錄底下有這麼一個東西
android-sdk-macosx/samples/android-16/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.java

單然,我們可以把ApiDemo這整個專案import進來跑跑看囉~
首先在Package Explorer空白處點右鍵選擇New=>Other...

接下來選擇Android =>Android Sample Project
接下來選擇一個版本的Sample囉
再來就選要看的專案,這裡的標的物就是ApiDemo囉,選好按下finish就好囉

Android CoverFlow

Android CoverFlow

Android Coverflow Widget V2

http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html


另外在Google Code上面找到一個改寫上面那個Widget的專案

android-coverflow


Simple implementation of android's cover flow widget. It is largely based on excellent code from Neil http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html
http://code.google.com/p/android-coverflow/