skysight-inc/HackerNews huggingface dataset:
> Anyway don't over-simplify this use case and believe "a single big SQL ACID transaction would handle the problem". That's just not true.

> In the web age, you want stateless services and HA. It means a transaction can't last more than a single web page. It becomes more challenging to design a shopping cart, because the DB can't handle a long-running transaction anymore.

Or you could cheat and not update the inventory until the purchase is made. ;)

The problem with the "adjust inventory on cart" in low inventory situations is you'll have 80% of your carts holding items that won't convert until a cart expiration. You only need the actual purchase to be atomic. Then, once the queued credit card transaction completes you adjust the order to refund the inventory [declined] or ship the order [completed].

That pattern absolves you of needing complex logic and allows you to distribute the activity relatively trivially as a set of two independent idempotent operations. And if the analog portion of the process fails, the picker hits a button and the order gets queued for a refund. Once the order is cancelled, another service contacts the customer.

Cart expiration, etc. makes the system unnaturally brittle by adding non-critical steps to the process.
Haha, and even that is putting it lightly ;)

I've had some friends volunteer to help but they never seem to pan out so perhaps it's time I got a professional :)
"Transactions are never needed with a fully normalized model": I just don't agree. Fully normalized most likely means many tables for everything, and transactions are needed to maintain consistency.

"you denormalized your model because your db engine's performance sucks": you're most likely to denormalize because joins are costly no matter what DB you're using.

"the transactions will probably just make it worse": denormalization is most often used to reduce the number of operations (so transactions are unlikely to make things worse).

I agree about the amount of garbage in the article though.
I found https://www.oo-software.com/shutup10 to be really effective.
Easy way to detect where the C++11/C++14 features are used in a C++ project
Speech acts: Constative and performative
Yes, but I prefer MSYS2 these days. It's a lot like Cygwin, but uses pacman as a package manager instead of Cygwin's setup.exe.
Only we didn't speak specifically about such talk here.

The parent said "There's some value in being able to talk bluntly with other men. And I'm not sure it's much worse than what I observed groups of women talking about".

And this was immediately taken to mean "aggressive sexual comment".
The secret lives of Spotify playlists
I have been using Frink for over 7 years. Aside from a calculator with a gazillion units, Frink lets you program in a less verbose Java for other tasks. Graphics are easy too. I write small apps for calculations I often need at work with GUIs and input prompts.
What makes Insect different? Can you program apps in it?
Did you buy the new AltCoin IOTA?
If not, why?
This boy takes pics of his dick and send it to girls
What are your thoughts on conda instead of virtualenv?
It seems to me that you've just proved my point by openly stating that you expect male victims to enjoy it, but perhaps I misunderstood what you intended to imply with the link to that video.
But that's precisely the problem. This article even calls it "Windows 10 without the cruft", and there's this misinformed view everywhere that you can "strip down" and accordingly "make faster" Windows by using the LTSB. And before you know it, everyone wants to.

There are forum threads with people buying home desktops and being upset that they didn't get LTSB because "Cortana uses RAM I want for gaming".

LTSB is a victim of poor marketing. It should be called "kiosk edition" or something to make some of these things really clear to people.
An authentic redemption narrative would be a far more positive second act, in my completely and totally unqualified opinion.

From my perspective: everything anyone could have to say about Uber's former culture is completely and totally accurate; but I highly encourage people to place it in the context of the awful zeitgeist of the late 200X's/early 201Xs (Bottles & Models, Entourage, RON PAUL LOVEREVOLUTION, Jersey Shore, 'Party like Rock Stars, F* like P* Stars! Live the dream cuz nightmarez aint real BRO!!!!', etc.) Truly repulsive and reprehensible mindsets and behavior, but that was then and this is now.

From my sustained observations... a disgraceful amount of very intelligent young men were unfortunately under-mentored and deeply misguided by popular culture and clueless leaders. I'm not sure if Travis fits that bill, but it goes without saying that him and his ilk swooped in to perpetuate an abominable worldview and encourage toxic behavior. Those were his sins, but going forward I'm going to give him the benefit of the doubt.

These are the times that will try his soul, and I have complete and total faith in his redemption considering the trauma he has experienced from the freak accident that killed his mother, wounded his father, and his recent ouster. Feel free to research Post-traumatic growth [0], the Holmes and Rahe Stress Scale [1], and/or reply if you'd like more information.

After careful consideration of his blogs, tweets, and posts dating back a decade I can only say this: Travis is an intensely scrappy maverick. Fortunately, he has recetnt;y achieved a level of self-awareness and demonstrated a level of empathy that indicates he is on a path to sustaining a healthy organization and truly redeeming himself. I encourage everyone to put their pitchforks and torches away, clean the slate, and start fresh so long as any victims of that culture are made whole.

[0] https://en.wikipedia.org/wiki/Posttraumatic_growth

[1] https://en.wikipedia.org/wiki/Holmes_and_Rahe_stress_scale
It depends on how much engineering decisions you have to make!!!
I recall reading at one point that apps written in Swift statically bundle the entire set of libraries, whereas Objective C apps use shared libraries from the operating system. Something about Swift not having yet reached the level of maturity to warrant the use of stable shared libs. If and when Swift switches to supporting shared libs, app sizes should shrink.
Define "anyone".

Apparently Harman-Kardon:
http://www.semiwiki.com/forum/content/4947-4-design-tips-avb...
Have other BackBlaze users reported similar amounts of metadata? That's enormous.
Well, normally I'd say you _should_ start with the Redux docs and Dan's videos on Egghead, both of which try to teach Redux from first principles. The front page of my links list also has a "best-of / getting started" selection of articles on key Redux concepts like "side effects" and "normalization".

I'm very curious - what issues and concerns do you have with Redux's documentation? Any specific pain points or topics that are missing? A large part of my contributions to Redux thus far have been adding sections to the docs (the Redux FAQ and the "Structuring Reducers" section), so if you've got suggestions on how the docs can be improved, I'm always looking for ideas.

I'm not entirely sure what articles to recommend past that, because I'm not sure what topics you've picked up thus far and what info you need next. If you'd like to see some examples of Redux being used to build an actual app, you might want to check out the "Building a Simple CRUD App with React and Redux" series [0], and my own "Practical Redux" tutorial series [1]. I've also got an "Intro to React and Redux" slideset as well [2].

I'd also definitely like to invite you to drop by the Reactiflux chat channels on Discord [3]. Feel free to ping me there and we can figure out what info would best help you continue learning Redux.

[0] http://www.thegreatcodeadventure.com/building-a-simple-crud-...

[1] http://blog.isquaredsoftware.com/series/practical-redux/

[2] http://blog.isquaredsoftware.com/2017/02/presentation-react-...

[3] https://www.reactiflux.com
In that case why backup what you can just re-download?
The article was pretty clear that the resulting toxin levels were not high enough to cause the problems seen in the skeletal remains.

It's an interesting theory, and I am glad they pursued it. But it appears to be a null result when attempting to explain their health decline.
Thinking off the top of my head I would say a conservative leadership which would allow a challenger to gain an upper hand and render Uber a flagging company. I think that scenario is possible if the management devote too much of their energy on overcorrecting internal matters.
The disagreement between the two of you is kind of paralleling an emerging debate over trends in mental health assessment research.

Right now, there are large grants (from the federal government) being dispersed to develop systems to basically scrape patients' social media info and smartphone data (including things like GPS, accelerometer data, etc.) to predict outcomes. There's other related research going on too.

Traditionally, assessment methods work more like an instrument: you introduce a stimulus and record a response. I don't think that's going to change, because of various advantages of that sort of data, but the utility of other types of data is being actively discussed. You have privacy issues like are being discussed here, but there are also practical issues like: what if your severely mentally ill patient doesn't have a Facebook account they use regularly? What if they don't even own a phone, or use it, which common?

Looking for patients on the web isn't uncommon. It's not really so much your depressed office manager, it's your patient who is being court-ordered for some service because they pulled a gun on their girlfriend and used the butt of it to knock their 2-year-old over. Imagine that they come in, and you're supposed to be monitoring their danger to self or others, and aren't willing to say much to you, and won't consent to have you contact a third party, or don't even have a third party to contact. If a situation arose where you could find something on Google, would you refrain from searching it? What about an online public government-run database? What about reddit? What about Facebook? Where do you draw the line? Should the courts be ordering that psychologists and psychiatrists be able to scrape your phone? Install an invasive monitoring app? What if you haven't been convicted yet? What if you aren't charged with anything, but have been deemed incompetent to make your own medical decisions?
Japan, Short on Babies, Reaches a Worrisome Milestone
Essential Scrum

Patterns of Enterprise Application Architecture

Growing Object Oriented Software, Guided By Tests
Classic theme, classic explorer, classic task manager, classic everything.

Just admit it, you want to use NT4.
There are two differences from GNU Units that I can see straightaway from the GitHub repo:

1. It's written in PureScript.

2. It's MIT licensed. (Actually I had to search the repo to find this - it would be nice if it had a LICENSE file at the top-level that GitHub could pick up.)

Anyway, IMO monocultures suck and competition is good. Kudos to the OP!
The example in the book is very simple - it can be implemented in SQL database with 2 tables (products and carts). When you have more entities and relations it would become too complex to keep all of them consistent in a denormalized scheme in MongoDB. You will have to write cron jobs that would cleanup broken references and still get errors.

So I wanted to say that denormalization and lack of foreign keys in MongoDB is much worse that lack of transactions.
Generations, disabled
This. Sometimes decentralized solutions are great, but most people don't want to become experts at the sanitary biological processing of human waste (especially inside their own home). For safety and efficiency reasons it makes sense to aggregate that at the community scale. Think of it like the local sewage treatment plant.

Actually it's better than a conventional sewage treatment plant, because

* it safely recycles fertility (interrupting the fecal-oral route, unlike "night soil"), providing a sustainable alternative to phosphorus mining and other fossil fertilizers

* it doesn't discharge fertilizer into waterways where it causes eutrophication and "dead zones"

* it produces biogas energy rather than being a large energy consumer

* it doesn't squander potable water to transport human waste, and

* it doesn't require a huge network of underground pipes, which have enormous embodied energy and replacement cost. If your city can't afford to replace the underground pipes, your water system is insecure and unsustainable for that reason alone.

Here's another large scale biogas digestor operation (this one's for food waste): https://www.nytimes.com/2017/02/15/magazine/the-compost-king...
You can design a token implemente on an Smart Contract to do rebasement like a Central Bank but in an automated fashion, no humans involved...
Graudit – grep-based rough source code auditing tool
In Pythonista for iOS:

import speech

speech.say('Hola mundo', 'es_ES')

In reverse, to record a sound for three seconds:

import sound

r = sound.Recorder('audio.m4a')
r.record(3) # seconds

To recognize it as text:

text = speech.recognize('audio.m4a', 'en')[0][0] # sent to Apple servers
I don't necessarily disagree that it's in a bubble, but this is hilariously wrong:

> But it looks like we may have already reached the point of maximum foolishness.

Bitcoin, or rather the market cap of cryptocurrencies will continue to grow on average, even if the "bubble" pops every now and then.

Bitcoin has grown 10x since it was considered another "tulip mania" at the last bubble/crash.
Because religious extremists use it instead to indoctrinate kids. It is used to argue that you "owe" "religious faith" "to god/allah".

This always translates in practice to that you owe obedience, money, time and work to them, of course. They couldn't care less about faith, they simply care about the power it gives them.
SW binge?
I hesitate to say no, but I haven't seen this work out too well many times.
Commons in the time of monsters: How P2P Politics can change the world
It's a problem because it's necessary to understand biology and medicine. It directly affects important public health issues, most visibly the development of drug-resistant bacterial species. It's also fundamental for archaeology and palentology. The point of pre-college schooling is to provide a broad base of knowledge, both for everyday functioning (literacy, math, etc) and to act as a foundation/inspiration for future learning.

If kids aren't exposed to anything beyond basic literacy (enough to read street signs and product labels) and math (enough to be able to pay for things) they might function as adults but it's much less likely.

So while evolution isn't needed in everyday life for some people it's certainly more useful than bible study.
> I find that SQL-style transactions just cause lots of issues with performance and locking contention while enabling developers to skimp on thinking deeply about how to appropriately design their data flow

"Designing data flow" would mean having to spend more time and money for the same task?
What a fun way to cripple your OS and disable important stuff like Windows Defender.
Thunderbolt is Intel AFAIK. (Correction: apparently Intel made some claims but Apple owns it.)

My guess is Intel probably would have backed USB over Firewire regardless since it had a stake in USB.

The irony is, USB would probably have failed without Apple.

The fact is that Intel has repeatedly chosen its own technology to promote, and until recently it had the market power to force everyone else to follow suit.
I've heard Dave Rubin's name thrown around so I was going to check him out until I saw his performance here a few days ago. I didn't like it. Of course, you simply mentioned his guests, and I'm certain he has some really good ones!

https://np.reddit.com/r/Classical_Liberals/comments/6ipull/h...
I am not sure if this is a troll but this is a terrible analogy given the nature of coding and the impact a strong engineer can have on a product, team, or business just through raw programming skill.
Would you happen to have any articles/papers/blogs/talks that demonstrate how to perform the traditional bank transaction/shopping cart examples using an event-sourced system? Curious to learn more.
An example of this is Chinese guqin tablature. It can be centuries old and includes a lot of detail on where to place fingers and how to strike the strings, which can give you hints about pitch and timbre when combined with knowing the tuning, strings, etc. But the tablature has almost nothing to say about the LENGTH of each note, so rhythm has to be inferred by the performer from what they know about the culture.
MIT – Introducing Pilot 2021
As a social media self-exile I have to laugh at the (emphasis mine) "increasing openness of our lives, which we increasingly spend online..." Who's this 'we'?

If someday I'm unfortunate enough to have to see a doctor, and they Google me, they'll find nothing. What happens then? Will they have to do their job using only the information I specifically provide them? Horrors.
It doesn't matter if you accept the babysitter's excuse or not, CPS is taking your kids away from you either way.

That's the proper analogy.
I once made a tragic security error with

http.Handle("/o/", http.StripPrefix("/o/", http.FileServer(http.Dir("/"))))

It's a bit too easy to expose to much of the FS aka "Directory traversal attack". My advice, always deploy into a container.
A good compiler might define its behavior. Just because the spec leaves things undefined doesn't mean the compiler should.

Arguably a JS VM written in C++ may be vulnerable until the compiler is proven not to be.
Boyd hated the F-15. Funny how the F-15 is undefeated, and if you look at how it has fared in Israeli hands, it's one of the most exceptional fighters when it comes to actual combat...

And you seem to be implying that numerous SU-22s would have fared well against the Super Hornet? You could put 10 Fitters up against the Bug, and it'd still win before going winchester.
Localizing “Papers, Please” (2014)
Yes but that concedes the change in definition of MB, which I strongly dislike.
You and the parent post are both right. There's just 2 things:

1) we regulated that banks have access to capital (ie. we created the FED that will loan almost unlimited amounts to them. And of course we bailed out "too-big-to-fail")

2) we outlawed that banks loan money to anyone but the government, or very big companies. After all, since they always lost the money, we've imposed more and more rules about who they can lend to. (always lost it, I might add, by lending it to government or big companies when we're talking large amounts, but that is conveniently ignored of course).

Of course who they can lend it to means effectively not you or me.
Most people who attempt suicide and survive say they regret it. Usually almost immediately. Suicidal moods are often temporary and they would be fine if they waited it out. I might agree in principle that people have a right to end their lives. But in practice it seems like suicidal people are not making a perfectly informed decision and are better off being saved from suicide. And suicide doesn't just affect that person, it affects everyone around them too you know.

And therefore I honestly think comments like yours are dangerous. Telling suicidal people to stay quiet and not get help they need, or even encouraging them to do it.

This is something that personally affects me a great deal. I have a close friend who often has thoughts of suicide. I dread that the day will come I will find out they are dead, and I will be devastated. I'd do anything to prevent that. Their moods are always temporary and they go back and forth from being depressed to on top of the world in just a few days.
Cloak and dagger: from 2 permissions to complete control of the UI feedback loop
> It's unsafe for a compiler to do this in general (i.e. without annotations) because it can't determine dependencies that are external to the program

As I understood the talk, Haxl doesn't address this either. It depends on you describing an IO operation as a type with set of functionality that can be used to identify those dependencies.

> e.g. `one=get(); two=get()`. The dependency between one and two is not obvious to a compiler when IO is involved, so it has to assume the two `gets' has to be executed sequentially.

A "pure" language will address a lot of this due to referential transparency. Which is to say that if `get` takes no arguments, its instructions for where and how to perform an IO operation are entirely static. Given your literal example, the only way the result could be different is if there were some side effect or if a source of data required by `get` could change during execution time.

Haxl's takes this a bit further by suggesting that if you are performing the same IO request twice "at the same time", you expect to get the same result both times, so it memoizes the request for the duration of your set of IO operations.

Within a `do`, as far as I could grok from the talk and glancing at documentation; it's worth noting I don't know Haskell and have never heard of Haxl before today.
The story I heard is that it's an abbreviation for the Latin word "recipe" ("take"). Apparently it was a convention in handwritten manuscripts to use a dash to indicate abbreviations where letters have been omitted, hence a dashed R in this case.
Interestingly enough, if you look at the Ariane manifest you can see that they're having a hard time finding satellites to fly in the "lower berth". Meanwhile, SpaceX's comsat launches are mostly heavier sats that won't fit into the "lower berth".
Imagine that every of your items in a warehouse has a unique barcode to track it. In this case you have to keep a record in a database for every item.

And with current amounts of RAM on servers there would be no problems even if you have tens of millions of items.
Ask HN: What companies are currently using VR/AR for commercial purposes?
and what are these commercial purposes?
Got that too. But if you're on Mac, you can play around with text to speech using os.

import os
os.system("say 'hello world'")
Classics of Computer Science: A List – Harry Lewis, Harvard
This story reminded me to clean up a very different synth and put it on github:

https://github.com/wildsparx/synthem80

Unlike NSynth, synthem80 is directed to a specific and humble goal - make early 80s-style arcade sounds. It uses a mini-language to control an engine similar to that in Pacman.

For instance, the sound when Pacman eats a ghost:

./synthem80 -o eat-monster.sw 'timer(t=0.5) wav(wf=1 f=2 a=45) add(a=< b=48) nmc(wf=5 f=<)'
Define engineer.
maybe it does have a stable value, we just need to wait out initial short-term phase of euphoric speculation:

https://en.wikipedia.org/wiki/File:Tulip_price_index1.svg
Really? I have seen start menu taking 5 seconds to load up all the time.