2010年4月5日 星期一

改动office outlook 2007默认文件夹的存放位置

office outlook 2007 数据文件默认的存放位置是C盘,因为经常动C盘,且时常用影子系统,所以里面的数据一天到晚会清空,导出不是个办法,所以想让它存到其他盘,但在帐号数据文件里只能看不能改文件路径,请问有没有什么方法能够实现。我现在的笨办法是把C:\Document s and Setting\user name\Local Settings\Application Data\Microsoft\Outlook文件夹剪切到其它盘,然后打开Outlook会说找不到pst文件,再定位到新的路径,但另外的E- mail帐号还是会保存到C盘,请问有什么方法能够解决?谢谢。

控制面板→邮件→数据文件,添加一个新的,然后再删除旧的

2010年3月30日 星期二

sar應用詳解

sar一個開放源代碼工具;它由 Sebastien Godard 維護。這個工具也包含於大部分 Linux 發行版本中,可用於當前的 2.4 和 2.6 內核,在red hat Linux 9.0 中是Sysstat 。也可以在其主頁下載,下載鏈接:http://download.stmc.edu.hk/redhat/linux/9/en/os/RedHat/RPMS/sysstat-4.0.7-3.i386.rpm 。Sysstat 包括: I/O 與 CPU 統計資料的工具:iostat、mpstat(用於多處理器性能監測)。和sar 。前面我們介紹了iostat、mpstat。下面重點介紹sar。
sar是System Activity Reporter(系統活動情況報告)的縮寫。顧名思義,sar工具將對系統當前的狀態進行取樣,然後通過計算數據和比例來表達系統的當前運行狀態。它的特點是可以連續對系統取樣,獲得大量的取樣數據;取樣數據和分析的結果都可以存入文件,使用它時消耗的系統資源很小。sar是讀 /proc這個內存文件系統進行採樣來得到數據。sar 從/var/log/sa/sadd 讀取記錄文件的資料。/usr/lib/sa/sadc 負責維護系統活動資料和建立這些記錄文件。sar實際包括兩個shell 程序/usr/lib/sa/sa1 和/usr/lib/sa/sa2。/etc/cron.d/systat 是crontab 的系統文件, 每十分鐘執行sa1程序一次,然後將它的輸出加到記錄文件後面。Sa1 以二進制格式儲存sar 所讀取的資料。/usr/lib/sa/sa2將每天數據寫入文件/var/log/sa/sadd。dd標示每月的日期。
sar的語法如下:
sar [-option] [-o file] t [n]
  它的含義是每隔t秒取樣一次,共取樣n次。其中-o file表示取樣結果將以二進制形式存入文件file中。Option主要選項:
-A 匯總所有的報告
  -a 報告文件讀寫使用情況
  -B 報告附加的緩存的使用情況
  -b 報告緩存的使用情況
  -c 報告系統調用的使用情況
  
  
 
應用實例:
察看內存和交換空間的使用率,使用sar -r。
# sar -r
Linux 2.4.20-8 (www.cao.com) 20050503
12:00:01 AM kbmemfree kbmemused %memused kbmemshrd kbbuffers kbcached
12:10:00 AM 240468 1048252 81.34 0 133724 485772
12:20:00 AM 240508 1048212 81.34 0 134172 485600

08:40:00 PM 934132 354588 27.51 0 26080 185364
Average: 324346 964374 74.83 0 96072 467559
kbmemfree 與 kbmemused 字段分別顯示內存的未使用與已使用空間,後面跟著的是已使用空間的百分比(%memused 字段)。kbbuffers 與 kbcached 字段分別顯示緩衝區與系統全域的資料存取量,單位為 KB。使用 2.4 Linux 核心的系統(例如 Red Hat Linux 9),kbmemshrd 字段一律為零。
sar命令它幾乎可以完成上面介紹的所有命令的功能。sar是目前Linux上最為全面的系統性能分析工具之一,可以從14個大方面對系統的活動進行報告,包括文件的讀寫情況、系統調用的使用情況、串口、CPU效率、內存使用狀況、進程活動及IPC有關的活動等,使用也是較為複雜。sar命令非常複雜,只有通過熟練使用才能掌握。

摘自:http://www.lslnet.com/linux/f/docs1/i16/big5178736.htm

超方便的Tool,將XHTML轉成Javascript

http://accessify.com/tools-and-wizards/developer-tools/html-javascript-convertor/

linux sar tip in rhel4 (centos4) 安裝教學

有時 sar 的指令無法正常顯示 cpu idle, 可以透過更新 sysstat 的套件來解決此狀況.
使用 rhel4 相容版本 sysstat-8.1.5.tar.gz, 也可於官方網站下載最新版本.
wget http://pagesperso-orange.fr/sebastien.godard/sysstat-8.1.5.tar.gz
移除無法正常顯示 cpuidle 的 sysstat 套件.
rpm -e sysstat
編譯 sysstat 原始碼, 並且安裝於 /usr.
tar zxvf sysstat-8.1.5.tar.gz
cd sysstat-8.1.5
./configure --prefix=/usr && make && make install
當 sar 的資料檔案與版本不符, 將會出現以下訊息.
sysstat: Invalid system activity file: /var/log/sa/saXX
需執行以下指令來重建.
rm -rf /var/log/sa/*
/usr/lib/sa/sa1
將 sar 加入 crontab, 定期產生資料.
echo '# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib/sa/sa2 -A' > /etc/cron.d/sysstat

摘自:http://marlboromoo.blogspot.com/2009/06/linux-sar-tip-in-rhel4centos4.html

2010年3月28日 星期日

HOWTO: Install Subversion, Ruby on Rails and Redmine on CentOS5 (& RHEL5)

This HOWTO is written for CentOS 5.2 [updates for 5.3 in purple text]
Replace [FQDN] with either your IP address or the hostname (or FQDN) which you’ll be using to access the interface.
Replace [user] with the username under whom’s home directory the Subversion repository database will be located. e.g. /home/[user]/svn-repos
This HOWTO will be using the following variables:
You already have the “httpd” (apache) package installed
You will be running apache as the user ‘apache’
The subversion repository root folder will be under /home/[user]/subversion/
The vhost’s folder locationg will be /var/www/svn
The subversion repository to be created will be called ‘example-repo’
Install and set up Subversion

1
yum install mod_dav_svn subversion
Add the group [user] to the user apache and make the subversion base URL readable and writable…

1
usermod -aG [user] apache
2
chmod g+x /home/[user]
3
mkdir /home/[user]/subversion
4
chmod g+rwx /home/[user]/subversion
5
chown -R [user]:[user] /home/[user]/subversion
Make the web directory:

1
mkdir /var/www/svn
2
chown apache.apache /var/www/svn
Put the following into /etc/httpd/conf.d/svn.conf (this is for a sub-repo called ‘example-repo’)

01
NameVirtualHost *:80
02

03
DocumentRoot "/var/www/svn"
04
ServerName [FQDN]
05

06
DAV svn
07
SVNPath /home/[user]/subversion/example-repo
08
AuthType Basic
09
AuthName "Subversion repo"
10
AuthUserFile /var/www/passwd
11
Require valid-user
12

13

14

15
allow from all
16
Options +Indexes
17

18

Add an HTTP auth user…

1
htpasswd -cm /var/www/passwd [user]
Create a proper SVN repository

1
cd /home/[user]/subversion
2
su [user] -c "svnadmin create example-repo"
Import any SVN repos by doing:

1
su [user] -c "svnadmin load example-repo < /path/to/repo/dump/file"
Make sure the permissions are correct

1
chmod g+rwx /home/[user]/subversion
2
chown -R [user].[user] /home/[user]
Install Ruby on Rails

*NOTE: Ruby on Rails installation requires the EPEL yum repository (at time of writing).

1
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
Let’s get Ruby up and running first… [NOTE: not on an SElinux environment cba with that]

1
yum install httpd httpd-devel apr make gcc-c++ mysql-server mysql ruby ruby-devel ruby-docs ruby-ri \
2
ruby-libs ruby-mode ruby-tcltk ruby-irb ruby-rdoc fcgi fcgi-devel mod_fcgid rubygems subversion-ruby
Now we’ll install passenger (aka mod_rails)

1
gem install passenger
2
passenger-install-apache2-module
Create and insert this text into /etc/httpd/conf.d/rails.conf (or alternatively edit the existing svn.conf created when we set up subversion)
NOTE:

The below configuration is specific to the installation of redmine (hence the DocumentRoot)
01
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
02
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6
03
PassengerRuby /usr/bin/ruby
04

05
NameVirtualHost *:80
06

07

08
ServerName 192.168.10.17
09
DocumentRoot /var/www/rails/redmine/public
10

Now on to Redmine itself

Get Redmine 0.8 from http://www.redmine.org/wiki/redmine/Download

1
cd /usr/src
2
svn co http://redmine.rubyforge.org/svn/branches/0.8-stable redmine-0.8
3
mkdir /var/www/rails/
4
cd /var/www/rails/
5
cp -r /usr/src/redmine-0.8/ redmine/
6
chown -R apache.apache redmine
7
cd redmine
Create a clean backup of source files

1
tar czf Redmine0.8-clean.tar.gz .
Initialise mySQL:

1
service mysqld start
To secure mysql:

1
mysql_secure_installation
Create a mysql database for redmine…

1
mysql -u[username] -p
At the prompt enter:

1
create database redmine character set utf8;
Quit with:

1
quit
Copy the example database file to the “live” location

1
cd /var/www/rails/redmine
2
cp config/database.yml.example config/database.yml
Enter the appropriate settings for the [production] section ensuring that host is set to 127.0.0.1

1
vim /var/www/rails/redmine/config/database.yml
Set up email

1
cd /var/www/rails/redmine
2
cp config/email.yml.example config/email.yml
Enter the appropriate settings for the [production] section ensuring that “address” is set to the IP address of the SMTP host

1
vim /var/www/rails/redmine/config/email.yml
Install rails for redmine using gem…

1
cd /var/www/rails/redmine/app/
2
gem install -v=2.1.2 rails
Import the redmine database into the live database specified in the above config file

1
cd /var/www/rails/redmine/app/
2
rake db:migrate RAILS_ENV="production"
Install default configuration data in database (this is entirely optional, but recommended).

1
cd /var/www/rails/redmine/app/
2
rake redmine:load_default_data RAILS_ENV="production"
Bring up the testing webserver, once loaded check your config by browsing to http://[FQDN]:3000

1
cd /var/www/rails/redmine/
2
ruby script/server -e production
Make sure your apache config file edits are ok and that the services will start at boot by doing:

1
service httpd configtest
2
service httpd restart
3
chkconfig httpd on
4
chkconfig mysqld on
[Optional:] Add the following to your crontab which will create a database backup in the /home/[user] directory

1
/usr/bin/mysqldump -u -p | gzip > /home/[user]/redmine_`date +%y_%m_%d`.gz
Make your subversion server configuration accessible to redmine by doing the following:

1
mkdir /etc/subversion
2
cp -r /root/.subversion/* /etc/subversion/
3
vim /var/www/rails/redmine/lib/redmine/scm/adapters/subversion_adapter.rb
Change the line:

1
SVN_BIN = "svn"
to:

1
SVN_BIN = "svn --config-dir /etc/subversion"
Then restart apache:

1
service httpd restart


摘自:http://blog.itsmine.co.uk/2009/01/22/howto-install-subversion-and-redmine-on-centos5-rhel5/

2010年3月26日 星期五

不推薦難吃又很丑的數位蛋糕網Digi

話說小寶貝快要週歲了

想說去買個蛋糕網小寶貝慶生,於是便到www.babyhome.com.tw(BBH)去找蛋糕的資訊

看到有一位媽媽推廌數位蛋糕網Digi的蛋糕 (我想應該是置入性行銷,他們自家員工自已推廌的吧!!)

自已好傻好天真的也去訂了這家很貴、很難吃,重點是很不用心在製作的蛋糕....真的是氣死自已

下面是數位蛋糕的所賣的產品 (圖看起來很清晰)


以下是我們家的小寶貝


下面這一張是放到蛋糕的成品 (慘不忍睹,看了很難過,跟預期的差很多)


打電話問他們客服,怎麼跟商品差這麼多

結果他們回答:「我們提供的蛋糕上的照片就這樣的, 主要畫面有看到就ok, 不會特別去做美工處理」~~

真的是無言呀...要做這種生意,蛋糕上的照片要美美的,這個應該是基本的吧,

然而你們的訂單頁放這麼美的照片,和實品卻相差這麼多,這樣子簡值是欺騙消費者的行為!!

原本是很有紀念價值的週歲生日,這麼丑的蛋糕完全搞砸了氣氛,照糕吃不完,也不好意思拿給同事吃,因為真的很難吃!

我雖然被騙了,寫這篇文章,主要是希望各位消費者不要重滔覆辙,繼續被這種不良的商家欺騙...

2010年3月25日 星期四

購買DV-530後的使用得,強烈不推薦大同 Taitung DVD Player(DVD播放機)

話說週末到大X發去買DVD播放機,

比較了很久以後,

基於之前對大同公司的印象很好,大同電鍋的品質很棒,

大同在國內也算是有一定的品牌力,

所以就選了大同的DV-530....

回家以後,就把DVD播放器裝了起來,試用了一下都沒有問題,當下也很滿意。

但沒有到三天後卻發生了一件很離譜的事情,DVD機的揺控器壞掉了。

沒錯,各位沒有看錯,「

三天後,DVD機的揺控器壞掉了



當下馬上聯絡大同的客服,並把我的妝況描述給他們的客服人員。

更扯的是客服聽了我的問題後,好像對於這種事情是很事空見慣的事,很輕描淡寫的叫我拿回去大X發換貨

完全不想要消除我對大同產品品質的質疑,一直叫我趕快在七天內去換貨

還說揺控器本來就是消耗品,不在保固範圍內,如果七天內沒有換貨的話,就要自費去買一個

哇里咧..我才買三天而已耶....你們的"耗材"會不會太不堪使用了

我想這之後不會再買大同的產品了....對大同這品牌真是失望透了

wibiya widget