HNHacker News
TopNewBestAskShowJobs

hughdbrown

341 karma · joined January 9, 2013

online: { stackoverflow: "http://stackoverflow.com/users/10293/hughdbrown", github: "https://github.com/hughdbrown", linkedin: "http://www.linkedin.com/in/hughdbrown" }
submissionscomments
hughdbrown··on How Google Map Hackers Can Destroy a Business at Will
How does the First Amendment apply to Yelp reviewers? Is Congress making laws that abridge the rights of free speech in Yelp reviews?

On a separate point, I think the percentage of customers a corrupt business owner could defraud is pretty low. Happy customers may post reviews, but defrauded customers will go after a business like angry hornets. A small number of frauds will become a disproportionate number of negative reviews.

hughdbrown··on Mouthbreathing Machiavellis Dream Of A Silicon Reich
I find it kind of weird to construe Justine Tunney's opinions as somehow related to Ayn Rand. I have no idea what she is really supporting, but there is no confusing her with an Objectivist. Whatever you might think of Ayn Rand, at least she never invented a phrase like, "tyranny of the individual."
hughdbrown··on Giant rats put noses to work on Mozambique's landmines
This does not give me a lot of optimism:

"Last year, Apopo received international funding of $4.5m (£2.7m) from various donors and cleared 618 acres of mined land in Mozambique."

There are 640 acres in a square mile, so this is like $5 million per square mile cleared.

hughdbrown··on Programmers' Proverbs (I'd love some input)
Always mount a scratch monkey.

http://edp.org/monkey.htm

hughdbrown··on Lessons from a Silicon Valley job search
> If a company is currently worth $10m, options for 0.1% are worth $10k.

This isn't really accurate. The company is not giving you 0.1% of the company. It is giving you the option to buy the gain on 0.1% of the company above that value at the time you start. If the company never gains in value, your options are not worth anything.

hughdbrown··on With Free Version of Windows, Microsoft Gives In to the Google Way
Well, thanks, but I am not smug about this. I don't care if Windows lives or dies. I've moved on. We are no longer dating.

And here's how it happened: http://www.iwebthereforeiam.com/iwebthereforeiam/2009/10/int...

I was a happy Windows developer (DOS, Windows 3,1, NT, Windows 95, Windows whatever) and found that windows was too annoying to live with.

And I don't pretend this is everyone's situation or even anyone else's. It doesn't matter to me. I've moved on and I'm happy.

hughdbrown··on With Free Version of Windows, Microsoft Gives In to the Google Way
"Google offers free OSes to computer and phone makers as a way of driving the use of its search engine and countless other web services, and now, Microsoft is at least experimenting with the idea of doing much the same thing. According to the report, its free operating system is known as Windows 8.1 With Bing. As the name implies, the OS is meant to feed the use of Microsoft’s own search engine, as well as other Microsoft cloud services and software applications."

That's not even the start of the problem with Microsoft OSes, from my perspective. I bought a Dell machine this month with great specs and Windows 8.1 on it. I Clonezilla'd the drives with Windows on them and paved over with Mint 16 because (1) it's less painful to maintain and (2) I can script the installation of software I need to develop with. I've done battle with UEFI once and now I have a system I like.

So Microsoft OSes are too expensive even if they were free. And I used MS DOS and Windows for 20 years before moving to Linux. No, something huge would have to happen before I go back, and free is not enough.

hughdbrown··on Sen. Manchin demands complete US ban on Bitcoin
I find it incredible that the justification for action should be "a complete prohibition was appropriate because Thailand, China, and South Korea have already enacted severe restrictions or bans of their own." The American government has a document that outlines when it should take action and on what grounds. And that document makes no mention of consulting other countries or deferring to their sensibilities. It is outrageous that a senator thinks that that would be a valid starting point.
hughdbrown··on Your Brain Wasn’t Built for Junk Food, Porn, or the Internet
I found myself unable to resist clicking on this tantalizing link.
hughdbrown··on The Only Interview Question That Matters
Too many negatives. I think you mean, "Anyone who thinks excelling in that environment isn't a highly significant achievement is sadly mistaken." Even then, I'd go for something clearer like, "Excelling in that environment is a high achievement."
hughdbrown··on Deport Justin Bieber and revoke his green card
FWIW, he is not on a Green Card. He has an O-1 visa for extraordinary ability in the sciences, arts, education, business, or athletics, or a demonstrated record of extraordinary achievement in the motion picture or television industry and has been recognized nationally or internationally for those achievements.

I'd be pretty surprised if the US took to ostracism in the original sense of the word.

https://en.wikipedia.org/wiki/Ostracism

hughdbrown··on 85 people own half of the world's wealth
Another bad title.The article says:

"The poorest half of the world’s population—that’s 3.5 billion people—control as much wealth as the richest 85 individuals."

and:

"The world’s richest 1 percent control nearly 50 percent of global wealth."

Right? Those are not the same thing.

hughdbrown··on Maryland Wins the Fall 2013 Hackathon Season
I read merit points as what you want and attendance points as what it costs to get those merit points. So if you needed 300 merit points to complete your project, then you could take 92 Columbia attendance units or 4 University of Chicago attendance units. In a lot of cases, it seems to take a lot of warm bodies.
hughdbrown··on U.S. directs agents to cover up program used to investigate Americans
So suppose this is true:

A former federal agent in the northeastern United States who received such tips from SOD described the process. "You'd be told only, ‘Be at a certain truck stop at a certain time and look for a certain vehicle.' And so we'd alert the state police to find an excuse to stop that vehicle, and then have a drug dog search it," the agent said.

How do you square that with the claim that the NSA is tracking only metadata? I'd say you need the phone call contents to know where to stop a particular truck.

hughdbrown··on Fuck Off As A Service (FOAAS)
Feature request

   /chainsaw/:name/:from
returns 'F*ck me gently with a chainsaw, :name. Do I look like Mother Teresa?' - :from
hughdbrown··on ‘America has no functioning democracy at this moment’ – Jimmy Carter on NSA
Hey, Canada has been invaded by the US on at least three occasions -- Revolutionary War, War of 1812, and the Fenian Raids. I don't know of another country with a 3-0 record against the US.

[1] https://en.wikipedia.org/wiki/Invasion_of_Canada_(1775)

[2] https://en.wikipedia.org/wiki/War_of_1812

[3] https://en.wikipedia.org/wiki/Fenian_raids

(Does the lack of American effort to impede the Fenian Raids make them an American invasion? It's judgment call.)

hughdbrown··on NSA warned to reign in surveillance
I thought the problem was that the NSA does reign? USA! USA! USA!
hughdbrown··on US attempts to block Edward Snowden are 'bolstering' case for asylum
This is crazy talk. No countries are waiting until they see a prima facie case of harassment and then saying, "We've seen the facts and we're giving asylum!" Every country that could conceivably do that has weighed the damage to their relationship to the US and stayed well away.

I don't even think that the collection of Latin America would-be asylum-givers are very serious. In the most likely case, they are just grandstanding for their own reasons.

hughdbrown··on Lincoln’s Surveillance State
And the article continues, as if anticipating this isolated quotation:

It would be easy, comments Oakes, “to string such quotations together and show up Lincoln as a run-of-the-mill white supremacist.” But in private, Lincoln was much less racist than most whites of his time. He was “disgusted by the race-baiting of the Douglas Democrats” and he “made the humanity of blacks central to his antislavery argument.” In a speech at Chicago in 1858, Lincoln pleaded: “Let us discard all this quibbling about…this race and that race and the other race being inferior, and therefore they must be placed in an inferior position,” and instead “once more stand up declaring that all men are created equal.”7

Lincoln’s statements expressing opposition to social and political equality, Oakes maintains, were in fact part of his antislavery strategy. Extreme racism was at the core of the proslavery argument: if the slaves were freed they would aspire to equality with whites, therefore slavery was the only bulwark of white supremacy and racial purity. Lincoln “wanted questions about race moved off the table,” writes Oakes, and “the strategy he chose was to agree with the Democrats” in opposition to social equality. Lincoln understood that most Americans—including most Northerners—believed in white supremacy, “and in a democratic society such deeply held prejudices cannot be easily disregarded.” Thus the most effective way to convert whites to an antislavery position, Lincoln believed, was to separate the issue of bondage from that of race.

hughdbrown··on Git Cheet Sheet
The "Test Code Before You Commit" rule suggests that the writer does not distinguish between committing code and pushing code, between private changes and public changes. When you commit changes locally, you can always rebase to your heart's content before pushing.

I think this says it best: "Treat public history as immutable, atomic, and easy to follow. Treat private history as disposable and malleable." https://sandofsky.com/blog/git-workflow.html

hughdbrown··on Calculating volatility of multi-asset portfolio using Python
If I didn't have the value, I would not use that approach. I'd use the sum of the historical returns multiplied by their respective proportions and take the standard deviation of those daily returns. That would be my volatility for the portfolio.
hughdbrown··on Can you crack a code?
I'd say the long words offer the better opportunities. Look at the puzzle that has the encrypted word, PIKODENHFENJIKM. How many English words, when used to make look up table based on this key, generate the word when encoded with this key? Only one.

        lookup = {c: d for c, d in zip(pattern, word)}
        return "".join(lookup[c] for c in pattern) == word
Now you have a fifteen letter word solved in the puzzle. It's not hard after that.
hughdbrown··on Howdoi – Instant Coding Answers via the Command Line
Classic Stackoverflow moment:

howdoi -a parse HTML with regex

← PreviousPage 6 of 6