skysight-inc/HackerNews huggingface dataset:
It's ironic that the standard one-liner for this uses a pipeline but only counts the first word of the first command of the pipeline. Given itself as input, "sort" ought to be the most used command, but "history" is the only one counted. (I bring this up not for the sake of standard HN nitpicking but to point out that you probably do want to cover at least `sort` in your workshop, and it will be underrepresented in these results, along with `grep`, `wc`, etc.)

Unfortunately, shell grammar is complex enough that a correct one-liner is probably infeasible. For example, one of my top "commands" if you count by words is an environment variable setting prepended to an actual command.

EDIT: you can get good enough results by just splitting on "|", as others have suggested here -- any parts of regular expressions, etc that aren't really commands will probably be infrequent enough to get lost in the noise, and treating || as containing an empty command won't hurt. If you're going to catch ||, though, might as well get && too... and now you're going down the rabbit hole :-)
Try:

history | sed 's/|/\n1 /' | awk '{print $2}' | sort | uniq -c | sort -rn | head -n 100

Of course this doesn't differentiate between quoted pipes and ones actually being used.
Ted Nelson: I Think I Know Who Satoshi Nakamoto Is
history shows the full .bash_history, but by default HISTFILESIZE is 500 so it only stores 500 entries.
> Well, I lose. It's not even 18 hours and I'm breaking from my self-imposed HN break. Dammit, I suck. Or, we'll just call this thread an exception, because I really want to contribute to this discussion.

Hmmm... should I feel guilty about that or good ;-)

...Glad to be so good that it's worth breaking the ban!
Please see #194: http://www.bwater.com/Uploads/FileManager/Principles/Bridgew...

Cash is not always more valuable than stock. Complicated topic but I'll make one example related to this. As an investor would you rather have cash and pay taxes today on all of your gains or would you rather have stock in a reorganization where you could continue to hold and decide when and how to trigger the income?

The investors here chose cash and since I'm not part of the process I don't know why for certain, lots and lots of complicated factors at play.
It never occurred to me to try some currying in CoffeeScript, but man this looks expressive:

f = (x) -> (y) -> x + y
g = f 6
This gave me an AHA! moment. I really like it when tutorials can do that.
Thanks gsklee, I'll be keeping an eye on you ;)
R.I.P. Tumblr
So far someone already conducted some language analysis to determine his nationality and it's either British or Japanese. Possibly a brit in Japan.
This makes it pretty simple to judge Marissa Mayer's performance at least in the next year. If Tumblr shows any sign of failure, its pretty much equivalent of Marissa Mayer failing at Yahoo. If tumblr shows signs of progress not seen Pre-acquisition, it's a sign of an ex-Googler making a smart acquisition AND making it succeed in the long run.

Google is the best company when it comes to making large acquisitions work out for the parent company. Just see Analytics, YouTube etc.

Yahoo is probably one of the worst if you see how many of their 100M+ acquisitions have resulted in complete failure.
In what kind of a scenario would this happen?
If you have a sum for example sum_{x=1}^{10}x^2, x definitely changes quite many times during your calculation.
I find a single person standing on the shoulders of giants quite plausible. A single talented person can achieve much more than most committees.
The ‘awk’ there effectively still drops everything after the second limiter, i.e. you won’t get a different result.

Edit:

history | sed -e 's/^ *[0-9]* //' -e 's/| */\n/' | awk '{print $1}' | sort | uniq -c | sort -rn | head -n 100

works for me.
Ya, generic PCs would be better without SecureBoot.
Excellent point. I'm definitely going to put that caveat at the beginning of any analysis I post. (and thanks to ctrl_freak for posting an alternative!)
"3 years is MORE than enough time"

So you're saying there were no CEOs at the end of 2008 that thought that even with all of the work they were doing to improve their company, that the recession would have net negative effect on their business. Do you really believe that?

And as this applies to Yahoo... we have no idea how bullish Mayer is on Yahoo.. maybe she thinks the company is going to grow very rapidly over the next few years, and doesnt want to give up a single share. If she is MORE bullish on Yahoo than the market, then Mayer would have considered Tumblr's demand for X number of shares unreasonable.
Google I/O 2013 - Fireside Chat with the Go Team
Maciej Cegłowski: "Marissa Mayer secretly named Google employee of the month for third month running".
The latest, iOS 6.1.3
If you and Marissa Mayer want the last burger in the world, how much is it worth? What if you're Mark Zuckerberg, and it's really important to her that you don't get a taste of that burger? Maybe she doesn't even like burgers.

Factors like the cost of the burger, or how fresh/tasty it is, become less important.

Also, all-cash doesn't mean what you think it means. The currency used to pay for a company (cash, stock, pork bellies, whatever) is independent of the vesting schedules of the employees/founders acquired. Typically investors receive most stock/cash immediately, while employees receive some up front and the rest over a period of time that is negotiable. 3-4 years is standard. Some deals are front-loaded (more than 50% in the first half) and others are back-loaded (the reverse).
remember kids, You Only YOLO Once
Quick hack - you can include the commands you pipe to with this:

history \
| sed "s/^[0-9 ]*//" \
| sed "s/ *| */\n/g \
| awk '{print $1}' \
| sort \
| uniq -c \
| sort -rn \
| head -n 100 \
> commands.txt

I haven't tried to account for pipe symbols inside strings - it didn't seem work it.

In case there are commands you want then to exclude (which I do) then you might want to "head -200", remove the commands you don't want to provide, and then trim to 100.

Added in edit - having done this a good half of my top 100 are actually scripts, so this is pretty pointless for me unless I rummage through them to find the common commands.

Added in edit again:

OK, here's a version that only includes actual system commands, and hence filters out all my personal scripts and commands:

history \
| sed "s/^[0-9 ]*//" \
| sed "s/ *| */\n/g" \
| awk '{print $1}' \
| xargs which \
| sed "s.^/usr.." \
| grep ^.bin \
| sed "s/^.*\///" \
| sort \
| uniq -c \
| sort -rn \
> commands.txt
So it's like Floobits but for only one editor? https://floobits.com/
Understanding Facebook EdgeRank
Sorry, I don't want to download your fucking app
Diving into Erlang and functional programming, part 1
Google Play Services gives control of Android back to Google
It's hard to see this getting traction now, but I'm still glad it exists. Maybe Facebook will somehow fuck up badly enough to push people onto Diaspora, although I can't really see how at this point.
Yeah I just realized that. Fixed.
I really do understand that people want to not have to give a shit about this stuff, and have simple and clear licensing. Really. But this is not the path to accomplishing that.

You've hit it on the head--unfortunately, what else are we to do?

I don't trust the general legal intuitions of ourselves and our peers, since we seem to be so rubbish at creating a useful legal and political climate for our industry (based on ~30 years of case law).

So, in the meantime, let's instead live in our ideal world, pull no punches, and cross the legal bridges when (and if) they come up. Perhaps a proper rallying will be tenable then, instead of us all being chickens.

As for licenses, I think Apache currently is best for "serious grown-up usage", no, what with the patent indemnification and all, or am I misinformed?
You mean fairing. SpaceX is a launch system operator, not a satellite operator.
Not in German they don't :-) I actually use the company with the longest name in the world as a test for validating web input forms.

Donaudampfschiffahrtselektrizitätenhauptbetriebswerk-
bauunterbeamtengesellschaft

which is "association of subordinate officials of the head office management of the Danube steamboat electrical services"

It also tests that you handle the high ascci characters properly
Utter nonsense; no mathematician would have created Bitcoin. Mathematicians criticize cryptographers for not being rigorous enough in their proofs. Bitcoin does not even have a formal security definition, let alone any kind of proof.

Anyone who is looking at professional cryptographers or accomplished researchers is looking in the wrong place. Bitcoin is the work of amateurs and enthusiasts, the sort of people who flood sci.crypt with claims about new cryptosystems and ignore the experts who still take the time to post there. It only caught on because it appeals to libertarians and anarchists, and eventually was promoted enough that mainstream media outlets were afraid that they would be left behind on reporting "the next big thing."
You ask very good questions.

This looks like Yahoo's board of directors are funnelling cash to the Tumblr investors.

Perhaps there are (hidden) connections between the two groups?
For a while, I've been assembling a giant collaborative google doc of hackathon/startup project ideas with my friends that's been quite successful: http://hackathonprojects.tk/
Notably, we've developed a syntax for linking ideas to each other, so that people browsing the site can see hard-to-see relationships between people and projects that others have found. I've also been working on a dedicated web platform for this purpose (to facilitate ideation): IdeaOverflow. When you start typing in an idea, it uses MIT ConceptNet 4 as well as the manually established graph of ideas already present to attempt to suggest related ideas in the database.

I have larger aspirations as well... http://ideaoverflowideplan.tk/

Email me at jcole@mit.edu if you'd like to work on this with me by the way! Basic django (or php! or js frontend!) skills are sufficient to be useful, though making a good interface to explore graphs is also a high priority... http://arborjs.org/ is almost right but not quite.
I most curious what does it mean for me, as tumblr poster.
Couple of months ago I started OC artwork blog on tumblr.

Now I must probably wait until this things settles, to know is it worth investing my time or not, what changes they are going to make etc.
TOMA: Top Of Mind Awareness[1]

TOMA is what's going on if I ask you to "name an American car company" and you immediately reply "Ford". And chances are you will say "Ford" and not "Buick" or "Chrysler" or whatever. Ford have done a good job of building TOMA. Likewise if I said "name a carbonated cola", it's a lot more likely you're going to say "Coke" than "Mr Pibb".

[1]: http://en.wikipedia.org/wiki/Top-of-mind_awareness
i think you're a little spoiled from pull requests. you used to have to format patches according to coding standards(in fact still do in many projects), and then have a lengthy discussion on why your code sucks. you could argue that that's very discouraging, but I disagree.
Another good one is kurtjmac: http://www.youtube.com/user/kurtjmac He also raises money for charity by walking to an area of Minecraft where the terrain generation glitches out, called the "Far Lands".
What's porn and what's not is fairly subjective. I suspect the R-rated video for "Who's your Daddy" by Benny Benassi would be considered porn by some. Note: Both the R and PG-13 versions are (or were) on youtube.

Also note the definition of pornography does not include nudity.
Another reason not to use it would be pre-approved licences in corporations. I can use software released under many popular free licenses without issues. But something like this one forces a roundtrip through the legal department which takes days / weeks.

If you want your software to be business/corporate friendly, make sure you're using something popular (and preferably not mentioning patents or special linking clauses).
I agree that tablets/phones/etc are a great way for children to learn and interact.

However, I'm always weary that they become accustomed to getting everything "on demand". Anecdotally, I have young family members who have a hard time focusing when it comes to things like homework. I guess it's possible that I could have imagined this connection though.

I'd love to see a study take a look at how these devices affect children's attention spans as they get older.
Whatever about WW2, Germany's performance in WW1 was incredibly efficient. They had a complete plan for the western front, along with the logistics to back it up, including up-to-the-minute train schedules.

It's been a while since I read the Guns of August, but Tuchman contrasts France and Germany's preparedness, and Germany seems the absolute pinnacle of efficiency.
It needs an overhaul, but it does what I need, which is share a few hundred images, broken up into sets. I've tried a couple other sites and apps, and haven't switched yet.
Minecraft on a tablet?
How does that work?
Sadly not massively, the local arriva service is lacking and there is centre bus which seems to be running sheds with wheels. First have a good 80% of the routes in Leeds.
This isn't an unsolicited deal, the CEO brought it to the board for approval after completing negotiations.

This is a done deal now, it's not the start of Tumblr's bidding process.
Catch Him If You Can
Well, if you are British, you'd want to check that burger doesn't contain horse meat.

And as amusing as that might or might not be, there is also a point there.
How do you feel about "intro"?
What's HN's opinions on Nelson himself? Barring this article, I've mostly read about his ideas about Xanadu, etc, and while they're not bad per se, they seem rather unfocused and on the whole rather vague -- almost like, engineering/technology in a purely essay tradition. Can anyone point me to his best work? I hear a lot about him but never found much to justify his repute.
i wonder how ping me belongs with the "jokers". seeing that i can picture many people like me using ping me all the time, but having never heard the term arpu

for those like me who needed to google it

http://www.playerize.com/blog/sticky-games-relationship-betw...
LINQ internals (Part 2): Lambda expressions and anonymous functions
It is a watered-down version, with touch-based controls.
The creator of Bitcoin is Neal J. King

http://www.fastcompany.com/1785445/bitcoin-crypto-currency-m...

https://www.facebook.com/neal.j.king
You obviously did not read my blog while I was CEO of IndexTank, a funded startup acquired by LinkedIn. I found plenty to blog about, and many of my posts were on the front page of this site.

All the petty things that you mentioned happen to most startups, and don't usually make for interesting posts. That's my point about the OP.
Yup, this oversight is officially embarrassing.
Marchitecture and Marketeering are my newest two "favourites."
well, I guess my answer is that copyheart is not for the faint of heart, but if you feel like standing up to our lawyerocracy, then you should do it. And you shouldn't have to worry about 'issues you didn't know exist'. There is this concept of 'mens rea', you can't be criminally guilty if you shouldn't have known it was a crime. As for civilly, anyone who sues you for something silly is a jerkface. Don't negotiate with terrorists.
Not a very good intro to functional programming or currying mostly because it never explains WHY you would ever want to use currying.
same here, and tmux lets you share more than just your vim session. We use it regularly for pair programming, some times even in the same office, each one at his own computer.

I liked that coVim launches its own server, so you don't rely on having to ssh to the same box, but at the same time, I imagine ssh should be safer.
Cash is much more valuable than stock.

this claim is indefensible. It depends on the valuation of the company. For example, at IPO MSFT had 25M shares outstanding @ $21, total market cap of $525M. Obviously 5M shares of MSFT stock (market value of $100M) in 1986 was worth far more than $100M of cash.

On the flip side, $100M in cash would have been worth more than $100M in Groupon stock (at the IPO valuation).
I suspect none, honestly, but it sounds scary, doesn't it?

Everybody who does software would prefer a better, less legally climate, and yet few seem willing to put skin in the game.

A better question is this: since we seem hellbent on not having any sort of accredited professional status, why are we surprised that this is an issue?
All the standard macbooks that have HDs come with 5400rpm HDs. Apparently the majority of Silicon Valley has no problems getting work done on a 5400rpm HD.

As for battery life I'd personally rather have a machine I can get real work done with shitty battery life than one with great battery life on which I can't get real work done. There's a huge list of things I can do on the machine with an HD, virtual memory, and a real OS that I can't do on the Chromebook. In fact Chrome will even run better on the machine with the HD as it won't kill off tabs when it gets low on memory. It also won't get low on memory as quick as it has twice the memory.
Even if it's the best course, it might still wreck on the coral reef cruft of dead accounts and abandoned groups. Flickr has been in decline for a while. I doubt incremental changes could bring it back.
The order of operations is morally wrong
It's not possible for these programs to "create" problems, only to expose them. While many companies like to take the "la la la, I'm not listening!" approach to security, it doesn't actually make you more secure.
Any one in which you got sued?
The average lawsuit of this type, win or lose, is going to cost you 75-100k if it goes to court, minimum.
That assumes it doesn't drag on, etc.
Infinity : Endless Page Scrolling with Rails 3 and jQuery
Congratulations on pirating software? Am I missing something?
> and then have a lengthy discussion on why your code sucks

That is the kind of feedback I would hope for. The issue is the lack of any feedback from the maintainers on "dinky" projects. If I, as a first-time committer, filed a pull-request, and it still had 0 comments after 90 days, I would feel discouraged.
Mostly, but at that point, why use it?
Why not use MIT without the copyright notice reproduction clause?

It would be

1. Better written

2. As easy to understand

3. Well tested and effective.
So many ideas that are discussed in forums like that are already patented. 95% of the time, the product never made it to market, 4% of the time the product did make it to market but wasn't successful. I've done patent searches for friends with "new ideas" and it turns out someone patented it 40 years ago.

full disclosure: I have a patent, that ended up in the 4% category. On to other things...
I really love Hakim's work. I've been looking for a way to integrate his Avgrund modal interface into some of my projects http://lab.hakim.se/avgrund/
I was actually thinking about petitions about private companies and their business decisions, not politics. If Tumblr or a Yahoo had their own corporate petition platform, then yes, but comparing a petition on some random website with a petition on the website of the German Bundestag is like comparing apples to orangutans.
Pivot, soft-launch, lipstick on a pig, circle back, 'noodle on it' (older?), ideate, high and to the right, CCA, channel model, freemium, cap table, term sheet
Statistics would help us believe this article. Are they quoting 196% variance over the mean? What does it mean to be 4.5 times smaller? Even the basics are amiss here. There are a lot of conclusions from just two examples of highly complex dynamical systems. The authors poked around and thought a lot, and we know that unfortunately isn't enough to say something believable.
I have no idea what you're trying to say. I responded to your assertion that stalinism and fascism are "completely different extremes".
Well, I didn't sign up just to comment on it, You can see that by looking on my comment history: My first comment was about the uses of facebook. Ah well.
Redundancy and failover on your life
I don't think this analogy works. With this analogy, they'd have to be adding bugs to the code and then "finding" them to get the reward. In this case, having a reward would most likely result in more people specifically looking for bugs, but they'd be looking for them so that they could report them and get money for it. It's better to have to pay out a bug bounty than have a malicious entity find and exploit the bug later.
I disagree. We don't know what Yahoo wants to do with Tumblr. All we have are rumors, a WSJ report and tons of idle speculation. Without knowing what the intended end game is, I don't see how we can call the acquisition a "success" or "failure", much less the CEO's. I also don't agree that "a sign of progress" is "making it succeed in the long run".

Google is no genius with large acquisitions either. Motorola and Blogger come to mind immediately, but there are others too.

I think we can all agree that Yahoo has been mismanaged at least until recently. I just don't think a CEO's performance is a boolean value that depends on an undefined "any sign of failure" on a large acquisition with a 1 year time frame.
Ian Grigg's Ricardo system (1990s to present) also belongs on the list of precursors due to smart contracts, non blinded pseudonyms, etc.
helping out a (family member) university student to get one more day access to the $3000+ software (which he won't ever use again) after the trial expired in order to pass his final exam.
Microsoft Gets Ready To Launch The Next XBox
Viewed 3 pages to read 7 words.
This is also almost certainly wrong.

Those patent applications don't really have anything to do with Bitcoin. But I guess if you're a journalist, anything crypto related looks like it has to do with Bitcoin.

And if I remember correctly, the bitcoin.org domain was registered by Satoshi using anonymousspeech.com, so that's also a clue.
The all-caps is because of conspicuousness, yes, but there are other requirements.

UCC, for example (most contracts/licenses for software would fall under UCC, rather than common law), says basically (I'm pasting a capsule summary from a case book, i can cite the underlying provisions in the actual code, but this summary is accurate):

First, the seller must clearly and explicitly do so at the time of contracting by using words that communicate the risks that fall on the buyer.

To exclude the implied warranty of merchantability, the language of the disclaimer must mention “merchantability” and, if written, must be conspicuous.

To exclude the implied warranty of fitness, the exclusion must be in writing and be conspicuous. Thus, fine print disclaimer may be inoperative.

If an express warranty is also given, words or conduct relevant to its creation and words or conduct tending to negate or limit a warranty must be construed whenever reasonable as consistent with each other.

Any words of disclaimer or modification of warranty should be strictly construed against the seller. In general, words or conduct tending to negate or limit a warranty are inoperative to the extent that construction is unreasonable.
The Dice salary survey says salaries went up. I wonder which is right: http://media.dice.com/report/2013-2012-dice-salary-survey/
They explained what they meant by variation in point #3. We quantified this variation by first calculating the standard deviation of the daily sharing rate (i.e. how much sharing levels varied day by day), then dividing by the mean to give us the coefficient of variation.
Should You Consider Replacing Yourself as CEO?