asdone@Blogger
→ 拜託了,我給你三百塊! Firefox only...I think :p
2012年9月20日
2011年9月11日
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
Rename the dir to testlink (Optional, just affect the URL)
3. Install MySQL,PHP5, and related mod
4. Edit httpd.conf in apache
Add:
Restart apache server
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
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
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:
2. In the end of the file, add these:
You can play with the macro to filter based on level too.
From http://omappedia.org/wiki/Android_Debugging#Selectively_Enable_Opencore_Debug_Print
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日
2010年4月30日
訂閱:
文章 (Atom)