skysight-inc/HackerNews huggingface dataset:
Does anyone else find Python just as 'crazy' as Javascript gets called?
I imagine it updates to make it easier for a reader to grab a link directly to the section they're currently looking at.

They could use `replaceState`[1] instead of `pushState` though so as not to mess with your browser history.

[1]https://developer.mozilla.org/en-US/docs/Web/API/History_API...
Speaking as someone from the UK, we know perfectly well that it’s required as part of the job. It’s one of the reasons we hate it so much: because we can tell it’s completely fake & we don’t appreciate being lied to.

People in the UK would rather have dour but straightforward service than forced cheeriness that speaks of some kind of “compulsory smiles everyone!” management acting behind the scenes.
Just like anything else, people want social interactions that are stimulating and rewarding. Being around other people for the sake of being around other warm bodies is typically not very interesting for most people.

Who has no shortage of friends? People with obvious value propositions. Rich or influential people. Well connected people. Good looking people. People who already have a lot of friends. It's strange to think about it in economic terms, but I've found it's a very useful abstraction.
Why We Ask Every New Employee to Code an App Their First Week on the Job
I haven't encountered this problem personally. I think most people are just playing for fun not to get their number higher.
I agree with finding a balance. A blunt attack may knock one person's confidence causing them to no longer offer ideas while for another it may encourage them to think a little harder about the problem before offering a solution.
Ultimately, you can't treat social as a science, think of it as faith, as an never ending improv performance.

There are four ways to create a social life:

Fake it till its fact - be someone else until it feels like you

Be artistic - find an expressive outlet you enjoy and find other people who express the same way

Be vulnerable and live in moments - take every loss and win with a grain of salt, acknowledge something happened then move on. No moment has more emphasis than others, they are just lily pads for you to jump on and off.

Think outward, not in - react to what people say or do without introspection, trust what you already intrinsically know/feel
Ask HN: How you memorize?
I am learning programming languages. What do you do to memorize codes?
Meet like-minded professionals
Haha, you've not written many hardware drivers I imagine. Sometimes a software workaround is viable, but that doesn't mean the root cause is not a hardware problem.
That is a tragic miscarriage of justice; thank you for sharing it. You will note however, that the victim was not jailed for the "crime" of having been sexually assaulted. (Funnily enough, I am a Guardian Member https://membership.theguardian.com and have never visited the sites you mention.)
That said, 16 GB is sadly the norm. Dell XPS 15 caps there too.

What the hell is going on here, though? Two different XPS 15 product pages:

http://www.dell.com/en-us/shop/productdetails/xps-15-9550-la...

http://www.dell.com/us/business/p/xps-15-9550-laptop/pd

From the former, you can't even get to a 16GB laptop, despite the same price points. What the hell is up with that? They target consumers with a crappier box at the same price, or what?

Edit: I guess the 4k option is standard on the 1699 on the former page, and costs extra for the business version. That's pretty absurd though. The models are labeled exactly the same.
Oh, so I can annoy my friends by counting down to the new year "correctly", one second after them.
I was mistaken, I thought it was a California state wide thing but I guess not.

Either way, your statement about the top 10 CA high schools is false. I attended Granada Hills Charter and San Marino high school (#1 and #7 respectively) and both do absolutely require community service. San Marino requires 40 hours over four years [1] and GHCHS requires 20 hours per semester [2]. A friend at Miramonte High School didn't have to do any community service but I recognize many of the schools on this list and can confirm they require community service. Searching for "graduation requirements" just gives you a list of credits you need but doesn't include community service or disciplinary rules for graduation.

[1] http://www.sanmarinohs.org/apps/pages/index.jsp?uREC_ID=2241...

[2] http://www.ghchs.com/UserFiles/Servers/Server_20226865/File/...
Starbucks: Cute ad but let's see where customers go when doing it yourself is 90% cheaper.

Whole Foods: Cute ad but let's see where customers ...

There is always a market for people willing to pay more for whatever reason.
Just speculating, but there might be some UX justification. If you're reading a length bulleted list, and one of the items strikes you as shareworthy, I think it actually kind of makes sense to make it easy to link to that exact bullet.

The alternative is making users share the root URL, or scroll back to a menu and click a link to get the url directly to that #anchor.
The Rise of the Post-Doc as Principal Investigator
There are not a ton of details in the article but I imagine what they are saying is the evidence used to convict him was wrong, but it still doesn't mean he didn't do it.

The victim identified him as 1 of the 2 rapists and DNA cleared him. He might not have left DNA behind, but the victim still identified him.
Ya, standard is 2 weeks starting off, then it increases over the years. You also usually have to actually accrue those two weeks over an entire year. Usually caps out at around 5 weeks or so.

For me it isn't the PTO. Say I want to interview at 10 companies to see which is the best fit. That's 10 days of interviewing. If they are all 3 day interviews, that's an entire month.

I get tired of talking to people about nothing after an hour. If someone wants to bring 5 people for me to talk to about smalltalk and nothing really of substance, I won't do very well.

20 years ago, a friend who worked for a guy who would hire 10 people then after a few weeks, fire most of the ones leaving just the best. I live in an "at will" state. I guess most people just don't have the stomach for that sort of thing, so they try to make up for it with 3 days of doing nothing really relevant to the job.
There is, it just costs as much as a fully loaded engineer (about $150k/yr). It's called Kdb.
>People with their own goals burned, raped, murdered.

Yes, they did those things to people. Because _they_ were people. Because people share the same needs for the same resources, and operate the same. That's all out the window for a machine-based superintelligence. Such an entity would not need our land, our food, our homes, our orifices, etc. I have no doubt it would have the ability to wipe us out. But I have never heard a cogent reason behind why it would need to. Especially considering that we would at least try to put up a fight and, if it were truly hopeless, likely do whatever would be the equivalent of 'salting the earth' before we were eliminated.
it's strange that the post we're replying to is 37 minutes old, but we both posted replies at nearly the same instant.
Programming music? https://www.youtube.com/watch?v=xk3BvNLeNgw
What about..

def template(name, age):
return f"My name is {name} and I am {age} .."
formatted = template('Amy', 32)

?

[Edit: I only started learning Python recently, and this is how I'd think of doing it come from JS:

const template = (name, age) => `My name is ${name} and I am ${age}`;
const formatted = template('Amy', 32);

]
Interesting. How long did it take you to get up and running with Elixir to where you felt productive? I'm working on a new project and am thinking of using Elixir/Phoenix but my worry is when we hire that it will be harder to find those who are able to actually learn and get up to speed with Elixir rather quickly.
> If the majority of the population thought that way, we'd have an economic collapse though

...or a much better society.
Bind Variables Good, Literals Bad…
I've noticed here, in the US, that technical staff will sometimes (often?) feel attacked or challenged by simply asking the question: "Why".

It's an important information-seeking question!

But, for some reason, in many geographies, here, in the US, people often (apparently) take it to mean something like "I don't agree." or "Justify that.". And that triggers defensiveness, and then you aren't getting information.

Because my goal is the information nugget at the end of the quest, I've learned, with most people, until I know them well, to use something like these instead of "why?":

- "Interesting. Why did you decide to do it that way?", or
- "Really? How did you prioritize the trade-offs to come to that conclusion?"

I don't know if that makes Americans thin-skinned, or just sensitive to that one word, or ... what ... but I think that most Americans most of the time would prefer to not offend, and have learned that challenging another person's opinion is viewed by many to be offensive. It's highly inefficient, doesn't work well in multi-lingual meeting settings, so I'd guess the Americans you have been exposed to are are somewhat experienced in international business?
I wonder if you're confusing time series (which is a sequence of numbers which lends itself to stuff like regressions, etc, for predictions and other insights) with quite simply _logging_ so that you can go back a year later and figure out "what the hell happened then".
To get a high school diploma in Ontario, Canada you need to do 40 hours of community service: http://www.edu.gov.on.ca/extra/eng/ppm/124a.html.
That appears to be true. I looked up at Tweakers Pricewatch [1] looking for 32 GB RAM DDR4. I ended up with either 1080p or gaming laptops like Razer Blade Pro or certain MSI. Which aren't meant to be portable in the same sense a normal laptop is (worse than a MBP ever has been).

Apple still could've gone different routes here, or provide alternatives. This also doesn't make it a MBP; it makes it (together with the obsession on size and weight) more akin to MBA.

It also raises another question. Perhaps, there isn't a good laptop in the market right now which provides a long term usage pattern.

[1] https://tweakers.net/categorie/496/laptops/producten/
Nah, Obamas election had no effect at all on me (I happen to live in Germany). I’m not really sure there was even any event.
There is a difference in "not optimized for" and actively killing it with "user-scalable=no".
Some problems like smallpox can be permanently fixed with targeted aid. In those cases the benefits to local economies can be huge and long lasting.

I feel a mix of the highest ROI directed aid along side programs like give directly, is probably ideal.
Show HN: Code.hackmit.org – Software for Hackathons
Unless he decides to make a one-way hike into the tundra when he can no longer work, the kids other people "selfishly" decided to have will support him (even if indirectly, e.g. by working at the companies that he has equity in as retirement investments).
Oh, where is the officially sanctioned definition of the meaning and intent of a header?

So glad you asked: The C Programming language, 2nd edition, page 82, chapter "FUNCTIONS AND PROGRAM STRUCTURE", as follows:

"There is one more thing to worry about--the definitions and declarations shared among the files. As much as possible, we want to centralize this, so that there is only one copy to get right and keep right as the program evolves.
Accordingly, we will place this common material in a header file, calc.h, which will be included as necessary."

https://youtu.be/4PaWFYm0kEw?t=2237
My job is essentially meaningless and does nothing for the world and the code I write is absolutely garbage because I don't care enough and no one cares enough to critique it or write it themselves.

But I get paid 160k/yr so it's not so bad
So slow and bloated! Get with 2.0:

for(;;){ }
I'm not familiar with the activity monitor, what does 247.9% even mean?! Two cores at 100% and one at 47.9%?
Readability absolutely counts - that's precisely the reason why the "one obvious way" rule is there.

If there's four different ways to something, then that's four different things the reader has to fully understand in order to parse someone else's code.
The Octobass (1850)
Except that's exactly what didn't happen. They tested with Safari.

"For the battery test, we download a series of 10 web pages sequentially, starting with the battery fully charged, and ending when the laptop shuts down. The web pages are stored on a server in our lab, and transmitted over a WiFi network set up specifically for this purpose. We conduct our battery tests using the computer’s default browser—Safari, in the case of the MacBook Pro laptops."

CR goes into great detail about their methodology and reasoning for their results.
I think you learn more from your peer group than classes in college, so it's a good idea got try to get surrounded with the most talented cohort possible.
Oops, that is not a public link. I've made adjustments to our handbook to move it to GitLab.com so it can be public https://gitlab.com/gitlab-com/www-gitlab-com/commit/7fc274a1...
What is the difference between CSPRNG and PRNG?
You can upgrade the Dell XPS 15 (9550) to 32 GB though. Only the XPS 13 has soldered-on RAM. And if I remember right, it is a user-servicable part, so no loss of warranty if you upgrade it yourself.

EDIT: and price search sites show 32 GB models, so maybe you can have one upgraded directly from Dell somehow.
IT Security Educational Video – Happy Holiday
But he wouldn't have been convicted without that evidence. It doesn't matter if he can't prove his innocence, the job of the prosecutor is to prove guilt.
Those authoritative descriptions are exactly the criteria for a rape prosecution in Dubai IIRC. Which I suspect is the parent commentator’s point.
Not sure what to think of the video
I could see that. My work machine is a 15" rMBP which is mainly used hooked to a keyboard and monitor. Even when not plugged in I enjoy coding on it. Thing was, it was just big enough that I disliked lugging it around everywhere, back & forth to home, when traveling, etc.

For me my rMB is more for personal and light remote work purposes but that winds up being not dissimilar to your engineering mgmt persona you describe and I find it great for all of those reasons.
How might he "not have left DNA behind" when the charge was rape! And DNA evidence was used to used to clear him.

According to the article:

In October 1977 a Memphis woman was raped in her home by two intruders...
Why Time Management Is Ruining Our Lives
The article doesn't back up your claim.

People in the US on H1B visas don't have their passport taken away and are prevented from leaving. They aren't arrested and imprisoned when they are gang raped. They aren't forced to live in shanty towns with limited facilities like running water. They aren't working 12 hours shifts 6 days a week. They aren't earning $580 a month (the $70k a year the article complains about is at or above the median wage in the bay area). Here in the US we also don't have laws on the books punishing homosexuality with imprisonment and death.
I've also been bit pretty hard by not realizing -ffast-math turns on -ffinite-math-only... which optimizes out nan and inf checks :\
Club soda with a lime in a regular drink glass instead of a water cup. Everyone will assume it's a vodka club.
I like that the GiveWell website has an "Our Mistakes" section right up in their main navigation bar. It does a lot to inspire a feeling of transparency, which is a big issue for non-profits. I think more of them would do well to take the issue of transparency more seriously, and if they are reluctant to be transparent, they should take some time to consider whether it is for truly good reasons.
Your parents gave you the name "paradite", then?
The Supreme Court has decided repeatedly that the right to speech includes the right to anonymous speech, and that has been the understanding from the beginning. Anonymous speech is essential to free political discourse.

I don't believe that this account is anonymous, but that's different than prohibiting any account from being anonymous. There are lots of relatively easy ways to be anonymous (in a city) against even state level actors (for the purposes of publishing; hiding that you exist as a person is harder). They're not free, but we're talking $50-200 in equipment, which nearly anyone could get ahold of.

I like to think I have a reasonable understanding of what the government is and isn't capable of doing, and Id point out that the last 15 years has also seen a transition from critics of surveillance speaking calmly about their concerns to filing lawsuits and hardening infrastructure against the government. The government hasn't been alone in ratcheting up their efforts, and it is indeed deeply disturbing that it seems we're on track for a showdown. Lots of people would be hurt if it came to Civil War 2: Cyberwar Boogaloo, yet how can we call ourselves Americans or patriots if we just throw away the core principles of the nation?

Other people have laid down their lives to defend that freedom, and it is our obligation now to defend it with the same passion.
Google Poised to Challenge Apple, Amazon in Consumer Electronics
Obligatory xkcd: https://xkcd.com/927/

In typical perl^Wpython spirit, we now can save a few characters by typing:

f"My name is {name} and I am {age} years old."

instead of:

"My name is {name} and I am {age} years old.".format(**locals())

Look how much typing we saved! Now we just have to explain to new users that their strings get eval'd for stuff in brackets, but only when the string is prefixed by `f`...
Let it end.
My band will have to play auld lang syne in five.
Uber’s Value to Riders Is Clear. To Investors, It May Prove More Elusive
I'm probably in the minority, but I change my MAC address at the airport quite often.

For the airports that only give you 30 minutes of internet, if you change your MAC address, you can get repeated free sessions.

Regardless, the main problem with what you suggest is that it would require going through everyone's phones, so you'd need to get a warrant, or many warrants, and it would be a very long drawn-out process.
Apparently he eventually made a false confession while trying to get parole. That probably did it.

"Board members questioned McKinney during the hearing about admissions to the crime made at a parole hearing after he had already served 28 years in prison. McKinney said admissions were only in hopes of getting released,"
In 1977, the victim was raped and robbed by two men, both whom she knew from her neighborhood. She identified them to the police as the children of women in the neighborhood Polly and Ollie Mae, and gave their addresses. The men were Lawrence McKinney and Michael Yancy. Police found both of them together at Michael Yancy's house, Yancy was watching TV and McKinney was hiding in the closet. They gave alibis for each other, claiming they had been there all day. Both were convicted of rape and burglary. This was a very reasonable conviction given the evidence against them.

In the years since, McKinney confessed to the rape and apologized for it during his parole hearings, which were denied. He was also a very problematic prisoner who was constantly getting into violent altercations with other prisoners and guards.

32 years after the crime, the bed linen was tested for DNA. It had a positive match for Yancy, and the victim's boyfriend, and a third man, still unknown. McKinney's DNA was not on the bed linen.

Based on this evidence, since this evidence would no doubt be considered relevant to the trial, the conviction was vacated. The parole board did not exonerate him because the evidence did not support exoneration, it only supported a new trial. Given that he had already served 31 years in prison, rather than have a new trial, in addition to vacating the sentence, the charges were dismissed and he was free to go.

Vacating and dismissal are not findings of innocence in the legal system. Based on the DNA evidence, it is an absolute fact that his friend Yancy raped and robbed the woman. He gave an alibi for this man, and vice versa. The woman said two men raped her, two men she knew, and identified Lawrence as the other one. Based on the victim's eyewitness testimony and her previous familiarity with the perpetrators, her testimony is extremely credible and the jury's verdict exceptionally reasonable. Not all rapists leave DNA on the bedsheets that is recoverable after 30 years.
> If you're operating on FB-scale, then sure that's what you have to do, but in most cases your database (especially Postgres) is a far superior option.

> Time series is "unusual" in the sense that most people don't know first thing about it, event folks with degrees in math/statistics. I think this is why there is the prevailing misconception that it requires a specialized database.

I'm one of the developers of Prometheus, and while I'm going to point appropriate use cases towards Postgres (and regularly do), even relatively small monitoring loads require careful handling such that a traditional database isn't suitable.

An example from previous company is that we had only ~50 machines in one datacenter and yet were up to 30,000 samples per second. This is not considered to be a large setup, which would be in the hundreds of thousands of samples per second.

All the buffering/batching required to make such loads practical requires special design, as naively making each new data point into a disk write (with fdatasync) will not work out - even with SSDs.

And that's just writes. You also need to be able to efficiently read and process back the data efficiently when it is queried.

I'd suggest https://www.youtube.com/watch?v=HbnGSNEjhUc to give a look into how Prometheus does it (which also covers our use of Gorilla). There was also a good post on the InfluxDB blog about the evolution of their design and why the problem is hard that I can't seem find right now.
Honestly to me the worst thing about the new MacBook Pro isn't that there are no legacy ports on it or that the battery may be smaller, it's that the new all-things-for-all-people ports it has are confusing.

The ports are all Thunderbolt 3 ports, which I believe by definition means they are USB 3.1 ports as well. But some devices out in the world have USB-C ports that are not Thunderbolt 3 compatible. No longer can you tell what sort of devices will work with a port by its physical shape. For instance, I have a Windows desktop machine with a single USB-C port on the back, but it's not a Thunderbolt 3 port. So while I could physically plug in a Thunderbolt 3-only device, it wouldn't function at all.

Thunderbolt 3 is backward compatible with Thunderbolt 1/2 via an adapter, but the Thunderbolt 2 adapter that Apple sells does not function identically to a Thunderbolt 2 port on previous generation Macs - e.g. you cannot plug a Mini DisplayPort display into it. Thunderbolt displays do work with it though.

Also, the lower-end 12" MacBook that Apple sells with a single USB-C port is NOT a Thunderbolt 3 port, so you have to know which devices that have identical connectors will work with it. Apple makes the distinction on its peripherals by screenprinting a little Thunderbolt logo onto the cable/connector housing. The messaging was reinforced with corresponding Thunderbolt logos next to the connectors on previous iterations of the MacBooks - making it obvious that these ports were not just Mini DisplayPorts but also Thunderbolt ports - but the new 2016 models don't appear to have anything like that on the hardware.

Additionally, there are USB-C cables and Thunderbolt 3 cables. Thunderbolt 3 cables are apparently higher-spec and will always work as USB-C cables, but the opposite is not necessarily true.
And those cars have been taken off the roads: http://www.theverge.com/2016/12/21/14049070/uber-san-francis...