Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
grishka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
901.
▲
by
grishka
2y ago
What "software problem" are you talking about?
902.
▲
by
grishka
2y ago
And what difference does that make with regard to software distribution models? It can easily be connected to a cellular network using one of those USB modem sticks btw.
903.
▲
by
grishka
2y ago
US and Japan are the two unusual countries where iOS has more market share than Android. In the rest of the world, iOS is maybe 20%. For computers the situation is exacerbated by the fact that many people own one mostly for gaming, which
904.
▲
by
grishka
2y ago
That server would have to process thousands of requests per second during a rush hour with very little delay. In addition to QR codes just being much more finicky than tapping a card or sticking something into a slot.
905.
▲
by
grishka
2y ago
Even for single-use tickets, the turnstiles on the entire system need to somehow know that you've used your QR code the moment you did it. This requires them all to be connected to some sort of central server. There's a reason why
906.
▲
by
grishka
2y ago
The way you pay for those buses is also kinda ridiculous. You're supposed to know that it costs something like $1.75 and you're supposed to have the exact amount in cash, no change given. But maybe it changed since 2016.
907.
▲
by
grishka
2y ago
But there still needs to be some sort of validator that you need to use, doesn't it? I've been to two cities with a similar system where you're trusted, Helsinki and Berlin. In Helsinki there are validators that people tap so
908.
▲
by
grishka
2y ago
MacOS is a great example of what happens when that competitive ground does exist. Most Mac apps are distributed outside of the app store, some aren't even notarized.
909.
▲
by
grishka
2y ago
But that's a train that goes outside of the city or between cities. You usually buy a ticket specifically for the route you're taking so no system-wide synchronization is necessary, only the origin station needs to know that you&#
910.
▲
by
grishka
2y ago
Thinking of it, QR codes make sense for when you buy a single-use ticket at the station with the intention to use it immediately. We actually have this for suburban trains, it's just a receipt with a 1D barcode on it. You use the barco
911.
▲
by
grishka
2y ago
Update: some of those that I labeled as Mifare Classic are actually Mifare Plus, it's just that the app I'm using didn't distinguish them ¯\_(ツ)_/¯
912.
▲
by
grishka
2y ago
Maybe some kind of custom NFC command that writes the UID into the EEPROM and sets a flag that it's now read only?
913.
▲
by
grishka
2y ago
How does the system know that the ticket was already used? The thing with plane and long-distance train tickets is that you buy them for a specific route. So all the checking only needs to be done at your departure station/airport, the
914.
▲
by
grishka
2y ago
> So the solution is the transportation card is writable, and each train station acts like a small data center. They sync the data periodically to the main data center. That's also how the two subway systems I'm most familiar w
915.
▲
by
grishka
2y ago
If you really want a system that uses optical scanning and allows one ticket to be used multiple times, just make sure that there's enough room on the ticket for one QR code per trip. When validating, you'd print a new code in fre
916.
▲
by
grishka
2y ago
Isn't Mifare in different forms a de-facto standard for NFC subway tickets around the world? St Petersburg uses Mifare Classic (and tokens), Moscow also uses Mifare Classic for the refillable Troika card and Mifare Ultralight for dispo
917.
▲
by
grishka
2y ago
The problem with QR codes is that they are read-only. I don't know about Montreal, but Moscow public transport uses similar paper tickets, also Mifare Ultralight, except you can get them for different number of trips. When you use your
918.
▲
by
grishka
2y ago
Nope, it's that , but folded in half. Found a mention of it (that I commented on, lol): https://mastodon.social/@tubetime/111219376410543899
919.
▲
by
grishka
2y ago
I remember reading somewhere that there was this wild prototype flat CRT where the electron gun was at the top, shooting down, and the beam did a 180 degree turn at the bottom before being deflected into the surface of the screen.
920.
▲
by
grishka
2y ago
Windows updates can be disabled on any edition with my "I wasn't asking" approach of moving C:/Windows/system32/wua*.dll somewhere else. You can put these dlls back when and if you want to install updates.
921.
▲
by
grishka
2y ago
Huh? There are ads on that site? I guess it's on you that you're browsing the web without an adblocker.
922.
▲
by
grishka
2y ago
I'm an Android developer as well. Apps and websites are fundamentally different so no. Apps are by definition highly dynamic, while websites start out as static documents that some people put too much macros into to make them appear li
923.
▲
by
grishka
2y ago
I keep forgetting that there are ads on the internet.
924.
▲
by
grishka
2y ago
Except that unification did give enormous benefits, it allowed those countries to trade more freely. The horribly inefficient JS-ass 5-megabyte-bundle SPA blogs benefit no one in the long run. By the way, on my recent visit to Europe, there
925.
▲
by
grishka
2y ago
Where does your SPA pull its data from, if not from some sort of API that must be running on something that is capable of generating HTML as well?
926.
▲
by
grishka
2y ago
And what kind of problem do you solve with this approach? Your sites loading too fast?
927.
▲
by
grishka
2y ago
There are different template engines for SSR, with drastically different syntax. I've never written any Python, but in my own opinion, Smarty for PHP and Twig-compatible ones for many different languages are the best. While generating
928.
▲
by
grishka
2y ago
I couldn't resist, so here's the GPU hasher: https://gist.github.com/grishka/c1be1c035f39564debfd4b195bdf... It gets around 232.5 MH/s on the M1 Max. There's also an optimization that exploits the f
929.
▲
by
grishka
2y ago
Here's mine: https://gist.github.com/grishka/ed84e4bbfacfbcf4ddc5e63cfc96... I suppose the next step for me would be to make use of the GPU, which is a much better fit for this job and I'm sure would increase
930.
▲
by
grishka
2y ago
No. Hash functions are specifically designed to make any shortcuts impossible. Essentially, they consist of many steps of scrambling the input bits, each step taking as its input the output of the previous one. If any such shortcut would be
More ›