Better HN
topnewbestaskshowjobs
Log inSign up

solox3

725 karma · joined Jan 12, 2012 (14y ago) · 264 submissions

Submissions

comment 2mo ago · link · parent

Canada and the US were not in an exclusive relationship.

comment 2mo ago · link · parent

> US President Donald Trump earlier called the idea "laughable" and threatened "very serious tariffs" on Europe if he considered it a "hostile act".

So if Canada tries to make friends with anyone other than the US, it's a hostile act?

Makes it all the more obvious that USA is Canada's abusive partner, that they should have broken up with a long time ago.

comment 2mo ago · link · parent

Did this move improve the ratio of gender representation in the software development community?

comment 3mo ago · link · parent

I am addressing directly why the Republicans want this, not why the current president wants this. Even if the current president changes, the Republicans will still pursue the annexation of Canada with financial interest.

comment 3mo ago · link · parent

My guess: to weaken Canada's economy, limit Canada's international standing, bankrupt the sovereign state, cause rise of populism and voters thereof, have its people overthrow the government, then absorb the former country as a state to extract its natural resources, to fulfill manifest destiny.

Other than the current tariff narrative, it's fairly standard CIA play when we look at what they did to Latin America already.

comment 1y ago · link · parent

Which straw broke the camel's back. Was it insulting the prime minister as a governor, threatening to annex the territory, threatening to "redraw borders", or calling Canadians "nasty people"?

comment 1y ago · link · parent

Actually, it will be great. If I am disabled from the waist up, and I want to continue coding, I would love to be able to ask AI to do a lot of things that I think are too hard.

comment 1y ago · link · parent

> Core 2 Duo

Is that not one of Intel's trademarks from the past 20 years?

comment 2y ago · link · parent

That's because the article was from 2019.

comment 2y ago · link · parent

Novel idea: move these mattresses onto the floor?

comment 2y ago · link · parent

Modern vehicles are still made with steel, if I am not mistaken (since I own two). I also think the designers did a fine job over at Tesla. It's more baffling that the automaker decided to forego a layer of clear coat---just like with all other cars---because they think they can defy the elements, or up-sell you on that $5000 wrap that they are offering.

comment 4y ago · link · parent

I wish OsmAnd all the best, but ever since the app was created, its map rendering performance has been stuck in the 2010s, no matter how much faster our devices have gotten since then.

There is justification for it for sure (see https://github.com/osmandapp/OsmAnd/issues?q=is%3Aissue+slow... for a few), and I love OSM out of principle, but as a product, it will remain my last resort until the user experience is tolerable.

comment 4y ago · link · parent

I am fine with abstinence as a general recommendation, but critical thinking pointed out two issues with the WHF Policy Brief, which I suppose I have read in sufficient depth:

1. There is no citation on the sentence, "Recent evidence has found that no level of alcohol consumption is safe for health." This is really the only line we are interested in.

2. There is no comparison on the effects of alcohol on the body by dosage (and frequency), which is, again, what is required from the brief to make that claim.

Again, while I don't necessarily disagree with what's in the report, and that it is already established that drinking too much is not good for the heart, considering many otherwise toxic substances have a hormetic zone, it is critical that a study like this rules out the its existence for ethanol.

comment 4y ago · link · parent

> I can't use my editor/IDE to "go to definition" of bar/baz

I use "Find Usages" on foo to see where it is used. Once you see where it is used, you know what the types can be. It's not great, but it's also something that can be progressively remedied.

In the event that the function is not as trivial as your example suggests, the author should have written a docstring to help you understand what it is trying to do, in addition to type annotations that will make it more readable.

In this example, bar can either be a function, a class, or any object with __call__(), so the type information is less important in this case, than actual docstrings that express intent.

comment 4y ago · link · parent

Notice that, in the original quote,

    There should be one-- and preferably only one --obvious way to do it.
the author used two different ways of hyphenating (three, if you count the whole PEP 20). PEP 20 is clearly not meant to be taken as law. Nor PEP 8. Nor PEP 257.

People frequently mistake "one obvious way" with "one way". There are lots of ways to iterate through something, for example, but there is really one obvious way. And the philosophy here still applies: when you read anyone else's python code, the obvious way is probably doing the obvious thing. I think that is the more appropriate takeaway from PEP 20.

comment 4y ago · link · parent

Absolutely. I was one of the early members of voat.co (a reddit clone in C#), and never really used it due to a lack of content. Fast forward a few years, and that place became a portal to an alternate universe where Hitler won, slavery is taken for granted, and (he who must not be named) is the American emperor.

The stimulating nature of extremism makes it really hard for a new platform to be pro-"sensible free speech".

comment 5y ago · link · parent

"No one opts in" aside, any opt-in metrics you do collect tend to be skewed towards how the people who opt in, use the product. Anyone serious about making product decisions using opt-in metrics should be aware of this bias.

comment 5y ago · link · parent

One could try reading a book, learning a new skill, or socializing.

comment 5y ago · link · parent

Calling it "The first car-free neighborhood built from scratch in the US", and then mentioning "zero private cars means zero hassle" (so there are other private vehicles, like trucks?), "Rideshare" (what are we sharing if not a car?) and "On-site car share" (so there ARE cars?), makes the headline inspirational - and with the best will in the world - a bit misleading.

comment 5y ago · link · parent

- Walking helps veins squeeze blood up against gravity.

- Standing applies pressure on the same points on the feet. Walking shifts pressure from place to place.

- "Moving in general is good for health" (with the implication that sitting and standing still are not moving)

comment 5y ago · link · parent

Proportionately increasing or decreasing the number of people in a country is not the same as trying to wipe a race off the map.

comment 5y ago · link · parent

The script uses the device time.

comment 5y ago · link · parent

Google Meet is an interesting example. The mobile apps (Meet, and for some reason, within Gmail) have the End Call button on the left, which is more reasonable I guess, but makes me tap the wrong button on desktop all the time.

comment 5y ago · link · parent

It will be interesting if either one of these eventually returns image and video results as well.

comment 5y ago · link · parent

Something about select_related? Please do share.

comment 5y ago · link · parent

I'm currently on the Havit. Excellent key response with lighter weight and shorter travel. Typing on it takes much less effort than my other blue switch keyboard.

This "low profile blue switch" uses a click bar, so the click you hear does not correspond to the actuation point exactly---which I am a bit bummed about---but I hear the majority of low profile clicky switches currently have the same implementation/issue.

comment 6y ago · link · parent

Thanks for replying, and yes that is the page about which I have questions.

* The error code C2006 assumes there is a clear divide between "smaller" and "larger" strings. What is smaller, and what is larger? Is 1000 large? Is 5000 large? Is 1000000 large? If I want my comment to be capped at 5000 characters to encourage healthy discussions but prevent spamming, is it large?

* If a field has no "known format" and that's where it draws the line between CharField and TextField, then why is the error C2006 still raised when TextField(max_length=5000) is used? Why does the validator recommend allowing anyone to insert entries of unlimited size?

12345
9