Mac OS X 10.7 (Lion) の場合 メニューバー左端の「アップルメニュー」から「App Store」を選択します。 App Store ウィンドウの右上にある検索ボックスを使って「xcode」を検索します。 「Xcode」をクリックし、次のページで「無料」ボタンをクリックして Xcode をインストールします。 Mac OS X 10.6 (Snow Leopard) の場合 ブラウザで http://developer.apple.com/jp/ を開きます。 「Mac Dev Center」をクリックします。ここから先は英語です。 Apple I...
March 4, 2012 Tagged: git vim empathy Comments (View) Global .gitignore Set a .gitignore file to apply across all projects on your local machine with: git config --global core.excludesfile ~/.gitignore The only ignored pattern I have right now is: *.swp That ignores temporary files cr...
Hugh McGowan & the Convio team – Introducing WatirMark at Convio. WatirMark is an MVC testing framework that supports Cucumber and Rspec. This is result of several years of major refactoring, recently released as open-source. Bob Jones, How a Ruby Framework for testing services was ex...
Your site may be at risk! When using mass assignment, you are giving the user complete control over that model and its associations. See how a hacker might use this vulnerability and learn how to stop it in this episode.
with Loren Segal. Realized why I was right when I revisited TomDoc and took a look at how it handles the public/private distinction. # Public: Duplicate some text an arbitrary number of times. # # text - The String to be duplicated. # count - The Integer number of times to duplicate t...
The attacker creates a valid session id: He loads the login page of the web application where he wants to fix the session, and takes the session id in the cookie from the response (see number 1 and 2 in the image). He possibly maintains the session. Expiring sessions, for example ever...
presented on the topic of building Systems. One aspect of his presentation that really struck a chord with me was around the competing desires while designing and delivering an application. This blog entry is about summarizing that aspect and what I took away from it.** Stefan noted t...
I relate to your testimonial here, as I do believe it’s the most accurate description of how to achieve proficiency at something. Another fellow programmer gave his opinion on the matter, and I would like to reproduce my comment on his post here: This discussion about “Inate Talent” v...
You want to do quick messaging between hosts, processes, or even threads. You want to use a different transport besides TCP: multicast, in-process, inter-process. The code doesn't change (besides the bind/connect calls). You want to take advantage of other ZeroMQ messaging patterns to...
Ruby on Railsの開発しかしないのなら、http://netbeans.org/downloads/index.html から「すべて」と書いてあるバンドルをダウンロードして、インストールするときに「カスタマイズ」ボタンをクリックして「IDEベース」以外の項目を外すといいでしょう。 エディタのフォントがぎざぎざで汚いなと感じたら、NetBeansをインストールしたディレクトリにあるetc/netbeans.confのnetbeans_default_optionsに「-J-Dawt.useSystemAAFontSettings=lcd」というオプション...
CapybaraEmail Posted by bcardarella on March 04, 2012 — 0 comments Easily test (and click through) your ActionMailer emails in Capybara Comments Post a Comment Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the e...
class Product < ActiveRecord::Base belongs_to :category named_scope :cheap, :conditions => { :price => 0..5 } named_scope :recent, lambda { |*args| {:conditions => ["released_at > ?", (args.first || 2.weeks.ago)]} } named_scope :visible, :include => :category, :conditions => { 'catego...
Web application frameworks are made to help developers building web applications. Some of them also help you with securing the web application. In fact one framework is not more secure than another: If you use it correctly, you will be able to build secure apps with many frameworks. R...
Welcome to this week's Web-based syndication of Ruby Weekly , the Ruby e-mail newsletter. While I have you, be sure to follow @RubyInside on Twitter as I'm going to be posting news more frequently there than on the Web site in future. Follow @RubyInside Also, if you're interested in g...
parameter is a full SQL query as a string. It will be called as is, there will be no database agnostic conversions performed. This should be a last resort because using, for example, MySQL specific terms will lock you to using that particular database engine or require you to change y...
The point I was trying to get at was: how does this scale? If every developer chooses what is best for them, is that necessarily best for the organization? How do we balance between the business value of increasing individual productivity and the business value of reducing maintenance...
NoSecurity – Well, no security at all. Signed packages are treated like unsigned packages. LowSecurity – Pretty much no security. If a package is signed then RubyGems will make sure the signature matches the signing certificate, and that the signing certificate hasn’t expired, but tha...
A trio of rubygems commands that interface with the MacRuby compiler.
I’ve been a statically typed bigot for quite a few years. I learned my lesson the hard way while using C. Too many systems crashed in the field due to silly typing errors. […] Four years ago I got involved with Extreme Programming. […] I can’t imagine not having a comprehensive suite ...