Save your dream,Save your life!

2011年7月4日 #

lighttpd installation

Step 1:

check the library libz and prce whether existing

 

Step 2

download from  http://www.lighttpd.net/download/
$ tar -zxvf lighttpd-1.4.18.tar.gz
$ cd lighttpd-1.4.18
 ..... wait for checking,  installing the package which it needs.

 

http://www.cyberciti.biz/tips/installing-and-configuring-lighttpd-webserver-howto.html

posted @ 2011-07-04 11:44 coolesting 阅读(10) 评论(0) 编辑

2011年6月29日 #

Alters the default version of python

 

Alters the default version of python

 

$ sudo ln -sf /usr/bin/python3.1 /usr/bin/python

$ python --version

$ 3.1+

posted @ 2011-06-29 08:49 coolesting 阅读(67) 评论(0) 编辑

2011年4月10日 #

Panel is folded in ubuntu

$ ctrl+alt+f1

 (here , log in with your account)

$ mv ~/.gconf/app/panel  ~/.gconf/app/panel.bak

$ sudo pkill gnone-session

$ ctrl+alt+f7

 

The panel be rebuilding .

posted @ 2011-04-10 01:16 coolesting 阅读(11) 评论(0) 编辑

2011年4月9日 #

move to trash instead of rm command in ubuntu

sudo apt-get install trash-cli  

 

vim ~/.brash_aliases

enter this     alias rm='trash'  (the command trash maybe is trash-put, more detail check the trash-cli document)

then, logout again.

 

test

 

touch tt

mkdir abc

rm tt

rm -rf abc

 

now you can find the tt and abc in trash directory that path is ~/.local/share/Trash/file

posted @ 2011-04-09 12:32 coolesting 阅读(25) 评论(0) 编辑

2011年4月3日 #

HelloWorld for SVN

Section one

Environment:

PC system : ubuntu9.10

Subversion: 1.6.5


The /var/www is project path you need to change 

 

Step1 Installation

sudo apt-get install subversion libapache2-svn



Step2 set the permission and access type

sudo groupadd subversion
sudo mkdir /home/svn/myproject
sudo cd /home/svn
sudo chown -R www-data:subversion myproject
sudo chmod g+rws myproject



now, you can visit it by this link http://localhost/svn/myproject

you need to edit the config of the apache for svn, just check here,
https://help.ubuntu.com/8.04/serverguide/C/subversion.html
In detail of access methods , see link: https://help.ubuntu.com/community/Subversion )

Config the apache
sudo vim /etc/apache2/mods-available/dav_svn.conf

 

<Location /svn/myproject>
<SVNPath /home/svn/myproject>
 AuthType Basic
 AuthName 
"repository myproject"
 AuthUserFile 
/etc/subversion/passwd 

 
<LimitExcept GET PROPFIND OPTIONS REPORT>
  Require valid-user
 
</LimitExcept> 

</Location>
sudo /etc/init.d/apache2 restart












Section two

Step1 create repository and import project
sudo svnadmin create /home/svn/myproject
sudo svn import /var/www/myproject file:///home/svn/myproject -m 'initial import of the phpsse project'


Step2 check out your copy of the project
cd /var/www/
mv myproject myproject.bak

svn checkout file:///home/svn/myproject myproject

now , you could modify and edit the files in this directory(/var/www/myproject)
then , "svn update, svn commit it"

more detail, http://onlamp.com/pub/a/onlamp/2002/10/31/subversion.html?page=2

Step3 How to make directory, rename , delete, make file
cd /var/www/myproject
svn mkdir foo
sudo svn ci -m 'test mkdir'

svn mv foo aoo
sudo svn ci -m 'test rename'

svn del aoo
sudo svn ci -m 'test delete'

touch file.txt
svn add file.txt
sudo svn ci -m 'test for adding a file'

If you wanna know the modification of repository, take this command
svn update
svn ls
svn st -u (svn st -v, or svn st -v -u)
svn log

svn cleanup
(this is will cleanup your working copy in local , it return a message when you commit)

posted @ 2011-04-03 11:47 coolesting 阅读(64) 评论(0) 编辑

2011年4月2日 #

Perfect vim config file

摘要: First ,http://amix.dk/vim/vimrc.htmlSecond,https://github.com/spf13/spf13-vimThird, pressing this command in your terminal . git clone git://github.com/spf13/spf13-vim.git cd spf13-vim git submodule update --init cd ~ mv .vim .vim.old (backup the .vim if you have had this directory) cp spf13-vim/.vi阅读全文

posted @ 2011-04-02 19:21 coolesting 阅读(46) 评论(0) 编辑

2009年3月15日 #

jquery 选中select 的值

摘要: html如下<div id="#pro_type"> <select>.....</select></div>----------------------------------------------------------------------------------------js如下CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$(document).re阅读全文

posted @ 2009-03-15 14:56 coolesting 阅读(458) 评论(0) 编辑

2008年9月19日 #

discuz解决邮件空内容问题!

摘要: 有关DISCUZ论坛新邮件信息显示无效的解决方案以下是论坛接受邮件显示的无效链接的邮件正文: 您好,这封信是由 大学生计算机交流社区 发送的。您收到这封邮件,是因为您订阅的以下主题在最近 24 小时内有了新的回复。如果您并没有访问过我们的论坛,或没有进行上述操作,请忽略这封邮件。您不需要退订或进行其他进一步的操作。----------------------------------------------------------------------主题信息--------------------------------------------------------------------阅读全文

posted @ 2008-09-19 13:31 coolesting 阅读(139) 评论(1) 编辑

2008年8月29日 #

discuz的回复功能_Tomail

摘要: http://www.linuxfly.org/post/149.htm阅读全文

posted @ 2008-08-29 17:06 coolesting 阅读(42) 评论(0) 编辑

2008年6月2日 #

一切都是重构

posted @ 2008-06-02 22:11 coolesting 阅读(44) 评论(0) 编辑