Ruby 2.7 has just been released (Dec 25) as the tradition is. That’s the last minor version before 3.0 which is going to be released on Dec 25, 2020. In one year. Here are a few new features that caught my eye. Array intersection There are a couple of set methods you can use with … Continue reading Ruby 2.7
I always had trouble finding a way to copy lines of code in vim when I wanted to paste the lines in some other application on macOS. You see vim doesn’t use the OS clipboard when it copies something …
This is a story many have shared. It is typical. You can get it by asking how one got involved with computers. Most will say, they started playing games. Then something happened and they wanted to see how things worked under the hood. Then they got hooked. The story is the same. What changes is … Continue reading Introducing Sector Five II
In a previous post I mentioned that I started maintaining a set of helper Ruby classes for working with barcodes. I have changed the structure of the project to make it a gem and I have published it on GemCutter.
I was wondering why some people are using _path and why some use _url. For example, if you have a Post resource you can write the following in your view: <%= link_to ‘List of posts’, posts_path %> or the following in the controller: redirect_to posts_url Why should I use _url in the controller. I have … Continue reading Rails: url vs path
Nowadays, I use C# to write code most of the time. I don’t have the time I used to have for researching and learning new languages/frameworks/etc., but I try my best to learn something new, at least once every 8-12 months. My last try was Ruby on Rails. Still trying to tame the beast. A … Continue reading Android
My database background has been mostly related to Oracle. These days, I am working as a freelancer with a company that heavily uses SQL Server. As a result, I miss knowing stuff out of my mind without having to search. Today, I wanted to select from a table only those records that where created today. … Continue reading Selecting only today's records