HNHacker News
TopNewBestAskShowJobs

laszlokorte

1,199 karma · joined September 10, 2015

submissionscomments
laszlokorte··on They Thought They Were Free: The Germans, 1933-45 (1955)
Reads like a mirror of whats currently happening regarding all the covid associated law changes.

/edit I added some more context in a child comment

laszlokorte··on Indistinguishability Obfuscation from Well-Founded Assumptions
I know nothing about the whole topic but could you explain:

Why does any of those programs contain the password anyway if it is not needed for achieving the goal?

If it is not needed, flow analysis, tree shaking and const evaluation could get rid of it.

If it is needed, how would the program not containing it achieve the goal?

laszlokorte··on Spreadsheets: Functional Programming for the Masses (2014) [slides]
Take a look at [0] for a proof of concept how in the future it could be possible to define custom functions inside excel not via textual langauge but via tables inside the sheet.

[0]: https://www.youtube.com/watch?v=jH2Je6wUvPs

laszlokorte··on Complex text layouts progress report in Godot game engine
It actually does not relate to Go at all. It's a game engine and allows you to write scripts in it's own scripting language (which kind of looks like python), C#, and a visual graph language.
laszlokorte··on Let’s Build a Video Card
Exactly the right amount of explaination for each step he does. I could perfectly follow along and learned alot.
laszlokorte··on Typedefs
If you only think in bits, each extra bit you allow doubles the number of represetable combinations. Eg one bit allows for two values to be represented: on/off, true/false, yes/no, light/dark...

Now if you have more than two states you want to encode you need at least one additional bit. Eg two bits allow for four different states (00,01,10,11). But that way (adding a bit, or highler level a field in a struct/tuple) your numbr of possible states grow exponentially.

What if you have exactly 3 states you want to represent (eg small/medium/largem, up/down/mute or x/y/z) or 6 (not a power of two) states? The way you encode the states by combining bits you allow for more states to be encoded than are actually valid. So you allow invalid states. Eg for ["00"~small, "01"~medium, "10"~large] you can not decode "11".

The way combining bits works can be though of as product data types. The number of possible combinations get multiplied when composing data types.

Now sum types enable you to define number of states which are not-power-of-two by summing the possible combinations when composing.

Algebraic data types combine product and sum types so you can define set of encodable states as the exact number of actual valid sates you want your system to have.

laszlokorte··on You might not need to store plaintext email addresses
Okay... so how is this issue currently handled? Say I create a new email account: lAsZlO@inopinatus.com and the mailbox is case sensitive.

Next I create a youtube account but as E-Mail address I enter laszlo@inopinatus.com and I am told to click the link in the confirmation E-Mail... that I never receive. Well I do not like youtube anyway so I head over to hackernews and create an account to write this comment. Oh no I can not because I typed my E-Mail address in lowercase again. So now I am wondering if there is some error so I open your homepage, search for the support page and file a bug report, typing my E-Mail address in lowercase into the E-Mail field. I never receive your response telling me to write my E-Mail address in the correct casing. I come to the conclusion that my E-Mail account just does not work and create another one at a provider that is case insensitive. OR I figure out/am told that the case is important and will never forget it again.

So where exactly are services like youtube or hn that ask me for my E-Mail responsible for handling upper/lower case correctly? The solution could still be: store both the hash for the canonicalized address and the hash of the exact address of which you know that it worked at some point in time. If the user enters the address later the matches the one but not the other issue a warning that should they not receive the E-Mail to double check their spelling.

laszlokorte··on You might not need to store plaintext email addresses
But wouldnt the user face this issue all the time if they have a case sensitive mailbox but type their own address in the wrong case? So the assumption may be that a user with a case sensitive mail box is used to typing in the correct address?
laszlokorte··on Krita 4.4.0
By conditioning users to only use the store and then later for paid apps as well.
laszlokorte··on KDE Plasma 5.20
You are right that all desktop environments have their issues and sure open source gives you more freedom. But:

1. on mac os you can press cmd+backtick to cycle through the windows of the current app

2. except for some exceptions keyboard shortcuts are pretty unified across all apps on mac os and can even be configured in a single global place

3. from my biased point of view of being a software developer myself: If I see a file chooser modal component that locks all interaction then I see a wrong choice in a UI component that does not fit the usecase. But if I see a rendering glitch of a component in a promotional video, it looks to me as if the whole state space of the component or even of the GUI stack is ill defined. Visual states like this [1] should not appear. If they are inside a promotional video I assume that some people have seen it happening and either did not care or it is very hard to fix because the issue is rooted deeply in the system. Maybe I overreact but I stumble across glitches like this all the time I try to use linux on the desktop.

[1]: https://imgur.com/a/oNgzmYC

laszlokorte··on KDE Plasma 5.20
Sorry for the snarky comment but that you can clearly see the promoted KRunner search box flickering and reflowing in the promotional video is exemplary for the quality differences between mac, windows and linux desktop environments.
laszlokorte··on Bead Sort
Actually I would assume the time for removing each rod while collecting the result is quadratic because when the number of rods is high enough you can no longer see the highest one at a glance but have to scan through all possible rod positions for spotting the one that sticks out.
laszlokorte··on Getting rid of the Google cookie consent popup
I see what you are saying but still I think there should be a machine readable format that browsers can parse and display in a unified way. For cookies it should work as I described. For advanced fingerprinting techniques that need to be disclosed that could be done via an additional plain text which is just rendered by the browser, still in a unified way. Then future browsers could detect/block even some advanced fingerprinting but check for an explanation (eg in /.well-known/privacy.txt) and present the user with a choice.

I just do not get way the website itself has a say in how to display the constent prompt at all (it needs to be accessible, should be readble and dismissable without javascript, actually I would want to be able to read it before visiting the website). Currently I can not even get a list of all websites of which I accepted any agreement with not to mention re-reading any of those consent texts.

laszlokorte··on Getting rid of the Google cookie consent popup
Queston: why has the whole cookie notification/gdpr thing not been solved on a protocol level? In the end it's not the website that stores the cookie but the browser. Shouldn't the browsers be forced to prompt the user everytime a cookie is written to disk/send back to the server? Then the UI could be unified and some header "Cookie-Explanation" or domain.tld/.well-known/cookies.txt could be provided for the browser to parse and present the user with more detailed explanation for each cookie provided by the site. Unexplained cookies could be presented as a warning/error forcing the websites to deliver good explanations matching the cookie duration/content. The user could fine tune settings per cookie and can be notified if a site adds new cookies not seen before. Same for local storage.
laszlokorte··on The Weakness of Anthropic Arguments
`Why is this question encoded as string of 385 characters and why is there a set of 385 character long strings? I mean there could be just a set of strings of length 95 and the question could instead ask "why is this question of exactly 95 letters long and why is there a set of 95 char long strings?" but still this specific question is asking why it is 385 chars long, why is that so?`
laszlokorte··on Show HN: Handwritten.js – Convert typed text to realistic handwriting
No matter what style/legibility/text I try the line always just drops as if my computer had a faint [1]

[1]: https://imgur.com/a/IgAV1ef

laszlokorte··on How to Bypass CSP by Hiding JavaScript in a PNG Image
I do not understand the security thread. Can somebody explain?

- you can write/encode/embed additional data into an image, fine

- twitter (and everyone else) hosts such images for you, fine

- twitter sends CSP header that allows scripts from other origins to access the full image data (ie the embeded data), fine, should not be a problem, anybody has access to that data as it was spcifically placed there, anyone could download/mirror it anyway

Now when demontrating the possible attack the author assumes a valnuable script on another domain that permits code injection. They inject javascript code that decodes the data from the image that is fetched from twitter and evals that extracted code. But if you an already inject javascript code anyway, why would you need to decode the twitter image? You already have access to the origin of the attacked page, loading the image from twitter gains you nothing (eg it does not give you access to the twitter origin, eg does not allow you to read twitter cookies, right?).

Given a site is valnuable to code injection you could as well either just inject all your evil js code instead hosting it on twitter inside an image or in case of length limits on the injectable code just host the majority of the evil code on your own server, configure it for CORS and then inject the script-tag on your victims site.

Am I missing something? I do not see how COS is bypassed in any way.

laszlokorte··on Why Are Plants Green? To Reduce the Noise in Photosynthesis
If they would utilize the green light they would not reflect it - so should exactly not be seen as green by your eyes.
laszlokorte··on Rust 1.45
actually >, not >=
laszlokorte··on Rust 1.45
It should be `assert!(len(arr) >= 255)` (greater instead of less than), right?
laszlokorte··on Don't Panic! Better, Fewer, Syntax Errors for LR Parsers
Just a guess: "int x" could already be comsumed so there is no need to change anything about it. It's only the next token that can not be processed.
laszlokorte··on Algorithm-Visualizer
I am working on a similar project, but for self drawn graphs instead of grid graphs [0]. But it's not finished yet and missing documentation.

[0]: https://algorithms.laszlokorte.de/

laszlokorte··on You can bypass YouTube ads by adding a dot after the domain
Seems to fixed already. If I include the trailing dot I get redirected to the youtube homepage.
laszlokorte··on Germany bans digital doppelganger passport photos
Last time I renewed my passport finger prints were optional. If you want to visit certain countries like USA you must provide them but you are not generally required.
laszlokorte··on Ask HN: What are the cheapest hosting provider?
I like uberspace. First month is free and you can chose yourself how much you want to pay per month. 5€ per month is the suggested fee but you can pay as little as 1€.

you get full ssh access and can do almost whatever you like.

laszlokorte··on A Counterexample to Modus Ponens
P(marble) = blue(marble) or red(marble) is true for all 100 marbles. So this proposition being true tells us nothing about the specific marble. As 60 of the 100 marbles are large, it is indeed true the any marble m we pick and of which we only know that P(m) is probably large.
laszlokorte··on Raspberry Pi 4 Gets 8GB RAM, Raspbian 64-Bit (Beta)
I just thought about buying buying a Raspberry 4. I remember that when it was released there have beem some problems with usb4 and with thermal throttling. Is that all solved now?
laszlokorte··on Free, open and collaborative routing service
Well as you can say the same for popup windows which should work for keyboard navigation and voice commands as well, I assume there is a defined class of events that count as active user interaction and I assume that onload, mousemove and onresize do not fall in that category but click, keypress do. Anyway if you focus a button and press it by hitting the spacebar or enter key a javascript click event is triggered as well. So even if you would limit it to click events I guess it would for a large portion of keyboard navigation as well.
laszlokorte··on Free, open and collaborative routing service
Why exactly? Indeed I have not thought about every detail but as I see it:

- pushState is only used for overriding the default behavior, mostly to keep the url bar in sync with changing client state

- pushState pollutes the browsers history

- users have a mental model of how many steps/clicks they performed on a site and expect that an equal number of clicks on the back button brings them back to the beginning

- users are upset if that expectation is not matched

The site should not have control over the users history in the first place but for SPA it's necessary to achieve the expected behavior. But the browser should make sure that it's not misused. In the same way that pop-ups are blocked outside of whitelisted event listeners to prevent a website from polluting your screen, pushState should be blocked to prevent history pollution.

laszlokorte··on Free, open and collaborative routing service
Browsers should internally replace `history.pushState` by `history.replaceState` calls if they do not happen during a click event (and even then limit the number of pushState calls to one)
← PreviousPage 8 of 12Next →