http://www.ubuntu.com/products/whatisubuntu/serveredition/technologies/ltsp
https://help.ubuntu.com/community/UbuntuLTSP/LTSPQuickInstall
http://superstanwu.blog.ithome.com.tw/post/775/60783/page/1
2010年2月27日 星期六
2010年2月24日 星期三
Wine 小技法
想把 Flash Builder 4 for windows 裝在 Linux 下面 How to install Flash Builder on Linux
其中提到了 winetricks
http://wiki.winehq.org/winetricks
這程式可以選擇要裝什麼 win32 元件,像是 vc runtime, .net runtime
$ wget http://www.kegel.com/wine/winetricks
$ sh winetricks
ZK Framework 相關
Data Binding
http://docs.zkoss.org/wiki/Data_binding#Associate_UI_Components_with_a_Collection
Using scrolling tabs on tabbox
http://www.zkoss.org/smalltalks/scrollingtabs/
ZK Calendars Doc
http://docs.zkoss.org/wiki/ZK_Calendars
ZK Layout
http://docs.zkoss.org/wiki/Layout_and_Windows
ZK 開發文件 (html, pdf)
http://docs.huihoo.com/zk/
• ZK中文開發手冊 3.5.1
• ZK Developer's Guide Version 3.0.4
• ZK Developer's Reference Version 3.0.4
• ZK Quick Start Guide Version 3.0.4
• ZK JSP Tags User Guide Version 1.2
• ZK Studio User Guide Version 0.5.2
• ZK Mobile for Android The Quick Start Guide Version 0.8.1
• ZK Mobile The Quick Start Guide Version 0.8.6
http://docs.zkoss.org/wiki/Data_binding#Associate_UI_Components_with_a_Collection
Using scrolling tabs on tabbox
http://www.zkoss.org/smalltalks/scrollingtabs/
ZK Calendars Doc
http://docs.zkoss.org/wiki/ZK_Calendars
ZK Layout
http://docs.zkoss.org/wiki/Layout_and_Windows
ZK 開發文件 (html, pdf)
http://docs.huihoo.com/zk/
• ZK中文開發手冊 3.5.1
• ZK Developer's Guide Version 3.0.4
• ZK Developer's Reference Version 3.0.4
• ZK Quick Start Guide Version 3.0.4
• ZK JSP Tags User Guide Version 1.2
• ZK Studio User Guide Version 0.5.2
• ZK Mobile for Android The Quick Start Guide Version 0.8.1
• ZK Mobile The Quick Start Guide Version 0.8.6
2010年2月23日 星期二
DropBox 的替代品
DropBox 相當好用,類似的服務也很多 http://alternativeto.net/desktop/ifolder/
若資料比較敏感的話,像是公司的文件,根本不敢隨便上傳...
(雖然沒人會在意我這個小咖的資料)
目前看到 opensource 的方案有 iFolder
但官網釋出的 server 版,"只有" for openSUSE
改天有空再來試試怎麼裝在 Debian/Ubuntu
http://www.x2b4.com/howto/how-to-install-ifolder-on-ubuntu-server/
這樣一來,空間要多少有多少,也不必擔心資料隱私的問題
另外 DropBox 也有提供 CLI 工具
http://wiki.dropbox.com/DropboxAddons/DropboxLinuxCLI
若資料比較敏感的話,像是公司的文件,根本不敢隨便上傳...
(雖然沒人會在意我這個小咖的資料)
目前看到 opensource 的方案有 iFolder
但官網釋出的 server 版,"只有" for openSUSE
改天有空再來試試怎麼裝在 Debian/Ubuntu
http://www.x2b4.com/howto/how-to-install-ifolder-on-ubuntu-server/
這樣一來,空間要多少有多少,也不必擔心資料隱私的問題
另外 DropBox 也有提供 CLI 工具
http://wiki.dropbox.com/DropboxAddons/DropboxLinuxCLI
2010年2月22日 星期一
幾種 Flex Data Binding 的方法
http://blog.flexexamples.com/2007/10/01/data-binding-in-flex/
使用變數 Binding 到 Label/Text
[Bindable]
var str:String;
<s:Label id="clabel" text="Label"/>
<fx:Binding source="{labelText}" destination="clabel.text"/>
<mx:Text text="{labelText}"/>
使用變數 Binding 到 Label/Text
[Bindable]
var str:String;
<s:Label id="clabel" text="Label"/>
<fx:Binding source="{labelText}" destination="clabel.text"/>
<mx:Text text="{labelText}"/>
Java 啟動參數大全
JAVA啟動參數大全之一:標準參數
http://blog.csdn.net/sfdev/archive/2008/01/23/2062042.aspx
JAVA啟動參數大全之二:非標準參數
http://blog.csdn.net/sfdev/archive/2008/01/24/2063464.aspx
JAVA啟動參數大全之三:非Stable參數
http://blog.csdn.net/sfdev/archive/2008/01/24/2063928.aspx
http://blog.csdn.net/sfdev/archive/2008/01/23/2062042.aspx
JAVA啟動參數大全之二:非標準參數
http://blog.csdn.net/sfdev/archive/2008/01/24/2063464.aspx
JAVA啟動參數大全之三:非Stable參數
http://blog.csdn.net/sfdev/archive/2008/01/24/2063928.aspx
HOWTO: Monitor i/o performance
sudo iostat -xcknd 15
http://www.aspdeveloper.net/tiki-index.php?page=Linuxiostat
Read I/Os
http://www.aspdeveloper.net/tiki-index.php?page=Linuxiostat
Read I/Os
- rrqm/s: # read requests merged per second queued for the device
- r/s: Read requests issued to the device (realize requests can be joined together, so you are basically looking at the total of rrqm + r to get total read requests, assuming SOME may not be merged, I'm not 100% sure about that, but at a minium rrqm/s is reads per second)
- rkB/s: Number of kilobytes read from the device per second
- wrqm/s: Write version of rrqm/s
- w/s: Write version of r/s
- wkB/s: Write version of rkB/s
- avgrq-sz: Average size (in sectors) of the requests that were issued to the device. Is the sector size 512 bytes for your device? Where do you check this (I'm not sure without searching, however we're primarily looking for what is relatively busy to either isolate WHY it's busy, or determine what subsystem needs to be upgraded, so I don't care a lot about this column even though it sounds fairly important).
- avgqu-sz: The average queue length of the requests that were issued to the device - This one I do care about more - When things are queued up for the disks they aren't keeping up. Does that matter? That depends on a LOT of factors, is your software WAITING for the disk to complete it's operation? Usually reads that is the case, for writes it could be in a writeback cache and not a big concern.
- await: The average time (in milliseconds) for I/O requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them. - This one again I DO care about. This is even more important than the number in the queue for some applications (for example copying a file, you really don't care about the NEXT item in the queue when you are doing sequential writes). On the other hand if you are a file server and have a million small files you care about this, but at least as importantly you care about how many other requests were pending.
- svctm: The average service time (in milliseconds) for I/O requests that were issued to the device - I view this one as useful for finding if you devices are performing roughly as expected. In this case my demo is using a quite old single disk, I don't doubt it took 11.5ms to seek to another sector, read/write it, and return. If I had a 15k rpm latest generation scsi drive and saw 11.5ms I'd maybe wonder why that was. This will also depend on how much seeking your disk has to do, this number being high is NOT always bad - for example with drives re-ordering read/write operations to make less head movement you could have this number higher on a new drive yet have significantly higher throughput. This probably is confusing, but think about trying to play hot-potatoe with 100 people between point A and B - if your ONLY goal is to get every person to hold the potatoe do you want it just randomly tossed about ONLY to decrease the time it spent in someones hands? Instead moving it so each person only sees it once should decrease your total time to reach all 100 people.
- %util: Percentage of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100%.
2010年2月12日 星期五
忘記 mysql 密碼
mysqld --skip-grant-tables
>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges;
>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges;
Linux Kernel with PAE
http://en.wikipedia.org/wiki/Physical_Address_Extension
Ubuntu
Linux jimmy-desktop 2.6.31-19-generic-pae #56-Ubuntu SMP
Debian
Linux server 2.6.18-4-686-bigmem #1 SMP
Ubuntu
Linux jimmy-desktop 2.6.31-19-generic-pae #56-Ubuntu SMP
Debian
Linux server 2.6.18-4-686-bigmem #1 SMP
2010年2月11日 星期四
Batch command line file conversion with PyODConverter (DOC to PDF)
openoffice + python script
http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html
office 2007 + vbscript
http://www.suodenjoki.dk/us/productions/articles/word2pdf.htm
http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html
office 2007 + vbscript
http://www.suodenjoki.dk/us/productions/articles/word2pdf.htm
2010年2月9日 星期二
2010年2月8日 星期一
TRUNCATE TABLE Syntax (MySQL)
若是 Innodb, 在 5.0.3 之前的 truncate 是一筆一筆把 row 給刪除
之後是先 drop table 再 create table,因為這點,所以要注意權限設定
truncate table 需要有 drop table 的權限。
http://dev.mysql.com/doc/refman/5.0/en/truncate-table.html
之後是先 drop table 再 create table,因為這點,所以要注意權限設定
truncate table 需要有 drop table 的權限。
http://dev.mysql.com/doc/refman/5.0/en/truncate-table.html
2010年2月6日 星期六
2010年2月4日 星期四
NVIDIA Nexus - Visual Studio-based GPU Development
NVIDIA Nexus - Visual Studio-based GPU Development
http://developer.nvidia.com/object/nexus.html
CUDA Toolkit 3.0 beta released, now with public downloads
http://forums.nvidia.com/index.php?showtopic=149959
http://developer.nvidia.com/object/nexus.html
CUDA Toolkit 3.0 beta released, now with public downloads
http://forums.nvidia.com/index.php?showtopic=149959
MySQL Backup/Restore Large Databases/Tables
To dump large tables, you should combine the
http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_quick
--single-transaction
It will allow the live application to use the mysql database as normal without locking any tables and preventing the application to change the database.
In most of case, we have to avoid to use "extended insert" , It will generate too many command line (sql commands)
instead of "mysqldump --extended-insert=FALSE"
MySQL Dump Importer (called BigDump)
http://www.ozerov.de/bigdump.php
In this file, after mysql_connect(), It has to execute "@mysql_query("SET NAMES 'utf8'");" to avoid 亂碼
change the configuration, like below
$linespersession = 600; // lines per session, It's perhaps to avoid "max_packet_size is too small"
$delaypersession = 6000; // how many micro seconds delay after one session
--single-transaction
option with --quick
.http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_quick
--single-transaction
It will allow the live application to use the mysql database as normal without locking any tables and preventing the application to change the database.
In most of case, we have to avoid to use "extended insert" , It will generate too many command line (sql commands)
DO NOT USE "mysqldump --extended-insert", especially huge table!
instead of "mysqldump --extended-insert=FALSE"
$delaypersession = 6000; // how many micro seconds delay after one session
2010年2月2日 星期二
Kohana: The events sequence in the Kohana application
From: http://docs.kohanaphp.com/general/events
From: http://kohana.cn/topic/1000188 (in Kohana 2.3.4)
From: http://kohana.cn/topic/1000188 (in Kohana 2.3.4)
2010年2月1日 星期一
Indent style / Coding Style
the coding style of kohana2
http://dev.kohanaphp.com/wiki/kohana2/CodingStyle
Indent Style
http://en.wikipedia.org/wiki/Indent_style
http://dev.kohanaphp.com/wiki/kohana2/CodingStyle
Indent Style
http://en.wikipedia.org/wiki/Indent_style
Role Based Access Control (R.B.A.C.) for Yii
Srbac is a module for Yii framework.
http://code.google.com/p/srbac/
http://code.google.com/p/srbac/
訂閱:
文章 (Atom)