Pune, IndiaOffice #803, 8th Floor, Tower 2 World Trade Center, Kharadi Pune, Maharashtra 411014 India
I’ve been a happy user of Capybara-WebKit for many years now, but its dependence on Qt can make it frustrating to install on macOS, particularly following macOS or Xcode updates. One such recent issue lead me to experiment with running my tests in Chrome via ChromeDriver and Selenium. I found the installation of ChromeDriver and Capybara-Selenium to be significantly faster than the installation of
How to use UUIDs as Primary keys in Rails 4 with PostgreSQL What are UUIDs anyway and why should you use them? UUID stands for Universally Unique Identifier and the original purpose of UUIDs was to enable distributed systems to uniquely identify objects without significant central coordination. Anyone can create UUIDs and use them to identify something with reasonable confidence that the same iden
Today I Learned is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day. Posts have a 200-word limit, and posting is open to any Rocketeer as well as selected friends of Hashrocket. We hope you enjoy learning along with us. /hashrockettil /hashrocket/tilex Today I learned that Rails Enum works pretty well with PostgreSQL Enu
こんにちは。Ruby化をすすめるメドピアをお手伝いしている@willnetといいます。 メドピアではPHPからRubyに移行するにあたり、単純に言語を置き換えるだけではなく、言語以外の仕組みについても適宜見直しを行っています。今回はそのうちジョブスケジューラを見直した件について書いていきます。 言語を置き換えた話はこちらを参考にしてください。 レガシーな独自フレームワークから脱却してRailsへ徐々に移行している話 - メドピア開発者ブログ そもそもジョブスケジューラってなに 「毎日1時になったら前日のアクセスログを集計して統計データとしてまとめる」などといった定期的に実行するジョブを登録するためのものです。 ウェブサービスを作るときのジョブスケジューラといったらやっぱりcronですよね。メドピアでもこれまでcronを活用していました。しかしサービスが小さいうちはcronでもそれほど問題な
僕がrubocopに送ったPRが v0.47.0 に取り込まれました。 個人的に便利機能だと思うのでこの場を借りて軽く紹介したいと思います。 Rails/ReversibleMigrationについて 具体例 どうして作ったか? 検出精度について auto correctについて Cop開発Tips 前提知識 rubocop静的解析したいソースをruby-parseでS式を出す binding.pryなどでとめてnodeの中身を確認 S式にマッチさせるmatcherを書く Rails/ReversibleMigrationについて Railsのmigrationファイルで change メソッドの中に書いたmigrationコマンドがreversible *1かどうかをチェックするためのcopです github.com 具体例 https://github.com/bbatsov/rail
リンガルボックスでは、現状のスタックは下記のようになっています。 クライアントサイド: Flux(Alt.js) + ReactRouter + Webpack + Polyglot.js(多言語化) サーバーサイド: Rails + Active Model Serializer Polyglot.jsよりもUS Yahooのreact-intlの方が有名かと思うのですが、僕がRailsのi18nの方法に慣れていることもあって同じように書けるPolyglot.jsを選びました。Polyglot.jsはAirBnBがオープンソースとして公開してるパッケージでAirBnBの多言語化に利用されています。 今回はこのスタックで、多言語対応をどのように行っているのか簡単に書いていきます。 1. 各言語のロケールをlocalesフォルダーに保存 現状はlocalesフォルダーにen-US.js、ja
When building an application that sends SMS, we like to use an external service such as Twilio to handle the actual sending of the messages. When unit testing parts of code that interact with SMS, you can simply stub out the actual sending of SMS to keep your test isolated. But what about feature specs? Writing feature specs Take the following two user stories: When I make a purchase, I want to re
2016 - 09 - 09 Rails だって硬いデータベース設計をしたい!そんなあなたに贈る Tips 4 選 list Tweet こんにちは、ペロリのサーバサイドエンジニアの @a_suenami です。 今回は Ruby on Rails アプリケーションにおけるデータベース設計についてちょっとご紹介したいと思います。 データベース設計してますか? みなさん、データベース(以下、DB)設計していますか?Scaffold したときにできた migration ファイルをそのまま使ったりしてませんよね? Ruby on Rails (以下、 Rails )は CoC(Convention over Configuration: 設定より規約)を強く提唱している フレームワーク であり、それによって得られる恩恵も大きい反面、かなり強めに設計の自由度を束縛されるという特徴もあります。特に
After having written and maintained a 200,000+ LOC project in Ruby/Rails, I was beginning to see the shortcomings of a dynamically-typed language in large projects. I started looking for alternatives. And got fascinated with Haskell, with its focus on immutability and managing side-effects. And so my journey with Haskell began a few months ago. And, boy, was it an eye-opener. I loved that the comp
Summary: On Heroku, Rails scales fairly easily, but there are some important things to consider. We looked at how various dyno and Postgres settings effect overall performance on Heroku. Why Test Scaling? ZeeMee’s servers are going to receive an onslaught of requests during the coming college admissions season this fall. Because ZeeMee allows students to add videos and photos to their college appl
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く