VMware Workstation

May 27, 2017


A short note on VMware Workstation. VMware Workstation is a great tool. But accepting an upgrade can run into problems. If after installing an upgrade, when you try to start a VM you may see this popup message: Error while powering on: Internal Error If you are running VMware from Windows: Confirm that “VMware Authorization Service” service is running ( i.e ‘Started’ ) Check if VMware Player shows up in the list of installed programs The 2nd problem means the update process didn’t properly register the program. ... Read more

Rails 5 Progressive Web App - part 2

December 17, 2016

PWA

Inspired by some evangelical Progressive Web App (PWA) posts, we wanted to see what PWA goodness we could bring to our Rails 5, Turbolinks 5, Websocket-using web project. So this post is about what steps we have taken thus far. In Part 1, we added service workers and achieved the “Installable”, “Discoverable” and “App-like” and “Connectivity-independent” improvements. Now in Part 2 we look at achieving “Re-engageable”: User re-engagement with displayed push notifications via service workers, even when a tab is not open. ... Read more

Rails 5 Progressive Web App

December 13, 2016

PWA

Inspired by some evangelical Progressive Web App (PWA) posts, we wanted to see what PWA goodness we could bring to our Rails 5, Turbolinks 5, Websocket-using web project. So this post is about what steps we have taken thus far. We are coming at this from a web-first approach, we are following the Basecamp route into mobile with turbolinks-android. Our mobile development effort has mostly gone thus far into product re-design: stripping back and simplifying views to optomise for the more intimate phone format. ... Read more

Upgrading d3 from v3 to v4

July 31, 2016


We recently upgraded to d3js v4.1.0. Here is what we did to fix the breaking changes: After the upgrade our data visualizations stopped being generated, and on a closer look we were getting this js error in Chrome: Uncaught TypeError: Cannot read property 'format' of undefined It turns out d3js v4.1.0 is a major rewrite with several breaking changes, so be prepared to spend half a day looking at it. ... Read more

Ubuntu running low on disk space

June 11, 2016


Warnings have been popping up with increasing frequency that the disk space is running low on Ubuntu running on VMware Workstation 12 Player. Even creating a backup failed due to lack of space in the Temp folder. It’s time to do some clean up. Run Disk Usage Analyser to  identify where the problems are: usr/src folder - 2.4 GB, contained folders like linux-headers-3.13.0-32 that go back years. home/. ... Read more

Action Cable: components checklist

January 27, 2016


Here are the minimum code changes required to provide websocket capability in a Rails 5.0.0 app. This is based on a minimal alert app. Disclaimer: Of course this is all rapidly changing in Rails. This was correct for rails master branch at the time of writing this post. Prerequisites: gemfile: add em-hiredis, redis, and make sure you have puma 2.15.3 or greater ... gem 'rails', '>= 5.0.0.beta1.1' gem 'em-hiredis' gem 'redis' gem 'puma', '>= 2. ... Read more

Rails 5 tutorial chat app - can we deploy it to AWS?

December 30, 2015


The simple chat example that DHH built in his recent screencast using ActionCable in Rails 5, is available on GitHub here: https://github.com/HectorPerez/chat-in-rails5. But can we get this working on an Elastic Beanstalk single instance - with no load balancer ? => Initially yes, then no, then yes! On a development pc: Action Cable works with redis so to run the chat app you will need to install redis on your local machine: ... Read more

Upgrading to Rails 5.0.0.beta1

December 21, 2015


What we did to upgrade a small Rails app from Rails 4.2.5 to Rails 5.0.0.beta1. Now the upgrade is deployed in AWS, here is where we are at: When deploying, remember to change the secret key base to invalidate all sessions. ( or your users will get a nasty 500 error ) Temporarily removed NewRelic from the gemfile – it doesn’t currently support Rails 5.0.0.beta1. (UPDATE: as of 11 Feb NewRelic supports Rails 5. ... Read more

Scaling down to single instance Elastic Beanstalk.

April 13, 2015


When you are looking to reduce your AWS costs, you might consider removing the Load balancer. At $20 per month it accounts for a large proportion of the hosting costs for a small application. Is it really needed right now? Down the line when your application grows, you can easily bring it back - right? Elastic beanstalk is handy for provisioning and deployment, and thankfully the load balancer is not compulsory. ... Read more

Rails 4.2.1 upgrade ( SMTP email sending fail)

March 27, 2015


Soon after we updated to Rails 4.2.1 from 4.2.0 deployed - the site stopped responding and we saw this error in the passenger log: phusion_passenger/preloader_shared_helpers.rb:69:in `fork': Cannot allocate memory - fork That was also the last time emails were successfully sent from Elastic Beanstalk. Now SMPT emails are silently failing with no clues in the logs. We were unsure if the memory issue was with this AWS instance or this update. ... Read more

© 2018 Keith P | Follow on Twitter | Git