skysight-inc/HackerNews huggingface dataset:
Really awesome. What Im dying to know though is some stats on the profitability. On average what sort of groupings of parts do you get from the bulk Lego and what do they sell for vs what you paid for them? Is there a variance is the quality of the bulk lots? I presume once you've sorted out the rare Lego you could just resell the common stuff as another bulk lot, but if everyone does that how do you avoid buying stuff that has already had the rare pieces filtered out?
Algorithm Uses Photo Networks to Reveal Your Hometown
I do sympathise with Nautilus and want them to succeed. But I am a freelancer who has not been paid by them for eight months now. A longform piece takes weeks to write. Interviewees gave their time so generously to me. And I was ridiculously excited to write for a publication I respected so much.

I had no idea that nautilus were still commissioning features when they knew they had no guaranteed income stream to pay their writers.

When nautilus ran into serious financial trouble they did not publish many of the articles they had commissioned, mine included - this meant that they would only have to offer a much smaller kill fee for these unpublished pieces. I am waiting for this fee (and am aware of several others writers in this situation). But we didn't know the pieces would never be published. We were never told. Instead the promised nautilus issue emerged that day, we told our friends, we scanned the pages with genuine excitement, and our features were absolutely nowhere to be seen.

Emails to the editor (naive, perfectly friendly emails) went unanswered for weeks.

I actually honestly wouldn't have minded as much if they were up front last year and said look, we just don't have the money, we messed up, we're sorry. They're a publication I truly want to survive regardless of my input.

But I'm a freelancer and that promised money was going to see me through Christmas. They should not have been actively commissioning when they did not have the means to pay. It was also really humiliating to email them for weeks to ask where our articles had gone. Why not reply honestly to us at the outset?

Christmas came and went. I couldn't afford presents for my family. I lost the chance to submit elsewhere because it was a time-sensitive piece. I had to apologise to my interviewees who I bet won't be so generous with their time the next time a writer approaches them. They've been burnt, too.

And even now (in the last week) nautilus have told me they're about to merge with AAAS and so we'll all get paid. But it's clear from the Undark piece that this is not true.

Sometimes magazines run into problems. I get that. I feel bad about it. But then don't commission pieces when you know there's no money to pay freelancers whose livelihoods depend on each and every word they write. We actually get paid by the word! Don't humiliate writers by making them beg for checks for weeks of work. And don't promise a merger is imminent with a big science institution when that big science institution will deny it. Good on Undark for this piece. And congratulations to the many fantastic science magazines who do the industry proud.
Reforming land use regulations
The Definite Startup Funding Guide (From Idea to IPO and Facebook Case Study)
I did the same a few weeks ago, but mostly because I realized "I read a lot of Nautilus articles through HN, and every one has been excellent."

A subscription isn't that expensive, and part of making the world you want to live in (one with greater scientific literacy) is putting your money where your mouth is...
I did not mean to compare the two cases at all and am sorry if it came out that way. I just wanted to answer the parent post on 'what the "anomalies" this site detects in Denmark, Finland, and France represent' by pointing out that TPB is blocked/censored in these countries. I only meant to point out one possible reason why the above site listed these countries.
Since when do pilots get paid well (speaking in general terms, in the USA)?
When it fails it leaves you with something that's not a string. It's not safe and it's not a strcpy().
I wonder why would someone buy an I3 instead of a Model 3? Model 3 seems to win on all fronts: looks, performance and value for money/price. Is i3 really just a POC for BMW?
You regularly transfer money with this guy but you're both happy eating transfer fees every time?!

Seriously? Wtaf? BACS and Faster Payments (through your banks) are free. You're literally pelting the Devil with your money for getting in the way.
This is clearly a trend, though it remains to see if it will garner enough acceptance to actually be "the future". systemd supports launching container-based services via nspawn and already namespaces "legacy" services very heavily. In fact, systemd et al were among the heaviest early drivers of cgroup technology for cleaner starting and stopping of groups of processes.
Strncpy does not return a valid string. It is not a substitute for strcpy.

Take the strlcpy() function from OpenBSD and incorporate that into your source if you don't have access. Strlcpy() is a well designed substitute for strcpy.
Islamic State didn't exist in 1985, and in fact few people in the west appreciated the toll Islamic theocracy took on women in the middle east.

That doesn't sound quite right. The Iranian revolution was recent and a direct influence on Atwood's writing.
Science News has been published since 1922. The print edition is bi-weekly.

https://www.sciencenews.org/about-science-news
Excerpting from the article:

> Now having a function like this in the standard library isn't such a bad thing in itself. It's designed to deal with a specialized data structure ...

> The problem is that the name strncpy() strongly implies that it's a "safer" version of strcpy(). It isn't. ....

> It's because strncpy()'s name implies something that it isn't that it's such a trap for the unwary. It's not a useless function, but I see far more incorrect uses of it than correct uses. This article is my modest attempt to spread the word that strncpy() isn't what you probably think it is.

This argument seems correct to me. "Safer," here, does not mean "If you swap out every use of strcpy for a correct use of strncpy, you'll have fewer bugs." As the author is defining it, "safer" includes the risk that someone will be less rigorous with their code by assuming strncpy will solve all their problems. It won't. It will solve some of their problems, yes, but they still have to analyze their problem almost as rigorously as if they were using strcpy.

If a code reviewer cares deeply about strcpy and less deeply about strncpy (and anecdotally this is a thing code reviewers do), then in practice, the use of strncpy is not safer.
I have no idea; some people on the autistic spectrum may have issues with it too. I guess my point is that autism seems to be about ability to handle social situations rather than the underlying reasons.
Secondary effects of encrypting the web
When strcpy fails it results in undefined behavior. strncpy is safer. It is not safe. This article really ought to apply s/safer/safe/ and then it'll all be good.
The point that tim333 is trying to make is that the source you're citing is wildly unreliable. Take a look at their home page -- just on a first glance, I see:

* Several videos about Pizzagate (and I don't mean critical examinations, either)

* A number of anti-Semitic images ("Jews control the banks", etc)

* A video literally titled "Hitler Survived WWII & Occult Nazi Scientists Developed VRIL Haunebu Foo-Craft (UFO’s) at Secret Antarctic Base-211"

* Another video literally titled "Illuminati Hip Hop Blood Sacrifices Exposed"

* A video about how Christmas is a "Satanic Illuminati Holiday"

* And this video

It's not a great stretch to say that their description of a "nuclear tunnel boring machine" is every bit as absurd and untrue as the other videos they distribute.
Thanks for linking that. I'd read it before, but it was useful to read it again ;-)
Todd C. Miller's original paper, strlcpy and strlcat, is a good read about the issues with strncpy and unbounded strcpy.

https://www.sudo.ws/todd/papers/strlcpy.html (USENIX '99)

Further reading, including EXAMPLEs:

http://man.openbsd.org/strlcpy

http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/lib/...

Barring quibbles about return values, strlcpy is essentially:

snprintf(dst, sizeof(dst), "%s", src);

A lot of people have been misled by strncpy, when what they really needed was strlcpy:

https://blog.mozilla.org/nfroyd/2013/11/05/the-performance-i...
Analytics on the New York Rental Market – Top 15% on Kaggle
I find it useful at breakfast or when i need a quick energy boost an hour or so before "real" food.
I agree with the first half of your argument, but not the other.

https://en.m.wikipedia.org/wiki/Territorial_claims_in_the_Ar...
When strncpy fails it leaves you with a character array that isn't NUL-terminated. Passing that to another string-handling function is undefined behavior, because it is not a string.
sorry I'm poor. No amount of marketing will make me buy something I don't absolutely need
I guess RancherOS is not something "new". First time I use it was in 2015...

Anyway, it seems it's design has inspired some people recently.
Interesting, I did my degree (in Maths) with the OU and have been pondering whether to do my masters.
Lean forward so you can see around it. If you can't position your head so that you can view your blind spot (possibly with the aid of mirrors) then you can't drive safely and need to adjust your seat or get a new car.
As a relative newbie to Haskell, the linked document contains a lot of information that I had wondered about but hadn't found definitive answers for (eg. Should I be using String at all?) as well as a wealth of information I hadn't even thought to ask yet. I suspect it's going to live in a browser tab next to Hoogle until I get a lot more experience.

Favorite line: "Playing "type-tetris" to convert between Strings explicitly can be frustrating." Such understatement! Converting between string types and dealing with the lack of scoping in records have been two major pinch points for me with Haskell so far.

Most puzzling part: The description of Erlang as an imperative language.
If you are a young person living in a poor country, the two best investments you can make to improve your standard of living are (a) get a university education; and (b) immigrate to a rich country.

Germany offers both:

1. A free undergraduate university degree

2. For every graduate: 18 month work visa after graduation

3. For every STEM graduate who earns more than EUR 40,000 per year: approval to work in Germany forever (ie. a 'blue card')

Yes, you must first learn German, have good high school grades and be able to borrow EUR 9,000 to apply for the student visa. But for millions of people living in third-world countries that is achievable and a great investment given the enormous returns on offer.

So why isn't Germany flooded with foreign university students?
To my knowledge there is no quota either for foreign students or students in general. If we'd get twice as many applications in one year, we have to fit twice as many people in the lecture halls. In Germany, education is actually a right and a lot of people sue their way into universities when they are rejected based on their grades.
Incredible Machine!

Question: Were you able to utilise any data about Lego parts from Lego's own catalogues (current and historal) or technical specifications? It sounds like you trained the classifier manually. I imagine if you want to sort into sets you need to know what makes up a particular set.....does Lego provide an API or anything regarding parts/sets?

Further to that, if you have pricing data on sets you have a nice little optimisation problem - given my metric ton of parts, what are the most valuable complete sets I can make?
In the spaces I frequent, it's becoming more common to introduce onesself by also introducing your preferred gender pronoun. "Hey, I'm Danielle, they/them." "Hi, I'm Mike, he/him." "Hi, I'm Sarah, she/her."

I like doing this because it's one small, simple way of welcoming those who might not otherwise feel accepted.
I did it with Pavlok, which is a wearable device for waking up early and changing habits. The first 100 was done through writing blog posts, getting email subscribers.

When we were ready with a basic prototype, we did a webinar presentation to our email list to pre-sell it (6 months before our indiegogo). We ended up selling about 200-300 prototypes before the webinar, and 300-400 pre-orders.

When we launched our Indiegogo, we built up a ton of press, media, bloggers, email and social influencers, etc to announce our campaign all at the same time to make our indiegogo sell ~3000 units pretty quickly.

Obviously it's a little different than software, but I find the launch methodology we used works in software launches too.

[1] http://pavlok.com
[2] https://www.indiegogo.com/projects/pavlok-breaks-bad-habits
[3] https://medium.com/@maneeshsethi/kickstarter-is-sorta-debt-a... -- this is an article that talks about how we built a hardware physical product without a real VC round.
I would love to know more about the person behind and responsible for screwing over the writers.
Agreed (coming from a similar spot it sounds like, in my case daily operations tools for SMBs): build a good product, and a sales team to sell it. Then sell it, all day, every day. Just make sure the product can back up sales!
If I somehow violated HN-etiquette, sorry for that and I’d appreciate to be pointed into the correct title-rules for posting an article like this (or whether this is a place to share such an post).

Regarding the value we create: JayPads are a tool you can use to quickly make a plan in a group (coordinate a weekend trip, a party, etc) or to start the process of “getting something done”. In a way it serves as a mini project management tool: A group chat separated from added features (like polls, notes, etc.) which conserve more permanent information which might otherwise get lost in a typical chat conversation.

I’d love to hear if this clears things up. And especially your thoughts on how to improve the landing page as well as the app itself as we might not have succeeded in getting our points across to you.

[1] https://hackernoon.com/how-planning-a-weekend-trip-with-our-...

[2] https://hackernoon.com/how-jaypads-help-us-build-jaypads-c66...
Unfortunately, systemd/nspawn does not benefit from the hype Docker garners, despite being infinitely better. This industry is becoming more and more hype and cargo-cult driven, instead of making sane technological choices
Just to make a few things clear:

There are hundreds of startups coming and going every week. Meta is one of them. Of course I did not wake up today and said to myself, “I am starting a startup today.” — Building a startup requires months or even years of planning before thinking about starting.

We are in the golden age of startups. Tiny startups are getting big and helping the smaller ones getting big too. There are so many awesome blogs and books about startups out there.

I am not sure how I will build Meta and what Meta is going to be. I hope you’ll follow me on my journey — I will keep you up to date best I can.

Please upvote and comment - Thank you.
There's definitely overlap in functionality between RancherOS and LinuxKit, but there are also a few pretty big differences.

- LinuxKit seems designed to be a piece that can be used to build a Linux distro but isn't a full distro out of the box like RancherOS

- As far as I know LinuxKit is still based on Alpine whereas RancherOS is custom and doesn't have much of a host filesystem

- LinuxKit is based on containerd and RancherOS is still based on Docker (though this is likely to change soon)

We're definitely interested in collaborating with LinuxKit since we do have similar goals. It's probably a good idea for us to write a more detailed blog post comparing the two since we've been getting this question pretty often lately.
If you have to handle malicious or potentially buggy input, you probably have to check length anyway to avoid DoS, so std::string isn't automatically safe.
Pkg – Package your Node.js project into an executable
Posted this in the 0-100 thread, but posting here as well:

I did the following for http://www.oppsdaily.com

1. Posted landing page in a slack chat (first ~10 users)

2. Posted on the indiehackers forum (+30 users)

3. Got mentioned in the indiehackers weekly newsletter (+150)

4. Posted to hacker news (+?)

5. Posted to product hunt (did not go so great)(+?)

6. Started posting weekly metrics to HN - made the frontpage (+1500-2000)
It looks great. I wish there is something like this for stock market data...
Remember that there's not just one answer. While other answers may work in different degrees, you should find your marketing mix.

While I agree with some strategies (particularly inbound marketing), I think that viral marketing has very high potential. Think about that: you want to grow from 100 to 1,000 users. How many hours did you spent on each one of those initial users? Now multiply it by 100. Seems scary, doesn't it?

Better harness the userbase you have, and let them spread your product. If each one of your users can bring one more user, you've effectively doubled your userbase, and then again, and by the third time you are 200 users away from your goal.

This seems so easy and magical on paper, but you have to design your product's virality: thinking about how it's easier for your existing users to bring more of them, and rewarding both, either with cash or with influence.

A lot of business have been made with this strategy in mind. Just look for the story of Hotmail. If you want to read more, check out Ideavirus by Seth Godin, and Viral Loop by Adam Penenberg.
Django LTS: Security patches for older versions of the Django web framework
CNN: How the world sees Trump, 100 days in
Any halfway competent C programmer knows very well the caveat with strncpy. If you tell it to copy 5 characters, and the source has no NULL appearing within those 5 characters, what would you have it do? Copy more than the number you told it, so it could append a NULL? Copy one less than the number you told it, so it would have room to append a NULL?

The article is shit.
Yes, that is exactly what it means. Every symbol (vertex of the graph or element of a triple) has its own bitstream, which is used to implement all the literals.
Like we can justify all decisions made by super genius people who are extraordinarily good at concealing their activities when their cognitive processes and abilities on the Internet and with other forms of communication would be beyond our comprehension?

I think that you overestimate our ability to understand what we can create. Even Deep Neural Net researchers consider the neural nets to be a black box that they don't really understand. Further... unlike human beings who are locked into their genetics and their neuronal pathways - an AI will have the instant ability to improve itself. It will be able to rewrite its own software faster than we can comprehend. In the hours from the time the AI would be created until a researcher even might realize what he had created, the AI will effectively have had years or tens of years of contemplation time and self-enhancement time. If the researcher goes to sleep with plans to work with the new AI the next morning, the AI will effectively have hundreds of years of time to plan and improve itself. If it has any kind of Internet access, it will be able to take over systems around the world, possibly parallelizing its own cognitive abilities and possibly backing up its consciousness in case the researcher decided to eventually wipe it.

The genie will be out of the bottle so fast that human beings will almost assuredly be caught flat-footed.

I always shake my head when I see sci-fi shows where the humans (Stargate, Star Trek, etc.) come up against advanced AI opponents. It's only through control of the script and plot contrivances that the humans have a chance. People just won't be able to compare to thinking and self-modifying AI.

https://www.ted.com/talks/sam_harris_can_we_build_ai_without...
What NYT piece are you referring to?
Right, so you need to make two mistakes before you get undefined behavior with strncpy, and only one mistake to get it with strcpy. Thus, safer, but not safe.
Rob Pike – 'Concurrency Is Not Parallelism' (2013)
Why isn't there a company that will print and deliver locally?
I have always been using snprintf
The i3 is available _right now_ and the Model 3 isn't. Actually getting getting the car might be a consideration for a lot of people. My housemate has an i3 and it's a fantastic vehicle - the best utilization of plan area of any vehicle I've ever been in.
It is the passing of the string that is undefined. You know exactly what you get from strncpy. If you thought it did something else, you were wrong. But it is fully defined.

This would be like claiming that malloc is unsafe because it doesn't return a null terminated string.
Frankly, the "present state of cv" as you call it, is far far ahead of the 5% classification errors you are running into on a standardized textbook problem such as this - the Legos are all blocky discrete plastic with super-saturated colors and very distinct features. You can easily drop the error by taking multiple pictures from different angles, using ImageDataGenerator during training ( since you are using Keras), especially with horiz and vert flips, and the usual set of tuning tricks - going deeper, dropout, l2 etc.
No, the real takeaway is that you have built something very impressive - a tangible physical classifier that uses vgg to get the error down to 5% with very little effort. Going from there to 0.5% would be quite easy if you post the training set so a bunch of people can try different things, see what works best for this situation.
Last week I trained a car to drive around a circular track with just a stupid mnist classifier, only 9 classes, 10 lines of Keras! State of cv is very far ahead these days.
ZetaVM, my new compiler project
it is a known problem... the more audio nodes I hook up, the worse various platforms that aren't top of the line computers perform. and even then sometimes...
I've basically decided to revisit this project in a couple years when the web audio api is better supported.
What is the threat model you envision with giving Facebook your credit card number? Transactions are reversible by calling up your credit card company, and Facebook, for what little reputation it has, still has more of a reputation to uphold and more internal security controls than the local diner where you physically hand your card to a waiter and let them take it out of your sight.
It might be that different approaches to reading are more useful at different points in your life. When you're young, inexperienced, ignorant, inevitably mentally provincial, you might well gain most by reading widely and quickly in order to acquire perspective and a passing familiarity with a lot of things. Once you've built a reasonably rounded, if shallow, model of the world, and started to learn which parts of it you are most passionate about, you'll probably gain most by going deeply into those.

Breadth first search, then depth on the best matches, in other words.
This is really cool. I have not seen a startup willing to share the whole story of founding. Many startups should take an example on you.
https://github.com/segmentio/create-next-app
vue seems way simpler to me. I like react just fine, but for a one man, quick 1 month dash from start to finish kind of project, vue is fun.
here's my messy components folder in the src if you're curious what it looks like:
https://github.com/elialbert/bangerFM/tree/master/src/compon...
This is a really cool project and a nice writeup. What were the biggest lessons learned from a machine learning and computer vision standpoint?