iljitsch.com

blog topics: tech · BGP · IPv6 · more · my publications · my business: inet⁶ consult · contact: Twitter · LinkedIn · email · 🇺🇸 🇳🇱

Hi, I'm Iljitsch van Beijnum. These are tech/gadget related posts.

Resizing photos in PHP with correct orientation/rotation and retaining EXIF data

When I got my first iPhone back in 2008, I hacked together a quick script that let me post photos from my iPhone to my website. However, iPhone photos are now 3 MB or larger, which is a bit much. So in practice I would edit the photos on my computer before posting them. But that gets old, so time for some automation.


The first photo I uploaded directly from my iPhone 3G, showing part of the script

Actually resizing images is easy enough in PHP using the imagecopyresampled() function. However, using the provided example script the result was that a photo that I took with my iPhone showed up rotated...

Full article / permalink - posted 2021-11-28

Test post preparing for HTTPS

For some time now there's been a push to move the entire web from HTTP (no encryption) to HTTPS (with encryption).

I never felt it was necessary to encrypt static content. But the time has come to cave to peer pressure, and enjoy a few benefits such as the ability to post images to web forums.

However, I still feel very strongly about everything remaining accessible over HTTP. If you go HTTPS-only, you are now relying on a certificate authority (as well as your own ability to keep certificates up to date!), and you're cutting off some older systems and losing some performance. Also, having to change everything wholesale will be somewhat of a nightmare.

Full article / permalink - posted 2021-11-20

Be gone, Kailh Box Orange switches!

Five months ago, I put Kailh Box Orange switches in my Massdrop CTRL keyboard.

Today, I took them all out and replaced them with the Cherry MX Browns that the keyboard came with. There were just too many keys that generated an extra spurious press. So that would be "I typee" rather than "I type". This seems to happen especially with often used keys like e. So let's see what happens when I've used the Cherry MX Browns for five months.

Permalink - posted 2021-08-07

Review: MouSTer: making my favorite wireless mouse work with my Amiga

Original Amiga mice were never that great, and a few decades of use and storage didn't help. So if there's one part of the Amiga I have no problem replacing with something new, it's the mouse. (Don't feel bad, I swore of Apple mice, too.) So a while ago I got a USB-to-DB9 mouse adapter. That one worked fine with wired mice, which was a big improvement.

However, a few years ago I discovered the Logitech Anywhere MX 2 wireless mouse...

Full article / permalink - posted 2021-07-24

Iconverter makes your old Amiga icons look right

The way the Amiga handles icons changed a number of times over the history of the platform, with the result that many older icons don't look right on Amigas running later versions of the OS. I made a tool to convert these old icons so they look like they should on later Amigas: Iconverter.

Full article / permalink - posted 2021-07-14

Glasvezel: Fiber To My Home!

Overstappen op een heel nieuwe manier om aan het internet te koppelen gebeurt niet elke dag. Maar deze week wel: ik heb nu een glasvezel-verbinding. Het interessante aan FTTH (fiber to the home) is dat dit de eerste kabel is die het huis binnenkomt die daadwerkelijk bedoeld is voor internetverkeer.

Volledig artikel / permalink - geplaatst 2021-06-06

older posts

Search for:
RSS feed

Archives: 2005, 2006, 2007, 2008, 2009, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021