1. Created a file : .htaccess on your folder.
2. Add below to .htaccess :
$vim .htaccess
AddType application/x-httpd-php .html .htm
3. Modify "apache2.conf".
$vim apache2.conf
AllowOverride None => AllowOverride All
4. Restart apache2.
$sudo service apache2 restart
Reference : http://www.bictor.com/2015/03/03/enable-php-in-html-or-other-files/
2015年8月14日 星期五
2015年7月15日 星期三
Android - How to build the AOSP Nexus 7 (2012) ?
1. Get source code from AOSP.
$mkdir nexus_7_2012
$cd nexus_7_2012
You must to check nexus 7 (2012) and aosp version:
http://source.android.com/source/build-numbers.html#source-code-tags-and-builds
For example, if you want get android 5.1.1 for nexus 7 (2012) wifi only source code, you can find ...
Because nexus 7 2012 wifi device name was "grouper", we can find the branch is android-5.1.1_r1.
$repo init -u https://android.googlesource.com/platform/manifest -b android-5.1.1_r1
$repo sync
2. Get third-party binaries.
Get binaries from this address : https://developers.google.com/android/nexus/drivers
We want to build the android 5.1.1 , so we must to get ...
After get these files, please copy to your aosp folder and execute.
You will to get the new folder "vendor" in your source code folder.
3. Build the source code.
$source build/envsetup.sh
Find the device tag and name from this ...
http://source.android.com/source/building-devices.html
"full_grouper-userdebug" was "nexus 7 2012 wifi only" configuration name.
$lunch lunch full_grouper-userdebug
$make -j8
4. Flash to device. (Your device must to oem unlock.)
$adb reboot-bootloader
$fastboot -w flashall
PS. You must to input cmd on aosp folder.
$mkdir nexus_7_2012
$cd nexus_7_2012
You must to check nexus 7 (2012) and aosp version:
http://source.android.com/source/build-numbers.html#source-code-tags-and-builds
For example, if you want get android 5.1.1 for nexus 7 (2012) wifi only source code, you can find ...
Because nexus 7 2012 wifi device name was "grouper", we can find the branch is android-5.1.1_r1.
$repo init -u https://android.googlesource.com/platform/manifest -b android-5.1.1_r1
$repo sync
2. Get third-party binaries.
Get binaries from this address : https://developers.google.com/android/nexus/drivers
We want to build the android 5.1.1 , so we must to get ...
After get these files, please copy to your aosp folder and execute.
You will to get the new folder "vendor" in your source code folder.
3. Build the source code.
$source build/envsetup.sh
Find the device tag and name from this ...
http://source.android.com/source/building-devices.html
"full_grouper-userdebug" was "nexus 7 2012 wifi only" configuration name.
$lunch lunch full_grouper-userdebug
$make -j8
4. Flash to device. (Your device must to oem unlock.)
$adb reboot-bootloader
$fastboot -w flashall
PS. You must to input cmd on aosp folder.
2015年2月3日 星期二
ubuntu - 在 ubuntu 上不利用 WINE 運作 Line (Pidgin + purple-line)
使用 WINE 跑 LINE 常常都會因為奇怪的原因 Crash 掉。找了很久,終於找到一篇日文的教學文章。這篇文章提供 Pidgin + purple-line 的外掛方式運行 Line 。經過測試之後是可行的。
測試環境 Ubuntu 14.04 x86_64 3.13.0-40-generic
1. 安裝 Pidgin
$ sudo apt-get install pidgin
$ sudo apt-get install libpurple0 libpurple-dev libpurple-bin
測試環境 Ubuntu 14.04 x86_64 3.13.0-40-generic
1. 安裝 Pidgin
$ sudo apt-get install pidgin
2. 安裝編譯環境
$ sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev python-dev
3. 下載 thrift ( http://www.apache.org/dyn/closer.cgi?path=/thrift/0.9.2/thrift-0.9.2.tar.gz )
4. 解壓縮 thrift
$ tar zxvf thrift-0.9.2.tar.gz
5. 編譯與安裝 thrift
$ cd thrift-0.9.2/
$ ./configure --without-tests
$ make
$ sudo make install
6. 下載 purple-line 的外掛
$ cd ~/
$ git clone http://altrepo.eu/git/purple-line.git/
$ cd purple-line/
$ wget http://altrepo.eu/git/line-protocol.git/blob_plain/HEAD:/line_main.thrift
$ make
$ make install
$ sudo ldconfig
接下來重新開機之後,就可以啟動 Pidgin 並且新增 Line 的帳號了。
參考文章:http://blog.livedoor.jp/hiroumauma/archives/1710677.html
2014年10月9日 星期四
2014年10月2日 星期四
Linux - warning: override XXX
Because your kconfig have "choice" !
This mean that only have "1" module can be enable.
But, you enabled 2 or more module on your config file belong this item.
After "make xxxx_config", it found 2 enable module on this item.
it will show ... warning: override.
You must to disable unnecessary module on this item.
This mean that only have "1" module can be enable.
But, you enabled 2 or more module on your config file belong this item.
After "make xxxx_config", it found 2 enable module on this item.
it will show ... warning: override.
You must to disable unnecessary module on this item.
2014年4月15日 星期二
How to install line on ubuntu ?
1. sudo add-apt-repository ppa:ubuntu-wine/ppa
2. sudo apt-get update
3. sudo apt-get install wine
4. winetricks vcrun2008
5. Download Line and install from http://cdn.line-apps.com/client/win/LineInst.exe
Reference : http://longbao738.blogspot.tw/2013/10/ubuntu-line.html
2014年2月22日 星期六
Python - How to install mysql-python on ubuntu?
$> sudo apt-get install python-dev
$> sudo apt-get install libmysqlclient-dev
$> pip install mysql-python
Reference :
1. http://lucaswei.blogspot.tw/2012/02/pythonh-no-such-file-or-directory.html
2. http://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found
訂閱:
文章 (Atom)

