skysight-inc/HackerNews huggingface dataset:
isn't the whole point that you write code completely differently in functional languages? rather than writing loop code to populate an array, you'd do something like the following (in JS as I'm not a haskell programmer):

const row = (len, onPositions) => {
return (new Array(len)).map((item, index) => onPositions.includes(index) ? 1 : 0);
};

const matrixWithDiagonal = (len) => {
return (new Array(len)).map((r, index) => row(len, [index]));
}

the point being, that the code generates the result directly, rather than making space for values and then looping through toggling the positions that should be set to on.

note: you wouldn't really use the (new Array()) construct generally speaking (and it doesn't work with .map anyway) but it's easier than including underscore or ramda in the example.
More information from a professor of law at GW:

> What makes this tricky, I think, is that Dreamhost is only involved in the initial search stage of a two-stage warrant. Computer warrants are ordinarily executed in two stages. First, the government gets access to all the electronic records. Next, the government searches through the records for the particularly described evidence. Courts have broadly allowed the government to follow this two-step procedure, in which they get all the stuff in the initial stage of electronic evidence warrants so that they can search it for the relevant evidence. Given that, Dreamhost’s objection is slightly off. As I read it, Dreamhost is essentially challenging the widely accepted two-stage warrant practice. Some federal magistrate judges in the “magistrate’s revolt” have made that argument, but they generally have been overruled at the district court level.

https://www.washingtonpost.com/news/volokh-conspiracy/wp/201...
Tell me again which Android chat app I am supposed to use? Oh I guess it's that new one that barely works that replaced the less new one that barely works that replaced the old one that barely works. Or maybe it's that other new one Google just released...
I'm doing a little project in Haskell and I agree. Python has that whole "one, and only one way to do it" (that isn't true for basic stuff like string formatting, but at least they try).

Meanwhile in Haskell everyone's super proud to point out how this one line of code is just another way of writing this other line of code.
The raw complexity here is astounding.

Something something electric motors are far simpler. ;)
> my abhorrence at the recent hate-spawned violence in Charlottesville, and earlier today I called on all leaders to condemn the white supremacists

Does he know that the victim of violence was actually the attacker and he attacked walking protesters with baseball bat?

https://streamable.com/svxcr
Hey there FBW, long time no see :)

I think you're mis-judging the intended userbase of an app like this. The word "blockchain" has unfortunately become more and more diluted over time as people explore use cases further and further away from technology. In some cases it ends up meaning little more than better living through technology.

Most developed countries have supply chain tracking systems that let regulators and industry investigate supply chain problems. Mobile apps to let you find the story of your personal steak are a bit of a gimmick. It's better to think of these systems as debug logs, intended to let professionals isolate problems in the pipeline.

These systems are of course only as good as the data that goes into them. They aren't silver bullets or whole solutions. But if you can get to a situation where most suppliers are honest, they can help guide investigations towards the suppliers that are dishonest. The UK horsemeat affair shows how investigators were able to track down the dishonest suppliers and, crucially, assemble enough evidence to do something about it.

The simple and obvious way to implement supply chain tracking is a big central web app with database. But it leads to common problems:

• Who builds this system?

• Who pays for it to be run?

• Can you trust the administrators?

• If an administrator is corrupted, can you recover?

The traditional answers are "the government via a small set of large public sector IT contractors", "industry via tax" or "industry via payments", "hopefully" and "no".

You can also get private sector solutions, but these tend to struggle to get wide adoption because industries fear being held in hock to a monopoly.

These outcomes are not ideal. They aren't standards based or open source, individual users can't really improve their experience of using the system, data is concentrated in a single place where it's ripe for hacking and manipulation, digital signatures are used rarely if at all, and in general it's just not ideal.

Modern blockchain-inspired systems like Corda, which I work on, are actually quite different to Bitcoin and Ethereum. Data isn't broadcast everywhere, there's no mining, etc. If you want you can think of them as document management systems. You have versioned digitally signed data structures with a PKI to root signatures in real world identities, a P2P network for businesses and organisations to run complex workflows over and so on. These are useful for managing large, distributed data management operations, for managing the evolution of data across many different parties and so on.

Ultimately, Chinese people will not learn to trust their food through an app. Instead China will develop the same sorts of largely invisible systems that create an ambient trust in the food system, and you won't need celebrities anymore. Software can play a part of that.
Don't forget disrupting pride parades. BLM really has had it out for the LGBT community in the midwest this year, for whatever reason.
That would be this. https://en.m.wikipedia.org/wiki/Grass_Mud_Horse
Ask HN: How can I learn to secure my application infrastructure against attacks?
I created an app a year ago, web app. Store lots of customer information. Traditional front end in React, Express middle, and a database server type of layout. I am not a security person but believe I generally follow best practices with regard to things like MFA/password policies/etc.

However, I am worried that there are things I am missing that will subject me to data breach and loss of customer data. How do I learn to secure my app? Is there a checklist of best practices? Not really sure where to start outside of making sure everything is always patched and updated and following sane password/authentication schemes.

Maybe there's a good book on the subject?
Do everyone seem to be fine with it? Why do we have these massive discussions about economic and work equality, then? Obviously a lot of people think it's a major problem. I think there's clear evidence for that. It's just that, in my opinion, most people are not really prepared to do what needs to be done to change, they'd rather just try in vain to treat the negative symptoms.
The sound design was excellent! Well done.
Tech industry is hiring Israeli engineers as fast as the army can produce them
Same here. One reason I love the advent of GIF-videos is that the GIF format basically forces people to subtitle anything they want to say... and it seems to be spreading to regular video.
dang. this is so awesome. really makes the machine feel so much more accessible.

and your ad is one of the best i've seen since MasterClass ads in my Facebook feed. i felt like the ad was basically free content. i was learning!
The real cost of filling up: gasoline prices around the world
You know what I discovered doing this! It looks more complex but there's not much chemistry or invisible magic here. It's all pieces of shaped metal that fit together and move when a piston is pushed down. In an electric car you've got chemistry that you can't see or feel, magnetic fields that are invisible and electron flow that is hidden.
I thought the same. I guess you could charge way more for this kind of content. Great work!
There's not enough space here to get into it in too much detail, but for historical reason, the American right isn't (*) the same thing as the European right. Hundreds of years ago, the U.S. was a constitutional republic with working federalism and a limited national government. Hundreds of years ago, Europe was a lot of things, but often there were monarchs and dictators.

So things that seem rather moderate to a European (nationalising some industry) is a brand new thing in the American context.

There are also complexities in that America doesn't really have a clearly defined racial, religious, or ethnic identity. The common identity in America mostly centers around ideas and individual rights, so the American right has much more interest in liberty, relatively, compared to the European right.
>tech firm is fights

Weird title
> At the press conference, city officials shared 80 exabytes worth of heart ultrasound videos, according to one company that participated.

Do you know anything about this? 80 exabytes is an insane amount of storage and is orders of magnitude larger than any dataset I'm familiar with. I believe Common Crawl is in the petabytes range, and [0] describes training a neural net on 300 million images (which would be 300PB if each image was 1MB, but I suspect images are smaller). 80 exabytes is 80 million terabytes and would cost hundreds of millions to store.

My guess is that some journalistic error occurred here, or perhaps someone confused "80 exabytes of data are generated during heart ultrasounds" with "we've stored 80 exabytes of heart ultrasound data".
>His complaint isn't against the Blockchain or Hadoop, but [...] whether it actually provides benefits.

For his blockchain example, I couldn't find his Dutch handicap parking story via Google for more details so I don't know if a traditional central database would solve the same exact problem.

I'm saying that virtually all dismissals of a blockchain in favor of central databases almost always removes the benefits of decentralization. The ironic part is that the skeptics don't realize that the central db "solution" is incomplete when compared to all the decentralized goals (e.g. multiple witnesses guarding against tampering, potentially lower cost ownership verification, etc). Yes, if one changes the rules or moves the goal posts around, one can replace a decentralized blockchain with MySQL. If somebody is the skeptic, does he even notice that he performed that sleight-of-hand in his argument?!?
Misnamed variables are actually one of the simplest problems to deal with ehile parsing. The solution is simple - you don't! The purpose of the parser is to parse the syntax, so you can simply use it to build a syntax tree and postpone the resolution of names until the next step in compiler's pipeline (also useful if you language supports macros).
That's the best case, I'm talking about the worst case. It's a bit like you don't have unprotected sex with strangers because "they might not have HIV". You don't play around with this stuff. I'm furthermore encouraged in my "skepticism" (to put it mildly) by the abstract, alienated language some people use.

> If machines produce everything we need, the outcome will depend on how things are distributed. Everyone can enjoy a life of luxurious leisure if the machine-produced wealth is shared, or most people can end up miserably poor if the machine-owners successfully lobby against wealth redistribution. So far, the trend seems to be toward the second option, with technology driving ever-increasing inequality.

-- Stephen Hawking in a very lucid moment, https://www.reddit.com/r/science/comments/3nyn5i/science_ama...

Those who don't address that first, who cannot ENSURE that they're building a nuclear power plant and not an atom bomb, have no excuse.
Suggestion: "Tech firm fighting federal order for data on visitors to an anti-Trump website"

Or "Tech firm fighting federal order for visitor's data of anti-Trump website"

v "Tech firm fights federal order for visitor's data of anti-Trump website" — can't even gzip it!
It's not finished yet! Maybe when it's finished I could charge more but at the moment I'm happy if I can just recoup some of the production costs each week.
Because the media and the mass conciousness is that easily manipulated? It worked, didn't it?
Do you know that he's not talking about that incident but about the murder of Heather Heyer and the wounding of 10's of others?
Are there slam-dunk arguments why 64-bit is always better for applications? If so, I haven't seen them, and neither have various people I follow who seem to know what they're talking about.

Example: https://blogs.msdn.microsoft.com/ricom/2016/01/11/a-little-6...
I think the author has an interesting direction but don't quite like the examples..

Taking a step back and looking at it more generally I see this as problem solving vs problem finding (in Alan Kay's words), where a perfect example would be the hype with self driving cars and high speed car tunnels. This is problem solving (traffic jams, car accidents, "I need to get there faster"). Whereas problem finding will ask the bigger questions that will lead to better results. In the question of transportation I think you should set up yourself to the problem "How do we build car free cities?"
Why is there no backup for wallet keys?
When species become obsolete, they go instinct or get put in a zoo. I expect the same thing will eventually happen to humans.
Monitoring deprecated Symantec certificates
> Polls suggest they have a lot of support, but their leaders seem to have decided not to use their voice.

Is that really true? Just off the top of my head, Lindsey Graham has been pretty vocal the last few months. I would paint him as a poster boy of the American moderate right (holding fairly conservative positions but clearly opposed to the more extreme American right).

If you mean the actual leadership, e.g. Paul Ryan, well I think it's obvious why they've stayed silent.

I think those moderate voices are just being drowned out.
For legacy internal systems, and legacy OS. There are more than you would imagine still in use.
Just delete "is" and add an "s" to "fight".
Isn't being on council would provide us like 0.9% of chance he would listen rather having no correct person on the council ?
I would applaud you identifying as a moderate if I didn't read you just mock John Oliver, BLM, and the nut job whom you identified as a "left-wing" activist that shot the Member of Congress.

so you are a moderate eh?

> The mob has the intellect and the attention span of a goldfish.>
This is quite a statement. You so wish this was true. If it was, then you could get away with writing trash opinions pretending to be moderate, while really being nothing of the sort, and people might not notice.
> deranged

Key word there, also I'm not aware of anybody on the left who even thinks about giving support to that short of action let alone dares to voice it.
>I see lots of false equivalence arguments and (possibly fair, possibly not)

If they are fair then it's just equivalence, not false equivalence. I feel like this has become the new vogue term thrown around since Charlottesville happened, and it's seeing a lot of misuse. Most people don't even bother to explain why the equivalence is false, thus attempting to shut down the conversation in the manner of the fallacy fallacy.

https://en.wikipedia.org/wiki/Argument_from_fallacy
shut up and take my money! :)
Credit ratings are given by credit ratings agencies.

Currently, credit ratings agencies give ratings to organisations based on the fees of those same organisations asking them to rate them. This creates a conflict of interest. A large conflict of interest.

Like most FinTech, and change is more a question of law and regulation than it is technology 'disrupting' an opportunity.

In finance, laws or regulations change and Fintech tends to be the fastest to react. It is regulators who drive where Fintech goes (not in all cases, but in I'd argue most), however.
"at the top of a value curve" indicates to me that OP is expressing that he is imagining Gates seeing Microsoft's value as a line that will curve downward after this, or at least flatten out. I could be completely wrong.

So what I was trying to express to OP is that while Microsoft's value may not sink (that is, now is not at the top of any curve), the value of the investment may be rising faster in various measures than the same money in Microsoft would be.
>pretty well respected company

Not well respected, especially after their multiple past fuckups.

>fairly random set of unrelated things

VIPS report, relevant donation information of crowdstrike affiliated persons, a report from a third-party who crowdstrike allowed to look at data... not unrelated at all.

A start for transparency to relieve skepticism would be to release the data that shows the C&C ip's match past Russian affiliated attacks. That's what it boils down to, Crowdstrike claims that those ip's match a past or known group of Russian pivot servers, but haven't offered the data to verify this.

I have training in computer/network forensics. Do you?
You can't do those things using a parser generator. They not a part of the grammar.
> explain Stalin

The communist rise to power was an actual civil war. Hitler rose to power by democratic election (assisted by violent thugs and demagoguery and ultimately corruption but still an election).
That's true as long as there are plenty of providers in the market and the barriers to entry are low, so you can get specialist "free speech" firms.

Sometimes that's true, sometimes it's not. If Google and Bing both decide to delist your website because they think it's "hateful" or some other reason you're out of luck. There are only two major English-language search engines.

If your Wordpress hosting provider doesn't want you, well, that's inconvenient but not the end of the world.

One problem with encouraging a culture of "free speech doesn't matter if you're a company" is that the type of speech that requires the most defence is the most unpopular kind, which means you can end up with all the offensive or challenging material lumped under one or two providers ... who are then vulnerable to other forms of attack by people who wish to crush speech they disagree with. It's really a lot more robust if everyone agrees that "I disagree with what you have to say, but I'll fight to the death for your right to say it".
Nobody is talking about him.
Pretty much all off consumer tooling is HSS. People just use way too much speed and cook them. It doesn't help that most aren't too sharp to begin with. Ever since I bought a drill bit sharpener (faster for the same quality as doing it by hand on a grinder) I've been using my hss tooling more.

For steel that just needs a hole and will be drilled with a hand (power) drill I've found that masonry bits are king. A small pilot keeps them from walking and the carbide tips hold an edge very well. For truck frame rivets in accessible locations it's faster and cleaner than a torch. The straight cutting edges are also very easy to grind.
Yeah, technically more correct would be Al Sharpton position which is Trump Traffics in Racism.

Trump is beholden to what he believes is his base: Alt-Right and Putin. He does not and never had really a position but is begging for applause from reliable sources.
Unfortunately the vast majority of Americans have no idea what has (and continues to) happened in Turkey over the past year.
> I have not really written much of Windows code, so forgive my ignorance but: What is actually so hard about porting 32-bit -> 64-bit applications on Windows

Speaking strictly about things surrounding your code, as opposed to the code itself, there's stuff you just don't have on Linux.

On Linux pretty much everything is open source and provided by your distro, built for your architecture. The need for compatibility layers are absolutely minimal. This has a resounding positive effect in that quite a lot of things can be assumed fixed and in place.

On Windows, not so much.

Most applications are pre-built by others. Most are 32-bit. So Microsoft tries to maintain backwards compatible execution environments for both 32-bit code and 64-bit code in Windows.

This means that 32-bit processes trying to access system DLLs, will need to find 32-bit system DLLs somewhere. Same for 64-bit. So you have duplication of system-DLLs, in different folders. You can't just assume a standard, fixed path will lead you to the right place.

For the COM subsystem, all the available components an application can access is stored in the registry, alongside their physical path on disk.

You may need different DLL-files for these COM components in 32-bit processes and 64-bit processes. So now you need the registry to point to different locations based on the bitness of the application running. So yeah. Portions (but not all parts!) of the registry is also duplicated with different references for different processes.

That means that when going from a 32-bit process to 64-bit process, all things you've previously written to the registry... May not be there for you to read in your 64-bit process.

And you better make sure your installer is the same bitness as your process... Or you know what? That 32-bit installer wont be allowed to prime the 64-bit registry your application needs!

This may mean that all COM components you've registered in your installer, now is inaccessible to your (and other) applications because they are 64-bit.

And I'm sure the list goes on. These are just the most obvious non-pointer based things I can think of which complicates matters.

In short: On Windows... Keeping everything 32-bit and closing your eyes to all terrible things mentioned above will ensure your application keeps working, because Microsoft put in the effort to guarantee that.

The second you step into 64-bit, you need to have all these things solved. There's no going half-way. So most people who has little to benefit from 64-bit executables simply don't.
One of the prominent Chinese VCs, Neil Shen from Sequoia China, was on the Economist's podcast recently talking about AI in China. When the host asked Shen about the Chinese state's use of AI in monitoring the citizens of China, Shen clammed up. It is an amazing bit of audio (starts around minute 8.)

https://www.acast.com/theeconomistasks/theeconomistasks-howd...
App Academy has the same business model in SF and NY. I went there along with thousands of others. Cool that this is online though.
Nothing productive is happening in these comments. Admin should intervene.
The article mentions Cloudbleed, which did what you're suggesting (used Ragel), and still managed create a serious vulnerability.
Maybe playing the instrument isn't actually the hardest part for a pianist, but for us string players... ;)
By that standard the USSR had lots of democratic elections.

Some of the unwritten standards by which we judge an election democratic or not are things like "do people get beaten up for campaigning". When we see violence and then a leader who wins 97% of the vote in places like Africa, we don't hesitate to call it a sham democracy. Why would we do differently for Germany?