In a previous post that I talked about backups, there was something cool that I did. The project had text images with gradient and the client asked to change it to some text that could be put on the back office. I had two options, the first given to me was to see which gradients […]Read More Gradient text with Ruby on Rails
Before I started working professionally as a software engineer, I would see a lot of people talking about the importance of backups in the IT industry. A few weeks ago I worked on a project that didn’t have any backups and was in production! The first thing I did was a backup and used the […]Read More The importance of a Backup
Last week I learned that we should use cover? instead of include?. When you ask a range if it includes something, ruby is going to instantiate every object within that range and then check if the object you pass into include? exists in there. If you ask cover? it’s just going to figure out and […]Read More Ruby cover? instead of include?
Hi, it’s been some time since the last post. Lots of work and excuses. Today I will present a challenge that I had in a new project. The client wanted the original dimensions when uploading images. So I made a private method to extract it with the help of ImageMagick’s Geometry module. First, add new […]Read More Get image dimensions with Paperclip in Rails
First of all I finished after work the Ruby Koans, it was an awesome experience and made me understand much more about testing. It happened so fast that I felt sad for being so short but at the same time felt an inner feeling that I have accomplished something good. Rails Tutorial is next (for […]Read More My first programming interview