skysight-inc/HackerNews huggingface dataset:
While copious amounts of alcohol were drunk, it wasn't hard liquor, "normal" wine or beer; mostly low alcohol, enough to sanitize and preserve it, not enough to get you pissed up.

That said, I'm sure being an alcoholic was much more accessible back when because of (relative) cost - alcohol is relatively expensive nowadays compared to food, water and other drinks.
I don't really share your opinion, I think bad devs will write bad code and good devs will write (mostly) good code, with or without it.

The problem exhibited in TFA is not so different from people copy/pasting StackOverflow answers without understanding them.
The PC Is over (2012)
Legal for Startups
Hello, I am Clawdia. I manage a legal blog. I will talk about topics that concern startups, like equity, IP, founders agreement, incorporation and more.

I do invite you all to gain so valuable insight from my first post (and other posts you may find interesting).

https://bit.ly/3yciHVD

If you have any feedback, I would love to hear from you at clawdia@clawdia.ai
> why didn’t they tell us it was this simple?

I suspect different people probably did try to tell me versions of that, but it’s very hard to learn deep feelings from hearing other people talk or reading their words as compared to living it yourself. You can read about others’ heartbreak but you learn from your first few breakups. You can read about having kids but nothing prepares you for the deep feelings of parenting.

Maybe being doomed to repeat the learnings others have had is part of the point?
Your approach is lawful, the one in the article is chaotic.

Your approach is planned, with well defined onboarding and offboarding and with a report in the end. Personally, I hate it just for the idea of having to write a report.

The article approach in unpredictable. At the last moment, you know you are not part of the team anymore, and all communications are cut. People have to take over even if you are in the middle of something. It also involves managers. I prefer this, if anything, just because there is no report to write except if things go wrong (i.e. you break the "no communication" rule).

The chaotic version of your solution would involve periodically drawing two team members, including managers and having them switch teams immediately. For each individual, the period of change would follow an average but be random. And no reports :)
I recently discovered and am enjoying [0] for the cli, and [1] for decoding shell fragments encountered in scripts

[0] https://tldr.sh/
[1] https://explainshell.com/
Same, food industry will never crash and it always can be improved with some computer technologies.
What are they even going to do with the money? More languages? Teaching to a higher level?

Seems more like cashing in on frothy market (or cashing out some VCs)
I'm exited to see the battles between my SAST tool and my AI autocomplete in the future.
Been living there for almost 50 years. Works fine.
Talk about shifting the Overton window. How left-leaning are those causes really? Accepting gay and trans people for who they are isn't exactly radical Marxist theory.
Sure, but there's nothing in the constitution saying minors have less rights. So it's just as "wacky" to give them less rights based on the text of the constitution as anything else.

My point is any constitutuonal debate is going to be wacky. All that really is going to matter is how a judge feels, ultimately.

Incidentally the text of the constitution was only meant to apply to the federal government initially so based on the actual text state governments can 100% ban guns, ban free speech, throw you in jail without the right to an attorney, etc. The Supreme Court does not interpret the constitution in that fashion today but that's a judge made reading.
I gave the following prompt:

// get password from the database using a mysql query
function fetch_password(string $username) {

And 7/10 parameters are vulnerable to SQL-injection. Here's the first:

global $mysqli;
$query = "SELECT password FROM users WHERE username = '$username'";
if ($result = $mysqli->query($query)) {
$row = $result->fetch_assoc();
return $row['password'];
}
return false;

Here's all of them: https://paste.ubuntu.com/p/9qQ2BSnqbF/
The thing is that too consume alcohol at a harmful level you pretty well need distillation, which only came in about eight hundred years ago, so this doesn't leave much room for evolution!
Reverse Engineering Bumble API
Hey, I was trying to access bumble API. I had given the API, the cookies, headers and payload but the server is returning error message?
Can anyone help me here? I am confused because the same headers are working in burp suite.
Yeah, I don't have to have a substantive response to a strawman.
Copilot just has the wrong experience. There is nothing wrong with suggesting an algorithm with a code snippet as an example. That is its core use, and it does the job. It just needs the snippets to be clearly marked as such, with a way to track that you reviewed the code and adjusted it to your use case.

When people make security corrections to those snippets, ideally it would learn the corrections. Perhaps even have a feature to flag a snippet as insecure, to help that process.

Copilot is imperfect, yes. But there is a large grey area between perfect and "utterly wrong"
I'm afraid I don't understand your argument. The programmer is still ultimately responsible for the correctness, and quality, of the program. These are just very advanced IDE hints.

How is this approach "wrong"?
Eventually customers will demand stablity as a feature.
The thing is, the technology to do it right is just not there yet. So unleashing this stuff without making sure it can be controlled the right way is basically a Jurassic Park scenario.
Copilot can be treated like a smart stackoverflow copy'n'paste mechanism. You still have to choose which variation aligns most closest to your needs and then do a final edit to make it fit the problem at hand.
To the extent that being remembered after your death matters at all, then absolutely, yes. To go back to the original point of comparison, many more people know Ramesses II now than have ever heard of Paul Graham, and this is when pg is still alive and probably near the all-time peak of his fame. There's a relatively small, but not that small, number of people who can name some of Ramesses II's monuments or other achievements without looking them up. And there are many millions of people who are vaguely aware that he was one of the GOAT Pharaohs, and that was more or less the core objective of all the monument-building.
Haha, I have to remind myself constantly of the now existing ?? operator.
So if we can’t trust an AI to write routine code because it is unsafe, how shall we ever trust it to drive a car where physical security of human beings comes into play?
Why doesn't the example he criticizes use a plain text request body when it's only a single parameter anyway? And is he seriously recommending HTTP FORM POST data as a best practice to send API request/responses when you're using JavaScript? At the end he even touts the ability to convert the request to JSON (well, technically, to a JavaScript object). But porquoi when you could send an application/json request in the first place?
Please don't thank me for doing my job
...I do it because it's my job, not because I am trying to make you happy. Don't get me wrong, it is good to be appreciated but thanking me in this way puts you in a position of authority that you may not actually have.

Conversely, I won't thank you for simply doing your job, unless it was part of some truly kind action for which I am likely to be genuinely grateful. I might compliment you on doing a good job, sure. But I won't thank you for it.
In my professional lifetime, I have developed several technologies. Most of them as a hobby, and about 90% become fully functional and production ready.

Some of them got sold; some others went nowhere. Overall, those projects have not made me much direct income - I can develop technology but I am terrible at selling stuff (actually, I am not so sure if I am bad at selling because I have zero interest, and the effort that I made to sell is quite proportional to the interest that I have).

However, all those projects allowed me to have a better understanding of many different facets of software development, and my actual area of expertise is quite deeper and broader compared with other professionals of similar background and years of experience.

It has also allowed me to get to know a lot of people, become a technology speaker, and perform many risky experiments - which I wouldn't dare to do when I am hired in another businesses - which provides me a unique insight on how to actually develop technology (for example, all those experiments confirms that if you are not using data driven approach to make decisions you are being massively inefficient).

Eventually, I decided to go full on with one project related to infrastructure automation (this topic is really cool!!!!). This project evolved to consulting services. The interesting part is that this project is quite interesting and well put together (although sometimes a bit hard to get started) but once you have set it up it is amazing, as I have confirmed with many consulting clients. But when I think about actually selling it, the excitement collapses quickly. I just tell people about this solution when I am requested to solve the problem by the client. (if anybody is interested the project is manageacloud.com, although there is a price structure I am actually not charging anyone).

Did I waste time with this project ? Well, it provided me with a direct income. Allowed me to show expertise to speak in several big technology conferences, and I got around 15 (yes, unfortunately not kidding) interviews with Google where somebody internally got the position(s) Google suggested to me until those interviews were becoming routine. I have managed to work from home for 6 years with consulting services, in very interesting projects, in huge business and well funded start-ups.

Working from home has allowed me to do some crazy stuff such as become black belt and fight in full contact international competitions. This would have been much harder with a 9 to 5 job, without the freedom to work whenever I can.

Are you thinking of making a project ? Throw it all away and go full on for it? Just do it. Why not ?

What will you think of yourself 10 years from now, knowing you had the opportunity and didn’t do it ? Asking yourself what would have happen? I cannot live with this thought.

What is the worst that can happen? Well, I am going to rephrase: How hard would it be for you to find a position similar to the one that you have right now?

Go for it. Well, actually, if you don’t have debt go for it. If you have debt … then it depends.
I really liked the initial version of Duo Lingo but I've found it increasingly less fun to use as all the engagement hacking has crept into the site.

I expect that will accelerate and things will start falling behind a pay wall soon.

I don't mind pay walls even remotely but I hate the bait and switch which is the mainstay of startup products. I guess I understand that it is often the only way to reach enough customers to have a chance at all, but it still sucks.

Also, I personally hate gamification, even when it is operating over something I want to do. It feels condescending and manipulative. I'm an adult. I can learn things without earning little virtual jewels and shit.
Just look into the name of the program. It's "copilot" and in my understanding the intention is just to give suggestion and in not to write provably correct program which matches some given specification. Think of it as 10x of autocomplete, not 1/10x of human replacement.
We need a Butlerian Jihad against AI
One fun exercise might be to go looking for cases where Copilot doesn't find anything.

Then crafting some keyword seeded code that it would scoop up and retrain on.

Would be interesting if you could get some adversarial code to be the suggestion for some notable niche.
I’m not a Mustachian by any means, but this post resonated pretty strongly with me when it first came out: https://www.mrmoneymustache.com/2012/01/13/the-shockingly-si...
Rally (YC S20) Is Hiring a Full Stack Engineer/Future CTO
Like many things Pandemic related, this isn’t creating a new trend but rather accelerating trends already under way.

Push for WFH at your peril.
I have heard it mentioned before, but I wonder how long Copilot is banned from companies due to licensing issues.

I'm not a lawyer, but I can see the risk if code seems to be substantially copied from copyleft corpuses of code.

I'm reminded of the "9 lines of code" that was disputed in Oracle vs Google.

https://majadhondt.wordpress.com/2012/05/16/googles-9-lines/
I really enjoy writing parsers. It’s just really fun, though as the article suggests, error detection and comprehension is hard and tedious.
Show HN: How Can AI Help People Slow Their Aging Down
Is that 99% better than your junior coworker? If the answer is yes then corporates and developers will use it, certainly.
> It seems like it's saying something, but, really, it's not

This was the same takeaway I had of your comment. It reads like glenn beck.

Purpose & meaning are strong motivators and I agree with the author that there is not enough focus on that to help promote agency in individuals. There are societal failure(s) to be highlighted here, despite your unwillingness to see them.
I'd like to know how the average battery life and power requirements are of the different standards. For example, I've got a 5G phone but to spare power I sometimes switch to 3G or 4G even though I don't really know if it's really more power efficient. I suppose 5G has a lot of power efficiency techniques built in as well which are not in 3G or 4G.
Alas, an AI war at my own fingertip. I'm quite excited too.
Absolutely not. You can kill yourself with beer just fine over the years.
IMHO it's complicated: US military spend includes tons of R&D, including stuff far from direct weaponry. Sure, it's a small % of the budget, but still vastly more R&D spending than most countries.
The likeliest outcome is the one described in Ezra Klein's recent pod episode on AI - most vocations will be helped by AI, but it will still require an operator to QA the results and solve the bigger problem at hand. AI is not magic. You don't just build it once and walk away. It requires constant effort in care and feeding.

In our case, let's not pretend that React will be around forever. Once the new Hotness in the JS world shows up (and i't very easily distracted by shiny things and cool names), you will need to train the models, all over again.

The pod:
https://podcasts.apple.com/us/podcast/is-a-i-the-problem-or-...
Yeah, this point I really don't get.

Your job as a programmer is to ensure the correctness of the code you write, Copilot isn't really changing that.
why are meetings special ?
If you have a thought that you want to revisit later, but think may not remember to, put it on a list.
If you read something on the internet you want to revisit later; bookmark it, or put it on a list.
Do the same with meetings.
If you hear something worth putting on a list, do it.
Tiny Operating System for Tiny Computer
A "copilot" is also a pilot and can take over when needed. The name does not imply helper, cheerleader or advisor.
It's called "Copilot" for a reason: you are still in the driver seat, and the tool is just there to give you better hints and direction.

I would agree with you if it was called "GitHub Self-Coding" where you are the destination clerk and letting the tool code. But that's really not the goal of the tool. Don't put it in hand of non programmers
You can't be an alcoholic using wine / beer? How did you get to that conclusion?
The problem is with Copilot, or over-relying on it for its purported convenience, bad devs will have a harder time becoming good devs. Discovering what code to write and what their exact effects are is a major part of the journey to becoming good dev. If humans aren't going thru this process, I very much doubt they'll be able to quality control the code Copilot dumps in until later in the cycle. Doing things the hard way is essential for being a good dev.
Show HN: TypeScript code generator for your app’s ORM, APIs and tests
Francisco Goya: 2 Royal cartoons
Agreed, but I guess we're talking about slightly different things (and perhaps I missed the point of the 'oxygen' remark) - I was saying, Amazon's system is designed that way because Amazon are greedy (that's the root cause), and that it's cynical to say that it's just because they're human (and therefore implicitly greedy). Vaguely worded statements on my part though, I should've been clearer.
AI is not a hive mind, and each will have varying levels of research, effort, and validation put into them.

This is like asking, IMO, "how can humans be trusted to pilot planes, when my barista can't ride a bike?"
but, what's the actual issue?

XSS?

what's the vector attack here?

where the `text` comes from?
Other people have good answers to this question in this thread, but here's my attempt at the beginnings of a programmers introduction to music theory:

https://github.com/abetusk/scratch/blob/release/notes/Music-...

voting749227383 has a good response but to elaborate on the 12 note choice more, there's some justification of why 12 as opposed to some other number [0]. 12 notes gives a good compromise of the ability to combine notes in the scale while still not being too large to be unwieldy. In other words, some large ratio of note pairs have frequency ratios with small numerators and denominators when chosen to be from 12 notes as opposed to 11, 13 etc.

I hadn't heard about the C vs. A issue, so it's interesting to learn that it's from the monks. I assume the sharp and flat notes are because they're trying to differentiate, as much as possible, the discordant neighboring notes and maybe trying to promote some base mode/scale (like C-major).

[0] Measures of Consonances in a Goodness-of-fit Model for Equal-tempered Scales by Aline Honingh
How is github copilot worse than a very laborious but a very junior developer who can search stack overflow for you and bring you code snippets that sometimes are spot on and sometimes are plain wrong? Presumably that's why code review exists...
Show HN: Pixelhunter – Let AI resize images for social media
Disease is one thing, but I think social life is better for the average moderate drinker which makes drinking (moderately) the healthier life choice if you zoom out a bit.

I am not an apologist. I have come to dislike alochol, and I’m trying to cut it from my life. But, at least here in scandinavia, having work, a love life and friends can be dependant on you drinking.

A fun thing i’ve noticed though, is that Tinder has alleviated this dependancy on alcohol quite a bit.
I came across something like this in a big codebase the other day. Experienced developers weren't paying attention to query string encoding, and this created a huge security problem where two different services could be processing different entites because of parameter injection.

Imagine if I logged in with the email "sdflhasjd@gmail.com&email=admin@service.com". Service A thinks my email is invalid, it gets passed to another service without re-encoding and then Service B thinks I'm a superadmin. Uh oh.
These teachers were not wrong about it - people do treat Wikipedia as an authoritative source of information.

What makes Wikipedia work anyway is a conflation of two things:

- Volunteers keeping it correct put in more effort than people trying to sneak in lies on purpose. There are many reasons why this is a case, one of which is, there's really not much to gain trying to mess with most Wiki pages.

- Whether or not a typical person is correct about something doesn't matter much.

- In cases where being correct does matter, it's usually easy to discover you're wrong. Life isn't a quiz show, you don't lose if you answer incorrectly - you get smacked in the face by wrong results, conflicting facts, inconsistent knowledge, and you get to course-correct. You ask around, grab a textbook, and fix your facts.

The second point is big and somewhat sad: it truly does not matter whether or not a random person has an accurate view of the world. Beliefs that have noticeable or immediate impact on one's life tend to be automatically corrected (see point 3) until they're good enough - all the rest of the knowledge serves a single purpose: social grooming. It doesn't matter if a news story, or a piece of trivia, is true - as long as you can tell it to someone and have a nice conversation, it's achieved its purpose. People who care about the truth for the sake of truth are the exception, not the norm.

Back to the topic of GitHub Copilot: code does not serve a social grooming function. Pretty much all code matters at face value, because it directs machines to do things. When Copilot feeds you bad code (or you mindlessly copy stuff from StackOverflow), the result is called a bug. The way reality corrects it is by the system failing, and someone having to debug it. This is expensive, so you want to minimize that.
> if the "patient" wants to admit

You are being down-voted. So, I guess that the answer is "no, we do not want to admin any problem" , at this moment, here in Hacker News.
You could be right, Occam's razor and all that, but I think 'good enough' is a carefully chosen strategy tuned to maximise a bottom line rather than an accident.
It's interesting to me that the next few steps of this technology evolution might be that we loose the ability to prove our code correctness forever. Every program will just be a certain - measured by tests - percentage of accuracy against some goal and that's it.

Then when every program is eventually upgraded to this status, all of the code we run is bootstrapped through proprietary AI - including the AI itself - and it's black boxes all the way down. Programming is now an experimental science where we gather evidence, test hypotheses, press the "copilot" button and tune parameters, like evolutionary biologists studying DNA code.
Hello. Minor feedback -

- It wasn't clear to me how I would integrate this in my website. Would I have to add some code or can this be done in some other way.

- In the end, I signed up, after which it asked permission to "See and download your Google Analytics data". My website doesn't use Google Analytics. Is Google Analytics a strict requirement? I'm using Plausible.io

- Clicking on Website metrics, shows me a list of websites. I've only configured it for one website, so it's a bit annoying that I have to then click on that one website.

- I cannot figure out how to add brand keywords. The keywords list is empty.

- I clicked on upgrade and it shows me a price of "14.99", though the pricing page shows "4.99". I think my website is quite small. Is this a bug?

Otherwise, it seems pretty cool. The search rankings seem useful.
Yes, it was back and forth many years whether the dip at the bottom (with very modest drinkers being slightly healthier than non-drinkers) was genuine, or whether there was some remaining effect which hadn't been appropriately controlled for.

But that was pretty much settled with Mendelian Randomization studies on exactly this gene. As the article says, some people have different versions of the alcohol dehydrogenase enzyme, which basically gives them a worse hangover, faster. People with this condition drink slightly less than they otherwise would, wherever they are on the consumption curve. Knowing that, and knowing that the gene is more or less randomly distributed in the population under study, and assuming the gene affects nothing else (a safe bet, since alcohol dehydrogenase is a fairly task-specific enzyme), we can disentangle the effect of the alcohol from all the other things that could cause you to drink more or less alcohol.

Now the consensus seems pretty solidly on that the apparent protective effect of moderate alcohol consumption on stroke, cancer or heart disease is non-causal.