skysight-inc/HackerNews huggingface dataset:
When I tried haskell I wanted to use wreq library to do some simple post and get requests.

I took a look at docs and found the function definition for a post request.

https://hackage.haskell.org/package/wreq-0.5.1.0/docs/Networ...

post :: Postable a => String -> a -> IO (Response ByteString)

We can see that the second parameter should be an instance of the Postable typeclass.

The examples mention using a JSON value as a parameter

>>> r <- post "http://httpbin.org/post" (toJSON [1,2,3])

By looking at the definition of toJSON definition we know that toJSON returns a value

https://hackage.haskell.org/package/aeson-1.2.1.0/docs/Data-...

Just seeing a single example isn't enough for me to generalise though.

I proceed to go to the definition of the Postable typeclass.

https://hackage.haskell.org/package/wreq-0.5.1.0/docs/Networ...

Unfortunately it doesn't list the instances of the typeclass so I decide to use hoogle.

https://www.haskell.org/hoogle/?hoogle=Postable

No results found.

I then start looking at the source code of the library until I found this file which contains the Postable instance for json values.

https://hackage.haskell.org/package/wreq-0.5.1.0/docs/src/Ne...

import Data.Aeson (Value, encode)

instance Postable Value where
postPayload = putPayload

Why is it so difficult to do a simple task like finding all instances of a typeclass? In a Java IDE finding the implementations of an interface is just a single button away and fully automated. Of course I'm assuming that you've already imported the library that contains the typeclass instance. In this case the instances are part of the wreq library themselves and not of aeson or some plugin that you use to connect wreq and aeson. If hoogle worked as I think it should it could even be superior to a local search that only considers libraries that are part of your project. I'm a big fan of self documentation and like the type-aware documentation but this is a case where although it took a short time I've wasted more time than I'm comfortable with for a simple program that could be written in python or whatever instead.

I don't care about category theory at all and you can have all the practical benefits of category theory without putting it on a pedestial. It's neat to write more generic functions and stuff but there is no need to glorify it.

From a practical standpoint monoid, monad and functor you can think of them as an interface. When your code accepts a specific implementation like ArrayList you can in some cases instead use the java interface List to make your code more generic. When your code accepts a specific implementation like Maybe or List then sometimes you can use the Monad typeclass to make your code more generic.
Trump Bars Chinese-Backed Firm from Buying U.S. Chipmaker Lattice
I think YouTube hit the right combination of UI and network speed improvements. Before that, either the UI was glitchy or the average person's network speed was too slow to stream video usefully.
I didn't mean to suggest that Chalmers is ignorant of Dennett and Hofstadter, just of computational neuroscience. I don't necessarily think that Dennett and Hofstadters arguments rely on computational neuroscience, but the two components are complementary, and in combination are fatal to proponents of the "hard problem".
Could anyone provide a "real world," or generic business coding (database, input validation, etc, etc..) example that demos rates their usefulness outside of a pure "mathy" domain.

I find that most of these fp examples tend to focus on simple things like shapes which tend to already have monoid properties built in. I'd be interested in seeing examples of how they help your kind of run of the mill business coding.
>People who receive downvotes can sometimes believe that anyone who is downvoting is doing so because they must support the opposite of what the poster believes. This, in my experience on HN, isn't necessarily (or even often) the case.

Bingo. The majority of the time when I downvote anyone, it's because they are trying to seem more intelligent by overusing linked academic articles or by overusing vocabulary that doesn't really fit. Anytime I see someone using something as an excuse to "talk" when they really have nothing to say, they get downvoted. Yes I realize that's subjective and not perhaps what the downvote is for, but that's also my choice.

Contrarion types on the other hand (and I don't mean the intelligent rhetorical folks who provoke good discussion) get a downvote immediately. I have no time for anyone who wants to disagree just to disagree so that they can make themselves look more philosophical or "deep".

I know this makes me an asshole, but at least I'm not treating the downvote as an "I disagree button"
Why the higher support for socially liberal policies and wealth redistribution then?
Sure, these are still valid concerns, but they are different when framed from an alliance/adversary point of view.
I wrote it, I don't feel like being an ass and I'm feeling overly aggressive today, not to mention I am a guest in someone else's house.

...but my overall point is that the tech elite is composed of a lot of rich white guys with connections, who naturally help each other out. Sam Altman runs YC now and as of last year was apparently seriously considering running for governor of California. That strikes me as grandiose and not good for society. Sam is 33 and because he's a tech billionaire thinks that he should run the most developed economy in the world? He genuinely believes that people outside of tech and business know who he is? He's qualified, because he's shook hands with the best off of society for the past decade?

Why does he deserve that power? Why does Zuckerberg deserve to be president? What makes him qualified? He made a PHP app that got big. Come on. That's what all this boils down to: money and power and a lot of people value that more than anything else in life.

How about we be honest with ourselves as individuals and societies and stop enabling that?
Most consumer-grade audio hardware really only does playback. We've been doing software audio since around the turn of the century.

In Chrome's implementation, none of the mixing, DSP, etc. go through the hardware, and I'm more than certain that's the case for every other browser out there.
Next step is to rank the participants, start making actual trades based on the top 50%, then ICO a coin promising a share of those profits for $30 million in ETH
Just from skimming the spec, the AudioWorklet interface looks very close to what is needed to build sensible, performant frameworks for audio profs and game designers.

So the most important question is: why isn't this interface implemented in any browser yet?

That a BufferSourceNode cannot be abused to generate precision oscillators isn't very enlightening.
I disagree.

Big companies are where they're going to buy the licenses because in those companies time is often more kmportnant than budget so you just buy stuff.

Another reason is that as soon as other teams become involved you get comments like "this bug is yours because you self compiled this thing", or "we have to buy the vendors version", etc etc. It's not logical and is basically arse covering. Buying the vendor version is an easy way to shoot down a whole category of stupid internal politics.
Photos of humans in an article about math are pretty useless but nevertheless I find it interesting that the article included a photo of the male collaborator, Saharon Shelah, and another male mathematician, but not one of the female collaborator, Maryanthe Malliaris.
Butterick’s Practical Typography
As soon as I heard about this hack (last friday?), the first thing I did was sign up for LifeLock and set up my accounts. LifeLock was being hammered at the time, but I got thru.

When I got home, I then put freezes thru "the big three", then after reading a couple of articles, on Sunday I put freezes in with Innovis and ChexSystems. I also ran my credit report using TransUnion (leaving me with two more runs from the other two during the year).

That's basically all you can do. You can also do this, I suppose:

https://www.zanderins.com/idtheft2

I've read anecdotes saying that it's legit and good insurance (but LifeLock already offers a similar thing on the level I signed up for).

I guess part of what I am saying is that the story broke, and there was a small rush, but I got in - then when Monday rolled around and the story grew legs - well, we're now seeing DDOS-like failures...
I am not justifying this, but I suspect they are putting out fires and being hammered with loads of traffic.

I kinda feel sorry for the people in the trenches who had nothing to do with this. So much overtime and stress.

Anyhow, this doesn't excuse them, nor absolve them. I'm not sure if I'd have the moral fortitude to quit, where I just a peon there.
It's interesting to consider how many things you believe at your core that you can't easily connect back to rationalism. Most western cultural values are ahistorical and disconnected from any modern notion of biological imperative.
I'm not sure about that, unless you're conflating libertarians with anarcho-capitalists. Minarchist libertarians would actually consider that making free trade possible through military might is in the purview of the state.
Which is often another ways of saying "This government program is poorly-run. So lets double it!".
Never been to the States, but from half a world away and just by reading on reddit about it it all looked more like people were making fun of said meth-addicts, they (the redditors making the jokes) didn't seem to care that much about those meth addicts. This was all happening about 3-4 years ago, I'd say, and it's in very sharp contrast with the present-day opiate-related discussions which can get pretty personal. It's also interesting that the HN crowd has also joined the opiates conversation, I don't remember reading anything about the meth epidemic in the past on HN.
What Not to Do: Instagram Marketing Mistakes to Avoid
> The stereotypical left-wing position is, "This government program should be left alone, even if it's poorly-run"

Think it's more like "Lets spend more money to fix it".
follow up to https://news.ycombinator.com/item?id=15243477
This doesn't have anything to do with Marxism. The notion that people might have ulterior motives is as old as the hills.

The actual Karl Marx, on the other hand, didn't think that people's beliefs were determined by their social class. Rather that their behavior was ultimately determined by their social class regardless of any personal beliefs.

It's true that free trade in principle doesn't benefit large companies. But in principle, it doesn't hurt them either. Free trade and largeness can be largely orthogonal issues. And so can largeness and market power.
Good React Modals
That's using the output of the compressor to drive another node. A sidechain compressor has two inputs.
Captured weapons is not evidence of direct supply. ISIS uses all kinds of american and russian weapons, but it doesn't mean it is supported by those countries.
If it's for my own programs, I use pipe (|) separated values.
They're visually appropriate and even less likely than tabs.
If we press enough, though, the evidence in question turns out to be divine revelation and the axiom that it genuinely happened.
The New York Times article they're using as their source doesn't say that, however. The article is also from 2012, and not dealing with the CIA's later program to arm rebels (which I believe started in 2013):

> Most of the arms shipped at the behest of Saudi Arabia and Qatar to supply Syrian rebel groups fighting the government of Bashar al-Assad are going to hard-line Islamic jihadists, and not the more secular opposition groups that the West wants to bolster, according to American officials and Middle Eastern diplomats.

...

> The United States is not sending arms directly to the Syrian opposition. Instead, it is providing intelligence and other support for shipments of secondhand light weapons like rifles and grenades into Syria, mainly orchestrated from Saudi Arabia and Qatar. The reports indicate that the shipments organized from Qatar, in particular, are largely going to hard-line Islamists.

The only mention of al Qaeda in the New York Times article is this:

> The disorganization is strengthening the hand of Islamic extremist groups in Syria, some with ties or affiliations with Al Qaeda, he said: “The longer this goes on, the more likely those groups will gain strength.”
It would be interesting to know for different types of software developers, embedded, front end, scientific etc. Sometimes 20% seems high to me, but I only work at one company so I'm sure I'm missing something.
Why would the left-wing not want to improve a poorly run program?
If they favor free trade and redistribution of wealth, then they're still able to be libertarians.

Libertarianism and globalism are not mutually exclusive. There's a whole spectrum of libertarians from anarcho-capitalists to libertarian socialists (I'm somewhere in the middle-left, I'd reckon). The unifying trait is the belief that individual freedom is paramount.
The real problem here is that cars are permitted in a park.
In the West, communists don't have to worry about being banned from the internet because, at least to my knowledge, they don't believe in racial supremacy and support systemic extermination of other races. Unlike, you know, Nazis.

It is interesting you bring up the higher body count of Communists in the 20th century. The only reason Nazis didn't get to exterminate more people is because America entered the war and the Allies won as a result. Make no mistake though: if Germany had won, Hitler would have moved on to people of other races. After all, he believed the Aryan race to be far superior to others, including non-German whites.
I'm a centos user, not fedora, but from various threads here and elsewhere I gather that most people agree upgrading fedora was a garbage fire up until like 20 or something and since then it's been fantastic.
I can't tell if your being pedantic because you agree with the parent, or because you missed their point entirely
If you want to look at a historical perspective when there were more women that men in the computing industry, you got to go back much further than the 80s and much closer to the 50s.

There was one interesting thing happening 1975 however. The US stopped sending millions of young men away from the work force and fight in Vietnam, often to never return. After 1975 the school system also had a massive intake of male students, both old and new. Young men was not sent to die, and old men who survived the forced military draft was given an opportunity to study.

Maybe a coincident, but that match quite well the census data. When there was wars, women had a upwards trend in the computing industry. When there was peace there is a slight delay for education to catch up and then more men enters the work force.
You're missing that not everything has to be a breakthrough. Sometimes fun research experiments are just cool and fun. I didn't get the impression that they were overselling the research.
Martin Shkreli jailed for offering bounty for Hillary Clinton's hair
Audio controllers do at least do hardware-accelerated decoding of audio streams in e.g. H.264, though, yes?

But my question was more like: is Web Audio a mess mostly because it's an attempt to expose the features of the twenty-odd different OS audio backends on Windows/Mac/Linux, where the odd inclusions and exclusions map to the things that all the OS audio backends happen to share that Chrome can then expose?
I wrote one that parses the help desk tickets for IDs and spits out the SQL, bash, and vi commands that I use to resolve them. That way I only have to deal with the hiccups and typos.

I wrote one to rename my 300 DBVisualizer connections so I could get to them by typing the initials of the server and database. It also put the department number on the end. I wasn't good enough to parse the XML so I just went through line by line.
Slack says farewell to the username
Yeah, I think the motivation for `' is for markup too.
I'm pretty sure they've been recommended in GNU info and groff for that reason.
Chalmers argument is that all physical explanations leave out consciousness, therefore a p-zombie world is logically possible. You just have a physical world that's lacking consciousness.

Keep in mind that Chalmers is a property dualist who thinks there is some additional law of nature binding consciousness with informationally rich physical processes (not necessary brain activity).
Electron: The Bad Parts
Probably they just need to add a Donate button for people who wants give more than license fee only.
Off-topic, but thanks for Cakewalk! I got started making music on Cakewalk 5, and it's been a ride ever since.
>All this horrible complexity could have been avoided if we could just write

Only if there was no chance of unbalanced quotes to need to be in the string.
I upvoted you.

My apologies.
I'm not dead yet.
People who understand capitalism tend to be entrepreneurs, as they understand the rules of the game. But capitalism does not equal economics. I would even venture to say that people who consider themselves capitalists have a woefully limited view of the field of economics, and a general misunderstanding of the origins of money, markets, and debt. Although they certainly can do a good job of making profits within the mess of an economic/political system that we currently have to endure.
You may be right, but what is libertarian idea of maritime trade in hostile world and how would a free market established in such circumstances.

(I am not asking for full answer.. you can point me books or links)
(off topic sorry) but how about a better kite? A Revolution 4 line is an amazing kite, and stupidly fun to play with and brilliant to watch. And can be launched alone. Highly recommend them, example video -
https://youtu.be/sPSyuvCJF4M

So much can (and will) go wrong with an rc plane - another alternative would be a quad?
Upvoted. My bad.
To generalize, businessmen feel that free trade is great for every other business, but their business is special and should be enshrined as a government enforced monopoly :-)
This is going to sound terrible, but it sounds like that may have been a needed sacrifice to prevent damage to others homes. Your parents house would have just been destroyed by the forest fire instead if they hadn't done anything. Did they let the back burner get out of control or something?
Pretty much, but not in the sense that you mean. CentOS does the right thing in keeping a clean room.

However, it's theatre to insist that RHEL as distributed need not self host. (I am on RHEL engineering, and fought unsuccessfully to include some package in RHEL6---unsuccessfully because "customers don't need it"---only to see it included in RHEL7 because some customer requested it...)

That said, it's a dozen packages so it's not a huge deal.
I wonder if the clojure devs use these techniques. IIRC clojure relies a lot on reflection.
Even so person capable of keeping software secure can as well tell you how secure it is while selling bugs in said software to 3 letter agency, some authoritarian state or basically anyone who have enough cash. Oh, I forgot that we don't call it black hat and this is totally legit business.

That safe cracker from example above would be ashamed, he couldn't even dream of something like that.
>The real reason is the culture of poverty.

That's a bold claim.
having some trouble handling edge cases is not dystopian

Uh.. Okay. What do you think a dystopia is?

In most literature it's a society that has a myopic view of people (ie, not dealing with edge cases) resulting in an oppressive society. One where fairness and free agency have been greatly curtailed by a stubborn insistence on a very simplistic view of the world.
Ask HN: Is Anybody Else NBA Fans?
Honestly I've been seeing `quote' in bash and other CLIs for my entire career and always thought they were just funny or strange, but carried no meaning.
There is actually an ASCII character that doesn't appear in strings, and is meant to be used as such a separator. Actually two of them, record (30) and unit separator (31).
Yes, I use a third party, and download tiles using MOBAC. Having my own cache was important when Google Maps removed pinyin for a couple of weeks.
Solar energy: Nigeria’s best shot at eradicating its electricity problem
It's easy to show that qualia exist. You have a red experience in seeing a ripe tomato. That redness is not part of the physical description of the tomatoe's surface, the photons bouncing off it, your eyes, or the neuronal activity in your nervous system as a result of seeing it. If you think it is, then you need to explain what it means for a tomato to be red without anyone seeing it, and how that redness gets into your brain, particularly since the color would have to be transmitted from tomato surface to electrons in your visual cortex. It gets worse for the other sensory modalities.

All of that leaves off the red experience. There is no red experience in the physical world of things anymore than a tomato actually has an objective smell or taste. Those are all mental and creature dependant (carrion likely smells and tastes wonderful to vultures but not humans).

Somehow, this is strongly correlated with perception and the brain, but how is a deep mystery. This isn't to deny the brain or the eye's role in experiencing red, only that we don't have an explanation for how the red experience is present, when none of those things (or processes) are objectively red.
An artificial intelligence observed a game being played and recreated it and you aren't impressed at all? Man, the future must be boring for people living in it.

Yes, the technique it uses only works for a certain space of possible games. That means there is an obvious path to increasing the size of that space.
That is true -- it's a very effective playbook to starve a program of funding and then argue it should be eliminated because "it doesn't work".
Maybe. It's a big park, 120 acres, and there is a hill on the non-lake perimeter that would make it difficult to construct adequate parking there.
I'm not sure there's a legal mechanism to do that.
Licensing is a typical regulation pushed by established businesses in order to limit the entry of new companies.
RHEL (and thus usually centos) and Ubuntu (not Sid, not debian stable) are the two distros that companies distribute for. It's rarely but occasionally important depending on what your doing with your computers.

As to why not to use CentOS/RHEL: they're not supported by half the companies that Ubuntu is so if you buy commercial software (indie video games at least) Ubuntu is the better option.
Why is that a stretch? Isn't that indeed the typical expectation?
Because of donations and assurances of bloc voting from the entities profiting from the inefficiencies and corruption, just like the other side.
YouTube is dominating mobile video
http://knowyourmeme.com/memes/profit

(source: https://www.youtube.com/watch?v=3zc4bGkU05o)

This was also popular in Slashdot comments.
https://en.wikipedia.org/wiki/The_Scheme_for_Full_Employment
Ugh.. Sorry, but an additional app is more of a distraction than a new tab for me.
The company that goes and builds this themselves instead of paying a small fee for it, would be a pretty stupid company haha...
Check out NeoVintageous [0]. It's the continuation of Vintageous and adds some great features.

[0] https://github.com/NeoVintageous/NeoVintageous
I quickly read your paper.

The only way in which technology entrepreneurs deviate from what you would expect, is in their support for more redistribution. But all these people are not paying normal taxes, anyway. Why would they care? Also if you consider the risk of political or economic instability, then even redistribution might just be a self-interested policy stance.