2011年9月11日

QQ

快一年沒更新了...

2010年12月10日

Remove files not containing specific string

find . -type f -exec grep -L "some string" {} \; | xargs rm
-L, --files-without-match

2010年10月29日

Install Testlink on Ubuntu 10.04

Version: 1.9 RC1
Already installed apache so the following steps may differ from your case

1. Get source from http://testlink.sourceforge.net/docs/testLink.php

2. Extract the file and mv to /var/www
sudo cp -r testlink_1_9_RC1 /var/www/
Rename the dir to testlink (Optional, just affect the URL)

3. Install MySQL,PHP5, and related mod
sudo apt-get install mysql-server php5 php5-mysql php5-gd

4. Edit httpd.conf in apache
sudo vim /etc/apache2/httpd.conf
Add:
AddType application/x-httpd-php .php .htm .html
AddDefaultCharset UTF-8
ServerName 127.0.0.1

Restart apache server
sudo /etc/init.d/apache2 restart

5. Install with web installer.
http://your_ip/testlink
Just follow the instructions.

6. Finish the installation
Reload the page again and login as admin (pwd = admin)
Change admin's passwd in "Personal" page
Remove install/ in var/www/testlink
Edit config
sudo vim /var/www/testlink/config.inc.php
Turn off the warning message:
$tlCfg->config_check_warning_mode = 'SILENT';
Enable API Key:
$tlCfg->api->enabled = TRUE;
In this way, there will be a "Generate a new key" button in "Personal" page

2010年6月7日

OpenCORE Debug Print on Android

To utilize the existing log statements without rebuilding the whole PV library, you can do this:
1. In the beginning of the file, after the last "#include" line, add following:
#include <utils/Log.h>
#undef LOG_TAG
#define LOG_TAG "YOUR_MODULE_NAME"
#undef PVLOGGER_LOGMSG
#define PVLOGGER_LOGMSG(IL, LOGGER, LEVEL, MESSAGE) JJLOGE MESSAGE
#define JJLOGE(id, ...) LOGE(__VA_ARGS__)


2. In the end of the file, add these:

#undef PVLOGGER_LOGMSG
#define PVLOGGER_LOGMSG(IL, LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);



You can play with the macro to filter based on level too.

From http://omappedia.org/wiki/Android_Debugging#Selectively_Enable_Opencore_Debug_Print

2010年5月9日

Removing carriage returns from MS-DOS file

Remove ^M in vim
:1,$s/{Ctrl+V}{Ctrl+M}//g

2010年4月30日

Get man pages for GNU/Linux Development

sudo apt-get install manpages-dev

2010年4月6日

Convert ape to flac in Ubuntu

Install flac and shntool
sudo apt-get install flac
sudo apt-get install shntool
Convert all ape files in current dir to flac
shnconv -o flac *.ape

2009年12月7日

VLC RC Interface

Open RC Interface:
vlc -I rc --rc-host localhost:4444
or
vlc --extraintf rc --rc-host localhost:4444
In the RC interface, type "help" for command info.

Send command:
echo "play" |netcat localhost 4444 -q 0
add -q option for quit time

2009年11月21日

TFTP note

OS: ubuntu 8.04 LTS

1.Install TFTP server package
$sudo apt-get install tftpd-hpa

2009年11月20日

Fuppes Installation

1. Download source (ubuntu) or .exe(win32)

2. Install

2009年11月19日

週休未滿一日

開學後好像都沒有真正過很爽的週六日。

總是會有事情還沒做完,然後買著午餐或晚餐進實驗室拔劍再戰。其實平日如果多花一些時間,也許不用犧牲美好的假期,但我不喜歡整天專心做事的感覺,況且,飛蚊症也會不時出來向我抗議。

2009年11月2日

櫻花掉落的速度

昨天看完秒速五公分,本來沒啥感覺,卻有意想不到的後勁。也許是寫實的作畫風格讓人更容易融入這個充滿瑣事的劇本。

天元突破中誇張的線條還有熱血的叫喊,讓人震撼,而秒速五公分就像是光譜的另一端。隨著片尾的One more time, One more chance歌聲響起,過往的一點一滴浮現,男主角貴樹最後淡淡的一笑讓人玩味,是看開了呢?還是無奈?導演沒有說出答案,剩下的,只有慢慢發酵的鬱悶。

唉,還是看銀魂調整一下心情比較好-o-

2009年9月29日

補記

距離上次回家已經超過一個月了,大大小小的雜事的讓我懶得寫東西。

2009年9月28日

Memo

前陣子無聊作的編kernel筆記居然還蠻常回來reference的

以後開發過程多作一些筆記好了qq

2009年9月21日

Not I Want

「聽說工研院的研發替代役最近要開始了」,室友的一句話點醒了我,但那瞬間我想到的不是快去研究一下,而是現在的程度,有人要嗎?

2009年8月4日

忙著種田開餐廳

好久沒更新了-o-

最近Facebook在實驗室開始流行起來,越來越多人跳進這個坑。編android的時候玩玩小遊戲真的很不錯(事實上根本整天都在玩 XD),今天也把touch screen的問題解決的差不多了,可喜可賀,不過聽到老闆又要我們比賽時臉又青掉了,事情已經夠多了吧-o-

2009年7月20日

家庭電影院三連發

這禮拜一口氣租了三片來看

2009年7月5日

Build your own kernel

The following instructions were done under ubuntu 8.04 with kernel source linux-2.6.30.1

2009年7月2日

Lost chain of memory

記性差到一種莫名其妙的境界,往往前一秒決定好要幹嘛,中間一個分神,下一秒就是不知所措,奇怪,我明明記得有事要做,但就是想不起來。What's wrong with you, kid?如果用鎖鏈來代表記憶與記憶之間的連結,那麼我擁有的,大概就是殘破鏽蝕的鐵鍊。