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 服役中 = =

如何直接將 windows 命令提示字元 的輸出結果直接傳到 剪貼簿

如何直接將 windows 命令提示字元 的輸出結果直接傳到 剪貼簿

pipe 進 clip 即可

$ dir | clip

Ref:

How to copy the command prompt output directly to the Windows clipboard | Winaero

2013年9月10日 星期二

Seagate 推出硬碟保險,提供資料救援與硬體替換服務

Seagate Rescue & Replace


 Seagate 推出硬碟保險,保費隨硬碟機型的保固時間而改變,要注意的是,這保險必須在購買硬碟的一年之內加購,而且保固時間從購買日期開始算起。

Seagate 提供兩種不同的 plan,只有資料救援的 Rescue,另外一種則是包含硬體換新的 Rescue and Replace,價格差 $10。

資料救援不僅限於硬體毀損,因為軟體或病毒所造成的資料遺失,也可使用此服務。

Seagate Rescue 會先試著以 Remote Rescue 的方式救資料,當 Remote Rescue 失敗,才會送回他們的 Lab,送去與送回的運費都包含在 plan 中。

Seagate Rescue and Replace will recover your data and replace your hard drive for $40 | Apps and Software | Geek.com


Rescue will cost $29.99 for a 2-year plan, $39.99 for 3 years, and $49.99 for 4 years. Rescue and Replace is understandably more expensive, and costs $39.99, $49.99, or $59.99 for the same 2, 3, or 4 year coverage.



if something happens, Seagate will recover your data and give it back to you.

Seagate Service Plans will cover your data for up to four years, depending on the model.

Coverage is only available for product within 1 year from date of purchase.



Q: What does the Seagate Rescue & Replace Service Plan cover?
There are three features included in this coverage:

Data Recovery Service ("DRS") feature for hard drive failure, viruses, software issues, and other problems that can cause data loss.

Mechanical or Electrical Breakdowns feature covers all mechanical drive failures and starts immediately after the Seagate original manufacturer's warranty expires.

Accidental Damage Coverage provides additional protection for Your Equipment against sudden and unforeseen accidental damage (see terms and conditions for certain exclusions).


The Seagate Rescue Plan covers data recovery services only.



Q: What is the coverage period of my service plan?

Coverage under these service plans begins on the purchase date of the service plan.


Q: What does the Seagate Rescue Service Plan cover?

The Seagate Rescue Plan provides the Data Recovery Service ("DRS") feature for hard drive failure, viruses, software issues, and other problems that can cause data loss.



Q: How will my data be returned to me from an in-lab recovery?
We will do our best to return your data on media that you can easily access and integrate into your existing system.

The Seagate Rescue & Replace Service Plan ensures the return of your data on a Seagate-certified new or certified repaired disk drive of the same size or of greater capacity with the remainder of your manufacturer's warranty or 90 days, whichever is greater, through Seagate Recovery Services. If you send in an internal hard drive, we will likely return your data on an external device and replace your internal drive. The replacement internal drive will need your operating system reloaded prior to transferring your recovered data onto it.

The Seagate Rescue Service Plan ensures your recovered data will be loaded on a media storage device (DVDs, USB storage devices, external hard drive or any other replacement hard disk drive it deems appropriate) and returned to you.


Q: How do I ship my device to the Administrator if in-lab recovery services are recommended?

If remote recovery is not possible, the Seagate Service Plan covers the cost of shipping your device to the Administrator lab for in-lab servicing. The Service Plan will also pay for return shipping of your recovered data and replacement drive (only applicable for Seagate Rescue & Replace Plan).

2013年4月26日 星期五

Nokia 在荷蘭的對 STMicro MEMS MIC 之訴訟對 HTC ONE 與 HTC 創新形象的影響

HTC 跟 Nokia 之間在 STMicro MEMS MIC 的訴訟問題,網路上的評論很多,但有些地方個人覺得有些意見,小弟提供一些不專業的看法供大家參考




在 [1] 中,作者提到變更 MEMS MIC 設計有難度,且 HTC 沒考慮到多重供應商,是策略上的嚴重失誤,且變更 MEMS MIC 還必須要再次通過電信主管機關審核,方可再次上市...

作者自己提到市場上多振膜的麥克風的供應商區屈指可數,那又該如何建立第二供應商來源呢? 更何況這是導入特定廠商的新技術,找到第二供應商來源是難上加難。




變更 MIC 設計很困難嗎? 我想變更硬體需要花些時間,但應該不是件難事,只是換料之後,能不能達到同樣的效果,就不得而知了... 但換料本身在生產過程中本就是常有的事情,不需要看得太嚴重。

MEMS MIC 這種料應該是一次就拉不少,希望 HTC 有足夠的緩衝時間更改設計,但我猜想 HTC 在正式宣判之前應該就先搶了不少料庫存,避免訴訟結果造成產品無法順利量產。

個人認為,HTC 比較麻煩的問題是在行銷宣傳上,尤其是前後兩批貨的收音品質落差,只不過消費者埋怨的對象可能會是 Nokia ...

然後,換 MIC 要重送電信主管機關認證!? 我是沒聽過這樣的問題啦... 有朋友有經驗嗎?



有物報告 主編 周欽華 一向對專利相關商業訴訟有很深入淺出的批評文章,當然,這次 HTC, ST-Micro 與 Nokia 在 MEMS MIC 的訴訟也有介紹 [2]。周主編對這次訴訟的看法主要有二:

簡單的說,宏達電在麥克風上的創新在哪?看起來就是跟 STMicro 採購了一個新的麥克風設計而已,這不符合我們對一家號稱創新的公司的期待。

這段新聞稿可說是「訴訟行銷」的典範。因為雖然違約的不是宏達電,宏達電也不可能跟競爭者 Nokia 簽甚麼契約,但 Nokia 的新聞稿字字都在鞭打宏達電的創新能力。

這段新聞稿中的「宏達電行銷文件」,以及最後「40項專利訴訟」的部分,其實跟 STMicro 的違約都沒有關係,但 Nokia 硬是將它插入新聞稿內,加強宏達電「抄襲」的印象。可說是毫不手軟。


創新是什麼?

Horace Dediu,也就是大家熟知的分析之王,在 [3] 中有提到對創新的定義,也許是中文的關係,無法明確定義創新到底是什麼,但我想 HTC 在 MEMS MIC 上的確做到的 Innovation,使用更好的設計與原件,達到更好的效果,滿足人們的需求,但 HTC 有沒有達到人們心中對創新的預期,就只能各自表述了...


3. Apple is now defined by some people, as ‘the company who modifies well’, not ‘the company who innovates’ well. What they made was ipad, ipod, iphone, apple tv and all the modifiers of the original products. Do you agree? If you do why?

Innovation is not invention. Innovation is the application of invention in ways that solve new needs.

I’m always amazed at how misunderstood this term is even though the definition is easy to understand:

(“Innovation differs from invention in that innovation refers to the use of a better and, as a result, novel idea or method, whereas invention refers more directly to the creation of the idea or method itself.”)

Apple is an innovation machine. It does invent but that’s not valuable in itself. Not all inventions are applied and not all innovations depend on internal inventions. Innovation is applied invention just like engineering is applied science.


Nokia 的確透過這次的訴訟打擊了 HTC 的創新形象,Nokia 也試圖塑造的了 HTC 是抄襲者的印象,但真的是 Nokia 全勝嗎? 消費者真的會因為一個麥克風就覺得 HTC 是抄襲者嗎?

對消費者來說,真正做出傷害消費者權益的人是 Nokia,如果使用者真的買了新款收音效果不佳的 HTC One,心中埋怨的對象會是透過訴訟,打壓對手,傷害消費者權益的 Nokia,而不是 HTC。

Nokia 繼續的透過訴訟打壓 HTC,真的有助於自身的品牌形象與產品銷售嗎? 我懷疑...


[1] 禁制令.迴避設計


[2] [更新] NOKIA 指控宏達電盜用技術,雙方碎嘴垃圾話


[3] Interview with Chosun Daily of Korea about Apple

2013年4月19日 星期五

Sigma 發表 18-35mm F1.8 DC HSM,世界第一隻 F1.8 變焦鏡

Sigma 發表 18-35mm F1.8 DC HSM,世界第一隻 F1.8 變焦鏡



Sigma 18-35mm F1.8 DC HSM 官方網站
http://www.sigma-global.com/jp/lenses/cas/product/art/a_18_35_18/index.html

dpreview news about Sigma 18-35mm F1.8 DC HSM
www.dpreview.com/news/2013/04/18/Sigma-announces-worlds-first-F1-8-constant-aperture-zoom-lens




Sigma 再一次發表驚人之作 - 18-35mm F1.8 DC HSM,繼 Olympus 14-35mm F2.0 之後,第二隻光圈大於 F2.8 的變焦鏡頭。

雖然變焦範圍只有 18-35mm (135FF 等效27-52.5mm),但是一隻鏡頭能夠取代 28mm F1.8, 35mm F1.8, 跟 50mm F1.8 三隻定焦鏡頭,也是個方便不需要換鏡頭的選擇,但價格、重量與體積就是需要衡量取捨之處,個人評價是 18-35mm F1.8 是顆大家都會很想要,但很少人會買的鏡頭

Sigma 18-35mm F1.8 DC HSM 缺少望遠,廣角也不夠廣,以標準變焦鏡頭來說實在是有些不方便,再加上 F1.8 的週邊失光蠻嚴重的,光圈全開的畫質也不知道好不好,如果無法光圈全開使用,那 F1.8 的鏡頭其實也沒太大意義。

以等效 24-70mm F2.8 的鏡頭的方便性加上高一檔 ISO 也能得到與 Sigma 18-35mm F1.8 DC HSM 的快門速度,但是除了散景之外方便性、價格、體積與重量都是等效 24-70mm F2.8 比較好,Sigma 18-35mm F1.8 DC HSM 是爽度高過實用的一顆鏡頭。




比較重要的規格:

APS-C 專用鏡頭,預定發售 Canon EF, Nikon F (DX), Sigma SA 三個接環

鏡頭組成 17 片 12 組,其中包含 5 SLD glass, 4 glassmold aspherical

最短對焦距離 0.28 m (0.23 x)

內對焦, 對焦時鏡頭不會旋轉 內變焦, 變焦時,鏡頭不會伸長或縮短

重量 810 g, 121 mm 長

濾鏡尺寸 72 mm


Galaxy S4 使用的是 Wolfson 最高級的 Audio Hub CODEC WM5102

根據 eprice 網友的情報,Galaxy S4 使用的是 Wolfson WM5102, Wolfson 目前最高級的 Audio Hub CODEC,SNR 達到 113dB

S1使用Wolfson WM8994
S2使用Yamaha YMU823
S3使用Wolfson Micro WM1811
S4使用Wolfson WM5102

Wolfson WM5102 是 Wolfson 目前最高級的 Audio Hub CODEC,SNR 達到 113dB

Wolfsen Audio Hubs
http://www.wolfsonmicro.com/products/audio_hubs/

Wolfsen WM5102: Audio Hub CODEC with Voice Processor DSP
http://www.wolfsonmicro.com/products/audio_hubs/WM5102/

Integrated 6/7 channel 24-bit hi-fi audio hub CODEC
- 6 ADCs, 96dB SNR microphone input (48kHz)
- 7 DACs, 113dB SNR headphone playback (48kHz)



在 GSMArena 的 Galaxy S4 review 中的 Audio Test 裡拿到很驚人的成績