上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页

2013年7月19日

改变presentModalView大小

摘要: rc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; rc.modalPresentationStyle = UIModalPresentationFormSheet; [self presentModalViewController:rc animated:YES]; rc.view.superview.frame = CGRectMake(0, 0, 200, 200); 阅读全文

posted @ 2013-07-19 13:09 小浪鼓 阅读(275) 评论(0) 推荐(0) 编辑

2013年7月17日

no such file to load -- bundler/setup

摘要: bundle installrake routesrake aborted!no such file to load -- bundler/setup解决gem install bundler 阅读全文

posted @ 2013-07-17 00:50 小浪鼓 阅读(2678) 评论(0) 推荐(0) 编辑

2013年7月16日

ruby 升级1.8.7到1.9.3

摘要: rvm install ruby 1.9.3 ruby -v如果还是1.8.7.rvm use 1.9.3列出所有版本rvm list设置默认的版本 rvm --default use x.x.x 阅读全文

posted @ 2013-07-16 15:40 小浪鼓 阅读(4277) 评论(2) 推荐(0) 编辑

2013年7月15日

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statemen

摘要: mysql 配置文件目录:/etc/my.cnfroot 密码为空的时候配置文件中下面这句:skip-grant-tablesGRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY '123' WITH GRANT OPTION;执行这句时候错误:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statementmysql> GRANT ALL PRIVILEGES O 阅读全文

posted @ 2013-07-15 01:46 小浪鼓 阅读(71022) 评论(4) 推荐(0) 编辑

Mac OS 安装phpMyAdmin

摘要: http://www.coolestguyplanettech.com/installing-phpmyadmin-on-mac-osx-10-7-lion/ 阅读全文

posted @ 2013-07-15 00:54 小浪鼓 阅读(1145) 评论(0) 推荐(0) 编辑

2013年7月13日

vi 撤销操作

摘要: 'u' : 撤销上一个编辑操作'ctrl + r' : 恢复,即回退前一个命令'U' : 行撤销,撤销所有在前一个编辑行上的操作 阅读全文

posted @ 2013-07-13 12:03 小浪鼓 阅读(737) 评论(0) 推荐(0) 编辑

2013年7月8日

Rails 添加新的运行环境

摘要: Rails自带了development、test和production三个environments 我们可以添加Stagingdatabase.ymlstaging: adapter: mysql database: store_staging user: root password: host: localhost 添加enviromnets/staging.rb# ... config.log_level = :debug # ... 创建数据库mysqladmin create store_staging -u root -p rake db:m... 阅读全文

posted @ 2013-07-08 14:51 小浪鼓 阅读(326) 评论(0) 推荐(0) 编辑

2013年7月2日

Sass::SyntaxError related to active_admin/mixins

摘要: in active_admin.css.sass, change:@import "active_admin/mixins";@import "active_admin/base";to@import "active_admin/mixins.css";@import "active_admin/base.css"; 阅读全文

posted @ 2013-07-02 23:25 小浪鼓 阅读(221) 评论(0) 推荐(0) 编辑

host.conf 文件

摘要: /etc/host.conf文件的作用是设置名称解析时的先后顺序/etc/hosts文件是在使用host解析时,手动的添加的主机记录/etc/relov.conf文件中设置DNS服务器名称以及缺省的域名等在named.conf中设置一个master区域,在/var/named中设置这个区域文件,添加SOA、A记录等信息。 阅读全文

posted @ 2013-07-02 13:36 小浪鼓 阅读(574) 评论(0) 推荐(0) 编辑

2013年7月1日

nginx 重启命令

摘要: sudo /etc/init.d/nginx Usage:/etc/init.d/nginx {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest} 阅读全文

posted @ 2013-07-01 23:51 小浪鼓 阅读(777) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页

导航