Junior to senior, illustrated
by uaiHebert

ellievsbear
I'd rather be in outer space 🛸
Peter Solarz
Monterey Bay Aquarium
"I'm Dorothy Gale from Kansas"

Discoholic 🪩

JBB: An Artblog!
Stranger Things
Xuebing Du

Love Begins
Misplaced Lens Cap
d e v o n

tannertan36
Cosimo Galluzzi

titsay

祝日 / Permanent Vacation

roma★
occasionally subtle
seen from Guatemala
seen from Türkiye

seen from Malaysia

seen from Malaysia

seen from Germany

seen from Singapore

seen from Bangladesh

seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States

seen from United States

seen from Malaysia
seen from United States

seen from United States

seen from United States
@servzin
Junior to senior, illustrated
by uaiHebert

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
How we migrated Beanstalk to Rails 4 and Ruby 2
In October 2011 the groundwork began to migrate Beanstalk to Rails 3, the latest version of Rails at the time. In a few weeks it became apparent that the migration would take much more effort than we originally anticipated and the work had been scrapped. Since then the idea to migrate to newer Rails came up several times during our meetings. However, each time the decision was to postpone the migration to deal with more pressing updates.
In March we scheduled the migration once again and the plan was not only to update the Rails version from 2.3 to 4.0, but also bump the Ruby version from 1.8 to 2.0, because 1.8 was near its end of life deadline. We ended up successfully finishing the migration in just eleven weeks.
TL/DR of the migration:
Migrated from Rails 2.3 (4 years old) to Rails 4.
Migrated from Ruby 1.8.7 (5 years old) to Ruby 2.
Migrated from jQuery 1.5 (2 years old) to 1.9.
Took us 11 weeks.
Went through almost 200 tickets in our Sprint.ly account.
Made 1069 commits.
Changed more than 1,100 files.
Changed around 25k lines of code (w/o white-space changes).
Decreased amount of generated routes by 37%.
Read More
Really cool work made by 3 devs and 1 QA.
This blog post is about refactoring, git, long-lived branches, and scope creep. It has a lot to say, so here is a summary:
It is very acceptable for one ticket (story, todo, quickfix, …) to spawn multiple branches.
Refactor in a branch.
Failing RSpec tests on PostgreSQL while using DatabaseCleaner
Yesterday I decided to move my practice application from SQLite to some other database due to some issues with speed and geofencing. I successfully shifted to PostgreSQL, but when I launched `rspec spec` I saw this terrible picture:  Whoops, looks like my database cleans up before it is required. So I dug in deeper and found out that this issue happens due to a race condition on pg adapter using shared connection hack. So according to [this comment](https://github.com/bmabey/database_cleaner/issues/117#issuecomment-8024824) I modified my `database_cleaner.rb` this way: RSpec.configure do |config| config.before do DatabaseCleaner.strategy = if example.metadata[:type] == :request :truncation else :transaction end DatabaseCleaner.start end config.after do DatabaseCleaner.clean end end Now everything works as charm and all my tests are up and running.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
I didn't ever think that ri may be much more useful than searching Google for documentation.
And now a little about testing.
Have you ever added a seemingly innocent validation to a model, like so:
class User < ActiveRecord::Base validates_presence_of :first_name end
And then had this happen?:
$ rake spec
If you’re using FactoryGirl, this can often happen because you haven’t updated your factory.
Read more…

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Correcting inflections in Rails applications
Let's imagine that we have a User model. We also have a Drive model which belongs to User. Now if we use `@drive = user.drives.build(...)` expression we can face with an error: NameError: uninitialized constant User::Drife The reason is that Inflector class (the one that manages pluralizations and singlularizations in our Ruby on Rails project) may mistake like a person. So we need to tell him the right form: # config/environment.rb ... ActiveSupport::Inflector.inflections do |inflect| inflect.irregular 'drive', 'drives' end
Wonderful article
Setting up PostgreSQL for Rails app in Lion
Apple included PostgreSQL server into its Mac OS 10.7 Lion. At this point it became out-of-date, so the best way to have the newest PostgreSQL is to install it via Homebrew or MacPorts. And here comes the pain: the newly installed server conflicts with the one that comes with operating system and shows this error message: createuser: could not connect to database postgres: could not connect to server: Permission denied Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? So here is [the link](http://tammersaleh.com/posts/installing-postgresql-for-rails-3-1-on-lion "Installing PostgreSQL for Rails 3.1 on Lion") that helped me to solve this problem. If it doesn't help, you can try [this script](http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion/) and don't forget to reinstall `pg` gem after you run it: gem uninstall pg gem install pg
Follow the link for the change log. These guys make an incredible job.
Expect method in RSpec 2.11
RSpec is planning to have a new expectation syntax. In 2.11 release (which comes out soon) it has a new method expect, so, for example, instead of writing should be_valid or should_not be_valid you say expect foo to be_valid. Also if you decide to write a lambda expression you can substitute it by writing expect …. This way RSpec becomes even more friendly to natural language we speak and more unified.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Simple workflow
You may face a problem some time when you need to have a page that has several entry points and after some action is done you need to bounce back to the page you came from, and simple_workflow gem is a nice tool for that task. It gives you a new link_to method called "detour_to", and a new redirect_to method named "back_or_redirect_to". Using these features you can create alternate-dispatched page flows in your Rails application.