skysight-inc/HackerNews huggingface dataset:
I would have done that, but because of the splicing you don’t actually want ++i every time. That’s why I rewrote it to a while loop.

Even then you could do it as a for loop with an empty increment clause, of course. Or even use a one-liner for loop with no body:

function blockCookies(details) {
for (var headers = details.responseHeaders, i = headers.length - 1; i > -1; headers[i].name === "Set-Cookie" ? headers.splice(i, 1) : i--);
return {responseHeaders: headers};
}

But that’s crazy talk. Leave optimisations that to the minifier if it feels so disposed.
when my htpc ran windows, this was the only player I would ever consider. years ahead of anything else, even vlc.

but the problem is, nobody who is a suitable contributor run windows nowadays.

every open source project must support Linux now.
Yes you would be correct if we were talking about imaging satellites, but communication spy satellites would be in geostationary orbit :)
The reason why you can't use functional methods of Groovy in jenkins is, that the intepreter that runs inside of jenkins has been rebuild so that jenkins can suspend/resume the execution of the pipeline.

This means that everything needs to be serializable, and that in reality you are not really executing groovy statements, but rather passing continuations.

This is a reason why you have @NonCPS annotiation, that allows you to opt-out of that behavior.
Very impressed, works fine on websites in Swedish even.
> backspace is how you switch to a more general search

I actually love this feature on GitHub and wish it was a universally-accepted UX pattern so I could do it places like Amazon to remove the pre-selected category in their search bar. The convenience of the backspace outweighs the space the label takes in the search bar IMO, though GitHub could have made it smaller by shortening it to something like "this repo"
Women's stories reveal systemic sexual harassment in tech [video]
that is the error you get if you disable directory browsing in the webserver
Obligatory mention of the NYTimes using a CRF to get structured data from recipes:

https://open.blogs.nytimes.com/2015/04/09/extracting-structu...
Show HN: Baruch - A light novel reader and downloader mobile app
> Once you start judging them (for actions other than abuse and neglect), you very quickly realize how limiting that is.

"Judging" is a bit of an overloaded term. I don't think it's OK to call someone human trash for having a risky hobby.

I do think people can say, "You're better than this. Make better choices."

One version is dehumanizing someone for their behavior. The other is (when phrased well) constructive criticism.
On its first day on the job, a robot killed itself
What Blacks Need to Overcome the Issue of Racism
This is the long standing definition, which has been used in the athletic community for much longer than it has in the "wealthy yoga mom" community described in the article.
Print has a natural limit - you cannot expect to print and deliver unlimited sheets interspersed with ads. Websites can show you content from a decade ago with ads thrown in if the content is relevant to you. Print ads can be skipped far more easily that web ads.

With NYT and WaPo, your subscription is supposed to support quality journalism. The tradeoff that you're agreeing to - pay but also see ads - is not going to work for say a music subscription service or a stock tips service. My argument holds for those businesses. I'd say that WaPo, WSJ, and NYT are outliers, not the mainstream.

Tasteful ads:

Web advertising is so democratic that even the smallest company or startup can spend a few hundred dollars and get in front of you. Demanding tastefulness from such advertisers puts us as the risk of "corporatising" ads again, imho.

Anyway, I don't want to commandeer this conversation. I'd love to hear other opinions from HN.
There is never any ROI on Kickstarter... You are always throwing your money away. If you are lucky you get some stickers or a discount on the final product.
Clearly there's an association to Bitcoin and there are certain expectations by people when mentioning blockchain.

It's justified since blockchain on its own is a relatively simple data structure which on itself is not that significant. It's the composition of all the elements that have given the value and recognition to this technology.
Note that the photo in the article is of a D-Wave chip, but this is not what these guys have built.
'Suicidal' Knightscope Robot Drowns
I was newly married and my husband and I intended on getting a house but our credit scores were low and I also had a few bank debts. I spoke to a friend about it who happens to be a tech guy and he introduced me to a hacker (blackbutcher). I contacted blackbutcher and he helped my husband and I boost our credit scores and he also helped me clear my bank debts. This hacker is a genius and comes highly recommended by a lot of people. He's affordable and genuine unlike a lot of fakes I saw on the internet. Contact him on his mail blackbutcher.hacker@outlook.com
I once hacked together some very basic code to try and do this, so that I could answer the question "what can I make with the stuff in my refrigerator".

I gave up on the project pretty quickly (now I'm really tempted to pick it up again), but you can definitely get 90% of the way there with 10% of the effort:

ingredients = [
'200g of heavily salted butter',
'six bottles of beer',
'50ml of clotted cream',
'plain brown flour',
'1 oz french cheese',
'8 large eggs',
'2kg of salted pork',
'a pinch of salt',
'a tablespoon of honey'
]

ingredients.map { |i| IngredientParser.parse i }

# => ["butter",
# "beer",
# "clotted cream",
# "flour",
# "cheese",
# "egg",
# "pork",
# "salt",
# "honey"]

https://github.com/cronin101/DataChef/blob/master/utils/ingr...

require '../environment.rb'
require '../scrapers/bbc_good_food_scraper.rb'

recipe = Recipe.create source_uri: 'http://www.bbcgoodfood.com/recipes/vietnamese-caramel-trout'

recipe.update_using_scraper BBCGoodFoodScraper

puts recipe.title

puts recipe.description

puts recipe.ingredient_ids.inspect

recipe.ingredient_ids.each { |i| puts((Ingredient.find i).inspect) }

=begin

Vietnamese caramel trout

A caramel base balances out the hot and salty ingredients of this Asian-inspired one-pan fish dish for two

[56, 57, 58, 59, 60, 61, 62, 63, 64]

#<Ingredient id: 56, name: "caster sugar", recipe_frequency: 1, recipe_ids: [7]>
#<Ingredient id: 57, name: "thai fish sauce", recipe_frequency: 1, recipe_ids: [7]>
#<Ingredient id: 58, name: "red chilli", recipe_frequency: 1, recipe_ids: [7]>
#<Ingredient id: 59, name: "ginger", recipe_frequency: 1, recipe_ids: [7]>
#<Ingredient id: 60, name: "rainbow trout", recipe_frequency: 1, recipe_ids: [7]>
#<Ingredient id: 61, name: "bok choi", recipe_frequency: 1, recipe_ids: [7]>
#<Ingredient id: 62, name: "juice lemon", recipe_frequency: 1, recipe_ids: [7]>
#<Ingredient id: 63, name: "coriander", recipe_frequency: 1, recipe_ids: [7]>
#<Ingredient id: 64, name: "rice", recipe_frequency: 1, recipe_ids: [7]>
=end
I do something similar which is based on the Cygwin default bash prompt:

PS1='\033]0;${PWD}\n\033[32m${USER}@${HOSTNAME} \033[33m${PWD/${HOME}/~}\033[0m\n# '

Looks like:

root@myhost.name /etc/httpd/conf
#
“INTRO 2 1-natVson-1”
See how much trust dutch people place in different organisations
> politicians and police say that, but for a slightly different reason

So, they don't say that?
Ask HN: How to easily use data from similar CSVs in Python
I have several CSV files that are similar, although different in more or less subtle ways. For instance, the columns may be rearranged or have different names. The files generally contain the same information, but are from different sources - hence the differences in formatting.

Preferably i would want to keep them in a directory on my computer, and use (or build) a tool to access the data from python modules in a generic way.

My solution so far is using an SQLite database and a script that tries to work out how to rearrange the data to fit the schema. This seems like it could work fine if the integration script is smart enough, but it has devolved into a messy case-by-case system, and is proving difficult to make generic.

Have any of you tried to do similar work, and are willing to share some insight?
China is supplying military drones circumventing restrictions on US exports
also catching up with the murder rate...
The way soldiers rationalize it is presumably that they'd argue they're protecting their children by "serving their country". This line of reasoning works a lot better in countries like the US or UK than e.g. Germany (although the sole purpose of the German army by law is to defend the country) but it's easy to guess why Germans don't like putting soldiers on pedestals.

The line of reasoning for firefighters and police officers is likely similar (though IMO the risks in these professions are far more manageable because you're not literally surrounding yourself with people who try to kill you).

In the end I think it's a good thing we talk about these decisions at all and I hope it has not only to do with women (and thus mothers) entering these professions.
First hop on my ADSL connection is 43msec away (RTT).
The Seoul train that goes to the border and back
It sure is imaginable, though.
How to make Git pull use rebase by default for all my repositories
It literally is Omnirat. From the article:

>GhostCtrl is also actually a variant (or at least based on) of the commercially sold, multiplatform OmniRAT that made headlines in November 2015.
Robot cop found face down in office-block fountain
No... kind of. They have a 2 time cap on downloading from the web client. If you install their app, you can download unlimited times.
This worries me. Bitcoin solved the double spend problem by using the LCR with PoW. That is the novel aspect which allowed cryptocurrencies to come into existence.

If you remove the LCR and PoW, all you are left with is a toy example which cannot work in practice.

What is needed is education about censensus design and bitcoin's implementation of the solution, rather than a 'how to guide' for building a basic linked list under the guise of 'blockchain'.

Cheers, Paul.
>A blockchain isn’t a distributed ledger. A blockchain IS a chain of linked documents

You are interpreting "blockchain" to be constrained to a "chain of hashes". That is a valid interpretation.

The parent (Uptrenda) is interpreting "blockchain" as a umbrella label for "distributed ledger". This wider definition is also a valid interpretation and this language phenomenon is called "synecdoche"[1].

To point back to the actual article, the author (Gerald Nash) is using "blockchain" in both meanings. On the one hand, he talks about the wider scope of distributed currency... but on the other hand, his Python example is constrained to a "chain of hashes". Since Mr Nash is mentioning the Satoshi bitcoin whitepaper when talking about "blockchain" (the wider meaning), Uptrenda's criticism is reasonable because the most interesting part of distributed-blockchain is the invention of incentives (mining rewards) and social agreement on acceptable hashes (e.g. how many 0000s are counted, which chain is chosen, etc).

As other distributed projects such as IPFS/Diaspora/Sandstorm/etc show, finding the right combination of incentives to create social buy-in and sustainability is the hard part. The hashes is the easy part.

https://en.wikipedia.org/wiki/Synecdoche
https://your.bank
and no word on how it moves. even bbc is going downhill :(
We have an AG who wants to take even more stuff from people. Highway men. That's what this country needs.

“We hope to issue this week a new directive on asset forfeiture — especially for drug traffickers,” Sessions
I find this disgusting. I couldn't really care less what advertisers put out, but banning messages simply because they don't conform to the current political winds is troubling.
Erasmus students are famous for only arriving and leaving in flocks. You cant talk to one alone, you got to communicate with the hive!
It's a "Mozilla tries to data mine my voice" episode
Money orders you get from strangers are almost always fake.
Generic C Reference Counting (2015)
An oldie, but a goodie!
AskHN: As developer, avoid .exe to be “File might be dangerous” by antivirus
I sell an application, that people download from my website, in a zip. They unzip it, and run the .exe.

Then Avast does a deep scan of the file and an alert "This file might be dangerous".

How to avoid this?

Things I have tried, that don't solve the problem:

* Have proper resource.rc file in Visual C++, with details about the .exe: BLOCK "StringFileInfo", VALUE "CompanyName", etc.

* Use makecert, certutil, "signtool" from Windows SDK

Things that won't work:

* Add to local avast exclusion (I can't ask every customer to do this!)

* Redo a "Submit file to Avast Lab for scan" for each new build of the .exe. It's not scalable to have to re-submit the .exe to Avast (and all other antivirus software) for each new build.

How do you handle with that?
Yeah, I wanted to read this, but gave up after trying twice to scroll. What ever happened to plain old dark on light text with images in the middle? Why do we need fancy JavaScript effects getting in the way of actually, yanno, reading?
We are glad to hear you like the new design and feel that each change has been an improvement. We value iteration here at GitLab, making the smallest change possible and getting it out as quickly as possible. This allows us to ship, gather feedback, and readjust quickly. You can learn more about our process here: https://about.gitlab.com/handbook/values/#iteration
Cool. Just curious on What is the voice engine behind snips ? and who is the provider of training data ?. Also do you have plans for supporting additional languages or can it be trained on when you open source it ?
Yes, this ^^

There is even a mathematical case to be made that there are always "more relationships out there to discover." One of the more plausible, sober interpretations of the various limitative phenomena in the foundations of mathematics discovered throughout the 20th century is that mathematics is not reducible to fintary symbol manipulation. Perhaps this is a bit loose and controversial, but the point is just that we don't necessarily need to solely lean on the observed fact that there have always been "more relationships out there to discover."
America’s hidden philosophy
The Firefighters

The Firefighters' Guild has been formed and dissolved repeatedly throughout the history of Ankh-Morpork. Usually formed in response to fires which cause significant damage to large parts of the city, the guild is usually dissolved in response to... er, fires which cause significant damage to large parts of the city. The Guild suffers from the undying capitalist spirit of Ankh-Morpork, as those men who are paid per-fire extinguished eventually begin to guarantee a regular supply of fires to be put out. This has led to the frequent destruction of large portions of the city and ultimately to the Guild's being banned.
they might write some clickbait to attract new customers but they rely on subscribers to stay in business. if there was only clickbait as you said, people like me would unsubscribe in a minute
My main gripe with gitlab navigation is I can't see the languages split up (chart) quickly like in Github. Other than that since I am not a heavy user of the website (more on time on git than on website) I find no other problems. Also the redesign looks better than before. Hope they also introduce a dark theme. (would love to have this one)
Sometimes a tl;dr might be also a subtle and polite hint: The original post could be much shorter and/or its headline could be more expressive and/or less click-baity.
Funny you mention that. I was reading about the Australian woman killed after calling 911 and the news was all over the place. Then suddenly the coverage stopped. I don't even have to mention it and everybody can already guess why it happened "suddenly".
That's a low bar: we can imagine things that are impossible. We can imagine things that aren't even self-consistent.

See the open pages of chapter 5 - "The Possible and the
Actual"
http://www.inf.fu-berlin.de/lehre/pmo/eng/Dennett-Darwin%27s...
I'm working on this and finding that it's a lot of work (and code) to identify the actual ingredient. Consider "all-purpose sifted flour." That's the same ingredient as "plain flour." So (so!) many ways to write the same ingredient. I'm getting there, though :)
Doggie DNA startup Embark raises $4.5M in seed to find your puppy’s breed
10 Years of Techstars Startup Weekend Around the World
Everything you need to know about why Bitcoin is required in mainstream market
I want bot neutrality damn it!
Psychopaths have feelings: can they learn how to use them?
Samsung Rumored to Return to iPhone Chip Production in 2018
5 Questions to Evaluate Your Cyber Security Risk
The risk may be: waste of time, inconvenience, being stuck in an awkward social situation. Not always death.

I'd say taking a sabatical, walking the country asking strangers personal or "deep" questions is an adventure and a risky one, yet you don't risk your life more than by just commuting to work.

I guess risks depend on the country, but are comparable.
This is a really twisted take on blockchains. The whole point behind a blockchain is that cryptoeconomic incentives serve as an additional security function which is better than relying on generosity alone to contribute hashing power. So while it is true that a blockchain can exist without any kind of currency - the real genius behind blockchains is how they are designed as a new kind of corporation - one which requires no trust to pay users to create a single, shared view of an ordered list of events.

It's kind of like how in modern cryptography most of our algorithms aren't bullet proof. Cryptographers aren't saying that an algorithm can't be broken, but that it requires so much computational resources to do so that its simply improbable. We can say that blockchains also include this idea but they add the economic aspect; Now it isn't just improbable to break an algorithm (with universe sized computers) -- its also improbably (and irrationally) expensive.

Your other point is that a blockchain is simply a linked chain of documents. This is incorrect. The whole point behind a blockchain is that it serves as a way to get people to agree on an ordered list of events. The problem was never being able to form that list (anyone can hash a list of documents, its basic applied crypto.) It was getting a group of strangers to agree on a single result under highly adversarial conditions.

See also: http://unenumerated.blogspot.com.au/2017/02/money-blockchain...
I detest civil forfeiture, but this is clickbait. The burglary figure is only reported theft. Also, the actual metric is value of goods, not number of takings. Obviously, assets in forfeiture are going to be bigger on average several times over than what a thief typically gets when rummaging a house in a 2 minute panic to get out before the authorities are signaled.

EDIT: Also, if you read the article, it buries even one of the few redeeming aspects of civil forfeiture, payments to victims. If you buy a car and the police seize it because the VIN is tracked to a vehicle previously owned by a drug dealer who used it to ply his contraband but then sold it to pay his way as a fugitive, and once apprehended the car is then auctioned off and money is paid to the family of a victim he earlier had killed, that's part of a much bigger legal process. The remedy for the unfortunate person who bought the vehicle unawares in good faith is to go to his dealer and demand a refund or take him to court for misrepresenting the car, or if the paperwork looks good on the part of the dealer, he'll have to rely on his loss insurance.
Don't do that. Please.
Great to hear that! Is there any issues close to being show-stoppers or any "it would have been immensely helpful to have this but I can work around it" features? Also, what would be the thing that RethinkDB is really good at that makes you keep using it?
How is this different to a YouTuber? They (at least the ones I have seen) release their Videos daily (or less often) as well and sometimes with different Content on different days. So you might even have to wait 2 Days or even a week to get the new episode of the Series you where watching.

It's true that you can binge on a series if you are new to the series (youtube or otherwise) but if you are up to date that is no longer the case.
But I would guess that the difficulty and risk is an essential part of the attraction. Trying to rationalise that risk away seems to be intellectually dishonest. A small percentage will experience the small risk and cause suffering to family. But for all the rest it was an amazing experience that was worth it. Those two things are not contradictory.
Improper markup sanitization in popular software
Syte.ai, a visual search startup just for fashion, closes $8M Series A
"About us", "Press", and "Contact" isn't even linked. Kickstarter logo clearly stolen. Yeah, seems legit!
Good question!

The best way appears to be to pretend you want to register that organization on Amazon's Org Central site[0] which shows which already registered. (An example search for Child's Play[1].)

As a shopper I do not believe Amazon makes this abundantly clear when you're selecting an organization. One thing to look for is the amount of information shown about the organization, specifically the incorporation year, as those that register have to fill out a profile.

According to the FAQ if a shopper selects an organization that is not registered and makes an eligible purchase they will track the donation. If the organization registers they'll get the donation, but if they have not after 2 years then Amazon will contact the shopper and give them 30 days to select a new charity. (I'm not sure if this then resets the 2 year clock or not.) If the shopper does not select a new organization then Amazon reallocates the donation across the registered organizations.

In any case the only way to be 100% sure is to inquire with the organization.

[0]: https://org.amazon.com/

[1]: https://org.amazon.com/npo/search?q=Child%27s%20Play&p=1
CNet Autoplays Video on Article About Annoying Autoplay Videos
It's a travesty we have to "guess". Note how all the Officers' body cams were conveniently switch off during this horrific incident.

I doubt we will ever know let alone get significant change to what is a very disturbing problem.
Yes, I also think exchanging tokens is one of the (few?) situations where a smart contract really is a great solution to a real world problem (as opposed to blockchain hype).

Definitely an interesting area, I've been watching this space, here's some interesting ones:

On the tethered tokens side, https://decentralizedcapital.com seem to be offering tethered tokens backed by real currencies (and cryptocurrencies on other chains). Not heard much about them though.

Implementing full exchange matching rules is pushing at the limit of what's possible in an Ethereum smart contract - https://ubitok.io are working on it (disclaimer: I'm involved with them!).

As others have mentioned, https://etherdelta.github.io is one of the better known decentralised token exchanges - though they do use an off-chain matching engine so it's not totally on-chain.

https://oasisdex.com have gone the other way - they're 100% on-chain, but they don't try to do best execution / automated matching - you have to pick an order to trade with.