EUFI always loads windows as default boot but why?

Some motherboards are configured to use Windows as their default boot OS. They look for first efi drive that is normally /dev/sda1 and choose windows boot loader file as default. There are some ways to get away with that problem, i.e in this post I shared how we can default boot grub instead of windows, […]

Gzip compression and caching at server

Gzip Compression Code # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType […]

How to access server running inside docker?

Docker runs in a virtual environment so has its own network and ip management. To access server running inside docker in your browser you need to either bind the server to port 0.0.0.0 which is local host of your system or use docker ip. You can get docker ip using below What if servers running […]

How to store/retrieve object in localStorage

Local storage can store string data only, what if you want to store an object? Answer to above question is, convert object into string using “JSON.stringify()”   How to get object back from localStorage? You can get user back from localStorage and convert it back to object using “JSON.parse()”  

Code mapping in VS-Code and Vue

Open launch.js and insert following If you see an error saying “Chrome not found”, it might be unable to find chrome in your system because it is looking for “google-chrome” and you have probably “chromium” in your /usr/bin. To fix this error, create a link to chromium You can see the paths here

What is Service Worker?

In this post I ll try to answer, what is service worker and how can we use it? What is Service Worker? Old browsers use only main thread to render web pages. Modern browsers now have two main threads available, one for rendering web pages and other running parallel in background. That second thread can […]