Blog

Thoughts from my daily grind
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.
Posted by Ziyan Junaideen 24 August 2021
The Army mobile vaccination initiative in the Western Province is great. Still, if you do have access to a vehicle, you could go to the Diyatha Uyana (Battaramulla) vaccine centre and get the vaccination immediately.
Posted by Ziyan Junaideen 17 August 2021
The depleting foreign reserves are causing shortages of LP Gas. Many households are buying induction cookers. Keep in mind you can't use every cookware in your kitchen to cook.
Posted by Ziyan Junaideen 16 August 2021
Could hand sanitisers be the cause behind the recent increase in vehicle fires in Sri Lanka? What steps to take to be safe(er)? Are there alternatives to hand sanitiser?
Posted by Ziyan Junaideen 08 June 2021
Bundling foreman with Ruby applications is a bad practice some Ruby developers practice this date. This needs to stop and here is why. Long story short, read the documentation people!
Posted by Ziyan Junaideen 08 June 2021
Foreman is a tool commonly used in application development environments to manage applications based on Procfiles. I experienced a Rails application freeze when used inside foreman and the fix was to use `bundle exec`.