Better HN
topnewbestaskshowjobs
Log inSign up

iggldiggl

984 karma · joined Mar 23, 2018 (8y ago) · 1,184 submissions

Submissions

comment 23h ago · link · parent

It'd also do funny things to speed limits if taken literally and never mind what'd happen close to the polar circles…

comment 1d ago · link · parent

Sure, and I probably have stuff I rather really treat like a commodity, too… but it's basically one reason why I'm not really a target customer for Aldi.

comment 2d ago · link · parent

> The issue here is just that the permission model does not allow for all use cases.

The problem is that for anything more complicated than a simple "grant access to this one file/directory" both the permission system and its associated UI also get pretty complicated pretty quickly.

Like "opening a file with a certain app will allow that app to read that file" is pretty easy to understand, but "opening a file with a certain app will allow that app to read all other files within that directory" already less so (but is precisely what would be needed for an image viewer).

Eventually you get to a point where it's easier to just fall back to a generic "all files" permissions, which then leads back to arguments whether users can be trusted with it.

> The fact that the full path isn't revealed just seems like a sensible thing to do. Even if you give an app access to a full directory, why would it need to know where that directory is located?

You wouldn't necessarily need the full path of the directory, but you need at least some kind of handle to it, and Android doesn't give you one when you're receiving a single file from another app. And since the file path is hidden from you even if the file is local and not cloud-based or something else, you can't even ask the user for directory viewing permissions yourself (or maybe you've even already been granted those permissions, but you still can't use them because you don't know where that file resides).

The technical justification was that the new file sharing API could in theory be backed by anything, not just the local file system, so they didn't want apps to rely on a local file system path and therefore made the design to force apps away from it (only semi-successfully, because at the same time the default implementation still somewhat leaks the original path, so you could try to reverse-engineer it from that, plus when I tried to research a bit, it seemed that possibly even without root there still was some way of getting a file system path back from a raw file handle, provided of course that the file really was backed by something local, and not cloud storage).

So far so fine, but it does break some stuff. E.g. it messes up LRU lists (opening the same file once via app A and once via app B creates two distinct LRU entries in app C), plus like I said, even if the receiving app already holds sufficient file system permissions itself, it cannot use them because it doesn't (officially) know which file and which directory it's dealing with.

And like I said, for the use case of an image viewer being able to browse adjacent files, it needs to know not only the specific file it's supposed to open, but also its containing folder.

> It's been a long time since i used Android, but why don't they just implement the ability to grant access to a given folder?

They did, but in combination with the new file sharing API that is precisely what broke advanced UX workflows like wanting to browse adjacent files in an image viewer. (Or being able to view local HTML files that aren't monolithic MHTML archives – if you pick such a file from a file browser to open it in your web browser, the web browser won't be able to open any associated subresources or follow any links to other local files.)

comment 2d ago · link · parent

That's fine when that product suits your tastes, but is a problem when it doesn't, because then you have no alternative choice to fall back on.

E.g. even cornflakes – first of all, if you really want to standardise on one single "cornflakes" product, does that mean sweetened or unsweetened cornflakes? If it's the former, I already loose out, because I prefer the latter. (I sweeten them myself if necessary.) And even among the latter category, I've observed some definite variation in both taste and shape/size distribution of the cornflakes, leading to me preferring a certain brand over others.

comment 2d ago · link · parent

> hehe yeah not the best example, let's replace glass cleaner with shampoo, toothpaste, soap, any kind of commodity product!

Soap isn't quite soap, though. Like with a certain brand of soap I was using, once I had used like maybe two thirds or three quarters of it, the remaining bit would somehow always sort of dry out or something and no longer foam up properly when washing hands. Whereas a different brand of soap remains perfectly useable all the way to the end.

comment 1w ago · link · parent

> Consider how the file picker works. If you press a button in the app, then a file picker is opened, but the app gets no access to anything until you select a file to give it. Clearly, this is way better than giving the app read access to your whole HDD.

For some values of better – e.g. I'm browsing through a folder with some (the) file explorer, and then decided to open an image with my favourite image viewer. The UX-friendly expectation is that I can then continue browsing (go to the next or previous image) from right inside the image viewer.

File system sandboxing however insists that the image viewer isn't allowed to access anything else, so instead I either have to go back all the way to the file explorer to open the next image, or at the very least invoke some kind of OS-blessed file open dialogue for the image viewer to be allowed to continue.

The latter is the official situation on Android, and it's rather suboptimal, to put it that way. (Made worse by the fact that the blessed way of opening a file with another app also tries to hide that file's location from the receiving app, so even if my image viewer e.g. already had sufficient file system permissions to access that file and its whole folder, without some hacky workarounds it still couldn't offer me to continue viewing other pictures inside the same folder because it doesn't really know which file it's currently opening.)

comment 1w ago · link · parent

> Sideloading on Android has become even worse than on iOS, with a 24h waiting period to enable it.

In the short-term, I suppose that 24-hour period is *#@!§$%-annoying and a regression compared to the previous situation, but beyond that it's still way better than Apple where a) you have to install Xcode and build the app yourself, b) you can only install three apps concurrently and c) you need to reinstall them every seven days.

With Android, beyond that initial 24-hour waiting period, you don't need any external software, you can install an unlimited number of apps and once installed they stay installed forever.

comment 1w ago · link · parent

And some train lines randomly turn into a highway, most notably in the south-west corner…

comment 2w ago · link · parent

I think that with the current iteration of Play Integrity (that more strictly enforces hardware-based security where available), Google actually introduced an additional certification level for "genuine OS and has recent security updates".

The difference though is that there are many more people with outdated phones than there are people with unlocked bootloaders and/or root, so a company might be loath blocking a sizeable fraction of customers with outdated phones, but have no compunctions about the latter, much smaller group.

comment 2w ago · link · parent

I think the grey area is a bit bigger than that.

The Digitale-Dienste-Gesetz (https://www.gesetze-im-internet.de/ddg/__5.html) in § 5 imposes this requirement on "geschäftsmäßige, in der Regel gegen Entgelt angebotene digitale Dienste", i.e. "services operated in a business-like manner, usually against payment". The key word here is "geschäftsmäßig" (literally translated "in the manner of a business", "business-like"), which within German law is held to be a weaker requirement than "gewerbsmäßig", that is "commercial".

"Geschäftsmäßig" can be anything you keep on doing regularly, independently of any profit motives – you can find a few discussions of that online, and amongst other things, the same term was also used in now-overturned legislation against commercial assisted-suicide, where it caused the same interpretation problems whether doctors or non-profit associations nonetheless might be construed to be acting "geschäftsmäßig" even if they didn't take any payments.

The "usually against payment" bit means that anything done for money can unambiguously by default be presumed to be business-like (and even worse, one possible additional interpretation is that anything other people usually do for money can be argued to be "geschäftsmäßig", too, even if you yourself offer it for free), but the reverse isn't necessarily true.

The other relevant law is the Medienstaatsvertrag (https://www.die-medienanstalten.de/fileadmin/user_upload/Rec...), where an exception from the imprint requirements in § 18 is made only if operated for "persönlichen oder familiären Zwecken", i.e. for "personal or family purposes". (And journalistic offerings, which can potentially cover some blogs or forums for example, are even subject to extended imprint requirements.)

The "family" bit is relatively clear, but "personal" purposes are once again more interpretable. A wide reading of "personal" would indeed cover all sorts of non-commercial hobby pages, though in that case you could ask yourself the question why a separate exception for family purposes would then still be required, too?

A narrower reading of "personal" on the other hand would only cover stuff that's literally only intended for you, like login pages to your personal webmail or Nextcloud instances, your private picture or file hosting and similar things. Some lawyers even go as far as including a private diary (that for some reason however you decide to publish online and even without password protection) within the category of "personal" things (though depending how much your diary refers to identifiable outside entities, it could also be construed to be a journalistic offering and therefore definitely subject to imprint requirements), but that's about the limit.

Hobby pages intended for the non-specific general public (outside of just family and friends) are therefore very much in a grey area as to when exactly the imprint requirements are starting to become applicable even if you don't do any ads at all.

Given how on the other hand a few years ago there was this big brouhaha about full WHOIS data being publicly available (it no longer is), it seems a bit schizophrenic, but there you are…

(That said, while I do think that the full imprint requirements are a bit overblown for private hobby pages, the reverse situation in the US also seems a bit weird, where even seemingly legitimate smaller online shops often don't seen to provide any proper contact data beyond some anonymous e-mail or contact form…)

comment 2w ago · link · parent

Especially among business accounts, "power users" shouldn't be that uncommon, though, because I don't think that wanting to directly access your bank accounts via your accounting software is that exotic an usecase.

Though on the other hand, from some point of view maybe business accounts enjoy less legal protections against customer stupidity, so banks might be more willing to offer direct access there…?

comment 2w ago · link · parent

> There is only one bank I know of that offers an API for end users ("bunq" IIRC). Every other god damned bank insists on being user hostile.

In Germany, a lot of banks offer access via the FinTS-API.

comment 3w ago · link · parent

Re Fallersleben, I think you're confusing Fallersleben (2002) and Leiferde (2022).

The former was an actual safety-critical error in the LZB software, leading to the rear train getting an erroneous movement authority after a restart of the LZB control centre. This was fixed with a corresponding software update.

The latter was indeed somewhat comparable to the current situation – a train operating under LZB in partial block mode dropped out of LZB, and the signaller didn't properly verify whether the line ahead was clear before authorising the train to restart and did lead to on-sight running being mandated for that kind of situation (dropping out of LZB in partial block mode).

comment 3w ago · link · parent

But for most people those associations are very useful and actually a desirable property.

Besides, even if you switched to some new, completely-blank-slate system of tracking time, those associations would quickly redevelop since presumably most people will predominantly deal with local events within their own time zone. Only now with added confusion when you do encounter a foreign time reference after all…

The thing is, those "global time" proposals don't change anything about the fact that you have to look up local time and/or local customs when scheduling events in foreign timezone – you have to do it today, and you still have to do it even with a single global wall clock time.

The only thing it does – resolve some potential (potential, not definite!) ambiguity around what (wall clock) time exactly cross-time zone events are taking place, but at the price of completely breaking any association between clock time and the solar day. Personally, I don't think that's worth it.

> "School starts @740"

Which precisely illustrates the problem – because you didn't mention a location, that sentence is now completely meaningless. If I encountered it in a random story – does it mean that it is in the morning (but early morning or late morning or what?), is it in the afternoon…?

Like I said, I posit that most people regard the association between clock time and solar time as an advantage, not as a drawback.

> You could easily have a 'multiple calendar days during one solarday' situation.

I didn't say that this doesn't already happen today, but today it affects far fewer people in mostly less important ways.

comment 3w ago · link · parent

> and 3. how to ensure that the train (driver).

That should have read "how to ensure that the train (driver) follows the directions given by the signalling".

comment 3w ago · link · parent

And as of now, I suppose that RCAS (or RCAS-like systems) is best suited for (especially minor) single track branch lines that don't currently have a full-scale signalling system already up-and-running, but instead still rely on "Timetable & Train Order" and similar systems.

Single track means that at least outside of stations, collisions can be reliably identified without much danger of false positives (and for station areas you can just institute a blanket speed limit to compensate for the gap in RCAS coverage, which might not even be any lower than the speed limit required for traversing diverging/spring-operated/hand-operated points there anyway), and no already existing full-scale signalling system means that RCAS actually provides a significant safety benefit and is therefore likely worthwhile from a cost-benefit-analysis point of view, too, if you're actually regularly operating multiple trains simultaneously on that kind of infrastructure.

Whereas on multi-track mainline railways avoiding false positives is much harder and normally you should already have proper signalling and train protection systems in place anyway, so the additional safety benefits of RCAS would be much more marginal.

comment 3w ago · link · parent

> If we can design self-driving cars, that operate safely in far less controlled environments

Self-driving cars aren't supposed to drive quicker than they can look ahead, which makes the problem way easier because you don't have to figure out how to detect obstacles ahead of time and can simply rely on vehicle-local information to stop if necessary. And because cars can brake way more rapidly than trains, it means you can still drive reasonably quickly even within that limitation.

Plus in an emergency, cars have steering as an additional degree of freedom to attempt getting out of any nasty situation that may have developed.

(And of course the socially expected safety standards for cars are quite a bit lower than for public transport…)

Trains on the other hand have braking distances on the order of a kilometre or so, and high-speed trains at full speed several kilometres, so trying to get by on local data only is hopeless and the usual strategy is instead having central signalling system that can accurately track trains and coordinate their movements.

comment 3w ago · link · parent

Yes, but as long as the central signalling system is working, it already knows where the train is, with no need to involve GPS. (And where modern signalling and train protection systems need increased precision as compared to the granularity of track circuits/axle counter sections, the solution usually involves a combination of on-train odometry plus track balises at occasional intervals in order to reset any inaccuracies that might have accumulated.)

What we're talking about here is some sort of TCAS-equivalent for the case where the central signalling is down – while it's easy to accurately localise trains with the aid of a central signalling system that authoritatively knows about the infrastructure layout, it's quite more difficult when you're trying to do the same thing in a decentralised, train-local fashion.

comment 3w ago · link · parent

> Update. A second security system should had stopped the train automatically in the next red semaphore (or reduced the velocity to 40Km/h) without machinist intervention. That system was down also.

No, it wasn't, from the way things have presumably played out, the scenario has simply hit an inherent design limitation. Namely LZB (https://en.wikipedia.org/wiki/Linienzugbeeinflussung) is the primary signalling and train protection system, but as a fallback, conventional colour-light lineside signalling together with the corresponding conventional train protections system (ASFA) has also been provided.

As a fallback system however, the lineside signalling has been set up with much longer signalling sections than the LZB, i.e. one conventional signalling section comprises multiple LZB signalling section. As such, it is still perfectly safe and serviceable, with the only immediate drawback that capacity will be significantly reduced due to the longer signalling sections (and also slower running speeds – the lineside signalling is limited to 200 km/h max).

The only problem comes in when you need to make an unscheduled transition from LZB to lineside signalling because of an LZB fault – while at first the trains will be safely braked to an immediate stop, you may now have ended up with multiple trains (all safely inside their own LZB block section) within the same lineside signalling block section. Which means that now there is no "next red semaphore" to prevent the second/third/… train from running into the train in front.

The proper procedure therefore is to untangle the trains by running them out of that accidentally shared block section one at a time and most likely at a reduced speed, too, but for some reason that procedure wasn't followed here…

comment 3w ago · link · parent

> It's very approximate.

Yeah, but within that approximation it's still very useful to be able to immediately have a rough idea without having to explicitly look it up each time. Plus like I said, calendar date/weekday changes happening during the middle of the day would be the much bigger annoyance…

comment 3w ago · link · parent

> TPWS is where a little light comes on saying it would be a good idea to brake now because you passed a signal at danger. Only very fancy versions of TPWS will actually apply the brakes for you.

You're confusing AWS and TPWS – AWS is the older system (based on pre-WW II technology but only deployed nationwide after WW II) which sort of roughly fits your first sentence, while TPWS will actually stop you if you're trying to pass a signal at danger (with the caveat that most automatic signals on the plain line aren't fitted on the basis that a train will relatively rarely actually have to stop at one – statistically that's absolutely sensible if you only have a limited amount of money and want to cover the higher risk signals first, but unfortunately the recent Elstow train crash did manage to hit that particular gap in the system…).

> But even then, an inquiry asked to look specifically into ATP determined we were right to reject it, it was just Too. Fucking. Expensive.

But you did eventually get TPWS which does deliver a quite large fraction of the safety benefits of ATP at a significantly smaller fraction of the costs.

comment 3w ago · link · parent

You're conflating multiple things – 1. train detection (which can be track circuits, as described by you, axle counters or on the most modern systems even train-based train detection), 2. how to transmit the stop/go information to the train (driver), and 3. how to ensure that the train (driver).

LZB (the "German system that is more advanced that basic electrical fault based system") does 2. and 3., but in its usual mainline implementations still needs a conventional train detection system.

> it was just switched off because it was broken. That's downright reckless, and it shouldn't be a normal behavior.

The Spanish line in question is actually equipped with conventional colour-light signalling (and the corresponding conventional train protection system) as a fall back, which is perfectly safe, too.

The only critical bit (which by the looks of it unfortunately failed here) is managing an unplanned transition between the two, because for reasons of cost, the fallback signalling utilises much longer block sections than the LZB signalling, so if the LZB fails unannouncedly, you can end up with multiple trains (each inside its own dedicated LZB block section) inside the same line-side signalling block section, so restarting the train needs to be safely managed by getting them out of the accidentally shared block section one at a time.

comment 3w ago · link · parent

The problem then becomes avoiding false positives – on multi-track lines, trains on adjacent lines can pass each other as little as 3 to 4 metres away, and within stations and junctions, you can't properly predict a collision without also being aware of the current point positions.

The signalling system has already all the necessary data here, the trains by default none to few of it.

Hence it is usually way more tractable to just improve the reliability and functionality of the signalling system itself and don't bother with complicated technical fallback solutions.

(Things might look differently if you've only got single track lines and no modern signalling system in place – in that case a TCAS-like system might be worth it and not too difficult to implement, especially if you limit its scope to the plain single track line outside of station areas.)

Flying is different – the difference between your positional accuracy and the minimum safe separation between planes is way more favourable, so detection of potential conflicts is much easier.

And – while these days air traffic controllers do usually have computerised aids available to detect impending traffic conflicts, ultimately the system still relies on controllers correctly detecting any conflicts, issuing the correct commands to pilots, and those pilots then correctly executing those commands, too. That's a lot of human in the loop, so the impetus for some fallback safety system (TCAS or whatever) is much stronger.

With trains on the other hand, the default state for any kind of remotely modern signalling (for at least a few decades already, actually) is that the signalling is able to automatically ensure that the route is set correctly, that no conflicting routes are set and that no other trains are occupying the route. Likewise, even without full automated driving it is still possible to ensure that trains are actually following the commands of the signalling.

Hence with railways, the appetite for a completely secondary technical fallback systems to cover outages of the primary signalling system has been much lower, and like I said, it is usally more tractable to try improving the safety and reliability of the primary signalling system. (Though yes, for the fallback case you also need to properly prepare appropriate manual procedures that take into account the increased failure risk of manual operations…)

comment 3w ago · link · parent

Trains can safely pass each other within a few metres distance, so GPS by itself is not enough.

comment 3w ago · link · parent

> If we could just all stick to UTC in the world...

A very useful property of the current system is that calendar days are aligned with solar days and the change of calender date consequently happens when most of the population is either asleep or otherwise not too fussed about the exact date.

UTC-only (or equivalent "global time" proposals) breaks that for everybody not living near wherever the meridian ends up, which causes a lot of weirdness when a single calendar date can suddenly refer to two completely different solar days and two completely different wake cycles.

Additionally, such a proposal would also break all clock time references in fiction, especially when reading works set abroad or in some unspecified (but still Earth-like) setting, but I guess if you don't care about the calendar date weirdness, you wouldn't care about that, either…

comment 3w ago · link · parent

> My preferred solution would be to abandon all time zones and use something like UTC

Which means that

a) textual time references in stories would stop working unless also specifying a location, which would cause a lot of weirdness, especially in fiction

b) perhaps more importantly for day-to-day life, it causes a lot of weirdness around the change of the calendar day and the weekday. It's a rather useful property of the current system that the change of calendar day happens at a time when most people are asleep or otherwise not too fussed about the exact calendar date.

If you completely abolish time zones, that means that for everybody not lucky enough to live near wherever the meridian ends up (which would always be a significant fraction of the world's population, no matter where you'd place the meridian), the change of calendar date would happen during the middle of the waking hours, which causes a lot of weirdness (do public holidays now actually start and stop in the middle of the working day?) and makes date references vastly more cumbersome because a single calendar date can now refer to both solar n in the afternoon/evening and solar date n+1 in the morning.

So you'd have to start using rather awkward double dates for referring to a certain solar day ("the event will take place from the 22/23rd to the 24/25th", "see you on Thursday/Friday" [which isn't the same thing as "see you on Thursday or Friday" today, because that'd become "see you on Thursday/Friday or Friday/Saturday" under the new system properly]), or else develop some convention based on the local solar noon/midnight, which is basically reintroducing time zones through the back door.

comment 1mo ago · link · parent

The iTunes store has had 1:30 long previews above a certain song length threshold (2:30, if I remember correctly?) for years now.

comment 1mo ago · link · parent

> which requires just your banking app

Which might not play nice with rooted phones/unlocked bootloaders, either.

comment 2mo ago · link · parent

Historically, the amount of data available to traffic lights controllers was rather rudimentary, basically a simple presence/occupancy detector covering the area immediately upstream of the stop line and/or some point somewhat (a few seconds of driving time) further upstream of the stop line and/or the whole area in-between. The detector could be implemented via an inductive loop buried within the pavement, or it could be a camera, but with the camera still usually working only as a simple presence detector with no advanced detection capabilities where it could actually intelligently "see" individual vehicles.

With such a setup, the traffic lights controller can't actually see that there's only 4-5 cars approaching on the main road – either they're far away enough that they don't even register on the detector for the main road yet (in which case a vehicle waiting on the crossroad will naturally trigger the phase change without delay), or even if they're already near enough to the intersection to trigger the detector, the traffic lights controller can't actually know that it's "only" 4-5 vehicles and its strategy might hence be that if the main road has had more than x seconds of uninterrupted green time, a demand from the side street will be granted immediately, regardless of traffic conditions.

With a state-of-the-art system it'd be different – with more and better sensors the traffic lights controller could actually track individual vehicles (or platoons of vehicles) as they approach the intersection and try making the kinds of trade-off you mention – but somebody needs to pay for that kind of upgrade. (And I suspect we haven't necessarily reached the point where the price premium for that kind of advanced traffic lights controlled compared to classic traffic actuation is negligible enough for it to be the default at least for all new intersections and equipment renewals, either…)

comment 2mo ago · link · parent

> Always figure out all the apps I need to use local transport, to park, to charge the car, etc. In plenty of regions you also need special (often confusing) wallet apps to be able to pay for stuff without local bank accounts.

And everybody's favourite, apps that have been region-locked to local-inhabitants-only, because foreign visitors don't exist, right?

12345
40