skysight-inc/HackerNews huggingface dataset:
No; as I understand it Elixir's only advantage is, arguably, better syntax. I don't mind Erlang's syntax that much.

We were handling, in peek hours, over 100k requests per second spread over 3 servers.

Funny you should mention scalability as something that somehow justifies Erlang's other shortcomings. I don't think scalability is something Erlang/OTP does out of the bag. One thing we learned the hard way is that Erlang does not do overload well at all. Erlang mailboxes are unbounded and it can get very messy very fast. I always found that design choice odd given Erlang's origins in telecommunications.

Now this is not to say you can't do massively scalable systems in Erlang, it's just that there's no silver bullet when it comes to scalability.
> If there exists a solution to either not using cloudflare,

> or some option hidden away that allows me to tell clouflare

> o fuck off with how it treats traffic, I'd love to know.

The method I use to avoid CloudFlare altogether (probably wrong as it's bespoke) is to do the following before "handling" the request:

* Store all connecting IPs, last request time and the rate at which requests are being made in a serviced-buffer. If the request rate becomes too high, give them a timeout (return a very small page telling them to come back in a few minutes).

* If database hits are high, drop non-important requests first, starting with views, then up/down votes, comments and then user security. Views and votes can fail silently and most people won't be any of the wiser.

* If static content requests are high, drop generated content first, followed by large files (all JS, most CSS, images, etc). For the generated content, you can use a recently generic cached view.

* Lastly, if all else fails, just return a redirect to some static server hosted somewhere strong (like GitHub pages for example), explaining that demand is high at this current time.

This approach has worked for me so far. Under high load, you need to handle requests as soon as possible, even if it means not returning something. Holding onto a connection is what will sink your ship.

In general most sites seem to die because they spend too long dealing with individual requests. especially when the database is hit. As soon as you overload a WordPress database for example, it's screwed. And this is just for displaying content to the website!
women are already so benefited in the tech industry, getting hired just for their gender, getting scholarships in universities and so on. The media makes it seem exactly the opposite because it gets them views. The reason there is lack of women in tech is because they are naturally not interested in it not because anyone is preventing them. If anything female starting salaries are higher than males
I gather that screen time is a contributing factor only because when you are staring at a screen you probably are not doing it outside in bright sunlight.
For 10M you can definitely start a hamburger chain that competes locally with McDonalds.
Flutter why you may love it or hate it
Since you post this on a monday, I assume you don't work a regular job? I also finish working at ~7-8pm, so I can only work on my own projects after that (until ~1am or so). I do rest, on Saturdays, but when I do I'm too tired to socialize, and if someone asks me out I will say no. I'm not going to give up my projects, hence the dilemma.
I think that could be useful in a corporate environment.

Did folk pollute the tags with nonsense?
Correct, dang is a HN moderator. This is a tech news website, and obviously politics and technology do intermingle, but let's not make a sensitive situation worse by encouraging tribal thinking.
Maybe mistaking it for voates?
Watch this

https://www.imdb.com/title/tt3162938/
> obviously

Huh? They're obviously optimized for regulating the temperature of the animal they came from. Except for cotton and linen. And they weren't woven. Viscose is pretty comfortable, but it's not a natural fiber. Fiber blends are pretty amazing, too. There's some interesting properties you can get with blends.
When our firm moved to git, Github and Gitlab were chosen as options and since gitlab gave us a better offer, we took it. However, the firm also uses Jira and now we are getting a better offer with Jira, Confluence and bitbucket. Eventhough Gitlab is loved by our team, It looks like Bitbucket will be the future for us. So you should not underestimate the market presence of a company.
> I've always assumed that the default state of an awake mind is a kind of inattentiveness where we take in an process no data at all

Try a bit of meditation and you will realise this is far from the case.
In Defense of Richard Stallman
It's kind of interesting how we often use the word intelligence to mean 'experiencing the world like a human.' When we find beings who's experience inches closer to us, we respect them more.
I’m familiar with Patagonia, but I’ve mostly seen them as an outdoor clothing company, not anything that I’d consider (non SV tech) business casual/smart. Are there any companies that make that sort of stuff that aren’t evil? Like more what you’d find at GAP or a department store, but not made by slave labour.
I thought this was written by certain company that is trying very hard on profiting creating FUD in the npm ecosystem. To my pleasant surprise it isn't and it's written by a new/different author. Scroll almost to the end and there it is, the author is a board observer in said company.
That's a heck of a site to mix it up with if so. Their philosophies could not be more opposite.
Is there any proof/research that it is because of smartphones (screens?)? My anecdote; I have had myopia since I was 7 (I am 45 now), 1 year before my first computer. Since then I have spent most my waking life behind screens and my myopia has been getting less slowly since my first glasses. I now can see quite well without glasses which I could not do 15+ years ago. Also, I should be up for reading glasses soon, but I can read the tiniest fonts on the tiniest screens without reading glasses (I need my normal glasses for that though), which gives me a lot of real estate on small devices (for instance working on a 4k remote desktop on my iPad pro 10inch; of course it does not show the entire desktop at once (you scroll which makes it really a nice kind of 'virtual desktop' system for me) but for me it's comfortable to read while other people cannot even see what i'm doing as the fonts are really minuscule). My eyes don't get tired though and never have on screens, even when screens where crappy flickering low res CRT things (huge fonts of course, compared to what I use now).

Maybe the spending time outside is more related to it as this article says; I work almost exclusively outside. I abhor cold so I only spend my days in warm climes where I work outside behind my computer/phone/tablet/... for the entire day. When I have meetings, I try to get people to meet outside, which usually works (most people like this far more than staying inside, even if it's chilly, but not with freeze/rain/snow of course).
> you're the non-native speaker who learnt the hard way

Well, even native speakers need to learn it the hard way as a child! As far as I'm concerned, I really struggled with French spelling when I was younger ;).

> Like all those silent h's from having printed the first English bibles in Holland. Ghost, aghast etc.

That's a really cool story. Thanks!
There are variants with fewer pieces like Hexapawn:

https://en.wikipedia.org/wiki/Hexapawn
The US system is such a mess.

It's supposed to be a free market, and yet the middlemen and the doctors are arguing about who should set the prices. Guys, this is not how capitalism is supposed to work. Imagine this model in any other sector - it would be illegal and also a total joke.

How about scrapping insurance, scrapping medical licensing, clearly advertising prices at doctors' offices and requiring patients' signed consent for any costs incurred? That's what an actual free market solution looks like. It wouldn't be perfect but it would be a damn site better than what you have currently.
I think there is a lot of disagreement about what 'learning' means and how long it takes. I while back I got curious about Elixir. So I downloaded it, skimmed the documentation, worked through a couple of tutorials and wrote a couple of trivial things. Took me half a day. I now feel I have a pretty good feel for what Elixir is and what its strong points are. Absolutely doesn't feel like a waste of time, even if I never write another line of Elixir in my life.
By the way, sorry for sounding harsh. You've done a good job.

For lowering the costs of running, there are tonnes of pretty cheap options out there. I personally quite enjoy running my C1 instance at Scaleway [1], I get dedicated hardware, 4 ARM cores, 2GB RAM, 50GB SSD (with the option of additional storage) and 200Mb/s external network.

The benefit of the C1 solution is that I can have it screaming 24/7 (mine instance really is) and the price is fixed. If you buy yourself a Raspberry Pi, you can do testing at home and then deploy your solution to the cloud with relative confidence.

[1] https://www.scaleway.com/en/bare-metal-instances/
Creating GUI Application in Python
I'm not saying quotas and affirmative action are the way to go, but it should be pointed out that women are still heavily outnumbered in the tech industry and STEM education. My personal view is that I'm not sure it's actually an issue that needs to (or can) be fixed, I think we should let people do what they want to do. Turns out that means bigger gender differences in career choice.
I think it does show it, to me the left side is noticeably brighter than the right side.
You were rude I would like you not to interact with me any more, it's that simple.
Shouldn't there be a photon ring no matter what? Accretion disk or not? Wouldn't all light in the universe get collected into a photo ring?
Falcon Heavy managed 27 rocket engines just fine, so the N1 problems has been solved. In fact I don’t think multiple rocket engines ever was a problem with the N1. Its problems were quite different.

SpaceX is able to shut down failing engines quickly, as has been demonstrated so multiple engines don’t present added risk.

Vibrations from multiple engines is something they are able to model much easier with computer simulations today.
But selection usually happens way before that. Probably at latest in middle school.
Nah it's great fun
New Uber
I love doing something similar with my small kids (4 and 2). I start laughing for no reason and when they see me laughing they start laughing. We laugh and have good time without any reason until we get tired. I also remember seeing some festival in India on TV. Everyone is laughing and having good time, for no reason.
GoDaddy let someone unlock the account by knowing the last 4 numbers of their CC and allowed the hacker to just guess the other two (you need to know 6)
Yep bending of light and warping is hard to visualize.
Thankfully we can play with our own black hole at home.
I took my crystal ball cut some cardboard into a ring.

If you look, you can see both side of the ring behind the black hole :

https://gistnoesis.github.io/blackhole.jpg

You just need to imagine a little stronger warping.
>Loli/shota porn mainly
Consider my interest in the site nullified and your morals ridiculed.
I find they're rarely good, but I can see that having them live alongside code is good sometimes (as you say) but not so great when it needs to be changed independent of the code around it and you have a load 'fix markdown rendering' or 'fix typo' commits.
Why stick to chess? Magic: the Gathering is a game that is played with cards with printed rules text that describes how a card should be played. The set of cards is constantly updated with a few hundred new cards introduced at least twice a year (although games are often played with only a subset of all cards).

Despite the constant change of the card pool, and also the wording of the rules text on the cards, and the rules themselves, human players are perfectly capable of "picking up a card they've never seen before and playing it" correctly.

https://en.wikipedia.org/wiki/Magic:_The_Gathering
Also of note - we don't have an extensive history of human resting pulse & respiration over generational time (primarily because modern medicine isn't old enough)
why aren't we trying to fix the abnormal amount of women in nursing? why aren't there male only positions for nurses?
I think this is a very important concept that needs to be better understood. As others have posted in this thread, I tend to work better - at least on certain tasks, when sitting in a busy cafe vs. at home where it's quiet. It's made me realize that certain people may have an optimal minimal amount of stimulus required, otherwise leading to restlessness - boredom. It would make sense that a system, body and mind, designed or optimized for a higher level of sensory input - when active and not sleeping - wouldn't just be able to "rev down" quickly, which perhaps would be more akin to a depressed state - or suppression/repression of where someone's systems naturally want to them to efficiency wise for the amount of stimulus they can process. A quiet classroom may be a terrible environment for some people to learn - yet is common practice for most school systems.
I always loved the classic PRobots and later CRobots, its a great way to learn programming.
there should be a some kind of spirit of the law wording in addition i think.
letter of the law solutions like this are outrageous
IMO we should not have a multi-dozens-KLOC library for something that should be almost invisible. And I don't think that being invisible is the purpose of this library.

I would just specify your case as a data item:

ARRAY_ITEM("foo", foo, INT, 3)

And that's really all, specification-wise. Here ARRAY_ITEM is a simple macro that calculates the offset of the array within the struct (need to give the struct a name!), so that results maybe in { .srcfield="foo", .typekind=TYPE_ARRAY, .arraylength=3, .basetype=INT, offset=offsetof(MyStruct, foo) } or something like that. One can compute the length of the C array at compile time and verify that the lengths match, so there will be absolutely no danger of making a wrong data item.

The corresponding code that handles the data items of kind ARRAY_ITEM would be something like this:

case TYPE_ARRAY: {
char *store = add_offset(&myStruct, spec->offset);
int elemSize = typeKindToElementSize[spec->typekind];
JsonArray *jsonArray = get_json_array(jsonObject, spec->srcfield);
for (int i = 0; i < spec->arraylength; i++) {
JsonValue *jsonValue = get_json_array_element(jsonArray, i);
/* This makes sure the dynamic type of jsonValue matches, then
does the appropriate conversion and stores the thing. We also
want to check errors, either now or at the end. */
store_json_value(jsonValue, spec->basetype, store + (i * elemSize));
}
}

You'll need <10, maybe 5, of these cases, and basically it's all code that you will test once and then it just works without surprises. This is less than a day of work initially, will have very low maintenance, will work exactly with the type representations you choose and be easy to change. The other aspect is you're now free from a library that you don't understand, will give you Modern C++ headaches, and will be slow to compile.

I'm likely to write a new version of this for every new project, to avoid dependencies and to allow for change.
As I recall, the US strategic oil reserve was tapped by Clinton, Bush, and Obama and various times, specifically to support normal economic activities.
I don't think there is anything wrong with gender difference in subjects. Psychology for example is 95% women. Some professions are naturally more interesting for men other for women. Don't see why policy is trying to fore women into tech
Confused on who this is for. Landing page says consumers. Opening statement in this thread says B2B/

I'm a consumer who wants to open up one app to send money (in the USA) via either PayPal, Chase/Zelle, or Venmo -- is this for me? If so genuinely curious.
we should encourage this
Bullying and punching of any kind, by any person or group, is unacceptable and not to be tolerated.
It might look like satire, but that’s how it looked in 1997 (as late as 2005 or so, maybe even later).

HTML in the wild was a mess, and required a lot of error recovery and empirical quirks. Browser vendors were all on board with the idea of rebooting it as well defined XHTML which has XML structure and HTML semantics. There was quite a bit of work towards that goal.

But the actual content creators did not care, and vendors relented. HTML in the wild is not quite as bad as it was and is much more easily parseable as well.
Show HN: Idea Growr App for iOS Live (React Native)
> It is crazy to me that the node community just totally disregards all of the best practices learned by the Linux distros in favor of practices that are lazy and unambiguously dangerous.

"Move fast and break things."

The whole Javascript ecosystem depends on high churn rapid adoption of "new" technologies. Stopping to check things would slow this down. Higher-QA technologies get outcompeted by lower-QA technologies.
Twitter exec for Middle East is also part-time British army 'psyops' officer
Show HN: Free Bootstrap Template of One Column Listing
I'll take a shot.

The subtitle of the essay is "Doing Words with Things", which is a reversal of the famous essay of John L. Austin "Doing Things with Words". Austin pointed out that words have practical effects. Consider the speech act 'I do', when two partners marry: it are the words that have a specific effect in real life.

Now Latour claims that we -- philosophers, sociologists, but others as well -- have to pay attention to the effects material objects have on people interacting with them. He claims that a specific way of acting can be inscribed in an artifact.

So the key is an example of this: you can only take your key out, if you lock the door behind you. Rather than having a message next to the door saying "Please lock the door behind you", this type of behaviour is enforced through the artifact itself.

So social mores or norms can be inscribed in and enacted through material objects (and not just through words).

At least that's an ELI5 version of what the essay intends to convey.
> Feature suggestions for the products end up in multi-year-old tickets that one has no way to influence.

One such 'feature request' is 'unsubscribe from email':
https://community.atlassian.com/t5/Jira-questions/How-can-us...

Mental.

I have a rule to send it all to spam.
> the surface taken by scrollbars is not removed from the viewport?

Yes.

Which means that if your element's width is 100vw and the page height is larger than the viewport height so that it shows a vertical scrollbar, then suddenly you get a horizontal scrollbar as well.

People who build sites on Macs make this mistake all the time, because on MacOS browsers hide their scrollbars by default, and developers do not immediately see the consequences of this CSS rule. When you view these pages on Linux or Windows machines (or if you tell MacOS not to hide scrollbars), then you see the annoying horizontal scrollbar.
Yes you can get Lasik.
What evidence do you have that this sort of thing is not occurring nowadays?
In germany it even happens before. parenting has a real impact on any child. it starts with the color of their cloths. some people really live the old way and belive and tell their boys that boys don't cry and they don't wear certain colors, etc. while girls need to behave girly wear nice looking cloths, etc. and then when it comes to homework they try to push their childs in certain directions. or tell/force their childs their dream.
> We strongly urge all journalists, activists, and politicians to upgrade to an iPhone that was released in the past two years with an A12 or higher CPU.

This makes no sense. The data of these VIPs is not in (more) danger due to this new jailbreak appearing. It sounds like a cheap trick to make people buy new phones.
Right, even a Cub with its flat-bottomed USA-35B will fly inverted, but in terms of angle-of-attack you would have no room for error, and the gravity-fed fuel system is going to cause you some problems too.
Maybe her friendship with her coworkers motivated her to do her best to leave things in a semi-workable state for the team. It could be that she was uniquely capable in her role, which is why she felt responsible for completing certain work that would lead others to struggle even more. Capability as well as the attitude that accompanies it may explain why her pay doubled at the new job. For several people I know and myself, this seems to be the most prominent reason for staying past the committed time. Twelve hours after closing time is extreme, though.
You can still learn the latest technologies so that you know what's potentially coming down the pipeline, while using the best mature tools for your bread and butter day to day work.
He might’ve been an influential figure, but he’s still a creep. Just because someone made something once doesn’t mean we should turn a blind eye towards them.
DMARC solves part of the problem. There are many attack vectors when it comes to email. For a more sophisticated con it is usually much easier to register a domain that looks like the victim domain.

However, the real problem (as what happened with SPF) is that many email services have really, really poor implementation of the RFCs. Most make it impossible to even reach DMARC alignment. If just one of the mail services you use does not meet DMARC requirements, you can't enable DMARC for your domain. The result is that DMARC implementers (the receivers) still need to take DMARC alignment with a grain of salt, and may still pass email even if it does not align.

The biggest part of internet users don't care about security, they just want their email to reach the destination. As long as large email services don't follow the RFCs (expensive 'enterprise' email software vendors are the worst offenders), the receivers cannot implement any kind of strict checking.
Quite disappointing. Optus, another Australian carrier, only very recently reversed their similar blocks on a number of archival sites among others. When all players are equally bad, there are very few options available to ‘vote with your wallet’ per se. For what it’s worth I raised a number of support tickets requesting these be unblocked, but like most large firms I’m sure these simply fell into the ether.
> (I quite often contribute to projects by editing the code directly through the GitHub website)

Whenever I do that I get as far as the commit message and, lacking vi and a 72 char marker, commit 'wip', pull down the changes, amend the commit, and wish I'd done the whole thing locally faster and more easily in the first place.
This. I find it all confusing.

Article A: Here’s a photo of a another galaxy so far away, showing XYZ.

Article B: We suspect there’s another planet in our own solar system but we can’t find it and supposedly it’s too far away for us to photograph it.
> Mr. Chang, the company’s chief executive, said in a 2012 interview that the chain was named Forever 21 because it targeted 20-somethings and because “old people wanted to be 21 again, and young people wanted to be 21 forever.”

I like how he felt like he needed to explain that one.