The aTech Media blog features all the news about the company, its people and behind the scenes.

Ruby

We do pretty much everything in Ruby. We love it. We have a lot say about it.

Displaying posts 1 - 12 of 18 in total

Seamless socket server restarts in Ruby

Posted on the 22nd March on the aTech Media blog

We utilise a variety of custom socket servers to support our applications. Most of our apps have at least one. We write RPC servers to interact with repository storage in...

Resizing your uploaded images

Posted on the 21st March on the aTech Media blog

A couple of days ago I wrote about uploading attachments and in this tutorial I'm going to look at doing some processing on those attachments once they have been uploaded....

Running Ruby apps in production

Posted in October 2016 on the aTech Media blog

Over the last few months, I’ve been working on a number of Ruby applications which have a requirement to run a few different types of process — web servers, workers, crons — in order...

Updating things live in the browser

Posted in August 2015 on the aTech Media blog

One of the things I am most proud and happy with in Coact so-far is the way that data updates made on the server are reflected in real time in the browser. For example, if someone renames a client

Memoization in Ruby

Posted in July 2015 on the aTech Media blog

Memoization is a technique employed in many languages which allows you to cache the results of slow or expensive operations and return the cached result whenever the method is subsequently...

Local gems for local apps

Posted in July 2015 on the aTech Media blog

If you’re a keen gem developer like myself and you regularly use them in your other applications, you may find it useful to know of this quick tip. It allows...

String Interpolation in Rails

Posted in April 2015 on the aTech Media blog

A while ago I wrote a small library to handle string interpolation in a Rails application. The library allows you to safely allow users to insert variables into strings they...

Creating MOSS returns for HMRC with JSON

Posted in March 2015 on the aTech Media blog

HMRC (the UK tax authority) have finally announced how UK businesses should submit details of their digital sales to other EU countries for their new VAT MOSS system. In my...

Improve session security in Rails apps

Posted in February 2015 on the aTech Media blog

In Rails applications, it’s really easy to allow users to login to your application. You ask them for a username & password, you check they’re correct and you pop their...