Articles

GitHub Meetup SF #4

If you haven’t noticed, the ’80’s are back. Obviously no one consulted me on this decision. In honor of the ’80’s brief (it had better be brief) return, we will be holding this Thursday’s drinkup at Double Dutch, 7:30p.

5 Tips for Sphinx Indexing

Web applications often have the need to do text searches against data stored in a database. While the built in MySQL and PostgresSQL functions for full text searching work, they are often not the best solutions for fast and complex full text searching.

Oracle - old revision restored

Using Oracle with Rails

Creating a new application

To create a new Rails application that uses the Oracle adapter:

$ rails -d oracle my_rails_app

Next, edit config/database.yml with the proper settings.

database.yml example

development:
adapter: oracle
username: scott
password: tiger
database: database_name
timeout: 5000

Ruby Gemsを理解する

Ruby Gemとは何か?

gemはRubyアプリケーション、またはライブラリのパッケージで、名前(例えばrails)とバージョン(例えば2.3.0)を持っています。

gemはコンピュータ上でRubyGemsライブラリに含まれるgemコマンドを用いて管理されます。同様にgemコマンドを使ってgemパッケージをインストールしたり、削除したり、(たくさんの中から)検索したりできます。

Oh yeah, there's a sugar pill for that.

Everybody knows about The Placebo Effect™.

That's what happens when you think you're taking a medicine that will help you, and it does help you—but it turns out that it was a sugar pill, not a medicine at all.

It was discovered by a clever, desperate nurse during World War II. She was running out of morphine to give an injured soldier, so she lied. She told him he was getting drugs, but he was really getting saltwater.

And it worked.

Oh yeah, there’s a sugar pill for that.

Everybody knows about The Placebo Effect™.

That’s what happens when you think you’re taking a medicine that will help you, and it does help you—but it turns out that it was a sugar pill, not a medicine at all.

It was discovered by a clever, desperate nurse during World War II. She was running out of morphine to give an injured soldier, so she lied. She told him he was getting drugs, but he was really getting saltwater.

And it worked.

Double Shot #525

Back to the dentist today. The fun just never ends.

Brightbox sponsors LRUG (London Ruby User Group)

elrugTogether with our friends at Eden Development, Unboxed Consulting and Skills Matter, Brightbox will be sponsoring LRUG events for the next few months.

既存のアプリのアップグレード

Railsとgemのアップデート

まず、RailsとRuby gemを必要なバージョンにアップデートする必要があります。簡単に説明すると:

$ sudo gem install rubygems-update
$ sudo update_rubygems

して

$ gem install rails
OR
$ gem install rails --version "=2.2.2"

Testing with Subdomain Routes

A lot of the queries I’ve had about the SubdomainRoutes gem relate to testing. There are two different areas where this comes into play – controller testing and testing of the routes themselves.

I’ll use a simple routes.rb as an example for this article:

Attacking Prejudices/Exploding Myths | Rails Fire

Attacking Prejudices/Exploding Myths

#328 | “Rails is hard to deploy” in Category: Attacking Prejudices/Exploding Myths

»Rails 2.2 – Simpler Conditional Get Support (ETags)«

#323 | “Rails only speaks English” in Category: Attacking Prejudices/Exploding Myths

»Rails 2.2 – Simpler Conditional Get Support (ETags)«

#322 | “Rails is hard because of Ruby” in Category: Attacking Prejudices/Exploding Myths

»Rails 2.2 – Simpler Conditional Get Support (ETags)«

#321 | “Rails is a monolith” in Category: Attacking Prejudices/Exploding Myths

»Rails 2.2 – Simpler Conditional Get Support (ETags)«

#320 | “Rails forces you to use Prototype” in Category: Attacking Prejudices/Exploding Myths

»Rails 2.2 – Simpler Conditional Get Support (ETags)«

#319 | “Rails is expected to crash 400 times/day” in Category: Attacking Prejudices/Exploding Myths

»Rails 2.2 – Simpler Conditional Get Support (ETags)«

Syndicate content