上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 41 下一页
摘要: http://docs.mongodb.org/manual/reference/command/renameCollection/db.source-namespace.renameCollection( "target" )比如把users 替换成 all_usersdb.users.renam... 阅读全文
posted @ 2014-06-13 16:00 冰凌花花~ 阅读(1550) 评论(0) 推荐(0) 编辑
摘要: http://guides.rubyonrails.org/asset_pipeline.htmlRails 官方的 Assets Pipeline 文档,解释了 Rails 中对静态资源(javascript, css 以及图片)的管理方式: 0, :title => "修改"), edit_pa... 阅读全文
posted @ 2014-06-11 21:32 冰凌花花~ 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Execute shell commandsThere are a number of different ways to run shell commands from Ruby.TheexeccommandKernel#execreplaces the current process and r... 阅读全文
posted @ 2014-06-11 21:00 冰凌花花~ 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 今天遇到了个小问题,console里没有报错,但是表单不能提交,猜测是验证的问题,后来跟PP确认了下.+ validate_virtual_name_exists = (value, element) ->+ result = value != null && value != ''... 阅读全文
posted @ 2014-06-10 19:20 冰凌花花~ 阅读(150) 评论(0) 推荐(0) 编辑
摘要: /workspace/ott_app_store:fetch-xml$ git branch edit_package_page/workspace/ott_app_store:fetch-xml$ git checkout masterSwitched to branch 'master'/wor... 阅读全文
posted @ 2014-06-09 16:49 冰凌花花~ 阅读(1456) 评论(0) 推荐(0) 编辑
摘要: vim ~/.bashrc# git branch show configurationPS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ "现在重新打开一个终端,就能看到所在的分支啦. 阅读全文
posted @ 2014-06-09 16:45 冰凌花花~ 阅读(356) 评论(0) 推荐(0) 编辑
摘要: django程序的html页面中form的method='post'的时候报错Forbidden (403) CSRF verification failed. Request aborted.Help Reason given for failure: CSRF token missing or ... 阅读全文
posted @ 2014-06-08 23:55 冰凌花花~ 阅读(927) 评论(0) 推荐(0) 编辑
摘要: $django-admin.py startproject web2$cd web2/$python manage.py startapp blog$vim web2/settings.py 注意settings.py以下两个部分,首先要配置数据库,其次要在INSTALLED_APP里添加刚才新建的... 阅读全文
posted @ 2014-06-07 23:01 冰凌花花~ 阅读(340) 评论(0) 推荐(0) 编辑
摘要: $mysqlERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)$service mysqld status-bash: service: command not fo... 阅读全文
posted @ 2014-06-07 21:52 冰凌花花~ 阅读(209) 评论(0) 推荐(0) 编辑
摘要: angela@angeladeMacBook-Air:/data/db$mongoMongoDB shell version: 2.6.1connecting to: test2014-06-07T11:13:21.349+0800 warning: Failed to connect to 127... 阅读全文
posted @ 2014-06-07 11:30 冰凌花花~ 阅读(1832) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 41 下一页