skysight-inc/HackerNews huggingface dataset:
Fair enough, but when another user drops a pointer to a classic flamewar topic, please don't follow that pointer. This is in the guidelines.

https://news.ycombinator.com/newsguidelines.html
Alright, so often when hemp comes up I hear about the textile uses. Personally, I sew a bit and love textiles, but I've never quite understood the allure of hemp fabric or, at least, the best use for it in textiles. For making button shirts, long stable cotton such as sea island cotton is amazing. It's soft and has this amazing crispness that other plant fiber textiles such as hemp and linen do not have. In terms of suiting cloth, it seems like largely wool is king. There are tropical wools for the summer and thick tweeds for the winter; it's an amazing material. This brings us back to hemp. To me, hemp feels similar to linen, which has its uses, but it's more of a niche fabric. Now, there multiple ways to produce a fabric and I don't contend to know all of them, but what is the killer application for hemp fabric?

As a related aside, there's been a lot of evolution of textile technology over the last several thousand years. In the American southwest, cotton supplanted native fibers over a thousand years ago. We can make cloth from yucca, agave, jute, etc., but we largely don't because cotton is generally better. That's partly why I'm curious about hemp. Other than a fad, it seems like cotton and wool won the textile game. For those curious, here are some older papers discussing textiles in the Americas:

https://arizona.openrepository.com/bitstream/handle/10150/32...

https://digitalcommons.unl.edu/cgi/viewcontent.cgi?article=1...
Prime day is coming :/
Is it a real problem though? If your config generator is complex enough to hide an infinite loop, you probably should be relieved every time it fails obviously and doesn't generate wrong config instead.
It's not just CBD. Hemp seeds are an amazingly nutrient rich food. Sibling comments mentioned it can be used in fabrics and paper. It's an amazingly versatile product that's been unfortunately supressed in the war on drugs.
I did the exact same thing. Worked for two huge multinational corps and now working for a company thats is about 12 year old and employs about 30-35 people including the founders. I love it. Mostly because the people I work with are very easy to get along with and I have freedom to propose ideas and implement them.

First time in last 10 years I haven't updated my resume after being at a job for an year.
Tinfoil hat on, conspiracy mode on: And a fire on a Russian submarine whose purpose is said to be disrupting communications (it can access and cut underwater cables”.
Surely they'd need an external screen connected for that.
Cash in on your Picasso: Borrowing against art is growing at a stunning rate
Brightening up screens to make devices more energy efficient
This seems reckless to release names without a causal relationship defined. The only thing they seem to be able to determine is that in some breeds, some dog foods that are really common, might possibly be related to the disease. That's kind of like saying that because nearly every human eats vegetables on a regular basis, vegetables must cause cancer and heart disease since those are the two major causes of deaths in humans. I've had numerous dogs on one of the listed brands, not a single one has died of this disease.
TOML is almost perfect. The only things I don't like are the need for commas and the double brackets.
Not convenient? It takes less about 1 second for a task that is usually not performed in a repeated sequence.

You might be over optimising your time.
No mention in the article of the possibility of mouth bacteria being the vector.
And the article says that Walmart is looking at the difficulty of bringing on a lot more brands. Walmart is famous for being rough on suppliers. Though Amazon hasn't really raised the bar, it sounds like.

It would be good if someone managed to pull off "we're the trustworthy go-to, for supply chain integrity and real reviews, and we treat all suppliers/brands/workers/customers with a reasonable degree of respect". Walmart would have a long way to go for that, but could they possibly manage the corporate will to do it, out of desperation?
I've seen a whole lot of people go through rehab who just don't want to do the work or see that time is necessary. It's really sad how they just don't allocate time for their healing.
Better switches, a smaller mouse pad, and destroy the touch bar. Let's go back to 2014 and be happy again.
> I have a MBP but opted for the non-touchbar model because I happen to like the escape key (lots of time spent in vi - amongst other things).

Incidentally, the worry isn't about no ESC key but the opposite. There's still the soft key on the touchbar, right where muscle memory expects it; but, since my finger hovers there by default, I frequently find myself triggering it unexpectedly. I eventually realised that a lot of what I thought were bugs were caused by my ESC-ing out of some intended action without being aware of it.
People always bring out the population or area size of the US as an excuse against why we can't try to do better.
https://www.bloomberg.com/news/articles/2019-06-28/boeing-s-...

>In offices across from Seattle’s Boeing Field, recent college graduates employed by the Indian software developer HCL Technologies Ltd. occupied several rows of desks, said Mark Rabin, a former Boeing software engineer who worked in a flight-test group that supported the Max.

>The coders from HCL were typically designing to specifications set by Boeing. Still, “it was controversial because it was far less efficient than Boeing engineers just writing the code,” Rabin said. Frequently, he recalled, “it took many rounds going back and forth because the code was not done correctly.”
They will work just fine today, too
How could digital data storage media not count as "effects"? It's not letters, sure, but it's definitely "effects."

Especially because the last word in a lawyerly list of items is usually a catch-all designed to future-proof the law. It was meant to catch things they couldn't conceive of at the time.
If there's any credibility behind the notion of these being deliberate in any way, I'd wager July 15/16.
Definitely! I got lucky in the sense that wanting to create Effortless forced me to learn Swift. I wanted much more control than something like Electron or BitBar could give me, and I wanted to make this app a reality. I had also been working professionally with Python for the last few years, and the codebase at my previous company was so large that I started to miss working in a statically typed language.

I didn't do anything that special to learn it. I gave the The Swift Programming Language book (1) a read and then started to get my hands dirty, using Google when needed. I had done some iOS development a long time ago, which also helped. I almost immediately found it just as easy to write as Python (and in some respects easier) but with a stronger type system. It also has a lot of great tooling like Playgrounds. So I guess my advice would be to give yourself a project which you want to use Swift for, ideally where you have no other alternatives. I've also tinkered around with using Vapor to create web servers using Swift, so that might be another option.

1. https://docs.swift.org/swift-book/
Planting a trillion trees could be our best strategy to tackle climate change
You've made a few comments about me here which I feel are undeserved, if you knew me you would not assume I am "repeating a meme", I am a classically trained sysadmin, not historically a coder, and I've been the bastion of data consistency in a few very high transaction/heavy database driven companies and I've been in the industry close to 15 years now. -- incidentally the only time I lost data was due to silent corruption bugs in the application or as a discovery made after inheriting a MySQL 5.1 cluster.

My choice of database technology is driven by industry experience, not fanboyism (many who know me, know that I fought very hard against the fad of mongodb, for instance). And it's true I prefer PostgreSQL these days, mostly because the only time it's ever bitten me was with the autovacuum and that was all the way back in postgresql 8.2!

It's possible I'm incompetent, but I'd rather not go into a slinging match about competency right now.

I am aware of postgresql's fsync bug, but that's not _at all_ comparable to: defined, documented behaviour in a database engine.

Yes, bugs happen and bugs are bad, but what the grandparent stated was absolutely not a bug, it's documented behaviour, it's known behavior and it's only _just_ becoming addressed and only in the loosest of terms (incidentally as programmer mindshare is starting to focus on alternatives).

FWIW, I personally believe that MySQL and its ilk should be relegated to legacy applications, I do not hold it as fact that there's a cojent reason to choose it for a new project even as a NOSQL solution unless a few things are true:

1) All your developers only know MySQL and MySQL specifics (as in, you're a pure mysql shop and you know it very well)

2) You already have a product built on MySQL, it's costly to move.

3) You are the people who are building/designing mysql and trying to compete with more competent database engines.

You bring up truncation of strings, but I was talking primarily about ints/floats.

As a person who has 'dba' in his name you've made a lot of claims disparaging MSSQL, some of them I told you that you were wrong about and you agreed; but I am fairly certain that MSSQL does not truncate a string on insert. I'm going to test this claim.

EDIT::

Sorry it took me an hour to install MSSQL on my laptop, I'm on vacation in Russia and internet here is hard to come by.

Anyway: MSSQL does not silently insert varchars.

#> create table #sometable(acolumn varchar(8))
#> insert into #sometable(acolumn) values('blah blah blah way more than 8 chars')
Msg 8152, Level 16, State 14, Line 7
String or binary data would be truncated.

`select *` shows no new rows, which is what I would expect.
Unlike most people, dogs usually get fed majority of food from single sources. Thus causality is relatively strong in comparison to other observational studies.
The comparison table would look a little better if it nested a copy of the Cox quine inside, so that the recursively decompressed size was also infinite. :)
My photos from MAD Magazine, 11 years ago
That portrayal has been making them good money.
Wikipedia for Web APIs
I did exactly this a year ago but one caveat to note is that if you're using an external monitor, the video card in this one doesn't support a good resolution. I'm stuck with 1080p.
Reportedly one of Asimov's favourite stories related to this: The Ugly Little Boy (https://en.m.wikipedia.org/wiki/The_Ugly_Little_Boy)
> You're looking for a ThinkPad or an EliteBook.

I've seen such recommendations before, so my first non-Mac purchase in a decade (~2014) was a ThinkPad. I used to love the nub in the '90s, and I got used to it again, but otherwise the keyboard was horrible, and I eventually had to replace it. (A big plus: it was really easy to do.) Right out of the box I had a dead pixel on the screen, and, when I told customer support, they said that they regarded a certain number of dead pixels as normal, and would not replace it.

I'm sure I just had a bad experience, but I have never had either of these problems with any Mac purchase (aside from the fucked-up-by-design modern keyboards).
Ask HN: Web Programming Where to Start?
Let me begin begin by introducing myself I'm 17 and I love thinking about startups and the web. But it's hard to implement projects you come up with if you don't know a little bit of how to code.

I need advice on a way for a total noob to get started with web programming. I know people who can answer questions about most languages so that's not a factor. I just need solid advice and a jumping off point.
Why would you assume it to be so malicious, if true?

Maybe they were under attack.
Maybe they were just removing all of the Bloomberg rice grain chips! :)

There's an infinite number of "maybe"s though. Far more than there are truths.

Your own bias about the entities shapes your conspiracy theory.
Could you consider synchronization via Nextcloud?
Did this one come with a DVD drive? You can swap out that for a secondary SSD
One way we can begin to address, or at least help recognize, mass surveillance is to use the same tools of surveillance the oppressors use on us. A recent phenomenon I have observed on YouTube is the rise in "First Amendment audit" videos, where somebody stands in the public space and awkwardly films police, politicians and other elected officials (our servants) going about their day and duties. The videos often escalate into a ridiculous display of ego and threat of force, even though no crime is being committed, which I think is a healthy reminder of how uncomfortable it is to be "watched" by someone. It may already be too late - we may be seriously "out-gunned" by state and corporate surveillance for meaningful resistance - but these video reminders may be a gateway into awakening collective consciousness on some level to bring about actual change.
One thing I'd love to explore (but can't because of my employer's IP policies) is how to get selectors running in sublinear time the same way "immutable data structures" get reducers to run in sublinear time.

Like, for an "add order" action, in a redux app you might often see something like

return [...oldState.orders, newOrder];

Or, for the Python-inclined,

return old_state.orders + [new_order]

Which is great, no chance anyone playing with the new array of widgets will mess up anyone looking at the old array of widgets, but terrible because we've bought that safety by making that "update" (which in an old-school app would have been an amortised constant-time append) into a linear time array concatenation. And the same thing happens with hash table insertions+deletions.

So someone invents immutable data structures (like Clojure has, and like Immer and Immutable.js and probably any number of nice libraries) that use trees under the hood for their "arrays" and "maps" to get those operations down to logarithmic time while preserving the nice "value-copying" semantics.

But then for a redux app you might make a selector to calculate some "derived state" from your base data. Maybe you want to show the total price of all orders to a user, so you write a pure functional selector to do it:

totalPrice = state => {
total = 0;
state.orders.forEach(order => {
total += order.price;
});
return total:
};

or in Python,

def total_price(state):
return sum(order.price for order in state.orders)

And maybe you memoize that function based on the identity of `state` in case you call it a bunch with the same input. And that's all well and good, but that calculation takes linear time, so when you add an order your view update is still going to take linear time.

In the "bad old days", when you were mutating orders and getting a constant-time append, you'd probably have a variable somewhere to store the total price, and you'd do a `+=` when adding an order, getting a constant time update of the total price.

Is there some way to get back to sublinear time, like we did with updates to underlying state?

I think so. Remember that immutable data structures (mostly?) use trees under the hood. "Appending" an item to an "array" makes a new tree, where almost all of the nodes are shared with the old tree, and a small number (including the root) are new. Naively, the root's left child is from the old tree and its right child is new, and its right child's left child is old, and its right child's right child is new, all the way down to the new rightmost element.

If we could memoize `totalPrice` for subtrees, we could calculate the updated sum in log time. We would get the total for the each node's left child in constant time (because they'd be memoized), and only have to do any new computation for the new nodes in the tree down the "right-right-right" path.

Anyway, I don't know if a data structures library could make this ergonomic enough to make any added efficiencies worthwhile, and I'd love to program it up and play with it and find out, but aforementioned employer prohibitions mean this is probably always going to be just a thought experiment.
It looks fine to me. Reducing repetition is precisely the type of thing Dhall’s features should be useful for.
OpenWrt 18.06.4
Precisely. Not everyone who's using a Mac is using the entire Apple ecosystem. I use Macs, Android, and Linux, and I am not going to use any Windows/Linux/Mac-specific protocol.
Alternatively it could allow leading commas.
Enjoy the brief amount of time that we still have to live in comfort then prepare to fight hard for survival or die.
No sensor failure should cause the plan to go into swan dive to destruction mode.

The software that carries your tweets has to deal with exceptional situations including hardware failure so to must software that runs life critical hardware. Seems to me that if the proper response to faulty sensors was to disable MCAS perhaps it should have just done that for the pilot.

Even without a second AoA sensors perhaps something could have been derived from the fact that the pilot was furiously pulling up while the aircraft was losing altitude?

Defense in depth is always a good thing.
> So all this trillion-dollar hardware is really at the mercy
of those men with the little brass keys?

> That's exactly right. Whose only problem is that they're human beings.

(WarGames)
why not? the challenge was to run vue.js using python in a browser. If you, and it seems like you did, accept "running python in a browser" as a challenge, this can easily be another similar challenge.
Not the project owner btw.
Which just means you then rewrite your muscle memory to hit caps lock on all your colleagues computers by accident.

No thank you.
It can be both. I know people who have it configured to be escape when it's pressed and released, but control when it's held down in combination with another key.
They log who talk to who
I'm not debating whether it was true 1000 years ago. I'm saying that today, it is a linguistic quirk of English. Of course English is a language that was in use in some form 1000 years ago - and we don't use all the same words we did then, because some of them don't have value to us today. (Singular you, for instance, was much rarer back then!)
Oh my god, I've had this car for six years, and you're entirely correct. Thank you so much.

Still awkward UX since the steering wheel buttons have exactly the same icons as the dash buttons yet do different things, but their functionality is described correctly if you read the entire vehicle manual.
> Overall a reason enough is that human-friendly languages have different priority than parser-friendly ones.

Okay thanks, that's a good one. Readability might be a big deal.
The term in the field is "Ecosystem Services" if you want to do some googling. We rely on nature for the air we breathe and the water we drink, we haven't figured out how to be independent yet.

Animals, insects, and plants all support each other to become flourishing ecosystems. Larger animals keep the population of smaller animals in check. Smaller animals keep the population of insects in check. I'm not an expert on specifically which animals and insects do what, I just know that a dense, varied ecosystems keep the planet running smoothly.

My favorite writer on the subject right now is 'Charles Eisenstein', who even proposes that ecosystems have a stabilizing effect on the weather -- it might not be that carbon dioxide / higher temperatures produce more chaotic weather systems, but that the ecosystems we are so careless to destroy have regulating effects on the production of clouds and precipitation. The less life there is on earth, the more chaotic the whole system becomes.
Interesting can I ask how you got into that line of work? it is something I have considered moving into that area given I have been around for a while :-)
>Temperatures are rising which means more air conditioning. More air conditioning means more power, which means more fossil fuels.

There’s three opportunities to disrupt the problem. Reduce AC use. Reduce how much power AC uses. Reduce how much fossil fuel power generation uses.
How would we know? Information (esp. sensitive ) was a lot easier to hide back then.

Also the iPhone leaked was an iterative-model not the original.
A Hope Tutorial (1985) [pdf]
This assumes rational actors.
Cost of living is cheaper, so you'll just accept less money and let the company keep it?

Yes. I work remotely from Uruguay. It´s basically the only option to compete with U.S. talent, the whole point of remote work for the company is to get the best talent at a price they wouldn´t get in the U.S.

I know that if I get an H1B visa or whatever my salary would immediately go up. Location and salary are unfortunately correlated (it´s not even cost of living, Uruguay is more expensive than 2/3rds of the U.S.).
https://www.johndcook.com/blog/2019/06/20/bounds-on-the-nth-... is a recent blog posted titled "Bounds on the nth prime". It lists tighter upper and lower bounds:

from math import log
def f(n, k):
ln = log(n); lln = log(log(n))
return ln + lln - 1 + (lln-2)/ln - ((lln**2) - 6*lln+k)/(2*ln*ln)

With that in place, and once I realized that 2^1017 mean 2E17 not 2 to the power of 1017:

>>> n = 2E17
>>> lo = n * f(n, 11.847)
>>> hi = n * f(n, 10.273)
>>> lo
8.512627944213742e+18
>>> hi
8.512727125430618e+18
>>> exact = 8512677386048191063
>>> (exact - lo)/exact
5.80802398678381e-06
>>> (exact - hi)/exact
-5.842977499434444e-06
Have any of them issues post mortems yet? Anything at all to indicate an attack of some sort?
Imagine being on call this week. My best wishes to anyone doing DevOps or Ops.
It links directly to the Mac App Store which open MAS on my Mac. It's kind of rude. Their web-page does not contain any text describing the product, there is a simple video which could be linked instead. The product is at least 1 year old, judging from comments in the App Store. Usually a Show HN thing is a bit fresher. I agree with OP, this feels less like a Show HN and more like "oh by the way, we should post a Show HN the buy button".
They needed to connect NSA's new servers... /s
They did themselves disservice by replacing the f keys with a Touch Bar
Designing a plane with 1 AOA sensor that can fail and cause the plane go into try really hard to crash into the ground mode is criminal negligence.

The real universe has enough failure modes without engineering our own pitfalls.

The engineers who signed off on this and their managers should be extradited to the countries involved to stand trial for criminal negligence.
Also, the reason I even have my job is that there are increasingly stringent energy efficiency regulations and they need to be met. I couldn’t be doing the work that I’m doing with out the people who protested, took direct action, and lobbied their local governments to change building codes.
I'm currently working on developing an escape room environment using RPis as well.
I would love to hear details about how you set yours up.
Any way to get in touch?
They are very dense compared to the usual rate.
With

1. good audio compression and selective removal of empty data with time stamps

2. Speech recognition algorithms that convert recorded data to text content

you could hold a non-trivial amount of data in cold storage.
Thank you for your wonderful reply.

I'm of the feeling that electric planes may open up the market , though mindful it may be like the early days of plane making. Lots of small private companies that eventually merge over time into a handful of behemoths with the same governmental factors playing out.
It’s Time to Rethink What Counts as a Voter Turnout Strategy
I personally think it’s more nuanced than either of these. I do blindly type stuff in, and lean on the compiler to help me. At the same time, as I got more proficient, my initial code is closer to correct and produces far less errors.