skysight-inc/HackerNews huggingface dataset:
I think this might be a cultural issue... let me explain.

I am originally from Nigeria and I just turned 30 but I went to college in the US and ended up living there for 10 years. I have lived in 4 different cities there and have traveled around the US a lot while I lived there.

One thing that struck me immediately after college was how hard it was to make friends. Secondly, I realized a lot of friends I made did not have old friends. Growing up in Nigeria, I still have friends I talk to from elementary school that I catch up with from time to time and still share a deep connection. I have friends from high school I intentionally travel to see and they visit me as frequently as they can and in college I made life long friends who I talk to every day now. Maybe it was the circle of friends I had but with my American friends, it was unusual for them to have friends that ran that deep. They rarely mentioned people from college and I knew of only one person that regularly maintained a friend from high school. After college, they seemed to be only able to make acquaintances and found it hard to make REAL friends.

In America, I feel people are quick to label things that they do not perceive as "normal" interaction and write it off. Like someone randomly approaching you at a grocery store can easily be seen as creepy or weird. A stranger or acquaintance sharing emotionally charged information can be seen as overbearing/burdensome and so on and so forth. Basically, anything outside small talk and a logical approach gets red flagged from my experience.

This is not the way things are in some other countries around the world. Individualism is a strong part of American culture, which can encourage people to create the best version of themselves, but it also leads to loneliness as we start to self-actualize.

My parents in Nigeria still regularly hang out with friends from elementary school and high school and college. They share their ups and downs and life changes and they are still making and losing friends and they are 60. This is not strange in Nigeria.

Countries who have a communal culture do not suffer from what this article is about, they have their own problems but making good friends, or the ability to are not one of the problems. If people opened themselves up to things that are different from them, were open to serendipity and supported strangers and acquaintances emotionally when they can, they would find friends in the strangest of places.
Ask HN: Android App Runs on Emulator but Not on Device – Is This Typical?
Beginning android programmer here. Just wrote a very simple little app that runs fine on multiple emulators (Jelly Bean through Marshmallow), but won't run on my actual device (Moto E running KitKat 4.4.4). Is this a typical problem into which android developers run?
It's easy to make friends. You just need to regularly encounter the same (not unlikable) people in a relaxed setting where you aren't beholden to each other. The problem is that we spend most of our time at work or with family. You have to go to a regular social activity or that won't happen. Of course, you also have to open your heart to the possibility as well.
The Himalayas? That's water. Those mountains aren't useless.
I can't find any other source for this claim. It's written by Dr. Peter Diamandis. I don't know who he is, but his biography seems impressive. Could this be true?

Statement is about 2/3 down the article.
When I lived in Socal and got plastic bags from target they all ended up in the trash because there wasn't recycling for them available nearby and I wasn't going to drive way out of my way to do it. Here I've been using the bags at least once again, and they always end up in recycling.

The city even recommends using them for yard waste and other compostables as the bags are perfectly biodegradable.
I do, just not enough for my shopping trips. Most of the time I just forget to take them back to my car before going out or don't want to drag them around the store with me.

Side note on them, target used to have these really nice fabric bags. I have two and would love to buy more but none of the stores seem to carry them anymore. Now they just have those thick plastic like ones.
This is a great page that shows a few different approaches. I like the GitHub flow but the GitLab one isn't too different and both would be appropriate for a small team like OP's :).
Is "friend dating" really a thing? That sounds even more ridiculously contrived than "safe spaces".
I'm having trouble understanding the paper. Can someone break down which part people are getting wrong? Is it that the `state` challenge isn't correctly being matched server-side?

Separately - is there an app someone can run to "hack themselves" and see if their OAuth2 implementation is safe?
This spreadsheet "shaming" is getting tiresome. The sheer amount of spreadsheets means that more than a few mistakes will come to light.

Let's not forget the fMRI software with bugs. Was it done in Excel?

Sure, Excel has some problems. No, they are not even close to what is implied in HN threads like this one.
How much total storage do you need?

Something to consider:
A few years ago I used Rackspace's OnMetal servers https://www.rackspace.com/en-us/cloud/servers/onmetal for a dedicated MySQL 128GB RAM server that would handle 100s of thousands of very active hardcore mobile game users. We were doing thousands of HTTP requests per seconds and 10s of thousands of queries (and a lot of those were writes) per second, all on one server. The DB server would not skip a beat, CPU/IO was always <20% and all of our queries would run in 1-5ms range.

I'm not affiliated with Rackspace in any capacity, but my experience with them in the past has been top-notch, esp. when it comes to "dedicated-like" cloud hardware, which is what OnMetal is - your are 100% on one machine, no neighbors. Their prices can be high but the reliability is top-notch, and the description of the hardware is very accurate, much more detailed than AWS for example, and without "fluffy" cloud terms :).

For example:
Boot device: 2x 240 GB hot-swappable SSDs configured in a RAID 1 mirror

Storage: 2x 1.6 TB PCIe storage devices (Seagate Nytro XP6302)
As a web developer, I honestly hope the author of this post is wrong. Performance of modern web apps is simply awful compared to their native counterparts by any measure. They load slowly and consistently feel sluggish in comparison to proper native apps. Slack takes seconds to load and it'll happily sit on over a gig of ram while in use. (And remember, its a glorified IRC client.)

Web apps only have two benefits over native apps:

1. They're easier to build in a cross-platform way, because you just have to make the app once

2. Users don't need to install anything

I hope in the long run we solve both of those problems for native apps and move back to writing applications which don't depend on a DOM implementation to run. React-native is a great step toward solving (1). I hope that in time we can have modern (reactish), good looking cross-platform toolkit for native app development.

But the biggest hurdle is (2), which very few people are attacking. App stores have helped a lot, but we need to be able to run native apps without installing anything. It should be as easy as it is on the web. Unfortunately native app authors usually assume all their assets are bundled. Nobody even thinks about how long it takes from the point when a user decides to install an app to when they see the first content. On the web we count that time in milliseconds and on native apps we count minutes. There aren't any hard technical problems there - we obviously manage it on the web, so its easily possible. We need native apps to catch up if they are ever going to be able to compete as a platform.
Why is it so hard to back up and restore Signal? Why do you lose your keypair?
Hey, so I seem to have reached a dead end here, Signal appears to only offer plaintext exports, adb backup doesn't work, and importing a 29MB plaintext backup causes the new phone (an H631) to hang (sitting at the 35min mark waiting on Signal to import the backup).

I don't understand why I can't do a normal encrypted backup, I remember it working fine most of the time when I used to rerom, and when it didn't I could always do another backup and it'd be fine. Now, my father has changed keys due to changing phones & he has no SMS history and a few dozen Signal contacts who have to click a button before they can read new texts from him.

Why can't there be a checkbox in Settings to say something to the effect of "This feature may be broken, I understand and wish to try it" instead of literally no options when it comes to moving mobile devices?

Also, on another note, why no opus support? I've enabled it on a few hundred of our deskphones, and Linphone & many others support it. The voice quality improvement is tangible and more useful than GIPHY, to the point that I can't get other Signal users to call me via Signal due to the poor call quality.

Overall, it seems like Signal is getting harder and harder for myself and others to use over time, people want something where they can mail their <fill in the blank> a new phone, point them at a 3 step process to move their Signal data over, and that is it!

My father should be able to do this, just:

* Press Export encrypted backup
* Move MicroSD to new phone
* Press Import Encrypted backup

And that should be it! This is a baseline feature, even PGP does better by miles with this than Signal does, and I started out using Signal because it was easier and better than PGP, only to watch features slowly disappear. Its like feature atrophy.
Java, C remain entrenched as most popular languages
I did that in my 20s before meeting my fiancée. Would be a great place to meet friends with similar interests again if we gave it priority (also on the platonic level, surprisingly).
Qantas' Virtual Reality Australia Tourism App
Better yet, just kill yourself. Think of the carbon savings!
Collaborations Between the United States Government and Italian Mafia
Reading that post feels like sincere but wishful thinking. Both major mobile platforms provide the developer with sandboxed access to a more or less complete unix machine. This means complete access to things like underlying network interfaces (via sockets), Full File API access to local storage (inside the sandbox), threads, memory management (via JVM/ObjC or at a lower level in Native C), Graphics hardware via OpenGL just to name a few.

Just because there's now the web standard has some half-hearted attempt at notifications doesn't change the fact that the HTML/javascript based machine available in web applications is a severely crippled platform for app development and always will be.
Has anybody compared Celery 4 to rq (which started off as a much simpler+performant alternative to celery).

Would love to see how they stack up after this release.
Official White House Photographer Pete Souza Reveals His Favourite Obama Photos
nurturing relationships take time, it takes time away from family and work. When you are young you have no family nor job, so you can spend a lot of time with friends.
This comment, chock full of fantastic citations, makes me wish that HN supported at least a small subset of Markdown syntax (even just Markdown links would be great!).
Agreed. I think the other 'more complex' answers assume there's communication or that you know your opponent's strategy. That's not in the problem statement.
The U.S. Military Is Asking You to ‘Hack the Army’
I don't know if it's 'normal', but I share the feeling. My timeframe might be shorter.

It's my opinion that the more extreme manifestation of this need for frequent contact arises from a lack of emotional object constancy[0]. Unfortunately I've found no strategic way out so far...

> This is because of my ineptness at maintaining object constancy. I always struggle to feel loved by a person unless they are in the process of demonstrating it to me - I just can't feel it unless I'm seeing it, touching it, or hearing it. Otherwise I feel totally disconnected, and potentially abandoned. [1]

[0] thoughtsfromj8.com/2015/01/15/object-constancy-adult-version/
[1] bpdbunny.blogspot.com/2013/01/bpd-object-constancy-or-why-i-love.html?m=1
And to think we used to have books full of these secret numbers...
Louis CK captured the weirdness friends after 30 in season 3 episode 3. This episode captures the awkwardness of starting up a new friendship between two adult males. If you haven't seen that episode, you should check it out.
> Either it's time-sensitive or it isn't. Either you need an immediate reply, or you don't.

I think part of the problem comes from differing opinions on what is actually "time sensitive". I think a lot of the trouble comes from someone using a time-sensitive communication method (phone, physically coming to your desk) on something the other person doesn't see that way.

I certainly have less empathy for someone that has time-sensitive problems through their own poor planning (aka "Your failure to plan is not my emergency"). Everyone makes mistakes, but some people seem to continually have their own self-created emergency all the time, and it's completely draining.
Don't use JSON for messaging
For 5-10 people it depends on what everyone is doing. I typically push some code out in the wild (master) for stuff that wont change and do releases or branching for incremental updates and patches. Git Branching + Git Releases should help you out mostly also bonus if you are using github throw in some good 'ol kanaban action using projects.
The answer to this is a spoiler. (Gur nyvraf' checbfr ba Rnegu vf gb grnpu hf gurve ynathntr. Vg'f fhpu na nqinaprq ynathntr gung bapr lbh yrnea gb guvax va vg, lbh tnva gur novyvgl gb rkcrevrapr gvzr aba-yvarneyl. Gur nyvraf jnag uhznavgl gb havgr, yrnea gur ynathntr naq tnva guvf cbjre, fvapr, rkcrevrapvat gvzr aba-yvarneyl gurzfryirf, gurl'ir creprvirq fbzr pngnpylfz uhznavgl pna/jvyy fnir gurz sebz va gur qvfgnag shgher.)
I've used both gitflow and the feature branch workflow which is explained here: https://www.atlassian.com/git/tutorials/comparing-workflows/...

both work well I think for small teams just depends on how well you want to organize things.
This. The first taste of cat B comes when your friends find their spouses, but that first blush lasts maybe little over a year. With kids it's a bit longer.

Also at least for me: when you have a kid the free time you have without any arrangements tends to be couple of hours here and there. It is just much easier to have solitary hobby than to hunt around for a friend whose schedule your free time slot fits in.
It is possible to make friends after 30, and it's very much worth doing. You have to be patient though, as friendships aren't made overnight.

I'm a moderate introvert and find it difficult to talk to people and especially to turn casual acquaintances into friends. I turned 30 last year and about the same time realised that I didn't have any close friends in the same city any more, apart from my wife.

Spending time with my wife is awesome, but I realised I really missed spending time with other people, and doing other activities (e.g. video games, snowboarding or cycling) that my wife isn't really into.

I decided to find a compatible person and try really hard to become good close friends with them. I found an ideal person at a friend's party shortly after who had very similar interests, was in a similar life stage, and who I could easily have thought-provoking conversation with.

For about six months I carefully cultivated a friendship with him from a distance (so as to not scare him off), attending parties he and his wife were at, inviting them round for barbeques with other people present etc. My wife was supportive - as an outgoing person with lots of friends of her own it was difficult for her to understand how it felt to run out of friends but she was happy to come along and help me make friends.

For a long time I was the only one making contact, and he would be polite and hang out, but never suggest things to do or invite us to their place, and I had to wrestle with the idea that maybe he has enough friends and doesn't really want me. Eventually we pushed through this stage though, and recently he has begun to initiate contact and I'm getting the sense that he's really enjoying hanging out with me, which is amazing. We've continued to have really meaningful and resourceful talks about all sorts of things (kids, politics, work, other friends, house renovations, ....) which both of us clearly really enjoy.

We're still in the early stages of our friendship but it seems like it's going somewhere. We're not yet at the stage where we could comfortably hang out "doing nothing", but probably not too far away.
Whitehouse.gov blocking petition to pardon whistleblowers
How many of your neighbors do you know? In many places in the world I've been (generally poorer than the US) - it would be absolutely insane not to know, and talk often with your neighbors. In the four or so places I've lived since college in the USA, I don't think I've more than introduced myself to a neighbor.

I posted the below before, but still think about it a lot.

"As time went by, the settlers from Europe noticed something: No Indians were defecting to join colonial society, but many whites were defecting to live in the Native American one."

The passage shocked me, as it is extremely surprising, and speaks to the core of our societal growth over the past few hundreds of years not leading to maximum happiness. The passage is from this David Brooks column (which I think is definitely worth the three minutes to read): http://www.nytimes.com/2016/08/09/opinion/the-great-affluenc...

The core thought is that people trade up for comfort (including privacy), but that they lose out on the overall bonds with other people that are what really makes us happy.
One extremely clear choice: Do you work from home (more comfy) or an office (more social)?

The work from home choice seems extremely relevant to me. Is it actually bad for happiness in the long term to do something that's so much more comfortable (no commuting, no dressing up, feeling of being at home, etc)?
When I think about the best times in my own life, they were the times when I had a close group of people I lived and hung out with (college, summer camp, etc). I assume it's the same for many others reading this. So why do we not live more like that into our adult years?

Originally posted here: https://news.ycombinator.com/item?id=12299621
To elaborate a bit: That's usually called "Trunk based development", and it works pretty well in small teams (at least that's where I have experience with it), and if you have automated test, and infrastructure that runs them automatically.

See for example https://www.thoughtworks.com/de/insights/blog/enabling-trunk... for a much more in-depth discussion.
Found a security exploit, now what?
I've found a security exploit on a major site. what's the best way to tell them without getting any backlash
I am reading (for a review) upcoming book by Denis Noble called "Dance to the Tune of Life: Biological Relativity" (Cambridge Univ Press). In the book he lays out many important problems with neo-Darwinism, and neo-Lamarckism showing up in unexpected places. The big idea of the book is what we are seeing now with biology is what happened to physics when geocentric/antropocentric view of the world collapsed with Copernicus-Galileo-Newton-Einstein, and there was no center any more. Basically while Dawkins and other "high priests of neo-Darwinism" believe in centrality of genes (replicators), the new paradigm that is emerging is that there is nothing central to genes. "The genome is an organ of the cell," as Barbara McClintock said. DNA is just a dead molecule. There is so much more to evolution to consider than just building organisms around replicators, because there are so many different scales we need to consider: subatomic-atoms-molecules-polymers-organelles-cells-tissues-etc etc.

And since it's hacking forum, the book discusses the other problem with DNA being the only book of life: it's an incomplete program to be responsible for creating a fully functional output, because it is linear without true logic elements.
Is this a given though?

What is stopping a progressive web-app from performing as well, or nearly as well (to be impercetible).

I would have assumed that most of the time waiting is on network events - so using things like service workers to handle things asynchronously, and also handle caching would reduce things.

I watched a presentation on how Google made the IO 2016 webapp (https://events.google.com/io2016/):

https://www.youtube.com/watch?v=__KvYxcIIm8

and they used quite a few clever tricks to tweak performance.
I see you've met my dishwasher.

"Hey, the wash cycle is over" Yes, but everything is still as hot as lava.

"Hey, it's been 5 minutes." Still hot.

And then it beeps a "Hey!" every five minutes thereafter.
> You could try git workflow, but it's just too complicated for small team (and for large teams too?).

git flow seems overkill, unless you regularly need to patch older versions. For software where you control which version(s) are deployed, you can usually get away with (much) simpler workflows.
Like many similar articles, it seems to be missing the very important `next`. I understand it didn't actually gain underscores until Python 3, but it's still been part of one of the most important protocols in Python for many years (the iterator protocol).

Discussion of similar article: https://news.ycombinator.com/item?id=6886411

Direct link to the article from that discussion (original no longer available): https://github.com/RafeKettler/magicmethods/blob/master/magi...
The nice thing about Markdown is that it still works pretty well anyway.
An alternative to user5994461's suggestion would be to switch from CephFS to a different distributed filesystem. If you need POSIX and can't go directly to S3 you could try ObjectiveFS[1]. Using local SSD instance store and memory for caching you can get very good performance even for small file workloads[2].

[1]: https://objectivefs.com
[2]: https://objectivefs.com/howto/performance-amazon-efs-vs-obje...
>if every new family, every fresh-on-their-own adult, every new arrival in town within the same age and peer group experiencing the same social decline, why is this phenomenon so widely unsolved, and not self-correcting?

Because most problems are not self-correcting -- they require real and conscious effort, and even that can be futile if it goes against larger forces (e.g. economic downturn / necessity).

Poverty, sexism, discrimination, bullying, corrupted politicians, bureaucracy, the examples of not self-correcting issues are countless.
you usually also need feature flags.
I had a lot of success with a master branch, all features built in feature branches.

Feature branches were rebased then merged with a --no-ff. This creates a merge commit on master which includes the ticket number and short description.

The rebase is done by the feature branch developer who is usually best qualified to do so.

The advantage is that changes are isolated from each other, so nothing is spread before it's reviewed. The rebase makes the history easy to follow because it becomes linear and you can always easily see exactly what was changed in the branch. You still retain the full history of the feature branches.

Disadvantages: it doesn't scale to a massive team because you need to linearize the merges back to master. So it works for upto around 20 people.

I'd recommend against Git Flow because their method of merging makes it very unclear exactly what was changed in a branch. I actually prefer no feature branches to using Git Flow.
One source I forgot to add (edit window for my comment has passed or I’d add it in context above):

Alan Bromborsky, An Introduction to Geometric Algebra and Calculus http://www2.montgomerycollege.edu/departments/planet/planet/...

Also some more links at http://www2.montgomerycollege.edu/departments/planet/planet/...