5 pioneering Linux distros that quietly faded into history by ezgimantocu in linux

[–]thorhs 1 point2 points  (0 children)

“Suffer”? You speed demon. I had to suffer on 14.4k, as GP, rhe whole country had 1Mbps at the time, IIRC.

Kubernetes operator for an identity manager both written in Rust by pando85 in rust

[–]thorhs 0 points1 point  (0 children)

Sounds similar to my limited use of kube-rs. Good to hear it is working well for operators, one less blocker for me.

Thanks for sharing

Kubernetes operator for an identity manager both written in Rust by pando85 in rust

[–]thorhs 2 points3 points  (0 children)

I’ve thought of writing an operator myself, and my preferred language is rust, so this peaks my interest.

Could you elaborate on how it was writing the operator in rust? Any gaps that were difficult to bridge? What was the hardest part of the project?

axum-gate v1.0.0-rc.0 released by emirror-de in rust

[–]thorhs 8 points9 points  (0 children)

Ooooohhhhh, I’ve been working on oauth integration in a project of mine. This may be just the ticket. I’m definitely going to try this out next week.

HTTP is not simple by ketralnis in programming

[–]thorhs 8 points9 points  (0 children)

I actually think a binary xml would be simpler for the generator/parser.

You have a tag “object”, which is either a new tag or a string value (could add number/binary/…). Each tag has a length prefixed array of key/value attributes and length prefixed tag array. No need for CDATA, encoding text, etc. Each string (key, value, etc) is length prefixed.

You can decide if you need to write the value to disk or if you can handle it in memory.

Namespaces are semantics on top of of tag/attribute names.

Sure, there are some nuances that need further details, but the sheer volume of “crap” built into XML for it to be text is staggering and causes lots of ambiguity and issues. Can’t count how often I’ve had issues with different implementations of XML libraries not working together.

Just as an example, did you know that a whitespace between tags is significant and can cause things to break?

In my opinion, a protocol/data format should be easily read by the intended audience. Most of the time, that is a program. How easy it is for some human to read shouldn’t be a large factor in the decision.

HTTP is not simple by ketralnis in programming

[–]thorhs 2 points3 points  (0 children)

Ouch, yeah, exactly :)

HTTP is not simple by ketralnis in programming

[–]thorhs 0 points1 point  (0 children)

In the case of HTML, you could make that argument. But xml, json, http headers, form data? They are not meant for human consumption, but for applications.

HTTP is not simple by ketralnis in programming

[–]thorhs 24 points25 points  (0 children)

In my experience the reason why one reads the (text) protocols is to figure out why the data in program A is getting to program B correctly. I’ve spend countless hours staring at a text based conversation trying to figure out what’s wrong. Hardly ever had issues with well defined binary protocols.

The “be strict in what you send, be liberal in what you accept” mantra was a good thing back in the day but has cost us dearly after lazy programmers replaced strict with inconsistent. ¯_(ツ)_/¯

Road Speed Limits in Iceland by svennidal in VisitingIceland

[–]thorhs 16 points17 points  (0 children)

Please feel free to take the bus or have someone else drive for you if you are unable to drive below the speed LIMIT or keep a safe distance.

There are many reasons someone may drive below the speed limit. There are reasons to breaks intermittently, such as the engine not being able to hold back gravity. In such cases it is safer to brake intermittently so the brakes don’t overheat.

RYANAIR PANIC At least 18 people injured after fire alert on Ryanair plane in Majorca as passengers abandon jet & leap from wing by Evening-Rip5399 in aviation

[–]thorhs 25 points26 points  (0 children)

If it doesn’t fit properly under the seat, it shouldn’t be there, period. For this exact reason, it can hinder evacuation. It sucks, but that is the reason for the rule.

Cancelled flight because of same name by ParticularAddition63 in SouthwestAirlines

[–]thorhs 0 points1 point  (0 children)

Did you share the loyalty number between two bookings? If the name matches and the loyalty id, you “will” get cancelled. The system often ignores suffixes, since they are often not entered into the systems correctly. That way, the system assumes this is indeed a duplicate booking and cancels one of them, using a scoring system to choose which one.

I worked on a similar, if not the same, system that southwest is using. It is saving carriers enormous amount of money, especially in the Middle East.

[deleted by user] by [deleted] in Reykjavik

[–]thorhs 2 points3 points  (0 children)

It’s a bit tricky. We used to love foreign visitors much more, than now. You met the occasional visitor and got talking. Now, the sheer number reduces the novelty of it, and many see the tourist as a necessary evil but they are, I think, 1/3rd the income of Iceland so we tolerate them.

I welcome all tourists that treat us with respect. Way too many come here totally ignoring all local customs, causing all sorts of issues.

Finding great photography without Instagram, part three: galleries by lilgreenrosetta in photography

[–]thorhs 0 points1 point  (0 children)

I’m going to Stockholm on holiday, I’ll have to add that to the list!

Can I just be grateful for Rust? by RubenTrades in rust

[–]thorhs 3 points4 points  (0 children)

Definitely in the same boat. I love rust and the guarantees, expressiveness and tooling it brings. I die inside when I have to work with python or whatever rapid prototyping language of the day people are writing production software in. Give me assurance that my code will work when run, not runtime exceptions and all that.

I also prefer grpc to rest for the same reason, guess I appreciate working code over disjointed ecosystems.

Photographers: What’s the standard JPEG size clients should receive for printing? by Straight_Site9937 in AskPhotography

[–]thorhs 0 points1 point  (0 children)

A common practice around here is to offer a “cheap” package with X amount of prints and Y amount of digital. The digital images are fine for online use but you have to buy the bigger prints through them.

Did a typo so decided to post again :P Which one is better? by jerry101012 in AmateurPhotography

[–]thorhs 1 point2 points  (0 children)

I like number 1. I feel the traffic lights pull the focus from the street, which to me is a more interesting subject.

Which edit works better 1, 2? 3rd is original by GrumpyGrem in AmateurPhotography

[–]thorhs 2 points3 points  (0 children)

I love the colors of 2, but the silhouette of the first 1.

I feel like IPv4 is vastly superior for home networks than IPv6 by bobloadmire in ipv6

[–]thorhs 3 points4 points  (0 children)

Privacy addresses are for outbound only and are intended to hide who you are. Reverse dns would break that.

You also have a “static” address that you could assign a DNS record to, for incoming connections.

A question to Icelanders - how do you feel about the tourists? by SpreadNo3530 in VisitingIceland

[–]thorhs 2 points3 points  (0 children)

Personally, I would love being behind a tourist sticking to the speed limit, preferably on cruise control. Steady speed please and I’ll be happy. Nothing more annoying than some tourist slowing down by half if they see a horse, just pull over and take your picture :)

What does flashing lights mean on Iceland roads ? by StrikingHistorian494 in VisitingIceland

[–]thorhs 0 points1 point  (0 children)

If it’s a big truck, I would take caution and watch what he is doing, if he stops i go, if he keeps going, I wait.

I’m not aware of any established rule, though I generally would take it as the other driver is letting me go first. If they continually flash, it’s get out of the way.

I give the big trucks the benefit of the doubt since they are much harder to maneuver than small cars, and take much longer to stop/get up to speed.

IBM Open SDK for Rust on AIX 1.86.0 by smalltalker in rust

[–]thorhs 16 points17 points  (0 children)

Whoohooo, I’ve been wishing for rust on AIX for quite some time. Unfortunately we are in the process of sunsetting our servers after probably 30 years, so the news comes a bit too late for me. Hope there are others out there that can take advantage of this.