jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
Not sure if i understood, but here's my summary from what i got from this:

In fewer words, the argument is this

std::vector<std::string> get_names();
std::vector<std::string> const names = get_names();

Passing by value causes a lot of under-the-hood moving and copying which is slow. but we will learn later why this is actually correct.

get_names(std::vector<std::string>& out_param );
std::vector<std::string> names;
get_names( names );

Passing by reference causes the need for many extra lines of code to be written throughout the code base, no more constants, mutating variables, other crap no one ever told you about when learning about pointers.

The solution to both of these is to use "RValue expressions".
RValues are expressions that create anonymous temporary objects.

When defining variables, using RValues allows transferring ownership of, in this case a dynamically allocated string array (vector), from the source vector to the target vector.

When using functions, returns are also anonymous temporary objects, so we transfer the resources from the return value to the target value in the same way as with variables.

Oh wait, the compiler actually takes care of optimizing stuff for you, it's called Return Value Optimization (RVO) and it works like this:

std::vector<std::string> names = get_names();

Oh shit, isn't this what we wrote as a first example that's expensive slow? yeah well, apparently there's nothing to worry about. use this.

Do pass a function within a function, because then you're passing rvalues as parameters which is unicorn-level magic

std::vector<std::string> sorted_names2 = sorted( get_names() );

RVO optimizations aren't required by any standard, but "recent versions of every compiler I’ve tested do perform these optimizations today."

Don't pass a variable by reference and then make an explicit copy of its values - that defeats the whole purpose of what we are trying to talk to you about

Guideline: Don’t copy your function arguments. Instead, pass them by value and let the compiler do the copying.

Lesson: don't explicitly copy variable references, just get their values and the compiler will copy optimize for you
Well, the article says he graduated in 1975, so probably the obnoxious prof's are long dead/retired.
Very often, acquirers will ask to have an "exclusive partnership" with you instead of outright acquiring you.

SAY NO.

Take just want you to take all the risks. If the partnership doesn't work out, you're pretty much out of business because you gave up everything else for that exclusivity.
Funny to see this one downvoted.
i think its only the hordes of terrible C++ programmers that make it seem that way...
Actually, i disagree it's a bad idea to have two devices; I trust that the apple extreme will work fantastically to share a disk for me; they get the OS and the fs, so it's pretty straightforward.

A one device solution? Well, that'd be a router, switch, hard disk... (can you say, computer?)

sometimes we want stuff that's single purpose, done well, easy on the power/heat/etc. I now have an appletv on a turn-off power strip, enabling me to 'turn on' the tv system and have something running easily, rather than having to get my laptop out, an external disk, try and make it all work. Ugh. madness.
Now that is a hacker! excellent.
It's only a contradiction if you force a narrow interpretation.

If I read a paragraph, for example, that takes an issue from each gender's perspective, I know that they're painting with broad strokes and that they probably know about hermaphrodites but just didn't mention it.

I don't think someone needs to acknowledge chimeras every time they write something that assumes a person has one set of DNA.

Sure, it's fun to be Pedantic Man - the superhero whose power is that of being willfully obtuse - but I can read that paragraph and still think he's captured the two aspects of myself that are actively debating about the relative merits of the two platforms. And most people do develop brand loyalties. You and I are somewhat exceptional. I'll be the chimera; you be the hermaphrodite.

I get the sense that you'll say anything to prop up your hate, though. Go on ahead without me.
Same guy behind this and the Kinect project though - Alex Kipman.
http://en.wikipedia.org/wiki/Border_search_exception

You're required to present proof of citizenship and allow a "routine" search of your belongings for contraband. A "non-routine" search requires them to have a reasonable suspicion about you specifically. My own reading is that a backscatter scan or s search of your body would count as non-routine, but of course a court may disagree.
Not yet. We've been busy on our latest hack today, but as soon as we can find a spare minute we're going to do some updates to uwchat.ca
So you had an account before and it worked?

I have on account, but I'm not a customer. I wonder if this deal applies to me too.
You mean this is what happens when you have a gigantic state government bag holding for you with a given mission of wiping out all competition.
Should have set up a Stripe terminal claiming to be collecting donations for Trump.
So if the cops shoot and kill an unarmed protestor, as they did yesterday, then the protest is bad. Otherwise it's good. That's... an interesting rubric.

Besides, 25 people died in the BLM protests.

https://www.theguardian.com/world/2020/oct/31/americans-kill...

Four people that died in yesterday's insanity were protestors themselves. Three were "medical incidents" and one was an unarmed woman who served her country shot by the police.
Reported for trying to start a flamewar.
Not aware?

You must be blind.
> Georgia's election result from November was counted three times over. Georgia is confident the result is correct.

> Nevertheless, Trump attempted to get the government of Georgia to commit election fraud for him. He wanted them to "find" an extra 11,780 votes for him.

Not quite true - that's the misleading summary people have been spreading, started by an out-of-context clip of the conversation. He wasn't trying to find extra votes, he was trying to find and validate votes which he believed could add up to 11,780 disqualified. Just re-counting the votes does not do this, those ballots would simply have been counted each time.

Two of the relevant quotes from the transcript:

> You had out-of-state voters. They voted in Georgia but they were from out of state, of 4,925. You had absentee ballots sent to vacant, they were absentee ballots sent to vacant addresses. They had nothing on them about addresses, that's 2,326.

> The other thing, dead people. So dead people voted and I think the number is close to 5,000 people. And they went to obituaries. They went to all sorts of methods to come up with an accurate number and a minimum is close to about 5,000 voters.
> With restricted outside activities

I think it's fun to pick a direction and drive in it for a few hours. For me it's been a great way to discover more of the less-travelled Bay Area counties where crowds can be hard to even come by: https://www.youtube.com/watch?v=RXh0bQIZw1g

It might not comply with the exact wording of "staying in [our] residences to the extent possible", but it seems foolish to think I'd be hurting myself or anyone else going between my garage, an enclosed but well-ventilated glass bubble, and my garage again. I do avoid stopping anywhere however :)
If you can do that, there's no need to change any keys. You can just look at the DNS requests that come in and the hostnames will be revealed that way. That is why it is important to also use encrypted DNS in addition to ESNI.
What specifically is the position? Also how in depth do you get?
Great thread, hope it survives for long or gets reposted.

Related, there is also https://www.fossjobs.net/ for open source jobs.
People are starting to understand how Google and Facebook really work and spreading this knowledge is good for everybody including Google and Facebook. And I don't care that you don't care. Let people talk about what they care about.
Firstly, have you read ImaCake[1]?

Secondly, if you're so smart, why didn't you write this essay, and refute it yourself?

[1] https://news.ycombinator.com/item?id=21622871
He was such an odd character. On the one hand he is clearly smart enough to have drawn in enough people into MLM crap that he's a millionaire, and yet he fell for OneCoin.
> How about we care about the real people that can barely/cannot afford food/housing/etc because businesses don't pay enough

Obviously depending on people to care out of the goodness of their hearts isn't working, if someone really cared about these people they wouldn't be in their situation. You can ask me or anyone else to care, you can even pressure them into appearing to care, but you can't really make them care, so this is a bad way to solve a problem.

If a good system that doesn't depend on emotions, media performances, or pathos can be put into place, it's probably going to be more reliable in the long run, and can mutually benefit both those in bad situations and those who would like to be able to walk in a city without getting asked for money constantly.

Hence it's very valid and good to ask what exactly entails things like "basic expenses" and use hypothetical situations.
Other countries manage international to domestic without picking up your bag! There must be some way.
> Disclaimer in bio.

Honest question: why not just write "I work for Google" instead of asking people to click through first? It's not significantly longer if that's what you're trying to avoid.
Matrix[1] is trying to solve that issue, I'd highly recommend looking into it. I actually pipe most of my various "chat" networks (including WhatsApp) into it via bridges[2].

As you said, we in Europe are kind of forced to have WA installed, but at least you don't have to use it as your primary client if you don't want to. You can even deploy it to an Android VM and go completely headless, if you feel the need.

[1] https://matrix.org/

[2] https://matrix.org/bridges/
Sounds interesting; I hadn't heard of PCem before. Does it always require a BIOS image from an original computer, though? Or are those just for some potential machine-specific functionality or something? The table of emulated systems lists ROM image file names, yet no ROM images are included (of course, as they're under copyright and proprietary).
Palm oil comes in chemical tank ships.

These have a lot more piping than oil tankers, so each cargo compartment can be loaded with a different industrial commodity, some of which are known to be highly incompatible, such as acids vs alkalis. There's usually 10 or 20 different chemicals on a vessel at any one time.

This way if they are careful, the operators on board and on shore can transfer the parcel, without significant enough contamination from foreign chemicals in other tanks, otherwise the material would fail to meet specifications.

Not everyone is as careful as they should be all the time.

When a cargo does go off-test it can take a lot of prime material to blend it with in order to pass.

It can be a headache of industrial proportions. Lloyds of London can get involved.

For that reason I hate it when a benzene or methanol transfer picks up a little too much palm oil.
Jup, MS Colab is one of the many commercial Jupyter/IPython notebooks available. There are also Y-combinator startups like https://deepnote.com/

I hope that these closed source commercial platforms give back something to the open source community around Jupyter once they get out of the red numbers.
I usually have those feelings when I'm bored or not challenging myself enough.
I've been resisting the Facebook (including WhatsApp) monopoly but at personal cost so I'm starting to capitulate. The network effect has been discussed at length already, but imagine if the phone system was controlled by a single company and you could only call customers of the same company!

For those living in the EU and UK (where GDPR still applies), has anyone had success with an Article 21 "right to object" request? For example, objecting to the sharing of data with Facebook when using WhatsApp. It is not an absolute right, it's supposed to be depending on individual circumstances so I expect there's lots of wiggle room for their DPO/legal team to refuse, or just stonewall. I'd love to be wrong, so please share...
Yea, with these kind of generative examples, they should always include the closest matches from the training set to see how much it just "copied".
Snapshots need a retention policy and management in general.
I find it pretty hard to believe your source, considering it's a self-identifying conservative site blaming "big tech censorship".
I hope Twitter doesn't become a commonplace location to put this type of info. I love teardowns, I loathe Twitter.
I'm not coding because I'm reading a webcomic about why other people aren't coding.

Feature request: when someone goes to "https://whyarentyoucoding.com/", can you cleanly redirect them to "whyarentyoucoding.com/NAMEOFCURRENTCOMIC"? It makes it easier to share the latest comic since sharing whyarentyoucoding.com results in a stale link after a few days.
Most likely you tried to run a command, this command was part of a package that has not been installed, and Ubuntu suggested to you to install a specific deb or snap package.

There is a usability package 'command-not-found', which is a handler for the shell and runs when the command you tried to run, was not found.

You mentioned though that you tried to install a package, the package was not found and got a suggestion to use snaps or something. There is no such thing as far as I know.

There are two packages, 'chromium-browser' and 'lxd'. In Ubuntu 20.04, both these packages are now only available as snap packages. If you try to install them with `apt install`, you get a notification that they are now only available as snap packages, and the installer transparently installs the snap package for you. This has been discussed a lot before implementing, and also here. The gist is that when you `sudo apt install chromium-browser`, you want the installation to work, not get an error message to run `sudo snap install chromium` instead.
The idea that it is inflammation, not cholesterol, that is causing heart disease, is not new. See here:
https://www.bloomberg.com/news/articles/2008-04-15/heart-dis...

Also see collection of links at bottom of this article: https://medium.com/@petilon/cholesterol-and-statins-e7d9d8ee...

Cholesterol reduction is big business. Pfizer’s Lipitor alone raked in $125 billion between 1996 to 2012. This amount of money can be very corrupting. It’s almost impossible to find experts who are not influenced by money from industry.
It seems incredibly optimistic to assume that one gun company shutting down would meaningfully change the number of guns available. The demand is still sky high; at best this would delay consumption until other manufacturers add more capacity.

More realistically it would change what type of guns people own. Fewer Colts, more Glocks, I presume. From a public policy perspective that’s no change at all.
How does the SF school board have anything to do with the media? This seems like really digging hard for something to be mad about.
I wonder if the money is withheld because it'll be returned to the advertisers - or whether Google actually keeps it. I'd be surprised if Google charged the advertisers for traffic that it detected to be fraudulent.
If you read the article, he's not making that assertion about the relative worth of Android. (And opening up with that as the basis of your argument is a disingenuous tactic, if done intentionally.) He's arguing that the third-party software library is weak, especially away from "enhancement/tweak" type software.

Flexibility is useful only insofar as it translates into capabilities of high value to end users. It's not a feature, especially if you're an end user and not a programmer/hacker. In most product domains, users have clearly shown that as the category matures, they are more than willing to sacrifice flexibility, the ability to modify and even the ability to repair at home in favor of a more integrated, reliable and cheaper product. (See: cars, home electronics, home appliances, clothing, food.)

Consumers evaluate product purchases based on what the device can do for them out of the box, not after hours of tweaking and configuration. Frankly, I don't think _either_ platform truly has "killer apps" - I don't think people are going out and buying iPhones so they can play Star Wars Arcade: Falcon Gunner or something. A "killer app" is an exclusive app that drives customers to buy that platform just so they can run it. Arguably at present no such app exists on either mobile platform.
How much do they lose if it just sits on the shelf?
Couple of points:

1) You are saying too much. Saying stuff about looking for the best is obviously your purpose, so no need to say that. Now, you are left defending yourself about being Jerk. For somethings, it is best just to give the facts.

2) Why aren't you hiring developers from your network?

3) You should try to come off as "We are awesome, and we want you to be awesome too.", not "We are awesome and you are not".
Unfortunately using encryption (like SSL) in your iPhone application generally subjects you to export compliance restrictions. This involves filing government forms and waiting some weeks.

Sample process for filing forms outlined:
http://zetetic.net/blog/2009/08/03/mass-market-encryption-co...

There is an exception of "for purposes of authentication" but I'm not sure if it helps if you're always using SSL. Would be interesting to have someone chime in here.
Microsoft had to do this since they are that far behind in the game. They probably blew billions to do this and not to mention, this is not a sustainable strategy. Google, on the other hand, should probably improve their NDK, which a number of changes are coming, to attract developers that way.
Have you used Locale? I've used it for awhile and haven't seen Tasker before.
But in this case I think it's appropriate. Naughtiness does seem more prevalent in successful people than in average joes.
maybe the app could capture alt-tab to toggle between the files you've already viewed in a repo.
Gamification is simply the application of a ton of learnings (and in some cases, pure intuition) about how humans behave, what drives us, and how to keep us engaged. In terms of "stick badges on it and people will keep using your product", gamification is not going to hang around all that long, ruined by poor execution and over-exposure (as with any UX trend).

However, the trend of humanification -- designing for and by humans, taking us away from an age of faceless software -- is well underway, and I don't think that's going away any time soon. I also think that's a Good Thing.
It limits his options, for sure, but might broaden his scope of influence either.

Whatever evil he is protesting, as a product of university, presumably there are others that feel the same. He might very well have endeared himself to them, making it easier to find a job.

Further, while he might be seen as difficult by some, he might be seen as a champion by others.

If nothing else, it might just have assured him that the place he finds employ will be a better fit than before. Those biased against him or his cause won't entertain the idea of employing him, while those that do are likely to better align with his ideals.

In practice, you may be right -- he might have a difficult time, but now that he's (in)famous, I think those doors will open.

Omarosa (of "The Apprentice" fame) has found gainful employ after repeatedly portraying herself as an indignant, hard-to-deal-with bitch on a number of reality television shows.
Thanks for the kind words. I certainly plan on expanding it.
Browser add-ons allow non-admin users to filter these requests. Installing a proxy or editing the hosts file requires admin privileges.

uMatrix also allows you to quickly and easily see which sites are trying to load what resources, which you lose with a hosts file setup.
This was really fun to watch. I read On Intelligence, by Jeff Hawkins several years ago and wondered when or if Numenta was ever going to get off the ground. It looks like they're getting close to their goal. Yeah, there were no real demonstrations, but this looks a lot more promising than previous AI/Neural Network stuff.
Your first question is fairly common too-
select * is to be avoided if your table can change or you care about order of columns.

Select * is better from cte/temp table because you then only need to make changes in one place.

I'm not sure how much deeper it's possible to go.
Before dissing capitalism, try living under one of it's alternatives for a while. Generally speaking, they haven't worked out so well in practice.

It's funny how a marginal increase in wealth ratios has people spitting out their Starbucks and throwing down their XBOX controllers in disgust. Meanwhile people in China are clamouring for as much capitalism as they can possibly get, to lift their families out of grinding poverty.

That doesn't mean there aren't issues to resolve. Clearly there is some recalibration required in terms of an equitable redistribution of the benefits of our economy, but I think some degree of perspective is in order.
It was discussed before, it will be discussed again. We've presumably got new users and new insights in the last 3 years.
At the moment data roaming in Europe is still a nightmare, most providers make you pay ridiculous fees when crossing a border. The EU commissioner for IT & Telco (Nellie Kroes) recently threatened with legislation if things didn't improve and now several providers started offering some kind or "Euro roaming" subscription.
Well, first to take the stackexchange and form BugOverflow wins :).
Is it bad if I want to live in that world ?
Sticking with the same set of technologies is a premature death for your career as a programmer.

The whole article builds up on a point that people tend to fail more when they are using new tools. That point is false. In reality, when you use a wrong but ’accustomed’ tooling in inappropriate situation, you end up writing code that you would never write if you had chosen right tools. You are effectively reinventing the wheel.

You also have an idea about ’innovation tokens’ that builds up on a static representation of weight of a new technology in a project. That is ridiculous.

There is no definition of ’boring’ in this article. I don't understand why you call PHP, Postgres and Cron ’boring’. What is ’interesting’ then?

It seems like you have made a wrong choice while thinking about the problem. The problem is clear: people fuck up projects by using modern, hyped technologies that are inappropriate for project's domain. They are just as wrong as you are.
Langston Hughes is the only poet to get me interested in poetry. I'm surprised that not a single other person here has mentioned him. Perhaps I shouldn't be.
I am at my first year of law school in Turkey, so I might be wrong. But in my country there are private companies who collect and summarize court decisions. They also offer search engines.

As far as the changes to regulations go, they are announced in the state paper, with a starting date. All lawyers are obligated to follow the changes.
The ministery of justice also offers a service, they collect all the law texts and publish them. Although recent changes come with a considarable amount of delay. So you use it at your own risk.

In germany there is an excellent site:
http://dejure.org/gesetze/BGB/413.html
You can browse the regulations and read the comments and decisions based on that very regulation. I hope we had a similar site here in Turkey.

Moreover, I also have to state that law regulations don't change quite often. The regulations that change are usually very specialised. All regulations already have a structural order. Especially code books like civil code have regulations that can't be treated seperately.

Last but not least, UK and US have a different law system than France. French law has its roots in Roman law. Nearly all regulations are written in books like civil code.