skysight-inc/HackerNews huggingface dataset:
Hi, I'm a Redux maintainer. I personally would recommend _against_ using Immutable.js, for a number of reasons [0].

Instead, I highly recommend the Immer library [1], which lets you do immutable updates with "mutating" logic in callbacks.

Even better, try out our new Redux Starter Kit package. It uses Immer internally to let you simplify immutable updates in your reducers [2].

[0] https://www.reddit.com/r/javascript/comments/4rcqpx/dan_abra...

[1] https://github.com/immerjs/immer

[2] https://redux-starter-kit.js.org/
>At London trainstations, police asks you to notify them if you're a train spotter

Isn't this solved fairly easily?

"Whatcha upto mate?"

"Photographing the trains. I like trains"

"Oh one of those. Off I go!"

I don't know how that interaction would go in the UK, but I think in the states it would start fairly aggressively (demanding ID/barking orders), which in turn makes people who like to photograph infrastructure for artistic reasons dig their heels in, say they have a right to photograph in public, and refuse additional questions.
I remember similar answer was given from a bunch of corrupted employees after the Greek state found that their anti-corruption algorithms (written in Python btw) stopped reporting for incidents. In the end, after the inspection from major supervisors found that those guys working at the post over there "accidentally disabled" the reporting service and blamed the software.
A Windows UI framework that's modern and performant (so not WPF), at least somewhat competitive in flexibility and expressiveness and tooling with HTML/CSS (not WPF or UWP), and does not have a sandbox or mobile-style process lifecycle chained to its ankle (so not UWP).

I'd throw xplat in there, but I think I'm already asking for too much.
> doing your own service but building it open source and as a open platform

Why would they ever do this? Practically nothing they do is Open Source.
Raising Kratos
And so...wouldn't the first thing that someone with malicious intent would do be to tell the police "I'm totally a trainspotter"?
Dupe: https://news.ycombinator.com/item?id=19989684
I remember Schmidhuber showing off "artificial curiosity" stuff a while back (e.g. http://people.idsia.ch/~juergen/interest.html ). In particular, ideas like "compression progress" have been influential on my own research about how to measure what's "interesting", and I've implemented a rudimentary version of PowerPlay (and a slight alternative) at http://chriswarbo.net/projects/powerplay

(He's since applied these ideas to art, humour, etc. which I think is a nice thought, but not worth taking particularly seriously)
I'm one of those who doesn't pay any attention to those EV cards at all. I know I probably should, just out of completeness, but I don't. In fact, with Firefox anyway, that spot where the EV indicator goes is used for enough weird little things that I've sorta developed a blindness to anything that appears there (I'm not saying that's a good thing!)

However, if I'm going to a site that really matters, I'm not clicking on some link on a web page or email somewhere. I'm using the link I've bookmarked. So, ignoring the EV cert is probably not putting me at too much risk.
I don't think they'll remove emergency brakes. I think they'll beef up CCTV and enhance patrols so they can respond quickly next time it happens.
More relevantly, swapping pages to flash storage would kill the flash storage itself. (Flash memory has terrible write endurance, and what endurance it has relies on obscure GC algorithms that would interact quite terribly with a "swap file"-like pattern!) Performance isn't actually a huge concern until you start swapping out your working set (i.e. actively threshing); even swapping to spinning rust, which has terrible performance, is better than having no swap at all!

Edit: You could still swap out to "external", modular storage like an SD card, since killing that would be no big deal - just treat it as disposable. But no SD card slot on iPhones :-P
Exactly this. The "purity" of OSS development needs to be reflected in the "purity" of donations for this to work. Small donations should represent nothing more than a token of appreciation. Large donations, well... money shouldn't buy project influence, though that is easier said. It's a complicated matter of corporate sponsored engineers contributing both good and bad (influence wise) patches back to OSS, but people need to make a living somehow.
I assume you can't just do that since GitHub might offer to give donors regular activity updates.
I have literally listened to a senior VP laugh about a candidate after the interviews were done, during the hire/no hire discussion, for wearing a suit to an interview, and ultimately we turned the candidate down.

In that specific case the candidate might not have been hired, anyway, they were pretty marginal. But it is 100% a real thing that Bay Area tech people will ding you for wearing a suit to an interview.
It’s become dogmatic in Java to automatically create getters and setters for every single private variable in the class - include mutable objects like Lists and Maps (so a reference from a getter can actually change the referenced object). I’ve pointed out more than once that these getters and setters - usually auto-generated by an IDE or an XML compiler - serve absolutely no purpose and you might as well just cut out the middle man and mark the variables public at that point. Nothing makes a Java “architect” recoil in horror at the suggestion of just admitting that you’re not actually doing object-oriented programming and make the variables in your de-facto “struct” public, so I’ve given up arguing with them and I shrug my shoulders and create reams of pointless “getters” and “setters” now.
The funny thing is that these things may still have been the best solution for the problem within the available time. I have created some things that in hindsight were horrific but at the time they were the best that could be done.
Hey Vlad, I'm a co-founder of DevFlight (YC W'19). We're working on a solution to this problem and I'd love to talk to you. Email is in my profile if you're interested.
In the United States the management layer doesn't have a clue so if you don't keep up on React, GraphQL, etc etc - you're seen as a curmudgeon.

They're not the ones learning it but they're still attending all of the conferences for it and with a non-practiced engineering capability they're back to cargo cult BS.

Best to keep learning the new hotness or it's career suicide. Just remember, for almost any 9-5 it's about the _narrative_ of work more than it is about the work. Rewriting/changing huge portions of your already-working tech stack is job security. I truly believe a huge portion of engineers engage in their own "make-work" to justify their existence/paycheck.
"A Christmas Carol" by Charles Dickens.
A "private home page accessible to only those who have the address" is a public page.

That's not a private note, and I'd be livid if somebody was posting my contact and medical details online. I see no problem with this ruling, nor do I see it as evidence contrary to the idea that one may keep private notes.
No it is not! Google requires each individual website to gather consent affirmative for personalized ads before Google will provide personalized ads. There was big issue over if Google would effectively force everyone to use it's solution as it would be the only way Google could be 100% sure the publisher isn't cheating. In the end Google allowed publishers to use whatever method they want.
Sure, but my point here isn't about presence, but quantity. We've known that radiation can cause the creation of bio-molecules and precursor molecules for a very long time. But there almost no way that process can generate a significant enough quantity of these molecules to really seed planets. Largely its about concentration gradients, which is why I personal have found arguments about life forming via early oceans unconvincing. A couple asteroids (or even hundreds) worth of bio-molecules spread out over an ocean, is still basically nothing. You have to have enough material concentrated in a small enough space; you need a thermodynamic process that postpones equilibrium; then you need a gradient to drive the formation of more and more complicated molecules.

Like, Pluto type objects are far and away more common then earthlike objects. If there is a process that can accumulate bio-molecules in mass on these types of bodies, that's pretty game changing.
The whole "not being armed" thing reduces a lot of tension IMHO.
Trade crypto while you sleep with our smart assistant
Very often the reason we don't die from these things is because we take precaution. Imagine we had done nothing against ebola or aids, we'd have millions of deaths by now. (In the case of aids, not all places were so lucky [0].)

Same for the ozone hole, or dying trees from acid rain. When the source of the problem is identified, we can fix it, and that's the case for greenhouse-gas-caused climate change.

[0] https://en.wikipedia.org/wiki/Aids#Economic_impact
> no one else could do the trick.

Haha lol.

Happy downvoting, cunts! I accept it, it's worth it.
To me 3 hours isnt enough, i need at least an hour to warm up before jumping into the zone. Im thinking what would work out for me: 4 hour work days with the ability to squeeze 2 days in one and being able to do 2.5 days of 8 hours a week, no more no less. I’d be as productive as I am now, maybe even more. During the time off I’d still have work ideas popping up in my mind while doing things like being with family, playing with my kid, etc.. Currently thats what i do in terms of productivity but the dead time is spent sitting in a chair in an office 1.5 hour away from home.
Credit Processing fees pay the bank/processing fees charged to Github. The Patreon “cut” pays processing fees but it also pays for Patreon’s electric bill, employee salaries, rent, profit.

Github already has the bills paid by paid GitHub accounts. So adding this is simply another feature and the only new real cost to this feature is credit card processing fees. If there are other costs (extra employees, etc.,) that could be counted as a marketing expense.
GitLab actually has an open source SCM platform and developers have always been free to put links to their favorite sponsorship platforms in the readme, wiki or on their GitLab Pages site built using their favorite generators. Your move GitHub.
I think in most cases the tradeoff of re-initializing app state, or forcing developers to cache state to disk manually is better than forcing the poor phone's disk to constantly swap and having developers be lazy and consume a ton of RAM.
You can't expect logic from people all the time. Why both making it restricted area if they can have some schmuck in a SUV pull up every time someone enters?
I don't know how everyone else uses patreon, but I don't even look at the garbage people post on their patreon. I'm subscribed literally only to support the work they are actually doing. Not their progress updates.
did you have to take pay cut?
I use 28 gallons of fuel in a week. Not going to be super concerned with my cremation.
Typically (I don't know about in Javascript in particular), a vector has both a length and a capacity. The capacity represents total allocated space (always >= the length). If excess capacity is available when you append, that gets used rather than having to copy the array. The capacity grows exponentially (powers of 2 or 1.5 or something). This means that if you take an empty vector and append N elements one at a time, it does O(N) total copying of existing values rather than O(N^2). Another way to put it is that a single append is amortized constant time.

Here's a stackoverflow answer which talks a bit more about this: https://cs.stackexchange.com/a/9382
Middesk (YC W19) True Industry API – Understand What a Business Does
Thanks for sharing this, I literally just set this up last week and was thinking: 1. why are there so many steps and 2. why isn't there a one liner to do this. Will be using this next time :)
This isn't my area of expertise. What are some of the other MS frameworks or OSS projects you refer to?
When a Fatal Grizzly Mauling Goes Viral
Ask HN: What software does every company write themselves?
Before Stripe every company had to hack together their own payment gateway. Before PagerDuty every company had to hack together their own incident response system.

What problems like these exist today?
Cool initiative! Once in a while I find myself pondering this question, kind of like I ponder the nature of the universe, in the sense that I know my answer will always be wrong. :)

Seriously though, I have absolutely no idea about this stuff, so much so that I can't even answer the four questions that this website asks me. One might think this financially irresponsible, but I've learned from both HN discussions, and the empathically painful experience watching others in past companies thinking they were going to get rich in an exit, just to see all the money vanish to already-rich outside investors. That is, I've learned to just negotiate a good salary/bonus/work-life-balance and treat the shares as a mystery box that will probably never be opened, or at most have some trinkets inside when it is opened.

That said, I think it would be cool if your website could help guide me on how to answer the four questions you pose. Like what forms to look at, maybe who to email in the company (and how) to get some of this info, how to estimate what the company will sell for, stuff like that.

Another way to look at this, is that anyone who could answer these four questions can probably already estimate their take-home themselves. So perhaps target this more at completely clueless people like myself.

Anyway I hope that's helpful. I definitely want there to be more tools like this out there.
I picked up a Casio W800-H (similar to F-91W) about a year ago and I'm really loving it. It's holding up pretty well despite regular abuse at the gym and while working on my cars.

While I'm hoping to get a couple of years out of it, at <$20 it's great for a daily driver!
Visual bugs in software can cost hundreds of thousands of dollars a year
The UK currently has larger complaint numbers than France or Germany [1] at around 6,000-16,000 each which is weird, but it does show that many people are taking individual privacy rights seriously

[1] https://kyso.io/eoin/gdpr-complaints-for-various-eu-countrie...
I am wondering how long this will last and at what point they will prohibit repo owners from using alternative funding methods like bounty source or bitcoin.
No, it gives the owners of the team/org the ability to distribute funds as they wish. There should be no friction.
Precisely because Airbus was an early adopter of fly-by-wire systems and envelope protections.
A comprehensive breakdown on digital collectibles
It really does depend on the implementation. Only the logical address space needs to be contiguous, not the underlying physical memory. A clever enough implementation could work hand-in-hand with a clever enough allocator, so that realloc would just add new logical pages to the end of the underlying buffer when it’s time to double its size without having to copy anything.
Could you imagine getting audited and your boss finding out you donated $xxxx dollars in donated patronage to others? I would not want to be the one in that room...
Ironically it's probably good to have these folks around. If someone breached the perimeter, they might be the ones to raise the alarm - you can't patrol the entire fence.

I knew people who did urban exploration in undergrad, and there were a few times they picked up a payphone to alert about things like water leaks, termites, or when they once ran into someone they suspected was burgling.

Smart institutions know that respecting harmless folks can pay dividends.
To me what the author is getting at relates to "All the world’s a stage, and all the men and women merely players", or the movie American Psycho.
> The problem is that entrenched corporations more or less own governments, so they get the laws that work for them.

So what are you proposing to do about it?

Notice also that the corporations in this case are the fossil fuel companies, not the data center companies. To Amazon a marginal increase (if that) in energy costs to use solar is just something they get to mark up and pass on to the customer, as long as their competitors have to do the same thing. To oil and coal companies an effective carbon tax is ultimately the end of their business and they'll use every dirty trick in the book to try to prevent that.

So how do you get a much-needed carbon tax when it would cost oil and coal companies literally trillions of dollars and they'll fight that hard to prevent it? What's your proposal?
Swiss men have some of the worst sperm in Europe
Accident: Westjet B738 at Orlando on May 18th 2019, laser injures pilot
WSL is absolutely terrible and can't be taken seriously.
Well, I am at least. I care about when things like this happen, including figuring out how we can do better.
>The most super energy dense substances are usually used to make bombs,

By volume or per mass high explosives usually don't have much energy density compared to things like liquid fuels (ie, gasoline) or even solid fuels. This holds true for all high explosives (substances used to make bombs). They're all pretty low energy density. They're just high power because of the low time to release the energy.
Probably insane, but if we were sane we wouldn’t be programmers, would we? ; ) I actually sometimes develop Java apps entirely on the command line using only shell scripts (no maven or gradle), so I have to download all the dependencies and resolve all the transitive dependencies myself. It’s a bit time consuming, but I end up discovering a lot of intricacies of some of the libraries I work with that I would never have come across otherwise. You can even debug using jdb, although at times System.out.println is less painful.
My interest in doing this (my wife would kill me anyway) kind of evaporated when in almost every paragraph he hit on licensing issues you might have. What a headache for someone who just wants to tinker on the hardware and maybe buy a few parts off ebay for the full experience. I have no doubt software updates, documentation, and everything is locked behind some portal that requires you to have a stupidly expensive support contract to access.
Tory cuts have massively increased poverty and is currently causing a spike in prostitution due to delayed benefits payments. knife crime is at all-time high due to theresa may's cuts to police force
True, but using visual inspection of the URL is problematic too: Do you mean to be at apple.com or аpple.com ?

www.xudongz.com/blog/2017/idn-phishing/
Thank you! I don't have exact figures handy but short answer no, not at this scale at least. Manufacturing, design, materials, safety etc. all easily runs in the tens of thousands of dollars. We are on a much tighter budget, but AFAIK USC has spent hundreds of thousands of dollars on a single launch.
Actually you're mistaken. Initial Apple II's had poor cooling due to Steve Jobs' opposition to vents on aesthetic grounds. A few months later the case was revised, but the lesson didn't sink in, as evidenced by the infamous Apple III.

> The first production Apple IIs had hand-molded cases; these had visible bubbles and other lumps in them from the imperfect plastic molding process, which was soon switched to machine molding. In addition, the initial case design had no vent openings, causing high heat buildup from the PCB and resulting in the plastic softening and sagging. Apple added vent holes to the case within three months of production; customers with the original case could have them replaced at no charge.
>Shady people do wear hoodies. Sometimes non-shady people do, too.

Hoodies in the UK are more of a class signifier than the US. Some people use them to hide from CCTV (usually young, poor people).

Interestingly I learned this stereotype when I went to go into pub, got told no hoodies, asked why, and then was told oh never mind when they heard my American accent.
The whole concept of giving away matching funds is for publicity.
Your device may be low on storage. I've done what you've described, and come back hours later with the app still in the same state, even with video.
Oh. D'oh.
Operating systems have been serializing arbitrary application memory to disk for decades. Virtual memory makes it trivial. You swap a whole page out to disk, and mark the page “not present” in the page table. When the app tries to access that page, you get a page fault. The kernel handles the page fault by copying the page back to memory (at an arbitrary page-aligned location in physical memory) and updating the page table to point to that location. You never need to serialize the browser data structures.
Interesting, I didn't get that sense at all from the book. It did not strike me as 'neo-primitivist' at all. Much more as a critique from the structural perspective [0].

And I'm not so sure saying that it wasn't anthropology is fair. It is definitely different. One historical, the other modern - both valid anthropological pursuits.

I would agree with you on efficiency though. Though I think the bullshit jobs described in the book are more akin to turning the rocket upside down and expecting it to leave orbit. Certain non-profits and industries are not even pointed in the right direction. Graeber asserts that this is intentional as a way to siphon funds.

[0]: https://en.wikipedia.org/wiki/Structural_Marxism
So, I think it does win in a few areas...

Like one sibling comment mentioned, getting support from AWS is nice. You can buy Terraform support, too, but knowing HashiCorp it'd probably cost more than most peoples' AWS bills in their entirety. (This is me being a little cheeky and unfair—HashiCorp handles community support via GitHub Issues for Terraform really well.)

CloudFormation's built straight into AWS, so there's no need to set up state file storage or locking or worry about a state file at all, really. This has its own set of drawbacks, but it's nice for getting started, and in theory it makes CloudFormation more robust out-of-the-box.

CloudFormation StackSets are really nice if you have identical resources that need to be placed in many different regions and accounts. (Example: we use it to place GuardDuty and Config, both regional services, in every region.) With Terraform, this means copy-and-paste, as far as I know, though maybe Terraform 0.12 sets up the groundwork to make this better?

The Service Catalog is basically a way to let technical end-users manage products via CloudFormation templates. Something could be built to do the same for Terraform, but I don't think there is anything like that right now.

CloudFormation does (attempt to) roll back to a known-good state if an update fails. Terraform just stops in the middle of what it was doing. I have mixed feelings about that.

I find YAML to have better tooling/editor support than HCL, though I actually prefer HCL.

There are existing CloudFormation wrappers (e.g. Troposphere) that can give you a full programming language on top of CloudFormation. To my knowledge, there isn't anything similar for Terraform.

Some things that have changed with 0.12:

CloudFormation has had `AWS::NoValue` for as long as I can remember. Terraform <=0.11 had special values (like empty string, number zero, etc.) that were special-cased as no value. Terraform 0.12 now has `null` properly.

Terraform <=0.11's ternary operators were maddening because both sides were evaluated, which led to errors, unlike CloudFormation's !If. In Terraform 0.12, the ternary only evaluates one side.
You're saying the deaths were from incompetence in ruling, not deliberate murders.

There was plenty of that, but it's not the dominant factor: https://www.heritage.org/asia/commentary/the-legacy-mao-zedo...
Accident applies because of injury to persons, if it were a gear up landing it'd be a 'serious incident'.
https://pilot-protection-services.aopa.org/news/2016/may/04/...