skysight-inc/HackerNews huggingface dataset:
Yes thanks for pointing that out, I wrote a slightly faster version below. I took your advice and wanted just a single invoke on the C program, so I modified it to take an argument. I'm satisfied!

> cat arc4random-v2.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) {
if ( ! (argc == 1 || argc == 2) ) {
printf("usage: %s [n_output]\n", argv[0]);
} else {
int n_iter = (argc == 2) ? atoi(argv[1]) : 1;
for (int i = 0; i < n_iter; i++) {
printf("%u\n", arc4random());
}
}
return 0;
}

> ./arc4random 3
4282823399
333796506
762478899

> cat pwgen-v2.sh
#!/usr/bin/env bash
dict=/usr/share/dict/words
n=4 # of words to include in passphrase
nl=$(wc -l $dict | sed 's_[ \t]*\([0-9]*\).*_\1_')
fmt_flag() { echo $[$1 % $nl] | sed -n -e 's_^_-e _' -e 's_$_p_p' ; }
flags=$(./arc4random $n | while read -r i; do fmt_flag "$i"; done)
words=$(sed -n $flags < $dict)
echo $words

> time ./pwgen.sh
liparite evade retiringly spacious

real	0m0.268s
user	0m0.251s
sys	0m0.015s

> time ./pwgen-v2.sh
latherin prideling thumbscrew unraveled

real	0m0.082s
user	0m0.072s
sys	0m0.013s

EDIT: note that the single call to sed results in alphabetical/dictionary-dependent results... (!) oops
:) I see your point and I described what I think is the rationale behind. Yet, I believe there's a pretty big gap between hiding some content (that, btw, Quora owns) and robbing a bank. I believe the comparison between hiding content and creating fake one is more fair...
I was coming around to liking Quora before the login wall. After that, I put it on my google search block list.
I've seen lots of this brought up before as well. One things the ST shows really spend lots of time on is not exploring the society the show occurs in. And when it does it's internally inconsistent. Lots of questions are answered in the deep nerd lore about the universe, but you shouldn't need to buy canon reference books about some show to find out things like "replicators have trouble replicating heavier elements" so monetary instruments have to be produced out of non-replicable materials.

I think part of this is the need to have character driven stories. Which I'm basically fine with, but I really want to see more exploration of the universe the characters are in. Defining the rules of that universe helps establish the environment the characters have to operate in. With clever writing this can add extra flavor to the story.

This might be one of the reasons I like DS9 the best, they do a little bit of both, exploring the setting a bit (establishing internal and external politics, trade, war, alliances, factions, economics etc.) while having quite good character driven stories in this setting.

For example, the principle planet in the story, Bajor, needs to rebuild. The Federation offers to help by providing industrial replicators. There's an entire story about how the fairly few industrial replicators the Federation can provide drives a political story involving the remnants of the Bajoran freedom fighter/terrorists. It's not the best Sci-Fi ever written, but it's a pretty strong story and helps really define this corner of the universe with better granularity than 4 other series and better than a dozen moves did over hundreds of hours. Some questions are left unanswered, but you can make some assumptions like, why doesn't the Federation provide more replicators? Is there something about the technology that makes them hard to manufacture? Why can't replicators replicate other replicators? Perhaps there's some component that prevents that? etc.

It sets limits on the Federation's powers and logistics without using the typical plot device of introducing a more powerful alien or enemy or whatever.

Star Trek is Starfleet. There's such pitifully little information on the life of non-Starfleet folks...heck there's almost nothing produced on non-officers in Starfleet outside of Chief O'Brien. And he seems virtually indistinguishable from his officer colleagues except being a bit more badass than the normal space pajama wearing explorer.

Every once in a while the series touches on economics: transporter credits, or replicator limitations when buying a gift for a friend. But by and large it throws those glimpses away as soon as it shows them.

It's a huge missed opportunity for the shows; the life of civilians in the Federation. How do they get goods and services? What motivates them to work other than pure self-actualization. What about menial jobs? There's so much territory to explore, and it's never explored at all and instead we end up with more fan-service throw away romance episodes.
The other drugs are addictive.
If someone has a gun to your head you're not really in a position to set terms. What do you get at the end? A life.
Victory over Hitler was definitely not decided by US troops.

What's less clear is whether it was decided by US _trucks_ and the other material aid the US sent to the USSR during the war (e.g. pretty much all of the aviation fuel the USSR ended up using, a large fraction of their munitions, 2-3x the number of trucks the USSR produced during the war, large numbers of locomotives, etc).

As always, it's hard to figure out counterfactuals (e.g. if Russia had to build the 700k trucks they used during the war instead of the 200k they actually built, how many of the ~100k tanks they built would have remained unbuilt)? But the US, and to a lesser extent the UK, was significantly involved in the logistics of the Eastern Front, even though they had no troops there.
Hate scribd. Love Quora. Conflicted.
Interesting. You should link to the segments you are talking about. (Edit: I see you did now, sorry. Edit2: Wow, Ryan Sherlock has that KOM in Ireland and the KOM on Old La Honda in California. Nice work by a non-Protour rider!)

Amongst the questions that I thought it might be interesting to attack are the following..

I think you'll find many people are using Strava data to attack the problem of developing a model for maximal power output over time. Veloclinc[1] and DJConnel[2] are probably the best places to start for reading about this.

The "cleaning data" section surprised me. In my experience maybe 10% of (manually inspected) efforts have significant problems, but you seem to have thrown away a lot more than that on Col du Tourmalet and Alpe d’Huez. Stocking Lane looks roughly in the order I'd expect. Any idea what is going on there?

it is likely that a person will cycle a 15% gradient towards the end of a climb more slowly than the 15% near the beginning.

Not really. Judging your maximum speed on a climb is a significant problem and it goes both ways (especially on faster cyclists). Hence the "Chris Froome looking at his stem" meme[3] - he is notorious for climbing based on power output (which maximises your overall velocity).

Regarding altitude, you are best to look at the device the data came from. Phones are notorious for getting altitude data wrong, whereas Garmin devices are pretty good. Using Google data is mixed: the gradient of the road changes significantly depending what line you take, and that isn't replicated in Google's data.

Regarding your power equation, you realize Strava already does this (as power estimates), right? [4] is a pretty decent Javascript version. The problem is that it is very weight dependant, and getting an exact weight for a bike+rider+clothes is pretty hard from random Strava data.

[1] Hard to read, but eg: http://veloclinic.tumblr.com/post/85194606798/ward-smith-cp-...

[2] eg: http://djconnel.blogspot.com.au/2014/05/numerical-testing-of...

[3] http://chrisfroomelookingatstems.tumblr.com/

[4] http://www.kreuzotter.de/english/espeed.htm
In Eastern Europe it was (is, maybe, I haven't been there in a decade now or so), a social lubricant for _all_ the occasions. Birthday parties, any holidays -- state, unofficial, religious. Any business deal or venture. Birth of children, deaths, graduations. Celebrating buying a new car. Visiting someone for the first time. etc...etc... Any one of those are a reason to drink alcohol. Not just a reason to drink it, it is suspicious not to. Yes, it can be very mentally demanding to not drink. There is a constant barrage of offers (Oh just have a little shot. Just taste it. We are drinking for the health of so and so). I have family members back home that struggle with alcoholism. Those that are struggling are able to handle it pretty much just by avoiding most such functions. Cousin so and so is having a party? -- "Yeah, I'll just find some excuse to not go, as they will drink themselves stupid and I can't handle the nagging". Stuff like that. You go to visit someone for the first time, and you refuse a drink, that is borderline an insult to host. You gotta tell them it is under strict doctors' orders to get out of it. "It looks like you have a hangover? No problem. Guess what the cure is? -- Yap. More alcohol in the morning.". Stuff like that.
But visualizing is quite a ways from debugging.

To debug a program you actually verify that it's logic is correct (at least the good kind of debugging).

Consider a spectrum:

1. Natural language - we humans combine fragments of natural language easily and on an ad-hoc basis. We can get a fairly amount of use from reusing Shakespeare quotes and neologisms while spending rather little effort.

2. Trained programmers can reuse and combine general purpose libraries - with difficulty and often after considerable debugging.

3. AI algorithms like Neural Networks. These are just plopped in and tweaked, not combining seems possible.

It seem like "intelligent behavior" should be going more towards #1 but the process of Machine Learning seems to move things more towards #3. The "learn once, understand never" approach means that for each significant case, you'll need to do a re-tweaking and re-learning. The potential to get harder rather than easier over time might well be there.
HIV can cut and paste in the human genome
I think it's telling too that the vast majority of the fanfic I've seen seems to be fantasy romances between various characters rather than exploration plots or stabs at technical explanations or something non-banal.

Sure we get the Starfleet Technical Manual, but that was tossed as non-canon almost as soon as it hit the stores.
I did that, using Go and its channels feature. Not much code and works like a charm.
Such a comment would be acceptable, yeah. So long as we can tell they looked at it and thought "wow, that might go incredibly wrong"...
In some SE Asian countries having a long nail is used to clean yourself after going to the toilet.
The new features look promising. I'd also like to see UPDATE ... FROM. It's kludgy to achieve the equivalent of this in SQLite3.
You're making a lot of assumptions. There are a lot of people that just don't like the taste of alcohol. (Specifically beer).
I had the same issue with "fun" and people my age. I moved to a more easy going city and got involved with a non-tech scene, but kept my lucrative biz/tech side going.

You're incorrect about the legitimate institution looking better than experience though. No one cares what school you went to, it's all about what you've delivered in the industry. I've never seen anyone hired or promoted based on their schooling.
Are ecommerce businesses turning into logistics companies?
Not sure if you are being serious but... ever seen http://en.wikipedia.org/wiki/Alcoholism ?
According to the actual post, it was at least the last 2 times.
For those that might pass by this link without clicking, it's worth noting that it's a paper by Sergey Brin and Larry Page titled "The Anatomy of a Large-Scale Hypertextual Web Search Engine."

Looks like a great read. Thanks for posting!
We will be able to do direct brain input in the future, much better than running around in a holodeck, so we will be able to fool the brain entirely. Alcohol is not forbidden, just not permitted while on duty and not served on board ship. The problem with Bashir was that he was genetically enhanced to be superior. He wasn't just treated for a medical issue. The Maquis were renegade Federation not anti-Federation though, that seems hard to avoid, you can't please everyone. The Federation has no policy against succession and no walls to act as a prison. Anyone is free to come and go. You have access to all the resources needed to live. And it's not that no one ever commits a crime, just that it's exceptionally rare, not part of regular life.
It turns out, alcohol is actually more addictive than nearly all of the "other drugs", and it's one of the only drugs for which the withdrawal symptoms can be fatal.
You can make even more valuable connections by leveraging your portfolio and reaching out to industry leaders on blogs/twitter/github/email. If you're good, pretty much anyone will take a coffee with you if you send them a polite email.
> I'd have nothing but respect, but this is not what these people are about.

Presumably if they or their family members have struggled with alcoholism they wouldn't tell some stranger at a tech conference about it right after finishing talking about the latest trends in REST-ful API design.

Imagine the exchange.

* "-Yeah hateoas is totally not worth it, we tried it and it was just a pain to implement without seeing any benefits"

* "-Let me get buy you a beer"

* "-Nah, my father was an alcoholic who beat my mom and me growing up, he then left and killed himself. So yeah, I'll just pass".

* "-......<silence>....Yeah, cool, I'll just move over there to meet some friends. Nice talking to you."

Sometimes you won't know the true reason, you'll just hear a socially acceptable light cover. So don't always assume they are just prudish and conservative.

And well, actually there are a lot of people who just don't enjoy drinking. You know like there are some that don't enjoy pizza. They just don't. They like hamburgers better, always.
One makes the entire dye with a kind of dopant, creates a oxide layer above it, and remove the oxide where it should be doped again. Thus, I'd guess the difference in color is due to the different thickness of the oxide layer.
I've hired MANY excellent people who don't have degrees.
Well bunnie is Singaporean, and most if not all Singaporeans can speak Mandarin (not a linguist but Chinese is more of the language, and Mandarin the dialect, albeit the "official" dialect for the language).
As someone who drinks but gets to meet a lot of 'straight edge' people since I get involved in the punk scene and have been for quite a while. You'll be surprised how interesting, adventurous and far from conservative some of these people who don't drink or do drugs are.

In fact some of these people would argue that is you the one that's boring, the one that needs of external ideas because you can not come up with them your own, or that you're not brave enough to go in adventures or doing what you call take a risk if it wasn't for the booze/drugs.

Here's some lyrics from "Straight Edge" by Minor Threat
*
I'm a person just like you
But I've got better things to do
Than sit around and fuck my head
Hang out with the living dead
Snort white shit up my nose
Pass out at the shows
I don't even think about speed
That's something I just don't need
It may have some value, as App name strings must be absolutely unique (or was it always like that?)

You could try posting on flippa or apptopia.
That's what I'm thinking. Probably less trouble just to set up postgres at that point and not deal with unexpected troubles and complications.

But I hadn't thought of putting a server process in front of sqlite so thanks for the tip. It might come in handy at some point.
If someone told me they used to be an alcoholic and completely quit alcohol, I'd have nothing but respect, but this is not what these people are about.

What is the problem with people deciding not to drink for philosophical, religious, psychological or other reasons? While I embrace the philosophy "try anything once," I have a number of friends who don't drink for a variety of reasons and it doesn't impede my ability to enjoy their company or respect them as people. Their motivations are different from mine, and that's okay.
Wow. You are an idiot.
Being conservative with alcohol doesn't reasonably imply being conservative with everything else in life. Plus, alcohol does have many realistic potential dangers - so being somewhat cautious is appropriate.
I'm very curious about the same thing, if all the TL431 have the same layout. The two different TL431s in my article have the same layout, but don't match the schematics in the datasheets. I don't know if they changed the design in the past 26 years, or if there are different designs out there.

There's a small "TI" on the die, sideways above and to the right of the TLR431A text, which I assume is for Texas Instruments, but the lack of copyright is interesting. (I think chips are supposed to have a (M) for the mask.) Since I ordered the parts on eBay from China, I don't know who really manufactured them.
Social Psychological and Personality Science May 8, 2014

Worth Keeping but Not Exceeding: Asymmetric Consequences of Breaking Versus Exceeding Promises

Ayelet Gneezy1⇑
Nicholas Epley2

http://spp.sagepub.com/content/early/2014/05/08/194855061453...
That is awesome, and good for her getting a fun project done.

But I am curious, why is her age relevant?
Thank you very much. That's very generous of you.
"I still can't figure out what your "original point" is. Perhaps you meant the very first sentence you wrote. "It seems that dictators generally need to make enemies out of the world's democracies." I never did disagree with it, only that even non-dictatorships such as U.S. do it too. Almost without exception, those in power conjure external forces to ensure their own legitimacy, it's stupid to say only dictators did so."
Thickness makes sense due to the same phenomenon as Newton's rings.
This is what we call "projection". You may lie sometimes, and so you assume other people do as well.

Some of us don't. Personally, I don't have the room in my head for it; there far more important thing to try and remember, and trying to keep track of lies would eat up way to much wetware.

I make no claims as to frequency of non-lying - it be a rare trait. I have met a couple others, though, so "everybody" is incorrect.
Pirates Are Staying In European Parliament
James Joyce: You can’t ignore the bastard
I had a play with this.

There is demand for something like this. People want to make a simple table available to Java Script. A table that is easy to edit online.

I have seen a few people do this kind of thing with google docs spreadsheets. You can download a table as CSV from google docs. Or do table read/write via google-spreadsheet-API.

The growth area looks to be mobile apps. I have seen quite a few people on stackoverflow wanting a simple online table of data for mobile apps.

My interest, I want to make building web apps as simple as using a spreadsheet - http://www.cellmaster.com.au/#HN
The problem such companies has is extremely similar to news papers. They constantly has journalists that copies from Wikipedia, uses images from "the Internet", and end up committing copyright infringement, for profit, in a commercial scale.

Even political parties who's slogan is more police and harsher punishment don't understand copyright. In Sweden, the extreme right just plucked some images from the internet, did not check the license, and used it in their party program and commercials. In the end, every Swedish household got sent a pirate copy.

The problem is that copyright infringement is so extremely easy to do, that it happens everywhere, and will likely keep happening regardless of scans.
On the other hand, DS9 at least, with its serial format, fleshed out a couple of alien cultures and explored some of the concepts behind the Federation in ways other series wouldn't have even been able to attempt - although there were a couple of episodes in TNG which managed to take some risks, when the writers managed to lock Gene Roddenberry in a cupboard.

Even though the Cardassians were essentially Nazis in space (in a series which, literally, had Space Nazis as a thing) and the Ferengi were comic relief, it was refreshing to me to see a bit of effort put into some of the other species. The Ferengi and Cardassians, unlike the Klingons (who despite being a warp-capable species were portrayed as barely coherent psychopathic warlords) were presented as reasonable, if not very alien alternatives to the Federation point of view.

TNG would never have had an episode where an alien species calls out the humans for their history of slavery and violence, it would have merely shown us an "alien" species as an allegory but DS9 did (and had the wonderful "Far Beyond the Stars" which, despite barely being in-universe, was able to state Star Trek's essential thesis more directly and profoundly than the main series itself.)

And yes, it was essentially Babylon 5 (But Trek) and wound up being all about a war, and the Dominion and the Changelings were utterly disappointing. And by Voyager, the Borg had gone from being one of the most sinister and alien concepts on television to just another bunch of goons for the Federation to punch, and the only thing in my mind that Enterprise had going for it was the cynical and manipulative Vulcans. But I think, for the most part, the further Star Trek got from Roddenberry's idealism, the more its idealism actually meant something, precisely because it was flawed. The story of how humans get to paradise is much more interesting the the one about how awesome it is after they're there.
Where I grew up in Michigan: exact same thing. As a kid the omni-presence of social lubricant was great! But the cost grew over time. Many of my friends and family killed themselves with drink and drugs, and some others were wiped out by alcoholism.
The Crazy Genius Behind Solar Roadways
Tempting Europe With Ugly Fruit
Wrong. Wrong wrong wrong wrong.

Do you not see the issue with using a single data point about a person to judge them as closed-minded? Do you not see how that in itself is much more closed-minded?

I smoke pot every day. I've tried any natural hallucinogen I can find, multiple times. I'm a raging liberal. I'm a part-time cook that almost certainly could talk and cook circles around you when it comes to cuisine. I promise you I'm very adventurous.

But I often refuse alcohol during the week, and almost always in professional settings. Why?

1. Alcohol makes me excessively nauseous
2. Alcohol makes me excessively tired
3. Being nauseous and tired ruins my day
4. I don't like the implication that in order to be part of a professional setting I should be expected to drink alcohol

And that's it. None of the nonsense reasons you included above. Hopefully at your next conference you'll lose the entitled attitude, realize you know nothing about these people, and try to talk to them whether they drink or not. Or hopefully they'll just be able to avoid you and enjoy a conservation with someone who has a real understanding of people.
One of the best coders it's ever been my pleasure to work with is a strict teetotaler and is, in every respect, the opposite of your stupid stereotypes.

You accuse others of being "conservative" and then you proudly mistrust anyone who isn't just like you. Do you see the irony?

I'm a moderate drinker myself, BTW, before you start thinking you're being dogpiled by prohibitionists. I try to judge people on their ability and character, not irrelevant window-dressing.
> what is the point of prison? Is it a place wherein troubled individuals can receive treatment and be corrected so that they may be reintegrated at some point and become functioning and productive members of society?

It's never been the first objective of prison. Prison exists to ensure the people who are dangerous or detrimental to society remain excluded from roaming in the streets and causing more trouble.

This whole idea of "prison to reeducate people" is very much a creation of recent history.
Appneeti, the original content creator for startups and enterprises.
Are they wrong to do this?