Blog

Thoughts from my daily grind
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.
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.