skysight-inc/HackerNews huggingface dataset:
Here's the Haskell equivalent for anyone curious (Beware of curry[0]!):

data Article = Article { title :: String
, author :: String
, tags :: [String]
} deriving (Show)

articles = [ Article "Functional Java" "James Gosling" ["functional"]
, Article "Practical java" "James Gosling" ["enterprise","architechture"]
, Article "Imperative Haskell" "Simon P Jones" ["imperative", "purely imperative"] ]

firstJavaArticle = headMay . filter (isInfixOf "Java" . title)

allJavaArticles = filter (isInfixOf "Java" . title)

groupArticlesByAuthor = groupBy ((==) `on` author)

distinctArticleTags = nub . join . map tags

Full working code example with code imports and type signatures:

import Data.List (isInfixOf, groupBy, nub)
import Safe (headMay)
import Data.Function (on)
import Control.Monad (join)

data Article = Article { title :: String
, author :: String
, tags :: [String]
} deriving (Show)

articles :: [Article]
articles = [ Article "Functional Java" "James Gosling" ["functional", "functional"]
, Article "Practical java" "James Gosling" ["enterprise","architechture"]
, Article "Imperative Haskell" "Simon P Jones" ["imperative", "purely imperative"] ]

firstJavaArticle :: [Article] -> Maybe Article
firstJavaArticle = headMay . filter (isInfixOf "Java" . title)

-- implemented in terms using allJavaArticles (NOTE: This IS performant in Haskell and IIUC due to stream fusion will only iterate once. Did not verify though.)
firstJavaArticle' :: [Article] -> Maybe Article
firstJavaArticle' = headMay . allJavaArticles

allJavaArticles :: [Article] -> [Article]
allJavaArticles = filter (isInfixOf "Java" . title)

groupArticlesByAuthor :: [Article] -> [[Article]]
groupArticlesByAuthor = groupBy ((==) `on` author)

distinctArticleTags :: [Article] -> [String]
distinctArticleTags = nub . join . map tags

main = undefined

0: http://en.wikipedia.org/wiki/Currying

http://tech.pro/tutorial/2011/functional-javascript-part-4-f....

https://www.haskell.org/haskellwiki/Currying
https://news.ycombinator.com/newsguidelines.html

> Anything that good hackers would find interesting. That includes more than hacking and startups. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual curiosity.

There was at least one Googler at my last retreat.
Great going Zomato
Truly amazing! I wonder what would happen to a large city like that if in a blackout for 3 days.
I would expect far more downvotes than that! Come on what's wrong with you "Hacker News". Only 1 downvote when I'm slammin' Apple for their shitty strategy? Surely some of you have at least some downvotes available to use against that!!!
How do you change yourself to love writing if you are currently someone for whom it feels futile and frustrating?
Charter schools may not be a panacea for low income neighborhoods. But there are a lot of low income parents who do really care and can devote time and energy to education. For those families, charter schools can change lives, so lets give them that option.
You're probably blocking social media and/or tracking on sites. If you access the site with none of that, the author's Twitter posts are seen on the blog post itself. If you are blocking it, you get the the plain text version with a link instead of the image. It's the equivalent of the alt attribute in for the <img> HTML tag.
Seems getting the climate-change deniers into government in Australia was just the test run.

This bodes ill for the future of renewables and carbon reduction.
One way I could see to make this more generic is to provide the errWriter strict with a function to call on the error if it's not nil, but i'm not familiar enough with Go to know how we'll thug might work.
Seems like a poor example - if you're building a product, you can easily afford the couple hours it takes to set up an EC2 image and autoscaling, dump a work item in SQS, and pick it up on an EC2 spot instance. And if you're doing video processing, you really really want to use a more efficient language than Javascript (like C) to handle the video processing. Combine the two of these and you'll get roughly a 100x cost saving over dumping a JS function into Amazon Lambda.

I see this being most useful if you have a one-off analytic you need to write against some big data in S3 or RDS. For one-off scripts dealing with the raw AWS APIs is just useless overhead, and the expense of running the script will be negligible.
No need to setup Node on an EC2 image, or boot the image, distribute data, launch multiple instances, etc.
Bletchley: the women's story
New Kingston HyperX Cloud II Headset Review (Cloud 2)
I'm not sure how those are supposed to be more human-oriented? I'll grant you "where" might be a slight improvement over "filter", but calling "map" "select"? I can't make sense of that even knowing what it's supposed to mean. If anything I'd assume it to be yet another synonym for filter.
Isn't it unilateral in the direction that hurts the employee? If your startup signs a no poaching agreement with Google. Now Google can't give you a higher salary offer.

I don't think I see how this would not hurt the employees. Seems like a classic startup management move that screws over the employees who are already taking pay cuts and huge life risks to make the startup successful.
Thanks for the comments, those services are free of charge (tax subsidied?)

What I'm planning is more of private service and to charge those using our service a small amount, think 10 USD monthly (2 Big Macs price and 20,000 Colombian pesos)
Maybe is not an error-handling mechanism because it doesn't report any error message. I don't know why Haskell programmers think it's any good for reporting errors.

You could use Either, but it doesn't give you any guarantee that you'll get a string back, and the naming is lousy. (Left and Right? Really? I know there's a mnemomic, but we can do better than that.)

So, might as write your own ADT and name it right.

(Also, a real error-reporting mechanism should support cause chaining so you can see the dependencies; you can sort of do it with string concatenation but it gets awkward after a few levels.)
Each event is processed individually so thousands of functions can run in parallel and performance remains consistently high regardless of the frequency of events.

http://aws.amazon.com/lambda/

Now we're talking. If you can carve your application into small, independent tasks, Lambda can run thousands of them in parallel.

This could be cost-effective if you have a large amount of data stored in small chunks in S3, and you need to query it or transform it sporadically.

So instead of keeping terabytes of logs or transactions in Hadoop or Spark on hundreds of machines, keep the data in 100 MB chunks in S3. Then map-reduce with Lambda.

Set up one web server to track chunks and tasks, have each Lambda instance get tasks from the server. You could effectively spin up thousands of cores for a few minutes and only pay for the minutes you use.
Off topic, does anyone know how the prison contracts tend to be priced? I wonder if any prisons have bonus payments for inmates who don't re-offend? It seems a prison is better off keeping their population criminalised to drum up maximum return business. Whereas it would seem logical for authorities to have payment set where housing prisoners a loss leader to producing functional citizens, at which the real bonus payments kick in.

I think if the payment system shifted to this we would see better prison conditions improve fast and much more education focus... or is something like this in play already?
Data in the Shell (2011)
"AWS outage" can mean various things, but there are and have been AZ-wide outages, and given the difficulties of replication and redundancy, there are services which are located (or reliant on -- even if unintentionally) a single AZ.

So yes, much online infrastructure _does_ have AWS dependencies. Sometimes (by way of secondary services) in ways that the operators of the service itself may not be directly aware.
Just curious, why are you posting this? Is there a point you're trying to make?
Absolutely agree with you. The point is to let stuff going, to be in the present.
> And there are more jails and prisons than colleges and universities in this country

This seems reasonable to me, considering how people end up in jail and college, respectively.

College is something people generally go to voluntarily, with the consent of their family, and generally at a time when they are transitioning from living with the parents as a dependent to living as an independent adult. They are looking forward to their adult life, and putting childhood behind. They often seek a college away from their home region, as part of asserting their independence.

Most people who end up in jail didn't get there voluntarily. Sure, we could reduce the number of jails significantly. The majority of them are fairly small local facilities, serving a city or a county, and their population often is mostly people serving less than a year, or people who have not even been convicted yet but either could not make bail or are being held on charges too serious to allow bail. It would probably be more efficient to close all of those and move those prisoners to a few big facilities.

I don't think most of the affected prisoners would like that, though. It would make it a lot harder for their families to visit them. It would make it harder for those awaiting trial to meet with their lawyers.

I think it would be best if we had enough jails and prisons to allow most prisoners to be kept somewhere within a couple hours travel from their family, so that their spouse, kids, and friends can reasonably visit them every visiting day.
$70bil/2.2mil works out @ $31,818

There is societal value to housing criminals that pose a danger to society. I'm more than happy to have psychopaths locked away from my life. The question is how many of these people are actually dangerous, or would remain dangerous given some basic education and/or life support.
I linked a Haskell version above as well: https://news.ycombinator.com/item?id=8878421
Interesting... at first I did agree that the journaling and use of technology seemed to be a direct violation of the ground rules and defeating the purpose. But glancing over some of those logs, I can see how central they were for those students.

I'm definitely seeing some Gladwell's "10,000 hour" experts there. This is a very deep ocean of practice with which I have only the most passing level of acquaintance. It's interesting to imagine investing enough time to actually become adept at this, but hard to square with the reality that the business(es) demand 26 hours from every day.

I'm not sure I'd trade it for my time spent on HN, it doesn't sound nearly as entertaining!
What about this Haskell example doing the same tasks?

https://news.ycombinator.com/item?id=8878421
I think there are infinite ways to "meditate". Even coding "in the zone" could qualify as a form of meditation helping you to reach what they call enlightenment.

Focusing on something (chants, breath, nostrils, etc) seems to be a proven way for them to help you into reaching a meditative state of mind. You can either master these techniques or figure out others that work better for you.

I'm not an expert or anything so I could be totally wrong here. I'm just a dude who took the Silva Method courses about 10 years ago.
I was also wondering of using some drones with cameras and looking in certain patterns and with them continuously communicating through the center of operations. What do you say on this?
All this, just for an app that dims your screen (and adjusts the colors a tad)?
This is a pretty neat trick / feature to add on top of a microservice hosting platform like Amazon Lamba. Automatic serialization, uploading, and queuing of your microservice from a running application. Normally this is done manually with a source code upload or git push.

If anyone is interested in an alternate open-source microservice platform to AWS Lamba, try checking out http://hook.io http://github.com/bigcompany/hook.io

No hook.io users have requested this novel functionality that Lambdaws performs ( yet ), but I suspect we'll add it to hook.io in the future.
Can this be marked as spam? I read it, but there is nothing special AFAIK. A little waste of my time.
>> Looking to hear about things that don't exist, but should.

Girlfriend :)

On serious note,
1. TaskRabbit like service in India
2. Costly items on rent (say a watch or a laptop). It can be a marketplace where others are giving their products on rent and I am paying $30/month for the service. I can pay additional rental fees to the other party too. So this will be hybrid model of ebay + airbnb
MMh. Using toString to serialize a JS function breaks for some functions doesn't it:

https://github.com/mentum/lambdaws/blob/master/lib/LambdaHel...

It seems here is a discussion about the topic:
http://perfectionkills.com/state-of-function-decompilation-i...
Upvoted -- you got the tone of go exactly right. We're headed back to C#. Don't like religion in politics or programming languages.
OpenEEG is great, but getting pretty dated. Out much more recently is the OpenBCI project. http://openbci.com/
Wait, your saying this is a false flag attack by the US to fool the French government. And the US 'pretend' to kill a French policeman and don't expect the French to ever realise a real policeman never died....all this illusion after gunning down a bunch of journalists.... you need some lessons in logical reasoning.
Avoiding Robolectric Shock While Testing Android with Gradle and Espresso
Unless your business is making money, you won't have any employees or customers.

I can agree with your sentiment, but that's all it is I'm afraid, at least according to my experience.
You can remove the search bar by right-clicking on the menu and clicking 'Customize'.
Dark Sky when it worked was almost magic - it could predict precipitation to the minute. An alert would go off and you'd know you have 5 minutes to seek shelter before the rain started.. it was freakishly accurate.

The developers are an indie app store success story as well. Started the project on Kickstarter with a new way to present hyper-local weather data down to the minute, in an industry dominated by a few big players and conventional hourly forecasts based on region. Based somewhere in upstate NY if I recall too
When people say things like "Don't reinvent the wheel" and "Never implement your own crypto", it's generally understood that they mean "unless you have a really good reason for doing so and the budget and expertise to do it right." We don't actually say those things, because we don't want to turn casual conversations into legal documents; instead we trust in the readers' common sense.
Probably should have posted this link instead: http://prisonmap.com/

Edit: Pretty cool why/how he got satellite imagery of all 4,916 facilities (http://prisonmap.com/about)
What I find ironic is the symmetry, both the richest Americans and poorest live in "gated communities".
a) I don't see how a piece of software which has essentially not changed for twenty years is a "good example of stability". Stability in the face of what? Real software occupies a constantly changing world and TeX is sheltered from that by the surrounding third-party tools. TeX's stability would only be impressive of it were changing or growing while still retaining it's original functionality. Anybody can refuse to update a program and declare it to be stable - there's no lesson for me as an engineer, beyond just refusing to write code.

b) I don't understand this claim that TeX is bug free - there have been 947 documented bugs in TeX, with 427 of them occurring after TeX82. There was at least at least one bug in TeX found every year until 1995 and over a dozen have been found since then - in a code base which hasn't changed. The number of bugs in TeX as a percentage of the number of lines doesn't seem to be unusually low, and given that very little development has been done in the past 26 years, there has been very little chance of introducing new bugs. Once again, I'm not sure what I'm supposed to be learning from TeX as an engineer other than refusing to write code.

c) I'm not talking about clojure, I'm talking about TeX. I agree that there are few examples of fast, high quality typesetting software. But TeX is still slow - it does so much file I/O because it assumes a tiny amount of RAM. A modern rewrite could be 10 times faster, I reckon.

d) By definition it's a language that almost nobody is familiar with - and that's a problem. After some careful study, I am now familiar with it, but it's still very hard to read a program which is structured to be read as a book. Once cannot skim read the code or get a good understanding of its fundamental structure as a program. Instead one is always trapped in Knuth's narrative. I don't want to read a book - I want to read a program, and web makes that practically impossible. The end result is neither a program nor a book, and is unwieldy to programmer and reader alike - indeed, literate programming never caught on.

The software I really admire is software which has reacted to change, modernised, improved. Even Microsoft Windows is a great example of stability in the long run. TeX isn't, because it hasn't done any of those things. It still compiles - and its very good a typesetting - but as an exercise in writing code, it offers few relevant lessons to the modern programmer.
Having done this a few times from scratch for various companies, there a ton of moving pieces for almost any processing pipeline. Being able to scale that pipeline without writing the ops code to make it happen is actually magical. I'm not saying everyone should jump out and use this, but it takes a lot of work to:

(a) measure each of the points of your service
(b) deploy your code in an automated manner
(c) deploy your monitoring in an automated manner
(d) make sure your code is under supervision
(e) setup alerting on the monitoring
(f) scale up / down and within price constraints as needed
(g) repeat this for all supporting services (queue, db, etc)
(h) write your actual application code

The potential to handle certain classes of problems via SQS/SNS/S3 pipelines is pretty alluring. You still have to do configuration, but the bet is that the configuration necessary for the SQS/SNS/S3/Lambda pipeline is far lower than that necessary to setup random autoscaling Celery, Resque, or random JMS/AMQP system on top of Ubuntu with Chef/Puppet/whatever.
px is a size supposed to be fixed size in the eye of the beholder, but relative to the size and the density of the display.
Yes, and very annoying. I'm not even sure why this was added.
Spotify, but for movies.
Prisons are the symptom, not the disease. They are the visible end result of social policies. Those policies are dictated by an elected government. It far easier to criticize prisons than to address the beliefs that create them.

America lacks any proper mental health care for the poor, a political decision. America lacks proper treatment programs for drug addiction, a political decision. America prides itself on being "tough" on crime, a political decision. America is swamped in guns, turning many minor crimes into accidentally lethal encounters --> political.

The prison problem starts and ends with US politics.
Businesses that can't manage both at the same time should not exist at all. Bankruptcy and liquidation is a perfectly fine solution for businesses that can only break even by screwing their customers and/or employees. I wish more of them would take it.
It wants geolocation to sync to the sun in your region. Redshift on linux works the same way. The rest of the policy covers routine website features such as cookies, JS tracking, and third party libraries (email, alerts, etc).

But if you can use Redshift I don't see why you wouldn't. There is no central company collecting the data. Geo requests go directly to the appropriate service.

Anyhow, I thought the privacy policy was well written in English for people to understand.
CEO of Riskpulse here. I've been through all of the monetization trenches for weather software and we are now capitalizing on real demand in B2B/enterprise. If either of you guys ever want to connect to talk shop or (in)formally partner or share ideas, let me know: matt@riskpulse.com
To put things in perspective, the U.S. has the second largest incarceration rate in the world, behind only Seychelles, which is tiny enough to be statistically aberrant. Despite the many similarities of Canada to the U.S., Canada has just one sixth the number of people in prison. With this statistic in mind you'd think the lawless streets of Canada would be far more violent and dangerous than those of the U.S., but exactly the opposite is the case. Something strange is going on in the U.S..

The best theory I've seen put forth is that prison's are a booming for-profit industry in the U.S., and profits breed corruption. Consider the "Kids for Cash" scandal from a few years back in Pennsylvania.

http://en.wikipedia.org/wiki/Kids_for_cash_scandal

To sum up, a judge was found guilty of accepting bribes to sentence minors to a specific jail for minor offenses. The child incarceration rate was apparently not naturally high enough to support the prison, so steps were taken.

If a top to bottom examination of the U.S.'s justice system were made, there is little doubt that prison time is handed out more liberally than is warranted to deter and rehabilitate criminals. So, the fact that there are more prisons than colleges in your nation should seem alarming rather "reasonable".

I'm Canadian, and we're starting to see american style prisons, longer sentences, and a correspondingly higher incarceration rate with higher security prisons and, worst of all, proportionally more prisoners in solitary confinement. Our politicians make hay on being "tough on crime" even when all evidence suggests longer sentences provide no deterrent to first-time or repeat offenders. There is increasing evidence that solitary confinement, besides being inhumane, acts against the interests of rehabilitation. Canada, and many other nations as well, need to observe what's gone wrong in the U.S.'s justice system so that they can avoid making the same mistakes. In Canada, there were two private correctional facilities, but both have reverted to government control. This is good, but private prison companies continue to lobby the government for contract business. They must be denied. Private enterprises may be more efficient at many things, but the justice system must prioritize results and a lack of corruption above all else.
Maybe I missed it, but it should be mentioned that there are many variations of bisphenol: https://en.wikipedia.org/wiki/Bisphenol

Also worth noting that BPS was reported >10 years ago as producing endocrine disruption similar to BPA. I think it likely other bisphenol variants would do the same.

Part of the problem is not only the use of BP(A|S|.+) as plasticizers but also BP_ is a constituent of polycarbonates, epoxies and other industrially important materials.

The amount of free BP_ in a properly prepared and cured product is likely quite small, but heating, UV exposure, etc., can hasten decomposition or release of BP_. Used as plasticizer BP_ would be more easily transferred and ingested.

As others have said, the safest "plastic" containers are the low surface energy thermoplastics, polyethylene or polypropylene. They aren't pretty and clear like polycarbonate, but they are a whole lot less risky.
I imagine that corp dev would probably get enough info to determine if the company would be better off building or buying to get in whatever space they want to enter. What happens after that I suppose depends on the company.

The other side is if you could get enough information about customer acquisition or some of the metrics that govern the business, you could likely jump ahead of where you would be if you build from scratch without having to learn from time and experience.