Eric Guo's blog.cloud-mes.com

Hoping writing JS, Ruby & Rails and Go article, but fallback to DevOps note

Install Android SDK Drivers on HTC Incredible S/G11

Permalink

I use the Windows 7 and after you install Android SDK Tools, you can locate the USB driver at [C:\Program Files\Android\android-sdk\extras\google\usb_driver](file://C:\Program Files\Android\android-sdk\extras\google\usb_driver)

You need to modify the file android_winusb.inf (may need to save to Desktop and move to original folder due to Windows 7 protection), Add below line after section [Google.NTx86]

;HTC Incredible
%SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0CAC
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0CAC&MI_01

If you use the x64 version, Also add below line after [Google.NTamd64]

;HTC Incredible
%SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0CAC
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0CAC&MI_01

After you modify the file, you can in Device Manager and update the Andriod Device driver by manually click the button "Update Driver Software" and point to the folder of android_winusb.inf by install it.

Sublime 2 Installation Guide in Windows

Permalink

  • Install Sublime Text as normal way in Windows
  • Add Sublime Text Path to Path in System->Advanced System settings
  • Download Exuberant Ctags and put ctags.exe to Sublime 2 installation folder
  • Startup the Sublime Text in first time and pin it in Windows 7 Taskbar
  • Open cmd and locate your Sublime User profile folder, %USERPROFILE%\AppData\Roaming\Sublime Text 2\Packages\User
  • git clone https://github.com/Eric-Guo/sublime-user-folder.git .
  • Open the Sublime Text again and install Sublime Package Control by running below code in console line (Ctrl+`)
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
  • Close and Reopen the Sublime Text Editor, Ctrl+Shift+P and type 'Upgrade/Overwrite All Packages'
  • Waiting enough time to let Package Control download all the relative package.
  • Remove line '{ "keys": ["ctrl+b"], "command": "build" },' in Default (Windows).sublime-keymap file (bug for Build 2210? won't allow ctrl+k ctrl+b to toggle side bar if not remove it)

Install Simple Node.js Based TCP Socket Proxy Server in Windows by Batch File

Permalink

In my working Semiconductor factory, some of the machine is heavily protected by network isolate (You can image those machine a very frangible PC which have no windows update turn on), the network is so isolate that only certain bridge PC can connect in both inside intranet and outside - still intranet. To make things even worse, the isolated network is nested; the real machine need cross two level bridge PC to reach the application server.