Xen's personal web-page

My maintained projects, documentation, scripts, tips, and sometimes my thoughts... all here.

READING MODE OFF

How to improve battery life in Linux systems

Linux based systems also known as Distros which is short for distributions, have many advantages over other operation systems but also they have downs! One if these cons is the horrible battery life while using them on a notebook or a laptop or any other portable computers. MORE

Why your LTE connection is slow at certain times?

Have you ever had an insomnia and stayed awake all night? or at least until 3AM in the morning trying to sleep? Then you noticed your internet connection got extremely fast and the ping got much lower? This is not a coincidence! Because at these specific times almost all people in your area are busy sleeping; That means the pressure on tower cells that delivers data to you is very low. MORE

5 Things you need to know before buying a treadmill

When i bought a treadmill few years ago with some other fitness equipments to start getting in shape i had no clue that they require a maintenance routine every weeks or months! (depends on usage). I figured it out the hard and painful way, because in the first few months my treadmill started to have a burning smell and the motor became very hot that you cannot even touch it! And was struggling to keep running. I thought it was a over usage issue so i started to reduce my treadmill time about 50% which like a half hour, Until it completely broke and no longer was working…I did a lot of treadmill googling and i wandered different websites and videos…until i found out couple important things that you should know before buying or doing anything: MORE

Add pagination to your Github page or Jekyll website

My modified github pages theme didn’t have pagination implemented already despite jekyll have a built-in plugin for it called jekyll-paginate, so i spent a lot of time trying to understand how it works until i got it done, here’s how in short and a simplified manner. If you’re on github pages you don’t need to install anything because it’s already installed by default and cannot be removed, otherwise install the plugin i just mentioned in your jekyll system by using: MORE

How to make GCC/Clang produce a very small executable

Sometimes size matters! especially if you’re working with medium/big projects that will produce a gigantic executables. Well… Here’s my secret sauce to make compilers generate very small files + another trick that you may not know about. First of all let’s make a small program to test our new compiling flags, you can make your own or just use this code i made for this experiment: MORE