jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
> Whenever Tim Cook come on to the stage and said things like our customer loves the Mac, ( Not anymore)

Please do not presume to speak on everyone's behalf. I love the Mac, as do millions of other people; MacBooks have been outselling their competitors, even the first Touch Bar model:

https://fortune.com/2016/11/09/apple-macbook-pro-sales/

Disbelieve it, downvote it, but the naysayers are a vocal minority, and Apple can see that in their numbers.

Back to the topic though, all this kowtowing of Western companies to China is definitely depressing.
I'd like to make a point here that isn't coming up enough in this conversation.

GOOGLE knowingly tracked children, marketed towards them, but somehow the FTC allowed them to transfer liability to their creators.

No creator has ever tracked children, and yet, they are liable for Google's actions?

What options am I left here? I can't make content for children of even talk about anything that might appeal to a child; I can't make adult content or swear, or be dark because advertisers don't like that.
>I don't get why the article is treating this as an exciting new business.....What's the innovation here? He has an online platform?

This would be a good question to ask someone who runs an automotive restoration/fabrication shop. From what I've seen they have a pretty great bidding system as far as online auctions go, but beyond that I'm just as uncertain as you.
This problem in Python 3 is not limited to OS file names, that’s just one way to get invalid Unicode data. But invalid data happens all the time when working with real data. The Python 3 string design requires that all strings must be valid Unicode or Python will raise an error. This is a really unfortunate property that has bitten every single data scientist I know who uses Python 3. At some point, often hours or days into a long, expensive computation, one of their programs has suddenly encountered just a single invalid byte and crashed, costing them days of time and work. The only recourse for writing robust programs that can gracefully and correctly handle invalid data is not to use strings, which, frankly makes the string type seem pretty useless.

The Python 3 string design also necessitates scanning and often transcoding every piece of string data that it encounters, both on the way in and again on the way out. That means that not only is the string type inappropriate for any data that might not be valid Unicode, it is also inappropriate for any data that might be large.

I’ve been meaning to write a blog post about how Julia handles strings, but haven’t yet gotten around to it. Among other benefits:

- You can process any data as strings and characters, whether it’s valid Unicode or not.

- If you read any data as strings or characters and write it back out, you get the exact same data back, no matter what it is, valid or not.

- Invalid characters are parsed according to the Unicode 10 spec.

- You only get an error if you actually ask for the code point of an invalid character, which is a fairly rare operation and must error since there is no correct answer.

- The standard library generally handles invalid Unicode gracefully.

- You can use strings for large data: there’s no need to look at, let alone transcode string data—if you don’t need to access something no work is required.
Please don't cross into personal attack.

https://news.ycombinator.com/newsguidelines.html

Edit: you've broken the guidelines quite a bit, I'm afraid. Would you mind reviewing them and taking the spirit of this site more to heart? We're hoping for thoughtful conversation here, a little different than internet default.
If it’s just me or other even moderately technically inclined people I’d just write straight HTML in git, no need for some fancy production.

I was recently asked to propose an alternate website for the church I go to (they ended up rejecting it, which I think is good because I’m not interested in maintaining it) and what I came up with was an mkdocs repo with a hook to auto rerun mkdocs (so like a janky homebrew version of readthedocs.io) with a custom theme (also in the repo).

I’m surprised no one has mentioned it, it’s very complete and I didn’t think it had many dependancies (as far as python projects go.) It just converts a folder full of .md to a folder full of .html and will even add edit buttons to point to a web UI for your repo host (which is really great because that means authentication isn’t your problem, I’ve heard of churches running Wordpress getting their pages replaced with porn because of that which is IMO the worst case for all of this.)

I can’t remember why I didn’t use the one written in go, I tend to gravitate towards go projects since the dependancies usually aren’t so bad and you get a (mostly) statically linked binary at the end.
They never claimed Bitcoin had “absolutely no use at all”

The point is that Bitcoin is designed to be inherently power-inefficient. Proof of work systems rely on the work being both difficult to calculate and useless.

Even if Bitcoin transactions went to 0 tomorrow, the system would still consume more energy than Argentina just to keep everyone’s balance.

Worse yet, it the power consumption goes up every year because the system incentivized it.
Remember that in Africa and the Islamic world, polygamous marriage is very common. The Economist have done a number of interesting stories about it:

https://www.economist.com/christmas-specials/2017/12/19/the-...

https://www.economist.com/the-economist-explains/2018/03/19/...
> Yes doing the walrus operator inside brackets works. Yes of course it's going to be doing weird things. Is this really surprising to anyone?

Yes, it is in fact extremely surprising that an expression does something different based on surrounding context. It would be as if expr had one meaning but it you called f(expr) it had another. Saying that you're using it unexpectedly doesn't really address the issue of language design.

It reminds me of Matlab's idea (a long time ago) that f(i) is either a function call or an array access at index i, but you will not know for sure until you've evaluated f, so expressions like f(i)(j) end up being just weird. There is a certain amount of logic that you are fully justified in expecting from a language.

> It's not what that operator is for.

If your idea is that an operator is free to do whatever, once it's outside its predicted situation, then I can see how that's technically correct based on the language spec, but it just seems like a very weird way to just a language design.

I think if you think that some of those examples have no legitimate uses at all you'd then have no problem saying that they should be syntax errors but are accepted anyway, that it's just a bug in the parser, that it accepts too much.

I also do not see how this is anti-python, I think you are being unfair to the author.
Wasn? Es lädt doch! Should it be more blue, or what? At least it has settings in the Hamburger-menu where you can disable the football ticker, and more!
If you pay somebody to clean you’ll be a mile ahead.
This guy isn’t hustling as hard as he should be. If you can’t get deals because of the old boys club of buyers and suppliers you gotta do some guerrilla marketing.

Learn which hospitals are struggling with masks. Lease a bunch of U-Haul/Ryder trucks and fill them with masks. Park them in front of the hospitals with massive banners on the side: “50,000 made in USA n95 masks inside. Call 555-555-5555”

Pretty soon you’ll be selling every mask you make.

Or start selling direct to consumer using marketplaces like Amazon.
It's intended for people who only have one working hand / arm.

The company also make keyboards for people with no working hands.

https://www.maltron.com/store/p24/Maltron_Head%2FMouth_Stick...
Good question, I wonder if this even differs by industry and number of employees.
But the percentage of total tax revenue paid by the top income earners has only grown over time, not decreased.
That's all great and makes sense, but ...

What does that have to do with being verbose and letting developers know they are using an insecure method when it would apply to them?

If I'm writing code and using rng for gameplay variety, and then I notice that I have to use a function called "insecureRandom", at the very least I'm going to read up on an interesting aspect of computing and be a little more informed at the end of the day.
The median US household has ~$1000/month in investable cash left over after all ordinary expenses. Per the Bureau of Labor and Statistics (BLS) which tracks in detail how much people actually spend on myriad things in each income decile.

Americans are notoriously poor at actually saving or investing that money compared to their counterparts in other developed countries, but $12,000/year is quite a lot to invest in the stock market. If you saved even half of that you'd have a comfortable retirement.
An unlocked phone is as locked as a non-unlocked one if it depends on proprietary drivers of blobs.
> When people walk across a bridge and it starts to sway, they start to lock step and then resonance, where each step reinforces the last kicks in and more and more energy causes sway, shear and what have you forces. It gets worse and worse and then failure. Tacoma Narrows is another classic example of resonance but due to wind - that informed designs that don't fly!

this anecdote reminds me of the story of ancient rome. (I don't know if this is actual history or a myth).

Apparently, when roman military engineers build a bridge, they where forced to stand beneath it while the rest of the cohort marched across the bridge to test it's strength.

Marching gives exactly this same resonance effect.
I didn't have a good experience with scalikejdbc, which was what we ended up using. Possibly we didn't use it well, and I can't remember the details now, but our DB code ended up looking like a mess.
Nobody is saying that PoW doesn't exist, so no, I'm not going to read Bitcoin's source code. That is such an odd thing to say.

You can calculate cost per transaction because each block has a maximum number of transactions, irregardless of the current PoW difficulty. I don't know why you're so fixated on this. You can take 10 minutes of electricity costs and project it onto the number of transactions in the last block.
I really love this response; thanks for the perspective!
1. I concluded that's what you did, but found it a bit annoying. 100x15/16=93.75 . I find it unnecessarily confusing (as the parent commenter probably did) to round it to 93, when the correct rounding is 94.

2. The article says "15x more", so the right math would be 100x16/17=94.12 .
Someone needs to make a LinkedIn profile who's content is all GPT-2 generated from other posts and see how many job offers it gets.
Imagine you have a friend. A good friend.

One day, when you're not paying attention, your friend says to you, in a tonguetwister, "ifyoudontmindmelookingthroughyouraddressbookandcallingeveryonesaywhat?"

"What?" you reply.

"Nothing.", says friend.

Later that day, when you're not looking, your friend copies all the numbers out of your address book and starts calling everyone. If they pick up the phone, friend says:

"Good afternoon, Friend's Name, Your Name said you'd be interested in my new social network, would you like to sign up?"

If you found out that this had happened, would you still be friends with this person? Would you still talk to them? Would you still want to know what they have to say?
Great stuff! I use Refog spyware ( https://www.refog.com/ ) for a security purpose only. I installed it on my daughter's iPhone to be able to find out what programs my girl runs and what she searches on the web.
> animal models

Strange, i never heard "human model" in the research context. I've always felt that the usage of "animal model" is a reprehensible euphemism here. Research on animals. Minimum we owe them is to call it as it is.
This is delusional nonsense, and they are lies, as is your upthread assertion that it is a stolen election.

These same claims were presented by Trump most recently on a phone call in which he tries to shake down, with threats like a mobster, the same votes plus 1 that he is down by in Georgia. Trump is shaking down the Georgia Secretary of State. There is your fraud.

But the Georgia Secretary of state goes through the claims anyway, and sums it up with: Well, Mr. President, the challenge that you have is the data you have is wrong.

And specifically the ridiculous and unfounded claim of 5000 dead people voting he says: The actual number were two. Two. Two people that were dead that voted. And so that’s wrong.

I do not understand what possesses sore losers to insist that their fragile emotional state must be coddled this much for this long, and to tell lies so prolifically. But it is not the responsibility of everyone else to provide emotional support for them.
I think this may be broken by a very likely fact that many rich people work to get rich precisely out of anti-social motivations: they want to be safe and shield themselves from society with their money. Many are also simply sociopathic, and in a technology-driven world, that works better and better, because ability to make person to person deals - which takes being liked, and a sociopathic person won't be liked by other rich people they need to make deals with, because they can read people very well - that ability progressively matters less and less.

I know a guy with about a hundred million bucks net worth. He just simply works in his room all his life and doesn't have any partners, employees or clients. And you'll get more and more people like that. Can you motivate them with honour?
"Signal has gotten better" is the new "Linux on the desktop". When I move to a new phone with Signal, is there already an (easy) mechanism to take along all my messages from my old phone? Last time I checked, there wasn't, and this is a core requirement, even if most people don't quite realize it when they start using Signal.
They have their own package management library

https://rstudio.github.io/packrat/

and sell their own package management product

https://rstudio.com/products/package-manager/
You don't have to pick a messaging app for life.
seems like there's an intersection with mastery of product design there
The information is Beautiful visualizations usually frustrate me.

They often hide the data's insights inside a fireworks-show of other design choices. So, they wind up being abstract art that may, upon close study, reveal some fragments of information. (The Tuftean "data-ink ratio" runs very low.)

Though they're obviously quite popular, I prefer more-usable comprehension-aids, that draw attention to underlying trends and relationships.
Indeed, Node.js is a thin FFI wrapper on top of lots of C (and C++) code that does all the heavy lifting, but it is still useful. I think Woo is useful the same way.
I downvoted your "+1" and "TY" comments because they add nothing to the discussion -- just upvote instead of leaving such comments, this isn't Reddit (yet). Complaining about downvotes is also a good way to get more downvotes. Your original comment was probably downvoted since it's not very constructive either, it's just a random thought that entered your head (it's not a terrible thought, performance is something to be considered if you're seriously going to look over the pragmatics of using a random language), and it didn't really deserve to be a comment. A better comment that would have received upvotes would have been to run your own benchmarks and report the result instead of pointlessly wondering in public. (Or as the question can come across, demanding someone to do the benchmarking for you as presumably you searched for one before making such a demand.)
== vs. === aside, it's a bit hypocritical to use === because it's safer when you're using undefined as a keyword. You can't tell just from looking at that line whether the variable undefined is actually undefined or not; it could, in fact, be defined (below the global scope, that is -- unless you're in an older browser, I suppose).

Granted, defining a variable called undefined would be absurd, and I realize I'm nitpicking here, but if we're trying to make a point about good practice, typeof would be the way to go. (Of course, more often you only really care if something == null or not, so you'd just do a simple == null check, like you said.)
Yup, in shoemaking this is the "first trick" when doing some designs with straight-cut lines. Holes at the end prevents ripping completely (unless the leather is bad quality) and you can go on with your desired design.
I don't think that's an accurate description of the OP. It made some interesting points about internet moderation at scale.

Even if you're right about the OP, though, commenters here need to follow the site guidelines regardless of how bad someone else's contributions are or they feel they are. Otherwise we just end up in a downward spiral (given that everyone always feels like they're just reacting to something else that's worse).

https://hn.algolia.com/?query=downward%20spiral%20by:dang&da...

https://news.ycombinator.com/newsguidelines.html
That's a good assessment of the books, and one I put into the introduction. It's weird because what is great for a beginner with zero knowledge is incredibly painful for someone who's experienced. I think that's the key with my book's success and also why a lot of professional programmers seem to completely dislike it. It's also why I'm very honest and upfront about this right in the beginning.
I would tend to think that the officers in charge took the safe route, as in followed the established bureaucracy in place so as not to appear to be rocking the boat. Leaving established protocol is always a risk not worth taking unless you have been instructed to do so.

Having been in the service I now see similar traits at my work and in the words of others as their place of work. For many the job is to get the task done and do so only through the established framework
The second problem is easily solved by the reviewers creating new accounts for each order. In fact it's a better test since newcomers are more likely to be screwed over by a seller than someone with a forum presence who would have more credibility if they complained.

The first problem is harder.
Wouldn't this argument preclude using anything new, ever? Don't use C++14 until all of your code is converted to use it. Don't touch ES6 until you throw out your legacy JavaScript. Some of these programs haven't been updated to use Linux-specific features, so let's all stick to UNIX System V.

If anyone is best in the position to take up the bleeding edge with no thought to backwards compatibility, it's the people just starting out. They're the ones who, by definition, don't have legacy code to maintain.
The reality is that most of the photos are heavily manipulated and filtered. They are far from natural.
I think far-off deserts aren't nearly lofty enough in the context of which nations are furthest ahead in renewable energy generation...

Why not set the baseline with Mercury? That's an entire planet with much more solar capacity than any measly desert!
That's my point. I've always found it hard to set up dev containers. Also each dev container requires its own container, so I may have 10 python docker containers. My implementation only requires 1 image and temporary containers.
Bitcoin is a tiny part of that world and simply becomes part of it.
Why You Should Use F# (2018)(HN): https://news.ycombinator.com/item?id=26142696

Introduction to the 'Why use F#' series (2012) (HN): https://news.ycombinator.com/item?id=26142662

... in case anyone thinks I am against using F#. Important to know the pros-and-cons.
https://nos.nl/artikel/2367290-eu-erkent-wel-degelijk-nederl...

Halix in Leiden.
Greetings from Texas. Yeah, all that is true. You build based on how things usually are, or at least usually WERE when the dwelling was built.

I live in Houston -- very close to downtown, so I'm only about 50 miles from the Gulf of Mexico. This makes it VERY FUCKING WEIRD INDEED that my entire yard is covered in snow, and it is 16F outside. This is NOT Houston weather. It's almost unprecedented -- it's certainly never been anywhere NEARLY this cold in the 26 years I've lived here, and the idea that we really won't be above 32F (0C) for a material amount of time until SATURDAY is really really nuts. In a normal Houston winter, by contrast, we MIGHT see 3-4 nights that freeze. We go years without needing to wrap plants, and I've never bothered to wrap outside pipes before. (Outlying areas to the north and especially northwest of the urban core get as much as 10 degrees F colder, but even so it's not a regular thing.)

So yeah, we're all built here for cooling and not heating. Ambient air temp outside is rarely more than 95, so getting your house to 78 is pretty attainable. But when we get cold snaps, WE certainly notice in our house, which is a relatively new (1997) 3-story townhouse (very vertical; it's about 1800 sq. ft. or 167m^2). It's just not set up to heat evenly or well.

The first problem is just distribution. Our house has a modern 'open' style floorplan, with soaring ceilings in the middle (living) floor. Heat, of course, rises. The upshot is that if you set the thermostat to warm the lower 2 floors to, say, 65F, the 3rd floor main bedroom will be intolerably warm and dry.

As a consequence, a window in our bedroom is open about 2" all winter.

The other gotcha in our house is the floor in the first level, where I have my office (I work from home). It's a stained concrete floor, which is great in the summer because it helps keep the room nice and cool. Unfortunately, it does exactly the same thing in the winter. I'm wearing thick wool socks and long underwear in here now, even though I have a plug-in radiator to supplement the central heating.

Actually, the radiator -- a Delonghi; it works great -- would probably be enough IF the windows were better sealed. My desk is up against a window. My legs feel cold all day in weather like this (well, in cold weather; there hasn't been any weather LIKE THIS before), to the point that last week when it was much warmer (45F during the day) I was wearing sweatpants over jeans.

The house is wonderful and comfortable and attractive. It works GREAT for the vast majority of our weather. It just gets drafty in the winter. And, of course, today I'm concerned that we're going to get rolling outages. Whooo!

At least we have a fireplace. (People laugh about it, but in all honesty having a fire is the easiest way to make the living area comfy without overheating the top floor, just based on where the heat goes. If the house was a little bit bigger, I suspect it would've come with 2 climate control units and proper zoning, which would help a LOT, but as is: just one big zone.)