News for hackers. Stuff that matters.

cryvate1284

Re:PgBouncer is useful, important, and fraught with peril on Friday September 08, 2023 @01:31PM (#37436662)
Django does this too
Re:What Is the Most Minimal UK Address Possible? on Thursday March 02, 2023 @08:55AM (#34995630)
In terms of buildings/mail unit, an example of a post code in the UK would be CB2 1TQ which is for Trinity College.
Re:Classifying Python virtual environment workflows on Saturday January 07, 2023 @11:16AM (#34289429)
In my view, you'd normally still want to use a virtual environment or ignore the system site packages.

The system will have a bunch a bunch of (site) packages already installed, and hence you lose control.

Re:There aren't that many uses for blockchains on Thursday August 11, 2022 @03:45AM (#32422696)
Why can't they renege on it? What if a judge orders them renege?
Re:Tell HN: PayPal Charges 10.57% in Fee (USD-INR) on Monday July 25, 2022 @02:46PM (#32229097)
I think you're talking about a merchant of record, like Paddle.

https://www.paddle.com/

It's not that binary though. Imagine you belief Twitter is worth 45.01USD but it's trading 45USD, would you throw your life savings at it (disregarding fees), no, of course not, way too risky!

The way I see it, people (and other entities!) don't think Twitter is worth X, they think there is a distribution of worth.

This means there is risk in their bet, so if I thought Twitter was worth (on average) 100USD, that wouldn't mean I would sink my life savings into it but would put in some, based on the risk and also what else I need capital for.

Also, how much one thinks Twitter is worth probably also depends on your time horizon: like the old adagium that the market can stay stupid for longer than you can stay solvent, e.g. when shorting a scam.

Re:Tell HN: I can't buy a PS4 because of my email on Wednesday March 16, 2022 @09:09AM (#30698303)
It might be a work address (easily done with [email protected]), but 40 is not very much though regardless...
Re:Go’s major versioning sucks – From a fanboy on Friday March 04, 2022 @04:25PM (#30560803)
Are you sure that's not just the sales website?

Quite common for the sales website to be wordpress and separate from the frontend of the product.

Re:PHP – The Right Way on Monday February 07, 2022 @07:50AM (#30244096)
Does PHP say it follows SemVer? I don't know as I don't use it but Python doesn't.
Re:Why are mathematicians so bad at arithmetic? (2017) on Friday February 04, 2022 @05:15AM (#30204934)
You aren't very explicit what you mean, but I disagree I think.

The main thing is willing things into existence (like ZFC, the Axiom of Choice) is equally consistent with not having it (ZF + not AC) or not deciding it (ZF) as shown by forcing.

Russel's Paradox in particular was worked around by not allowing to "build sets" quantifying over all sets (see axiom schema of specification).

If you are talking about avoiding "unprovable statements" (i.e. Godel's incompleteness theorem), you have to strip things way back further: it applies to systems that only have e.g. Peano arithmetic. An actual practical statement that is unprovable in Peano arithmetic is Goodstein's theorem: - write out a number in its base 2, including its exponents (i.e. recursive) - replace all the 2s with 3s - subtract 1 - write out a number in base 3, including its exponents - replace all the 3s with 4s - subtract 1 - ... The question is whether for all starting numbers this sequence eventually ends at 1. The answer is yes, trivially if you use ordinals (and replace all your base numbers with omega: the +1 will basically do nothing and -1 means it must be finite because ordinals well-ordered), but this cannot be used in Peano arithmetic.

Fundamentally, like Paris-Harrington Theorem, I think the way to think about why this cannot be proved, is because these sequences get big before they end up at 1.

Re:There’s No Such Thing as Clean Code on Friday January 28, 2022 @03:02AM (#30111903)
Not that I am taking a stance here, but you didn't really engage with the GP saying that having functions instead of lambdas allows one to name, test and document them: in fact, they might not be called f1 to f20, in fact they might have docstrings (I guess one could comment lambdas, but see it rarely) and you couldn't test lambdas unless you assign them, i.e. give them a name i.e. turn them into functions in all but name.
EasyJet
Re:Implementing RSA in Python from Scratch on Monday December 20, 2021 @03:08AM (#29622458)
Carmichael's Function is the name.

https://en.m.wikipedia.org/wiki/Carmichael_function

Re:New math book rescues landmark topology proof on Friday September 10, 2021 @07:06AM (#28479891)
"apparently I object to the very fact that mathematicians like to fix things and make inferences about them": that's not really what's going on: time can be present in mathematics (e.g. defining a sequence iteratively) and the like.

What you do have to fix is the definition of things: your reasoning is very shaky, and once you would start formalizing things you will find you cannot "defeat" the Halting problem or incompleteness theorem.

Re:T-Mobile: Breach Exposed SSN/DOB of 40M+ People on Wednesday August 18, 2021 @01:03PM (#28224091)
Not sure it's strong, but The Netherlands has DigiD with 2FA?
Re:South Kensington station's escalator replacement project on Tuesday August 17, 2021 @07:15AM (#28208601)
The comment you are replying to said "usually" and that was in response to the GP that said "I don't believe the London Underground has ever been profitable."

The government did not bail out the London Underground in particular last year but TfL, though I would be surprised if the underground was profitable last year.

Anyway, unsure what your comment was adding.

Re:Git password authentication is shutting down on Friday August 13, 2021 @06:49AM (#28167443)
Similar here, though we did narrow it down to the cause/brownout at the time.
Re:Git password authentication is shutting down on Friday August 13, 2021 @06:48AM (#28167435)
This won't work as a deploy key can only be used in one repo.
Is he wrong though? If you went to a shop and spent $2,000 but forgot to pay for 3 items (say worth $5) by accident, I do not think the shop manager should be upset, or that you should feel bad about it? If it was a smaller/non-chain store, it would probably be free! If anything, the main annoyance is probably their stock numbers being out of date.

Making mistakes is human, and I do not think they should feel bad for what they have done (and for not correcting it), and this is coming from someone who cannot steal the bags that now cost 20 pence at Tesco and even went to buy imaginary food at Waitrose after I forgot to pay another time...

It seems this is run by the "Office of the French Ambassador for Digital Affairs": cool initiative, see their readme on GitHub:

https://github.com/ambanum/OpenTermsArchive-versions

Re:Intrinsic, a new Alphabet company on Friday July 23, 2021 @04:28PM (#27935238)
It is harder than x-y + down, however I don't think this video is impressive really, having slowed down the video it doesn't look special to me and I did work on robotics/machine vision around that time.
What's the relevance of it being older than `pip`?
Re:TDD from the Factorio Team on Friday June 18, 2021 @01:00PM (#27552424)
This depends on what you're doing. For example, if you are changing an intermediary (abstraction) layer, then the (unit) tests (TDD or not) for those will have to change and the "guarantee that you're not inadvertently changing behaviour" is kinda moot.

If you do not have TDD, I guess the reasoning is that either you do not have tests for this (probably bad) and if you do, less of them (and so more easily changed).

Not sure it's an argument against TDD, but I guess if management/the programmer do not know about sunk cost fallacy, it might make them hold on to bad abstractions/layers.

Re:Richard Feynman’s Integral Trick (2018) on Tuesday June 15, 2021 @01:22PM (#27518506)
Because the integral is then over ln(1) and the log of 1 is 0.
If you click through one of the links (e.g. Python) you will see it does allow you to do so!

https://pypi.org/project/geoip2/

Maxmind do APIs for a bunch of language. I've used the python one and it works well (with Lite), but see here their list:

https://dev.maxmind.com/geoip/geoip2/web-services/

Re:When thebiglebow.ski is blocked by Facebook on Tuesday October 13, 2020 @12:38PM (#24767206)
In this case, the problem arises, because they are using Mr de Zwart [sic], but can this not by avoided by simply using the full name? Mr Thomas de Zwart?

Previously I wasn't a big fan of this style, but it has grown on me, and I see it now as similar using "they" instead of he/she for an unspecified person. Why assume anything about the name, when you can reuse it verbatim when needed?