skysight-inc/HackerNews huggingface dataset:
Sure thing.

: shuffle

This starts a declaration for our word 'shuffle'. This implementation expects the address of the array on the stack with the length of the array on top. Some Forth programmers would leave a comment to this effect like so:

( addr len -- addr )

Anything in parentheses is a comment, and this shows the contents of the stack we want as input (read from right to left) before the '--' followed by the contents of the stack we'll get as output. (We leave the array address on the stack. If we want to be void like the C example, add a drop to the end of this definition to discard it.)

1- for

Subtract one from the length given and begin a for...next loop. This will take the length value off the stack and repeat everything up to the matching next n+1 times. Equivalent to:

for(int z=n; z >= 0; z--) {}

Our stack now looks like this:

( addr )

While we're in the loop, a copy of the loop index can be pushed onto the stack via the word i. This actually accesses a secondary stack, so if you nest loops you can obtain progressive indices by using i' and j (or j and k, depending on your Forth dialect.)

i 1+ random

Add one to the loop index and generate a random number between 0 and this value, exclusive. Our stack now looks like:

( addr rand_int(i+1) )

over +

Over pushes a copy of the second element of our stack. This sequence adds the address of the array to the random index, leaving the address of that cell of the array. Our stack now looks like this:

( addr (rand_int(i+1)+addr) )

over i +

Make another copy of the array address and add the loop index to it. The stack now looks like this:

( addr (rand_int(i+1)+addr) (i+addr) )

swap@

This is a helper word which swaps the contents of two memory addresses. It should be easy to see that this will swap array indices for us in exactly the same way the C code did.

next ;

Close the loop and terminate the word definition, respectively.
What happens when someone hits your app from a library computer? From behind a proxy? Have you thought about what happens when their IP changes?

Stop. You are inventing a crazy homebrew authentication system here. One great way to absolutely fuck your site's security is through crazy homebrew authentication/authorization/cryptography.

Do it right, don't do it yourself.
Skiena's Computational Finance Lectures
A Very General Method of Computing Shortest Paths
> Also, "open" in name only.

"open" as in:

$ repo init -u git://android.git.kernel.org/platform/manifest.git
I always wonder: Wouldn't it be much cheaper to just spend a few billions to buy some new patent legislation from congress?
ha I misread that as GOP (Grand Old Party = US Republicans) :o)
So?
Is it suddenly bad if its version 20 or 409?
It could also be 0.409
or 20112012
Or 0293.3948.2933.12.409
Or FE39D9A

of all these, 409 is the most readable anyway.
And the time, patience and resources to survive the wave of legal attacks (including temporary setbacks) until the litigator succeeds...
This is a tough one.

Obviously, as more people start driving electric cars, hybrids, and more efficient gasoline vehicles, the revenue from the "gasoline tax" will be decreased. But they seem to be attacking the wrong side of the equation: creating disincentives for driving instead of creating incentives to not drive.

I've long believed that the way the US Tax Code currently handles "car & truck" expense for the American businessperson is insanely ludicrous: it's OK to maximize consumption as long as he's able to maximize deductions (as in tax deductions). Current tax code allows people to deduct by the mile. This actually minimizes revenue for the government in the long-term, not to mention creates the most damage to the environment / resources of the planet.
Amber text on black has been reported by studies as the most readable and least fatiguing to your eyes. I loved amber CRTs though they were less common than green.
How do I click the "Link" for a car in the middle of the dot-cloud?
> Google might be able to pull ahead of Apple for a period

That would be a huge mistake - and they know it. That's why they made it clear Motorola Mobility will be run as a separate business. It would be unbelievably foolish to hand Microsoft the Android ecosystem and Google is not known to sacrifice long-term profit.
Does it have it suitably low memory/CPU requirements to run on embedded devices?

How well does it work on ARM/MIPS?
Code in the Language of the Domain
The problem is that, like the boy that cried wolf, they have no way to get attention if they actually want it.

Say that version 32 introduces a "do what I mean" feature where the browser simply goes to whatever site you want, no user interaction required. How are they going to publicize that version 32 is more important than 31 or 33 or 27, all of which were tiny incremental upgrades?
Financing Options: Bridge Loans
Perhaps a better analogy (and one that's a little less likely to cause a holy war) be - you were using RC to back up your program file. Then somebody showed you git (or hg).
Apparently these are their early comments. Of course how much thought has gone into these yet is another question.

http://www.google.com/press/motorola/quotes/
Or you are simply experience "Resistance" as mentioned in the "War of Art".

http://toblender.com/comic/resistance-the-war-of-art/
One executive, who didn't quite understand how the speaking points should be assembled, was quoted as saying "We welcome the deep ecosystem and should be committed for defending our Android partner."
'Progressive' as used in the same context as your original post is basically a placeholder for 'benefiting the groups I care about'. It's not a meaningful word to use, and you even know that. Contrast with 'progressive tax', which is well-defined.

I don't understand the line of thinking which effectively says "people don't want to earn £2 if they have to pay £1 in tax". Erm, you're still richer than you were if you didn't earn more. The only possible argument against this is if earning another £100k takes more amount of effort it took to earn your first £100k. But if you know anything about making money it doesn't work that way. With more capital comes greater opportunities. You can afford an accountant to manage your money, you have more investment options, and so forth; and you still have enough to spare for a comfortable lifestyle.

A flat tax implies that a dollar is worth just as much to Warren Buffett as it is to someone flipping burgers, which demonstrates a complete lack of perspective.

Put it this way: everyone's living expenses are, say, £12k. now if you're earning a median wage that leaves you £10k to invest how you like. If you're earning £50k you get to invest £38k. assuming the schemes offer the same rate of return, guess who is going to amass £50k first? Hint: it's not the guy who has to get a 5x return on his investment.

The higher rate income tax is an incentive to invest the money you receive back into the economy via business or charity, where it is taxed at a lower rate or even not at all, rather than spent on your own personal gain. Why should it scare you that the government would take that money? BTW, investment in financial instruments of dubious benefit is giving money to the financial system (this should really be obvious...) so it does contribute to the economy, but there are almost certainly better ways to do so.

The problem with the libertarian perspective is that it irrationally assumes the best of people when there is no incentive for them to do so. If a billionnaire can afford to fund all the services he requires that someone on the poverty line would depend on government for, why should the billionnaire give his money away? If you want a society you have an obligation to provide for one, if you believe it is unfair that someone with broader shoulders should carry more weight, then perhaps you should consider how fair it is that he has broader shoulders and others do not.
Giving new meaning to the term "Android clones".
Haha, ya I was just about it say. 4 "welcome" in 4 comments from 4 different people, thats not a coincidence.
> I'm not sure why Google would make much more in Adsense revenue on Android than they would on iOS

Aren't iPhone app developers using iAd?
Google's Motorola acquisition is just a 10% premium over their 2011 high
As always, I am around to answer any questions as PyCon chair - I encourage everyone to take a look and submit talks, tutorials and posters. Startups are excellent examples in many cases of bleeding edge technologies and solutions in the Python space and I am continually surprised to see where it's popping up.
"It's fascinating to me to see this shift, which Google seems to be leading, from tech companies fighting over new product development...to something entirely different: fighting over patents "

I thought it was Microsoft and Apple that were aggressively filing patent lawsuits, and Google and other Android partners were on the receiving end, no?

One other thing I don't see being mentioned anywhere in these threads is that, "Motorola Mobility held $5.5B in cash and deferred tax assets; this could put Google's (GOOG) real purchase price around $7B."[1]

[1]http://seekingalpha.com/article/278932-can-motorola-mobility...
Sesame Street's idea of a VC meeting room
This is not too far from the truth :).
I wonder if they all use the same corporate speechwriting agency.
The patent reform they are fighting for will take years if not decades. This is a good short term move, they can't just sit and watch the Apple/Microsoft patent attack.
Motorola Mobility has lots of very smart people who know Android as well as, if not better, than its creators.
I've been looking for a website that does that (I sometimes rent movies that I've already seen but had forgotten about). But I don't have a twitter account so I won't try yours.
Interesting. I wonder if Android users see more ads per use-hour based on the Android eco system's revenue model than other mobile os's. ...I have no data to back up my proposition, just a thought.
Eight Perfect Faro Shuffles returns the deck to its original order (video)
I was just trying to point out the fact that taxes is one of the few (if not only thing) that is almost always paid as a percentage of income.

This messes up how people see taxes and how the burden is distributed. And make people say things like Warren Buffent pays less taxes than I do.

You don't buy soldiers, schools, police officers and roads with percentage of incomes. You buy them with dollars, which is why I argue that we should measure the paid tax in dollars and realize that the rich already pay the largest share of it.

Since they don't actually use more government services (they properly use less, but that is another matter) I can't see the problem with reducing the amount paid by the highest income earners.
Chrome hides the version number, because 98% of the time, it doesn't matter. There's no mention of it on there download page (http://www.google.com/chrome/). They make it available only if you need to get specific.

Firefox, OTOH, still advertises their version number right on the download button (http://www.mozilla.com/en-US/firefox/new/).
Why Web Strategies Fail
Welcome to your teen years Android
This was really funny; couldn't they've at least tried to make it look like the quotes weren't all written by one person?

q1v1: We welcome today’s news, which demonstrates Google’s deep commitment to defending Android, its partners, and the ecosystem.
q1v2: We welcome the news of today‘s acquisition, which demonstrates that Google is deeply committed to defending Android, its partners, and the entire ecosystem.

q2v1: I welcome Google‘s commitment to defending Android and its partners.
q2v2: We welcome Google‘s commitment to defending Android and its partners.
I don't think they were consulted, this feels like they were presented with a fait-accompli and given sample "supportive statements" that they barely modified before sending back to Google's PR.
How would this fit in with a Nokia-WP7 Special Relationship though? Would MS kill off old and new BlackBerry OSes and just use RIM's old sales contacts to sell more WP7 phones or what?
Is there such thing as a $999 netbook? If you're not competing in the same price range it's easy to be better.
"Raymond Shaw is the kindest, bravest, warmest, most wonderful human being I've ever known in my life."
Need to stimulate your brain? Shine a light through your ears
Am I the only one who imagined some sort of RPG character after reading this comment?
TabCo unveiling is Today at 9am PDT
There was some mention in a statement by Google of Motorola's success with consumer/home devices.

Any of you think there's a possibility of Motorola building on Google TV?

relevant article by Business Insider picking up on this point - http://www.businessinsider.com/motorola-doesnt-just-make-and...
Designers should make things: Digital Fabrication
Building plugins for major email clients would be a necessity. How to get people to install those plugins would be a bigger challenge than building them.

Right now I'm thinking that at least for read messages, archives of revisions would need to be kept. If a message was never read I'm not sure it's necessary to keep a revision of it though.
The first (Samsung) and third (HTC) seem to be copies. Similarly second (Sony Ericsson) and fourth (LG).
They could name it Firefox XP, I guess.

All silliness aside, I see your point. But is the browser really still at a point where such earth-shifting changes are likely to occur? The biggest single change of the last few years that I can think of is the addition of tabs to browers, and even that is a feature that's been around for 20 years in other programs. Any change that's much bigger than that almost warrants a whole new product, regardless of your numbering scheme.
In the UK there've been some pilot deployments of fibre using sewers ( e.g.http://news.bbc.co.uk/1/hi/technology/7202396.stm ).

Avoids the need to dig up roads and keeps the cost of deployment low
For update critical sections, its important to execute the non-contention case at lightning speed. This reduces the chance of collision (and associated blocking, thread switching, kernel trips) and moves the 'saturation point' (where there are so many threads that there's always somebody blocking) up in threadcount by an order of magnitude.

In my measurement, OS X and linux both simply implement "critical section" as a semaphore, with two full kernel trips to take and release the cs. Since the code being protected is usually less than 10 instructions, the ratio of overhead to code protected is 1,000 or so. The saturation point can be a couple score threads.

In Windows (yes! Windows!) they use special opcodes that lock/unlock the bus to provide atomic update of in-memory variables. The ratio is about 1 or 2. The saturation point is a couple orders of magnitude more threads before thrashing occurs.

Windows is optimized for the hardware, yes. An unfair advantage. But there it is.

I sincerely wish somebody in linux library design would add the same unfair special case. Since its killing me in my large software project, dominating design decisions and completely unnecessary to be suffering like this.
You clearly don't understand what the definition of 'progressive' tax is. It's 'progressive' in the sense that marginal tax rates increase as you make more money.

It is not 'progressive' as in 'progressive politics' or 'economic progress' or any other left or right politics.

Saying something is a 'pregressive tax' isn't a value judgement , it is just a description of the curve of the tax rate, i.e. the opposite of a regressive tax. As for 'discouraging people from trying to earn more money', that is a debate about rates but remember marginal tax rates never allow a situation where making a higher salary would leave you with less net income.
Yeah, creepily robotic. It seems forced, and feels like the lines were fed to them.
> I don't understand these meme of degrading IQ as having little real world value

The way I understand it: many people equal IQ test scores directly to real-world success and I would say such a direct causality does not exist. Case in point: Mensa members are CEOs all the way down to broke janitors.

http://en.wikipedia.org/wiki/Mensa_International#Demographic...
The Now Habit is a book that explains that exact idea... I do procrastinate a bit less after reading that book.
I welcome these welcoming quotes.
While the experiment with the ALT key was interesting and can shed some light on this subject, it would be a mistake to extrapolate too much. I would be far more likely to assume "I probably did accidentally hit the ALT key" than "Oh, I probably did murder that person." Hitting the ALT key by accident is extremely easy, and the punishment in this study small relative to most criminal offenses.
I previously did some work for an online poker service who had a financial incentive in knowing who was logging in as who and had a custom client with which they could do all sorts of nasty spyware-esque things to the client's machine. And they were still susceptible to hackers.

You have a browser for a client and HTTP. Please, don't end up on HN as sadly yet another cautionary tale for doing security wrong.
So they did overpay a bit. But there is a genuine synergy - a phone company being bought by a company that makes a phone OS.

This might hurt Android adoption a little, but I doubt Google really cares. All they really want are more browser phones, which will funnel more money into google (via adsense). Or maybe it will make Google more sensitive to what direction Android has to go.
> if earning another £100k takes more amount of effort it took to earn your first £100k.

That's not the issue. The issue is that the 2nd 100k is worth less in terms of happiness than the first.

Various studies have shown that after around 80,000 peoples happiness is proportional to the amount of money they earn, and after that it levels out.

Thus if one didn't really care too much about that 2nd 100k, making it merely 50k might just be enough for the person to throw up their hands and say "its not worth it, I'll spend the weekends at home instead of at work".
Having been quoted in press releases before, I can say that it often works that way: the PR droids will send something saying "we quoted you saying this, is that OK with you?" It's weird.
No, it is a description of the tax code. It is not a judgement of the tax code. It is a 'progressive tax' or 'progressive tax rate'. It has nothing to do with 'progress' or the 'Progressive party'.

http://en.wikipedia.org/wiki/Progressive_tax
It reads like a hostage statement at gunpoint.
Diskless (NFS) boot from the cloud.

Real-time backup (CDP) to the cloud.

Massive bandwidth may encourage P2P versions of things that are client-server today.
Another moral here is: you were seeing him as less clever and less successful because he was "just" a welder.

A skilled craftsman who understands what he is doing, understands a bit of the market and the chances available to him can run circles around any struggling internet startup, if only because the equipment and training needed are typically not as easy to come by as a Rails or AJAX or web handbook.
Using Windows Phone As Windows 7 Accelerometer Sensor
Nope. Trotsky edited his post, one of which's points I was refuting. I don't have the original, but it was edited long after I replied.
Drug companies lose protections on Facebook, some decide to close pages
Becoming the outcast
I'm not so sure about that. AppleTV and Roku boxes don't rely on a ridiculously expensive monthly subscriptions to be useful. The only damage to sales would be the people who would have bought an AppleTV/Roku box and retain their cable subscription.

A year's subscription to Netflix and a Roku or AppleTV are each just a little more expensive than a month of cable subscription, saving you a little less than 10 months of cable subscription fees. Google would have to add around $700/year worth of value to all these set top boxes to compete with that (not to mention having to play nice with the various cable companies and such).
Btw I've also added it to Chrome Web Store, so it can be added to Chrome as an app: https://chrome.google.com/webstore/detail/mhmonflnoepbijmbbf... (nothing fancy, just goes to the website)
Once I realized that you could take all the money from the rich, stop all defense spending, and still have a massive budget problem? These sorts of things stopped being an issue for me.

Seriously folks, it's a red herring, an issue created to make sure that one party has something to fight the other party over. If you want to sack the rich, have at it. Just don't pretend that by taking that position you are doing anything at all for the national treasury. Or poor folks, for that matter.

In the larger picture, many technologists view the state as something of the past. Tens of thousands of people make their money simply because computers are hooked to each other over wires. It has very little to do with national budgets or policy (yes, you can throw out a bunch of silly nonsense about national broadband policies and such, but let's get real: this economic activity takes place in all sorts of various scenarios.)

So if you are the type to sit around pining away your day, thinking about all those super-rich folks and how good they have it, I'm sure this will be a fun article for you. If, however, you are concerned with public policy -- and the fact that in the US, at least, the majority of people do not even pay an income tax, yet vote on the rates for the rich minorities (gee, wonder how that will turn out?) then this is all so much posturing.

I don't feel a need to slam Buffett. He's a patriotic citizen who means well. Smarter guy than me in a lot of areas. I'm just not sure that this article has anywhere near enough merit to have 500+ points on HN. It offers no solutions, only rehashed populist tripe. If you want to set the income tax at 95% of all money made over a million bucks? Have at it. It's not important.
That’s how it works. Do you really believe that CEOs have the time to think up statements?

I thought this was common knowledge by now. The PR people write it, CEOs only give their ok.

Edit: All the statements being so similar is a testament to very shoddy PR work but it’s not all that surprising. The same PR people (well, very likely a single person) from Google who wanted to get statements from the all presidents and CEOs just called up the PR departments of all the companies and asked for statements, suggesting, along the way, the language: “Hi, this is Michael from Google. As you know we will very soon acquire Motorola and it would be very nice if we could get a short one sentence statement from your CEO about that, you know, to show your and our shareholders and customers how committed we are to the Android ecosystem. I can send you an email with an example statement to give you an idea about the length. Would that be alright?”
Yup, after I got my masters and then got laid off I got an offer from a patent law firm to put me through law school if I'd come work for them. Patent law sort of sounded like one of the circles of Hell for me, though, so I didn't take them up.
> 2. Compress your CSS and JS

Instead of compressing a few files on disk, compress everything on the wire—make sure your server uses Content-Encoding and Accept-Encoding.

Also:

> 9. Spell check your website

...I see what you did there.
Contagion merges with Health Month to form Habit Labs, moves from SF to Seattle
From the restlet home page "Do you want to blend your web services, web sites and web clients into
unified web applications exposing and consuming RESTful web APIs?"

The link I provided was to an example of using restlet on the client side. I would agree that the api is not as human friendly as it could be but it does describe interactions in a restful which is why I suggested it would be a good starting point for writing a friendly api.