skysight-inc/HackerNews huggingface dataset:
Sony must be brought sternly to account for this fiasco. The penalty for this type of mistake should be costly enough that it will never happen again. If the United States will not update the DMCA to sharply penalize false copyright claims, perhaps North Korea should step in and address the situation.
The nice thing about subjective things like "best climate in the world" is that you don't have to be wrong for me to disagree. But there are lots of people who don't like the socal climate - It's not like air conditioners are a rarity.

Also, remember that at least some of the people in socal are there because they wanted to socal climate, so there's some selection bias.

I lived in San Diego too, and thought it was too hot there, and also very hostile to cycling (a big deal to me). The climate mattered for that too since I was always sweaty when I got where I was going.

But I'm glad you like it!
It's been 16 hours. Are you gonna make good on that promise?
The problem is there's not just one type of code. Shared low-level code needs much more comments as shuffling a bunch of words through memory often is a bit abstract and you don't get the "why" by just looking at it, while writing business code that basically glues the UI to the DB using a lot of frameworks for the ugly parts can (and should) read like English.

I would suggest to use commenting as soon as you're doing something that's not immediately obvious to the reader, which can be all of the time or almost never depending on what you're doing. If would like to see some examples of Rails or JS code that needs comments according to you to have a better discussion about it.
Even grass and trees are locked into a eternal war for ground and light. Forrest and savannash are no way for nature to show of how diverse she can be. They are warzones, showing who has one, and the creatures who dwell in those spaces are - willing or unwilling soldiers to be thrown into the fire for another small victory.
We forgot how insane it is to pump explosive gas into our houses...

Here in the developing country where I live the locals think Americans are insane for doing this. When I first moved here I thought they were backward because there is no gas piped around. It's all portable refillable tanks that you buy at the corner shop and hook up to your stove. Seems like a recipe for disaster, right? Well yes, there are accidents and an explosion now and then. But it's limited to a single house in most cases. They don't have whole neighborhoods erupting due to failing infrastructure. So maybe I'm changing my mind and being less developed has some very real advantages.
> The idea that multiplying a series of uncertainties together does something other than blow your error range out is such a weird idea

Might seem weird but it is massively useful. Having an educated estimate that is _only_ out by an order of magnitude is a massive improvement over wild-ass guesses that are 4-5 orders of magnitude off -- especially in systems design where over- or under-provisioning leads to millions wasted in effort.
[feature request] Ask for confirmation for flagging
Please add a confirmation step to the 'flag' link. Right now it's just too easy to misclick 'flag' instead of the usual 'parent' (or 'favorite') links when browsing sub-threads.
What level of nesting are you referring to here? I ask because I experience the opposite - with more than one or two levels of nesting I have difficulty keeping track of the condition the block expects. Depending on the size of the method sometimes even one level can make me stumble a little.
How to Solve a Murder on Mars
Sigs are not important if they hold the repository to start with.
If the premise is "I don't trust Github" then the only option is not to use Github.

And, in any case, sigs do not prevent malicious code changes.
>Sergei V. Skripal, the former Russian spy poisoned in Britain with a powerful nerve agent, appears to have been working in recent years with intelligence officers in Spain, a country locked in a pitched battle with Russian organized crime groups, some with ties to the Russian government.

>Rather than merely living an isolated life in retirement, Mr. Skripal, a former Russian military intelligence officer, continued to provide briefings to spies in the Czech Republic and Estonia, according to European officials. Now, it appears he was also active in Spain.

https://www.nytimes.com/2018/09/06/world/europe/skripal-pois...
I always recommend python.

You are teaching coding, not computer science and electrical engineering on Day 1.

Setting variables, printing things on the screen, creating loops, making your first functions- Thats day 1.

With that, I would assume most people become addicted to programming, when you make a function, you can feel the power of programming.

After that, I encourage people to solve a problem in their own life. Most of the time, you can rig it in python- but if they wanted to build an app, they are basically ready.

My objective is to give them instant gratification and feed into their personal goals.
Interactive Git Cheatsheet
Even worse is that these items aren't mutually exclusive--you can get a doctor who exhibits them all!
I highly recommend "The Art of Readable Code: Simple and Practical Techniques for Writing Better Code", by Dustin Boswell and Trevor Foucher. It's an easy read, and well explained with good examples.
I made an opposite journey. While working in C and Java I commented heavily, but in Python I prefer to just leave a comment here and there if I'm not sure the reason for the code and its intent are clear - but at the same time a comment is also a powerful signal for me to rethink that piece of code and make it more obvious.

I find both of your examples readable to about the same level; MySQL one because the naming is helpful (`number_of_bytes_read_from_buffer`) and SQLite one because of the comments - I would be lost without them. For example, why is a function that does "Release the STATIC_MASTER mutex" called "leaveMutex"? On the other hand, SQLite comments explain much more about how the code is used, what assumptions are made, so this is really a bonus.
> 2) When I asked the math professors how to explain "show your work," some of them bluffed and blustered, but none of them could give me a straight answer. At worst, I got, "they should just know."

It sounds like you were teaching calculus or maybe college algebra ("they should know" is actually good advice for the higher level mathematics courses -- most departments have a whole course that's more-or-less about how to write proofs).

At research universities, the tenure-track professors rarely teach anything below Calc II, and might not teach any Calculus courses at all. Certainly nothing below Calc I.

If you ad junct again, consider asking the other ad juncts/instructors instead. They're more likely to have lots of exposure to that university's demographic in a relevant course.
Sleep can often be improved by doing a short (15 to 30 min) simple (you don't have to be limber or do difficult poses) viniyoga program that is set up by a properly trained instructor. A new client will need 3 or 4 meetings with the instructor over a couple of months. The practice/program is done at home either in the morning or at night.
Newer Xbox One controllers use Bluetooth, I use mine with my phone often.
Correct; the same goes for Path, which is often a fun bug for many newer web programmers when they set the cookie on '/login' and then wonder why the cookie isn't being passed on '/store' or even '/'.
I've seen recruiters do some really weird stuff, not to mention HR feeling the need to insert themselves into every process, despite their vast unknown-unknowns.
Write hn@ycombinator.com. Maybe they are in the mood to look it up.
I want to expand on #2 - the right tool for the job might not be a flashy new library/framework/tool, but it might be one you don't already know. You shouldn't pick new technology because it's new, but you should have a surface-level understanding of what lots of technology does so you might be able to connect the dots with your use-case and explore something foreign in depth. Equally risky to using flashy tools is over-reliance on the old tools you know, which may not be best suited to the task.
Stuxnet is the same idea. But really hackers are unnecessary when you have shoddy workmanship and lax regulation.
> Because I'm trusting individual package maintainers directly, not a suite of shady CAs. Have you ever looked at the list of trusted CAs?

Again, CAs are only needed for PUBLICLY signed certs but we are talking about a PRIVATELY managed trust and repo. The repo cert can be self-signed by the Alpine group and added to the root store during install the same as a PGP key can be added during install. No 3rd party "trust" involved.
Ok then. Who else had the motivation to ostentatiously kill him using a weapon only available to state actors?
As many others have noted, the title is inaccurate; cognitive behavioral therapy for insomnia is a well established treatment.

There are a few other minor inaccuracies in the article: chronic insomnia requires only 3 months of sleep disturbances, not 6. And the case for the dangerousness of insomnia is dramatically overstated.

But with that said, the reality of insomnia treatment in most countries is that doctors either 1) don't know about CBT for insomnia or 2) don't have a way to refer people to see a behavioral sleep specialist. I practice in Seattle, and there are only 4 clinics that have behavioral sleep specialists. In more rural areas, it's even more uncommon.

So in truth, for most patients and most doctors, this does feel like a brand new therapy.

Thankfully, "sleep efficiency" training (aka sleep restriction) is a simple algorithm that doesn't really require hand holding, and works reasonably well when practiced through a book or online program. Motivation tends to be better when you meet with a therapist, but the recovery rates are similar for highly motivated people.

Disclosure: I provide in person CBT for insomnia and run a pay-what-you-can CBT for insomnia web app at SlumberCamp.co.
Probably because the estimated danger zone is too big and 95% is safe. Add the risk of looting if you leave. Bam. Saved you 10 minutes of your life. You are welcome.
2018 dollars. The vast majority of China in the 1950s and earlier lived in extreme poverty.

Also, I realize I meant a thousand percent, not a thousand times. My bad on that one. China is merely 130 times more productive (in 2018 dollars) than they were 60 years ago. Which I don't think disproves my point.
I couldn't stand Mastery. It's superficial, pseudo-profound, and full of banalities. After that I've stayed away from anything by Greene.
That idea has been floating around a lot. It's definitely not outside the realm of possibility, though what makes me think is was human error is the fact that Columbia Gas (company responsible for those lines) publicly announced work on the lines about a week before this happened.
List of publications by Baselga: https://www.documentcloud.org/documents/4840569-Baselga-Arti...
This is why these are short term projects.

Uncompetitive products can be interesting and fun while its trendy. After, the market gets saturated if its a good idea.

If someone thinks you can create a business empire with this model, they will fail to their higher quality and lower cost competitors. However, if you were trying to pay bills for a few years, these niche ideas are fine.
The standard iOS camera app has an integrated qr code reader, but it seems not to be documented anywhere.
Y'know, instead of "likely answer", you could fact-check it.
So now I need to carry both a mental and a physical burden, as well as risk jail time? Neat.
You have to remember that natgas is extremely old, like mid industrial revolution era. Homes had natgas before they had electricity, usually.

In the early days they billed on the number of gas jets for illumination but once gas stoves and furnaces became a thing they needed some way to measure, and there's some weird technology out there involving something like an archimedes screw sitting in a couple inches of anti-freeze driving low friction clockwork. Now a days its probably optical sensors instead of clockwork but whatever.

Two engineering topics are being missed; flow rate thru an orifice is strongly non-linear, and there are no hermetically sealed large scale transport technologies. Its staggeringly impressive that like 99% of electricity pumped into the grid makes it out the other end. Its not practical from an engineering standpoint to operate a leak free material transport pipeline. There's plenty of engineering guidelines such that a leak rate ten times lower than could theoretically cause an explosion is quite acceptable, until some idiot accidentally applies a 10x overpressure forcing open orifices permanently and increasing the leakage flow rate 200x and then kaboom.

Its kind of like automobile gas stations... it would be nice to never have a leak and LARP that we'll be very serious and studious about never having a petroleum leak, but that mindset leads to design and operations decisions which become environmental disasters when the inevitable happens. Better to build everything with the assumption the underground tank will leak one liter per month than to plan the leak rate will be zero. Also no level of idiot proofing is perfect; that leak-tolerant station design will still fail if some truck driver pumps 2000 gallons into a 1000 gallon tank while not paying attention.

There's also safety tolerance / clickbait issues. Natgas averages about ten customers dead per year in the USA. Its very difficult to get stats for in-house mis-adventure but it seems about three hundred die per year from in-home electrocution, so its kinda a rounding error. Food related illness (food poisoning leading to dehydration leading to death) kills about 5000 per year in the usa per google (which seems high?) so you're about 30 times more likely to electrocute yourself at home than die in a natgas explosion, and 500 times more likely to be killed by whats in your cooking pot than whats heating your cooking pot. Given that, more investment to prevent natgas deaths would likely result in more deaths from other causes; taking money away from "stop drinking corn syrup" or "cook meat to 165F" will kill more people than a 10% improvement in long term natgas death stats would save.
Just click the "View" button on each result and you get a full featured viewer with pan/zoom, quick toggling from before/after, and even a heat map showing where there are big differences between the two.
So that's you, but don't say that they should not share their knowledge because it does not follow your standards.
I'm more than happy to see someone experience on this, what what worked for them, compare with mine. Better have something than nothing, not everyone have time to write a blog post every time they change one setting.

You change it. Have issues. Realize it does not work for you. Change it back.
If you're not sure or don't have time to deal with it, don't do it. Not difficult is it?

Ans a said previously the responsibility is in the person making the change to their browser, no one is forcing them.

This is my preferred approach:
https://github.com/ghacksuserjs/ghacks-user.js
https://github.com/pyllyukko/user.js
"But when you use 3rd party libraries, you are still responsible for that code in the long run."

Sure, but you very rarely have to do it alone, and you'll only have to do it for a very small fraction of libraries.
No, I would gently submit that they are provoking Western media to give them lots, and lots, of free publicity.

Western countries are not going to give Russia any kind of hell that Russia´s rulers will really care about. Russia is a major gas and oil supplier to the entire of Western Europe.
I thought approving a paper just meant saying "Yes, I approve." Why do you think students can't do that?

I send the final paper draft to all my co-authors before submitting to get their approval.
Not gonna lie...I misread that as online nude models >.<

Great read though! :P
I don't understand what you mean exactly. What attack vector are you considering?

If I sign a commit and push it on github anybody else can pull it from github and if they have my key than can validate that it is indeed me who made it. The only thing GH can do is modify it and strip the signature, modify it and replace the signature with a "fake" one that may fool people who don't have my public key or simply drop my commit altogether if for instance it contains a security fix (but then they also have to drop all future commits referencing this one since the hashes won't match).
There's a story behind why gas is oderised. 295 souls.

https://en.wikipedia.org/wiki/New_London_School_explosion
Sigs are not important if they hold the repository to start with.

Why not? Someone can clone the repository and verify using my public key that I signed a commit. If GitHub modifies the repository, the chain of hashes changes, and the signature would be incorrect.

And, in any case, sigs do not prevent malicious code changes.

That is true. But if every commit was signed using a known signature, then you know who injected the malicious code. For a third party to inject malicious code, they would have to compromise the one committer's machine and/or key, rather than GitHub or a specific GitHub account. Also, once the attack is detected, you know which commits are potentially bad, namely those signed using the compromised key.
Sockpuppeting would be a better term. And I 100% agree with you. Everyone thinks they're smart enough to avoid detection.
Is this comment targeted at Mozilla? My understanding is that they fully host on Mercrual.
> On the other hand, I've known a few people who are able to clock in and clock out, do a competent job, and not get too stressed about stuff. I'm still trying to figure out how they do it.

This is an amazing skill I only learned during a PhD, and only after burning out half way though.

Obviously, step 0 is clear boundaries and reasonable work hours. Clock out at 5 or 6 (or 7 or whatever -- point is, put in your 40 hours and leave).

After that, things get more difficult.

For me, the answer was to work out directly after work (so before the commute home even!) and to listen to an interesting audiobook/podcast during my workout.

That way, when I got home, I would have something on my mind other than work. Fortunately, my personality is such that as long as the audiobook/podcast was interesting, that's what I will focus on/think about the rest of the night.
How do you go on vacation?
This is a very panglossian statement. You just recited a version of the "Best of all worlds" fallacy.
I mean if you prefer that look for a house with oil heating, but it costs a fortune.
I loved going through that, definitely second this.
I assume what you are saying is to assume a 1 in the MSB of the mantissa. That has been done. HP minicomputers, I believe, and maybe some orhers of that era.

Unfortunately, that means that you have no way to represent numbers in the denormal binate, which leads to severe problems with monotonicity. As you move to binates with smaller exponents the distance between representable numbers halves in all the normalizable binates. Unless you allow for denormals, you have a GIANT jump from the smallest normalizable number to zero.

This leads to problems in numerical algorithms. Taking differences to find slopes gets unstable as you approach convergence, causing converge to fail.
Because they are poor/lack resources.

Why is this even a shock to people?
After all those humdrum job interviews, skill tests, certification badgering; what I experienced is writing code that generates a sql query to the parameters that's taken from the frontend which had NOTHING to do with interview questions or the skills demanded by the employer.

Back in the mid to late 2000s, I recall seeing and hearing management say, "we just need a few Google-quality engineers". There was this pervasive sentiment that if they could just find good enough software engineers, it would somehow make up for the fact that the company had no leadership or direction.

That, combined with the competitive nerd gene, zero objective basis for interview techniques, and an attitude of "any reason to boot this person" rather than "how can this person contribute to our company?" has gotten us to where we are in this toxic industry.
https://gitlab.com/tvaughan/docker-flask-starterkit
Low-carb versus high-carb – is the evidence really contradictory?
Looking for a remote job? This is the most comprehensive guide I came across
>So you start skimming the article until you give up.

I scrolled to see how long the article was, gave up and thought "the HN comments will have what it is about". Then thought bad about not reading the Featured Article, mentally shrugged, then clicked to the comments.
I was involved in some networking so we were talking about how much traffic there was. The "traffic" was directly proportional to the number of tickets and processing them... traffic up, # of tickets up.
That's true. Let me prepare an argument.
I'm confused. If you've got an encrypted drive the encryption keys are usually stored in a TPM module right? How does accessing RAM allow access to the keys in a hardware TPM?
I also love when my public water supply becomes a dumping ground for all the industrial waste created in the production of this super simple wonder-product.

There's a reason Ron Swanson's brand of Libertarian idealism was used as a punchline so often.
TBH the fact that US food production is 3x more efficient does not make me want to eat US produced food... on the contrary.

Bad steel is easy to notice so every industry ends up producing it at the same standards. Bad beer or chicken stuffed full of chemicals... not so much. He should have picked other examples.
Except us humans drive in the middle of the street in residential areas often below the posted speed limit just for this reason. And if we live on this street, we can better anticipate the conditions.
https://c.o0bg.com/rf/image_1200w/Boston/2011-2020/2018/09/1...

Seems like some of the very people affected have embraced solar power.
This seems perverse in the context of the copyright legislation being discussed in the EU today.

On one hand, rights holders can indiscriminately send out takedown notices to any they suspect of infringing, and the burden is then placed on the poster to prove that it's OK. On the other hand, sites will be required to police all posts, just in case something infringing is posted.

So #1 - it's OK for the rights holders' bots to be inaccurate, but sites will be punished if theirs are.

and #2 - all responsibilities accrue away from the rightsholders. They get all the rights, but have none of the responsibility or burden for (accurately) watching over those rights.
I addressed this comment here: https://news.ycombinator.com/item?id=17983271
Phly, boy, phly: Notes on GraphQL
For reference: https://www.youtube.com/watch?v=qxWwEPeUuAg
The previous state of the art was open flame.
If you are talking about Bashar al-Assad - he is officially elected president by the people in his country. I would not call him dictator. Only western people sitting on the other side of the planet know better who is the best leader for the people in other countries, lol. Sorry I can't post anymore cause I had so many votes agains my opinion.
>right to go to the bathroom

This is hyperbolic bullshit though. Just because you have some workers that choose to basically not go to the bathroom frequently and work like crazy to get the highest ratings doesn't mean it's mandated that way or encouraged to any degree.

Are other workers 'competing' against people that do such things, thus incentivising them to do the same behavior? Sure. But sorry that has nothing to do with amazon- that's the workers. You can find this behavior anywhere in any sort of company.. people that come in earlier, work later.. yeah people around them might be encouraged to do so to keep up, but that doesn't mean it's anyone's fault but the population.