2013年11月3日
摘要: http://ihower.tw/rails3/deployment.htmlhttp://blog.csdn.net/jrckkyy/article/details/2501136http://stackoverflow.com/questions/12444297/deploying-rails-with-capistrano-nginx-passenger-mysql-to-vps 阅读全文
posted @ 2013-11-03 23:43 soulspirit 阅读(117) 评论(0) 推荐(0) 编辑
  2013年10月22日
摘要: nil? empty? blank?的区别1nil?:check if it exists and that it is valid.In ruby,all classes inherit from the Object class.nil? is a method of Object.跟其他语言不同的是,其他语言会把nil当成是null,但是nil在ruby中指向的是一个class NilClass。所以nil.nil?=truecool_people = {:conan_the_destroyer => "man", :red_sonja => " 阅读全文
posted @ 2013-10-22 12:59 soulspirit 阅读(356) 评论(0) 推荐(0) 编辑
  2013年9月24日
摘要: 手把手教你学习ROR-3.asset的那些事1 What is asset pipeline?Asset pipeline is the whole process of how Rails handle with css,javascript and image...2 How to use asset pipeline?A enable/disable asset pipelineThe asset pipeline is a core feature pf Rails.So you can just use it.And you also can disabled it.It can b 阅读全文
posted @ 2013-09-24 16:00 soulspirit 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 手把手教你学习ROR-2.View中的locals,as,object,layout以及FormHelperhttp://api.rubyonrails.org/classes/ActionView/PartialRenderer.html1 locals,objects,as在partial中的使用locals:In a template for Advertise#accoutthat means:render “advertiser/_account.html.erb” with @buyer passed in as the local variable accountas:用于更换名 阅读全文
posted @ 2013-09-24 13:59 soulspirit 阅读(309) 评论(0) 推荐(0) 编辑
  2013年9月23日
摘要: 手把手教你学习ROR-1.Haml1 What is Haml?Haml是对传统XHTML的生成方式的另一种表现形式。Haml让你撇开臃肿丑陋的模板,将它们以优雅整洁的代码代替。2 How to get Haml?Standard GemMost people will just want the standard stable Haml gem. To install this:gem install hamlPre-Release GemTo get the latest and greatest Haml goodness, you can install the prerelease 阅读全文
posted @ 2013-09-23 18:15 soulspirit 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 建个随笔,以后看看能留下几种英文原文:10 Programming Languages That Will Change The IT World 这里要说的都是革新,说这些的目的就是要保持关注最新技术。如果你是一个程序员,想要探寻未来技术,那这篇文章就是你的必读之选。我们这里列出了 10 种编程语言,10 种将会改变 IT 世界工作方式的编程语言。这些语言已经在开始改变 IT 界的景象。看看吧: Dart 语言 这种语言由谷歌制造,用来替代 Javascript,弥补 Javascript 在 web 应用中大量使用时出现的缺点。对于 Dart 语言,谷歌的希望是,它将成为 web 编... 阅读全文
posted @ 2013-09-23 10:47 soulspirit 阅读(283) 评论(0) 推荐(1) 编辑
  2013年9月22日
摘要: The Security LearningP:PrevalenceW:Weakness DetectabilityI:Impact1 OWASPA Injection:SQL,OS,LDAP injection. (P:common,W:Average,I:Severe)B Cross-Site Scripting (XSS)(P:Very WideSpread, W:Easy,I:Moderate):恶意攻击者往Web页面里插入恶意html代码,当用户浏览该页之时,嵌入其中Web里面的html代码会被执行,从而达到恶意用户的特殊目的。C Broken Authentication and S 阅读全文
posted @ 2013-09-22 13:28 soulspirit 阅读(220) 评论(0) 推荐(0) 编辑
  2013年9月13日
摘要: VLC is not supposed to be run as root. Sorry. – SolutionbySYED ALAMinLINUX,TROUBLESHOOTINGSToday i captured one tutorial using recordmydesktop utility on my backtrack and decided to view it but unfortunately backtrack 5 Linux didn’t include a good media player to do entertainmentwhen you get bored w 阅读全文
posted @ 2013-09-13 23:36 soulspirit 阅读(2714) 评论(0) 推荐(0) 编辑
  2013年9月10日
摘要: AStep 1: Scaffolding Postshttp://ruby.about.com/od/blog/ss/Getting-Off-To-A-Running-Start.htmBStep 2: Integrating a Wordpress Themehttp://ruby.about.com/od/blog/ss/Step-2-Integrating-A-Wordpress-Theme.htmCStep 3: Authentication with Devisehttp://ruby.about.com/od/blog/ss/Step-3-Authentication-With-D 阅读全文
posted @ 2013-09-10 10:38 soulspirit 阅读(214) 评论(0) 推荐(0) 编辑
  2013年9月6日
摘要: 先设定一个root的密码,sudo passwd root1、先设定一个root的密码,sudo passwd root2、root 登陆,su root3、备份一下lightgdmcp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak4、编辑lightdm.confsudo vim /etc/lightdm/lightdm.confUbuntu 12.04设置root用户登录图形界面5、加:greeter-show-manual-login=true修改后为:[SeatDefaults]greeter-session=uni 阅读全文
posted @ 2013-09-06 22:44 soulspirit 阅读(272) 评论(0) 推荐(0) 编辑