skysight-inc/HackerNews huggingface dataset:
Some of the simple words and their prominence can be amusingly informative, though.

Take data structures for example. "string", "array", and "object" are about as equally prominent in both JavaScript and Ruby (where the dictionary is called "hash"). In Python, however, "string" and "list" far outweigh "dictionary" and "object", which probably says something about what kind of data structures Python developers deal with the most in their lives. Meanwhile, C# and Java seem to be all about strings -- Are people just casting everything to string because they don't want to deal with strict types? -- and PHP is the only language where more people feel like they need to ask about arrays than they do about strings. Which is not surprising since PHP uses arrays for basically everything.
Mostly agree. Might want to rethink the nitpick thing.

> The goal is not to deliver perfect code. That's impossible - we're human. Trying to do so anyways is counterproductive.

If it's not important why are you saying anything?

If it's code style, well if it's code style I'm going to ignore you. And if pressed I'm going to tell you to fix the linters because I ain't got time for this shit.
The error the users made was buying a Galaxy Fold :p
Hey Remilouf,

I know exactly how you feel. I was put in the same position and ended up spending 2 years trying to clean up the data and set up the warehouse and handle all the requests for exploring the data.

I had a background in AI and was fully blocked on doing anything I wanted.

4 Years later I build a company to make this easy for people.

I would do the following:
1) Setup a Redshift Instance
2) Use Fivetran to Dump all the data into that Redshift cluster.
3) Leverage my startup Narrator.ai to model and use that data.

Now your team can use your modeled data and you have a clean time-series data structure to do the DS algorithms you want.

Reach out and we can talk about this in details ahmed@narrator.ai.
Thanks to the magic of computer science, we can package up a lot of those libraries for use with other languages as well.
you can run sql DB over compressed filesystem, and some DBs allow you to compress tables too

> like being able to deserialize a single column without having to read in entire rows.

and it reads filesystem's whole page anyway
That's a very good point.
Adding it to the todo list! (soon)
Check it out here:
https://www.darwinmail.app/feedback.php

Is it good enough to use for now though?
FWIW, I asked this since I've built client-side ads/analytics code before and I very much prefer JS-based solutions, since you can sort out the difficulties of dealing with interfering scripts once, put it in a library and still have control of what is going on.

But I guess it does provide a simple mechanism for folks who would otherwise use a redirect and don't want to deal with the complication, so thanks for the insight.
And we should all pretend that the internet resolves conflicts at any level? I think the widescale lack of communicating without empathizing pheromones is quite obviously making a shitstorm of the whole wide world. But keep culting with your bad self.
"viable solution" and "what the law requires" in this case are not necessarily the same thing.
I don't know why this irked me so much, but it did:

> the roughly 50-square-mile area surrounding the San Francisco Peninsula

SF itself is around 50 square miles. I know the article probably means something like "the area within 50 miles of San Francisco," but an editor should have caught this.
You can only "leverage" that against those that don't because of excess demand versus supply. If there were many regions with good income security and upward potential, then it would bring rents down to levels at which owning vs renting wouldn't be so lopsided.

The other side of this coin is also the lack of income (or sufficient income), due to the reduced value of human labor due to the aforementioned automation and also the 3 billion other people in the world wanting to share in the dream of having the luxuries of the developed nations.

My point is that offering a residence for rent isn't inherently bad, and that attacking that isn't going to solve anything. Although, I think there are other problems caused by private ownership of land.
ABC vs. AlJazeera Descriptions on YouTube
Back in 2015, I somehow ended up as part of a panel discussion at the end of a conference. The panel was going to include Joe Armstrong, Don Syme (inventor of F#), Tony Hoare (!), and myself (a nobody compared to any of them). During the conference, I wanted to meet each of the other folks on the panel, and ended up in a somewhat lengthy conversation with Joe Armstrong -- mostly about Erlang, but at some point the panel itself came up. I mentioned how nervous I was; me, sitting on a panel with such other esteemed and brilliant folks -- of course referring to all of the other people on the panel, including Joe Armstrong himself. I'll never forget his response: "yeah, me too! Wow, Tony Hoare, seriously?!"

I'm not sure if he deliberately misunderstood me or not, but it definitely put me more at ease, realising that there's always someone bigger, even for the folks you see as bigger than you!

So sad to learn of his passing. RIP.
I'm not against karma systems generally, but they really need to be carefully designed so they don't encourage cheap sensationalist crap. Reward insight, nuance, demonstrated domain expertise, and respectful dialogue.
> Why do that if our clients could do it nicely, based on screen size, preference and everything?

Because there are some thing that shouldn't be soft-wrapped. Like code snippets, diffs, formatted output, etc. It's far easier to let the person who write the commit message to decide where to wrap it rather than relying on the recipient's display to do it for them. Linus Torvalds describes the same issue here [1].

[1] https://github.com/torvalds/linux/pull/17#issuecomment-56606....
Good to know! Things that has gone bad usually doesn't taste that great either so that's a good way to find out!
Nice. I’ll send you a message.
Political donations from for-profit insurance companies.

A political ideology centered on market fundamentalism and individual responsibility (eg. "The free market is always more efficient than government provided services", "Why should I pay for your poor choices in life?").
Show HN: eolsh – a text-based game you play at a command prompt
Ohhh no! That is not good enough, I'm sorry :(

I will find the root cause asap and fix this issue!

If you wish, you can report the issue here:
https://www.darwinmail.app/feedback.php
Can someone explain how a warrant like this doesnt violate the Fourth Amendment? This seems obviously illegal.
For those of us who haven't seen it before, would you please explain what this means? I assume it is some sort of sign of mourning?
The title implies that Samsung is blaming the users for the broken phones. This is not at all what happened at least in MKBHDs recent video they were much more understanding. https://youtu.be/vtqtyyGZvXM
I think individual dentists will often go on anecdotal evidence. A single dentist may fix 10k+ teeth or more and treat the same patients over 20 years or more and is therefore often well placed to consider what worked in their practice.

This is often exactly what you want actually ... controlled trials typically can’t take into account enough useful variation in patient conditions to be a useful guide for any given patient. Meanwhile the dentists mental database can be ... if your dentist is a good one.
It's not just civic institutions. Manhattan would be illegal to build these days in Manhattan.

I'm glad that incapacity hasn't affected the whole world, yet. But it's seems to be spreading.
A very simple request!

Select all emails I'm guessing?

Funnily enough, you can't - not yet!

But I've added that to my todo list.
How does that measurement occur? Since all particles interact via gravitational and electromagnetic Force all the time, why aren't they always entangled.

I never see a definition of measurement, or observation.
Anatomy of a Telegram Scam
I have been clicking that "no thanks" button to enable location services for years - because Google forces me to do it every time I want to use Maps to make a query. There is no goodwill.
They were very understanding to MKBHD, who has 8 million Youtube subscribers.
>What about the hypothesis that focusing on empathy is the problem, rather than its application the cure?

This is the thesis of the aptly named book "Against Empathy" by Paul Bloom. I always highly recommend it to everybody whenever I get the chance, because the thought that this might even be a possibility seldom ever crosses many people's minds.
Of course, the devices most people carry around intimately all day have batteries sealed inside them. Even if the batteries were removable, and there were no secondary battery, a device could still (and perhaps increasingly will) be able to harvest power, or be actively powered wirelessly and even at some distance.
The title of the article is "Samsung responds to reviewer complaints about its Galaxy Fold phone". The phrase "user error" appears nowhere in the article.

They do mention that some reviewers tried to remove the protective film over the screen but nothing in this article seems to be suggesting this is a "you're holding it wrong" reaction from Samsung.
Hm... so I gather that you consider yourself the tolerant person in your society. Assuming that you are willing to imagine living in a more collaborative society all you need to understand is that people are just people. They have the same wants and desires. Connection, purpose, security, a general understanding that self-preservation requires respecting other people's goal of self-preservation.

It is that simple.
Thank you for the follow-up. Much appreciated.
I can assure you it's not just you btw! I feel the same way :)

Noted. And noted. I will first stabilize the web version and then move onto the apps :)
IB margin rates are currently 3.92%, for example:
https://www.interactivebrokers.com/en/index.php?f=1595
The submission title seems like an exaggeration. According to the article, Samsung's statement actually says:

> Here’s the statement in full:

> "A limited number of early Galaxy Fold samples were provided to media for review. We have received a few reports regarding the main display on the samples provided. We will thoroughly inspect these units in person to determine the cause of the matter.

> Separately, a few reviewers reported having removed the top layer of the display causing damage to the screen. The main display on the Galaxy Fold features a top protective layer, which is part of the display structure designed to protect the screen from unintended scratches. Removing the protective layer or adding adhesives to the main display may cause damage. We will ensure this information is clearly delivered to our customers."

To me this reads: Samsung says there are several categories of issues that they will investigate, but to address one particular category where a protective layer was removed, they will make sure that customers are clearly informed that they should not remove the protective layer (which I assume will include a label on the layer itself).

In other words, whereas the author sees that statement as implicitly putting the blame on the users, I see it as implicitly accepting responsibility in terms of insufficient labeling.

Edit: I assumed the submission title was the same as the article title, but it is not. The article title "Samsung responds to reviewer complaints about its Galaxy Fold phone" seems fine.
Who’s Buying Property in San Francisco?
If a company buys a laptop for a 1000 that is an operating expense of that company, if it is a personal company that is to say you are the sole owner and it is not incorporated then you can deduct part of the cost of that laptop which I thought I already indicated. If on the other hand the company is incorporated in some way - and because I am not referring to any particular country I just mean in some way the money spent on that laptop will not be counted in the company's profits and not be taxable.

on edit: unless of course this is different in the country under discussion but in the countries I'm familiar with it works that way, also note I have not discussed depreciation which would definitely apply to a laptop.
Anyone know what he died of/from?
> I was just hired

[...]

> I was thinking about building a pipeline

[...]

> How do I go about raising awareness?

Don't.

You don't get it yet.

Everything there is there for a reason.

Some of it may be technical reasons, some of it may be delivery reasons, some of it may be people reasons, team reasons, political reasons, etc.

You just landed a sweet perm job in a field you love. Don't ruin it by becoming that cliched new hire that sees all their problems and knows how to make it all better. You may be right. Technically. They may even encourage you.

But you could also be wrong technically. You could step on toes politically and end up sidelined. You could end up biting off more than you can chew and end up becoming responsible for the bigger mess later.

May advice is to stop, take a deep breath, look around, appreciate what you've already achieved by getting there, get to know your colleagues, get to know the company, get to really understand the system so when the next new hire comes in you can explain the reason behind everything (maybe getting to know the detailed history of the system and why it formed the way it did?), and make sure you know absolutely everything you can before changing everything you can.

Yeah, maybe you'll feel some parts of your job suck for a while (I wish this was easier, it's stupid that I have to do all this work to get form A to B when I can see a better way), but if you give yourself more time to learn, you're really doing yourself a favor in the long run.

And you're a perm now, in a big corp, doing data science. Relax, you got it made, right?

So chill out and take a deep breath and enjoy your new workplace and everything about it (not just the stack in front of you), and if you still want to make changes somewhere down the line, start small, bit off a tiny little piece you can chew, and succeed with that small improvement before moving forward with anything more.

Also think of it differently, if you do end up being the one responsible for reinventing the whole stack, then milk that project for everything you can. It's a big corp play so you have to do that in a big corp way. There'll be meetings, committees, decisions, stakeholders, teams formed, responsibilities. You could even parlay this project into some greater responsibility and title for yourself, maybe even use it to boost your career. SO think of it not like you are trying to understand a technical problem, but you are trying to understand a piece of (and through it, the enitrety of), your whole new organization, with all that entails: the people, the team relationships, how decisions get made, etc. So enjoy playing that game, because you are happy to be in a big corp, so the sort of benefits that can bring you is what you want, right?

It's not a startup. And if you feel technically unsatisfied, use the time to learn some new languages or skills, or kick some side projects down the road for your own benefit.
Some python documentation conventions are weird, to be sure. But I’d rather have an eternity of Sphinx build toolchains than the hell that is making POD/Perldoc work for medium-to-large projects (or small ones, for that matter).
I completely get you. Thanks for the follow-up.
Mobile apps are certainly on my todo list. And thanks for adding your use cases to help me understand :)
My anecdotal impression is that most Americans can't be bothered to think about these topics at all, and if you try to bring them up it's brushed off with a "I can't be bothered to think about anything that isn't day to day getting by".

I wish anyone I knew outside of tech circles cared even 1% as much... but I've given up trying to point out all the instances of corporations fucking over the public.
Ehhh... in order to use Maps on your phone that seems completely necessary to me. Sure maybe technically it’s possible to use directions by specifying the start and end point, but come on. Who does that? Also, the amount of crap Google does purely based on your IP...
I came here to say the same thing. His thesis is extremely readable and illuminating on the topic of reliable distributed systems.
Hey, glad you liked my ideas! I'm thinking Chrome/Firefox plugins in particular. I think you have some built-in functionality that covers some of the use cases but I think that one of the great things about Inbox was that it was largely compatible with existing Gmail plugins.

Anyway, best of luck! I'll be keeping an eye on this.
It doesn't seem they stated what the title implies. Here is their response:

>A limited number of early Galaxy Fold samples were provided to media for review. We have received a few reports regarding the main display on the samples provided. We will thoroughly inspect these units in person to determine the cause of the matter.

>Separately, a few reviewers reported having removed the top layer of the display causing damage to the screen. The main display on the Galaxy Fold features a top protective layer, which is part of the display structure designed to protect the screen from unintended scratches. Removing the protective layer or adding adhesives to the main display may cause damage. We will ensure this information is clearly delivered to our customers.

From what I've read, the reviewers mentioned the issue was a poorly designed hinge.
Nobody has bought a Galaxy Fold yet.
>commented (!) code,

Comments become stale and will often not be updated as the code changes.
When did stating facts become wrong? it was a user error what causes the screen to break
A Look at China’s Growing Semiconductor Industry
ESG Investing Doesn't Work
https://medium.com/@bmb21/esg-investing-skepticism-3ea126325dfa?source=friends_link&sk=fb4044cd6d909167ac183c23517ed49d
I enjoyed their telephone etiquette so much that I made this re-edit last summer: https://www.youtube.com/watch?v=UuSZ37vMIks
What about eg http://lambda-the-ultimate.org/node/4823 ?
The title chosen for this submission seems like a wildly negative slant. Only a few of the reviewers reporting problems removed the protective screen, and Samsung has time to update instructional materials to instruct consumers not to make this mistake.

Samsung is not blaming any of the other failures on users, and states they are going to examine the units.

Seems like a reasonable statement to me.
Good information, and well put. A small quibble: you should probably almost never use tuple(), even on recent Python:

>>> tuple(dict(a=1, b=2).items())
(('a', 1), ('b', 2))
>>> tuple(dict(b=2, a=1).items())
(('b', 2), ('a', 1))

Of course, if you can absolutely guarantee how the dictionary has been constructed, it is possible. No rules are absolute. But in my experience, frozenset() is probably better:

>>> frozenset(dict(a=1, b=2).items())
frozenset({('b', 2), ('a', 1)})
>>> frozenset(dict(b=2, a=1).items())
frozenset({('b', 2), ('a', 1)})

(Or sometimes even id(), as, if you are confident enough that the dictionary is identical, that might be because it came from the same place. If you are building a reverse dictionary, say, or a cache of indices. Though obviously that it is much more situationally dependent.)
The Truth About Tesla Model 3 Batteries: Part 1
Joe Armstrong on “Rhetorical Structure of Code”
That's a good point! Though I think a big part of it is that the web stack changes a lot more often which breeds a lot of fear that kills empathy.

I've met some of the nicest people I know in the JavaScript open source community and some of the most empathic though.
Categorising trips is one of the features I miss the most for sure!

Bundling that's been requested a few times today and I will be working on it asap.

https://www.darwinmail.app/feedback.php

Thank you so much for your feedback :)
Note there's also `np.empty(size)` if you know you're going to initialize all the values in a later step, in which case it can skip assigning zeros to every element.
And not to TechCrunch? It's ranked #357 in Alexa: https://www.alexa.com/siteinfo/techcrunch.com

They've been sending these to bug outlets; smaller guys haven't even gotten their hands on them.
I agree and disagree. Doordash have opened up deliveries from restaurants that would have never hired their own drivers. On the other hand their delivery mechanism sucks. Almost every other order is messed up. Yesterday, after a 2 hr delay, in which time there was to way to contact customer service, my deliver was abruptly cancelled. Imagine a toddler at this time. Also, most of the time the food arrives cold or there are items that are incorrect. It is bizarre
Adding a polarizer is a nice variant of the experiment. I think I never heard it before. I like it, but I disagree with the expected result.

If the slit A has no polarizer and slit B has a polarizer, then in the "wall" you will the sum of 50% of the interference pattern and 50% of the diffraction pattern of A(I'm not sure about the 50%-50% split, something like that.) I.E. you will see the interference pattern, but it will not be so sharp, the black lines will not be so black, the white lines will not be so white.

I think it's better to put an horizontal polarizer on A and a vertical polarizer in B. If you don't add any other polarizer you will see the sum of the diffraction patters of A an B, without interference lines.

If you put a polarizer, the result depends on the direction:

* If it is horizontal you will see only the diffraction pattern of A (without interference lines).

* If it is vertical you will see only the diffraction pattern of B (without interference lines).

* At 45° you will see the diffraction pattern like in the original double slit experiment.

* At the other 45° you will see the inverted diffraction pattern, the black lines will be white and the white lines will be black. (All of this bounded by the diffraction pattern.)

* At other angles, you get some mix of the diffraction patterns and the interference patterns.

It would be nice to see an experimental realization of this.
Erlang was the entry into functional paradigm that clicked with me. Thank you Joe, for that and much more. RIP
Correct me if I'm wrong, but won't this just result in more sophisticated phishing technology? Google can't, as far as I'm aware, inherently block frameworks from spoofing whatever information they want, even if they have some form of limited control with Chromium-based solutions. That's not to say that this won't slow down phishing for a while, I'm just wondering if there's any more to this.
That's seldom how ideas from category theory are used in practice. Eg most Haskell programs aren't proven correct.

(But if you are into that kind of proving, than there are a languages a bit like Haskell, like Agda for example, that revel in those proofs.)
I tried to find studies for the effects of teeth brushing frequency but the only ones I could find were cohort analyses as opposed to randomised trials. It seems like despite a lack of evidence, it would be very hard to ethically approve a randomised trial of teeth brushing over a long period. I honestly believe brushing teeth twice a day is very much a ritual which achieves very little on a per effort basis.

Reducing our intake of sugary and acidic foods and drinks would have a much greater effect with much less effort. The problem is that the profit margins on carbonated flavored water are massive so the opposition to such change will be huge.