skysight-inc/HackerNews huggingface dataset:
I agree it's terribly named, however discussing the behavior of strncpy is important because the casual reader or new C programmer will see "don't use strncpy, it's broken" and then come away with the wrong idea. strncpy is not inherently broken but it's most likely not the correct function to use. As a C programmer it's important to understand why and what the alternatives are (and there are several).
Is it possible to avoid printing these dots in the first place?
>You don't think there's _any_ conceivable way that law enforcement could utilize facial recognition tech without negative consequences?

Absolutely. Deploy the cameras around town and train it using pictures of their officers to catch misbehavior.
GMail now finally works with Yubikeys! Switching from Chrome is now finally possible.
> Plastics are aesthetically bad, but other forces are quantitatively way worse.

I don't agree with this line of reasoning. We have room for more than one priority, and solving the waste pipeline is ultimately one of logistics and political will, as well as elbow grease and the pluck to get out there and pick up some garbage.

I've seen whole gaggles of people walk past a bottle lying on the ground next to a trash can, and no one would stoop over and pick it up and put it in the trash. Humans have this disease on societal scales, and the oceans are taking hell because of it.
I constantly see people at airports on FB
FWIW, this isn't about trophy hunting at all.

> Mr Guma said smallholder farmers living along the Botswana/Zimbabwe border fence had struggled for years with elephants that regularly invaded their land and destroyed their crop

It's because elephants are currently causing actual problems for rural citizens of Botswana.
Form design for web: A fool proof guide
Sure, if you want to be modern.
You could do this multiple times in the same top-level template if you're a masochist. Just use jinja2's set command to setup local variables in the template. You can do awfully complicated logic in jinja2, it's just that almost nobody will pass that garbage in code review. It gets kicked up to the python layer where, being a full data structure and regular code, it is easier to organize, comment, and test.
Are you playing on Easy, Normal, or Hard?

Once you have the basic metagame down (I believe around 30 hours of playtime), then getting to the final zone should be doable with the default ships.

Also, are you using space to pause the game when you need it? I had no clue that I could do that until 20 hours in, just before I almost deleted it all of my computer.
Sex workers are moving to blockchain payments
It's a shame he couldn't put that vision to a better use than advertising.
For me, it's loading up Instagram and seeing just a bunch of interesting photos. Minimal memes, no link shares, and it's rare a comments thread that devolves into insanity.
Okay, are you relying on government reports? If you do then you'll be surprised to know that the ruling party thinks that Demonitization eradicated black money. They spent like 1k crore in such advertisements.

Banning things doesn't work, you can get _everything_ in the black market. Did you miss the news of a BJP leaders son who was found in broad daylight in a Gujarat Airport?
Do you have some proof to back this? CSS matching is incredibly fast.
US astronaut Buzz Aldrin sues his children for 'misuse of finances'
CALLBACK: Aviation Safety Reporting System
If you had to name it according to unix traditions, how would you?
Not really, when you see the data
http://ec.europa.eu/eurostat/tgm/table.do?tab=table&init=1&l...

UK is not a particularly attractive destination for either economic/humanitarian reasons compared to Germany/Italy etc.
Our Country Split Apart
I feel like Facebook would have found an alternative to squash the competition, but also, in this case I agree that they were already bound to be successful given the ease of use.

I found the story of Instagram interesting, if you're curious. Link to the "How I Built This" podcast episode on Instagram: https://www.stitcher.com/podcast/national-public-radio/how-i...
There's not a lot of comments here, so I'll give a tl;dr:

They found a "use after free" bug in JavaScriptCore due to some asnyc GC and used it to get RCE in Safari at Pwn2Own. By making a large array of arrays, and then reversing them, they interfered with the "mark" part of "mark and sweep", resulting in some of the arrays not being marked and therefore being swept (freed) and used for other things. Pretty picture showing what's going on: http://blog.ret2.io/2018/06/19/pwn2own-2018-root-cause-analy...

some more details:

- this was found with a fuzzing tool

- they make a large array of arrays (~20k)

- they map over the array of arrays and reverse the arrays inside it

- they print out the contents of all the arrays and find that some of the objects they are printing are not arrays, but are an entirely different javascript object: promises (this is a symptom of the bug)

- they use a very nice debugging tool[0] that let's them step backwards in time, this proves invaluable as they can start with the symptoms of the bug and then go backwards to see what has caused them

- they discover that the memory of the arrays is being marked as "not used", getting freed by GC, and then used by (unrelated) promises. this is a "use after free" bug and they're very serious (this one is used to get RCE at pwn2own)
- this happens because the GC is marking this as used in an async manner, so when they make their large array of arrays, not all of the memory allocated for it is actually marked as "in use". as the GC is iterating over everything and marking it as "in use", JavaScript continues executing, and in this case, starts reversing the arrays.

[0]: https://rr-project.org
Pick something that you use in a language that you're familiar with. Look for github/jira issues tagged something like: 'good-first-issue', or just interesting issues in general.

Honestly you will learn a lot just setting up a project and getting the tests to pass if you haven't done that before.
I don't mean to be overcritical of someone learning to code—this is much more a criticism of people upvoting links without clicking them—why is this on the HN frontpage? It doesn't work. At all.

Try clicking on the "Markets > Read: Economics" link.
Git Tower Goes Annual Subscription
Social pressure to be on instagram seems to be growing. For years I could get by with facebook, and my phone number / whatsapp for close enough friends. I'm now on instagram after a bunch of people I met independently in Berlin, Amsterdam and San Francisco in the last few weeks expected me to have an account there. I told the youtube UX person who I met in SF that I noticed this trend and don't fully understand it, and her response was that instagram is just how you write messages these days, as if this was totally obvious and not a side feature of instagram.
I was using Tower 2 for years, and have been using the beta for a while, and love it. However, I'm really in two minds about the way they've chosen to implement their payment model change...

On the one hand, I'm a proponent of subscription pricing, as it keeps the company in business and gives them a more consistent and dependable revenue stream, all of which are positive things. On the other hand, the pricing for this seems REALLY high -- they're charging close to what their perpetual license used to cost, but now on a yearly basis! (it used to be $79, while the new Basic yearly license is $69).

I'm happy to pay for a product I use and enjoy, but I don't think you can have it both ways... either you significantly reduce the cost but charge yearly, or you keep the cost high and charge it once. I feel like Adobe did this really well despite the large amount of grumbling that the move produced -- their products used to be too expensive to buy for many people, and they introduced a subscription model that isn't exactly cheap but is definitely within the realm of reason, which allowed people to actually afford their products.

I'll have to think about whether Tower is worth this much money yearly (basically, whether I'd be willing to buy it again every year). It might be time to look into alternatives... when I first started using Tower it was head and shoulders above the competition, but I've been hearing good things about how much SourceTree has improved in the past few years.
You clearly don't know India. In other countries your assumption could hold true, not here.

You can get anything as long as you have connections and the money
Ask HN: Is there a service to check on people?
Considering the ever growing population of people and families who lives far away from their relatives and families, maybe even in different countries , I wonder if there is a service just to keep tab on people. For example call someone once a day just to check if they are ok.
Still seems like there's no first party support for container sync.
I had to ponder on what it is that really sets this sort of person apart, and I think it's the sort of sneering disdain at the idea that any of the other languages in the world are worth anything, or have any good ideas. Or maybe it's the way that when you ask them what's good or bad about some other language, you get back just a list of differences those languages have with Java, and it is simply assumed that all differences are ways in which they are inferior to Java.

And let me say again that it's not specifically Java. I've seen a couple of people that way with C, for instance, though not in an interview situation.
Discussed quite a while ago: https://news.ycombinator.com/item?id=8443727
On a side note - I'm unable to square this fear of watchers with parents happily singing to their kids - "he knows when you've been sleeping .. he knows when you're awake .. he knows when you've been bad or good, so be good for goodness sake"
There's two dimensions: what's more likely to be retweeted (=reach), and what's more likely to be considered by a potential employer or someone referring to a potential employer. I'd guess the proposed form is better for the second part, but it's a guess. And depending on your network, reach might be more important to actually get seen by interested parties.

Ideally of course, you get RT'd by people that have worked with you and vouch for you.
> Having a discussion with someone who quotes Dijkstra can be frustrating.

Agreed. Most of the time, it seems the pithy quotes are the only thing that the quoter knows about Dijkstra.

> You end up having to explain why blanket bans on goto don't make sense

For Dijkstra's GOTO quote specifically, there's a wonderful document by David Tribble named "Go To Statement Considered Harmful: A Retrospective" that does a line-by-line analysis of Dijkstra's paper and explains what Dijkstra's meant in the context of his time and examines where usage of GOTO still makes sense today.

http://david.tribble.com/text/goto.html
As much as I’d love to agree with you there are a lot of idiots out there that click on ads because they legitimately believe it’s a good product/service (hint: if they have to pay someone to shove their product in your face, it’s not a good one), or can’t tell the ads from real content (I guess that’s why “chumboxes” like Outbrain/Taboola are still a thing).

I had first-hand evidence of this when my friend fell for some weight loss scam ad of Facebook. We ended up charging it back, and despite all that she’s still not convinced and will happily participate in loyalty schemes, give out personal information to anyone that asks (she literally gets one spam email every few minutes in her Yahoo mailbox) and prefers buying from unknown/shady/scammy sites like Groupon rather than more reputable outlets.
too philosophical, how about figuring out first how we identify objects, parse sentences or recall things from memory before talking about consciousness
Facebook probably would have copied them somehow, though I don't know if it would have been successful. FB's duplicate of Snapchat has been a huge success and is a major part of IG today. I don't know if FB would have been able to successfully replace Snapchat without using the Instagram app as a springboard.
Makes back button unusable.

EDIT: ok, I see what they are trying to do, using # URLs whereas the "real" url would be an actual link that directs you to another page so the back button would work fine. But why make them weird fake links? Why not just make them actual links? It would make sense and wouldn't make the menu jump around randomly.
Monopoly? In 2012, Instagram had 40 million users and no revenue[1]. Hardly a monopoly.. Everybody mocked Facebook for buying up Instagram for the amount of money they were offering. Nobody (or, perhaps, very very few amount of people) at the time thought it would become a $100bn company. You really think the government should have had the foresight to block this? Wishful thinking on your part..

[1] https://techcrunch.com/2012/04/13/instagrams-user-count-now-...
I'm by no means an expert - just a hobbyist tinkering with some RF magic, but I made a simple POC of using SDR to reverse engineer and perform jam and replay attacks on cars - essentially giving you permanent access (for cars with button keyfobs). I have a short write up here: https://github.com/trishmapow/rf-jam-replay
WhatsApp is also turning out to be a great acquisition too
Thanks for the advice. I think you may be right about the custom build... At least I'll get exactly what I want.
Another poster in this thread was reminded of this book, about 3 hours earlier: https://news.ycombinator.com/item?id=17397791
> alcohol prohibition increased the crime and alcohol poisoning rates; because it was killing more people than it was saving.

Lots of people have argued that the same is true of the drug war, it's just that the mainstream discourse isn't interested in examining this as a factual proposition.

> They might've given up because the state prohibition laws had exceptions for religious and medical purposes and so were explicitly unequal

Same is true of the drug laws (e.g. opiates)?
There’s a great Joe Rogan podcast with a bow hunter, and Joe spends a lot of time explaining why trophy hunting can be great.

It funds conservation, which decreases poaching, which is better for literally everyone involved including the animals and the poachers.

I believe it also tends to be very controlled and directed so the effects can be planned.

Elephants can be a huge, dangerous, nuisance (apparently) to farmers who are trying to have enough food to eat. That’s just one example.
I enjoy IG because I have narrower friends and family there. ...and Orvis. Love flyfishing and honestly I couldn't consume the content there or see amazing fishing or be "up" on their stuff by watching tv or browsing. It's condensed. I tried following some skiing stuff but just get spammed by people trying to hawk stupid ski sayings on tshirts. Mostly recycled junk. I now almost have more followers by people hawking ski t-shirts than friends. It's just stupid.
>Because all those things are very, very different?

For a comparison, murdering someone is very very different than punching them, but we still making punching your toddler illegal even though we agree it isn't nearly as bad as murdering your toddler.

So things that are very very different can still be quite illegal if they are horrible enough, so why doesn't that apply to those cases? It all comes down to subjective and often illogical judgments made by a society.
Shameless plug: Few years back I was into SPAs and I started writing a tutorial for Vue.js

https://github.com/thewhitetulip/intro-to-vuejs
http://charlescosta.net/2014/04/how-the-seven-deadly-sins-dr...

tl;dr — Every successful social startup should bend, but not completely violate, one or more social taboos, e.g. one of the 7 deadly sins.

Edit: When designing www.fwdeveryone.com, we purposely incorporated Pav's theory by building the platform around the taboo of getting involved in other people's relationships, in this case by letting people read (and reply to) other people's email conversations.
> Mainly I dislike using them because I have to refactor them to use Javascript so they can be stateful

You shouldn't need to refactor anything done in HTML or CSS to add JS-driven statefulness. This is what's great about using JS: it's power allows it to wrap/augment existing functionality quite flexibly.
It's like the TSA- Security theatre, not security that's being sold here
You can; it’s just expensive. With Dante-compatible gear all the way through, for example, you could have ADC in your wireless mics and DAC not until your powered speakers. A high-end tour or auditorium built in the last few years might have that stuff. But analog gear still works fine, is more serviceable, is a lot cheaper, and is usually brought over to digital one system at a time (the biggest gains come from digital mixing boards).
5 Tech Books I Couldn’t Bear to Throw Away
I'm not an economist, but:

One way might be to measure average incomes against cost of living. The economy is healthy if the majority of incomes are going up faster than the costs of living are.

Another might be the percentage of adults who are collecting incomes, based against the average of incomes. (Effectively, a more accurate unemployment figure).

Another way might be to measure the average amount of savings individuals hold. Or, their assets, excluding homes and automobiles.

---

I would propose that the stock market is probably the worst way to measure economic health. Because the vast majority of the population owns no stock themselves but must be customers of these companies, so the vast majority of the population only suffers when stocks price changes for any reason (both when it goes up, and when it goes down).
It's definitely a frustrating experience to have to re-assign all of your containers if you happen to reinstall the browser. This should be easily supported by Firefox Sync.
In Dublin we have Mattress Mick.
Would have been willing to pay for the new version, but no thank you for a subscription.
How do you enforce this? What if I just kept a year-old plastic bag around?
...for me...comments are rare. It is a welcome thing.
Yeah, which is another reason they got rid of the chronological timeline. People were opening the app so often and frequently, they had to ensure fresh content. This way they can track which photos you've seen, and make sure to float to the top ones you missed.

Edit: All the points below are true too, of course. I do find myself subconsciously opening instagram a scary amount, so seems one reason to switch it up would be to always have fresh content. I do agree that once you get to where you last left off, you're likely to exit the app.
Just updated!
Advertising is a very legitimate way of making money, lots of it. Now tracking people all over the web and other shady things, are a different story.
>"For example call someone once a day just to check if they are ok."

You mean like a telephone?
Civic Tech in a Time of Technopessimism
My favorite improvements are:

* On-by-default support for the latest draft of the TLS 1.3 specification

* Convenient access to more search engines: You can now add search engines to the address bar “Search with” tool from the page action menu when on a webpage that provides an OpenSearch plugin
The Demon Cholesterol: How Dangerous Is It Really?
With enough pressure I could see a reusable-dishes-as-a-service type company. A restaurant could pay this service $x per month and the service would come daily to drop off clean containers and pick up used containers for cleaning and sterilization. Restaurants could have a deposit upon getting a meal, say $3. When you bring your containers back you get your $3 back (or $3 towards your next meal there?).

If multiple restaurants in your area used the same service, or if the dishes were standardized enough, then you could drop off your used dishes at multiple different places whenever you get take-out again.

Obviously this is "in an ideal world" thinking, but it seems like with enough economic pressure on the take-out industry it could start being feasible.
Andreessen Horowitz Launches $300M Cryptocurrency Fund
Firefox and Chrome extensions that resolve .bit domains already exist, the relevant companies just need to audit them or write their own solutions and then bake them into their browsers. Nowadays, most users don't even know when their browser updates. Once every major browser resolves .bit addresses, the battle over secure DNS will be practically won. Hold-outs are okay, I feel no need to force people to use more secure systems.

The result would allow us to avoid situations arising from incompetent or malicious signing authorities, like DigiCert Sdn Bhd or Diginator. The problems addressed are not delusional dystopian fantasies, but rather the security of the internet. Malicious signing happens, just read the news. All non-malicious entities using https should be overjoyed by the availability of a more secure system. The only problem I see for adoption is network effects.
This still relies on a special build of Nginx (from the PPA repo) instead of LTS Nginx, although I agree that it's already more convenient than unpackaged sources.
I would imagine it's because rural areas of the country are over represented in Congress per capita, plus it's not farmers but large corporations like Tyson who produce most of the meat?
And plastic intensive as well.

A single plantation of 1 ha of olive trees in super high-density mode uses around 1700 PE cups, 1700 PVC shoot protectors and 2,5 km of PVC drip irrigation tubes, not to mention the tying.

Melon production also directly uses plastic, albeit temporarily. Greenhouses need repair and maintenance.

Also worth of mention all the herbicide/fungicide/insecticide plastic containers. Only these last have an actual though-of destination for recycling, which is mandatory. These have to be washed and made unusable, to avoid accidents, which means forgetting about 2 out of 3 Rs in this case.
Mozilla, when will you fix scrollbar width issue? I’ll say you 1000 times “thank you” when it happens.
Jewellery Inventory Management: 18 Major Challenges
Sure, but then the US government is accepting capital from China to finance itself. Is it a high level quid-pro-quo to give China "freer" access to the US market?
Who insures the reinsurance company?
Or if you happen to run Firefox between multiple devices. It's been a pain maintaining a couple of instances' synced when it comes to containers (again, such a shame).

There's an open issue [1], but no resolution yet as it seems.

[1] https://github.com/mozilla/multi-account-containers/issues/3...
FWIW at Cloudflare we were running brotli for dynamic content for a while now. However the Cloudflare gzip library is much faster than brotli. You can find a benchmark in here: https://blog.cloudflare.com/arm-takes-wing/
This is a lot of work and value you are adding to the world for free, thanks for putting it out there.

An email address is a small thing to ask for when what you are providing is much more than 5-10 hours of work. I guess it's a fair trade for me right now because I'm exploring Vue.js and it looks to be much more mature than 1-2 years ago.
Instagram is the only effective choice for social networking and business promotion in a large social group I'm aware of - American alternative culture, both sexes, from 16 to 45. IG has also been adding features like stores.
The current state of Cyber security: The risks, responses and responsibilities
Try one of the alternatives? https://addons.mozilla.org/EN-US/firefox/collections/cris_70...
Wicked Problem
Sperm Warfare (Or: Why It Takes 1B Sperm to Make One Zygote)
I laughed too, I was thinking "Wow, $1B for a photo app that has some lame filters, take a semester of digital image processing and you could do that".

To their credit, the app was extremely simple back then, today it has managed to add complexity without being so overwhelming(although Instagram TV adds more eyesore to the screen), slowly they copied good, proven features and blended well into the Facebook ecosystem.