Blog

Thoughts from my daily grind
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`.
Posted by Ziyan Junaideen 02 June 2021
It bugs me that no one has identified that Clark Kent is Superman. It is not like he has a mask on. If any human missed the fact, I find it hard to believe that facial recognition and surveillance networks have also failed.
Posted by Ziyan Junaideen 29 May 2021
Those who enjoyed the where.not(...) query method will surely find the query.invert_where query method a welcoming feature. It allows us to easily invert entire queries.
Posted by Ziyan Junaideen 29 May 2021
Thinking about playing a strategy game on your iMac? Civilization is a great game available for your Macintosh and iOS devices. You can get it at a discounted price if you purchase it through the Steam store.
Posted by Ziyan Junaideen 24 May 2021
Fix the error "There is a chance you are experiencing a man-in-the-middle attack" you get running bundle install in an ancient Rails project rocking Rails Assets.
Posted by Ziyan Junaideen 24 May 2021
Upgrading a Vagrant VirtualBox development server provisioned using chef-solo encountered the error `Vagrant could not detect Chef on the guest!` and this is how I fixed it.
Posted by Ziyan Junaideen 22 May 2021
Tutorial on how you can set HTML attributes dynamically when writing views using the popular HTML abstraction markup language HAML.
Posted by Ziyan Junaideen 21 May 2021
In my quest to try out e-commerce offerings by local businesses, I made an order at SALA for a UPS yesterday. Based on one order, I can say their shipping is on time, and the service is good. Kudos to the team.
Posted by Ziyan Junaideen 21 May 2021
The days of out of date secrets.yml files are over. Welcome, RoR encrypted credentials where you can encrypt and safely store credentials along with the source code. This is how you can activate it in Rails 5.1.
Posted by Ziyan Junaideen 21 May 2021
The COVID-19 pandemic makes us increasingly rely on E-commerce. I panic bought a TV and went to shock when BuyAbans bug didn't show my order. However, I am happy that I got my TV yesterday evening.
Posted by Ziyan Junaideen 19 May 2021
A simple sticky tape fix for horizontal lines running across the TV screen alongside screen brightness randomly dimming.
Posted by Ziyan Junaideen 16 May 2021
Credit cards are an invaluable tool for making payments online, especially in a pandemic. The Nations Trust IPG has, on three occasions, failed to process my AMEX to complete payment.
Posted by Ziyan Junaideen 16 May 2021
Bleach is a very versatile tool that comes in handy daily. The brand Clorox is almost synonymous with bleach as it is the original bleach. The occasional stock limitation made me look for alternatives. Kees comes on top.
Posted by Ziyan Junaideen 16 May 2021
Use dnsmasq to configure a custom DOT-test local domain name in macOS using dnsmasq. Custom local development domains are invaluable for SaaS development. It's still useful for normal development as it keeps localhost clean.
Posted by Ziyan Junaideen 16 May 2021
The software keyboard hides it self from time to time when you are developing an iOS application. This article discusses shortcuts and ways to use the interface to control the hardware and software keyboards.
Posted by Ziyan Junaideen 15 May 2021
I usually use American technology as an example of how things need to be done. For once, an American will use CEB Care App as an example of how their electricity service provider should improve customer satisfaction.
Posted by Ziyan Junaideen 12 May 2021
My first online purchase at BuyAbans.com went better than I thought.
Posted by Ziyan Junaideen 06 May 2021
Introduction and configuration options of spell for nvim (neovim) and vim terminal text editors. Includes suggestions to enable full code/syntax code spell check, which is not supported by default.
Posted by Ziyan Junaideen 04 May 2021
Learn how you can select a DOM element using vanilla JavaScript and hide it from the user. The methods discussed include hiding using CSS and removing the element from the DOM structure entirely.
Posted by Ziyan Junaideen 03 May 2021
Use vanilla JavaScript to create HTML elements to inject into the DOM structure. Discussed methods include append, prepend, insert before, insert after and replace. In addition, it also touches on the HTML5 template tag to use with Rails partial rendering through XHR.