Ruby 2.5.0 upgrade remarks
There’s a lot of articles already on the new shiny features of Ruby 2.5.0. But here are some problems and challenges you may encounter during the upgrade process. Devise SyntaxError Note: Devise team...
View ArticleKafka on Rails: Using Kafka with Ruby on Rails – Part 2 – Getting started...
Kafka on Rails: Using Kafka with Ruby on Rails – Part 1 – Kafka basics and its advantages Kafka on Rails: Using Kafka with Ruby on Rails – Part 2 – Getting started with Ruby and Kafka Kafka Docker...
View ArticleKarafka framework 1.2.0 Release Notes (Ruby + Kafka)
Note: These release notes cover only the major changes. To learn about various bug fixes and changes, please refer to the change logs or check out the list of commits in the main Karafka repository on...
View ArticleLenovo ThinkPad X1 Carbon (6th Gen / 2018) Ubuntu 18.04 Tweaks
If you think about getting this laptop, pick something else Here’s an “after 1 month” summary without a happy ending. Lenovo ThinkPad X1 Carbon (6th Gen / 2018) review – Sad story of a potentially...
View ArticleKarafka – Ruby Framework for Event Driven Architecture / RubyKaigi 2018...
Karafka allows you to capture everything that happens in your systems in large scale, providing you with a seamless and stable core for consuming and processing this data, without having to focus on...
View ArticleRubyKaigi 2018 Review – conference in a nutshell
RubyKaigi 2018 has ended, but the excitement is still fresh. After 25 hours in planes, trains, buses, and cabs we’re finally home. I guess it’s a good time to summarize and review 4 days on the best...
View ArticleLenovo ThinkPad X1 Carbon (6th Gen / 2018) review – Sad story of a...
TL;DR – Don’t buy it Don’t buy it. If you cherish your time and money and you think about a laptop as a work tool, go with something else. There are many hardware problems with this computer and, if...
View ArticleUbuntu 18.04 – Disable screen on lid close
In order to force your Ubuntu to just disable the screen on lid close, you need to do two things: Disable sleep (do nothing) on lid close Disable screen on lid close Just follow all the steps from both...
View ArticleSimplifying internal validations using Dry-Validation
When building APIs for other developers, it’s often important to draw the line between other programmers input data and the internal world of your library. This process is called data validation and...
View ArticleExtracting the device token from Xiaomi Air Purifier 2S EU for Domoticz usage
Xiaomi Air Purifier is one of the best on the market in the price/value category. Like many other Xiaomi devices, it can be controlled using a great home automation system called Domoticz. The only...
View ArticleExploring a critical Net::Protocol issue in Ruby 2.6.0p0 and how it can lead...
TL;DR This bug has been fixed in 2.6.1. Please upgrade and all should be good. If you do any HTTP communication (HTTP requests, Elasticsearch, etc) do not upgrade to 2.6.0p0 or apply the patch below...
View ArticleRuby on Rails HTTP Basic authentication with JSON failure message
A short snippet on how to make Ruby on Rails authenticate_or_request_with_http_basic respond with a JSON valid message upon failure. class ApplicationController < ActionController::API include(...
View ArticleHow to take over a Ruby gem and what to do with it / RubyKaigi 2019 presentation
Using Ruby gems is safe, right? We’re a nice community of friendly beings that act towards the same goal: making Ruby better. But is that true? Can we just blindly use libraries, without making sure,...
View ArticleRuby 3 gathering/hack challenge summary
Many of you may not be aware, but Ruby 3 is not only a distant, abstract concept. Ruby 3 is an end goal of a process that is already pretty advanced. This week I had a chance to participate in a...
View ArticleSynology DSM 6.2 Photo Station 6 – Failed to Load Data Fix
I’m a quite happy Synology user. For the past years I’ve been using it mostly to backup my things, so I didn’t pay much of an attention to the fact, that the Photo Station software would get slower and...
View ArticleKarafka framework 1.3.0 Release Notes (Ruby + Kafka)
Note: These release notes cover only the major changes. To learn about various bug fixes and changes, please refer to the change logs or check out the list of commits in the main Karafka repository on...
View ArticleNameError: undefined method ‘parse’ for class ‘NilClass’ when doing...
If you get following error when trying to parse time: Time.zone.parse('2019-01-01 11:11:11') Traceback (most recent call last): 16: from /bundler/friendly_errors.rb:124:in `with_friendly_errors' 15:...
View ArticleThe hidden cost of the Ruby 2.7 dot-colon method reference usage
Note: This case is valid also for the “old” #method method usage. The reason why I mention that in the “dot-colon” context, is the fact that due to the syntax sugar addition, this style of coding will...
View ArticleKarafka framework 1.4.0 Release Notes (Ruby + Kafka)
This release mostly solves problems related to message deserialization and normalizes some of the naming conventions to ease during the upgrade to the upcoming 2.0 version. Note: This release is the...
View ArticleBuilding a Ractor based logger that will work with non-Ractor compatible code
Recently Mike Perham shared a tweet with this comment and a code sample on the Ruby 3.0 Ractors. If this code doesn’t work, how could Rails ever work? Ractor seems fundamentally incompatible with many...
View Article