Blog

Thoughts from my daily grind
Posted by Ziyan Junaideen 15 November 2021
Kadugannawa is the best part of the journey when you are cruising along with the A1. Instabilities in the cliffs above the road forced the road to close.
Posted by Ziyan Junaideen 12 November 2021
Redis is an essential component in modern web application development. This blog post describes how you can install Redis on a macOS system.
Posted by Ziyan Junaideen 07 November 2021
In a time cost of living is on the rise, rather than increasing the cashflow to pensioners, the government introduced them to an insurance program costing up to LKR 600/mo. Instructions to opt out.
Posted by Ziyan Junaideen 02 November 2021
Some rumors have been going around that Ruby on Rails is dead. Rails are doing better than I expected and I would definitely recommend new developers and clients to look at Rails.
Posted by Ziyan Junaideen 31 October 2021
The resque-scheduler is an integral part of most legacy Ruby on Rails applications that use Resque. When upgrading such projects you might experience an error related to rufus-scheduler.
Posted by Ziyan Junaideen 29 October 2021
Capistrano is by far the best and most popular utility to deploy a Ruby on Rails application and Puma is a great application server supporting concurrency. Learn how to couple Puma with Capistrano and handle application deploys.
Posted by Ziyan Junaideen 29 October 2021
The apt package manager is great but has a relatively old version of packages. This is usually ok but sometimes you need a newer version of the lib. This is how you can install the latest Node JS.
Posted by Ziyan Junaideen 27 October 2021
An error was encountered while upgrading a Ruby on Rails 3.2 app related to a migration to create a PostgreSQL integer array. Updating the migration to modern syntax fixed the issue.
Posted by Ziyan Junaideen 26 October 2021
Upgrading your Ruby on Rails application helps it be more secure by mitigating security vulnerabilities and adding features that help it be more secure in a time hacking is common.
Posted by Ziyan Junaideen 23 October 2021
The RSA key changed warning message is not uncommon on projects on development and is easy to fix. If the issue happens in a production environment, it could signify a potential security breach.
Posted by Ziyan Junaideen 22 October 2021
Managing the database through Ruby on Rails and ActiveRecord is intuitive. Learn commonly used data types in AR for PostgreSQL, MySQL, SQLite, Oracle & SQLServer with special data types for PG.
Posted by Ziyan Junaideen 21 October 2021
Learn how to use the Encryptor gem directly to encrypt and decrypt data on Ruby applications to keep sensitive data secure and have the flexibility to handle encrypted output as you see fit.
Posted by Ziyan Junaideen 17 October 2021
Learn how to use SQL CASE statements to conditionally sort a dataset by either mapping a column value to another value or using a column value to decide which column value to sort by.
Posted by Ziyan Junaideen 12 October 2021
Discover the hidden macOS gem airport, a nifty tool associated with Wi-Fi wireless networking. Use this tool along with networksetup to connect to Wi-Fi networks using the terminal.
Posted by Ziyan Junaideen 12 October 2021
Using the terminal can be intimidating but at the same time, it is uncommon and grabs the attention of others. It also is much faster than using a GUI. This is how to connect to WiFi SSN using macOS terminal.
Posted by Ziyan Junaideen 10 October 2021
Sri Lanka Telecom - SLT Fiber connection may be the best internet, but I am experiencing outages starting at about 11 AM for about a week. This disruption sometimes affects PeoTV and telephone functionality.
Posted by Ziyan Junaideen 08 October 2021
Out of the box, macOS and Linux are generally safe from malware. For instance that they are not there is ClamAV. Clam AV is a free open-source antivirus utility you can use in both macOS and Linux.
Posted by Ziyan Junaideen 06 October 2021
Ubuntu 12.04 based OpenSSL v1.0.1 clients do not have the relatively new ISRG_Root_X1 certificate and to survive the expiry of DST_Root_CA_X3 follow the following steps.
Posted by Ziyan Junaideen 04 October 2021
LetsEncrypt is a free SSL Certificate provider that has helped secure millions of websites and APIs. The expiry of the DST Root CA X3 spelled trouble for some clients when connecting to endpoints certified by LE.
Posted by Ziyan Junaideen 04 October 2021
Check to confirm file attachment is common with any file upload implementation. This is how you can confirm that a modal with CarrierWave has indeed a file attachment. Includes "good practice", "bad practice" and what doesn't work.
Posted by Ziyan Junaideen 04 October 2021
Got the second dose of the Sinopharm vaccination at the Diyatha Uyana (Waters Edge, Battaramulla). It was not crowded and we could drive the ill right to the point of vaccination.
Posted by Ziyan Junaideen 01 October 2021
I have been with Payoneer for over 10 years. I recently topped it up with $1700 to order a new card. I can't get a replacement card and can't withdraw money. I can't even use the Support Center.
Posted by Ziyan Junaideen 29 September 2021
A grown-up pigeon, possibly somebody's pet, ended up on my property at Thalahena on 28 Sep 2021. Predation had left little of its body when I discovered it. It was buried around 16:30 hours the same day.
Posted by Ziyan Junaideen 29 September 2021
Linux by default does not prompt confirmation before deleting a file using the rm command. There are occasions where we should configure user accounts such that they alert the user before deleting a file.
Posted by Ziyan Junaideen 24 September 2021
The Cookie Consent prompt negatively affects the effectiveness of landing pages. I recommend you disable them unless necessary. This is how you can disable sessions on routes on your Rails website.
Posted by Ziyan Junaideen 21 September 2021
The National Medicines Regulatory Authority (NMRA) lost 2000GB of files when a "maintenance engineer" accidentally deleted a folder in the Sri Lanka Government Cloud. This "accident" should have not happened.
Posted by Ziyan Junaideen 20 September 2021
A good photo editor is important for anyone who appreciates a good photo. I love Luminar for its simplicity. While it is frustrating to see new software releases every year I welcome new features.
Posted by Ziyan Junaideen 20 September 2021
A free and open-source Project Management Utility with Time Tracker useful for freelancers and businesses engaged with employees working from home.
Posted by Ziyan Junaideen 30 August 2021
Sleep paralysis is normal in REM sleep but is a disorder when it occurs outside of REM sleep. This can likely cause frightening experiences to those who experience it—nearly 4 out of 10, including myself, experience some sleep paralysis.
Posted by Ziyan Junaideen 25 August 2021
Sinopharm Vaccination makes more than three-quarters of the vaccines provided in Sri Lanka. It has milder post-vaccination side effects and here is a list of things to do and not to do once you receive the vaccine.