`
文章列表
git checkout 85e079c72a357f15b4f76ff07fb72c43291fabb9 images/loading.gif   红色部分为commit id
push new created branch to remote: git push origin newbranch   delete local branch: git branch newbranch -d   delete remote branch: git push origin :newbranch   pull branch from remote: git pull origin newbranch
此错误一般发生在第二次安装mysql的情况下(原来有mysql,卸载后重装) 解决办法: 1、卸载原来的mysql 2、删除c:\users\all users\mysql目录 3、安装mysql。这次安装应该可以成功。   参考: http://bugs.mysql.com/bug.php?id=53515

apt-get的更新源

使用apt-get安装软件时,可能发生not found,404错误,修改更新源可能可以解决问题。 1, vi /etc/apt/source.list,把下面内容copy到source.list中 2, apt-get update   deb http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse deb-src http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse deb http://mir ...
增加环境变量:http_proxy=http://xx.com
在conf/openfire.xml中增加:   <connectionProvider>      <className>org.jivesoftware.database.DefaultConnectionProvider</className>    </connectionProvider>     <database>      <defaultProvider>        <driver>com.mysql.jdbc.Driver</driver>         & ...
1. 查看mysql状态:service mysql status (查看所有服务的状态: service --status-all) 2. 启动mysq: service mysql start 3. 关闭mysql: service mysql stop 4. 创建数据库 CREATE DATABASE IF NOT EXISTS my_db default charset utf8 COLLATE utf8_general_ci; 5. 执行sql文件 ...

删除git的submodule

    博客分类:
  • git
Delete the relevant section from the .gitmodules file. Delete the relevant section from .git/config. Run git rm --cached path_to_submodule (no trailing slash). Delete the relevent folder in .git/modules.
1. openfire的UI分3级:tab, sidebar,item,sidebar实际上是第二层tab。 一般插件都出现在server tab下面,所以,plugin.xml配置中,tab的id一定要是“tab-server”   2. 自定义的servlet需要定义在web-custom.xml中,并且:url-pattern中不能有大写字母!!!!
1, 在apache的配置文件中增加:   AddType plain/text .abc AddEncoding gzip .abc     其中:.abc为压缩文件的后缀, 压缩文件必须是正确的gzip格式   2,请求:   $.get('abc.abc',function(data){ $('body').text(data); });        
localhost的地址:10.0.2.2
1、分别下载openfire, strophe, apache   2、配置apache为反向代理: 2.1 加载如下的mod:mod_proxy,mod_proxy_http 2.2 配置代理: ProxyRequests Off ProxyPass /strophejs/examples/http-bind/ http://localhost:7070/http-bind/ ProxyPassReverse /strophejs/examples/http-bind/ http://localhost:7070/http-bind/   3、在openfire中 ...
1、查看被删除的文件的历史  git log -- src/xxx/filename 这个命令显示此文件的所有修改历史   2、查看特定版本的内容  git show 0f174130aa54300e2d372f41fb179d0a9d49ce7f:src/xxx/filename 这个命令显示指定版本的文件内容,其中红色部分是第一个命令输出结果中的某一个提交id
http://phrogz.net/css/vertical-align/index.html

ubuntu下安装ftp服务器

 
1. 安装vsftpd apt-get install vsftpd 2.安装完后,打开 /etc/shells,增加/bin/false(ftp用户的shell) 3. 默认用户名/密码:ftp/ftp 4. 配置: 打开/etc/vsftpd.conf,做如下配置: local_enable=YES,允许本地用户登录; anonymous
Global site tag (gtag.js) - Google Analytics