Blog

Thoughts from my daily grind
Posted by Ziyan Junaideen 07 February 2020
Looking for an iPad, I found this store in Liberty Plaza through a listing on ikman.lk called MacXeon. I visited the location, its was small, and the sales women there knew her Apple and was a delight meet as many sellers don't have the passion to sell a product like Apple.
Posted by Ziyan Junaideen 07 February 2020
Once a die hard Windows user, then a die hard Linux user, is jumping on board the Apple ship. Apple is costly, while the "ecosystem" is interesting, that is not the main reason.
Posted by Ziyan Junaideen 05 February 2020
Want to delete all records from a PostgreSQL table? You have two options, the commands DELETE and the TRUNCATE will both help. But whats is more efficient?
Posted by Ziyan Junaideen 04 February 2020
Electronic waste is a major concern in many countries including EU and Sri Lanka. Charging port harmonization will help, but not that much. I believe bundling products (headphones, charging cable, charging brick) should not be allowed and users should be made to buy them separate.
Posted by Ziyan Junaideen 03 February 2020
Was the 2 hour power failure in Feb 3rd the beginning of the annual Sri Lankan power cut? Did the dark ages just start?
Posted by Ziyan Junaideen 03 February 2020
Apple is known to be heavy on the pocket. When it comes to iPads, it introduces significant improvement among mid and high tier versions. In a time where the iPad Gen 4 is about to be released what would you get in Sri Lanka?
Posted by Ziyan Junaideen 02 January 2020
The Ruby-retry method allows us to effortlessly retry a met a code block or an error handled method when an error is raised. This posts explains the retry method with an example use.
Posted by Ziyan Junaideen 24 August 2019
Learn how you can track an ActiveRecord objects attribute changes across its lifecycle or page request. The methods [attr]_was, [attr]_chagned?, [attr]_previously_was are some among the helpful methods implemented in ActiveModel::Dirty module.
Posted by Ziyan Junaideen 03 August 2019
DJI Osmo Pocket story mode and my story features are great but could be better. How on earth can you edit those captions?
Posted by Ziyan Junaideen 09 July 2019
JDeen.com V3 is in progress. Started as a custom WordPress website (V1), it moved to Sinatra (V2) and currently is based on Ruby on Rails (V3).
Posted by Ziyan Junaideen 10 November 2016
Make your code less noisy with the help of the dot-parenthesis shorthand. Start using the .(args)` instead of the .call method in services and other applicable instances.
Posted by Ziyan Junaideen 29 September 2016
Mr Azzam Bangsajayah, my uncle, former BoC manager and Sussex principal, passed away due to complications from Cancer. The funeral was held at the ancestral family home and the burial at the Gettuwana Muslim burial grounds.
Posted by Ziyan Junaideen 16 July 2016
With the introduction of ActionCable with Rails 5.0, WebSockets are now first-class citizens in the Ruby on Rails ecosystem. This article is an introduction to the WebSockets implementation in Rails.
Posted by Ziyan Junaideen 08 March 2016
Caching is a vital instrument to reduce the load on the server and deliver reused results and speed up page load for the user. Rails 5 introduces collection caching that can vastly improve performance.