HNHacker News
TopNewBestAskShowJobs

jozvolskyef

424 karma · joined January 5, 2018

submissionscomments
jozvolskyef··on Don't encode POST bodies like GitHub Copilot, use URLSearchParams
Ad the now-deleted critical sibling comment: Note that OP implied the edits were innocent, likely made by teenagers having a laugh. The misedits, which OP didn't say they made themselves, presumably didn't hurt anyone and taught a lot of people to be critical of what they read.
jozvolskyef··on Don't encode POST bodies like GitHub Copilot, use URLSearchParams
I generally agree with two reservations. First I find that there are two types of inaccuracies on Wikipedia. Mistakes that I sometimes fix, and bias that is not worth fixing because people trying to sneak in bias are dedicated and have a lot of free time. See e.g. edits made by the user named Erik on this article[1]. They've been persistently making the same edit for years and the only reason we can see it is that they don't obfuscate their activity by using different usernames.

Second, I'm optimistic that most bugs are found before code is even committed, so people will quickly learn that generated code needs to be carefully reviewed. I don't have access to Copilot, but if I did, I presume the way I'd use it is that I'd always comment out the generated code and just use it as a quick reference.

[1]: https://en.wikipedia.org/wiki/One_Flew_Over_the_Cuckoo%27s_N... [16 times over 6 years, see https://sigma.toolforge.org/usersearch.py?name=Erik&page=One...]

jozvolskyef··on Don't encode POST bodies like GitHub Copilot, use URLSearchParams
This debate reminds me of the old days when teachers cautioned against the use of Wikipedia, assuming people would treat it as an authoritative source of information.
jozvolskyef··on GitHub Copilot as open source code laundering?
The difference between this model and a human developer is quantitative rather than qualitative. Human developers also synthesize vast amounts of code and can't reference most of it when they use the derived knowledge. The scales are different, but it is the same principle.
jozvolskyef··on OpenStreetMap looks to relocate to EU due to Brexit limitations
The EU is in an unfortunate situation due to 1.3 billion people speaking English, but also due to member states being too slow in making their governments fully digital. Speaking from experience, it is easier to set up and run a British limited company remotely from Prague than doing so with a Czech company from its own capital.
jozvolskyef··on OpenStreetMap looks to relocate to EU due to Brexit limitations
English isn't an official language in France. That probably isn't an issue for large companies, but it is a non-starter for small companies.
jozvolskyef··on Sriracha hit revenue of $150M a year with no sales team or ad spend
I accidentally bought the brand that is more common in Britain (Flying Goose). It wasn't as spicy as I expected so I put a fair dose in my tortilla and now I can't even think about it without feeling nauseous because it was way too salty and garlicky. The British variant apparently has 5x the amount of salt, is less spicy, and tastes strongly of garlic. And yet it uses the exact same visual design of the bottle, pretending to be the same thing.
jozvolskyef··on Your CPU may have slowed down on Wednesday
Note that this may not work out of the box, see https://unix.stackexchange.com/questions/153693/cant-use-use...
jozvolskyef··on Your CPU may have slowed down on Wednesday
You don't risk the machine catching fire by itself but rather someone setting it on fire by letting you wash their clothes that are designed to ignite it.

Or perhaps more accurately, someone spoiling your clothes by putting a dye in their pocket and letting you wash it in the same batch.

jozvolskyef··on Git undo: We can do better
Have you tried reading the manual[1]? I read it cover to cover once and it is invaluable because it gives you the ability to understand and describe what you're trying to achieve. The solution is always one search away if you know how to ask.

[1]: https://mirrors.edge.kernel.org/pub/software/scm/git/docs/us...

jozvolskyef··on TikTok owner ByteDance sees its earnings double in 2020
One feature that amazes me about the algorithm is that it reacts to scrolling habits in what seems to be the minimum possible number of observations. Suppose half of your feed are talking head videos. Stop interacting with them abruptly by scrolling over within 2 seconds and observe how the algorithm gradually reduces their frequency.
jozvolskyef··on The most copied StackOverflow snippet of all time is flawed (2019)
Coincidentally I had to write this today, and perplexingly none of the answers on that popular question seem to be as efficient and readable as what I wrote:

  function prettyPrintBytesSI(x: number): string {
    const magnitude = Math.abs(x)
    if (magnitude < 1e3) return `${x} B`
    else if (magnitude < 1e6) return `${x/1e3} kB`
    else if (magnitude < 1e9) return `${x/1e6} MB`
    else if (magnitude < 1e12) return `${x/1e9} GB`
    else if (magnitude < 1e15) return `${x/1e12} TB`
    else if (magnitude < 1e18) return `${x/1e15} PB`
    else return `${x} B`
  }
jozvolskyef··on The most copied StackOverflow snippet of all time is flawed (2019)
Ladislav Vagner, a legendary programming tutor at FIT CTU, is a known proponent of being extremely cautious when copying code, even your own. He gives programming proseminars where students guide him as he codes the solution to some problem, e.g. mathjax-like typesetting in C++. It is a common theme in the proseminars that a bug is introduced by copying code. Probably on purpose, like many of the other bugs that students are supposed to point out.
jozvolskyef··on Cue, an open-source data validation language
https://cuetorials.com/ is probably more hands-on than the homepage which is slightly more theoretical. For validating sequences see https://cuelang.org/docs/tutorials/tour/types/lists/ .
jozvolskyef··on Git User Manual
The original Git User Manual because it doesn't get enough credit.
jozvolskyef··on Overwork contributes to 745k premature deaths per year
I learnt a similar lesson about teachers early on at school and extended it to all classes of authorities through life. See also Are Experts Real?[1]

[1]: https://fantasticanachronism.com/2021/01/11/are-experts-real...

jozvolskyef··on Overwork contributes to 745k premature deaths per year
This reminds me of a comment that I read years ago and still think of every now and then:

> A few months ago a person of the ones you mention in your first paragraph posted on FB, as a blow against religion, that religion was so unreasonable that parents had to train their kids since youth in order to believe. And I remember thinking at the time about all the years of training needed to get any non-superficial commanding of science.

https://philosophy.stackexchange.com/a/29763

Edit: I should add that I believe the title is justified in this case. The study[1] identifies overwork as a cause for developing deadly diseases. Without overwork, the given number of people wouldn't have died of these diseases. Unhealthy diet and other factors are counted as a consequence of overwork. It could be phrased as '3.6% of stroke deaths and y% of ischemic heart disease deaths could have been avoided by working less'.

[1]: https://www.sciencedirect.com/science/article/pii/S016041202...

jozvolskyef··on Nonnative English speakers share their gripes about speaking English
I can also relate and my native language, Czech, is in the Slavic family. GP's friend probably used the word periphery because they knew it's common to the two languages, unlike the hypothetical Portuguese synonym. This applies to many words of Greek and Latinate origin. Their frequency is low in most languages, but they are understood in many languages. I find it sad that Brits are peer-pressured into giving up this aspect of their language due to perceived elitism. These 'elitist' words facilitate understanding across the various European languages.
jozvolskyef··on TikTok removes 500k+ accounts in Italy after DPA order to block underage users
I am aware of one accidental hanging. My point is that children do stupid shit all the time. Just from my personal experience I once let my friends wrap me in a wet towel so that I wouldn't be able to move and overload a trampoline with me on it so that it would send me flying. I rotated twice and landed almost vertically upside-down head on concrete but luckily in a way that most of the energy was absorbed by my shoulder/along the whole body. In another instance, different city, different kids, I was locked with other friends in a disused industrial freezer made of what looked like polyurethane. I was there 'negotiating' with a group of 'thugs' who were terrorizing the neighbourhood kids with airsoft guns. At one point they quickly escaped the freezer with one of them left inside with us. Their leader then took a lighter and threatened to set us on fire, holding the lit lighter against the polyurethane. Luckily they couldn't figure out how to lock the door. Next day when I visited the place the only residue of the freezer was a pile of ashes and char on the building next to it. I could probably think of more similar experiences and many more of my friends and family. Don't get me wrong, I have no horse in this race; I'm just saying that what happens on TikTok has to be compared against a baseline of what kids would do otherwise.
jozvolskyef··on TikTok removes 500k+ accounts in Italy after DPA order to block underage users
Has anyone calculated the number of deaths that will be caused by kids playing outside instead of spending their time on TikTok? I'm willing to bet that purely in terms of accident hazard TikTok has always been safer than hanging out with friends.
jozvolskyef··on Neural implant lets paralyzed person type by imagining writing
People still lived largely offline in 2006. The motivation for BCIs is much higher today than it was 15 years ago.
jozvolskyef··on The handshake emoji is more complicated than you might think
I'd wager that the popularity of dark emojis has more to do with their contrast and less with politics. Most dark people in the world aren't minorities where they live.
jozvolskyef··on British regulator cites 41 more blood clot reports following AstraZeneca shots
I edited my comment before noticing you already replied. I agree.
jozvolskyef··on British regulator cites 41 more blood clot reports following AstraZeneca shots
Not necessarily, we can't draw any conclusions from these numbers without knowing how many vaccines were administered and to whom.
jozvolskyef··on British regulator cites 41 more blood clot reports following AstraZeneca shots
You seem to have linked a different article.
jozvolskyef··on British regulator cites 41 more blood clot reports following AstraZeneca shots
Use a hypothetical set of parameters to study a subset of the population. For example it could be a yet unidentified genetic variant related to blood clotting. Or just whether or not you already had the disease. Statisticians try to identify these parameters with the limited data available.
jozvolskyef··on British regulator cites 41 more blood clot reports following AstraZeneca shots
From what David Spiegelhalter said earlier it's about 1 in 250k for the under-30s. That's 0.0004%. The problem is that if you control for the right parameters the expected outcome is worse, possibly by multiple orders of magnitude, than that of being infected with covid.
jozvolskyef··on RotaJakiro: A long live secret backdoor with 0 VT detection
That's a shame. The book's ending is one of the most memorable things I ever read.
jozvolskyef··on RotaJakiro: A long live secret backdoor with 0 VT detection
This is completely off topic but I love the Caesar cipher implementation in your bio. What does HAL stand for?
jozvolskyef··on Mining robot stranded on Pacific Ocean floor in deep-sea mining trial
GP is a straw man only in the part where it quotes David Attenborough because the quoted concerns weren't related to this accident. The rest of their argument is valid as far as I can tell - please correct me if I'm wrong.

Also, David Attenborough saying seabed mining is untested and has a largely unknown environmental impact is not a great argument either as it stands in the article. It would be helpful if Reuters provided more context or a direct quote.

← PreviousPage 4 of 5Next →