skysight-inc/HackerNews huggingface dataset:
I'm a Caucasian born and raised in The Netherlands living in Australia and married to a Thai wife.

Maybe it is because I'm white but I don't really understand the racism here. The type of abuse pointed out in the article isn't really different than picking of fat people, or bald people or people who are to skinny, to tall or to short etc.

To me, personally, racism is about hate. Making jokes or teasing someone about their physical appearance or racial background, to me, isn't racism per se.

My wife told me a story; She worked in a noodle bar behind the counter. One day some people who had eaten in the place paid and when they walked out the door one of them turned around and said to her "Fucking monkey!". Now, to me, that IS racism. Not this because this asshole happen to say this to my wife but because there is a tone of hatred in it.

To me the article sounds a bit juvenile. As if the author thinks that only Chinese or people of Chinese heritage get picked on or teased in daily live. People will pick on each other and will make jokes about each other and they will use the most prominent physical feature to do so.

However, I do agree, this sort of behavior by an adult man (gay) on prime time television is pretty childish.
OO and FP coexist peacefully. FP is all about passing functions as parameters into other functions.

Its exists on decent languages. Which in case allow OO also.

ie. perl, allows all that, and has Moose which allows Class and Roles and Types. So you can build classes like lego, literally.
Very interesting, I'll try to read up more.

>BTW, are you Spanish?

Nope, Italian.
You mean YouTube shows like Difranco's aren't poised to destroy "evil traditional media?"
Very cool! Do you use TFDF and then extract the most "meaningful" sentences?
Get your books more cheaply – possibly
Slippery slopes certainly exist. However, the use of "slippery slopes" as a counterpoint is not useful. In fact, its harmful as it is posed as an end to the argument. We can certainly all agree its a complicated issue that requires a complicated solution, but our discourse should be on the solution, not simply stopping calling it slippery.
I think this is a crucial point. To make it more concrete:

In the U.S., having a video of Osama bin Laden congratulating the 9/11 terrorists might be grounds for suspicion.

In China, having a picture of a guy standing in front of a tank in Tiananmen Square is highly frowned upon.
I wrote a non-academic book on this subject for the HN crowd: http://computationbook.com/
When the market expands rapidly, but you share does not...

My collection of Programming Books Which I Will Discard Before I Ever Move Them Again includes a book about CGI programming with the Korn shell. I am not making this up.

As you well know, back in the day when CGI was magic and server-side includes were amazing, there weren't a lot of options for server side programming. You had C, if you were a Unixy systems programmer and didn't mind doing string processing in C. You had Tcl, if you wanted to go the AOLserver route. You had whatever shell script you wanted, if you wanted to pipe and stream together Unixy commands. After a time, you even had server-side JavaScript, if you spent a lot of money on Netscape server products.

You also had Perl, which ran on just about every Unix under the sun and behaved the same way pretty much everywhere. Even if you couldn't rely on one Unix utility behaving the same on every Unix variant (unless you somehow managed to get the GNU tools installed), you could rely on Perl being just about everywhere. Better yet, it had a fair library of code being developed and published because people were sharing it.

In the early days, you might have to use a Perl fork to connect to an Oracle or a Sybase installation, but you even had that option. (Yeah, you could do that in C too, but that would be borrowing pain far beyond string handling in C.)

It's pretty easy to see why Perl ended up with a lot of that market. It fit that niche which hadn't previously existed, and there wasn't much competition. (Korn shell. Korn. Shell.)

The market expanded rapidly. Then the competition expanded rapidly because the market expanded rapidly. It's innumerate to suggest that the relative position of market share will remain the same or even grow when the market grows so rapidly and so much competition appears.
First 33 bits of SHA512(your DNA)

First 33 bits of SHA512(your 3D GPS location)
You just labeled yourself a child rape apologist by social justice warrior feminist standards.
I seriously doubt your intellectual integrity here.

You know that the dot syntax is a mechanism that matches with the conventions for property access, and no other access pattern.

You also know that its possible to call zero argument methods that aren't accessors using the dot syntax.

I don't believe that you think that this is the purpose for which the dot syntax was designed, and yet you bring up 'autorelease' to support your position.

As I said, based on your specific definition, you are correct, but using denigration, a false straw-man 'quotation', and dishonest examples doesn't make your definition fit the evidence.

As I said, and you sidestepped, properties pre-date the directive, therefore the directive cannot be the sole definition of what properties are.
"Bad programmers worry about the code. Good programmers worry about data structures and their relationships." -- Linus

If your data structures don't exist outside of your functional code acting on them, it's hard to reason about the data structures themselves in a vacuum.
Agreed. I think the problem with OOP (at least in most common implementations) is that objects (and/or classes) just do too much. They serve as complex data types, records, code modules, contracts, callback containers, etc. It's hard to grasp disparate concepts when you keep calling them the same name. Even harder to construct and explain more advanced stuff layered on top, such as various design patterns that actually make those objects useful.
Thanks for letting me know about this little jem. That was an extreme contrast in deployment. I feel like throwing out bitbucket and setting this up on one of our virtual machines. This looks perfect!
> I'd love to see a clean slate replacement for the shell that still feels Unix-like and retains most of its existing benefits.

Have you looked at scsh, the Scheme Configurable Shell? It's a nice clean language with a REPL (well, it's just scheme) that has syntax for all the usual things you'd want in a unix shell -- pipelines, redirections, environment, signals, etc.

http://www.scsh.net/docu/html/man-Z-H-1.html
If there wasn't a law against doctor assisted suicide, he'd be able to let his father die as he chooses.

The only entity that can make and enforce laws is government. This makes government distinct from all other entities.

Therefore, the government deserves the blame.
Ask HN: VoIP anyone?
Hi all,

<tl;dr>
You are operating multi-national and you are using a VoIP Provider? Which one? Are you happy with it? What could be better?
</tl;dr>

Lets assume a startup/company slowly grows up and goes multinational. Assume further the main office is in the US, you are targeting new Customers in Europe and Australia and to overcome timezone problems you have a support team in the US, Europe and Australia.

I guess it would come down to some Providers like Vocalocity (Vonage) [1], RingCentral [2] and the more or less DIY Providers CallWithUs [3]/Voip.ms [4]?

Now, I saw providers like to high-price their services and features (ring-calls, call forwarding, ...), although it is basically all supported by SIP anyway. Is that correct?

...and here ends my knowledge totally:
The way the packet travels is always source-server-destination only if the server is acting as a proxy? Meaning if someone calls from Australia to Australia, but the SIP Server is in Canada and acts also as a proxy, then there will be probably a round trip of 500ms? Or is this always the case? I was reading quite a while that voip.ms is having therefore a couple of servers [5]. I have played a little bit around with CallWithUs and get around 130ms delay to their echo-service and about 150ms delay to HongKong (I'm in Europe). Then I left a Skype conversation running to the US and someone called my DID number with his phone and, although I have no exact numbers, the latency was terrible compared to the running Skype conversation.

I am pretty stuck. Any help, advise, or any pointing in the right direction is highly appreciated! I can't be alone with that :)

Thanks

[1] http://www.vocalocity.com/
[2] http://www.ringcentral.com/
[3] https://www.callwithus.com/
[4] http://voip.ms/
[5] http://wiki.voip.ms/article/Choosing_Server
Religious based lobby groups don't force politicians to create and enforce particular laws. Politicians do it voluntarily.
Interview of Subway owner about accepting Bitcoin
This doesn't make me significantly worry about my privacy using Google services. Google knows that it needs to maintain trust with its users and that's why it's only tackling a crime which has little controversy with respect to its heinousness and is almost trivial to detect, from a systems perspective. I'd far rather Google show good faith and help fight crime on their terms, rather than the government come in and start imposing safety regulations and make it obligatory.
There are a couple of ways you can do it. Don't do this with `ls` though; there are better ways to get that info in scripts.

# Loops over lines, in a subshell
prints_lines | while read -r line; do
some_command "$line"
done

# Loops over lines, in the current shell
while read -r line; do
some_command "$line"
done < <(prints_lines)

# If for some reason you really want a for loop
oldIFS=$IFS
IFS=$'\n' lines=($(prints_lines))
IFS=$oldIFS
for line in "${lines[@]}"; do
some_command "$line"
done
I agree that min/maxing is easily exploitation, but it's also what those companies see as necessary to compete, and it is what high relative fitness companies do to not fail. One company gets a competitive advantage from doing perfectly legal activities which can allow them to edge out their competition from the market. See: Walmart.
Just make questions 33 be the your assigned number then. 0 or 1
Douglas McIloy - basic CS reading list
See: http://www.missingkids.com/Exploitation/Industry

There is apparently both a database of MD5 hashes of "known bad" image files, as well as a "PhotoDNA" system for fuzzy image matching.
That one at least sounds like it's ridiculing the readership of the blog.
Most modern languages (aka post-C) already have namespaces, why would anyone need to use classes as namespaces? You can just have functions that operate on set of data, keep it tight and clean, no need for classes if you don't need oop.

Imo forcing classes in a non-oop paradigm is just clumsy and, well, unnecessary. When you have a hammer... etc etc
Another pitfall of this thought-experiment is that there is no room for the constant number of humans who die and are born every day: the set of 33 questions hypothetical questions of today will not be valid tomorrow.
My role here is to prevent people going away with misguided information presented as fact and propagating it elsewhere. Or maybe I should just keep my great big trap shut and sit here feeling smug instead.

There is too little information provided on the two examples to be more precise, otherwise I would have gone into it. All we know is the Boston machine is EnergyCore-based - now that could be a 1000 which is Cortex A9 based, or 2000 based which is A15 based - a 3 minute look didn't make it clear which one you were talking about and which servers are based on what. The Dell system just says it's using a Marvell Armada XP. No more information. The Armada XP is (I think) based on a modified A15 core, but of course they won't say this anywhere. I'm guessing this because the XP range claims "64bit memory" which I suppose is their way of saying it has a 64bit physical address space - a feature of the A15 range. Though of course Marvell have an ARM license that would allow them to do something crazy like add PAE to an A9 based core. But I think that's unlikely.

Enough research for you? I would say the only real way to gauge the performance difference between the two is to try your particular application on it.
> A true sociopath wouldn't be able to do that.

My point is that we don't know that. We're taking that on authority. I'm questioning the basic premise that there are a significant number of people who don't feel any empathy. More than people who congenitally don't perceive pain, say.

None of the actions / behaviours I've seen that are attributed to psychopaths require a total absence of empathy. Instead, just extreme selfishness, impulsivity (delay connecting actions to consequences) and a strong ability to rationalize one's own actions post-facto.
Glad to see some manufacturers finally using common sense.
Do you mean Exec? http://techcrunch.com/2012/05/31/exec-the-mobile-app-for-err...
I'm well-aware that bash is a (if not the) popular choice on desktops and servers, but my terse and somewhat snarky answer was motivated by two other factors:

1. Not only do distributions like Debian or Ubuntu use dash, but various other shells are becoming more relevant to programmers due to their inclusion in special-purpose systems, such as devices running with a Busybox-userspace (which includes pretty much every Android phone, for instance).

2. If the article claims to have any educative value, it should definitely mention that this is something about a particular shell. Assuming the author isn't lying about his use of nix systems (since the diversity of shells is common knowledge to anyone seriously using Unices), the other logical choice is that saying bash instead of Linux isn't as cool in terms of SEO. The WWW is cluttered enough with every marketing drone hiring cheap labour on freelancer.com to fill it with bad spinoffs just to promote their semi-scam business, making any kind of legitimate information so hard to find you'd think it's 1998 again for some topics; it itches me on a personal* level when I see programmers doing that. We should know better.
Seems similar in theory (if perhaps not in execution) to the open source epub.js project[0].

[0]http://fchasen.github.io/epub.js/
Thanks for the reply. I am hoping to get it out before the iTunes submissions cease but it might be January. I am off for 6 weeks!
You're oversimplifying. There were a lot of people on both sides who had reasons other than religion.
Over the air has been exceedingly hit or miss for me also. Even after the equipment the actual delivery seems very scattered. I know in my head that the delivery of digital with correction should be better than analog, but the experience simply is not.

I am not a electrical engineer, so can anyone shed light on why the range for channels on digital is so much lower than it was with analog, also is weather much more impeding for digital than analog?
For my Comp Sci degree I wrote a regexp/automata library. It allowed you to create/modify/load/save/execute NFAs, and the same kinds of functions for a basic regexp language (character classes, ., Kleene star *, ?, etc) by first converting the regexp into an NFA (with epsilon transitions) as each regexp operation maps to a small NFA so they can be bolted together (with epsilon transitions).

You could then (attempt to) convert NFAs into a DFA using Myhill-Nerode theorem to determinise it; I say attempt as it was possible to make it consume huge resources if you gave it the right/wrong kind of regexp. It also did minimisation and a few other bits and bobs.

To say this gave me a good understanding of regular expressions is an understatement, and once you understand the basics then all of the parts of more complex regular expression languages become a lot easier! That was my enlightenment.
Care to comment on which of those points you found valid?
> So does that mean, that "for" will do something per word of the output of $, rather than per line of output of it?

Correct. The argument to "for" is a list of words.

> What to do if I want to do something for every line?

Use a while loop.

find /some/dir/ -type f |
while read -r line; do
; # something with $line
done

PS. You should almost always use `find` instead of `ls` in shell scripts. Given a pattern, `ls` will exit non-zero if nothing matches it, and you should be treating non-zero exits like you would exceptions in other languages.
Have you tried using a cheap box and rabbit ears? You probably don't need a fancy setup unless you're in a building that blocks reception or MANY miles from a major city.
Company A wants to hire another company to do things for them based on a contract. Company A hires company B, which is completely independent - naturally occurring due to demand, to do the work. Company A is highly profitable and only has high earners in pay. Company B is barely profitable and only has lower earners in pay. How does the law have any power over this situation?

You are telling me that that government would decide that an employee of another company is also your employee because they don't get paid as well as your company's average?
OO itself is just syntactical sugar for standard C structs with functions taking them as args. Substitute in "self" for an additional first argument and you've got FP with types and structs.
Death by KitKat
The only thing I want is to be able to choose the "main" desktop. Right now, this is reserved for the first desktop to the right of the Google Now page. So, when you press the home key, it takes you to that desktop.

Prior to installing the GEL, I had two desktops on either side of the primary one, but pressing home would take me to the center one. Now that Google Now took up residence to the left of the main desktop, I had to move the previous "left" desktops to the far right, which means two more swipes than before. The only reason I had to do this was because GEL thinks the primary desktop is the leftmost one after the Google Now page.

If they update it to allow choosing a primary desktop, the problem goes away.
And that's not all! Insane copyright prevents a lot of people from legally watching popular series. I am in Europe and there is no legal way for me to watch say "The Walking Dead" or any other series.

So what do I do when I don't get proper service? Piracy - it gives me on demand HQ content.

I wonder when TV networks will move into the 21st century. The next network delivers cheap, on demand HD content worldwide will make a ton of money :)
And where does your "friendly-AI" draw it's moral template from?

I mean, I'm OK with an AI that works tirelessly in the background keeping the air clean and the habitat habitable.
However I don't want a computer, no matter how smart; telling me what I and consenting partners choose to do. Or deciding whether or not we must or can use birth control. Or any of a thousand other forms of infringing on human agency.
So are all the shows you watch on Netflix purely ones created by Netflix and not ones that came from one of those ... those TV channels?
> Git isn't broken just because you don't know how to use it.

That is a lame cop-out. Git has a terrible, terrible user interface. Its documentation is equally terrible. Git apologists are nearly as silly as Javascript apologists.

A distributed source control system does not intrinsically have to be as error-prone and obscure and arbitrary as git. The fact that git fanboys can't see this is either a lack of introspection or a lack of imagination, or both.

My favorite example is the fact that "checkout", arguably the single most common source control command, will irrevocably and silently destroy local changes. Those with more time and more hate on their hands have written volumes about this[1], but for me, I find that plenty of very talented devs I know really do not care for git, and suffer its numerous deficiencies because it is the flavor du jour (and because of Github).

[1] http://stevelosh.com/blog/2013/04/git-koans/
Except most of the users of those weekend projects do not pay $100 dollars a month to access the site, and then still have ads everywhere.
"It also protects user and developers from ... any malicious persons or companies who try to sue them over the software."

How could a software license (a contract between the user and the providers of the software) possibly protect a Linux user from being sued by a third party? The third party didn't agree to the contract, so it's not bound by it in any way.
For starters, interest is taxed at ordinary income rates...

As for the other suggestion...it has already been around for decades. Look up ESOPs ("employee stock ownership plans," frequently aka "profit-sharing plans").
That's kinda cheating though isn't it? Like chaining a dozen statements on one line with semicolons and going, "look I can write that program in one line!"
The API wars are coming
Browser Trends October 2013: IE’s Largest Increase Ever?
Interesting UI.

On a side note, I wonder why Project Gutenberg books are all encoded with CR-LF. The first thing I do whenever I load one is get rid of them so that the text can be reflowed properly as paragraphs instead of lines.
> Also deciding about death is expensive and this burden would be on government.

Why? The burden should be on the person.
My wife and I both have clear (and durable) health care directives that would allow our children (and our doctors) to not kill us so much as 'stop trying to save us.' In my case it has specific check points (like if I'm > 80 yrs of age, well past my "sell by" date, all artificial ventilation is strictly prohibited, and it says if I turn 80 while being kept alive by machines, turn them off on my Birthday)

A number of these have been litigated (well at least arbitrated to my personal knowledge) in Calfornia and been found to protect the doctors and hospitals from pissed of relatives who wanted them to 'do more' so I pretty confident that they will be useful for my kids should I end up in that state.
I was going to ask what happened with the bit of news bot on reddit [0], but I see it just resumed posting!

I don't check it all that often, but I like getting a summary of recent news by browsing the bots user page every so often. Was saddened to see it inactive for the past two weeks.

[0] http://www.reddit.com/user/bitofnewsbot
It's not enough to find 33 independent questions that evenly split the world's population.

An optimal, though inelegant solution to that goal might look something like this:

"Is the {1..33}th bit of sha1(name : location : date of birth) 1?".

Clearly you'll have tons of collisions with that solution, as you would have with any solution using 33 independent questions.

To uniquely identify people, we'd either need to use more bits, or look very closely at the population and derive very specific questions.
I feel conflicted.

On the one hand, it's a cool hack.

On the other hand, once someone starts abusing (and teaching others how to abuse) a system. The people in charge of the system have to take steps to protect the system (usually by limiting people's ability to use it). The net result is that we risk losing an extremely valuable discovery/communication tool.

On the gripping hand, life is all about accepting and adapting to change. We should accept that the tools available today might not be available tomorrow.

So I remain conflicted. Doing these sorts of searches by hand might result in a make-or-break connection for your business. Imho, by automating the technique we cross the line from using the tool to abusing the tool. And tools tend to break if you abuse them enough.

But, it's a cool hack.
Isn't that the case with every New Jersey language?
The About page mentions it uses PyTeaser [1].

[1]: https://github.com/xiaoxu193/PyTeaser