Rails: attr_accessor vs. attr_accessible
In RoR, what is the difference between attr_accessor and attr_accessible. From my understanding, using attr_accessor is used to create getter and setter methods for that variable, so that we can access...
View ArticleRails has_many :through Find by Extra Attributes in Join Model
a good post from : http://stackoverflow.com/questions/408872/rails-has-many-through-find-by-extra-attributes-in-join-model New to both Ruby and Rails but I’m book educated by now (which apparently...
View ArticleApp icon size for iOS 7
from: http://blog.manbolo.com/2013/08/15/new-metrics-for-ios-7-app-icons There are some change in the icon metrics for iOS 7 that are worth noted. Number of characters in app icon name TLTR: the...
View Article卓有成效的敏捷开发流程
from: http://blog.sina.com.cn/s/blog_48258fbe0100eehi.html 随着带的团队做的事情越来越多, 发布的产品也越来越多, 关于软件开发的流程的思考也越来越多.前段时间的高效虚拟自适应团队是在历经困难后磨练出来的方法的总结, 在此基础上,又经过几个版本发布的洗礼,对之前的认识又有了更新,更深入的看法. 在此特提炼出一套方法论, 供大家参考....
View Article敏捷开发流程总结
from: http://blog.csdn.net/alvanchen/article/details/5749872 Agile——敏捷开发,作为CMM神话崩溃后被引入的一套新的软件开发模式,这几年来被广泛引起关注,并被寄予厚望。敏捷开发在其他业界的应用是否理想不得而知,但以下总结了我所在公司的敏捷开发试验,希望可以达到管中窥豹的目的。 敏捷开发宣言—— 个体和交互 胜过 过程和工具...
View ArticleScrum工具大比拼—流行Scrum工具一网打尽
from: http://scrumxp.blogspot.ca/2008/09/scrum-scrum.html 白板 最直接的方式,用于每天的tracking,还是非常不错的,但是对Product Backlog支持明显不够Excel 我们最初也用过,主要是成员多的情况下,修改时会相互冲突,不好同步。。可以参考我写的这个文章[scrum工具]用excel表格工具实现Scrum ScrumWiki...
View Article什么是敏捷开发方法?什么是SCRUM?
from: http://www.cnblogs.com/xh831213/archive/2008/05/20/1203455.html 有人在这个字面上下功夫,说敏捷就是反应要灵敏,动作要快捷;有人还在字面上进行延伸,说敏捷就是又好又快,或者就是多快好省;有人说敏捷就是光写代码不写文档;有人觉得敏捷就是没有制度,管理松散的工作方式;有人觉得只要敏捷了,就代表高软件交付水平。...
View Article卓越网商品数据分级抓取
from: http://www.gooseeker.com/cn/node/document/metaseeker/cookbookv4/multilayers.html 前面我们已经讲解了当当网和京东商城的抓取案例: 当当百货价格抓取 京东商城价格抓取 要部署商品比价系统或者竞争情报分析平台,显然还需要抓取更多网站的商品价格。本文讲解卓越网站的抓取方案。...
View ArticleRails: Controller Helper_method
helper_method is useful when the functionality is something that’s used between both the controller and the view. A good example is something like current_user. If the method deals more with controller...
View ArticleRails validate uniqueness of multiple columns?
Is there a rails-way way to validate that an actual record is unique and not just a column? For example, a friendship model / table should not be able to have multiple identical records like: user_id:...
View ArticleHow to uninstall PostgreSQL
Automatic Uninstall: In the installation directory, there will be a uninstall-postgresql.app file. Executing (double clicking) that will uninstall the PostgreSQL installation. Manual Uninstall: Stop...
View ArticleHow to Install Command Line Tools In OSX 10.9 Mavericks
from: http://www.computersnyou.com/2025/2013/06/install-command-line-tools-in-osx-10-9-mavericks-how-to/ Installing command line tools in OSX 10.9 Mavericks changes slightly than previous versions of...
View ArticleRails: Could not find a JavaScript runtime.
I could not find a JavaScript runtime. See sstephenson/ExecJS (GitHub) for a list of available runtimes (ExecJS::RuntimeUnavailable). Solution: In your Gem file, write gem 'execjs' gem 'therubyracer'...
View ArticleRuby on Rails FAQ
from: http://momosuyu.iteye.com/blog/2033980 1 ruby是什么? Ruby,一种为简单快捷面向对象编程而创的脚本语言,它综合了Perl,Python,Java等语言的特 点写成,有强大的文字处理能力,简单的语法,并且完全的面向对象。同时,Ruby是解释型语言,不需编译即可快捷地编程。Ruby由日本的 Yukihiro...
View ArticleHow to freaking deploy on CloudBees, CloudFoundry, Heroku, Windows Azure,...
from: http://osintegrators.com/node/145 Introduction The following are the installation notes/instructions that correspond with our article in Infoworld entitled “Which Freaking PaaS Should I Use?“....
View ArticleRails Transactions
Question: I have an example Action in a Controller. def some_action product =Product.new product.name ="namepro"if product.save client.update_attribute(:product_id,product.id)endend How to add...
View ArticleAuditing and model lifecycle management for instances and their associations?
from: http://stackoverflow.com/questions/1615977/auditing-and-model-lifecycle-management-for-instances-and-their-associations CRUD operations must be logged, including what the operation was, who the...
View ArticleRails practice: use after_commit
A relational database, like mysql, provides transactions to wrap several operations in one unit, make them all pass or all fail. All isolation levels except READ UNCOMMITTED don’t allow read data...
View ArticleDifferent Ways to Set Attributes in ActiveRec
Rails 4 allows the developer to change ActiveRecord attributes in various ways. Each one does it slightly differently with sometimes unique side-effects. It’s important you understand which method to...
View Article苹果的编程语言——Swift简介
Thanks Lucida for his work. http://zh.lucida.me/blog/an-introduction-to-swift/ 关于 这篇文章简要介绍了苹果于WWDC 2014发布的编程语言——Swift。 原文作者: Lucida Blog 新浪微博 豆瓣 转载前请保留出处链接,谢谢。 前言 在这里我认为有必要提一下Bret Victor的Inventing on...
View Article
More Pages to Explore .....