News for hackers. Stuff that matters.

lcrz

That ‘dude’ is the UK’s GCHQ. Of Bletchley Park fame.
Re:0.9999 ≊ 1 on Monday June 02, 2025 @04:16AM (#44156669)
Both ways are just notation. There’s nothing more real about 3/10 compared to 0.3.

Telling you otherwise might have worked as a educational “shorthand”, but there are no mathematical difficulties as long as you use good definitions of what you mean when you write them down.

The issues people have with 0.333… and 0.999… is due to two things: not understanding what the notation means and not understanding sequences and limits.

Re:0.9999 ≊ 1 on Monday June 02, 2025 @03:30AM (#44156474)
So the authors tries to be rigorous, but again falls into the same traps that the people who claim 0.9… != 1 fall.

“0.999… = 1 - infinitesimal”

But this is simply not true. Only then they get back to a true statement:

“Inequality between two reals can be stated this way: if you subtract a from b, the result must be a nonzero real number c”.

This post doesn’t clear things up, nor is it mathematically rigorous.

Pointing towards hyperreals is another red herring, because again there 0.999… equals 1.

Re:Boris Vallejo and the Pixel Art of the Demoscene on Tuesday October 01, 2024 @03:31AM (#41705597)
This comment exemplifies the puritanical view that nakedness is somehow bad or impure.

Notice that the men in the paintings of Vallejo are also almost completely naked, hacking away at monsters with large weapons. Yet you did not point to them and say they were indecent.

I really hope that the rest of the world doesn’t take over the sex/violence sensitivities as are prevalent in the US.

$20 per year subscription? That seems pretty steep for what the app does.
Re:Building a serverless secured dead drop on Thursday June 06, 2024 @04:19AM (#40594890)
Libsodium was independently audited by respectable reviewers. OP is spreading FUD for some very weird reason.

Libsodium is also extremely robust. The only crypto project I’ve seen that is as footgunless is google’s tink, and that isn’t available for a JS environment.

What’s great about libsodium is that it’s a single code base that works everywhere. RSA libs I’ve used have subtle differences when it comes to loading keys in different formats and also incompatibilities due to dropping leasing zero bytes for instance. Compared to that, libsodium was a breeze that just worked.

Re:Automatic class sorting with Prettier on Thursday January 18, 2024 @02:10AM (#39038893)
This blog post is from 2022.
Re:Libsodium: A modern, portable, easy to use crypto library on Friday September 15, 2023 @04:24AM (#37520077)
I agree. If you look at the Swift version of the library, it will generate and prepend the nonce for you automatically (if you use the right overloaded method). It will also strip it and use it during decryption.

My guess is they wanted to maintain compatibility with NaCl.

Re:Libsodium: A modern, portable, easy to use crypto library on Friday September 15, 2023 @03:09AM (#37519572)
Libsodium is an amazing crypto library.

At my previous job, we used libsodium as the basis for all our crypto on web, iOS and android. This after a myriad of subtle problems and inconsistencies using multiple libraries for RSA/AES.

Libsodium is pretty opinionated, which is good. The only thing that actually came close in dev experience was google’s ~~Think~~ Tink library, but that isn’t mature on web and probably never will be.

It’s also hella fast.

Edit: corrected library name

It’s just OPs superiority complex for being on hacker news instead of “low-grade” Reddit.
Allowing drug users to legally and safely test their drugs results in more safety for individuals and less costs for society. In the Netherlands, private organizations have been testing drugs for users and helping the government track dangerous trends in the distribution of illegal drugs.

There’s a lot of recreational drugs like alchohol and (more recently in the US) weed that are legal to consume. The current system where drugs are only available through illegal means results in violence and huge amounts of organized crime, and a mixture of upper and underworld endangering citizens and politicians. We have huge issues with this in the Netherlands.

Personally, I find drug use abhorrent and I condemn everyone buying drugs illegally and propping up and enriching monstrous people, but I fully support legal drug testing.

More info: https://www.jellinek.nl/vraag-antwoord/why-do-they-test-drug...

Re:Reddit.com appears to be having an outage on Wednesday June 14, 2023 @07:32AM (#36324279)
Halfway logarithmically. Like 100 is halfway between 10 and 1000? That’s your argument irt the pricing?

If killing third parties wasn’t the goal, it’s very convenient that it killed so many third party apps, isn’t it?

It’s clear you haven’t seen communications from Reddit and the devs if you think that the people losing their livelihoods and projects they’ve been working on for years are somehow the bad guys. A lot of these devs would have been open to the proposed prices (or similar) if only Reddit didn’t give them only 4 weeks to come to terms with a multi-million price of doing business and implement any necessary changes. That’s a lot more than these apps currently make in revenue.

Re:Killing Community on Tuesday June 13, 2023 @03:15AM (#36306688)
I think the thesis is wrong. It’s not that the average interaction is with familiar individuals. I’ve been a mod, lurker and commenter on a lot of subreddits. And on each of those, there are maybe 10 users I recognize and whose comments I see occasionally.

What is the case, is that on short timescales, the average interaction is consistent with what I expect from the community. The anonymity of Reddit has show that the specific face or individual doesn’t matter. It has a ‘friend’ or ‘follow’ option that I’ve never used and really never felt like I needed to use it.

Reddit actually became less familiar to me when I saw users tag other users in a post to share them with other users. The same with user specific subreddits. It’s when Reddit moved from content centric to user centric.

Re:Why sqlite3 temp files were renamed 'etilqs_*' (2006) on Tuesday June 13, 2023 @02:42AM (#36306415)
Check the ‘apology’ follow up. The person claims to be schizophrenic. Even the apology mail makes no sense and is full of paranoia and read like a group stalking delusion.
Re:Reddit.com appears to be having an outage on Monday June 12, 2023 @10:56AM (#36294692)
No one is upset because reddit wants to make the API paid. Several 3rd party apps were looking forward to working with reddit in this regard.

People are upset because:

- Reddit has been terrible and dishonest in their communication - Reddit is dropping Twitter-like pricing out of the blue - These prices seem to have the goal of killing 3rd party apps instead of merely being ‘realistic’ or ‘fair’, like Reddit is claiming - Reddit is dragging well respected devs through the mud and trying to make them look like the bad guys

Re:JSON for Linking Data on Monday March 27, 2023 @03:38AM (#35323941)
It's only a pain if you try to look at it as a JSON tree instead of a knowledge graph.
Re:JSON for Linking Data on Monday March 27, 2023 @03:37AM (#35323926)
json-schema has nothing to do with JSON-LD. If you want shape constraints on your JSON-LD data, you'll need SHACL: https://www.w3.org/TR/shacl/

JSON itself has a much simpler specification than XML, and feels much more lightweight for a lot of devs.

Under the hood though, linked data is all RDF.

Re:TypeScripting the Technical Interview on Monday March 13, 2023 @05:16AM (#35133099)
Just do some basic functional programming. And/or do some of these challenges and don't feel like a cheater if you look at other peoples solutions: https://github.com/type-challenges/type-challenges
Re:Realistic Computer-Generated Handwriting on Thursday January 26, 2023 @08:28AM (#34531360)
These fake-scanner pdf generators always use a huge skew. A tiny (random) bit of skewing makes it seem more genuine, but using the same exact large rotation puts it in an uncanny valley.
Re:Paizo Announces System-Neutral Open RPG License on Friday January 13, 2023 @01:59PM (#34372286)
To be fair, their site is notoriously unstable and will break if fans look at it wrong.
Re:Tailwind Is a Leaky Abstraction on Tuesday November 29, 2022 @08:35AM (#33787346)
> You still need to know CSS.

Yes. Tailwind CSS is just CSS:

> A utility-first CSS framework

It is not a leaky abstraction, because it isn't an abstraction. It's a only a special syntax for applying predefined blocks of CSS to HTML elements.

Vue has `refs`, which are reactive proxy objects that are used for tracking things like re-rendering.

Since vue does not hide the fact that something is a ref, you need to call `myRef.value` to get to the underlying value of `const myRef = ref(10)`.

In a new and currently experimental syntax, you can use `const myRef = $ref(10)`, at which point you can just use `myRef` directly. This will then be converted by the Vue SFC compiler.

Another option is to use a reactive object as the state: `const state = reactive({ myVal: 10 })`, at which point you can just use `state.myVal`.

Re:Global Code Time Report on Monday August 22, 2022 @07:27AM (#32549970)
Not so sound too negative, but to me, this actually seems terrible. Because somehow any work not behind the keyboard coding is not considered work by your standards.

I don't think this is being honest. This is choosing some arbitrary metric and sticking to it, and very much Goodhart's law in practice.

If your job takes you away from the thing you want to be doing, you should try to change your job, not work 6-day weeks or 12-hour days for your employer.

Re:Why isn't there a universal data format for résumés? on Monday January 17, 2022 @03:00AM (#29964390)
The EU is heavily investing in semantic data for education and digital identity, leaning on ontologies, RDF, json-ld and verifiable credentials.

Banks, research institutes, universities are joined in large consortiums. The German hotel reservation example above is one of the projects that’s getting attention.

This is full of copyright infringement. If you don't want your app to be DMCA'd I'd suggest you remove all references to Harry Potter.
The automated translation is pretty noticeable.
Re:Where is Ruby Headed in 2021? on Friday November 19, 2021 @02:52AM (#29274836)
> a max 1MB request payload size

How would that be a bad default, when it's probably more than sufficient for 99% of the use cases out there? It's even the same default as nginx: https://nginx.org/en/docs/http/ngx_http_core_module.html#cli...

Nest.js is clearly targeting JSON-based CRUD apps, and the defaults are pretty good. File uploads through JSON is not as simple a problem as you try to make it. Are you using bas64 encoding and embedding it in the JSON? Are you using multipart/form-data?

Re:Parsing JSON Is a Minefield (2016) on Monday October 11, 2021 @08:12AM (#28827439)

    Python 2.7.16 (default, May  8 2021, 11:48:02) 
    >>> import json
    >>> json.loads('{"a"  :     "b"    }')
    {u'a': u'b'}
> Seems a little ironic to use unprofessional language in this situation.

It's not ironic. Forceful language (and rather tame still) is not just as bad as a 'joke'. The offence was not at the unprofessionalism of the joke, but at the contents of the joke. That is what fuelled a discussion.

Removing the line from the CoC also was not a response to the joke. It was a response to the ensuing discussion about the joke.

Talking about proportionality as if the change was brought because of the joke is as questioning the proportionality of WW I to the death of archduke Franz Ferdinand.

The 'verdict' as you call it, does not go into detail about the contents of the joke, because it was irrelevant to the reason of why they made a change. It could have easily been a different joke.

Re:The Mom Test – How to talk to customers on Monday September 27, 2021 @07:31AM (#28669428)
Could you please not hijack clicking on text on your website? That's extremely unfriendly to visitors.

Older »