- 博客(17)
- 问答 (2)
- 收藏
- 关注
原创 css
a标签 希望进入矩形区域的时候就触发,而不是只有在鼠标指针经过文字时才触发鼠标经过的效果,这是就需要设置了a{display:block; height: 1em;}
2013-03-18 23:17:47
109
原创 ruby on rails ubuntu 数据库安装 mysql postgresql
ubuntu mysql 安装sudo apt-get install mysql-serversudo apt-get install libmysqlclient-devubuntu postgresql 安装sudo apt-get install postgresqlsudo apt-get install libpq-dev build-essential...
2012-10-05 17:33:39
170
原创 Linecache19 fails to compile with 1.9.3-head
Linecache19 fails to compile with 1.9.3-head解决办法sudo gem install linecache19 -- --with-ruby-include=/home/qiwenlong/software/ruby-1.9.3-p194sudo gem install ruby-debug19 -- --with-ruby-include...
2012-07-29 23:55:16
124
原创 ubuntu 安装 sqlite3 gem包时报错
ubuntu 安装 sqlite3 gem包时报错 Building native extensions. This could take a while..是因为没有按转sqlite3数据库以及sqlite3-dev通过 sudo apt-get install sqlite3sudo apt-get install libsqlite3-ruby1.9.1sudo ...
2012-07-29 15:57:17
165
原创 rmagick gem包 兼容windows xp 7
rmagick 2.12.0 gem包 兼容windows xp 7之前这个版本的rmagick只是支持在xp下使用,不支持windows7,修改后的gem包见附件唉,文件太大刚好比10M多一点,上传不上来,有需要的留下邮箱,我发吧...
2012-04-16 16:55:54
94
原创 ActionMailer: Hostname not match server certificate
ActionMailer: Hostname not match server certificate 错误的解决办法解决办法:development.rb[color=red]require 'tlsmail'[/color] config.action_mailer.delivery_method = :smtp ActionMailer::Base.smtp_se...
2011-05-26 17:24:44
279
原创 Net::SMTPAuthenticationError (530 5.7.0 Must issue a STARTTLS command first. 23s
在配置发送邮件设置的时候 ActionMailer::Base.smtp_settings = { :address => 'smtp.gmail.com', :port => 587, :domain => 'gmail.com', :authentication => :plain, :user_name => '**...
2011-05-26 17:17:18
1219
原创 改变windows背景颜色保护眼睛
改变windows背景颜色保护眼睛眼科专家指出: 将Window 底色转做”豆沙绿色”可保护眼睛。桌面->右键->属性->外观->高级->项目选择(窗口)、颜色1(L)选择(其它)将色调改为:85。饱和度:123。亮度:205->添加到自定义颜色->在自定义颜色选定确定->确定在win7 下是 控制面板\外观和个性化\个性化\窗口颜色和外观 高级 其中如果是RGB 的话...
2011-05-24 15:55:57
191
原创 Ext.Calendar bad phantom property when loading data from HttpProxy phantom=true
Ext.Calendar 的 phantom的问题[color=red] a great component, but seem there is problem when loading data from remote httpProxy. The record are marked as 'Phantom=true'.The records Should be marked ...
2011-04-08 10:55:07
145
原创 rails 3.0.5 非get 方法 清空session
我使用的rails版本是 3.0.5 的 ,然后使用的是 cookie_session ,现在遇到一个问题:当我使用admin admin 登录之后,打开其他页面访问session的时候都没有问题,可以访问的到http://localhost:3000/users/1/roles 这种url也可以访问的到session但是当我访问以下url的时候 http://localhost...
2011-03-16 11:38:55
154
原创 rake aborted! Mysql::Error: query: not connected: CREATE TABLE `schema_migration
rake aborted! Mysql::Error: query: not connected: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB 解决方式: 拷贝旧版的libmySQL.dll到ruby\bin下
2011-03-14 18:21:53
300
原创 rails3 ActionController::RoutingError (uninitialized constant ApplicationControl
[size=medium]rails3 ActionController::RoutingError (uninitialized constant ApplicationController::LoginSystem)碰到了这个问题,是因为rails3 不进行自动加载lib目录下的自定义module 了需要在config/application.rb文件中# Custom dir...
2011-03-10 09:52:45
590
原创 ERROR NoMethodError: private method `gsub' called for
ERROR NoMethodError: private method `gsub' called for ****:Date这个错误可能除了可能是webrick的问题,也可能是你使用gsub的时候,因为你使用的是 日期类型的变量.gsub 例如:[code="java"]irb(main):001:0> Time.now.gsub('-', '')NoMet...
2011-01-21 11:25:00
444
原创 rails 安装数据库mysql sqlite 包时报错 解决
rails在gem install mysql/sqlite3的时候,如果报以下错误:1、[color=red]Installing sqlite3-ruby (1.3.1) with native extensions/usr/local/lib/site_ruby/1.8/rubygems/installer.rb:483:in`build_extensions': ERROR: Fa...
2011-01-04 22:15:24
153
原创 使用linux配置工作环境的一些日记
1、在文件./bashrc.sh中加入如下语句就可以在命令行中直接执行start_tomcat 和shutdown_tomcat进行执行和关闭程序[align=center] alias start_tomcat='/home/david/Applications/apache-tomcat-6.0.20/bin/startup.sh'alias shutdown_tomcat='/hom...
2011-01-04 14:01:20
199
原创 Called id for nil, which would mistakenly be 4 错误解决之一
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id这种问题如果是在一个事务中,你使用Customer.new的话,然后你又对customer进行一系列的操作,如下示例:然后当你在save的时候就会报以上的错误[color=red] cust...
2010-12-24 16:17:52
152
原创 will_paginate 与 rails3集成时,分页 界面显示不出来
rails 3新增XXS机制,导致html标签在output的时候要进行校验,使用will_paginate的时候会有一些问题,显示不出分页界面,如:<<上一页 1 2 3 下一页>>这里面是由于will_paginate中没有对rails 3的新特性予以支持,需要修改内容 will_paginate\view_helpers.rb中的to_html方法...
2010-11-18 19:59:54
118
空空如也
ruby gsub使用
2011-01-18
ruby 如何把unicode转换为中文字符
2010-12-30
TA创建的收藏夹 TA关注的收藏夹
TA关注的人