skysight-inc/HackerNews huggingface dataset:
Typically with monadic code, a function with an underscore at the end of its name discards it's effect. For example, the function mapM maps a function over a list, i.e.

mapM :: Monad m => (a -> m b) -> [a] -> m [b]

it returns the result of the computation. But sometimes you want to iterate over a list but discard the result (say you're printing elements.) mapM_ discards the result:

mapM_ :: Monad m => (a -> m b) -> [a] -> m ()

where () denotes a kind of "null type".

So if you want to store the results in a new list, you use mapM, but if you don't, and just want the "effects", you use mapM_.

Here's an example of each, using the IO monad. If I have a list of numbers, and I want to iterate through each one and prompt the user for a multiplier, I would write the code like this:

main = do
let numbers = [1.. 10]
numbers' <- forM numbers $ \n -> do
putStrLn "Enter a multiplier"
a <- getLine
return $ n * (read a :: Int)

where forM is just mapM with the arguments reversed to look more like a for-loop. Here I want the results of the computation, so I use forM. If, however I want to just print the numbers out, I'd use forM_

main = do
let numbers = [1.. 10]
forM_ numbers $ \n -> do
putStrLn (show n)
Live Maine Power Outage Maps in D3 (County & Town)
A good way to account for this is to look at year-over-year change. It looks like on Dec 25 last year, they took a 13% hit[1]. So it appears that their 60% hit today should be tempered a bit, to account for this. Even still, I think we can say that this is a very bad day for Rap Genius - especially when you consider that they have a lot of artificial publicity due to the currently unfolding scandal.

[1] https://www.dropbox.com/s/lidlugtdycdrrnx/Screenshot%202013-...
Can someone explain why this is a topic worthy of discussion? I get that they had a SEO tactic, Google penalized them, they offered an empty apology for it, and now we're up to the present.

Stating the obvious of "traffic drops when Google penalizes you" seems like a "sun rose again today"-type story.
"...on explaining Religion to Techies" deserves a creation myth. Please help me to get this correct:

Day 1: Edison invents electricity

Day 2: Atari invented Pong

Day 3: Intel invented the CPU

Day 4: IBM invented the PC

Day 5: Bill Gates gave birth to Windows

Day 6: Al Gore invented the internet
I feel like this might be his pet project to learn how a framework works and is not meant as a production ready framework. It doesn't do media queries for browser size nor does it have very much in the way of components. Probably would be more appropriate on a sub-reddit with some better title like "Learning how CSS frameworks work. Pointers?"
How to detect a Christmas Tree?
The flow is not very simple, since the protocol is very complex. You are overall correct in that usually the PIN does not get sent off the card terminal (I'm not sure about never) What happens is that the PIN is sent to the card (usually plain-text, though it can be encrypted if card and terminal support it. An MITM attacker can downgrade this though). The card then reterns a plaintext 'yes' or 'no' to the pin being correct. If the pin is correct then it also sets a bit inside the MACed message which is sent to the banks indicating 'correct PIN entered'.

However, since the PIN is not required for all transactions, it used to be possible (and may stiil be possible on some banks) to MITM attack this exchange in order to complete a transaction which the terminal thinks was PIN authorised but the card thinks was not, and the upshot being you could enter whatever pin you wanted and the transaction would go through.

For more information, you can look up the EMV specification at http://www.emvco.com/specifications.aspx?id=223 (which is a huge slog to read, and there are many proprietary extensions). For the specific attack I mentioned, you can google 'chip and pin is broken'.
Sounds amazing!
It looks like this is because all the stats aren't in for December 25th yet. If you look at other sites, they also have a slant. It didn't look like last year Christmas traffic had much of an effect on numbers, so I will credit this to information not being complete yet.
What if the audience to whom you're explaining is non-techie and areligious?
The next top result for lyrics thats 'Quantified' on that site: https://www.quantcast.com/lyricsfreak.com?qcLocale=en_US shows a slight drop.

Edit: Google Trends for 'lyrics' the past month http://www.google.com/trends/explore#q=lyrics&date=today%201...
I think if a new social network came out, that had a bare bones layout, and just had Events/Pages/Friends then that would come in and dominate again.

As soon as they start trying to be too big and do too much they lose their edge.
They're on page 7 for their brand name. Christmas probably had little to do with that drop.

https://www.google.com/search?q=rap+genius&oq=rap+genius&aqs...
OT but how do lyrics sites handle copyright issues?
eh i think this falls into the category of "if you don't care don't click the link". some people are interested in stats...
Hah - if I didn't socialize with people who have views in which I'm not interested, I wouldn't have any friends! (And vice verse, as I'm sure that I can be just as obnoxious in just the same way to other people.) Building communities doesn't have to be about creating echo chambers in which you can only interact with members of the same social class, educational background, income profile, political leanings, race, sexual orientation/gender identity, et cetera. In fact, I would argue that What's Wrong With America Today(tm) is how people tend to emphasize their differences instead of politely agreeing to disagree.
When Intel are saying they want to "promote cross-platform HTML5 app development - for all platforms, not just Intel's", I'm wondering if what they are really saying is they're not fans of the current processor-specific native apps (because they are compiled for ARM, not Intel CPUs), and they are trying to stop that avalanche before it grows into a huge pile of legacy making it impossible to compete in the mobile/phone space with a non-ARM CPU?

How selfless of them ;)
Am I missing something basic or are comments like this reflective of a level of trust in government that borders on religious faith? Let me get this straight: Google search has risen to the level of infrastructure and, because of the ability for them to "make people's ideas, political positions, etc. essentially disappear.", we should have the government regulate internet search. Did I get that right? Yeah, 'cuz the government has no motivation in silencing unwanted political speech. Oh, and it also has a great track record of ensuring the free exchange of ideas, etc.
It'd be interesting to see which website(s) benefited from the diversion of this traffic.
On this site, you can see every story somebody has submitted or upvoted by going to their profile. The comments someone up/downvotes isn't available publicly, but I assume it's kept on the backend.

I think the noise in a simple upvote action is too much for any legal meaning though. You can't tell if somebody upvoted for agreement or humor (poe's law) or upvoted out of friendship (voting rings) with no cares at all.

On Facebook, we know their upvotes ("likes" they say) are used for tracking and manipulating everything you do — informing your news, tracking you across the webternet, logging your interests. But, there too, the upvote is ambiguous. If you upvote "X died" does it mean you like that they died or you you're showing compassion?

Now, with Slashdot moderation, user upvote could be more useful assuming the user isn't lying, but nothing supports slashdot-like moderation anywhere else. Ain't nobody got time for quantized sentiment decisions.
I think folks are interested to see how much the penalty hurts.
Teenagers are moving to Twitter? Really? Snapchat and whatsapp I can understand. But Twitter?
http://imgur.com/r/POLITIC/eB9I7yD
Lisp: moving the languge to meet the problem?
I wonder if some of you may be able to help me out. I recall reading something a few years ago and can't find the source. It was related to the advantages of Lisp, and the gist of it was; The extensible nature of Lisp allows the programmer to move the language toward the problem, as opposed to moving the problem to the language. I've always attributed this to a writing of Paul Graham, but after reviewing a few favorite essays of his, I wasn't able to find it. Another Lisp hacker I used to read was Richard Gabriel.

Although I don't code in Lisp, this idea profoundly shaped my personal development philosophy. As a professional Java developer, I started to focus on domain specific languages, api's, builder patterns, and fluent interfaces. As a result I tend to come up with 'unique' solutions to problems, and typically develop at a much higher velocity than my peers. This is my own estimation of course, so take it with a grain of salt :).
Having played a gamba in college, despite its obvious limitations due to the frets, you could play wicked multi string chords not possible on a cello. Sadly due to the gut strings it did not like air conditioning. Because it had frets I as a guitar/bass player could actually learn to play it reasonably well.
And on the seventh day, REST
I am a 24 year old male.

But, are you a 24 year old human male?

You are well-read, but are you well-red?

You don't need to be told to do things, but can you be told to do things, or are you too prideful to take direction?

Sadly, the only way to get people to believe you is "show, don't tell." Build/make/do then cry out "join me."
I've found that over time bullshitters who produce only noise are weeded out eventually, but there's also the opposite problem of actual producers stay so quiet that upper management has no idea who they are what they do, in which case it's good to demo your work to upper management whenever possible, even if not asked to, ask the top brass for time to show them something then give a quick demo explaining the business case of why that thing you created will change how the business operates for the better. This is especially joyful if you have a bullshit supervisor and you have to go around them to demo up, it makes clear to upper management that you create and maybe your supervisor just creates noise.
They usually looks like a "best". Or they are early employees. Anyway, they are not stupid.
OpenGameArt is a great resource for free art to get programmers get by: http://opengameart.org/
App Developers to See Another Fractionalized Market for Smart Wearable Apps
1+1=2[0]

Happy now?

[0] http://quod.lib.umich.edu/cgi/t/text/pageviewer-idx?c=umhist...
Counterpoint: we had a whole team of people seeming to fit your description, and I thought they were one of the most useful parts of our process. They mostly did sales support and product management, while also supporting and working closely with project managers. I suspect a lot of developers thought they were useless and over-promoted, but they weren't, their value was just not obvious to the developers. Now, you seem like you were in a good position to judge whether or not the guy you're talking about was actually useful, so it's likely that I just worked with a team that was good at this job, and you worked with one that wasn't, but (IMO) technical people are often too quick to judge the non- and only-partially- technical roles in the organization as being less useful than they really are.

Oh, also, if anybody's job is "produce documents", rather than "gain knowledge that can be communicated synchronously through conversation or asynchronously through text" then that's probably a smell. All those meetings after meetings are about the information, not the documentation.
I was able to finish a "game" in a single night. Search the app store for "Pee in the Dark" and you'll see the final result. I ended up spending a second night releasing an update a couple weeks later for updated icon and game center.

It's a pretty terrible game but I guess you just have to pick something that you think is a "terrible idea" and just get it done. I'm sort of ashamed of my work, but to just get something completed feels good. Not everything you do is going to be on your headstone :)
JS is a terrible language that nonetheless has wound up being everywhere. But despite its shortcomings as a language it is extremely flexible in what you can do (abuse) it with and that is probably its biggest advantage.
Well, yes, some of these I unfriend

But it's mostly people sharing from "Funny pages" that I mute, they're still great personally, but don't know how to use the tool.
Two things work:

• run your wrist under warm/hot water. That'll help for about five minutes. Not vey long, but it does help.

• sleep with these on (one for each hand, obviously): http://www.amazon.com/dp/B0057D7YWM

And lastly, take as much time off from work as possible. Don't injure yourself for the sake of advancing the needs of money grubbing, egotistical 20-somethings.
still way way too early to tell, lets take a look on the 28th before we all go making friends
Someone is really mad at women.
Your last statement about the quote is half true half "but other prog. lang. devs rarely write unit tests and even if they do they write integration tests that requires DB"

I found Spring libraries to be useful. I don't doubt there are people who abused it as well.
AdEspresso Makes Facebook Ad Optimization Easy For Small Businesses
Part of it might be Schadenfreude since HN does not seem to think much of RG.
This is not at all surprising, they did a dumb thing because they got desperate and greedy.

In the words of DMX, stop being greedy: http://rapgenius.com/Dmx-stop-being-greedy-lyrics

Also, as of right now they aren't showing up on google for "stop being greedy rap genius" https://www.google.com/search?q=stop+being+greedy+rap+genius
Hn story up votes are not visible to other users.
"In answer we have 15 months research @ 9 towns around the world = 1000 insights."

That's not a very big group for the UK to make such a statement
why is that? i assumed HN would like then since i remember a bunch of articles about RG being big RoR proponents
So, stop me if I'm crazy, but I thought vivid postmortems were actually valuable?
I learned this over a decade ago managing one of those old-fashioned "forums". A decent-sized and long lived one.

The secret to overall satisfaction (there will always be outliers) is a policy and approach of "opt-in".

We never tried to "break" anonymity. As people became comfortable with each other, they often shared personal contact information (mostly, privately). And because they were otherwise anonymous, they felt comfortable sharing and discussing matters they otherwise would not have. To everyone's benefit.

We had limits, and these were stated up front, and forum members felt invested in pointing them out and helping to enforce them (e.g. reporting serious violations) when necessary. Forum members also had input to the policy, both in ongoing suggestions as well as during periodic, publicly announced reviews.

People participated as much, or as little, as they wanted to. And they shared, both publicly and privately, what they wanted to. Private and orthogonal communication channels were, well, if not overtly encouraged, then certainly not discouraged -- although we would caution people about sharing too much too quickly.

Think about it. Take your time. "Opt in" to what you are comfortable with.

We ended up with a very loyal and long-standing community. And a significantly sized one, that did literally span the globe.

Now, from a mass commercial perspective, perhaps many people will find difficulty in how such policy and site is supposed to work, financially. And I'm not saying I have all the answers to that.

Nonetheless, "opt-in" still nags at me as the way to go.

When Facebook was more "opt-in", it was the hotness. Size and Grandma being on it (not to mention your parents -- argh!) may be one thing -- one deterrent.

But the loss of "opt-in", and an increasingly panopticon feel? That to me seems far worse.

Facebook should be improving opt-in and the ability to segregate into communities that have their own degrees of privacy.

Encourage people to meet and share -- on their own terms. Provide the venue.

Don't force it on them.
When you said "I'm in the same boat" I thought you meant making a gay dating site. I was like "smell my bacon" must be an innuendo for something.
Oh, you're right. For some reason I thought everybody had the 'saved stories' link public on their profile page. Did it used to be there and got taken away?
That's what science is. Stuff said by scientists, often referring to other stuff said by other scientists before.
Anyone notice that this reads more-or-less like a description of Steve Jobs?
Some dude was actually spamming people on twitter asking to buy the domains they received.
Why is Rap Genius afforded this coverage? There are a lot of SEO scammers out there and are punished as found. Reading through one of those TC articles it appears that they were interviewed on stage by TC during one of their events too. Why is a scammy link baity company given this importance?
If you can constrain yourself a reasonable OO system in Perl why can't you constrain yourself to a nice subset of the syntax?
I think that it's because they are not fans of their brogrammer antics. Read this thread for example (or any other Rap Genius thread on HN)

https://news.ycombinator.com/item?id=6904224

The original link that was deleted was this

http://aphyr.com/media/recruiters/rapgenius.txt
Not sure, but I'm sure it doesn't hurt that RG is a YC company.
In a Car-Culture Clash, It’s the Los Angeles Police vs. Pedestrians
one thing I struggle with emacs is that I can't find a place which documents the emacs way of doing things. Emacs has multitude of features, there are just too many to master, yet even to know that they exist.

One example would be rectangle select http://www.gnu.org/software/emacs/manual/html_node/emacs/Rec..., I absolutely love them - but till one of colleague introduced them to me, I had no idea they existed.
If OP was referring to Northern Ireland, then s/he should have said so, since "Ireland" generally refers to Ireland, and Ireland did secede, while NI did not.
I could see mixtapes.io being huge. I have a coworker who is super into that social music listening stuff, I bet that would be a great application for the name.
NSA Struggles to Make Sense of Flood of Surveillance Data
Fun, Modern, Sophisticated Adult Entertainment Platform Being Built in Boston
What do you mean exactly by 'making friends'?
Pretty sensitive, so somebody posted a mild criticism of fast food; what did they think would happen in an open forum? And what do they think they're going to do about it when they put it back up 'soon'?
This article is merely your subjective view on this matter. Also you don't even describe what's different at work and why yet you say you can focus better at home.
Small Gods is also a fun place to start.
It is interesting to see just how much it hurts a site like RG.
>Hardware: Mid-2007 MacBook Pro

Wouldn't it make more sense to do this on generic server hardware with a LTS Linux OS? Once that vintage and customized MacBook bites the dust the website pretty much dies as well.
RSA blinding seems to protect against timing attacks, how does RSA blinding protect against this acoustic attack?
You'd be surprised; you don't get to write your own headstone :)
What exactly did they do that google didn't like?
Presumably because they are playing and pushing the story to get more inbounds links and thus higher SEO.

The real story is that Google is incompetent and incapable of identifying these sorts of things unless a company is called out publicly on it. No wonder their search results are increasingly a disaster zone.
As a total aside, how do sites like Quantcast and Alexa get traffic information from other websites that they don't have code on? (or do they?) I feel like getting accurate traffic statistics on one's own website is tough enough.
It happened to me once but the upper management couldn't really care because it's a startup with no real business yet.

Also, later I found that although the upper management criticise about X privately but claims their support to X in public. I guess that the upper management could not admit that they made such a mistake, the whole company would lose their faith if it's officially confirmed that they have been wasting time for years.
I have really started considering JavaScript with KitKat as WebView uses Chromium engine in KitKat.

It is even better that Moto G (200$ device without contract) has KitKat already.
Seems like it to me, too. Didn't think of that.
What is it like to be a geek in a prison?
I personally know of a number of legitimate sites that were invariably affected due to content and blog farms harvesting their content when Google's panda algorithm rolled out.

Those penalties hurt a lot of good people!

Anyways, this one is a bit more complex than how much the penalty hurts, rather it's because, a well known and well funded start-up adopted shoddy traffic building practices that were unacceptable years ago, got caught and then had swift and targeted judgement bestowed upon them.

However much people understand that sometimes business needs to be conducted in a grey area, there is a certain amount of satisfaction when the system catches up and behaves fairly.
Three reasons:

1) The site itself isn't actually half bad, especially when compared to other lyrics sites.

2) They're a YC company, and took money from other big investors. This automatically makes them high-profile on places like HN.

3) The founders often publically act like douchebags, write emails with bad spelling, and generally seem to think that being cool is the most important part of running a startup. I suspect that this is just for show, but still, many people want to see them fail because of this. This article is about them failing, so it gets upvoted by those people.
I work with someone like this and he has 6 out of 7 of these habits/attributes. No speculation. I completely agree with this article in terms of perceived vs actual productivity. Coupled with that are perceived super skills, but which are actually quite novice. Just another framework jockey.

For the 7th, he is not an over-communicator - but has these hazy / fuzzy communications at stand up.
To be clear, when I say 'employees', I actually meant every person who works there - including both management and subordinates. It's tempting to assume that only the management is responsible for dictating what the working environment should be like, but ultimately, it's the people who you work with that determines whether the company is a fucked-up hellhole, or a productive nirvana.
What did I just read? I don't understand that exchange at all. So Rap Genius sent a corny email to this guy trying to hire him. And...?
>If your app is too easy to write it will be cloned and you won't make money from it anyway.

That's a bit oversimplification. First of all, writing in JavaScript doesn't make the app easier to clone, the programming language has very little effect on the easiness of cloning. Secondly, even if an application can be re-implemented quickly, doesn't mean one cannot make money from it. Twitter can be implemented in a single weekend, but that doesn't mean the Twitter-clone will be profitable.
For apps that just display content, sure. Those are essentially nothing more than glorified web apps.

For apps with specific functionalities, no way. A combination of Java (for Android) and Objective-C (for iOS) with potentially some C++ under the hood to easily share logic code between platforms. C and C++ are pretty much the only languages that run on all those platforms (out of the box). Obviously you can get any language running on any platform, given enough time.