自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (2)
  • 收藏
  • 关注

转载 ubuntu wine qq

终于在linux上用wine装上qq了,以前在debian下怎么装都装不上,现在总算在ubuntu下安装成功,可以跟web qq拜拜了。写这篇文章的时间是2011年11月9日。安装参考的这篇文章: http://www.houzi.in/post/Ubuntu-Wine-QQ.html但由于winetricks脚本中的3个安装文件下载不到或者下载不了,找不到的文件通过google找到,然后手

2012-03-28 17:18:46 1537

转载 ubuntu wine rtx

转载本站文章请注明,转载自:扶凯[http://www.php-oa.com]本文链接: http://www.php-oa.com/2011/01/06/linux-wine-rtx.html研究 RTX 在 Ubuntu 下使用 Wine 来跑,就我研究的最多最多了,最开始的使用方法和帖子 使用Wine来运行RTX的方法 还有 ubuntu 论坛上 使用 Wine 来完美运

2012-03-28 16:51:00 1350

原创 rails and clound foundry

adama:code (master) robertjenkins$ vmc pushWould you like to deploy from the current directory? [Yn]: yApplication Name: grid_siteApplication Deployed URL [grid_site.cloudfoundry.com]: Detecte

2012-03-27 10:24:11 1336 3

转载 no such file to load -- readline

安装rails后进入控制台出现如题错误:/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)          from /usr/local/lib/ruby/1.8/irb/completion.rb:10          fr

2012-03-22 21:51:10 635

转载 Failed to build gem native extension

Building native extensions. This could take a while...ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension.ruby extconf.rb install

2012-03-19 20:41:32 2122

转载 LoadError (no such file to load — openssl)

LoadError (no such file to load — openssl)这是因为编译时没有加上openssl,要重新安装ruby才行。如下:1rvm pkg installopensslrvm pkg install iconv (older format - rvm package install iconv)

2012-03-19 20:20:59 895

转载 Rails 3: Passenger can't find git gems || gem is not checkout Please run bundle install

ails 3.0.0, Passenger 2.2.15:Create a new Rails projectAdd gem 'paperclip', :git => 'git://github.com/lmumar/paperclip.git', :branch => 'rails3'to your GemfileDo bundle installEverything OK, start

2012-03-16 16:26:05 1177

转载 回调方法应用 及 引入到模块方法应用

1: http://ruby-china.org/topics/413module YourPlugin module Mixin def xxx_attr(attr) attr = attr.to_s self.class_eval(%Q{def #{attr} #...enddef #{attr}=(value) #...end

2012-03-16 11:06:42 501

转载 ruby和rails中的回调函数

Ruby中Class,Object,Module这三个类定义了一些回调方法,这些方法不是默认的不过为一个类模块获对象定义了这些方法,当特定的事件发生时,将调用这些回调和钩子方法。这些回调方法一般以"ed"结尾。特定事件是指:调用一个不存的对象方法(method_missing)模块被混含(included/extended)类被继承(inherited)类或模块定义实例方法(met

2012-03-16 10:13:36 932

转载 删除所有.svn目录

当使用了svn版本控制系统后每个目录下都会有一个.svn目录存在,开发完当交付产品或者上传到服务器时一般要把这些目录删除,这里总结了一下在linux和win下的办法。一、在linux下删除这些目录是很简单的,命令如下 find . -type d -name ".svn"|xargs rm -rf或者find . -type d -iname ".svn" -exec rm -rf

2012-03-14 12:48:49 320

转载 ShopQi 搜藏下

ShopQi上线内测了,旨在帮助企业和个人快速建立自己的网上商店。只需3分钟,注册账号、选择商店皮肤、上传商品,就开始了。网址:www.shopqi.com大家有空看看,欢迎意见和建议,或者反馈一下网站速度ShopQi基于rails3开发,完全开源,如果对源码感兴趣,github吧http://github.com/saberma/shopqi

2012-03-13 17:40:51 467

转载 rails3 新特性 和 RJS评论

rails 3.0是2010年8月份发布的。迄今为止,3.0已历经多个tiny版到了3.0.8。3.1已经放出rc4,看起来离正式版已为期不远。相对于2系,3系还是有一些令人惊喜的变化,而且在架构上也规范和严整了许多。3.1中更是又加入了几个颇为有趣的特性。我们的项目一直都是紧跟rails新版,很欣慰能够毫无道德压力地做一个喜新厌旧常换常新的男人。但什么都追新也吃了不少小苦头,不过仍然死不悔改,大

2012-03-13 13:36:46 1559

转载 rails3项目解析——redis

在当前的web应用中,尤其是互动概念越来越大行其道的今天,为了加快网站的反应速度,提高用户体验,有些操作不能等到所有的后台处理完成之后再展现给用户,因此需要引入异步任务机制。典型的应用场景如用户注册完成之后的确认邮件发送,如果等邮件发送成功再给用户返回确认信息,这个时间间隔在用户体验上是难以接受的。另外,由于用户量和数据量的庞大,某些数据在平时只能做增量处理,需要在例如凌晨负载较小时对数据进行集中

2012-03-13 13:34:57 1042

转载 rails will_paginate ajax

http://www.tricksonrails.com/2010/04/rails3-and-will_paginate-doing-easy-remote-links-rails3-tricks-02/As you know, Rails3 use only UJS (unobtrusive javascript), so for every remote link, Rail

2012-03-13 12:30:39 791

转载 项目摘抄

belongs_to :user, :inverse_of => :topics  counter_cache :name => :user, :inverse_of => :topics受保护属性,不能接受页面参数 attr_protected :user_id scope :last_actived, desc("replied_at").desc("c

2012-03-12 20:01:06 467

原创 Rails 3 to_s(:db) when database time is NOT UTC

about ActiveRecord’s default_timezone setting.rails31>> Time.now.to_s(:db)=> "2011-09-23 03:02:52"rails31>> 1.second.ago.to_s(:db)=> "2011-09-23 10:02:59"WHAT??? I know that these are 2 differ

2012-03-12 17:25:54 851

原创 cant install nokogiri gem, “libxml/parser.h” not found

sudo apt-get install libxml2-dev libxslt-dev

2012-03-12 15:04:06 454

转载 gem install eventmachine fail

I had a similar issue on Ubuntu 11.10 installing eventmachine.The difference being (near the end of the logs)make: g++: Command not foundinstead of make: I.: Command not foundThis issue is

2012-03-11 15:10:27 681

转载 rails导出excel插件 spreadsheet的标准使用

ExcelRailsRubyWindowsBlogupdate (2011/4/29) :Rails 3.0.7 ruby 1.9.2 spreadsheet 0.6.5.4可以用update(2010/8/29):一年之后本文出了个后继篇,是关于Rails的excel导入,导出的一些插件介绍诸位看官,如果用到请赏脸移步参考在Rails项目中导入excel 导出exce

2012-03-09 10:10:21 1796

转载 RubyGem nokogiri failed to install – libxslt is missing – Error installing nokogiri

RubyGem nokogiri failed to install – libxslt is missing – Error installing nokogiriHad trouble installing nokogiri until I installed dependencies.libxslt is missing#orlibxml2sudo apt-get i

2012-03-08 09:35:21 1087

转载 linux fcitx4

http://wiki.ubuntu.org.cn/Fcitx Fcitx──小企鹅输入法:Free Chinese Input Toy for X是一个以GPL方式发布的、基于XIM的简体中文输入法集合(原为G五笔),包括五笔、五笔拼音、二笔、仓颉、晚风、冰蟾全息、拼音(全拼和双拼)、区位以及码表输入模块。Fcitx 4是新版,各方面都比老版强很多。目录[

2012-03-02 23:37:29 585

rework 中文 rework 英文

rework 中 英 双语 Jason Fried

2012-11-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除