随笔分类 -  历史目录

规整目录
摘要:mac默认安装postgresql, 如何让postgresql可以远程访问 mac默认的postgresql目录的存放路径是/usr/local/var/postgres/ 在该目录下,修改两个文件,一个是postgresql.conf, 一个是pg_hba.conf,最后是重启 修改postre 阅读全文
posted @ 2017-12-08 10:48 chzhzh 阅读(3034) 评论(0) 推荐(0)
摘要:在PostgreSQL9.6.5 安装 Postgis2.4.2 出现错误 The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0. po 阅读全文
posted @ 2017-11-30 10:37 chzhzh 阅读(3253) 评论(0) 推荐(0)
摘要:ActiveAdmin::DatabaseHitDuringLoad: Your file, app/models/receptionist.rb (line 3), caused a database error while Active Admin was loading. This is mo 阅读全文
posted @ 2017-09-11 12:04 chzhzh 阅读(230) 评论(0) 推荐(0)
摘要:报错 psql: FATAL: database "XXXX" does not exist Some OSX packages don't create a postgres superuser database account. The superuser is named differentl 阅读全文
posted @ 2017-09-08 18:56 chzhzh 阅读(600) 评论(0) 推荐(0)
摘要:ubuntu 15.04 安装Balsamiq Mockups 3 先ubuntu 15.04 64 bit 安装adobe air 第一步: 下载Adobe AIR[http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstalle 阅读全文
posted @ 2017-06-09 17:44 chzhzh 阅读(836) 评论(0) 推荐(0)
摘要:Rasils View中如何写public中图片的路径: 假设 public下,有目录images,images目录下有123.png图片 1、相对路径, Rails views获取public/images/123.png图片 2、绝对路径, Rails views获取public/images/ 阅读全文
posted @ 2017-06-08 21:23 chzhzh 阅读(909) 评论(0) 推荐(0)
摘要:rails c 如何查看rails c的历史命令? rails c无法直接通过命令查找history,通过它的日志文件 或者 阅读全文
posted @ 2017-03-23 19:04 chzhzh 阅读(284) 评论(0) 推荐(0)
摘要:ubuntu 开发过程好用的软件 "Remarkable" 一个用于书写文档的好工具,包括方便书写数学公式。 安装过程 点击上面“remarkable”下载.deb文件,然后双击会跳转到ubuntun的软件安装中心,点击install进行安装。 sublime text3 配置 自定义快捷键 Pre 阅读全文
posted @ 2016-10-14 10:07 chzhzh 阅读(175) 评论(0) 推荐(0)
摘要:问题: virtualbox-5.0 : Depends: libvpx1 (>= 1.0.0) but it is not installable Recommends: libsdl-ttf2.0-0 but it is not going to be installed 解决: 1、确认 /e 阅读全文
posted @ 2016-04-21 22:51 chzhzh 阅读(681) 评论(0) 推荐(0)
摘要:http://isay.me/2013/07/compile-install-tig.html 阅读全文
posted @ 2016-04-08 10:06 chzhzh 阅读(1752) 评论(0) 推荐(0)
摘要:/home/zhenzhen/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:135:in `gem_original_require': /home/zhenzhen/.r 阅读全文
posted @ 2016-04-01 11:28 chzhzh 阅读(346) 评论(0) 推荐(0)
摘要:/ruby-2.0.0-p643/bin/rails:23:in `load': cannot load such file ruby版本太高或太低,或是没有制定rails版本 阅读全文
posted @ 2016-04-01 10:09 chzhzh 阅读(255) 评论(0) 推荐(0)
摘要:Gem::LoadError: You have already activated rake 10.5.0, but your Gemfile requires rake 10.3.2. Prepending `bundle exec` to your command may solve this 阅读全文
posted @ 2016-04-01 09:56 chzhzh 阅读(438) 评论(0) 推荐(0)
摘要:进入数据库: $sudo -u postgres psql 查看所有的数据库 $\l 切换数据库 $\c 列数据表 $\dt 数据表结构: $\d tblname http://blog.csdn.net/nameoccupied/article/details/9145345 http://blo 阅读全文
posted @ 2016-03-26 23:01 chzhzh 阅读(160) 评论(0) 推荐(0)
摘要:1、安装postgresql$sudo apt-cache search postgresql //查找最新的postgresql包$sudo gem apt-get install postgresql包名 //选择包名进行安装安装postgis$sudo apt-cache search pos 阅读全文
posted @ 2016-03-26 22:57 chzhzh 阅读(1633) 评论(0) 推荐(0)
摘要:背景 postgresql 与postgis ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "geometry_columns" does not exist 确认是否自己在开发项目下数据库已扩展postgre 阅读全文
posted @ 2016-03-26 17:23 chzhzh 阅读(2073) 评论(0) 推荐(0)
摘要:rake db:create/.rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr in PATH, mode 阅读全文
posted @ 2016-03-26 14:55 chzhzh 阅读(322) 评论(0) 推荐(0)
摘要:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/0309/2567.html http://blog.csdn.net/chuchu521/article/details/8052855 http://blog.csdn.net/ 阅读全文
posted @ 2016-03-25 15:00 chzhzh 阅读(1150) 评论(0) 推荐(0)
摘要:Run: $ cd |project| $git init 改变gemfile,把里面的gem ‘sqlite' 改为 group:development,:test do gem 'sqlite3' end group:production do gem 'pg' gem 'rails_12fac 阅读全文
posted @ 2016-03-18 16:59 chzhzh 阅读(224) 评论(0) 推荐(0)
摘要:运行 $git push heroku master 出现以下的问题could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP conne 阅读全文
posted @ 2016-03-18 16:19 chzhzh 阅读(277) 评论(0) 推荐(0)