skysight-inc/HackerNews huggingface dataset:
The parent comment has never mentioned citizenship, only country of residence and nationality. As long as a Chinese/Russian/etc. national resides in one of the non-banned countries and can get hired just as well as any other national (regardless of whether they have a citizenship of the country they reside in or not), everything is alright in my book, because it has nothing to do with them on a personal level.
> If you eliminated all gasoline cars tomorrow...

A carbon tax would not eliminate all petrol cars tomorrow, would it? It would increase the price of fuel, which would encourage some to make their next vehicle an EV in place of ICE. It would inevitably encourage cities and petrol stations to add EV infrastructure too.

Not entirely sure how the US taxes vehicles, but personally I would put some combination of fuel (carbon) tax, increasing monthly well in excess of inflation and a vehicle tax that cost some combination of vehicle weight and emissions. The combination effect of which would be to discourage ICE, pickups and 4x4s whilst encouraging smaller EVs.
2019 GitHub State of the Octoverse Report
This is where the Debezium connector for Postgres [1] comes in: it will retrieve change events from the TX log and push it to brokers such as Apache Kafka or Pulsar, or directly to your application. When not listening, any consumer will continue to read from where it left off before (applying "at least once" semantics).

Disclaimer: I work on Debezium

[1] https://debezium.io/documentation/reference/0.10/connectors/...
The main criticism seems to be that the FK relationship makes migrating the referenced table difficult. But why not remove the FK with ALTER TABLE before the migration, migrate, and add the FK back again (which will catch any missing primary keys), preferably inside a transaction?
Does anyone know what shutter speeds and ISO they are using for such pictures? It must be f...ing dark out there. Or do concepts like shutter speed and ISO not make sense for the type of camera they are using?
Don't forget The Art Of Chording! It's pretty much the go to guide on understanding Plover Theory!

https://www.artofchording.com/
Oddly enough, I just saw this pop up on Reddit, as an awkward consequence of the vanishing/reappearing text messages:

https://www.reddit.com/r/relationship_advice/comments/dsyzo1...

tl;dr: someone thought her boyfriend was cheating because a message he'd likely sent months ago appeared in the middle of the night
It's OK if I steal a copy because someone else is willing to pay for it.

Ask Immanuel Kant how he feels about that.
For the most part it doesn't matter in a lot of "web development", most web devs education is critically lacking when it comes to databases in general.

The moment you or your customers need business intelligence and complex queries, you quickly realize how important FKs and indexes actually are. I firmly believe that you should always have FKs and indexes, referential integrity at the db level is a great thing to have and is cheap and easy to implement.
Amazon was built on the backs of 3rd party sellers. Amazon used them and these sellers are finally migrating to their own backends like Shopify or Woocommerce to build their business, not help Amazon build theirs. It's atrocious how Amazon is punishing them for this.
There's 4 versions of magic online:

MtGO: old official version, you can buy and sell singles for similar costs to paper

Cockatrice: Old unofficial free version. leaves a lot of rule/effect enforcement up to players manually.

Duels: "new" official version, never implemented complete rulesets, abandoned by devs 2 years ago, leaving collectors who paid good money SOL

Arena: new official version, but with hearthstone model of only RNG card purchases, no singles or resales.

Personally, after putting close to 4 figures into MtGO, then hundreds into duels for nothing (on top of the fortune I've spent on paper), the price fatigue has ruined arena for me, and I don't give them any money.
> Looka, the Toronto-based startup that uses artificial intelligence and machine learning to design logos

Kinda funny that they failed at their own rebranding.
Tesla Powerwall:
$14.5K for 27 kwh and $2.5-4.5k installation.
$6.8K for each 13.5 kwh of Powerwall.

Batteries by themselves not enough. Need inverters etc... You cannot get to the cost of the car by only adding up the cost of gasoline used over its lifetime.

China's and south Korea and Russia have nuclear build costs in the $2k-2.5K per KW range. They make 70% of the world's nuclear reactors.
You could take a nice swim in a nitrogen lake :)
There is no way that not granting an employee access to prod data can be illegal. That sort of access is a privilege not a right.
"Two-Headed Giant"

It's not even a hybrid really. It's just that 2HG is more of a format modifier than it's own format.
Both. Amazon is not a monopoly, therefore they aren't subject to any legal restrictions other than the same ones any retailer faces. And Amazon has no moral obligation to bend over backwards for third party sellers. Amazon created and nurtured the customer relationship. They should guard it fiercely.

This lawsuit is the equivalent of a consumer goods brand bitching and moaning because a supermarket imposes conditions on them if they want to get valuable shelf real estate.
Yes, but the guy I responded to was mentioning the common complaint against cable. That you were paying for all the stuff you didn't want to get the things you want.

So I don't see your point. Yes, cable has a lot of stuff. But not everyone wants all of it.

That's the issue. No one wants to feel as if they're paying for stuff they aren't using.
Another example: source code is human readable (by definition), but that doesn't mean I can read any possible program. I struggle to read many programs with deep nesting, but that doesn't mean I'd find it acceptable for my compiler to crash in such situations.
I played a bit of KeyForge. It was fun and more unique than I had expected. However, I really missed the tactics and interactivity that come from being able to respond on your opponent's turn and the defending player assigning blockers.
So why are they so happy when there's already 100 GB M-DISC which is much faster?

https://en.wikipedia.org/wiki/M-DISC
I don't dispute that action due to profit is much better than no action at all.

The sentiment in the post I replied to seemed to be that our society should be striving towards "profitable goodness". I think a good action should be taken because it is the good and right thing to do.

Not every good act or charity can be profitable, so if we pick "profitable goodness" as our society's goal then what happens to all the actions that aren't profitable?
Everything should be free but I should still get my salary.
We have sort at the source in Mountain View, CA and across the Bay Area. I don’t personally care about going into great detail separating minutiae. I have better things to do. Recology (the company that handles waste for much of the Bay Area,) has a billion dollars in revenue and a no-bid contract with San Francisco, let them figure it out. They make a profit that’s twice the industry average and as an ESOP, they avoid most corporate income taxes. The president of Recology even said that competitive bidding would put him out of business. I dutifully put my plastics and cardboard into the correct bin, but I’m not going to go out of my way to help some private company making money hand over fist with a corrupt sweetheart deal with the city: a no-bid, no franchise fee deal with San Francisco in perpetuity. They want the money, they can sort the f!$@ing garbage.

https://www.nytimes.com/2011/06/10/us/10bcstevens.html?_r=0
Hm, I'm sure there is one for German. I wish the project would aim to provide an international solution
Convenience does not justify theft. You don't have an entitlement to consume specific content.
Netflix's nefarious end goal is clear: feature parity with early-2000s VLC Media Player. They must be stopped.
For anyone wanting an alternative, there's Mailwizz - one time payment, and you can self host and connect it with SES/Sparkpost/Mailgun/etc.

I've mentioned it at least a dozen times here on HN because it's an underrated piece of software that works and is actively maintained, unfortunately their marketing is very weak.

Bonus: the code is not obfuscated, it's built on PHP using a proper framework and the author is very active on the support forums. I'm hosting it on Webfaction (currently migrating to Opalstack) for cheap and almost no maintenance.
Math matters. Nuclear energy is not substantially cheaper in other countries than it is in the US (feel free to provide cites otherwise) - even countries like China where environmentalist rabble-rousers can find themselves in prison.

This suggests to me that the regulations for the ignorant paranoid treehuggers are not actually the problem.
I don’t see how that proves anything about American pressuring Boeing. An equally likely scenario is that Boeing promised a plane they were developing and attempted to secure a market for it before it was completed. That alone doesn’t sound unusual. The problem is that it appears they were overly aggressive in their estimates and tried to circumvent the process with a software update.
I think you misunderstood what the op said. They weren't saying that littering wasn't a thing, but rather the narrative around litter is that it is solely the responsibility of the consumer.

This article talks a little more about what I think the op was speaking to: https://theintercept.com/2019/10/18/coca-cola-recycling-plas...
I've done this before with good results.

I was pleased to see they are using `SELECT FOR UPDATE SKIP LOCKED`. That is what this 2nd Quadrant article recommends, which I think is required reading if you want to implement this yourself:

https://www.2ndquadrant.com/en/blog/what-is-select-skip-lock...

It goes into more detail about wrong ways to implement a queue and what the downsides are for its preferred approach.
When posts like these come up, I'd like to remind people that context matters when making technical decisions. What works for large companies with huge scale (GitHub, Google, Facebook) may not work for you.

As a counter point to the linked issue, I operate a few small applications. Foreign-keys (and constraints in general) are great at ensuring that invalid data doesn't find its way into your database. Yes, they have a performance cost. Yes, they make sharding more difficult. In my experience, at smaller scale the trade-offs are worth it. YMMV
The UK came up with an even more ridiculous system. Many regions were nicely moving to a system with separated organic waste - kitchen scraps, garden waste and so on, which were composted. Tory party austerity meant many regions have subsequently scrapped, or charge homeowners for the organic waste collection.

Overall result is many homeowners now have a plastic wheelie bin they never use any more, and organic waste goes in the landfill bin. Putting us in a worse place than before we started.

Tory party is busy promoting how environmental they are in their electioneering ...
SKIP LOCKED is much simpler and doesn't really have any gotchas.

We had an internal library that used advisory locks which had all sorts of strange behavior we couldn't figure out until we just moved to SKIP LOCKED
Who Owns HIV-Prevention Drugs? The Taxpayers, U.S. Says
In which case American would have bought exclusively new A320neo's.

Boeing was caught flat-footed and underinvested in a new product in 2011.

So while Boeing management could have said "No" to their largest (?) customer, that would have been a hard decision to make. And probably would have led to the board chopping C* heads for breach of fiduciary duty.
He really loves his "want to feel old" jokes.

Also, want to feel old? The 'want to feel old?' factoid meme dates back to around 2011, closer to the Bush/Kerry election than to today.

https://xkcd.com/1686/

https://xkcd.com/1757/

https://xkcd.com/1624/

https://xkcd.com/1995/

https://xkcd.com/1898/

https://xkcd.com/1959/

https://xkcd.com/1981/
Spineless is the word. Be spineless or be crushed. Look at Brendan Eich. We live in a tyranny of the weak. The weak win, just because they are weak and we have to pity them. And even worse, this makes strong people pretend to be weak to score pity points. This will only lead to bad times.

(this was a child comment to https://news.ycombinator.com/item?id=21486569 but it was detached by a moderator)
That's what exceptions are for.

Honestly, I wonder if code like that just doesn't use panic / resume correctly? (Granted, I only read the book on golang about 8 years ago.)
Agreed, what’s lacking is documentation on how the many, many options can interact with each other.

Today I wanted to get systemctl list-unit-files give me the full path to each file. Couldn’t figure it out.
Kinesis is based on DynamoDB...

Key-value stores could do a lot of things theoretically.
Characterizing people as non-linear 1st-order components in software development
It is at the core of the worldview and ideology he espoused. The actions he is known for flow out from that ideology.
Why are we asking this question of the Saudis and not, say, the Chinese?

Over the past few months there have been many issues of companies taking actions that seem to be based on appeasing the Chinese government.

Both are awful government's actively committing crimes against humanity.
Why on earth would you cheer on a company dumping toxic chemicals into the lake just because they raised awareness?! It's caused material harm. That's madness. You punish them for that, and anyone who enabled them.
It can't be true that keeping a nuclear power plant running is more costly than replacing it with a massive capital expenditure. Can it?

The only possible way is if the alternative is massively funded by debt, and the "cost" is based on historically low interest rates and a repayment timeframe in the decades.

Even then, given the ongoing cost of nuclear is relatively small, how is it possible that the capital expenditure of solar + natural gas is cheaper than the running cots of nuclear? Can someone show me that maths?
The EPR was supposed to be the next standardized French design, produced in significant numbers and at low cost. The costs and delays have been so bad with the first few of them that I don't know if it will ever really take off.

So we're back to the question: do you keep pushing forward with more EPRs? How do you keep pushing forward with EPRs if there is a credibility gap on cost and schedule predictions? Or if you choose to standardize on a different reactor than the EPR, how do you estimate its cost and construction schedule?
Amazon on demand (yes you have to pay for all content) is pretty damn close to this.
No, I'm suggesting that we bear less responsibility for violence experienced by homeless on the streets than the responsibility we would had if we provided housing and forced the homeless to live in them. In the same way the government is not responsible for discord in my relationship with my friends, but would be responsible for discord between me and the police.
So... you are saying: "We can't trust police, let's give them more powers"?

I think your expectations on how many crimes a DNA database would solve is vastly over-estimating. For example, even if a rape case collected DNA evidence, most of them never actually process those kits. You can't solve a crime if you never look at the evidence to begin with.

I think a DNA database is a solution in search of a problem.
>preferably inside a transaction?

MySQL does not support transactional DDL, unfortunately.
Someone just contributed a pull request with results for Jackson in java
Impossible invalid state typecheckeable
Netflix uses password sharing as a marketing tactic. They've announced that. At some point, passowrd sharing gets too efficient, and Netflix would have to switch to something like an Xhr for $Y plan, like cell phone minutes and GBs.
IMO that plan makes more sense anyway.
For me (and I'm going to sound like a massive fan boy here) Rust has surpassed functional programming. It gives me mutable data when needed and immutable when shared. So ONLY having immutable data structures now seems stupid. We can have best of both worlds.

Read this if you don't follow: "In Rust, ordinary vectors are values" http://smallcultfollowing.com/babysteps/blog/2018/02/01/in-r...
How would a Rails app be impacted by this? How would you create one-to-many, or many-to-many relationships?

I'm sorry if this question sounds silly, but I've never heard this line of reasoning before and I'm fascinated by it.
May this serve as a reminder to anyone being offered a non-sensical funding round for their one-person business ("really take this to the next level","1 + 1 = 3", "you will own a piece of a much larger pie!") - maybe consider keeping 100% of your pie.
25+ Linux Commands Raspberry Pi Users Need to Know
There seems to be a certain mysql tinge to this value calculation. I use foreign keys and like it (I use Postgres). I do not encounter the problems the author does. I omit them when they are a problem for some reason. This is rare in routine work.
Not everybody is in DMCA jurisdiction. Maximum liability in Canada is something like $5000, which makes it uneconomical for a copyright owner to actually send a lawyer to court to litigate against a person who wants to defend themselves.
? neither parent nor GP said they were.
Worked at a bank years ago. One of their DBAs eschewed FKs in production. Databases were designed with FKs which were enforced in Dev and QA. If your app survived testing (automated, QA team ... the entire gamut) without producing FK violation exceptions, your app could be promoted to production, where FKs were not enforced, making things pretty fast.

I feel like this was a stopgap on the way to eliminating FKs. I have no idea what his roadmap was because I wasn't in that group. But his process made for good thought fodder.
I misspoke. I do not know of any crimes against humanity that the Saudis are actively committing.
XHelper Malware for Android
Isn't this an inherent problem with looking at brain activity for this sort of thing?

Suppose free will is real, and a person makes the decision and then takes the action. The brain waves marking that the decision was made HAVE to show up before the person is aware that they have made a decision, because both their awareness has to be 'signaled' by a brain wave coming from a decision. The deciding process, the decision, the awareness of the decision, and the actual brain signal to move the muscle ALL come from the brain, and will all feedback to each other. Any awareness that you have made a decision would show up in brainwaves BEFORE you are able to articulate it, since you can't articulate something that hasn't been experienced by your brain yet.

The only thing this sort of experiment could disprove is the idea that free will comes from something OUTSIDE your brain. If we believe your brain represents everything that you are (in terms of thoughts and consciousness), then anything the brain signals can't come BEFORE you have exercised free will, since the signal IS your free will.

I am very confused as to how anyone could think your brain waves could disprove free will.
Sure, if you forget the fact that it used to be much much more "sequestered" before we spent energy extracting those hydrocarbons. Not to mention that the plastic will eventually erode into the oceans since it isn't buried deep enough. Kinda like a time release pill, except for microplastic pollution.
Sorry just bitter
Thank god. I am off to smell some books.
Disagree. Montreal is as if Paris and Brooklyn had a baby.

I no nowhere else on the North American continent that has as much nightlife (except Miami), as many restaurants (except NYC), as many universities (???) and young people (???) and just "stuff to do"

The city has a very lived-in feeling and great architecture. Completely the opposite of California.
>If there is one rule, then it had to be the ‘safety net’ rule. It just means that everyone is safe to speak their minds during the retreat. There will be many sessions on feedback about product, company, people etc. If team members are worried about repercussions, then retreats wouldn’t work at all.

Sounds great in theory, but what do you do when someone starts sharing sexist or biased opinions. Or starts to personally degrade another employee or team?

For a responsible company, there are always repercussions, it is disingenuous to lead employees to believe otherwise.
Yeah couldn't agree more with this sentiment.

I'm unafilliated libertarian but lean left on many things and I have an unbelievably strong dislike of Trump. All the democrats would have to do would be to exist quietly and generally oppose Trump to come off looking like super heros in my mind. All they have to do is be the voice of reason/ adults in the room and even if I'm generally unaligned politically I'd vote for them.

Instead they have decided that they have to try to be equally obnoxious in the other direction. At least obnoxious republicans just pretty much say "yup we're assholes what are you going to do about it?" But democrats manage to be 90% as obnoxious most of the time while maintaining this intolerable smugness and self righteousness and absolute refusal to acknowledge that anyone who doesn't tow their line absolutely isn't a "facist", "racist", "misoginst", "xxxxxist".

Look at how they are treating Tulsi Gabbard to see how intense this desire to eat their own if they are minorly off message is.

They've become the thing they used to hate.

I think I would literally vote for a turd sandwich over Mitt Romney and yet as someone who is fairly left leaning, I would take him over most of the current batch of Democratic Nominees.

If Bernie would stop trying to incite a literal class war every time he opened his mouth I could probably tolerate him but he's leaning more and more extreme every day. I supported him in 2016.

In the end, I've decided the best thing to do is to care as little as possible. If Trump won again I think I'd be annoyed for about 5 minutes and then I'd be over it. I can't be bothered anymore.
Same as pushing DRMed exclusives for rent doesn't help reducing it.
Yeah, as others said, by SE I meant software engineering. Lots of overlapping acronyms, I usually don't use them, but in this context I thought I'd get away with it.

I liked my ethics course in the philosophy department, but that's more about J.S. Mill, and Kant and the rest. Engineering ethics was a course any Eng. degree had to take, interesting, but hard to apply also. You go through case studies and look at them, but to have any productive class discussion they kinda have to be broken down to be at least somewhat clear and concise.

I don't feel like getting into here, but I feel like even this Boeing issue, which is pretty clear, is less clear than any case study in a textbook.
I may (or may not) have built my own Netflix competitor. It had more content than all of the major providers combined.

Legal buffer: I will not say what the content was. It may have all been non-copyrighted cat videos ;)

The service was available cross region. Stored videos in multiple resolutions for streamability in low-bandwidth situations. No DRM bs. It cost me under $400/month to run the whole service, and I could access it from any device, anywhere I had internet.

I gave access to a few friends and family and they all chipped in to help cover expenses (it was never profitable). I ran it for a few months before I started to lose interest in maintaining it - it was mostly just a proof-of-concept, and fell back to Netflix/HBO/other subs for convenience.

I applaud Netflix, HBO, etc for offering competitive solutions to monopolistic cable companies and other restrictive media outlets, but this will always remain a problem.

Once you create a piece of art and put it out for the world to see, you cannot control how/when/where it will be shown. Stop trying... Just make it more convenient for people to pay to view it.

Going after people for low-level copyright violation, like sharing a password, is childish.