skysight-inc/HackerNews huggingface dataset:
To volunteer implies you are already well off enough to have housing and food, thus have the luxury of being able to donate your time to volunteering.
I don't like the inconsistency of forcing you to assign all of the return values of a function (even if you just use underscore), but not doing that for range, map access, or taking something off a channel.
> maybe paying customers could be segregated into their own separate table from non-paying users.

If you know that, for example, you just need the customer ID and name of paying customers, you can also make an index on (is_paying, customer_id, customer_name).

Any database engine worth its salt will then be able to satisfy such a query entirely from the index without reading any pages from the actual table, making this basically equivalent to the "separate table" approach but without the "administrative" overhead.
The author of nanocolors plagiarized colorette, removing all indication that it was someone else's work, added a few micro-optimizations then encouraged all of their associated libs like postcss/auto-prefixer to use "their" library as an optimization removing chalk. Colorette's author called them out and a bunch of drama ensued.

Really never should have happened in the first place, you'd have to go out of your way to remove all the git history and all that to hide the fact that you copied someone else's work, and then to make a bunch of drama and not own up to it was pretty distasteful.
You might be interested in the OECD's way to make blatant tax avoidance like the original comment a little harder.

[https://www.oecd.org/tax/beps/]

Groups where the ultimate parent is responsible for roughly over 1Bn in revenue are required to submit Country By Country Reports covering all cross border transactions their details and their transfer pricing methodology, and, in many cases, the underlying documentation of those transactions (contracts, loan agreements etc.). These are digitally submitted via your local jurisdictions Tax authority and shared with all member countries. Companies as part of that group are required to lodge more detailed information at a local level on just their cross border transactions with others in the group. This allows for some level of check that information being reported is globally consistent between tax authorities, who are then able to identify and place controls on unwanted behaviours.
Nobody is asking you to support the ACLU there, the poster just mentioned that a relative working for the ACLU deals with such complaints on a regular basis. Your opinion of the ACLU doesn't make that untrue.
Turo for trucks? https://turo.com/
Firebird SQL Configuration Calculator
Not necessarily a straightforward connection, as none of the items being discussed have a direct revenue impact only indirect impact to brand value etc.

Knowing it is unhealthy for teenagers does not have direct negative impact on advertising revenues per se . It is perhaps feasible to argue that keeping this information under wraps without a legal requirement to disclose is the optimum management fiduciary thing to do to maximize shareholder value by avoiding bad press.

Of course there will be lawsuits around this as other things, but it is not all that clear
"Leave, leave now...and don't look back."
"Head to the UK or France, both places you've always dreamt of living. Don't let the leeches and life killers drag you down."
"GO!" "Don't worry about not speaking French or finding work...just run like the hounds of heck were on your heels because if you stay you'll be trapped forever."
> “Freedom Is Slavery” because, according to the Party, the man who is independent is doomed to fail. By the same token, “Slavery Is Freedom,” because the man subjected to the collective will is free from danger and want.
There is a standard API for screencasting and it works fine if you're only doing screencasting. Since the API is in the xdg portal, it sits at a layer above Wayland and X11 and in theory it should make it easier for you because it works the same on both of them and you could avoid writing window system specific code and just have one Linux backend using the xdg portal. But in practice it seems like your use case needed to access window system specific functionality anyway.

In my opinion, what you're asking for is an entirely new thing. You want an API for window management, but there has never really been a window management API on Linux, and every desktop environment was already doing its own thing. It has nothing to do with Wayland specifically. Under Xorg, the X11 APIs can sort of be hacked to do what you're asking under certain circumstances, and it might work ok on some window managers, but it's not going to work in every case. (And it doesn't play nicely with sandboxes either)

To get the human readable title seems like it would be an issue with how Mutter publishes the stream, i.e. not an issue with the portal itself. But I haven't looked into this enough in detail. I also don't know enough about your application to know why you would need the window sizes and positions. My only point is that if you intend to use that to draw an overlay over a screencast, or otherwise try to reconstruct what the compositing process is doing, then that's not going to be completely accurate. And it can't really be accurate without exposing various internals of how the compositor works, which puts any proposed API design back to square one...
From looking at the news videos of the tarballs, some crude oil is just like what has made it to the beach.

In Alberta CA the famous tar sands are about like this, including even the sand, otherwise this is mainly the remaining wax and tar content which picks up the sand when it washes up.

After "weathering" before drifting ashore, most of the light volatile hydrocarbon content has evaporated leaving only the heavy residue consisting of wax & bitumen which balls up as the sheen shrinks naturally.

If it was a light crude to begin with that could quite often look more like root beer (complete with foam) when fresh or even be as semi-transparent as iced tea. And can be quite low in viscosity compared to diesel fuel.

In the case of really light crude there might only be about 1 percent residuum content, IOW for every 100 barrels spilled only 1 barrel of this tar would remain to wash ashore after evaporation of the light ends.

Other times with a heavy crude each barrel might be more than 50 percent residuum, which means orders of magnitude difference in shoreline devastation per barrel lost from the pipeline.

Looks like the operator is Amplify Energy whose spokesman didn't seem that well-spoken, and I think it can be recognized as a deer-in-the-headlights moment. Seems like they are one of the ones finding their niche by taking over proven properties from much larger oil companies who had drilled the wells and fully depreciated the assets years ago. Everything has already paid for itself so attractive deals can always be made for next-generation investors. The majors could have easily gone "green" decades ago with their financial resources (could have divested from oil completely) and provided good shareholder returns from pure financial operations, but naturally there is even more money in continuing to bring in gushers.

Shell did a bit of that last month when they sold lots of their Texas wells to Conoco, I would expect the ones needing extensive infrastructure repair will be passed on to smaller companies like Amplify before the bill for that kind of thing comes due, while the figures still look as good on paper as they ever did.
"Media is not spreading free opinion; It's generating opinion" --Oswald (b. 1918) https://en.m.wikipedia.org/wiki/The_Decline_of_the_West
If we could shut down all the major social media platforms for six months, then evaluate after, we might just leave them shut down.

More and more people are opting out of them, either entirely, or by just not engaging with much. Those who remain extensively posting on certain places (Facebook comes to mind) are the literal addicted - they can rail on about how evil Zuckerberg is, how he's committing treason, will be jailed soon, executed, but... to actually stop using Facebook? Unthinkable.

The best one can do is just disconnect from it as much as possible. It's a far saner existence.
9/11 took every firefighter
Some nice changes:

> “Zero-cost” exceptions are implemented. The cost of try statements is almost eliminated when no exception is raised. (Contributed by Mark Shannon in bpo-40222.)

> Method calls with keywords are now faster due to bytecode changes which avoid creating bound method instances.
Depends on how control is defined. Ultimately they want to steer your purchasing behavior, by showing you super focused ads on even more stuff that you would like to buy. That would be some kind of control.
I found the pinephone in my research. It seemed nice but the hardware specifications were really underwhelming. I'm used to buying flagship phones with the best hardware available and using them for years and years.

> It, ummmm, very rough around the edges, software wise.

I can imagine. How's the driver situation? Lots of proprietary blobs?

What about the device itself? Build quality? I see it has hardware switches for RF and sensors, I really like that.

> So far I have only used the default Manjaro distribution it came with.

I wonder why Manjaro and not stock Arch Linux.
According to that abstract, only Apple does that, not Google.

Full disclosure I work for Google, but not on anything related to this.
Someone asked the other day about who owns the Facebook "super-voting" shares, besides Zuckerberg. These shares are not traded on any public exchange so the ability to track them is limited.

In the Facebook registration statement from 2012, one can get an idea of who owns these class B shares.

https://www.sec.gov/Archives/edgar/data/1326801/000119312512...
Consumer helium is sold with a good amount of oxygen in it now for exactly that reason.
My nearly-101 year old grandfather needed his pacemaker replaced. The doctor gave him the choice. He must have thought, "THIS IS MY CHANCE" and elected to have his pacemaker replaced, somewhere around his 101st birthday.

He died of complications of the replacement surgery - his IV lines got infected. I don't think Medicare got a refund on whatever they spent on the replacement pacemaker.

Sometimes US medicine is great. Sometimes US medicine is a wealth transfer program.
I also like hybrid.
Took the words out of my mouth. Let’s not over complicate things.
Primordial 'Hyper-Eye' Discovered
But the comment I replied to was not.
>> released from an aircraft seconds before its Northrop Grumman scramjet (supersonic combustion ramjet) engine kicked on.

No. The scramjet would only work at supersonic speeds. The missile was boosted to speed/altitude by another conventional rocket before lighting the scramjet.

>> The HAWC vehicle operates best in oxygen-rich atmosphere

As opposed to a oxygen-poor atmosphere? Mars? Venus? And "best" suggests that this missile might operate poorly, but operate nevertheless, in some other non-oxygen place. Maybe this thing also travels through space. We may be going to war on Venus after all.
"Somebody set up a website" is a pretty low bar, especially considering the number of tech workers in Portland.

A lot of people get this wrong. "Antifa" is not a distinct organization but a label used both by individuals and organizations which are often unconnected. I see people on Twitter who just add "antifa" to their screen name. It doesn't mean that they've joined some organization.

I'm guessing the RCA is a little bit more organized because neo-Nazi activity in Portland is a bit more organized and active. People who have never lived in Portland often think of the city as some kind of liberal haven, through the lens of Portlandia. The lived experience is quite different. Maybe think of it as San Francisco, with all the homelessness, but not as much tech. Then add a history of neo-Nazi violence, anti-government factions like ones behind the Malheur standoff, the Rajneeshpuram, etc. There's a reason why "Green Room" is set in Oregon.
Okay. Anyone can look and see that it was not that. But I guess that carries farther than an honest assessment.
> If you're so close to your limit that you're incapable of closing an additional 6 spam PRs daily for a month. 6 spam PRs a month isn't really the real problem you're facing; thus the comment you responded to is correct that it shouldn't be this much of a big deal.

I’m 18 months into pretty severe burnout, spent 6 months unemployed and burned through all of my savings. I have difficulty with executive function at my best, and it’s severely degraded. But I have to work. I’m not the only one, a lot of people are struggling.

Maybe it sounds trivial to you, but six additional things I have to address each day sounds exhausting. That’s not so easily dismissible to me.
I wish we could ban greed, entitlement, airshows, airports, airplanes, shipping, drilling... and oil.
Go become a nurse or something totally different and stop caring about your career, it will give you soul cancer, have a rich life outside of your job.
>Researchers essentially staged a man-in-the-middle attack on the phones, setting up a laptop to serve as a Wi-Fi hotspot while disabling cellular connections on the phones.

>Traffic from the phones ran through the laptop, which decrypted logged and analyzed data, then re-encrypted the data and sent it on its way to the destination servers.

That's from the article. I haven't read the paper.
Wow! No wonder you find this tedious.

Your gateway struct hopefully looks something like

type Fooer interface{ ... }
type Barer interface{ ... }
type gateway struct{ f Fooer; b Barer; ... }
newGateway(f Fooer, b Barer, ...) (*gateway, error) { ... }
func (g *gateway) StartTransaction(...)

That is, a gateway is something that depends on other things, modeled as interfaces, and provides capabilities as methods.

+--------------------+
| gateway |
| - f Fooer |
| - b Barer |
| - ... |
| |
input -------> StartTransaction -----> output
| ... |
+--------------------+

When you want to exercise this code, you want to construct an instance with mock/deterministic dependencies, so that you have predictable results when you apply input and receive output. That's the model: give input, assert output.

But your linked code is kind of different! Each subtest varies not the input but the behavior of the mocked dependencies. I understand the point: you want to run through all the codepaths in the gateway method. But is that worth testing? Do the tests meaningfully reduce risk? I dunno. It's not obvious to me that they do.

The use of gomock is also a big smell. Generating mocks kind of defeats the purpose of using them. I would definitely write a bespoke client:

type mockClient struct {
StartTransaction func(...) (xxx.Transaction, error)
Upsert func(...) (xxx.Result, error)
AbortTransavtion func(...) (xxx.Xxx, error)
}

Then each test case is simpler to express as

for _, tc := range []struct{
name string
client *mockClient
input UpdateConfigRequest
startRes xxx.Transaction
startErr error
upsertRes xxx.Result
upsertErr error
res xxx.UpdateConfigResponse
err error
} {
{
name: "success",
client: &mockClient{StartTransaction: good, ...},
startRes: ...,
upsertRes: ...,
res: ...,
},
{
name: "bad start",
client: &mockClient{StartTransaction: bad, ...},
startErr: ...,
},
{
name: "bad upsert",
client: &mockClient{StartTransaction: good, Upsert: bad, ...},
startRes: ...,
upsertErr: ...,
},
...
} {
t.Run(tc.name, func(t *testing.T) {
g := newGateway{tc.client}
output := g.StartTransaction(tc.input)
// asserts
})
}
Its telling about HN that this isn't the top comment, or that I've seen this post a million times on here.

I quit Facebook 6 years ago, and Twitter a few months ago, didn't have any other "social media" websites. Not missing a thing. Nobody cared. Still talk to all the same people. So there's that little nugget of knowledge if you're reading this and wondering if it was hard to quit.

"Social media" never:
Got me a job
Got me a raise
Made me a friend
Helped me find X
Helped me
Changed my mind
Made me happy
Isn't charging also complicated by some fast-charge protocols? I know the phone accessory companies are always saying things like "Supports Qualcomm Quick Charge 23.45 with Sprinkles" in addition to "18 watts". I think the cables might more or less be the same, but it's still a complex ecosystem question.

I have two devices with USB-C chargers. I can make a reasonable guess that the bullion-cube sized charger provided with the phone isn't gonna be able to supply a thirsty 15" laptop, but will the 65-watt laptop brick be capable of the right wiggle-dance to convince the phone to quick charge, or will I plug it in overnight and find it saying "62% - charging slowly" when I check in the morning? I end up carrying both when I travel, eliminating the convenience that USB-C promised.

I'm also going to go out there and say that USB-C laptop charging is stupid when most devices are limited on their USB-C ports. On my laptop, I can apparently use a USB-C to DisplayPort cable to get 4k/60 output (while the HDMI is limited to 4k/30). But now I've got no way to charge it.

I wonder if PoE could be delivered through a docking station as an alternative means of charging a laptop.
I would be surprised and saddened if `?` as described in the blog was added to go. Error wrapping is critical for operating a service and staying sane; an operator encouraging `if err != nil { return nil, err }` is a step backwards.

Consider this situation(it may sound familiar): you get paged at 4am for 500s from a service, check the logs, see 'file does not exist'. go doesn't attach stacktraces to errors by default. go doesn't enforce that you wrap errors with human context by default. How do you debug this? Pray you have metrics or extra logging enabled by log level that can give some degree of observability.

This error could have been 'opening config: file does not exist' or 'initializing storage: opening WAL: file does not exist' or even just decorated with a stacktrace. Any of those are immediately actionable.

Now, if go decided to make error wrapping a first class citizen with a fancy '?' operator, I'd be excited. However, I doubt that will happen because go is definitely not rust-like in its design.
With that hard and fast rule, I'd argue that you'll be confused about what's happening for years to come.
> Instead of facebook, I now invite my far right friends over to my house where we can say exactly what we want in peace. And then we eat dinner with our copious children and discuss homeschooling, while marvelling at the rates of anxiety disorders in our leftist friends and acquaintances.

Sounds nice. I've been trying to do something similar, arranging more campfires and such for discussion late into the evenings. Toss in some cigars and a bit of fine whiskey, you can have quite civil conversations with even a fairly diverse group. Those who tend to get riled up also tend to calm themselves down a bit with the whiskey, and having something else to do with your hands (cigar, pipe, etc) means that it's a lot easier for people to simply sit back, relax, and watch a chunk of conversation flow past.

And it doesn't involve a bit of internet, cell phone, etc. I try to encourage people to leave their cell phones elsewhere. It's far more interesting as well to discuss with what you've got in your brain, instead of being able to shell out to "Well, this guy on YouTube says..." (I don't care to listen to him, either now or later).
You're reading into the analogy too much
This is exactly the problem, I guess. Demand for fire fighters is so incredibly spikey that there is no such thing as “the right amount.” We’re trying to adapt an economic system that’s designed for factories and farms, and fire fighting just doesn’t work like that.
You can return multiple values in a tuple or struct in a Result in Rust, e.g. Result<(String, String, u64), E>
Where in C is 0 truthy (or 1 falsy)?
Never had a problem with uhaul.
Flaws often represent design tradeoffs. Rust's lengthy compile times are a tradeoff for a highly sophisticated type system, where Go made the opposite choice (a simple type system for fast compiles). As a web engineer I prefer the latter for a rapid development/debug cycle.
That's false. It's correlated very highly with intelligence.

Moreover I'm not mounting a defence of the SAT here. I'm mounting a defence of meritocracy. I was merely pointing out that the SAT is the most meritocratic aspect of current admissions procedures given its very high correlation with intelligence, even if it is imperfect.
your data is stored on the blockchain, your applications are running as perpetual smart contracts, and you can access it from anywhere in the world with just your private key

How would this work if I had O(Tb) of data?
> This is where Urbit shows its age: it has no ambition for decentralized server ownership. The notion of a user running their own server, having to guarantee its uptime, backup its data, etc., is antiquated. If Urbit were reimagined in 2021, it would be running on Sia or Ethereum: your data is stored on the blockchain, your applications are running as perpetual smart contracts, and you can access it from anywhere in the world with just your private key.

Where does the author think blockchain crap stores things? Hint: It's on other people's servers.
> You must be making investment decisions without looking at any corporate documents.

Well, I've never actually invested in any company before. Mostly because of stuff like this. I always assumed there's some insider information I'm missing out on.
This all all exciting stuff, but 3.11 comes out in 2022. 3.10 is supposed to come out tomorrow though, you can checkout it's "What's New" here:

https://docs.python.org/3.10/whatsnew/3.10.html

3.10 release schedule:

https://www.python.org/dev/peps/pep-0619/
It's true, but only because every app essentially isolates itself from the system and carries around its own dependency bundle. I guess that's kind of what Docker containers are, so it's hard to be critical.
I don't know what you meant by that. A quick search shows that it might be "force-write a file without write permissions."

Are you trying to say you wish you could edit my comment? If so, why?
and what is not securities fraud is wire fraud.
> I voluntarily deleted my Facebook and recommend you do too.

Yup, already done.
I’m not holding my breath for Python NT however.
Folks have given a number of good options here, but I thought I'd mention some other ones in case they're helpful for your use case.

1) docker! If you only plan on tinkering with something and don't want to install a bunch of random things on your machine, this command will start a python 2 image with access to the current directory: `docker run --rm -it -v "$PWD:/app" python:2.7 bash` (IIRC, on my phone atm!) (Windows users will need to write `"/$PWD://app"` if using mingw/etc). Once inside, you can pip install, etc, and it'll all go away once you exit the terminal! If you want it to stick around, don't use --rm and add a --name to give it a name you can remember for later. It does require learning some docker, but it's a good investment :) I use the same technique to try out/play with other languages, versions, packages, etc. without making complicated mods to my actual computer. And there might even be docker images that come with certain packages/etc pre-installed for certain use cases!

2) Pycharm! A good python IDE, with virtualenv support baked in if you don't feel like playing around with a bunch of commands at all. Although disclaimer, I can't fully remember how hard it was to get things setup (or how easy it is to work with multiple python versions), so YMMV.
Is it possible to use VS Code as editor? It will be a wonderful experience.