2025年2月6日 星期四

Just a test

It’s a long long time as the time goes by

2016年2月25日 星期四

Visual Studio Code 支援 React Native 開發

Microsoft Visual Studio Code 推出官方支援的 React Native extension React Native Tools (Preview) | Visual Studio Marketplace,VSCode 的功能愈來愈強大了!

Develop ReactNative apps in Visual Studio Code | The Visual Studio Blog

SmallerAPK 教學文章

SmallerAPK 的四篇教學文章,提供如何縮減 apk size 的多種方法

#SmallerAPK, Part 1: Anatomy of an APK — Google Developers

#SmallerAPK, Part 2: Minifying code

#SmallerAPK, Part 3: Removing unused resources

#SmallerAPK, Part 4: Multi-APK through ABI and density splits

Microsoft 併購 Xamarin

Microsoft 併購 Xamarin !!

Microsoft to acquire Xamarin and empower more developers to build apps on any device - The Official Microsoft Blog

不意外就是了… 要打造 .Net everywhere ,併購 Xamarin 是必然的,畢竟 Visual Studio 已經導入 Xamarin 作為官方推薦的跨平台開發工具

身為一個 Android developer,好奇的是之前被 Xamarin 併購的 RoboVM Xamarin acquires RoboVM (以 Java 開發 iOS app),之後該何去何從,Microsoft 應該不太可能會繼續維持一個對自己沒有用處的工具

2016年1月7日 星期四

蔡司推出給 iPhone 使用的外接望遠鏡頭與外接廣角鏡頭 ExoLens

蔡司推出給 iPhone 使用的外接望遠鏡頭與外接廣角鏡頭 ExoLens!!
外接鏡頭的固定架上還提供了一個腳架螺母,可以將 iPhone 接上腳架或穩定架,用於拍攝4K影片用
令我好奇的問題是,ExoLens 的鏡頭接環規格會不會開放讓其他廠商也加入生產外接鏡頭
ExoLens | Professional grade photography for your iPhone
ZEISS and Fellowes Brands Launch Mobile Phone Accessory Photography Lenses

The three lenses by ExoLens with optics by ZEISS – macro and wide-angle and tele lens
ExoLens wide-angle lens with optics by ZEISS on an Apple iPhone 6s
ExoLens 除了有出給 iPhone 的版本之外,也有給 Samsung Galaxy S6/S6 Edge 的固定架
除了固定架形式的外接鏡頭組之外,也有提供被蓋形式,不過背蓋板就只有 for iPhone6/6s ,沒有 for iPhone 6+/6s+ ,應該是跟其他外接鏡頭背蓋有同樣的問題,體積太大…
ExoLens Case (4-Lens Kit) for iPhone 6/6s | ExoLens
ExoLens Case (4-Lens Kit)

2015年11月20日 星期五

Classeur - Markdown 文件夾筆記本

ClasseurStackEdit 團隊的新作,同樣是專注於以 markdown syntax 編輯文件,同樣可以支援發布文章到 Blogger/GitHub/WordPress,不同的是,這次 Classeur 可以在 classeur 中直接發表 public 的文章,就像是個 blog 平台。

另外一個 Classeur 的特別之處,是 Classeur 的檔案管理模式,就像是資料夾一樣,先建立 Folder,在每個 Folder 之下建立文件,界面讓我想到 OneNote 的 Notebook。

Classeur 有整合 Google Drive 的 document storage,以 Google 帳號登入後,文章都會儲存在個人的 Google Drive 中,文件的管理比起 StackEdit 方便多了

未來應該會試著以 Classeur 收納一下自己在 Google+ 上的胡言亂語,丟到 Blogger

如何關閉 Windows 10 的自動更新

關閉 Windows 10 的自動更新

Windows 10 的自動更新無法從設定中關閉,只能透過一些手段來關閉系統自動更新

最簡單的作法是從設定中選擇 通知我排定重新啟動作業 ,但是我還是有遇過系統自己就重新開機的狀況

參考 How to Prevent Windows 10 From Automatically Downloading Updates 的作法,可以從 群組原則編輯器 (gpedit.msc) 中,設定 電腦設定 --> 系統管理範本 --> Windows 元件 --> Windows Update,設定自動更新。

在這個控制項目中,就可以選擇是否要自動下載更新以及是否要自動安裝更新。

另外一招則是釜底抽薪,直接把 Windows Update Service 給停用… 如果在發生幾次系統自動更新後重新啟動的情況,我可以真的會這樣作…

2015年6月9日 星期二

Intel 發表採用 USB-C connector 的 Thunderbolt 3

Thunderbolt™ 3 – The USB-C That Does It All

Intel Thunderbolt 3 在 USB Type-C 上,多加上了相容 40Gbps 的 PCI-Express protocol alternative mode ,並提供以下兩個 USB protocol 所較難提供的功能,外接顯示卡與透過 Thunderbolt 做 daisy chain 的 10Gbps Ethernet LAN

USB-C 原生支援的 DisplayPort alternative mode, USB 3.1, USB-PD 都能相容無礙,相關產品要到 2016 才會上市

External Graphics

Gamers can now connect plug n’ play external graphics to a notebook to enjoy the latest games at recommended or higher settings.

Thunderbolt™ Networking

Provides a peer-to-peer connection at 10 GbE speeds to quickly transfer files between computers, perform PC migrations, or set up small workgroups with shared storage.

Thunderbolt 3 over USB-C

Apple WWDC 2015

Apple WWDC 2015, about OS X, iOS 9, Apple Pay, and Apple Music http://www.plurk.com/p/l0mwl3

OS X El Capitan

的改進說實在,乏善可陳,修修補補一些應用程式的功能,沒有大的進展

iOS 9

Siri 是主角,這一次的 Siri 已經可以比擬 Google Now,不僅能主動的藉由各種使用者資訊,推播協助訊息,還可以做 in-app search,實用性又再次提昇,Google Now 與 Cortana 真的要緊張了

Multitasking 分兩種,一種是只有 iPad Air 2,具備 2GB RAM 機種才能使用的 SplitView,兩個應用程式各自佔用一半的螢幕,能夠同時執行兩個完整個應用程式;另外一種則是 iPad Air 以上就可以用的 SlideView,運作模式近似 Windows 8 的 Windows Snap,只能以約螢幕 1/3 的大小執行精簡版的應用程式。

影片的 Picture-In-Picture (PIP) 播放則是 iPad Air 以上機種均可使用。

從 Multitasking 和 Notes 功能的強化(手寫、擷取應用程式畫面與連結)推測,更大螢幕的 iPad Pro 的確是確有其物,到九月就會有更清楚的雛型了吧~ 希望能針對 mass storage 做強化,便利交換檔案

Apple Pay

Apple Pay 跨出美國之後,第一個落地站,不出意料的是 UK,同時也將 Passbook 的會員卡和儲值記帳卡改為 Wallet,強化整體體驗,更重要的是,交通工具的費用支付,這對於行動支付來說,會是比信用卡更實用的功能。

Apple Pay 的 in-app payment 也開始整合起來了,例如 Pinterest 就開始支援看到喜歡的 pin (buyable pins) 就可以直接透過 Apple Pay 付款購買

很期待 Apple Pay 的快速普及

Apple Music

Apple Music 吃了很重的篇幅,請了好幾個音樂人上台,但內容其實很空,又是放在最後,聽到超想睡的…

Apple Music 的特色是有 Music, Video 的整合,並且加入了與歌手之間的互動,這是與 Spotify 在功能上的不同,同時 Apple Music 的音樂推薦功能頗值得一玩,點點漂浮的圈圈選擇自己喜歡的曲風和樂手,就會自動推薦與合成播放清單

Radio (Beats One) 被大書特書,但是我精神不濟,已經聽不清楚台上在 demo 什麼了

比較有競爭力的是推廣速度與價格,一上場就是超過一百個國家,個人方案是 $9.99 不算便宜,但家庭方案,能支援六個帳號,只要 $14.99,就很殺了!! 所以 Spotify 做出回應 Spotify plans to match Apple Music’s very cheap family plan | The Verge 說他們也會有同樣的 family plan。

WatchOS 2

對 Apple Watch 超無感,但幾個手機上能用的功能 porting 到手錶上很有趣,例如在手錶上控制 Homekit,透過手錶的 Facetime audio 講電話,Wallet 可以直接在 Apple Watch 上選擇會員卡,整合 Siri 的 Proactive Assistant ,都讓 Apple Watch 更實用,更像是個精簡版的 iOS,but… 我還是有點無感

Others

News 改版了

Wireless CarPlay,以後上車,不需要掏出手機,CarPlay 就能自動的與 iOS device 配對,同時也可以直接在 CarPlay 的介面,執行汽車生產商,有關於車輛監控的 App

HomeKit iCloud remote access,HomeKit 可以遠端遙控

Audio unit extension 看起來像是 Lightening 的音效週邊支援

Direct document, iCloud open in place 應該是跟 content provider 有關,不用再複製副本,可以直接開始 app or service 內的檔案

VPN plug-in extension 好想知道這能不能幫助翻牆

投影片上有,但 keynote 沒談到的新功能

The coolest new iOS 9 features that Apple didn’t announce | The Verge

OCR accessory setup
Audio unit extension
VPN plug-in extension
Swift 2
Map customization
Direct document
UI testing in Xcode
Sensor profile
Motorized windows profile
New Health data types
Code coverage
Gaming APIs
Automated shades profile
Layout guide
Shortcut Bar
New multitasking APIs
New HomeKit profiles
iCloud open in place
Home security profile
Storyboard references
App transport security API
Stack view
Wireless CarPlay
HomeKit iCloud remote access

感想

iOS 9 改進沒有 iOS 8 大,但改進的方向個人認為很正確,其中幾個功能希望能快速普及

Apple Pay 的新聞不多,但擴展迅速,不僅實體付款,in-app payment 也起來了,Google Pay 用免手續費這招,不知道能不能趕上。但是Google Pay 卡到硬體的支援,總覺得不甚樂觀

Apple Music 看起來很不錯,尤其是 Apple 已經透過 iTunes 和世界各國的唱片業者連結,在內容的取得上不會是大問題,接下來就要看他們主打的 Artist following and Radio 能不能做出特色了。
Apple Music 也是第一個 Apple 決定要推廣到 Android 上的服務,接下來還會有哪些服務會做跨平台,真令人期待

HomeKit 還在蹲,看軟體支援度是慢慢地補齊不足,硬體有很多廠商在鴨子滑水,期待大爆發

看完 WWDC 2015,感覺比 Google I/O 2015 有趣且實用

2015年3月5日 星期四

透過 command line 關閉 Windows 自動休眠

遇到一台 power driver 都沒寫好的 windows pc.. 只能自力救濟,用 PowerCFG 來手動關閉休眠了…

c:\windows\system32\powercfg.exe -change -monitor-timeout-ac 0
c:\windows\system32\powercfg.exe -change -monitor-timeout-dc 0
c:\windows\system32\powercfg.exe -change -disk-timeout-ac 0
c:\windows\system32\powercfg.exe -change -disk-timeout-dc 0
c:\windows\system32\powercfg.exe -change -standby-timeout-ac 0
c:\windows\system32\powercfg.exe -change -standby-timeout-dc 0
c:\windows\system32\powercfg.exe -change -hibernate-timeout-ac 0
c:\windows\system32\powercfg.exe -change -hibernate-timeout-dc 0

ref:

windows 7 - how do i disable SLEEP mode via command line ?

Powercfg Command-Line Options

2015年2月14日 星期六

Android SparseArray

Android 推薦使用 SparseArray 取代 HashMap(Integer, Object) ,文 (1) trace 了 Android 的實作,SparseArray 的原型是 List,不用像 HashMap 一樣比對 key,所以比較快,文 (2) 給了實際的性能比較,也可以看出 SparseArray 的 memory and time 的確都比較優異。

(1) Android應用性能優化之使用SparseArray替代HashMap - 柳志超博客

(2) SparseArray替代HashMap來提高性能 - 專注安卓性能優化以及最佳實踐的

Android Widget: TextClock

Android 在 API 17 (Jelly Bean 4.2) 之後增加了新的 clock widget - TextClock,可以支援自訂時間格式,頗方便。設定時間格式可參考 SimpleDateFormat

在開發過程中遇到的一個問題是設定的 24Hour 時間格式跑不出來,一直都是顯示系統預設的格式,這與系統設定 12Hour 或 24Hour 有關,TextClock 會先檢查是否有設定 12Hour format,如果沒設定,才會套用 24Hour format,因此要設定 android:format12Hour="@null",才能正確套用 24Hour format

2014年9月5日 星期五

檢查目前那些 Android app 占用 wakelock

檢查目前那些 Android app 占用 wakelock,查看 /proc/wakelocks 即可

adb shell "cat /proc/wakelocks"

或者是直接用 dumpsys power 看整個 power domain 的運作狀況

如果需要 get wakelock 讓 device 不進 suspend,可用
adb shell "echo mylock > /sys/power/wake_lock"

Reference:

android - How can I see which wakelocks are active - Stack Overflow

博客來自己設立的 E-Coupon 分享頁面

博客來自己設立一個簡單的分享頁面讓網友分享用不到的 E-Coupon,利人利己,真是個好作法

博客來E-Coupon分享

以 ADB Shell command 開啟 Android Settings 的方法

以 ADB Shell command 開啟 Android Settings 的方法

adb shell am start -n com.android.settings/.Settings

adb shell am start -a android.settings.SETTINGS

REF: Starting an activity listed under “Settings” from terminal (or adb shell) - Android Enthusiasts Stack Exchange

2013年12月26日 星期四

Apple iTunes 一開就當的解決方法

Apple iTunes 一開就當的解決方法,加入 ;C:\program files (x86)\common files\apple\apple application support 到環境變數 PATH

ref: iTunes Crashes on Startup: Apple Support Communities

git 中 revert/roll back 一個檔案的修改,回到上一個 commit

git 中 revert/roll back 一個檔案的修改,回到上一個 commit

清除目前的修改 git checkout filenamegit reset --hard HEAD^ 不能 revert 單一個檔案,只能 revert 整個 commit,一直找不到像 svn 對單一檔案做 revert 的方法,後來搜尋到 git: revert (reset) a single file ,才解決我長久以來的困擾,其實也很簡單就 checkout 單一個檔案的上一個 commit 即可

git checkout -- filename

2013年12月5日 星期四

全文搜尋工具介紹: grep, git grep, sublimetext

全文搜尋工具介紹: grep, git grep, sublimetext

grep

grep 是多數人最常用的全文搜尋工具,每台 linux box 都有,但速度慢,而且要搭配 find 才好用

最常用的指令是

grep -Hnir foo bar

要搜尋 header and source files 則可以用

grep -Hnir --include \*.h --include \*.c foo bar

或者是透過 find

find . \(-name '*.h' -o -name '*.c' \) --exec grep -Hinr foo {} \; -print

The Silver Search (ag)

The Silver Searcher (ag) 很不錯,是我目前的主力,git grep 這工具是我第一次看到,但效能也很不錯,但限定在有放在 git repo 內的檔案

使用 ag or git grep 的優點是在搜尋時會自動套用 .gitignore 避開不必要的搜尋,加快搜尋速度

ag 要搜尋 header and source files,可以用 -G 的參數後加上 regexp pattern

ag -i -G '(.h|.cpp)$' 'foo' /bar/

或者是只要搜尋 Android.mk 檔案的內容

ag -G 'Android.mk' 'foo'

ag 要顯示 Context,也就是搜尋目標前後的文字,可以用 -C 2 的參數

ag -i -G '(.h|.cpp)$' -C 2 'foo' /bar/

ag 也有 Windows 版本,可由此下載 The Silver Searcher windows port

SublimeText

SublimeText 的 Find in Files 也很好用,能夠顯示 context (搜尋目標前後行),也能點擊檔名與關鍵字開啟檔案,很像 grep.vim ,不過是圖形介面

也可利用 SublimeText Package 的 Search In Project 呼叫 ag 進行全文搜尋

Thunderbolt-LP 2014 演進計畫

Thunderbolt

根據 VR-Zone 的報導 Intel’s plans for Thunderbolt in 2014,Thunderbolt-LP 將以daisy chain 跑支援 TCP/IP protocol,連接方式應該會類似於透過同軸電纜與 BNC 接頭的 Ethernet 10BASE5,期待 10G or 20G Thunderbolt SAN

Thunberbolt Host Peer-to-Peer

另外,Intel 也會逐步增加 Thunderbolt 供電能力,預計將在 2015 年達到 53W

2014 Broadwell Thunderbolt LP Controller

ThinkPad X240s 小感

51nb 的網友對 ThinkPad X240s 做了一系列的評測,看完的感想是,還好我早一個月買了 ThinkPad X230…

Keyboard

先是極惡的與觸控板整合的小紅點按鍵

X240s快速评测第2章(续): X240s的鼠标系统 - 专门网

Performance

用 ULV CPU 犧牲效能換來的續航力進步,一般電壓版的 Mobile CPU 居然要 T440p 等級才有…

X240s快速评测第3章:电池双倍待机实在 - 专门网

Internal

X240s 的拆裝內在實在是很醜,拼裝感很重.. 雖然 TPUser 的站長說 X240s 的外部 rolling cage 結構比 X230 的還堅固…

而且只有一個 DIMM,最多 8GB RAM….

X240s快速评测第5章:拆装不赖换装新代 - 专门网

Comments

G+ 網友評論是

看來現在 只能靠 X220 繼續服役下去了

.

220 服役中 = =