Eric Guo's blog.cloud-mes.com

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

Switch From Micolog to Octopress

Permalink

Just very glad to annource that I just finishing switch my blog from Micolog to Octopress.

Micolog is a Google App Engine based blog, when I decide to use at Auguest 2011, the GAE price model is not so tough and Micolog is quite good for personal tech blog choose.

But after GAE price policy changed, I meet quite a lot Datastore Reads quota over Free budget, which lead almost the original blog inaccsible 3~4 hours everyday.

At same time, in the passed year, my favor language also change from Python to Ruby, so to rebuild the blog using a Ruby language solution, the Octopress is more good choose for me.

The most unique feature of Octopress is it have no bandend DB require, all the blog content is purely static html file, which will be generate before deploy based on your markdown blog file. That make Octopress requirement very very minimal compare with Wordpress/Micolog. Basicly a static page site is already enough, so it make possible to just deploy this blog on Github directly.

Hoping for a long time, I'm not worry about the blog facility anymore.

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)