skysight-inc/HackerNews huggingface dataset:
Ask HN: Suggestions for a current /etc/hosts DNS blacklist?
I am looking for a simple UNIX solution to blocking connections to ad servers. I am trying to minimize useless bandwidth usage, among other things. I have used Adblock+, Ghostery etc before but I'm looking for a simple, /etc/hosts-based solution. Of course, keeping a blacklist up-to-date is a small challenge. I have found:

http://winhelp2002.mvps.org/hosts.htm

http://pgl.yoyo.org/adservers/

https://github.com/StevenBlack/hosts

StevenBlack's repo looks most promising, as it combines various sources, but I was curious if any HNers had better suggestions. Do you use a /etc/hosts blacklist? When was the last time it was updated? How many hosts does it block?
How Flannel actually fakes a network connection in CoreOS
Seriously, IIRC the wiki page for this feature was like 5 years old. I'll have some statements I'll be very glad to update as soon as this is released.

I was so surprised when I ran into the lack of this feature as I'd had it on both MSSQL and MySQL.
If you're using PyPy.
Python source code obfuscator
i've seen a system in mysql do "insert on duplicate key update" for ages, so this is that same pattern?
lol dude i think you might want to take a step back and look at election results (on all levels) 'for decades' if you think democrats have any perceptible 'high ground' among the american public
Yet another reason why I absolutely love Postgres. It might have taken four years, but we finally got what many of us have been asking for. Nothing ruined my day more than having to write insert-update loops, I am beyond ecstatic for this.
If consciousness even turns out to be a real thing, it probably isn't extremely complicated. I'm not claiming that neural networks are AGI, but they are significant progress towards it.

>Are human beings safe?

They have empathy and don't have unlimited power, so yes for the most part. But that's not really relevant.

>So, how can you restrict research into it? No one even understands it. Thus, you can't. Everyone is free to do as they please in way of research and there's nothing anyone can do about it.

Again I'm not advocating for it, but if the government wanted to ban AI research, they could. Sure rebels could study in secret, just like they can with human cloning or bioweapons, nukes, etc. But for the most part lone rebels working on their own in secret never accomplish anything and real work requires funding and peer review.

>But, all of a sudden, it's time to put restrictions on A.I? Poppycock. When AGI is broken into, the [run] button will be hit and that will be that. What, is Elon Musk going to pull the plug? Provide me some definite way you can restrict the coming of AGI and I'll resign my view.

Again, we aren't trying to stop AI, that was something you brought up. We are trying to create "Friendly AI", i.e. AI that shares human values and won't simply turn the universe into paperclips. And it's very important that we solve this problem before we invent working AI.
FWIW, there are many times I've joined a company because I liked what they are doing and wanted to help. It's actually at the top or near the top of my list of why I'd work at a company. Money's only so useful once you've made a bunch of it; at some point, doing meaningful work becomes more important.

But I'd also want any potential employer to respect my right to gather information and make an informed decision. That's where I think Zenefits went wrong here. Too bad; from everything I've heard, they're an excellent company.
What does the % operator formally do? All I could find in the documentation was :

> Earl Grey's % operator can be used to easily build HTML, DOM, virtual DOM, and other things:
"There is an epidemic failure within the game to understand what is really happening. And this leads people who run Major League Baseball teams to misjudge their players and mismanage their teams. People who run ball clubs, they think in terms of buying players. Your goal shouldn't be to buy players, your goal should be to buy wins." - Peter Brand
`go get` and `godep` have been excellent for us. It does everything we need it to and have had no issues.

It has had far less issues than bundler, npm, etc.
My ring finger does. Not sure which is more common.
I suggest you start with the Nature paper from the guys at HP[1]. Then move on to Leon Chua's original and later papers.

[1]: http://www.nature.com/nature/journal/v453/n7191/full/nature0...
Macros can provide a lot of syntactic convenience over those first-class functions, especially with heavily nested structures. For example, I can replace this monadic parser definition...

function SpecDeclP()Parser{
return Bind(SeqRight(MyKeywordP, IdentifierP), function(nm interface{})Parser{
return Bind(BetweenParensP(IdentifierP), function(parm interface{})Parser{
return Bind(SetSwitchUserStateP, function(_ interface{})Parser{
return Bind(BlockP, function(bod interface{})Parser{
return Result("func " + nm.(string) + "(" + parm.(string) + ")" + bod.(string))
})
})
})
})
}

...with this more readable version if I have a recursively defined "macro" called doparse...

doparse{
nm <- SeqRight(MyKeywordP, IdentifierP)
parm <- BetweenParensP(IdentifierP)
SetSwitchUserStateP
bod <- BlockP
Result("func " + nm.(string) + "(" + parm.(string) + ")" + bod.(string))
}

This requirement arose in Haskell for its Parsec before it became a part of the syntax, then again later with the Arrow library which later also added it to the syntax. Whenever new abstractions are discovered/created, a macroing facility, whether for lisp-like syntax or some other, helps makes all the nested functions more readable.
Most interviewing are wasted time and money, on both sides of the table, that is the presumption, it's a numbers game, also on both sides. It's when a pattern of excess accumulates which builds resentment: candidates just gauging their market worth OR employers being too picky about the wrong things OR not following up to make things right.

How are accounting people supposed to know a reimbursement needs to happen if former candidates and/or hiring managers do not let them know? They're not mind readers. Hiring managers should be clear about whom pays for what and how to recoup any out of pocket, or resentment will spread. Also, it does show lack of professionalism on the company's part if they do indeed seem to screw candidates, even if it were an actual innocent oversight. It would be titanically stupid to habitually, intentionally cheat unselected candidates in the modern world, for the ensuing exposure risks deterring good candidates at least and risks lawsuits at work.

Furthermore, on the candidate side of the table, it signals wisdom on behalf of a candidate if they socially-appropriately limit themselves to risks of screwed. This is a hiring signal of value, whereas someone that hasn't a clue is usually not respected as seriously. (To be fair, many of the best employees in their fields can seem shy, humble and odd to most. This is why it's crucial for astute interviewers to be non-threatening and mutually explore 1. how good will this person be on our actual work and 2. will they not mess up the shop's mojo... Hazing doesn't overcome current business problems, it guards incumbents' sense of in-group entitlement)

PS: I've interviewed as an SRE manager at GOOG before and helped others with their projects there, but I've decided to stay "executing" (bizword bingo) independently on something else. The issue at GOOG is that their interviewing process is somewhat more pragmatic than most but still doesn't go far enough and is too ad-hoc/ineffective. Really though, I just don't respect their products enough to commit the emotional energy into someone else's ship. The advantage of small shops are like small towns: less chance of Tragedy of the Commons because there is nowhere to hide. Unlike most small towns, everyone in small shops must be able to pull their own weight.
Yes! it's about bloody time.
Just wondering though, how often do people write subtraction as "stuff-thing" instead of "stuff - thing"? I find myself typing the latter almost systemically, so hyphens never get in my way, but of course it's all too easy to be blind to the habits of others.
Yeah, it is the same as INSERT ... ON DUPLICATE KEY UPDATE, and similar to REPLACE in MySQL. Exciting to see it in Postgres!
Yet another crowd funded wet dream.
Germany has stopped sharing Internet surveillance info with the NSA
On a multi-lane highway, the carpool that cuts in front of you puts one extra car ahead of you, but there was only a 1/N chance that the car they took off the road would've been in your lane otherwise. So yes, they do slow you down.

The other interesting irrationality is that every other car on the road also slows you down by exactly the same amount as the cheater, yet we're rarely as indignant about the other poor saps on the road as we are about carpool cheaters. So there is definitely a fairness aspect to this; we shrug off folks who inconvenience us with minor annoyance as long as they play by "the rules" for inconveniencing us, but we get mad as soon as someone inconveniences us by not playing by the rules.
Is it usual to call the 16th century "ancient"?
But you don't like spaces in statements?
Easy to debate unknown, but they already went to the trouble of dissolving gold in acid instead of mercury. If it were me, I would place the the ribbon and all in the solution.
> In screen you can press C-a c quickly

Screen just binds C-a c and C-a C-c to the same command, for some values of c.
My first 'professional' programming gig was at an RF shop building software defined radios. I was programmer #2 and the DSP Guide absolutely saved me when I first got on board there. As another comment author said, it is also one of the best technical books I've ever read.
One of my favorite nearby parks: http://www.yelp.com/biz/los-trancos-open-space-preserve-palo... has the San Andreas fault going right through it. You can see where the fence line has been deformed by creep.

On the plus side if it deforms you don't get a lot of energy buildup.
There are definitely selfish reasons to do all of those things. Examples:

> How does it explain soldiers, risking their lives and health for low pay and horrendous working conditions?

Soldiers defend their own families and friends against invaders who would kill or enslave everyone. That's perfectly reasonable, but it can also be considered selfish.

> People working on free open source projects

FOSS projects can be very interesting and rewarding work, not monetarily but in other ways (in excitement, reputation or maybe glory).

> People spending extra money on social benefits, such as fair trade coffee or electric/hybrid cars

Electric cars are better for the environment, and I imagine many people want a clean environment for everyone, themselves included.

> People choosing to be parents?

One reason to have kids is to have someone to take care of you in your old age (both materially and emotionally). Many people hate the idea of growing old alone.
I think I squealed with delight when I read this title. This is really a great addition, and will simplify so much of my code once I'm able to upgrade.

I try not to think too deeply about all the DB internals (some people are much smarter than me about this stuff), but clearly there are a lot of things that need maintained internally to make this correct, so kudos to all the people who contributed to this.
Is there any other language that does this? For me the second example doesn't look better than the first one.
JavaScript will run anywhere
Teens without smartphones are falling behind
Which version of Postgres will this land in?
No need to wonder, sewer lines that cross a fault line simply break. During my time here in the SF Bay Area I know of at least three water line incidents which were directly caused by water mains that were damaged by earth movement. One in San Francisco in the late 90's created a huge sink hole as the water washed out the under part of a street, one in Berkeley where the REI store flooded, and one in Fremont which may have been a combination of fault motion and land settling.
Ask HN: Looking for a remote minimum wage job/task
Where 'minimum wage' is taken to be US nationwide value, $7.25/hr (note: I currently reside in a 3rd world country).

I am happy to help out any worthwhile science and/or FOSS projects.
I am up for implementing your experimental ideas.

As for my formal qualification, I have a recent physics SB from a tech university.
Most of my projects didn't see the light of the day (but they are still continuing / being assimilated into further projects), while the rest are not so useful.
My spare time will be for the sake of humanity (if basic research counts).

I am interested in:

0. formulation of quantum mechanics and natural language; calculemus system

1. future of science research and tools

2. AI for bounded rationality

3. mechanism design; consensus engine

4. distributed system: unikernels, containers, browsers, propagators

Or anything that needs to be worked out (frontend-backend, data analysis/visualization, devops, docs, refactor, unittest, bug bash, anything, etc, etc).

mailto:noethersym@gmail.com
Does anyone know if using transparent redirects actually waives your responsibilities for PCI compliance? Even though the credit card details aren't sent to your backend, they are still collected on a form hosted on your infrastructure.

If your servers are compromised and malicious JS is added to your payment form, couldn't an attacker siphon credit card details via AJAX? It seems like the PCI documentation always uses terminology like "sites that collect credit card data", which I think sounds broad enough to include sites that use transparent redirects.
> He's living currently on about 25k a year, which is a over 25% of his starting income, and certainly more than the 4% he advocates above

Something is wrong with your math there (unless I am misunderstanding you). $25k is not more than 4% of his total savings. (In other words, he has more than $625,000 in his investment portfolio).

He exceeds his own advice, because to him it is not deprivation.
Just "using a transaction" is insufficient. You must be prepared to handle the case that neither the INSERT nor the UPDATE succeeds (with READ COMMITTED isolation), or that the transaction fails (with REPEATABLE READ isolation or better), by repeating the transaction. And if latency is at all a concern to you, you must wrap this all in a stored procedure to avoid the necessary round-trip-time between the commands.

Hence this is more than just saving typing a couple lines -- this saves writing entire stupid loops to do what is conceptually a simple (and very common) operation.

Postgres gets better and better.
Because in this neighborhood of the superimposed wave function that comprises the multiverse that didn't happen. There are also an infinite number of neighborhoods where the ability to ask that question doesn't exist because of the event.

To ask why it didn't happen in this particular neighborhood is to ask why the lack of that event is possible. In a Q.M. multiverse "why" questions get real tricky.
Also the idea behind hiring a VP of Engineering (at a startup) who'll bring in his previous team(s).
Hope it fares better than Ceylon.
You love Postgres because it takes four years to get requested features?
9.5, that is, upcoming!
If the airplanes are just capturing data that is already in public view (no expectation of privacy), then how is that any different from cameras mounted on buildings? One uses a plane to cover larger ground, and one is fixed. Neither one requires a warrant if it's just recording things that happen out in the open.

I don't disagree with you, but this doesn't seem like a good argument.
There are examples below that statement for common usage, but if you want a deeper understanding:

tag.xyz %
property = value
child1
child2

Will produce the data structure:

{tags = {"tag", ".xyz"}
props = {property = value}
children = {child1, child2}}

as an instance of the ENode class. Then, transformer functions can process the data structure to generate HTML or other things, e.g.

require: /html
html(thing)
==> <tag class="xyz" property="value">child1child2</tag>
Supporting every feature of markdown would enable people to insert eye-catching but distracting comments. Besides the features already described at https://news.ycombinator.com/formatdoc, which ones would be most useful without being abusable?
I love the name but it will get mixed up a lot on Google searches. Just like it was with the TV series "24" that matched every 24 that was to be found online.
Creating a Frictionless UX Strategy – Medium
Many people who join the military do it because they have few better career options, and the probability of death or serious injury still isn't extremely high. So in that case it's driven by economic self interest.

Self interest can also mean pursuing non economic benefits that nonetheless provide real, though harder to quantify, value. Like joining the military to gain the respect of your family or community.

Similar motivations around open source code contributions.

People buy fair trade products due to guilt, and I don't say that as a criticism - guilt can be a very pro-social emotion.

Political activists are often motivated by a desire to be accepted and held up by a belief community, whether religious or secular.

And being a biological parent is among the most self interested things you can do.
I haven't seen the feature elsewhere. The second example looks better to me (syntax highlighting helps) and reduces redundancy and indent, but I guess views may vary on this. Good to know!
Hacker Paradise Is Hiring a Trip Leader
14 Powerful Mothers in Data Analytics, 2015
Of course they do. It's called the HR resume screen.
When it's retail and not a crowdfunded wet dream.
Are they still here? My FitBit is almost useless for me. It rots in a drawer. When I bought it I had trouble using it with my Samsung S4 - unsupported phone because Bluetooth something yada yada. Maybe they evolved since.

Their website was ugly and hard to use. Their apps too, and they banned specific phone models and countries from installing the app. Very vexing to be left out on purpose, after buying the damned thing.

Sleep tracking? I had to TELL it when I went to sleep and woke up (the magical five-times-tapping). So, basically, it's the same thing I could do with a notepad and a pen on the nightstand.

I use my phone to track my calories since.
Ask HN: Is a MS in CS from USC useful in the long term?
Hi, I am a programmer, currently working in India. Although I had never dreamed about obtaining an MS from a US university and settling there, but last year, I decided to give it a try just for the sake of it and have got an only admit from USC. This has put me in a dilemma as the costs of studying there are huge. Now my question is, would an MS from USC help tremendously boost my credentials (given that my undergrad is a tier-3 institution in India) such that the heavy cost of USC would be justified? How good is an MS in CS from USC perceived over the long term? On a slightly off topic but related note, what are the different career paths one can take after graduating from USC (or after an MS in CS, in general)?
Doubt it's NSA in the sense that they suggested weak crypto, but I do believe NSA is to blame. They are the ones beating their chests how we need MORE CYBERSECURITY to protect our "critical infrastructure from cyberwar and cyberterrorists". And then proceed to:

1) do actually nothing to further security for critical infrastructure

2) push for more surveillance laws in disguise as "cybersecurity laws"

I mean for crying out loud WhiteHouse.com didn't even use HTTPS until people on Twitter started a public shaming campaign against them. THAT'S how pathetic the real "cybersecurity" is in the US. And they have absolutely no real plan to change that right now. Who's going to come up with one anyway? This guy?

http://www.govinfosecurity.com/interviews/michael-daniels-pa...

Their current "plan" is passing stuff like CISA which will do nothing to stop a major cyberattack against critical infrastructure.
in italy this means the 5% of businesses that "unofficially sponsor" the government are allowed to run roughshod over anything they want.
One-click fraudsters extend reach by learning Chinese
Postgres turned a corner around the 9.0 era and has been churning out huge features for years. Indexes on jsonb completely changed the game for me.

As you can see from the commit, too, this was not a trivial feature. So yes, I'm overall pleased.
It asked something like keeping the recovery partition. I naively said yes. I got everything from McAfee to Encyclopedia Britannica.
Try out Byobu. It's built on tmux, and it's nicer to use than screen, I find. Stupid name, but has some conveniences. Mostly I just use F2 to create a parallel terminal and F3/4 to cycle through them.
This is exactly what I'm building with Glitch Club. It's a community of talented engineers who could be creating great things if they had the support of others and the community feedback on their work daily. Check it out:

http://glitchclub.com

At the moment I'm exploring other directions with it, such as having it as a story telling platform, but the original idea was a startup/engineering sounding board. With reply videos able to be added to the existing videos there, and smart conversations happening through video replying to video.
That's assuming that audio from these sensors is at all useful for eavesdropping on people. Try a speakerphone lately? Even with higher quality codecs than we got in the POTS days and things like beamforming, the result is pretty terrible in decent sized conference rooms. Now try this outdoors, further away from people, with the noise floor of a city instead of a quiet room.

The cases people point to where ShotSpotter has picked up understandable words have been people very close to sensors who were shouting immediately before, during, or after gunfire the system picked up. But at that point, it's unreasonable to claim some sort of violation of privacy when people are screaming for all to hear.
> There are plenty of people that support mass surveillance, they are just in the minority and unlikely to speak up about it in a place like HN.

Except for when you use phrases like "big data", "targeted marketing", "ad retargeting", "data science", "marketing optimization" or "marketing analytics" - in place of "mass surveillance". Then there'll be lots of people talking about and working on the problem.
I seem to remember that Wikileaks asked some part of the US government for help redacting the Manning leaks to prevent jeopardizing lives and missions, but they refused.
For anyone who has ever had to write scripts to import incremental batch data, CSV, etc this seems huge.
Ask HN: Where did you meet your significant other?
My learning from past experiences is that the more women I meet and get to know, the less likely I am to stay single for long. I guess it's a basic case of supply and demand.

The problem is that ever since I graduated from college and started working at a big tech company, I've come to realize that the number of new people I'm meeting has dramatically reduced. But what concerns me is when it comes to women: I haven't even made any new girl friend (as a friend being a girl :) in the past year.

What is odd is that people around me (at work, and more generally in the Tech industry) don't seem to be more single than anywhere else.

It's getting me to my question: where did you meet your partner? Was it in college?? Do you have any advices as to where I could meet more people (I've attended a language Meetup group, but everybody was 30 years older than me)?