skysight-inc/HackerNews huggingface dataset:
I had read a book by Epictetus some years ago. Liked it. Forget the book name now. It was about living simply, not getting overly affected (mentally or emotionally) by circumstances or things that happen to you, and a lot more stuff along those lines, and other things too.

Basically Stoicism, I suppose, though I've not looked up the term in detail.

I also like this quote by him which I read long ago:

"Practice yourself, for heaven's sake, in little things, and thence proceed to greater."

http://philosiblog.com/2013/06/06/practice-yourself-for-heav...

https://en.wikipedia.org/wiki/Epictetus

https://dailystoic.com/epictetus/

The Stockdale Paradox is also interesting. Stockdale was influenced by Epictetus.

https://en.wikipedia.org/wiki/James_Stockdale
Its feasibility is directly dependent on how many other things you do every day / how much free time you have after subtracting kids/commute/etc.

It's generally not difficult to do any given thing every day. It's difficult to do 20, though.
I just wish it had a plugin for something like BW Go (Android). A decent offline client with manual sync, exploration, perhaps conditional moves. There is a plugin for Dragon Go Server and it's so much better than dealing with mobile browsers.
I mean in your assertion that `log` must mean `log10`. I have huge sympathy for contending with inconsistent use of ambiguous notation. My pet hate is `gamma` vs. `tgamma`.
چه نوع کف کاذب برای دیتاسنتر مناسب است؟
I find that people's outlook on humanity comes down to where they focus their attention. We're definitely a mixed bag of wonderful and terrible. But, the vast majority of people, the vast majority of time are boringly nice to everyone and everything. That boring niceness is as common, as important and as easy to forget as air.

Also, the world has many very bad aspects and some of them are getting worse. But, on average the world is getting to be a better place rapidly. Today is the most peaceful, most healthy, most just, most educated, most comfortable time ever. As people who were born and grew up knowing only such good times, we easily forget how so much of what we would consider atrocities today was common a mere few hundred years ago.

We have adjusted to be tremendously more sensitive than our ancestors. And, we are infinitely more informed about every bad thing everywhere in the world. That doesn't make everything OK. But, it is a great sign that more attention and effort is being focused on the remaining problems than ever before. If you are deciding to focus your attention on the problems we still have, then you are a sign of how the world is getting better.

With that attention, you can find problems that remain. With some historical perspective, you can figure out which ones you can best help reduce. With some effort, you can be part of making the remaining problems in the world even smaller.
Who wrote this crap?

$ git blame

Oh, I did.
Code.org 2016 Annual Report
Watched the whole thing. Very articulate speaker, thanks!

Btw. going through your older posts

> Besides immutability, what are the advantages of using namedtuples instead of dicts?

fixed attributes. And they are ordered! :-)

Makes sets / db-style programming so much simpler:

for user, name, account in users:
...

You can do that with conventional tuples as well, but they can't match the introspectability and the value for documentation.
That happened to me.

I was trying to figure out a mass of javascript that was being used in a Business Catalyst site I was hired to add some features to, and I eventually realized I wrote it for a prior job for the same client months earlier. It's a weird experience.
Ive seen it in the US several times. Some people just refuse to use seatbelts. They look pretty funny hovering upwards then crashing down onto armrests. Luckily cabins now are so cramped that they rarely move far enough to hurt anyone else.
Because you usually don't have control over that. On lots of system, any application that can display an UI can access the current clipboard's contents.
Q&A: Application containers finally take off as barriers crumble
Correct me if I'm wrong but if you install a malicious application, aren't you screwed anyway, password in clipboard or not?
Ask HN: How can WhatsApp on Android use the iOS emoji set?
Has WhatsApp obtained a license from Apple? Are emoji public domain after all?
"LSD is usually LSD because it is way more potent per unit volume than any other recreational drug."

This used to be true, but is very unfortunately not true any more. Newer synthetic drugs, like bromo-dragonfly, are approaching LSD in potency[1] making them essentially indistinguishable from LSD in practice, and resulting in actual fatalities.[2][3]

[1] - https://en.wikipedia.org/wiki/Bromo-DragonFLY#Dosage

[2] - https://en.wikipedia.org/wiki/Bromo-DragonFLY#Toxicity

[3] - https://erowid.org/chemicals/bromo_dragonfly/bromo_dragonfly...
A public list of APIs from round the web
I've done a lot of work with graph network libraries in R/ggplot2 for data visualization, even figuring out how to make them interactive, in WebGL for scaling to hundreds of nodes, with minor code changes.

Tutorial/Intro: http://minimaxir.com/2016/12/interactive-network/

Practical example using HaveIBeenPwned data: http://minimaxir.com/2016/12/pwned-network/

The catch is that this trick uses the ggnetwork library, which is less-actively developed than ggraph. I remember trying to port the interactive code to ggraph but with not much success (since ggnetwork serves a more of a translator for native ggplot2 functions, while ggraph offers more flexibility). Now that the official release of graph is out, I'll give these types of visualizations another try.
> To be honest, so is every successful country. That is why they are successful, because they once had or still have power over others.

I'm curious, do you include Hong Kong in that classification? How about Estonia? I'm curious what 'power' you consider those countries have, or exert, over others.
> I intentionally entered a completely incorrect password twice assuming that if it went away it was a really well crafted phishing attempt.

That's a clever trick, I'll remember it for next time something similar happens.

I had the same paranoia as several other people in this thread (don't enter password if you're prompted unexpected or without clear reason). I had the fortune only a "trash" gmail account got locked out, not my main one. So I verified on another machine, password was unchanged, checked if I really hadn't registered any other important accounts with that email, and just gave in after an hour or so, to make the notification go away.
Sounds like a recipe for burnout. I've tried a few times picking up a new language in my free time, but since I program for work it made my days feel 3 hours longer.

I've started picking up hobbies unrelated to programming, it's much easier to spend the time learning something completely different.
So despite having spied on anyone who caught their fancy in the past-

https://www.theguardian.com/technology/2016/dec/13/uber-empl...

-your bar for skepticism/reproach is only cleared with proof that they've done the exact same thing before, telegraphing their intentions along the way?

Ok.
You've done this kind of thing repeatedly; it's not just about the other person.

HN depends on us keeping our comments more civil and substantive as a topic gets contentious or another person's comments get annoying. I say more because we all have a bias not to perceive how we're slipping in such situations (it always feels like someone else started it while "I merely", etc.), so there needs to be a conscious counteraction.
Curated list of computer graphics tutorials and resources
Anyone else a bit disappointed?

Normally these letters have some new brilliant insight or dive into a business I know nothing about. This one feels shorter and more peremptory. I see the financials for the major sectors and the same boilerplate explanation of insurance and railroads that's in every letter.

What's up? It's not like nothing happened with Berkshire Hathaway this year.
At the moment I have to deal with code written only last year that uses long depreciated frameworks and awful logic. In shorts it's an unreadable mess so full of programmer sins it makes brainfuck look beautiful.

It was coded by experienced contractors at great cost whose entire body of work I have judged to be far below the reasonable standard of a competant developer. I've actively called for them be sued and have costs returned several times.

Although rare, as professionals we're subject to a professional obligation to weed out the most reckless of our community. Anything less and we risk being knowingly dishonest.
I also have the same problem that if I start thinking about the universe it inevitably leads to depression

Indifferent Universe(high certainty of no Abrahamic God) -> Anything Goes/Nothing Matters as far as humans go -> Existentialists: Great, you can find your own meaning -> Psychopaths/baby seal clubbing enthusiasts/Doomsday Cultists/Uber executives can find their own meaning too -> Might makes right -> Do everything for the lolz -> This is getting deppressing

For extra depression read about cognitive science (Dennett's "Bag of Tricks") or matrix argument.

So you have to say "MU" and just concentrate on more pleasant passtimes.

One solution seems to be ala Bukowski "Find something you love and let it kill you" (preferably slowly)

Stoicism to me just seems a slight improvement to fatalism.

Nice if you have the predisposition but it makes no difference if you are stoic or choleric.
A curated list of amazingly awesome open source sysadmin resources
>You already did a possible security exploit on your example, as you need to guarantee 100% of the time that bla and blaa sizes are always less or equal than buffer_size.

bla and blaa buffer sizes, yes. I mostly string file names/paths, that have NAME_MAX and PATH_MAX. So my excuse here is that all my buffers have the same size (not the best excuse, i know). PS I always sanitize on input if the input can be anything (network/ipc sockets, for example).

>True, but Valgrind doesn't exist in every OS that one might need to work with, specially embedded ones, and according to Herb's talk at CppCon 2015, only 1% of the audience was using any form of static analyisis tooling.

Quick google shows some tools for windows. I don't know how good they are. Clangs static analyzer seems to work on windows, for static analysis. But if it compiles on linux/bsd/osx then people should check before shipping the code.

This just reminded me of the latest Linus rant[0].

Then there is fuzzing and formal verification, that are too much for "normal" programs (these are not C specific).

>The world of C and C++ programming, in typical 9-5 enterprise jobs is quite different from HN ideals about code quality.

As is in the world of hobby C and C++ programming. And python, and ruby, and haskell, and... It just shows more in C. But C is still the king when it comes to portable and efficient programs, and that won't change soon (although there is less need for such programs, as "embedded" today equals "has only 512MB RAM").

[0] http://lkml.iu.edu/hypermail/linux/kernel/1702.2/05171.html
This is a common misunderstanding about meditation. In reality, the requirements of formal meditation are exactly what makes it work. Just taking a break does not have the same effects at all.

It's really hard to explain why- it feels to me like it's a weird quirk of the mind at times, because of how it only works if you follow the steps precisely.

At times I feel like it's the focus that you constantly bring yourself back into that helps. At others, I think it's the recognition of all the thoughts that are swirling around your head. At others, I think it's the anti-anxiolytic effect of simply dropping your worries.

I don't understand it at all. But it works.
> He also found a lobbyist and got involved in getting laws passed in Nevada and California to allow the testing of autonomous vehicles. His backroom lobbying did not endear him to some executives at Google.

> “I thought you could just do it yourself,” he said. “Then I found out that there is a team dedicated to that, a process. Got a little bit in trouble for doing it.”

Wow. What world is this guy living in, where he thought he should personally hire a lobbyist to change some laws to make his job easier? Maybe it's the difference between me and a 10x-er, but I just don't understand this.
A microdose is not a low dose, it's a dose where you don't notice you are tripping but your perception and concentration is enhanced
Leave them alone? I've always worked in "teams" where 1-3 workhorses made everything happen; the rest was talking, spinning intrigues and inventing new workflow procedures (which slowed down and annoyed the workhorses).
Referenced from Time to Eat the Dog?: The Real Guide to Sustainable Living. Robert and Brenda Vale

www.goodreads.com/book/show/6567558-time-to-eat-the-dog
One of the Canadian provinces does a sort of vertical integration, in that they build the roads as well as offer car insurance. This aligns the incentives. The state is financially motivated to build safer roads and fix problems."
Build cross platform desktop apps with JavaScript, HTML, and CSS
While he didn't use the words "suck", he did say it was a "mess".
http://blogs.wsj.com/washwire/2016/01/10/donald-trump-the-st...
Out of curiosity, what are those concepts and papers you most recommend that fit this idea?

I think it's very important to master the foundations. In fact, I have a book from some anon. maths professors that say such and I was just reminded of it. They claim a student went from close to flunking to top of the class following their advice (interesting two professors provide that we evidence, however).

The book is called "5 steps to effective thinking" if anyone is interested.
What a great guy and group of people.

I've emailed offering to help out if I can. Their costs of running the site should be zero to them, if I can help make that so then great.
We detached this subthread from https://news.ycombinator.com/item?id=13731079 and marked it off-topic.
Great comment, thanks for sharing.
I'm married with two kids in high school.

For me, it's not painting, but playing music every day. I don't always get to practice, but the days that I miss are more likely be due to me procrastinating than to actual lack of time.

I also spend some time every day at work, doing some coding, even though I'm not employed as a programmer. Oddly enough, it makes me look quite busy, and nobody has ever questioned whether it's actually related to my job or not.
Our product is a SaaS for pet service businesses (grooming, dog daycare/boarding, training). The app has 34 distinct automated email types that are sent at various points. It's a lot of email :).
I also had this problem of difficulty getting in the zone. I find that doing it constantly as a habit you get in the zone easily. Plus the knowledge will be stewed in your brain while you're at work. So you're not really only doing the project when sitting in front of the keyboard.
You have to consider geographical advantages when considering the growth of a civilization. For instance, the Mississippi River has amazing properties for transportation which was obviously great for trade, manufacturing, and settling. Many rivers in Africa may seem similar on the surface but due to things like frequent waterfalls and variation of depth, they are not nearly as advantageous.
here's one off the top of my head.

Musk vs. Buffett: The Billionaire Battle to Own the Sun - https://www.bloomberg.com/features/2016-solar-power-buffett-...
Always baffling to me. HN front page is not that much traffic. Maybe 1 req/s on avg for a few hrs with bursts up to 3 req/s.
Since stacks change and generally become more abstracted, i would say domain skills: Good ability to work with domain experts and deeply understand the domain and do it in a timely manner, write code as close to the domain level as possible, and having domain knowledge.
Tired of fucking around with flashing custom firmware, manually setting up networks, etc. This just seemed like a painless option.

Nope.
It's not about "tone" but content and it's quite simple, though always harder to see in one's own case. The HN guidelines say this:

When disagreeing, please reply to the argument instead of calling names. E.g. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."

Similarly, "You have no idea what you're talking about if you think for a second that a foo like bar would baz" can be shortened to, "A foo like bar wouldn't baz."

HN's rules apply regardless of how other commenters are behaving. If they didn't, we might as well have no rules, because it always feels like others are behaving worse.
Or I wonder if someone could get some sort of demo hosted.
> not sure HN is the right place

I see meditation coming up so frequently in discussions here, I wish some high karma person would post a "Ask HN: What's your personal meditation routine/journey, and what has it done for you?"
Haha, I have definitely considered that path, but

1) It makes manual testing annoying,
2) I have a nagging feeling that if my users are "doing it wrong" then maybe the API is doing it wrong...

Also I've been playing with autogenerating client implementations using autogenerated swagger specs, and that approach is incompatible with an actual opaque linked API. It would be nice to have the best of both worlds.
I think he's saying that Berkshire's insurance is so large and diversified that even something like a earthquake in California would not have a big impact on its cash position. I'm surprised it would be capped at 3% though.
I'd probably take too much, turn inside out and get stuck to the ceiling.
The problem is that we lack a story for the future. The only coherent ones are sci-fi.

It's up to the folks reading HN to build that future before this one runs out.
Interesting! :)

But isn't the real lesson here that X.509 is flawed?

Also, as the linked article says:

> The bottom line is that no widely-studied hash function has ever succumbed to a (second-)pre-image attack except for one.

And there are signatures that are provably resistant to collisions, shouldn't we move to such signatures?
Take a look at Mydevices.com a revolutionary iot platform
This is closer to the truth then you know. There is an internal ongoing effort to merge the few useful features that only exist in Inbox, like snooze, into the GMail codebase.

If your inside of the Google network go/bye-inbox has all the information.

Disclaimer: I work for Google and joined Team Sabotage a year ago to cause as much damage to the company as possible.
For memory-bound apps are they sort of useful? For instance, A packet forwarding system that reads a packet, does 3 main-memory lookups, then forwards or drops?
Normally when talking about length extension attacks the original plaintext is unknown, but we can compute the hash of the plaintext plus an extension if we know the hash of the plaintext. In this case we know what the plaintext is, and we happen to have two different texts that produce the same hash, which we can extend to generate many collisions. It's the same property but it's a different scenario than what is commonly referred to as length extension.
It's laughably common that Googlers don't know about a product that they themselves would be interested in using until they see external news about the product being cancelled.

It's pretty demoralizing. We are the biggest evangelists for the products because we are proud of our co-workers and Google. But it gets harder and harder to evangelize to our friends and family when things are so quickly withdrawn.

Hopefully the Spaces team got their promotions out of the launch.

My advice to people making these kinds of decisions at any company of any size: when sunsetting a project (not just putting it into maintenance mode) consider the real cost to internal morale and to brand equity.
Tiling window manager for MacOS based on plugin architecture
I wouldn't dare to suggest that, yet that's the route that physics and all derivatives have adopted!

We are essentially at the crossroad and obviously, programming, which develops nowadays a bit faster than theoretical physics or mathematics, pushes in one direction.
Nice! I have started brushing up my maths and reading about machine learning in general. Next step is to get my feet wet in the implementation. I think looking at your project can give me a good idea as to how to implement some of the most basic algorithms.
Good luck!
Not a sustainable model, or a formula for growth. If you genuinely think this fire your time wasters and raise your hiring bar.

If you don't invest a piece of your work week mentoring juniors, you're a lot less productive than you could be.
Protip: There's more to a NAS then a CPU.
go big or go home!
That's really interesting. If you do ever remember the name any time soon, let me know. I find anything like that fascinating.
I often use the same legal mechanism to buy modafinil, and have reached out to my supplier about affiliating. They don't do it either. I have to wonder if there's some kind of risk or law working against them.
To those who've heard of CBT but don't appreciate "what it is", I found this 30 minute video very informative: https://www.youtube.com/watch?v=IEsYiCDoJks
So my own anectdotal experience in this has shown the author's suggestions to be true. There's only one major catch that you don't start realizing unless it impacts you - your physical ability to actually absorb and retain continued constant learning.

We have to work longer and harder (into advanced age) these days to survive. While many people can learn and adapt and absorb for a long time, I don't think it's true that everyone is that way. Some people, as they age, have more trouble being able to constantly learn and instead end up "stuck" at a certain level of knowledge/skill/ability. In the world of tech where you can get flattened competitively speaking if you fall too far behind, it's incredibly difficult and can become infeasible.

Especially difficult if you end up going down the path of memory related diseases. For example, in my family we have dementia running in a few generations. The onset of dementia often shows itself in small ways far earlier than advanced age, for example, the inability to retain short term memory can kick in much earlier.

This is one thing that drove my feeling that I had to be as successful as possible and earn as much as I could when I was younger- not to be rich, but in case I literally was unable to keep the pace in the future.

But on the bright side, I have aspired to keep my mind open and learning as much as time permits, as the author discussed. So far, my colleagues have always told me they thought I was always a font of knowledge and I always tell them that it's only because I keep trying new things. Not because I actually "know" everything I talk about, just because I try to dabble and learn constantly.

I will say though, learning too much breadth, while really fun and a totally valuable way of learning (you start to see cross disciplinary patterns and connections between all kinds of things) - can lead you the "Jack of all trades master of none" conundrum.
Wordpress.

Wikipedia says: WordPress was used by more than 27.5% of the top 10 million websites as of February 2017.

With so much agony to go around, ones ability to ease the pain will always be in demand... :)
Sort of...

If you're familiar with the literature you'll find meta-analysis with a lot of phrases like "At present, HPPD appears to be a genuine but uncommon disorder". YEah, its in the DSM, but at best it's vanishingly rare. And according to the DSM past hallucinogen in combination with the symptoms alone is not enough to constitute a diagnosis of HPPD. It's also tangled up with a number of other confounding mental illnesses. And, even still it's believed that a user must possess preexisting risk factors in addition to heavy use to trigger HPPD.
What I'm driving at is that microdosing is almost certainly unlikely to cause HPPD in healthy adults.