2007年11月13日

正文内容加载中...
posted @ 2007-11-13 17:23 Wade 阅读(1207) 评论(0) 编辑
摘要: 1. simple join two tables purpose:generate sql like: select * from photo p left join artist a on p.artist_id = a.artist_id where a.genre = 'something' and p.genre = 'something'code: if(!CriteriaUtil:...阅读全文
posted @ 2007-11-13 15:49 Wade 阅读(703) 评论(0) 编辑
摘要: Create a file backup_db.sh, and paste the following contents:#get the first parameter as the database nameDATABASE=$1#if no database specified, then you can set the default oneif [ -z $DATABASE ]; the...阅读全文
posted @ 2007-11-13 15:49 Wade 阅读(293) 评论(0) 编辑
摘要: #server-id = 1log-bin = /var/log/mysql/mysql-bin.log#if you set the expire_logs_days = x var in the [mysqld] section of your my.cnf it will automatically rotate your bin logs after x days.expire_logs_...阅读全文
posted @ 2007-11-13 15:49 Wade 阅读(477) 评论(0) 编辑

2007年9月25日

摘要: edit file: /etc/network/interfaces the original content should be something like:# The primary network interfaceauto eth0iface eth0 inet staticaddress 192.168.0.5netmask 255.255.255.0network 192.168....阅读全文
posted @ 2007-09-25 14:37 Wade 阅读(358) 评论(0) 编辑

2007年8月30日

摘要: Correct Implementation of #importIt is important to invoke ADO correctly in your program, or you can have compiler errors. The following code demonstrates the correct way to use #import with Msado10.d...阅读全文
posted @ 2007-08-30 18:39 Wade 阅读(1393) 评论(0) 编辑
摘要: Show how to add script to the client in aspx file. /// <param name="rbl">RadioButtonList to apply script to</param>/// <param name="page">The Page the script is going to be appended ...阅读全文
posted @ 2007-08-30 18:34 Wade 阅读(317) 评论(0) 编辑
摘要: Add Command here to right button click in explore (Windows XP)http://www.cnblogs.com/Files/taotao/CMDHere.reg.css Download the file, and remove the .css from the filename, then the file is CMDHere.reg...阅读全文
posted @ 2007-08-30 18:15 Wade 阅读(345) 评论(0) 编辑
摘要: Set readonly for input text document.getElementById("ctrl_id").readOnly = true; //pay attention to the readOnly, it's case sensitive.Set option to unable toselect for select control:<option value=...阅读全文
posted @ 2007-08-30 14:31 Wade 阅读(280) 评论(0) 编辑

2007年8月29日

摘要: Goal:Use a ComboBox to select an item, andsave the selected item's value to some textboxes. each control is using databinding.Problems:1. set control's value when comboBox changed, after the comboBox ...阅读全文
posted @ 2007-08-29 10:31 Wade 阅读(541) 评论(0) 编辑

导航

公告