`
orcl_zhang
  • 浏览: 243222 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
    晚上睡觉前,看了看这本书.2个午夜一个凌晨加一个晚上,看完了.     做一下记录:     1,尽管大热门时代也许已经是强弩之末,但它对大众观念的影响却仍然挥之不去。当今的媒体和娱乐业仍然是围绕着寻找、投资和创造大热门的模式运转.     注:宣传什么并不重点.重点是能吸引多数人的眼球和争论.     2,长尾的理论的力量.     2.1 生产普及 长尾 数字摄像机; 工具制造者,生产者 桌面音乐和视频编辑软件,博客工具        2.2 传播普及 长尾 亚马逊,eBay,iTunes,Neflix  集合器     2.3 供需相连 长尾 Google,博客,Rhapso ...
1,先看api 引用Method#proc meth.to_proc => prc Returns a Proc object corresponding to this method. prc.to_proc → prc Part of the protocol for converting objects to Proc objects. Instances of class Proc simply return themselves. 2,to_proc经常和&一起使用. 可以把block传递给带block的方法.block的to_proc返回的就是本身. 如果对象自带to ...
周末几个人想去爬山就找路线,好像杭州没有特别高的山吧.这些是网上搜到的,看的眼花缭乱. 实战技巧型: 杭州经典爬山路线推荐+爬山地图 日期:2006-9-19 10:50:49  来源:阳光下论坛 东岳村(上山)——美人峰——龙门山——石 ...
发表于 2009年11月25日 | 分类: ubuntu/debian | 5条评论 现有2台机器 1、服务器192.168.1.112 2、个人机192.168.1.110 要使110无需密码通过ssh登入112 步骤 1、创建密钥 miao@u32-192-168-1-110:~/.ssh$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): (忽略) Enter same passphrase again: (忽略) Your ide ...
Nesting Is Different From Inclusion An internal module has access to all the names in its “parent” module. Here’s an example: irb(main):017:0> module NewModule                    Slithy = 'slithy' irb(main):018:1>                    module NewInnerModule irb(main):019:1>                      ...
                               Regular expressions (“regexps”) match strings. /abc/ =~ "abc"                                When a match is successful, the return value    0 ֒→                             is the position of the first matching character.                                An if ...
========================================================== ``gitosis`` -- software for hosting ``git`` repositories ========================================================== Manage ``git`` repositories, provide access to them over SSH, with tight access control and not needing shell accounts. . ...
model = Resource.model("UserReport"); user_report = model.build({ title: title, public_area: public_area, private_area: private_area, search: search, search_action: search_action, selector_fields: selecto ...
自从railscasts开始讲解rails3后就很久没看了。 偶然看到别人推荐的这个视频Scaling Rails. 感觉很不错,在je里搜了下,scaling rails,没找到,看来没人关注啊。 推荐下。链接http://railslab.newrelic.com/scaling-rails 还有一个相关的blog推荐下,有前几个视频的翻译很讲解,不过是繁体。链接http://blog.xdite.net/?cat=91
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb module ActionController #:nodoc: class Base DEFAULT_RENDER_STATUS_CODE = "200 OK" include StatusCodes cattr_reader :protected_instance_variables # Controller specific instance variabl ...

order by null

mysql> explain select name from t1 where id>100 group by id,name\g; +----+-------------+-------+------+---------------+------+---------+------+------+----------------------------------------------+ | id | select_type | table | type | possible_keys | key  | key_len | ref  | rows | Extra          ...
     宣传片误导了我,影评误导了我,评分误导了我,评价误导了我.      因为之前有很多人推荐,而且对豆瓣的评分一直还是比较信任的,所以抱的期望还是比较大的.      刚看完的时候,觉得题材还行,不错,但是里面很多情节以 ...
一些奇淫技巧 class Object # An elegant way to factor duplication out of options passed to a series of # method calls. Each method called in the block, with the block variable as # the receiver, will have its options merged with the default +options+ hash # provided. Each method called on th ...
http://www.iteye.com/problems/35097 以前问的一个问题,今天遇到一个同样的情况,解决了.把代码贴出来,纪念下. 解决起来其实也是比较简单的,用后台来增加auto_complete的partial,动态生成一个id,每个id不同就可以. controller # add_purchase_tax,增加purchase_tax def add_purchase_tax @purchase_order_marketing = PurchaseOrderMarketing.find_by_id(params[:purchase_order_mar ...

rails 记录

代码里有这样一句 self.purchase_invoices.size log 引用 SQL (0.2ms)   SELECT count(*) AS count_all FROM `purchase_invoices` WHERE (`purchase_invoices`.purchase_order_id = 33) rails是如何实现的呢?
Global site tag (gtag.js) - Google Analytics