-
A Beginner's Guide to Exceptions in Ruby
Exceptions are Ruby's way of dealing with unexpected events.If you've ever made a typo in your code, causing your program to crash with a message like
SyntaxError
orNoMethodError
, then you've seen exceptions in action. -
Rails 5.1: Default Primary Keys Are Now BIGINT
Remember the Twitpocalypse? Back in 2009, Twitter ran out of Integers. Like most of us, they set up the primary key in their
tweets
table to be a 32-bit signed integer. Once they hit the magical number (2,147,483,647), servers were all but guaranteed to catch fire in the most spectacular fashion. -
Refactoring Legacy Rails Controllers
Ruby on Rails controllers are like the bouncers of a nightclub. No identification at a club? You aren’t getting in. Without the proper clothes, you can expect to be turned away. Oh, you wanna say something slick?
-
Ansible role to deploy scripting applications like PHP, Python, Ruby, etc. in a capistrano style
We have recently added an extra optional step in Ansistrano so that we can know how many people are deploying their applications with our project. Unfortunately, Ansible Galaxy does not provide any numbers on usage or downloads so this is one of the only ways we have to measure how many users we really have.
-
How to detect image contents from Ruby with Amazon Rekognition
Rekognition is a new Amazon Web Service that “makes it easy to add image analysis to your applications.” It can detect faces and objects, and even let you store libraries of faces for future recognition.
-
Replacing Sinatra with Rack in Sidekiq
Sidekiq is one of the first gems that I install when doing a significant Rails project. If you plan to or already have Redis running, it provides an almost effortless ability to process background jobs.
-
9 New Features in Ruby 2.4
It has become a tradition to release new Ruby versions on Christmas. And in this post, I want to cover some of the most interesting changes in the next version so you can keep up with the news.
-
Learn Git in 20 Minutes
Git is a source control management system that has become very popular. But most developers still haven't heard of it or have never used it. Most who have still think it's difficult but in fact, it's pretty damn easy!
-
Implementing Twitter Bot using Ruby
When I was 15 years old, I dreamed of being able to develop bots. The story behind was terribly simple, – back then it was way too popular among us (the little nerds)
-
Ruby tips #2 Anton Davydov
In ruby you can find security levels for your code. The Ruby security level is represented by the
$SAFE
global variable. The value ranges from minimum value 0 to maximum value 4.