skysight-inc/HackerNews huggingface dataset:
I grabbed a boilerplate[1] and read through it to produce a basic CRUD app for tracking mini libraries. mostly follow where the data flows through, and look up details on anything that looks like it could be doing a lot of stuff.

the gyst is, you have your state [Redux store] which is updated through reducer functions. Each reducer tracks the state for its part of the system, and is called with an action name+data when the state should change.

actions are called through a function, dispatch. it is typical to run a function as it's input, dispatch(makeAction()) where makeAction does things like make a REST request.

the state object is passed into React components as state and properties, which you can use for rendering HTML. to receive them, you register what you want from the reducers, and it is automagically passed in, and you can pass properties down to child components as HTML looking markup.

when something happens, like a user types into a text box, you call dispatch with the new text to be added to the state, which then gets reduced and passed into the next render call of the component, to update what's shown in the text box.

specific to that codebase, containers are top level components.

routing is done as a React component, where you render a tree of possible routes, pulling out variables as you go, to feed into the component/container leaves, and the matching route is rendered.

[1] https://github.com/choonkending/react-webpack-node
[2] https://github.com/jhedin/little-libraries
Great! We're exploring using it for the BioJulia project as a result of this HN post. Thanks for all your hard work.
Sounds like all of these could also be handled by a phone/watch instead of needing a device for each room.

For adding to shopping list, check out Amazon Dash.
They note that Amazon is "afraid of services that compare their prices with other stores".

It's more likely Amazon just doesn't see the value. Why would they want to pay a company to drive traffic to Amazon, only when Amazon's prices are lower? Otherwise, they actively drive traffic to their competitors? Amazon is not in dire need of traffic, and with their algorithmic pricing, information is an advantage.

Perhaps there is a business case that can be made. But, OTOH, it doesn't strike me as irrational that Amazon would rather not.
How does it know if I'm driving, or merely a passenger? This seems impossible.
Assuming a fixed fee per prisoner-day, for a commercial prison, overcrowding is the boon.

I would also hope a commercial prison would be fined if inmates die while in its care.
That might be true for Bitstrips but not for Bitmoji, which is by the same company as indicated in the article.
> Under the hood, it's implemented by taking a script written in a "DSL" (it's actually Groovy code)

It's Groovy code? The announcement page doesn't mention "Groovy" anywhere, let alone "Apache Groovy" which is what the backers of Groovy are meant to refer to it as since last November (2015) when it was promoted from the Apache incubator by the ASF.
It helps a little in the code organization, however, it creates new problems.

It makes deep nested code hard or impossible to reuse. It tightly couples style and markup, so a change in the latter can break the former, etc.

So while it is a nice feature to have, I'd recommend using it scarcely and with great care.
> Are you suggesting movie studios release uncut films and let the audience pick the rating?

Yes, that was the intent, actually. It's also included in the repository's documentation. But I see that it has been poorly communicated.
Steve would’ve nitpicked too, so:

https://github.com/jorge-sanz/tribute-page/blob/gh-pages/css...
They got it the ai right. It figured in only few minutes we are just monkeys:)
I'm glad that you like the idea.

Here's the official privacy policy: http://roadrules.co/terms/privacy.html

We're trying to maintain everyone's privacy while offering a helpful service. Some ways that we are doing that include

- In the app, the user has a white list to manage who can request location and availability data.
- Maintaining as much data on the phone as possible (versus sending it to the cloud).
Welp, what do you guys think about houdini?
Most of the population of Japan were sad, angry, and humiliated in 1945. They blamed traditional society (in general) for having failed them.

The result was that most people discarded traditional social value systems and customs on a wholesale basis. The traditional ways of interacting with others began to be seen as horribly old-fashioned, conservative, imperialist, stodgy, and above all profoundly unfashionable.

However, they failed to create a coherent new system of customs and values to replace the ones they discarded. The result was the atomization of society, the lack of the shared mores, norms, and contexts that traditionally produced the conditions necessary to find friendship.

Something very similar happened in California with the mass adoption of countercultural criticisms of traditional society in the 1960s and 1970s, which now manifests as a sort of pervasive social awkwardness and atomization.

The trend lags a few years behind Tokyo, but I imagine before too long, San Francisco too will have "rent-a-friend" services to fill the void created by the lack of shared social mores and customs that traditionally allowed people to make friends.
Recommended Reading for Startup Founders
The Garmin 235 is compelling.
> Wouldn't we actually need to be really, really sure this consequence was extremely unlikely?

No, because that would imply a level of predictive power that we do not have in climate science and economics. Basically, with the accuracy of prediction we currently have in those fields, it is impossible to be sure that the impact of climate change will be extremely unlikely to cause severe disruption of our civilization. And the key point is that that is true regardless of whether or not we spend trillions of dollars on trying to mitigate climate change.

So the only real choice we have is adaptation; any resources we spend on getting better at adapting to climate change will at least move us in a positive direction, whereas we can't be sure of that with regard to resources spent on attempts at mitigation. In order for adaptation to not be a rational response, we would have to be so sure that climate change was going to cause severe disruption that it was worth trying to mitigate the change even though we can't predict what specific actions would do that. In other words, we would have to be so desperate that it was worth trying whatever mitigations we could think of without even trying to predict their effects. Climate change alarmists would like us all to believe that we are that desperate, but the case for that does not stand up to scrutiny.

> If an asteroid had only a 50/50 chance of hitting Earth would we be wise to disregard it?

If an asteroid had a 50/50 chance of hitting the Earth, we would be able to predict that specific actions we could take could reduce that probability to something negligible, because we have very accurate predictive power with regard to the orbits of astronomical bodies, at least on the relevant timescales (years to decades). Given that, of course we would not be wise to disregard the prediction.

But, as above, that argument does not apply to the climate, because we can't predict the effects of any specific actions well enough to know how, or even if, they will reduce the probability of a severe disruption to our civilization.
> Unfortunately, in the first 24 hours of coming online, a coordinated attack by a subset of people exploited a vulnerability in Tay.

I think it just didn't get a coordinated attack like this. I'd guess this type of attack needs to happen close to launch to be a high percentage of it's interactions to influence it so strongly.
If you really want someone's ideas to be discredited, let them express them and then refute them in a debate like format. Let them get exposure and if their ideas are wrong or bad it will be evident to anyone who is listening.

Silencing people because "I don't like what they say" is wrong.
What I think you guys are really looking for is something like this: http://www.microsemi.com/products/audio-processing/home-auto.... Ambarella uses those in their IP Cameras designs, so it should be straight forward to integrate...
Isaac Newton's Recipe for Magical 'Philosopher's Stone' Rediscovered
politely disagree on the quality of the art. but considering they're emojis, there isn't much room to work with anyway
Gram Vikas Mantra is one effort for to reduce open defecation.

http://gramvikas.org/water-sanitation-mantra

here is his TED talk:
http://www.ted.com/talks/joe_madiath_better_toilets_better_l...
If you're going to respond, please stick to what I said instead of what you imagined. Thanks!
Read Krysta Svore's work out of Micosoft Research's once you get beyond the basics, especially the one on quantum deep learning.
The public seeing something as a -3 to 2 level of severity while scientists seeing something as a 9 or 11 seems to be the standard way science and public policy interact.

1. Scientists potentially find $somethingBad in the world.

2. The world mostly doesn't pay attention, especially if the $somethingBad makes someone money.

3. More scientists investigate and start fleshing out the $somethingBad as a genuine concern.

4. Industry related to $somethingBad dumps money into science that refutes $somethingBad. Such science seems to be unable to refute $somethingBad completely, so it start nit-picking and fostering doubt.

5. $somethingBad becomes a political issue, with industry calling for more study and focusing on doubting the severity of $somethingBad.

6. Hollywood makes a movie about $somethingBad. It wins an award despite taking creative liberties in describing $somethingBad. Those creative liberties are lampooned by those who don't think $somethingBad is real.

7. Politics either continues at step 5 or finally manages to pass some laws.

We've seen this with leaded gasoline, clean air/water, endangered species, tobacco, marijuana prohibition, asbestos, seatbelts, etc.

Maybe it's just the way democracy handles it. The downside is that scientists who overstate the case with conviction tend to garner more of the headlines.

The probabilistic truths of science just don't survive the onslaught of criticism from entrenched interests.
The yelling problem?
For what it's worth I have been prevented from going through other people's trash by the police.
> I rarely find unit tests catch any actual bugs

What kind of code are you writing? Sure, a Spring service that just integrates a bunch of other services is hard to test due to mocks galore, but any dense logic blocks should be moved to standalone, testable classes.

For my math libraries, Fibonacci compression algos, etc, I find the hundreds of unit tests invaluable. Add to that, in tools like SBT, "sbt ~testOnly com.MyTest" will rerun tests on every change, giving me feedback in under a second, rather than the whole dev/test cycle of save/restart_server/click_on_UI. Write unit tests for the tricky bits that will benefit from them.
This whole post is kinda laughable, so a mediocre bug-ridden key/value store is somewhat faster than an SQL database. Big deal, they're all slow.

LMDB has been tested on quite a lot of filesystems, not just ext.

http://symas.com/mdb/microbench/july/#sec11

And actually, LMDB was working fine back in the Froyo/Gingerbread days. I integrated it into XDAndroid way back then. http://forum.xda-developers.com/showthread.php?t=1171052 (By way of SQLightning.)

Never tested it on things like squashfs or whatnot though.
>Tell me which culture assigns names more than five years after birth!

In the United States of America it is common for females to change their name at marriage, substituting their birth surname for that of their husband.

Also, in many tribal cultures the definitive name is not assigned until an adulthood rite of passage has been passed.

Adult names also change to reflect upgrades in social status such as the completion of a PhD, admittance into a society, acquisition of nobility titles, etc.
> It was used for a week before the epidemic crested and forecasting stopped being of particular interest. There are papers I could have written instead.

True. But if you had written the papers, and Ebola hadn't crested, you might now be saying, "There were lives I could have saved instead". Not knowing what the future was, you chose well.
LetsEncrypt certificates are now compatible with Windows XP
But presumably you could have the Pi listen for a trigger word or whistle or whatever using software running locally, and when triggered, kick over to the Alexa API?
Also the firms with better algorithms and cheaper management fees will make their customers more money. If the upstarts can do that, then they will win.
https://en.wikipedia.org/wiki/SQL_Slammer (2003) was pretty close.
> "I am inclined to organize something similar in San Francisco for tourists from across the world - meet new people and show them around for free (showing off your local pride)."

I've not used the service yet, but I get the impression this is often what happens with Couchsurfing, is this something you'd be interested in trying?
What this comment fails to understand is that I was explaining mathematical models for sexual reproduction to an audience who might otherwise be unfamiliar with it. Any inference that I was making claims about the relative efficacy of sex is sorely mistaken.

Finally, this house would like to remind the honorable gentleman that he is invited to comport himself in a civil manner.
Just because the line isn't clear, and shifts depending on societal norms, that doesn't mean that it can just be ignored.

If a radically conservative tech conference feels that attendees would fear for their safety around gay marriage advocates then sure, they should ban them. I'm guessing that they'll find this counterproductive and other tech conferences will take up their slack but it's their choice.
I understand this perspective, and I've succumbed to the same sort of pressure in the past, but doesn't it feel like you actually end up losing net time in the long run by doing this?

I mean, you save a bit of time up-front to hit a deadline but then you have to spent hours of frantic debugging when you should be sleeping to rerun a slightly modified benchmark for some other deadline. Or somebody suggests a good idea that you can't test quickly because the code is a mess. And then you either spend a bunch of extra time on it or pass on something that should have been easy because it wasn't.

I only worked on a CS research project as an undergrad, but there we had the same dynamic. On the one hand, it made sense not to spend too much time writing good code, automating benchmarks... etc. On the other we spent too much time chasing down stupid bugs as the project went on. I wouldn't be surprised that, had we been slightly calmer and more methodical up front, we'd have saved time overall that month if not in the same week.

And that's not counting how code like that makes research worse. Like, I see why writing a framework to optimize your benchmarks could be a waste of time, but it could also be the difference between running a bunch of tests to evaluate the project instead of just shoving the first ones we thought of into the paper because running more would take too much effort.

It's not unique to research either: I ran into exactly the same sort of tradeoff working at an early stage startup. We care about putting out features above all until things came tumbling down. Spending a week or two chasing down bugs and making new features more expensive was bad, but then again we did need to test things and establish product/market fit quickly...

My intuition is that this sort of pressure-based decisions end up a net loss of time even in the medium term, maybe even on the scale of weeks. But I don't know how to actually measure this sort of thing: we never measured how much time we spent on different tasks, and time is probably the wrong thing to measure anyhow. Debugging stupid code saps creative energy and lucidity even more than time, and how do I know what potential things didn't get done because the code was too ugly or, on the flip side, what things I could have had done in the time I spent making code better?

How do you deal with this sort of trade-off? I'm not being rhetorical in the least, by the way: I genuinely don't know. But I really feel that incentives are geared towards short-term benefits in a way that is simply worse overall even across relatively short time horizons.
I have a few Dash buttons, but it's SUPER limited what you can link them to. Plus I'd need hundreds of them:) The "Alexa, add XXXX to my shopping list" works really well for me.

I don't wear a watch around the house, and I don't really like smart watches honestly - I like big heavy metal automatics. Likewise I enjoy being able to leave my phone on the charger somewhere else. I dunno. I mean long term dream would be integrating things like "smart" mirrors, semi-smart AI-esque assistants, and so on. Then again, I'm currently in a zero-tech house on the beach in Costa Rica, with a barely there internet connection, so it's not like any of this is that important...
Evaluating product potential
Just going post post this xkcd comic.

https://xkcd.com/1357/

I didn't think Tay's tweets were a big deal. I didn't think Microsoft's apology was either. But some people have a strong persecution complex and are offended that you can't make racist comments on Twitter.
It's weird how the news that agents of a foreign government were attempting to sabotage American infrastructure, which is -- I realize this is an antiquated notion nowadays -- an act of war, is received with shrugs and yawns and no real action. Imagine the screaming worldwide if hackers working for the CIA were breaking into Iranian dams and financial institutions.
I don't understand why our society thinks its ok to treat people this way just because they've been convicted of a crime. Being removed from society and put in jail IS the punishment. Why does society suddenly see these people as no longer human, trash that can be dealt with any way, packed like sardines, left helpless to be raped and murdered?

Yes, some of these people have done unspeakable things, but they are being punished already. Does society itself need to continue to do unspeakable things to those convicted? Honestly, I thought we were beyond that, but I guess not. Is it any wonder that we accept torture of foreigners now when we've always accepted torture of citizens?
But all the lisp people always talk about how incredible it is that one can have all sorts of DSLs....
Working towards a rule to distinguish between magic and powerful would be interesting and I for one would like to see some of HN take some swings here.

On first pass I'm having issues imagining a specific function that would be part of a standard library that is sufficiently magic that it warrants avoiding. Learning is just a part of programming. Something that initially seems like magic can quickly becomes one of your favorite hammers and make you more productive (just found reduce-kv the other day, it's awesome). If it's in the standard library then at least being able to use it seems wise. Note I'm not saying one should or could reasonably be demanded to know everything about the standard library, but rather that being asked to know something in it going forward from a point is likely reasonable.

Magic tends to live in side-effect heavy libraries and frameworks. Rails is full of magic that can make you very productive for specific tasks, but learning all the magic takes a lot of time and the incantations are not necessarily generalizable so when you switch over to Django or Node you need to go learn new magic, or sometimes the magic your looking for doesn't exist anymore and you need to learn what was actually happening (this happened to me switching from Rails to Django, I forget what in particular but it was somewhat jarring realizing how much I had been taking for granted). Learning something like map will translate even if the literal syntax doesn't, knowing and relying on x-many separate opt-args for defining an ActiveRecord relationship to save explicitly typing a dozen lines might be magic not worth it especially if the whole team has to know.

Edit: Just wanted to add that although I took a shot at a rough distinction I want to clarify that I am not suggesting that I have the correct answer, I only hope to elicit the thoughts of better thinkers and posters.
Wrote this bit more as a way to structure my thoughts than anything else, but let me know what you think. Open to any suggestions for improvement.
> In the rarefied atmosphere of academia, [spaghetti code] is generally good enough. For commercial applications, though, it is intolerable.

Whoever wrote that article doesn't know what really goes on in commercial IT outfits. A lot of business code gets written by "programmers" who lied on their CV's, unit tested by the business users after roll out, and programmers come in on after-hours callouts for years afterwards to "firm up the business requirements".
Had no idea the slope was this slippery. Apparently you can go from choosing to not participate at a conference because an invited speaker harbors racist views to being in support of pogroms and blacklists.
This is a news website article about a scientific paper (2010)
Alone != lonely
About 10 years ago, I remember people were incredibly offended when they couldn't describe negative things as "gay" anymore.
Say Hello to Docker for Mac
nifty! Are there any parts of latex you don't support yet?
For what it's worth, the pseudonym Kemuri is Japanese for smoke.

There was a recent incident in the UK where too much chlorine was added to the water supply, leaving it unsafe even for washing. I wonder if it's connected?

http://www.bbc.co.uk/news/uk-england-derbyshire-35786378
Who needs code organization when Inspect Element gives you the filename and line-number, and all editors have Control-F :)

You can edit minified code if you've had enough coffee!
I would also apologize. Even though I had done nothing wrong. That's just the world we live in now. He (I assume, sorry) and I are personally offended and outraged because that is wrong. We shouldn't be doing this. We should just explain what happened. It's frustrating to see this behavior become so commonplace. We should just not be racist and not appologize. Otherwise wtf is reality.
It's probably Snapchat equity instead of cash.
Forget smart watches, I have yet to use a smart phone that doesn't fail the 3-second rule on nearly every task. Often it's 5 seconds of waiting for the phone to catch up between each and every action (each tap, swipe, etc.), so that just loading a website takes a full minute (plus the time actually required download the requisite data). Half the time, if I'm at home, I'll start doing something on my phone and then decide that walking into the other room to do it on my laptop is going to be faster than waiting for the phone.

I've only used Androids. Is it any better in iOS land?
i look forward to hearing an explanation as to how snapchat will make this purchase produce at least 100MM in revenue
Yep. You'd think this kind of thing would be considered significant enough to mention, but apparently not. They do mention it in the "tutorial", which AFAICT constitutes the entirety of the official documentation: https://github.com/jenkinsci/workflow-plugin/blob/master/TUT...

> A pipeline is a Groovy script that tells Jenkins what to do when your Pipeline is run.
The Amazon store card issued by GE Capital is 5% back.
The Internet Archive is one of the finest institutions of the Internet. The Archive is a not-for-profit and deserves your financial contributions and support. The proposed change to DCMA Copyright Takedowns rules would help resolve existing problems and ambiguities.