摘要:1通过git st 查看已经修改的文件和没记录的文件。2.通过git add 将没记录的文件添加到git库中。比如新增了文件test.php,可以通过git add test.php将test.php加到库中,也可通过git add * 将所有新增文件添加到库中。3.通过git commit -a 将所有改动提交到库中。4.通过git pull 将远程库中的代码下到本地, 如果有冲突:则需要将冲突的代码进行处理完后重新调用 git commit -a.5.通过git push将代码上传到远程库。
阅读全文
摘要:first add to new line in the /etc/apache2/httpd.conf:UserDir workspace/webPagethen if you type localhost/~liqi/test.html, this would display the web page in the /home/liqi/workspace/webPage/test.html.now add the UserDir module to apache2sudo a2enmod userdirthen restart apache2, it works!
阅读全文
摘要:参考网址,请猛击这里:http://connectwww.com/how-to-install-and-configure-apachephpmysql-and-phpmyadmin-on-ubuntu/727/首先安装apache2:sudo apt-get install apache2再安装mysql:sudo apt-get install mysql-server再安装php:sudo apt-get install php5 libapache2-mod-php5 php5-mysql然后安装phpmyadmin:sudo apt-get install phpmyadmin拷贝配
阅读全文
摘要:我用的是ubuntu系统,首先安装libnss3-tools:$sudo apt-get install libnss3-tools再通过下面命令导入证书:$ certutil -d sql:$HOME/.pki/nssdb -A -t TC -n "goagent" -i ~/google_appengine/goagent/local/CA.crt 完成。修改2012.6.17:certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n GoAgent -i ~/Downloads/goagent/local/CA
阅读全文
摘要:最近在学习python,在看完python各种神一样的表达式之后,来到了python的面向对象部分,于是,一直在困扰我的问题又闪现出来:为什么要使用面向对象编程?脑海中拼命的回顾,C++,Java,还是只有基本的语法,关于为什么还是一直没有答案,于是谷歌了一下,这里有几篇比较好的解释: 1.http://mianshi.fenzhi.com/post/532.html 2.http://blog.csdn.net/Crazy_Dreamer/article/details/1567909 3.http://wiki.answers.com/Q/Benefits_of_object_o...
阅读全文