The Complete Guide to Optimising Web Images
Optimising images for your website can be a bit of a black art, but it’s well worth doing as the bandwidth savings can be large. It will also make a big difference to the speed at which your site loads.
Level Up Your Security in Rails
I am not a security expert, and the truth is that most other developers aren’t either. I haven’t created my own hashing or encryption algorithm, I don’t know the inner workings of TLS, nor the different ciphers that are available, but that doesn’t give me a free pass when it comes to protecting my users […]
What’s new in D3 v4?
A new version of the D3 library was recently released (version 4). This brings a tonne of useful & awesome updates. We’re going to look at a couple of the changes, and see what you might use them for. To frame these features, we’ll use an example visualisation – a timeline plot of all the […]
Things I wish I had learned at design school
Last month my colleague and I paid a visit to our former university. We were invited to give a presentation about our career path and how we ended up at Infinum. We talked about our expectations as designers and some challenges we deal with on a daily basis. In the end, we shared some practical tips and tricks about UX/UI design.
Set model name in fixtures as metadata
In Rails 5 model name can be set as metadata in the fixture file, rather than being infered from the fixture filename.
Service workers and browser push notifications (with Ruby on Rails example)
We were recently developing an app with a real-time notification component. Since we could be confident of the devices being used by end users, we decided to forego long-polling and websockets, and look into using service-worker-powered browser notifications. Click to read the complete post
Asynchronous Multiple File Upload with Rails and Dropzone.js
Our application is a module of an e-commerce shop to create products and attach pictures to them. It uploads the pictures on the server, returns the list of uploaded files, and then submits the form to create the product record. There is a one-to-many association between pictures and product, meaning that a product may have many images.
Practical Graphs on Rails: Chartkick in Practice
Email as a Microservice
Email might be one of the most often overlooked pieces of any web application. Usually the biggest discussion around it in a project begins and ends with “and we’ll send them an email when this happens…”. A little thought and some minor adjustments can help us avoid some problems that will grow as your project […]
Merging Query Strings when Redirecting in Rails
Note: the following was tested with Ruby 2.3.1p112 / Rails 5.0.0. Your mileage may vary depending on versions.