Cover Image

Broadcast Channel

Introduction Recently, I came across a captivating animation showing two browser windows interacting as they moved across the screen. This popular gif sparked widespread curiosity and admiration. Initially, like many others, I was baffled about how such an effect was achieved. My first thought was the use of localStorage, but that approach seemed inefficient due to its reliance on frequent memory polling. Intrigued, I delved deeper into possible solutions and discovered the Broadcast Channels browser API....

December 2, 2023 · 3 min · 456 words · Daniel Legt
Cover Image

My Linux Configs

Configs Repo About I have been wasting so much time reconfiguring all my instances of linux each and every time, now I have finally decided to create some kind of repository where I can store all of my configurations and keep them up to date on multiple devices. In this page I will show you a couple of my configurations but not all of them, as this is more of a “blog” format and it wouldn’t be too much fun to write actual code here for people to browser, so I have created a repository which you can visit at the top of the page, if you are actually interested please have a look, I have been trying to make the configuration as sane as possible and I am more than open to suggestions....

June 21, 2023 · 3 min · 534 words · Daniel Legt
Cover Image

PHP IP Fetch

About Fetching an ip address in PHP is rather simple but this relies on the web server, this can be any of the available web servers such as Apache, nginx, lighttpd or even the internal php web server. It shouldn’t really matter what kind of web server you are behind of, unless you have reverse proxying methods or you are behind a VPN/docker/etc… Code Here’s the snippet for the function, I recommend adding this into your helper functions, it shouldn’t really be kept in a class or associative array as you will most probably access it from different sections of code more or less unpredictably....

January 4, 2023 · 3 min · 506 words · Daniel Legt
Cover Image

Fonts I love

Looking for fonts can be quite a hassle, every single person is looking for a font to fit their needs some even making their own. I am all about aesthetics and functionality, I can’t help but appreciate fonts that go out of their way to implement quality of life features such as font ligatures, it just makes them so much better. I have a couple favorite fonts and even do a switch-between every couple months/weeks....

January 4, 2023 · 2 min · 421 words · Daniel Legt