Blog

Thoughts from my daily grind
Posted by Ziyan Junaideen 01 May 2021
A detailed guide to Ruby splat operator (*), not to confuse with multiplication, is a tool with many uses. It addresses some common Ruby use cases and helps keep code clean and easy to read.
Posted by Ziyan Junaideen 30 April 2021
Tmux is a must-know tool for most developers and system administrators. In this article, we discuss how to configure tmux to copy to macOS system clipboard.
Posted by Ziyan Junaideen 27 April 2021
Serve responsive and retina images in a Ruby on Rails application without 3rd party library or any additional code just using the `srcset` property in the `ActionView::imgae_tag` helper.
Posted by Ziyan Junaideen 26 April 2021
Mr. Wijesinghe, the Science teacher from Maliyadewa College, helped me with the Science and Technology subject up to the Ordinary Level examination. He remains one of my most cherished teachers.
Posted by Ziyan Junaideen 23 April 2021
Natural languages are complex to master especially if it's not your mother tongue. Grammarly helps you effortlessly improve your writings. One can't go wrong with good English. That is why you should invest in Grammarly Premium.
Posted by Ziyan Junaideen 22 April 2021
The Apple Spring Loaded event came loaded with exciting new Apple products. The new M1 iMac, M1 iPad Pro and the long-awaited Air Tags are among the highlights of this event. They are available for preorder and will be available on stores from April 30.
Posted by Ziyan Junaideen 15 April 2021
Neovim FZF plugin - Files options - Preview syntax highlighting not working fix.
Posted by Ziyan Junaideen 13 April 2021
I would like to wish every one a happy Sinhala & Tamil New Year. May this year be filled with prosperity and good health.
Posted by Ziyan Junaideen 13 April 2021
Generating darkened and lightened colors based on a given colour is common in web interface development. This are the options you have to generate darkened and lightened colours in Ruby on Rails.
Posted by Ziyan Junaideen 11 April 2021
A photo is worth a thousand words, how much does a video worth? Including videos as intros and backgrounds are becoming common and with HTML5 we can do so without the use of any plugins.
Posted by Ziyan Junaideen 11 April 2021
High commission rates charged by ride hailing services like PicMe and Uber are making drivers go solo in these seasonal times that have plenty of customers in the road waiting to be picked up. This leaves app users hanging out to dry.
Posted by Ziyan Junaideen 06 April 2021
The vehicle import ban was necessary to keep exchange rates stable. How ever the governments focus to prioritise EVs with the relax of the import restrictions could destabilise the power grid.
Posted by Ziyan Junaideen 05 April 2021
Its almost Sinhala Tamil New Year and it might be a good time to buy a MacBook Air. Shops want to rid of the Intel i3 versions and the M1 MacBook Air prices are also not that bad.
Posted by Ziyan Junaideen 03 April 2021
It could be argued that `NOT NULL` is the most popular database constraint out there. There are times you need to add a constraint or remove it. Some advice on how to do it in Ruby on Rails.
Posted by Ziyan Junaideen 02 April 2021
The popular Trailblazer sister project Reform (and Reform-Rails) on Ruby 3.0 environment is expected to have errors due to the fact Ruby 3 is not yet supported. Updates expected to come soon.
Posted by Ziyan Junaideen 01 April 2021
A pair of Shubunkin Gold Fish bought from East West Aquarium join my aquarium increasing the population to 6. The 3 different pairs are Black Moor, Gold Fish and Shubunkin. In search for 2 more pairs.
Posted by Ziyan Junaideen 01 April 2021
Personal experience compiled to a simple informative article on choosing between an inkjet printer, ink-tank printer or a laser printer.
Posted by Ziyan Junaideen 31 March 2021
If there has been a scarcity of pet / aquarium fish that may be the result of import controls. Yes! Apparently we are importing pet fish from Singapore and China.
Posted by Ziyan Junaideen 30 March 2021
Fix the JavaScript error "Lqb is not defined" where it works in Development but not in Staging or Production environments (where assets are compiled and minified).
Posted by Ziyan Junaideen 29 March 2021
GoDaddy is loved by many for the task of buying domain names and even hosting. How ever their payment method processing has a history of making trouble in the form - now it works; now it doesn't!
Posted by Ziyan Junaideen 28 March 2021
Install webpacker in your Ruby on Rails 4.2+ project to manage client side libraries in a sane way.
Posted by Ziyan Junaideen 26 March 2021
Terrible oversight resulted in the inclusion of swear words in the word database used in the XKPassword Ruby gem. The database has been cleaned and a new version released.
Posted by Ziyan Junaideen 24 March 2021
An e-commerce ready website is important to a laundry business. Due to obvious differences how a laundry website should bill the customer differ from how an e-commerce store should bill the customer.
Posted by Ziyan Junaideen 24 March 2021
The Sri Lankan legal system in general and court houses in particular could benefit greatly going digital. I believe it is time we leave behind the typewriter and using computers, scanners, cameras, software and databases.
Posted by Ziyan Junaideen 22 March 2021
Most Sri Lankans know Highland and Milco brands. Their website offered exceptional e-commerce service at first. But as the lockdowns ease their service has significantly deteriorated.
Posted by Ziyan Junaideen 22 March 2021
Tiers are as important as any safety feature on a vehicle. They are also instrumental in comfort. Not every tier is equal. When you are replacing tiers spend a little extra and get a good set of tiers. It is an investment that last a good 5 years.
Posted by Ziyan Junaideen 22 March 2021
Reduce form submission spam using a combination of reCaptcha V2 and V3. V3 will give a seamless submission experience to general users and prompt for validation using V2 on suspicion.
Posted by Ziyan Junaideen 21 March 2021
A mouse which is not registering your clicks properly is a nightmare condition in modern user interfaces that rely on pointed inputs. Fortunately many of these issues can be fixed rather easily.
Posted by Ziyan Junaideen 20 March 2021
TRC-SL recommends ISPs to come up with unlimited bandwidth packages. SLT had unlimited internet but then they got greedy. My fingers are crossed and I hope for the best!
Posted by Ziyan Junaideen 18 March 2021
Its hard to imagine a web-development project that doesn't have FontAwesome. This is How you can install and configure FontAwesome (free) using Webpacker in Ruby on Rails 6.