網頁

2015/04/16

在 Windows 下為 Android 設備安裝 adb Interface Driver (2)

今年過年時,買了一台新Notebook (Toshiba R30-A),作業系統是 Windows 8.1。
在設定 Android 開發環境時,照著先前寫下的《在 Windows 下為 Android 設備安裝 adb Interface Driver》方法做,發現在Windows 8底下行不通!(大驚)
Windows 8會提示此驅動程式沒有簽章 (崩潰!XDDD)

在網路上折騰了好久,總算找到方法!
方法可參考 StackOverflow 上的這篇文章:http://stackoverflow.com/a/21972659/1247728

Arduino 接收紅外線

今天難得早下班,就來玩玩剛買的 Arduino 套件。
由於工作上有接觸到紅外線,所以第一個玩具就先從 IR receiver 下手。

在閱讀了葉難的部落格後 ,便開始依樣畫葫蘆,程式也是直接複製貼上 XD

以下是接線完成的樣子:
 

2014/09/27

在 Windows 下為 Android 設備安裝 adb Interface Driver

最近工作上要在一些 Android 手機和平板開發一些 app,想不到在安裝 adb Interface driver 嘗盡苦頭,瞎搞了一天,總算摸索出一個萬用法。

2014/05/25

使用portsnap更新port tree

好久沒碰FreeBSD了,最近想更新一下port tree,才發現現在改用portsnap這個工具,cvsup已成過去式?

簡單memo一下:

一、下載port tree:
portsnap fetch

二、安裝port tree:
portsnap extract

三、更新port tree:
portsnap update

首次執行的話,要先做fetch extract,以後就隨時都可以fetch update。


2013/10/10

Some Quotes

“You do not really understand something unless you can explain it to your grandmother.”
― Albert Einstein
如果你能把一個東西解釋到讓你阿嬤明白,才算真正瞭解那個東西。
─愛因斯坦

Blogger的Syntaxhighlighter設定

每次重新調整Blogger總會忘記把Syntaxhighlighter的設定先備份,下場就是花一堆時間重新設定。所以就memo一下吧!

2013/08/20

[Batch] 取得相對目錄清單

setlocal EnableDelayedExpansion
for /L %%n in (1 1 500) do if "!__cd__:~%%n,1!" neq "" set /a "len=%%n+1"
setlocal DisableDelayedExpansion
for /r . %%g in (*.log) do (
  set "absPath=%%g"
  setlocal EnableDelayedExpansion
  set "relPath=!absPath:~%len%!"
  echo(!relPath!
  endlocal
)