Blog

Thoughts from my daily grind
Posted by Ziyan Junaideen 28 June 2020
Every developer values code highlighting and theming. This is how you can handle syntax highlighting in your Rails project.
Posted by Ziyan Junaideen 28 June 2020
The reCaptcha GEM is not built to handle different configurations of reCaptcha (ex: V2 vs V3 or as I hear V2 Checkbox vs V2 Hidden). If you need to to use another version you will have to rig up your own implementation.
Posted by Ziyan Junaideen 20 June 2020
Affinity by Serif is selling their software Designer, Photo and Publisher on discount. The iPad versions of the apps just cost $9.99 and the desktop version of it cost $24.99. Grab your license today.
Posted by Ziyan Junaideen 07 June 2020
නරි නෑවීම කියන්නෙ මොකක්ද කියන කියමන අහලා තිබුනට එකෙ ඇත්ත තෙරුම දැනගෙන හිටියෙද? The meaning of the Sinhalese saying "නරි නෑවීම".
Posted by Ziyan Junaideen 06 June 2020
Did J J Thomsons discovery of radioactivity kickstart nuclear physics? Or had Sri Lanka already mastered nuclear technology to the extent to build space ships?
Posted by Ziyan Junaideen 05 June 2020
Code deploys failed. Connection to port 22 was timing out. I thought it was a Github issue or a firewall issue. But it turned out to be an issue with SSH. The config I used to get deploys operational.
Posted by Ziyan Junaideen 18 April 2020
Bring sanity to your code and avoid massive expectation pyramids by chaining multiple conditions inside a single `expect` block.
Posted by Ziyan Junaideen 07 April 2020
The SD Card of my Samsung Galaxy S9 Plus went undetected after installing a system update.
Posted by Ziyan Junaideen 07 April 2020
As it seems many SLT Broadband users are experiencing slower torrent speeds during off-peak times. Is Sri Lanka Telecom up to no good?
Posted by Ziyan Junaideen 03 April 2020
I placed in an order in Keells Super website with great difficulty on April 1st. Estimate was up to 72 hours but haven't received yet. Now Thalahena is not in the delivery grid and I am worried.
Posted by Ziyan Junaideen 03 April 2020
The Sinhala and Tamil New Year in 2020 is unlikely going to be a blast. The COVID19 virus has put the country in to a state of lockdown. New year celebrations aside, people are struggling to survive the day.
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.