skysight-inc/HackerNews huggingface dataset:
It doesn’t make any sense.

The way a string is terminated in C is by a null character. ‘\0’ is a mnemonic. strlen() returns the length of a strong. It does this by doing a linear scan down the array until it finds the null, and the returns that index as the length.

That line of code does nothing useful. It means, “scan through the array until you find a null, then write a null there.” Which is exactly what you had to start.

So why would someone write this? Well, they were told to make sure that you always terminate your C strings with a null, otherwise you’ll run off the end of the array and corrupt memory. This is true, but this isn’t how you need to find the end of the array. They should have used the number from strlen(src), not strlen(dest). Even worse, strncpy() will put the null terminator in dest in this case.

The line belies any sense that the programmer had any understanding of what the code was actually doing. It’s a amateur mistake.
Fiscally liberal, socially liberal.
I loved him while he was in character on The Colbert Report. Now...not so much. FWIW I can't sit through Trevor Noah or John Oliver either though. And I'm a liberal. It reminds me of being forced to sit through church as a child.
All justices are constitutional, thats their job.
If we started the colonization of the galaxy in the year 2500 with 10 planets I suspect we would just wait and see if we came across a society with the level of technology we have today. After all, why take the risk of meeting a war like society that lobs nukes at each other?

Just leave a few probes nearby to keep tabs on them and see if they advance to a level that's interesting.... or scary.
I find Buddhism too complex to grok. Whatever arrives as popular Buddhism in the west seems to be distorted info that doesn’t even scratch the surface. Scientists who talk about Buddhism will only get credibility in my eyes if they apply the same investigativeness towards Buddhism as they love science. Two places they would need to look at is its diversity and their willingness to engage in scientific conversation. The Dalai Lama seems to engage in it, not sure to what extent that counts as Buddhism but it is something.

—- not an expert on Buddhism or physics
Without a conclusive study, the only proven conclusion is that "large amounts of cash are sometimes seized, sometimes not". However, a study could reveal that this happens very typically, or not very typically (for some definition of typical). In either case, that is not proving a negative.
Huh? It's disingenuous to look at only one one side of the equation. The US imposes its own share of tariffs and non-tariff trade barriers. Some of which (mainly for certain agricultural products) are high enough to all but eliminate imports of them altogether. Peanuts, raw tobacco, and sugar are examples of American industries that have benefited from aggressive protectionist policies for decades.

Existing trade agreements have recognized this; it's not something that the EU has unilaterally imposed in recent years. The average EU tariff on American goods is under 3 percent.[0] More importantly, the average tariff--for both the EU and the rest of the world--have been steadily declining.[1] That was the trend. The administration's recent trade policy upends that trend for no real purpose.

If the goal is to see tariffs lowered and barriers removed--one that I heartily support--you don't undertake a policy that will spur the opposite. You sit down at the negotiating table like adults and hammer out a trade deal. Which is a lot harder than it sounds, because every tariff of your own that you can use as leverage in the deal has its own domestic supporters. Many of whom are politically well-connected. It's not surprising then, that the administration chose to pursue a simpler (albeit inherently flawed) approach.

0. https://www.export.gov/article?id=European-union-Import-Tari...

1. http://money.cnn.com/2018/06/07/news/economy/trump-tariffs-t...
If you're a co-founder, get legal advice. Don't rely on what people have to say here. Speaking from experience as someone who started a business with a friend, things can get ugly when you want to part ways; even in the very early stages. Sorry to hear that it didn't go well, and best of luck in your future.
> I still do not understand what kind of problem the iPhone solves

Did you try smart phones before the iPhone? It solves the problem they promised to solve but it actually delivered.

High fidelity web browsing in your pocket is probably the biggest one, but there are more.
How to avoid an IT career dead end
What works for you?
> giant SAGE installations at McChord and in Moses Lake

What's that?
I would pay $X for Y (June 2018)
I would pay $4/month to input a URL to news stories and write my response to the article.

I would pay $20 for (real, authentic) reviews of the top 30 online only Financial Engineering programs.

I would pay $2/month to have an app calculate tax withholdings for Robinhood profits/winnings.
cf.;Philosophy: Who Needs It. By Ayn Rand.
http://fare.tunes.org/liberty/library/pwni.html

tldr: Everyone needs a rational philosophy.
Consider: take a log of all divisions done by your computer; how often would those divisions be done by something that is 3 or an exact multiple of 3.
That's a few blocks away from the notorious 3rd and Pike area. All of 3rd downtown is a bit rough around the edges due to being a transit corridor with lots of transient riders and homeless people, but besides 3rd and Pike it's nowhere near as dangerous as similar places in rust-belt cities.
https://completehumanperformance.com is a good resource. I have used them in the past for ultra and nutrition coaching. They have very good people. Check through their articles and podcasts. They publish a ton of good stuff (aimed at selling you their services, of course!), but what they publish is (generally) great all on its own.
Philosophy is incredibly important for doing science..

a different philisophical point of view will drastically change your understanding and acceptance of the the most fundamental building blocks of science, upon which ALL higher levels of science is built.

Things so basic and essential and entrenched, that they are completely overlooked.

Now for an example...
Sure. I "just" have to go read man pages for days to understand 20 different commands. "Just" use several commands to isolate my not-a-container. "Just" use debootstrap (or not on different distros!), or actually maybe "just" use nix and guix. And "just" carefully use several btrfs-subvolume commands (or not if you want aufs, zfs, or something else!). And "just" a few more things after that - maybe "just" use systemd-nspawn (or not, for any non systemd system).

It's always "just" one more tool I can cobble together to provide what Docker gives me. This is not simple. Docker is not a bad tool for abstracting away all of these underlying details.

I'm not going to pretend that Docker is simple or flawless. But it has reasonable defaults and is easy to use. It is easy to pull containers and run them. It is easy to install on Linux, OS X, and Windows (or maybe I should "just" figure out how to run a hypervisor). It is easy to read and write a dockerfile. Critically, it is just as easy for my coworkers to use Docker as well.
Great paper!

Based on a quick first read, and ignoring numerous important details, the main argument boils down to this: "mining" costs (i.e., the computational and other costs of processing transactions) in the network must be greater than the profits that could be obtained by compromising or sabotaging the network. Otherwise, it becomes profitable to compromise or sabotage the network. For example, if the cost of mining is lower than the one-time profit that could be made by betting a large sum against the price, it becomes profitable to bet such a large sum against the price and then investing a smaller sum necessary to acquire a majority of the computing power to sabotage the network.

This is correct... but only if there is a zero-profit condition among miners -- i.e., if the Bitcoin network behaves like a standard theoretical rent-seeking tournament that reaches and settles into a classical equilibrium, instead of behaving like a distributed transaction processing network that produces profits for the parties that process transactions (AKA "miners"). I have not seen a good study (or actually any study) on the profitability of miners, but many miners claim to be making money by processing transactions!

If mining is profitable, as miners claim, we have to add another condition: the net present value of the profits that could be obtained from compromising or sabotaging the network would need to exceed the net present value of the profits that could be obtained in perpetuity from behaving honestly. If the value of the profits that could be obtained in perpetuity by behaving honestly are greater, there would be no incentive to compromise or sabotage the network.

Those are my initial thoughts, based on a quick first read. But I'm barely doing justice to the paper, which I found to be well-written and easy-to-follow. I've downloaded it to read it (and think about it) more carefully.

Highly recommended reading if you have an interest in cryptoassets!
Encoded data can sounds just like noise. Take Olivia for instance. It can transmit digital data at 14dB BELOW the noise floor. It's just a digital mode that hams use to try to transmit between countries for around 1 watt.
the biggest use case (and it's a bad one), is because a stack (MERN/MEAN) and all tutorials for said 'stack' use mongo, or a framework like Meteor... it sort of locks devs into bad practices when being a little more picky, a little more curious about options could make for a better architecture.

It's not like you couldn't rip out mongo in MERN and use PERN or MyERN (Mysql Express React Node). There's some good libs/packages for using relational db's, and the benefits may outweigh those of Mongo.

I guess one other use case maybe would be an incremental/idle game, where all data is just stored as one big json doc, and you just need to connect/update totals, then sync that data back and forth, with not a lot of relationship/connections or transactional data.
Just how in the 90s there was a lot of things that people could do on the internet but didn’t due to the immaturity of the ecosystem so it is with bitcoin today. Back in 1995 you could order most things online but it wasn’t easy or convenient or trustworthy and most people didnt do it despite the availability.

The lightning network is just getting started which (once mainstream) is going to dramatically lower fees and transaction speeds for a ton of bitcoin use cases.

And even if some of the most compelling use cases are niche- (collapsing economies, illegal activities) those alone will keep the currency value afloat and if eventually it matures and offers lower fees than credit card companies and developing nations where many people don’t have bank accounts can leap frog our legacy payment systems then I think the tech will be here to stay.
There does seem to be a tendency on HN for there to end up being a series of stories on a particular topic.

One person will post a link, then somebody who reads the linked article will do some further reading, discover something interesting, and then post a link to their interesting discovery to HN, and the cycle continues.

I rather like it. It happens at a low enough level, as you mentioned, that it provides a nice stream of information on a particular topic.
AI Reads 100 ICO Papers, Publishes a Crypto Whitepaper
Ah I thought I was in a similar position until I did some reading up on US tax law. Turns out that even though I sold and bought back within a very short time period the sale amount - cost basis = taxable income.

I was doing some swing trading near the top and it ended up that I am paying significantly more taxes than I ever put into it.

Oh well, live and learn.
Welcome to choir practice, father.
This was a great tool many years ago for scripting this functionality with Python: https://github.com/tutufan/subterfugue

The tagline was "strace meets expect". You could write a Python script to control what happened when the process being traced made a syscall of your choice! This was super-fun and super-educational and also came with a little manifesto about ensuring users' control over software rather than the other way around.

Unfortunately subterfugue hasn't been maintained in years and I think it hasn't worked with the last few major releases of the Linux kernel. It would be amazing to see a similar tool nowadays.
It's not really about how expensive of a dish you order, but about how fancy the restaurant is and how many people you bring with you.
Those numbers are about right IME. I speak two languages and I'm learning a third. With a vocabulary of around 1100 words I am able to make basic conversation (able to talk about myself, who I am, what I do and what I enjoy and so on). If I read a newspaper I understand on average about 60% of what's written which sounds like a lot, but it's often not enough to understand what's going on for certain.

If someone is learning a language for fun, I'd recommend starting off with one with a lot of shared vocabulary with your native language. French for English speakers is a good start. Much better than German (despite English itself being a Germanic language). Even as someone who's only exposure to French was a couple of Michel Thomas cassette tapes; I understand a surprising amount of a French newspaper. I studied German in high school and I understand virtually nothing in a newspaper in comparison.
Hacker News never gets crypto and never will until they are put out of a job by it.

It’s like trying to get newspaper men to understand what the internet was going to do to their business.
But that's always the case, not only when the executive implements new tariff policy. Predicting a recession in the next decade is like predicting a sunrise tomorrow morning.
Quebec Halts Crypto Mining
Selfish and unfair of them? Is that not just as selfish, if not more so wanting to save you some pain whilst they must keep theirs - for your or society's convenience? Would you restrict loved ones from risky activities for the same reasoning?

A friend's grandfather killed himself a week or two after his lifelong wife died. The family view seemed to be it was rather touching. I got no impression anyone felt it was unfair. My friend certainly didn't.

After my dad died my mother lost interest in life. For the whole of the rest of her life she wasn't enjoying it, deeply missed my father, and was really just going through the motions. Not that she'd ever admit that though most saw it clearly. She wasn't likely to be remarrying in her 70s.

She died of natural causes. Had she taken her life, I'd have been upset, just as I was when she died. I think all her friends and family would have understood, and I certainly wouldn't have thought less of her. It wouldn't have hurt more. Actually almost certainly less, as it was so clear she was hugely unhappy those last years, even though she "coped" very well.

I sure as hell wouldn't have called it unfair or selfish. I'd have probably thought it fitting, touching or perhaps a relief for her. At the end of the day it is their life to do with as they choose, not mine.

So yes, of course it can be OK, not exclusively for the elderly either.
I don't think Tesla would get enough out of the deal since product changes require factory revamps that are hugely expensive due to all the write offs.

It's an awesome idea though. I wonder if it could be adapted slightly. Maybe a related one would be for Tesla to buy a new battery factory / batteries or a massive amount of cobalt+lithium with equity. Those would all save them a ton of cash in the short term.
Is that because the concept is bad, or because the conditions for it haven't been present in a while?

https://www.cnbc.com/2018/02/09/bond-vigilantes-saddled-up-a...
Supercharging Kafka – Enable Realtime Web Streaming by Adding Pushpin
Sounds like non-drivable, only walkable, cities are a real problem for deliveries.
I used to be in this building all the time, lots of companies colo'd their setups in the building. I know Forbes did, as well as other companies. The building had security but was not incredibly secure.

https://www.business.att.com/content/productbrochures/coloca...

Our servers there went through AT&T networks. Some companies I worked for co-located at Telehouse centers where you had a host of upstream options (including multiple options).

Stephen Colbert's studio was next door to the building when he was doing the Colbert Report 3-4 years ago, I used to see him walking around from time to time.
Mandatory disclaimer that I think civil forfeiture sucks.

While I agree with you personally, I think legally that would be very far from a slam dunk case.

The situation in this case seems similar to the one in Bennis v. Michigan, where SCOTUS already ruled that the civil forfeiture did not violate the takings clause of the 5th amendment. So the 5A angle seems like a risky argument.

On the other hand, the waters surrounding the 8th amendment are very murky. As recounted in the Indiana SC decision, their basis for determining that the excessive fines clause is unincorporated comes from the 2010 McDonald decision, a case that had nothing to do with the 8th amendment at all. It was only mentioned in passing, so this was not a holding but merely dictum. SCOTUS had previously said in dictum that the excessive fines clause was incorporated. So there hasn't been a full holding, plus two contradictory dictums in a relatively short period. That's fairly murky, whereas Bennis vs Michigan is basically clear with regards to the 5th amendment.
I agree with most of your statement, but Oliver is most certainly deceitful, while also being biased. His deceit may not be deliberate (and we could come up with yet another term to denote deliberate deceitfulness), but it is often evident. His deceit is most evident on foreign affairs, which is not surprising given his devotion to orthodox, bi-partisan DC establishment foreign policy. His clips about Venezuela and Syria could easily have been produced in-house at Langley or Foggy Bottom production studios (if they had better writing). In many ways the evolution of John Oliver mirrors the evolution of Howard Dean, who began as a rational, reasonably moderate progressive voice for change but got captured by the neo-liberal establishment that gave him millions of dollars and a position of "respectability".
Deployed with Geronimo in '04. Email's in my bio if you want to connect.
https://www.justice.gov/opa/pr/attorney-general-prohibits-fe...
Anecdata: has never been an issue for me and I never tip uber drivers---in app or cash. No uber driver has ever asked me for a cash tip (perhaps they know that it would lead to a low rating?)
IIRC all mining ASICs have been continuously sold out throughout the history of mining; this can explain profitability if miners are trying to drive the market towards equilibrium but there isn't enough supply. But even if mining is profitable today, miners might discount the NPV of future profits due to various massive risks (like the price dropping 70%).
Sure, SpaceX has good business plan. That's the point. Building rockets only for a future Mars voyage and not making any money along the way would be a bad way to do it.

By contrast, fusion will only be a scientific research project for many years and many billions.
From my understanding, this is pretty much the same thing as the HSTS preload list[1], except for SMTP servers instead of HTTPS servers. It has two main goals. First, encourage cert validations. If you don't validate a cert, it means nothing. Second, help prevent MITM downgrade attacks. If your server is on the list, it means it should always use a secure cert. If it isnt, then don't connect. Same thing as HSTS preload list.

[1] https://hstspreload.org/
I think that modern car assembly lines are designed to be very adjustable. Big car companies introduce new body shapes all the time, and it’s no big deal. And they already have full supply lines to build seats with seatbelts, seats with airbags, trunks, sunroofs, etc. The only major difference between a Model 3 and, say, a new variant of any other sedan is the drive train and battery. Tesla could have focused on that and let existing experts built the rest of the car.
I would say Seveneves was more science focused than Snow Crash, which made it a better fit for his style. If the science bits don't do anything for you, I mean, ...
SAGE was a late 1950's-60's computerized air defense system: https://en.m.wikipedia.org/wiki/Semi-Automatic_Ground_Enviro...

There used to be some SAGE equipment at the Computer History Museum in Mountain View. I don't know if it's still there or not, but it was definitely interesting to see. The "light gun" user interface and the control consoles have a really pleasing aesthetic.
This is the keyboard alignment I was talking about: https://i.imgur.com/IiAGGULh.jpg

I don't see how your keyboard could legitimately use the word "linear" in it's description in any way. All I see are curved key "cups" and nothing linear at all.
There is a reason communist countries had to close their boarder. Because if they didn't, too many of the good people would leave andv that would hurt the country to much. If enough people could leave a communist country to cause them to worry, then surly moving from oppressive states should be common
Yes, you are correct. New miners should not appear until difficulty recalculation. But given this fact, depending on the intensity of the block mining rate change and how far the next recalculation is, the network could easily notice such changes. I don't just mean they "could", but they probably "would" as well. The world's economy heartbeat h-a-l-v-i-n-g 6 times in a row? (this drama is how critical I think that would be)

I don't know if an effective and immediate response could be taken place, but this sort of monitoring could be anticipated, and also, they would probably store the old chain's backup (just in case). I mean that if they do a rapid decision, it's not necessarily final (although this would cost the whole world economy a lot).

Only newcomers fullnodes, during the racing period, couldn't know which chain actually appeared first, but all other fullnodes and miners do know which one did, and that the alternative chain came at once and out of nowhere. This is an easy target for an "temporary chain force-choosing" algorithm. And again, this could be coded before the attack -try itself.

So I don't mean that this surely would be a "forced" (rushed) code-fork. On the other hand, without such a thing, everyone would enter a rushed data-fork, which probably will also be viewed as something risky and some costs may be applied (prepared in antecedence).
The LII is literally just an accessible form of the various federal codes, statutes, regulations, and certain administrative rulings. It can be verified against paper copies or against paid services like Westlaw and Nexis.

The LII has been around for more than a decade. The LII is used by progressives, conservatives, libertarians, socialists, the current (Trump) administration and the former (Obama) administration, all with no complaints. It has been used by lawyers and judges on every side of the aisle. If there was any bias, it would have come out by now.
IMO, unless you're physically disabled, don't use any of this crap.
Thanks. Great explanation.
There seems to be a bunch of work in this area, but I have no idea how you measure progress in this area, it's not like you can do evaluations on a shared task.

And it's clearly not solved yet either - 76% grab success doesn't really seem good enough to actually use, and that with 100k real runs.

I don't really know how to compare the difficulty of sim-to-real transfer research to sample efficient RL research, and it's good to have both research directions as viable, but neither seems solved, so I'm not really convinced that "just scaling up PPO" is that practical.

I'm hoping gdb will be able to tell me I'm missing something though.