skysight-inc/HackerNews huggingface dataset:
After using Eclipse for C++ (CDT) off and on for a while now. I've come to the conclusion that when set up properly there's no better C++ tagging system (F3 Open Declaration) and auto-complete in any IDE except perhaps Visual Studio. It works so well that people like myself who dislike Java still use it on C++ projects out of the sheer advantage it gives you when browsing through a code base. I don't know what they've been up to there on the CDT project, but they sure have managed to get it right.
How would you test a CRUD app with a DB?

The way that I do it now it's just use some simple functional test to GET / POST and measure the time in a pytest script, I'm sure there are better ways to do it.
My employer-provided insurance is UHC, which has a preferred partner situation with OptumRX, a mailorder pharmacy. They give you better rates on your prescription copay if you use them. The mail turn-around time is not great though. It's good for long-term prescriptions, shitty for short term like antibiotics.

My doctor sends short term stuff to a local pharmacy for me to pick up, and my daily long term pills to Optum, who charges my CC and mails them to me. They take about a week to arrive, but you can set it up so they automatically recur, so you always get your next 90 days before your current pills run out.
I don’t see any reason why Amazon would have difficulty here. There’s already regulation in place and generics are designed to be interchangeable—getting an off brand alternative would be a win to the consumer, so long as the choice is clear.
I really love the aesthetic of all the demo pieces for OpenStructures (mentioned in the article). Unfortunately it seems it didn't really catch on, and is not an active project. Also, I've found that many standard metric parts that could fit in the system are hard to get or expensive here in the US, alas.
Top 5 Most Difficult Programming Languages
For pills, I would expect they'll use USPS, not UPS. That's how I get my medicine. It comes in a shipping bag instead of a box or rigid envelope.
I would chose the person who convinced me they were most talented / qualified. How they got their education and what pieces of paper they have is mostly irrelevant.

Having a degree is a signal, of something, but I'd argue that it's a pretty weak signal of "is competent at programming". Likewise for industry certifications... they are a signal, but a weak signal.

Note also that this whole setup is a false dichotomy... plenty of programmers are a mix of college educated and self-taught, and may also have one or more industry certifications.

Looking at myself as an example... I have three college degrees (although I never finished my C.S. bachelors), but I consider myself more self-taught than formally educated. I also have 2 of the old Sun era Java certifications. And I have found that this sort of combination isn't uncommon. shrug
If that's the desired behavior then cache layer should allow one to use stale (invalidated ) content. Cache layer (or application layers above it) should be aware of the status of cached data.

It's fine if stale data is used deliberately, problems arise when stale data is assumed to be 'fresh'.
I want to know this too. "Fulfilled by Amazon" to me sounds very different than sold by Amazon.
And they are not called zip codes.
Ok, beautiful and highly optimized code needs to be a standard in my opinion. If it is genuinely well written, it simultaneously teaches new comers good habits (implicit training), and makes future modifications that much easier. These are time savers. Time is money. It is a money saver.

Conclusion: Beautiful and optimized code is a money saver.

One addendum: Optimized code results in a performant application. This means you are better than a competing product that accomplishes the same thing but at a slower speed. You've maybe heard: 'performance is a feature' for this reason. This, one COULD argue, is a direct money maker.

You can then tack on words like 'slick', 'snappy', etc. to your list of descriptors.
We took a similar journey with Prometheus @ Improbable. We found federation to have its limits & wanted a global query view as well as a few other nice features: https://improbable.io/games/blog/thanos-prometheus-at-scale
I agree it's a reasonable question. And ELBs can be expensive at small scales. They can handle a huge amount of traffic with an exceptional level of reliability, but at small scales there are probably much better options available.
Most sidewalks are accessible to mobility aids; like walkers, scooters, canes, wheelchairs and so forth. _All_ can be designed to be accessible to such.

Moreover, the choice isn't between only pedestrians or only cars; there exists combinations of the two that are more favourable to pedestrians but allow access by vehicle for those that need it.
In a lot of use cases, like the drivers mentioned above, you shouldn't allocate on the heap anyway, whether manually or in a managed way. And if you don't allocate, you never need to garbage collect (since you never need to reclaim memory to make it available for new allocations). In that case, the two are even.

(The above assumes that GC is only triggered by allocations. Many GCs are like that, but others trigger periodically even if there isn't anything to do. I don't know which group OCaml is in.)
Software Startups: This Is How You Craft a Patent Strategy
What are actions one can take to train this?
I think you are imagining the argument you want to see. Your comment is not responsive to what I actually wrote.
That's basically true as a default state. But you can make it work if it's something you care about. Most of those cities have at least one walkable neighborhood that's (more or less) car-optional. I think you'd still want to own a car for those things that can't be accomplished without one, but you could live most of your daily life on foot.

I used to live here, for example:

https://goo.gl/maps/RAYSkfs4Dtn

That's two blocks from a Whole Foods, walking to everything else you'd need, and 4 blocks from the light rail, which can take you to each of the region's two largest employment centers (Downtown and Clayton), its two largest universities, and the airport.
H.L Mencken was right, the urge to save humanity is almost always a false front for the urge to rule.
Excellent! Sounds like some great improvements on top of an already amazing tool. I have to say that they've really come back from some serious missteps a few years ago.
I looked at the page: https://brex.com/legal/prohibited_activities/

I am curious about the language that you have used - in particular the use of word "marijuana".

What is the reason to use such derogatory, offensive and deeply racist term for cannabis?

I thought that in 2018 tech companies wouldn't be using language of the 70s that has been used to promote hatred towards the users of this plant.
Feel free to point out actual instances, or even better, trends backing up that statement.
[FREE COURSE] Angular 6 – MEAN Stack Crash Course – Part 3
Experience teaches you the noise to ignore. Same thing applies to all sorts of disciplines, even debugging or fixing a code.

An experienced dev can look at a large code base and spot a bug or just from the structure of the code tell if it's "badly written" code.

An experienced sysops can look at large streams of system log files and tell you what's wrong with the system because they can ignore the noise. Someone else might be fixated on the high cpu load when the issue is a bad device.
I don't remember running into any of these issues learning Django or maintaining a Django codebase, but I've written the problems I ran into: https://alexcbecker.net/blog/django-is-dangerous.html

In general, I think Django makes it way too easy to shoot yourself in the foot.
3 Day Bootcamp on developing a complete infrastructure on AWS
One of the authors here. Thanks for enjoying the article!

Re: AWS. We're not at a point where we are overburdened by the AWS spending. Many things are more efficient with AWS, as we have a fairly small engineering team. We use various different AWS products (Aurora, Kinesis, to name a few) that we are utilizing.

Regarding metrics & percentiles - Yes I agree. 99th percentile is what we try to look at the most, as most other metrics tend to be deceiving.

Regular forums - This is something that we need to improve on as we move forward. The blog post mostly describes the infrastructure we've built, but it takes time and effort to become a metric-driven organization.
Commingling is certainly something I wasn't aware of, it looks as if most consumers are in the same boat.

The idea that FBA doesn't actually get me parts from the seller I picked has never crossed my mind. I certainly wouldn't have bought quite a few things if I knew that possibility existed.
Awesome. Can't wait to give this a try. I haven't done much with Rust yet (just "Hello, World" basically), but I'm an Eclipse user, so this will be handy. Having solid Rust support in my favored IDE will reduce the friction to using Rust a little bit at least.
You've had an attorney with experience in this area confirm and help establish (e.g., by drafting the sponsorship contract) this arrangement?
I hope Jean Claude Juncker, our great leader of the EU, heavily sanctions the offenders who refuse to abide by the EU regulations and laws. Hopefully he will setup a GDPR 'police' so that offenders can be identified and punished swiftly.
Making cities walkable is not ableist, or at least doesn't have to be. In Copenhagen you see motorized wheelchairs using the bike lanes, here in the Bay Area I see motorized wheelchairs forced to operate in dangerous roads because the sidewalks are too narrow or damaged for their scooters.

Further not everyone with a disability can't walk or bike. What about legally blind people? Auto-centric infrastructure is terrible for anyone who is legally barred from driving.

Lastly, every able bodied young person (and that's the majority of the population) that you get out of a car means that road infrastructure get's better for those who genuinely need to use it.
With that many integrations, some small set must be broken at any given time. How do you handle this without scaling a support staff accordingly?
If it is easy to follow the law, then the cost of a compliance expert on this topic would be low. It is not low. Compliance is expensive, even for companies who don't make their money from data. Therefore, I don't think it's that easy.
Suicide among American farmers is staggeringly high
It seems to me like the n-th number repeats 2^n times, with 1 being in the middle of each sequence.
From this, you could get the 13th number quite easily.
Interpreting it would be a lot more difficult though.

Interestingly, normal binary has the same pattern, but with different offsets for the start of the sequence.
To catch up with Amazon, Google should just give away Home Minis
What I've found to be "confusing" is that some GDPR consultants say that when a single person cannot be identified in a blob of data, then it's not personal data.

While others say the opposite, any data derived from a single individual is still considered personal data.
Link please?

One of my difficulties was when I had college debts, I kept trying to find remote work for around 25 USD, and people still thought it was too high, on freelance.com and whatnot, but I couldn't go lower because then I would lose money (ie: not cover my debts and expenses).
You forget to mention that it was utter garbage in comparison.
It becomes hard when you try to get away with something that goes against the intent of the law.

And that is exactly what sites are doing now. And there is noone on earth that will ever believe it isn't deliberate.
Thank you very much for the feedback! You can use AWS in combination with MailSwift (https://mailswift.io) to get up and running with zero coding or maintenance efforts.
The independent researcher
Indeed, I missed "% of total" on that graph, thanks
Do you dislike programing in Java, or using programs written in Java?
If available seats (regardless of county) are made less competitive through gerrymandering then whatever counties those seats represent are likewise made less competitive. Voting districts are not drawn by county lines.
Yup, we're working with a non-profit law firm here.
For what it’s worth, on a Django codebase of 180k lines, 100k lines of templates, 1000 URLs, 380 “apps”, 350 models, we have a nice coherent structure across the whole codebase that makes us really productive.

I haven’t seen a Flask code bass do this anywhere near as well. They all seem to end up becoming very different and tricky to onboard new devs onto because they are so custom.

Django hides some complexity, but we haven’t found many pets we can’t effectively customise, and the architecture at scale is great, something I haven’t seen in many other places.
I don't know about 100k. That seems small. I'm talking about metros of well over a million people.

But, also, don't get confused by looking only at the statistics for core cities. People look at, say, St. Louis, see that it has only 300k people, and stop there. But that's a wildly misleading number that's really more of a reflection of the fact that lots of people in the U.S. live in what are called "suburbs," even if those "suburbs" are actually still part of the urban core.

The St. Louis metro has 2.8 million people. 1.3 million of those people live in the core, urban city/county. That 300k number isn't useful at all. It's based on silly, irrelevant historical border-drawing.

The same can be said for most Rust Belt cities.
Cool. If it's so clear, then are you willing to be held liable if my company is found in violation of it due to your misreading?

I'm guessing not. People who are willing to put their reputation on the line, who are paid four figures per hour to understand this stuff, disagree with eachother on interpretations of GDPR.
I'm still using a late 2013 MBPr, this machine is a tank, took so much beatings, and literally nothing broke in 5 years it runs as if it was its first day of use.
Sensationalist title

> “I wouldn’t have minded buying them, but it’s OK,” Greene said at a Fortune Magazine event in San Francisco on Wednesday.
This was a great write up. Also I hope I get a chance to use and love the product. I'm a founder who lives outside the US and has a US company and bank account via Stripe Atlas. Just signed up and got to the "Information Requests" branch of the flow. Entered my passport, birthdate in fine. But when it came to "Enter the person's address", there were only options for US addresses. I'm living outside the US so I hesitated between using my company mailing address, and my last address in the USA, and went with the latter (but probably the former is a better idea). Also, regarding the interface, there was no "submit" button on the address view, which let me feel confused as when I had entered my business address, I couldn't find the button. When nothing happened, I thought, "maybe, the system is checking it, and it's invalid", so I entered my last US address instead, then hit "enter" and it worked. You can consider this some more user experience data :) Great writeup and thanks for making it available and for the offer of waiving the fees USD5/users/month fees if you do the first transaction before June 30.
> Two top London law firms

British lawyers using this situtation to squeeze money from nervous US companies. Yeah, that sounds completely implausible.
If it makes you feel better, binary-coded decimal has a rich tradition.
I think the same guys published it here for free:

https://github.com/rust-lang/book/tree/master/2018-edition/s...
That was entirely the intent! If everyone is breaking the law, you can pick and choose whom to enforce against, for a variety of reasons, including political convenience, shakedowns, etc
What is inherently wrong with squeezing the middle? Seems like you'll get increased competition and innovation as people scramble to move to the top. Could be a net positive for mankind
A lot of big-box retail chains (like Walmart) have mobility scooters to help folks like your mother. Mandating that open, pedestrian friendly spaces have some of these available should be pretty easy.

There are also disabilities that are exacerbated by driving rather than aiding. Legally blind folks can walk but have a much harder time driving.
Thanks for the feedback. Coming recently from Brazil, we're still learning the appropriate language for a lot of things, since we mostly learned english from Brazilian english schools. So when we saw this page, it didn't occur to us that this was an offensive term. What are your suggestions of more appropriate terms? Just cannabis?
All Code Eventually Gets Tested, It’s Just a Question of by Whom
Since TFA talks about deep learning so much, I wonder how many of the applications run on these machines actually are deep learning, or can make use of the tensor cores in some other way.
Southern Europe Has Not Seen Net Job Creation in over a Decade
Amazon health-care plans: what we know after PillPack buy
Just to be clear, I wasn't talking about the change making Unicode strings universal in 3.0. I was talking about the change to the internal string representation in 3.3, described by PEP 393.

The change to dictionaries seems a lot more likely to make a difference, although it was introduced much later.
Haven't tried Rust with Eclipse, but the IntelliJ rust plugin [0] is already quite good and getting better on a weekly basis. Most things work in community (free) IntelliJ, and with CLion you also get pretty a pretty solid debugger UI.

[0] https://intellij-rust.github.io/
If you're in the Java ecosystem, the CacheBuilder in Guava is pretty good: https://google.github.io/guava/releases/19.0/api/docs/com/go...

By default it handles the case of concurrent retrieval on the same key (the second one will just wait for the first one to finish and use that value rather than starting a duplicate computation). It also lets you configure more interesting things like eviction strategies, removal notifications, and statistics.

Last year was a lesson for me in why caches are a hard problem as I had to debug many cache issues from other people not thinking things through... (At least one of the issues was my own fault. :)) Since then whenever someone suggests we use a cache I instinctively pull out a set of questions[0] to ask. The three questions Guava has you consider can also lead you to using memcached or the like instead but my set tries to answer the question "Do you even need a cache?" and if so, generating helpful design documentation.

Is the code path as fast as it can possibly be without the cache? Do you have numbers?
Will the cache have a maximum size, or could it grow without bound?
If it grows without bound, either because of unbounded entries or because of unbounded memory for any particular entry, under what conditions will it consume all system memory?
If it has a maximum size, how does it evict things when it reaches that size?
Are you trying to cache something that could change?
If so, how is the cache invalidated?
How can it be invalidated / evicted manually by another thread or signal? (Debuggability, testability, inspectability/monitorability, hit rate and other statistics?)
Is there a race condition possibility for concurrent stores, retrieves, and evicts?
How constrained are your cache keys, that is, what does it need to know about to create one?
Do they need to take into account global info?
Do they need to take into account contextual information (like organization ID if your application server runs in a multi-tenant system, or user ID, or browser type, or requested-language)?
Or do they only depend on direct inputs to that code path?

[0] https://www.thejach.com/view/2017/6/caches_are_evil -- need to update it a bit but not much...
Python vs. (and) R for Data Science
What were the major points?
> be held liable if my company is found in violation

Forget about violations. Even if you're in perfect compliance, any EU resident can complain to their data authorities if they think you're non-compliant. That then prompts a regulatory inquiry, which requires lawyers to competently respond to, which is distracting and expensive.
It's not huge. Walmart, which is even more competitive on pricing in retail than Amazon, entered the pharma prescription business many years ago. They deployed pharmacies to over three thousand physical stores and are the third or fourth largest pharmacy in the US. Amazon will have no greater impact than what Walmart did.

How did Walmart impact CVS and Walgreens? Both continued getting larger. Maybe Amazon will drain some or most of the remaining growth in the segment by taking a slice of market share. More likely it'll just end up being an expensive, terrible business that struggles, like most of Amazon's ventures (they fail far more often than they succeed).
A summary of AR at WWDC 2018
-Work: Vortex Poker Blue Switch with Logitech G502

-Home: HHKB Type-S or Realforce 87u with Logitech G703 or Logitech M570
True, caching even simple data dependant on 2-3 variables may require writing dozens of test cases - in practice, it often turns out that the data doesn't rely on 2-3 but 5-10+ variables.

However, just because it's hard it doesn't mean we shouldn't do it the right way.
Show HN: Send scheduled text messages from templates to groups
Ah ya, I realized afterwards from more Googling that this is a global problem in the jupyterlab extension ecosystem when using node 10. Since it's already been worked on in other issues, I deleted my comment.
> current_zip = meta.IntegerField(max_length=5, null=True, blank=True)

This is given as the 'correct' way?

Storing a ZIP code as an integer? What does an 'integer' length of 5 mean? Integers have max values, not lengths.

"The django docs are so great! They educate you!"

I'm presuming most people aren't being sarcastic when they post that sort of sentiment, but it's hard to take those endoresements seriously.
I would start with something less abstract, more concrete to start. I have a 4 year old who picked up the ability to program this simple mouse to navigate the maze and find the cheese. If I try to go too abstract, you can see the eyes glazing over.

I was at a steam fair last weekend, and they had the OhBot, a programmable robot face, on display. It is programmed with what appeared to be a version of Scratch. You could control the head, mouth, and eyes with the track pad and keys. Kids were really into that and there was quite a line at that table.

Thinkfun also has a good board game to teach programming logic called Code Master Programming Logic Game.

If you really do want to go a more abstract route, I would start with the Python for Kids book by Jason Briggs. Once he gets through that, get the Python Crash Course next and work through the 3 problems in that book. It has one where you make a Django app with a user login.
Why not let people in prosperous regions have a smaller population. I would love a country of smaller cities and increased prosperity
Yes; it’s rendered here: https://doc.rust-lang.org/stable/book/second-edition/

The contents may be the same, but the physical book is way nicer, IMHO. I happen to love physical books, though... and the PDF is much nicer than our current “click print to PDF” solution.
Slow Reading
I like the guy, but he does seem fairly irrational. He thinks astrology doesn't get a fair shake.

And in any event, a scientist while under the influence of neuroactive substances could be said to be an example of a person who is both a scientist and irrational.