Recently I needed to import some legacy data from a list of CSV files (each file representing one database table on the legacy application) into a fresh new application, but the legacy data was not compliant with the new application rules.
Developing email templates to be sent by our Rails application may sometimes be a long and tedious operation because under development you must continuously send to yourself the email in order to test the changes.
If you don’t want to waste your time, Rails provides a very helpful tool for those who need to build the layout for the emails of our application: ActionMailer::Preview. In fact, with this tool (available from Rails 4.1), you are able to generate the Rails mailer view without the need to actually send the email.
Continue reading “Previewing email in Rails with ActionMailer::Preview and Letter Opener”
I know, I should have written this article a while ago but I couldn’t find the time…sorry 😞
Anyway…one month…how time flies!
Last February, thanks to 😘 Mikamai, I had the immense pleasure to attend to an astonishing conf.
For the ones who don’t know, LambdaDays is an international 2 days conference that has been held in Krakow for four years now.
Its main focus is the “umbrella topic” of “Functional Programming”.
In an iPad application we recently developed, we had several UICollectionViews loading many images that could be resized. Like the camera roll in the system app, we had a Grid layout with hundreds of image thumbnails that could go fullscreen if tapped.
During QA, we had performance issues: the memory footprint increased every time we entered in a UICollectionView and we loaded the images grid with hundred of images. The increase was a steady 21MB every time we entered and no memory was being release at any time.
At iOS’s whim, the application received a Memory warning and, unable to deal with the memory pressure, it crashed.
Always trying to avoid premature optimisation, now was indeed the time to sharpen our performance skills!
This time I’m here for sharing a solution for a specific problem I encountered a couple of days ago.
Continue reading “How to share Rails i18n messages with React through webpack”
Usually developers when thinking about a solution put their focus on the complexity of the algorithm (O(n), O(n^2) …) rather than the memory consumption, so lets see an example where the constraint is the memory S.
I would like to share the solution to an interesting exercise that I was asked to solve during a technical interview.
This post is to describe an issue I’ve run into using < 2.3 versions of Ruby on OSX with rvm and brew.
Don’t even get me started on working with older versions of Ruby — we have some maintenance projects running in ruby-1.8.3! Even modern Rubies may give you a hard time, however, and this is one of the times. Actually, I am writing this post as a reminder for me because I ran into the same problem twice now, and what is worse, the second time it took me nearly the same amount of fruitless googling to solve it as it took the first. And the solution was the same! So, let us proceed with order.
Whoever uses a laptop finds out that there are situations where they want more available space on their desktop. For this reason, working with an external monitor can make you much more productive. When you are at home or at your office, you probably have a secondary display for your laptop but not when you are outside.
As many developers, I have a 13 inches MacBook and sometimes I need to have extra space to better handle multi-tasking and to increase my productivity. Now, there is a solution for those who want to have the advantages of an extra monitor even outside the office: DuetDisplay. Continue reading “More space, more productivity, more fun”