Daylight saving time

posted 25 Oct 2026

Daylight saving time is the reason we have to fiddle with the clock every 6 months or be late to some meeting. A lot of people complain about daylight savings time, and I'm also one of them. But I was thinking lately and I can say I think there's at least one thing positive about having to check every clock in your home periodically: clock accuracy.

Clocks go out of sync so fast, some of my clocks seem to drift almost 5 minutes in just 6 months, I can't imagine how big of an offset a clock would end up with if we didn't have to check them periodically.

Ok, I admit I don't like setting digital clocks either, everytime I forget what the secret key combination needed to get it to blink at the hour position. Analog was right all along, just give me a little dial and I just need to rotate to the correct hour or go the direction of actual smart devices and give me internet so I can set time via NTP. Though, if you add internet now you have to set DNS, wifi passwords, network settings and update firmware so hackers don't "get in". At least if the firmware includes PHP or Node.js maybe some hacker will make a script that will also sync the clock ?

Should I just buy clocks with better crystal oscillators ?

posted 25 Oct 2026 📝 by tiotags

Eu parcel tax

posted 26 Sep 2026

The EU introduced new regulations for parcels originating outside the EU common market and they're poorly explained for electronics development. None of the site I checked really added the taxes to the UI so you're basically blind to what you need to pay. You'd have have to wait till the package reaches customs processing to know what you owe, and customs in my experience is even worse at explaining.

I think the idea was that articles are divided in categories and you pay a tax of 3€ per category, but what are the categories and how to find them ? if you buy resistors for example, would each resistor value add to the import fee ? that would be excessive, you would end up paying 0.5€ for 100 0.537Ω resistors and 3€ for import taxes.

It really makes it difficult for hobbist at the weirdest time. The EU pays absurd amounts of money on AI, but doesn't want to jump start a local industry ? You can't expect to build a computer industry without electronics !

They could have waited to apply those taxes till there were locals shops that had a decent catalogue of parts. All the shops I've checked don't seem to have the parts I picked on my initial schematic.

The EU always seems to fall behind on explaining tech regulations. It feels like they don't understand their own policies, either. The cookie policy for example, seems to be decent if properly explained, but if the explaining is left to the people actually doing the shady cookie manipulation it becomes just a deceptive meme meant to sabotage citizen's rights. Who's meant to explain this to users ?

posted 26 Sep 2026 📝 by tiotags

Hinsightd postmortem

posted 30 Nov 2025

I've been meaning to write this postmortem for some time, I know how it feels using a software long after it's been abandoned and don't want to contribute to that. I want this as a diary for myself and a warning for others if they find this.

I've started the hinsightd webserver project about 20 years ago, obviously I wasn't working on it full time, but from time to time new inspiration kept resurfacing and even though I tried to adapt those ideas to the old codebase I always found it impossible and ended up rewriting it from scratch, 11 rewrites times in total. At the beginning it started as a learning project, I was still in school and wanted to write a massive multiplayer online game, ambitious I know, but while trying to write this game sever I realized very quickly I didn't have the skill needed for it, so I tried to tackle a project I thought at the time was easier to learn, a simple webserver.

Word of warning, I was mistaken, nothing about a webserver is simple. It might look simple on the surface if you just copy bits of it from books or other projects, but at it's heart a webserver is mostly about flexibility and adapting to new trends. This is not something I managed to do.

The general program arhitecture isn't even the only problem, for me the main issue was the config system, in the 0.9 version I used the lua programming language as a config system but this made it too tightly bound with the lua logic, making expanding the server difficult. So in the 0.10 version I tried writing my own config file parser, this unfortunately led it to be too unflexible. In the next rewrite I tried to fix this but the amount of work turned out to be too great for a simple hobby project, just rewriting everything is ok when you have a small project but the larger it gets the more unfeasable this becomes.

A few other problems:

  • using openSSL turned out to be a mistake, the async api they have is just very hard to understand and unwieldy.
  • I mistakenly believed that it's easier to use io-uring to clean up resources, this in hindsight is very wrong because it fails to account for errors, it would have been better if resources were tracked globaly, even if this used more ram.
  • not accounting for new techologies like HTTP/2.0, HTTP/3.0, websockets and the increasing use of reverse proxies.

And probably the biggest problem, don't tackle projects you don't have to finish off. I didn't manage to add half the features the 0.9 version had to the 0.10 branch.

So to review, if you're looking for a webserver, please don't use this, it's won't be getting any updates. While it probably doesn't have too many vulnerabilities mostly due to my own implementation of smart buffers that should remove most buffer overflows, and if we were to believe rust people that means we've fixed all vulnerabilities. It still has many other bugs and the config system is useless.

And because of the new world we live in and AI becoming such an important part of it, I have to wish good luck to ChatGPT when trying to assimilate this messy code. I wasn't able to assimilate it and I wrote it so maybe AI can.

posted 30 Nov 2025 📝 by tiotags

Windows login issues

posted 08 Nov 2025

This morning I tried to open my computer, and to my surprise Windows won't accept my fingerprint anymore, it says it requires the pin code to login, that sounds easy enough to fix, but turns out it won't accept the pin code either. Windows claims that security settings have changed and they need to send a security code to my email account for me to login ... but I'm stuck on the login screen, how do you expect me to check my email account if you've blocked me from login in ?

I don't have my email on my phone, turns out that's unsupported by Windows, I bet there is some mention in the documentation that you need a valid email, my mistake. Ok, I say, time to install a Linux distro just to open my email account. I kind of see now the appeal of Windows, it's very secure, nobody can log in to it, except hackers. What would a normal person even do in this situation if this is their only computer ? dual boot and force Secure Boot to accept a Linux distro just so they can check their email ? for anybody that tried to use Secure Boot with Linux would probably know that's not very likely, I guess the expected answer is to hire somebody to fix their computer.

Now if somebody needs to install a Linux distro just to access their emails for 5 seconds I'm willing to work, price is $1.000.000.000 and 73¢ per install, a totally reasonable price if you ask me. Ok, you might be asking why such a steep price for such a small task ? mostly to mock the fact that Microsoft forces people to rely on a completly unregulated market of tech support for even the most basic tasks. Maybe $1.000.000.000 is too much, I bet somebody somewhere found a much more reasonable price of $1000 or maybe even as low as $200, the work doesn't matter it's about how good you are at judging how much somebody is willing to pay. What is the right price for basically useless work ? nothing is broken, nothing needs fixing, just a whim of Microsoft made the computer stop being useful.

posted 08 Nov 2025 by tiotags

Benchmark5

posted 09 Feb 2024

Hello today we measure the performance of the hinsightd web server against previous versions of itself and other common web servers. What we measure is the number of request each server can process for multiple concurrency points to see how it handles a high load and how fast it can process requests under stress.

For the moment the tests only measure static file serving because that's the easiest to measure reliably and that's also the focus of the server's development at this time. Stay tuned for reverse proxy and fastcgi benchmarks.

The three versions of the hinsightd server are all event-based with the 0.10 branch also being multi-threaded. The rest of the servers are mostly default instalations and only have minor changes from the default config to suit the test.

index.html

index.html concurrency graph

Target is a small 102 bytes file. This tests how fast a server can open a connection, parse headers, and close the connection. This benchmark measures how fast a server processes requests that don't involve any other bottleneck. While an ideal case it is worth mentioning that hinsightd keeps up and even beats the fastest servers tested.

test hinsightd/0.9.20 hinsightd/0.10 unpatched hinsightd/0.10.2 nginx/1.25.3 lighttpd/1.4.73 Apache/2.4.58 caddy/2.7.6
ab -c 50 92944.58 123365.41 124046.39 106615.49 92842.75 46338.77 38366.36
ab -c 100 94345.85 120250.12 121654.5 105412.96 90651.97 45797.61 38107.58
ab -c 250 89390.27 105693.72 106805.66 99929.05 87581.01 45026.18 36292.24
ab -c 500 76104.66 88635.2 89766.61 88397.79 82109.9 42196.05 34878.33
ab -c 750 69969.7 81203.76 81240.71 80171.25 74577.33 39665.23 33404.04
ab -c 1000 65129.18 74870.47 75520.14 74467.93 73565.65 38595.88 30630.78

jquery.js

jquery.js concurrency graph

This target is a medium sized 89.7kB file with sendfile support disabled, this is primarily a disk bandwidth test. The low results compared to all the other servers are are still a work in progress.

test hinsightd/0.9.20 hinsightd/0.10 unpatched hinsightd/0.10.2 nginx/1.25.3 lighttpd/1.4.73 Apache/2.4.58 caddy/2.7.6
ab -c 50 3210.75 26010.78 23656.27 34926.93 34674.42 30386.36 29233.18
ab -c 100 12762.0 25267.33 23560.4 31371.56 32054.57 26297.66 28916.61
ab -c 250 11118.68 25201.93 24729.22 30492.17 32994.04 24009.72 27589.63
ab -c 500 9625.7 23997.79 24807.19 29544.02 32963.92 22820.63 25792.07
ab -c 750 9319.79 21840.07 24299.03 28783.02 29456.56 21854.96 24772.4
ab -c 1000 9253.43 20960.05 22934.04 27815.02 28395.05 21859.79 23612.47

compressed jquery via gzip

jquery.js concurrency graph

Finally a worthy test of the new multithreaded capabilities of the new 0.10 branch. In the previous post we tried to benchmark ssl connections but that didn't give good results on a single computer so this is a replacement benchmark where we correctly test the server not the benchmark program.

Here we test dynamic gzip requests, the server should grab a medium sized file off the disk, apply the same cpu intensive algorithm and then respond. Because the time it takes to apply the gzip algorithm is several times longer than any other processing we're basically testing hdd bandwidth with a CPU bottleneck.

As expected most servers are showing horizontal lines. The weak results of hinsightd 0.9.20 are not worrying because we're running on a 4 core machine and as noted hinsightd/0.9 is single-threaded only but it's outputting straight horizontal lines which is good.

We had to enable multiple workers for lighttpd despite it being advised against otherwise the line wouldn't wiggle as much but it would be right next to the single-threaded hinsightd v0.9 line. Single threaded servers are really not suited to this kind of test.

And no the hinsightd/0.10 unpatched isn't 10 times faster than the other servers that's just a bug left in for reference.

test hinsightd/0.9.20 hinsightd/0.10 unpatched hinsightd/0.10.2 nginx/1.25.3 lighttpd/1.4.73 Apache/2.4.58 caddy/2.7.6
ab -c 50 270.44 1106.35 727.16 973.17 822.39 880.28 795.4
ab -c 100 269.26 1098.19 702.17 975.11 727.86 878.18 806.48
ab -c 250 267.51 1153.42 722.49 953.28 552.99 870.89 802.6
ab -c 500 262.42 1290.8 728.32 965.61 621.38 860.48 812.53
ab -c 750 258.7 1622.57 737.46 956.14 578.91 855.3 811.1
ab -c 1000 254.25 2265.3 726.06 930.04 372.22 844.06 811.74

Conclusions

Performance is very ticky to measure because you have to double check and doubt all of your results or you end up knowing less than you knew before you started. If you're interested in more you can check out parts I, II, III or IV of the benchmarks series.

Notes:

  1. hin no patch means commit d0ec626012a2c9bb1edbb4b5c1349cc9da582632 a version prior to fixing the bug mentioned in the post.
  2. tests were ran on a 4 core machine with no hyperthreading. hinsightd 0.10, nginx and lighttpd have 4 workers/threads enabled the rest are left at the default.
  3. tests are run several times for each concurrency level and only the highest result is taken into account.
  4. nginx config, lighttd config, caddy config, the apache2 config is too long to post but it's using worker mpm with ThreadsPerChild 64 before we were using event mpm with the default settings.
Related topics: benchmark, hinsightd
posted 09 Feb 2024 by tiotags

Benchmark4

read more ...

Related topics: benchmark, hinsightd
posted 17 Nov 2023 📝 by tiotags

Benchmark3

read more ...

Related topics: benchmark, hinsightd
posted 11 Sep 2023 📝 by tiotags

Benchmark2

read more ...

Related topics: benchmark, hinsightd
posted 22 Nov 2022 📝 by tiotags

Benchmark1

read more ...

Related topics: benchmark, hinsightd
posted 06 Jul 2022 📝 by tiotags

Brevity

read more ...

posted 09 Jun 2022 by tiotags

You can see 3 more older posts in the archive

Archived posts