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 What Happens to Home Prices When Technologists Come to Town
Does anyone from Denver also find that the relationship is overstated? I don't know of any Denver offices for Apple, Facebook, or Amazon. The only Twitter or Google offices I am aware of are in Boulder. Boulder and Denver are connected by a single highway and the commute is bad enough to effectively separate the two tech hubs. I don't see how anyone can claim that the 1200 employees attributed to Google, Apple, Amazon, and Facebook (which I dispute is an accurate number for Denver) could possibly have any measurable effect on a city of 600K / metro area of 2.6 million.
hughdbrown··on Ask HN: Dell paved my hard drive with Windows, now what?
I believe Dell did agree to that. I am talking to the tech group and their case notes say they were not to reimage the hard drive or reinstall the OS.

And I did back up the data. I just never imagined they would go so far out of their way to do what I asked them not to do. And they agreed not to do.

hughdbrown··on Ask HN: Dell paved my hard drive with Windows, now what?
I backed up the hard drive. I am sure I can get that back. I didn't remove the hard drive, though. I am amazed that Dell went so far out of its way to give me exactly what I did not want.

A large part of the trouble is the boot sector jiggery-pokery that I will have to redo to get UEFI removed.

hughdbrown··on Show HN: Use wealthbot.io to easily setup your own portfolio management platform
The technology stack of this application gives me pause, if I am reading the included vagrantfile correctly: ruby and python and php; nginx and apache2; mysql and postgresql and sqlite and mongodb; redis and rabbitmq. Why so many overlapping choices? And I tend to think that the whole vagrant + puppet installation would be way faster and simpler just using docker.
hughdbrown··on Understanding Python bytecode by implementing tail call optimization
Okay but if you are going to call the function factorial, why not have it actually calculate a factorial? This would have done the job:

    def factorial(N, result=1):
        if N == 1:
            return result
        return factorial(N-1, N*result)
Assuming that you never call it with the result argument.

As written, it just looks like the author never ran the code.

hughdbrown··on Understanding Python bytecode by implementing tail call optimization
This code does not do what the author thinks it does:

    def factorial(N, result=1):
        if N == 1:
            return 1
        return factorial(N-1, N*result)
hughdbrown··on A very common grammatical mistake that programmers make
If it's not grammatical, why does it compile? My compiler rejects lots of errors, but not this.

Maybe the problem is that the OP thinks that the rules of English apply to computer languages.

hughdbrown··on Why It’s Good to Be Wrong
"The fact is, there’s nothing infallible about “direct experience” either. Indeed, experience is never direct. It is a sort of virtual reality, created by our brains using sketchy and flawed sensory clues, given substance only by fallible expectations, explanations, and interpretations. Those can easily be more mistaken than the testimony of the passing hobo. If you doubt this, look at the work of psychologists Christopher Chabris and Daniel Simons, and verify by direct experience the fallibility of your own direct experience. Furthermore, the idea that your reminiscences are infallible is also heresy by the very doctrine that you are faithful to."

This is skepticism raised to the nth degree -- brain-in-a-vat-ism. I'm not even sure I read the article now.

hughdbrown··on Ask HN: Whats the most challenging book you have ever read?
And it was challenging because ...? Did it change your life or some other reason?

At a guess, I'd imagine many people would find the complete book challenging because of the unexpected material and viewpoints that can be found in sections of the Old Testament, like: https://www.biblegateway.com/passage/?search=Judges+19:22-30

hughdbrown··on A 3-Question Quiz That Predicts Whether You Believe in God
Excellent. I am going to make sure my kids do not become religious by getting them to memorize the answers to these questions.
hughdbrown··on Duke economist: Most research on why investments do well is all wrong
Here is the argument in a nutshell: https://xkcd.com/882/

If you have enough hypotheses, some will be significant by chance alone.

hughdbrown··on Show HN: Maim – A simple screenshot utility for Linux
escrotum? Was there a competition for worst open source project name that I did not hear about?
hughdbrown··on Installing Nvidia CUDA on Ubuntu 14.04 for Linux GPU Computing
I think it is more than that. The installation has steps that fail because of terminal requirements at install-time:

    Unpacking x11-common (from .../x11-common_1%3a7.6+12ubuntu2_all.deb) ...
    debconf: unable to initialize frontend: Dialog
    debconf: (TERM is not set, so the dialog frontend is not usable.)
    debconf: falling back to frontend: Readline
    debconf: unable to initialize frontend: Readline
    debconf: (This frontend requires a controlling tty.)
    debconf: falling back to frontend: Teletype
Have a look at the github repo:

https://github.com/hughdbrown/docker-cuda

hughdbrown··on Installing Nvidia CUDA on Ubuntu 14.04 for Linux GPU Computing
Would this be significantly easier if there were just a Dockerfile with all this stuff in it and then the instructions would be, "docker build -t cuda . && docker run -t -i cuda /bin/sh"? Or maybe make it a trusted docker image and developers could just pull/run it?

Later: perhaps not. Graphics drivers and the like rely on an interactive terminal and an X11 system, AFAICT.

hughdbrown··on Elon Musk argues that putting a million people on Mars ensures humanity's future
I'm not negating that proposition. I am saying that people have alternatives in life and I can't imagine a life on Earth that is so bad that moving somewhere that has no water, no atmosphere, no food, no anything would be better.

Chance of dying -- high. Chance of having children -- low. This is not rocket science, as they say.

hughdbrown··on How to Squeeze a Huge Ship Down a Tiny River
Little-used? Sure. Obscure, unknown? "Four score and seven years ago ..."
hughdbrown··on Elon Musk argues that putting a million people on Mars ensures humanity's future
Here is the conversation in every household where this comes up:

Would-be colonizer: I am thinking of relocating the family to Mars for the stunning education opportunities the kids will have -- high average education level in the population, ...

Spouse of would-be colonizer: You make one move to relocate the kids to Mars and you will divorced before your intergalactic shuttle lifts off.

hughdbrown··on Elon Musk argues that putting a million people on Mars ensures humanity's future
You first. I am not relocating to Mars and trying to raise my kids in non-existent school districts.

Or: Earth has a lot of advantages over Mars. Why would you totally diminish your life's possibilities and leave?

hughdbrown··on Inside the Starbucks at CIA HQ
So here's an idea: why doesn't Starbucks create and distribute the names? A sticker goes on the cup and the secret agent gets the corresponding name on a piece of paper. Like, they print paper with two parts: one part is the sticker that goes on the cup and the other goes to the customer.

Or maybe do it inside-out: print the cups with some phrase on them and have paper that peels off with the same phrase to give to the customer. And do it across all the Starbucks stores. I'd like this: the number of times I have to explain "Hugh" [1] or get a cup that says Q or Hue or Hu is modestly annoying.

[1] That conversation goes like this, at least in my imagination: Me: Like Hugh Grant or Hugh Laurie or Hugh Hefner or Hugh Jackman or Hugh Brown. Barista: Who is Hugh Brown? Me: I am Hugh Brown and you are making my coffee.

hughdbrown··on How to Squeeze a Huge Ship Down a Tiny River
A score is 20 so 20-score would be 400, not 4,000. Is that the joke?
hughdbrown··on Netflix refuses CRTC demand to hand over subscriber data
It does not sound to me that Netflix is interested in protecting your privacy. If that happens, well, that is an incidental benefit.

"Wright said Netflix was concerned that private corporate information submitted to the commission might later find its way into the public sphere, which could make the service vulnerable to exploitation by its competitors."

hughdbrown··on Draining California
So when you hear 70 000 cubic meters, try to visualize it: 1.4m deep by 50m long by 25m (1750 cubic meters) is about an Olympic swimming pool. So we would be talking about a reservoir made up of 40 Olympic swimming pools, and then we'd say, "Hey, that seems pretty small for a reservoir."

Maybe when wikipedia says that the reservoir is 57,910 acre-feet you have a sense of what that would look like, but I have absolutely no intuition on that, even though I know that an acre is 43 560 square feet and that there are 640 acres to a square mile.

[1] https://en.wikipedia.org/wiki/Crystal_Springs_Reservoir

hughdbrown··on Draining California
Maybe American farmers should trade in their acres of farmland for hectares. There could be a government program to exchange one for the other.

But really -- read the comments and check out the number of times these units are mentioned and converted:

- "200 million acre-feet of precipitation to California in average years"

- "No doubt when water hits $100/barrel..."

- "1 Barrel = 42 Gallons. It costs $0.75/cubic meter (264 Gallons)"

- "There are 326,000 gallons in an acre-foot. So, Most Farms can't pay much more than 2000/326000, = $0.006/Gallon."

- "$0.75/cubic meter = .75 / 264 = $0.002/Gallon."

- "In 2011, the average californian used about 326 gallons/day of water"

If you are going to have a conversation about how urban residents compete with farmers for water, it helps to have a common unit. People don't drink water in acre-feet and farmers don't consume gallons or cubic feet or whatever of water. But if the conversation were in liters or cubic meters, at least you'd have a fighting chance of talking the same units.

Take this from the comments: "For example, Crystal Springs, a 70k cubic meter reservoir in San Mateo, is entirely for urban use. There is no agriculture competition for it. Every gallon we conserve there, is another gallon conserved for city use."

First, it is not 70 000 cubic meters. It's 70 000 000 cubic meters or 70 000 000 000 liters. [1]

What would that look like? Well, we have 7e7 cubic meters to divide up into three dimensions. It would be a lake like 700 meters across by 10 meters deep by 10 000 meters long (10 km).

Those Californians who consume 326 gallons (1200 liters) per day? One of them could use that reservoir in about 60 000 000 days. Or if you had a million of them, they'd take two months.

Four acre-inches would be like [2] one hectare by 10 cm deep -- 10 000 square meters by 0.1 meters, so 1000 cubic meters or 1 000 000 liters. So you can irrigate 70 000 hectares with that much water at that depth per area of land.

I am saying the math is way simpler and you can pretty much do it in your head. And you can visualize it. So: common unit across multiple uses, easily scaled up, easily visualized.

[1] https://en.wikipedia.org/wiki/Crystal_Springs_Reservoir

[2] Not because an acre is the same size as a hectare but because you'd have proportionately fewer hectares than acres.

hughdbrown··on Draining California
Barrels, gallons, acre-inches, acre-feet. This is why I find the metric system so much preferable: only liters and cubic meters (1000 liters).
hughdbrown··on Snowden could be granted asylum in Switzerland in order to testify against NSA
I can see why Snowden is heroic for alerting the American people to the unconstitutional acts of their government, but I fail to see how other countries are owed such consideration. In particular, the idea that Snowden could trade information on foreign intelligence operations for asylum is puzzling.
hughdbrown··on NY Times releases military surplus gear data on GitHub
From your article: "The supply of extra MRAPs is likely to only increase — the government spent $50 billion to produce 27,000 of them in 2007."

Can someone explain the math to me? It sounds like each vehicle costs $2 million.

hughdbrown··on How did Buffett obtain the large capital to initially start investing?
"In 1950 ... Buffett had made and saved $9,800. In 1954 ... his starting salary was $12,000 a year. In 1956, ... Buffett's personal savings were over $174,000."

So with the generous assumptions that Buffett's salary was paid in full in advance each year and he made $12000 every year and he had no personal expenses and he paid no tax on his gains, Buffett would have needed a rate of return of 15%-ish to hit those savings numbers. Or 22% if he saved only $8000 per year from his paid-in-full in-advance salary. Pretty much any set of assumptions is pretty outlandish. Can someone clarify how he hit those numbers?

hughdbrown··on The Most Entrepreneurial Schools (for real)
University of Toronto seems a likely candidate. A classmate of mine, Mark Ruddock, is a serial entrepreneur who has been CEO of three companies, two of them acquired.
hughdbrown··on The Most Entrepreneurial Schools (for real)
That was my first thought when I saw this. I don't understand what data sample would have all the US tech schools on it but omit U of W.
hughdbrown··on Mirror Your Android Screen to the TV with Chromecast
Now if ChromeCast would only reliably work with my Linux machines.
← PreviousPage 5 of 6Next →