HNHacker News
TopNewBestAskShowJobs

mbenjaminsmith

1,329 karma · joined July 9, 2009

SSEuAAGo60Ssb9UMZhmYW77MLQcz1azm xSTO8k2zwIBX7jfw4PQEDozixMnjkZ8L
submissionscomments
mbenjaminsmith··on HN Pizza Index: Cost of living by city
Around 300 baht for a meal (presumably for two or more people) is hardly out of reach for anybody but the poorest in Bangkok.

I don't think anyone would call it a luxury food either. If you're (poor and) going to splurge on something you're not going to sit down at a pizza chain.

A related complaint: As flexible as this city's restaurant culture is, it's impossible to get a good pizza at any price.

mbenjaminsmith··on Ask HN: Who is hiring? (October 2013)
Sorry if this is OT but I love Conan's video game reviews. Best of luck on your candidate search.
mbenjaminsmith··on The Secret of iOS 7
I'm not sure I agree with Cringely here either, but I think you're missing some important points:

1. iPhones do support multi-tasking, but the interface for it is poor. This could remedied, especially if iPhone would detect a larger screen and add an additional menu bar.

2. The killer app for the average desktop user isn't Photoshop, it's some manner of email/doc/spreadsheet. These do not require gobs of ram. For everyday use, they require: monitor, keyboard, mouse.

3. Which is quite possibly why Apple has built a zillion dollar data storage center (iCloud).

Actually, Cringely might be right, but I don't think we're going to see it anytime soon. I think it might be Apple's longer-term plan.

Put another way, it does pull together some interesting choices that Apple has made:

1. iCloud -- and more importantly the monster infrastructure developed for it.

2. The growing iOS-ification of OS X.

3. 64-bit processors (which, of course, allow for 'desktop class' amounts of ram).

4. Hardware accelerated screen sharing (AirPlay).

Another thing, I don't understand why you would classify that as a "genius secret idea". I would call it a multi-billion dollar technology company looking a few years into the future.

mbenjaminsmith··on 1/1 Scale F-16 Cockpit
When I was a kid my brother (much older, getting his ME undergrad) built me a 1/5 or 1/6 scale biplane out of plywood and other lumber. It had working control surfaces and the wooden propeller (which he had "carved" by hand on a table saw) rotated freely. Needless to say I was in aviator heaven for a summer.
mbenjaminsmith··on On Ansible
Hope no one minds me sharing this here:

http://lattejed.com/first-five-and-a-half-minutes-on-a-serve...

I'm not surprised most of the comments are positive. Ansible is a great tool. I recently started using it and would recommend it without qualification.

The linked post contains a simple Ansible playbook for hardening a virgin (Linux, Ubuntu in this case) install as well as how to install Ansible (on OS X) and some of the basics.

mbenjaminsmith··on A Japanese Social App Contacts New Shores
> Software in East Asia would export better if it grew in a more meritocratic environment.

That sounds about as antiquated as "Asians can't innovate, they just copy". I actually heard that line out of an American kid who had just arrived in Asia. He was, needless to say, a complete idiot.

The penetration rate of Line in Thailand is very high. My friends and I were early adopters and saw it grow organically, mostly because of the stickers included in the app (they're funny).

Having used Line daily for one -- probably closer to two -- years I can say it's a well made app. You don't need a conspiracy theory or to insult Japanese culture to account for its success.

mbenjaminsmith··on How not to check the validity of an email address
When you think about it it's actually pretty elegant -- if your purpose is to write something that appears to work but will do the worst possible thing when crawled.
mbenjaminsmith··on Ask HN: Freelancer? Seeking freelancer? (September 2013)
SEEKING WORK - Remote

Programmer: desktop, mobile and full stack web development.

- Web: JavaScript, CoffeeScript, Python, Django, Node.js, Meteor.js, MongoDB

- Desktop & mobile: Objective-C

- Other: Lua, C#, C++, Haskell, Ansible, numerous testing frameworks

New-ish professional blog: http://lattejed.com

Email: matthew@lattejed.com

mbenjaminsmith··on Learning how to think
> the tendency for girls there to treat you as an ATM card with no pin number just wore me down.

Here's some advice: Choose your girlfriends more wisely.

I've lived in Thailand for 14 years. I don't have the issues you mention with visas. When I ran a company here I hired a lawyer to take care of it. No issues. I no longer run a company here but still hire a specialist to take care of my visa. It costs me a little bit of money and maybe a couple of hours of my time per year.

I didn't have the same issues with Thai staff either. I found them to be (mostly) hard working and good at what they did. The language barrier was sometimes an issue but that's because I wasn't fluent in Thai at the time.

I know a lot of (tech and other) entrepreneurs here. Apart from the normal difficulties I wouldn't say any of us have problems running companies here or maintaining relationships. I've had maybe three or four conversations about visas.

Foreign ownership laws are problematic, which is why I would't recommend starting a company here as a foreigner. The other issues you're talking about are pretty foreign to me and I wouldn't say your experience is representative of expats here.

Cost of living has certainly gone up. That has pros and cons.

mbenjaminsmith··on Don't use bcrypt (2012)
Question:

How can algorithms with an adjustable work factor be better or worse than each other?

Answer:

They can't be. They each provide an arbitrary amount of work (or entropy if you want to look at it that way) to a non-ideal key (e.g. a password).

Moreover, any discussion of 'how much is enough' is a guess. How powerful the system used to brute force your keys will be is unknown.

I've read things like 'adjust it until it takes 0.5 seconds on your computer'. That makes sense if and only if your key can only be attacked on that same machine, which is probably seldom the case.

The rule of thumb is that it should be as expensive as you can make it (weighing user experience, operating costs, etc) and that more is better than less. There is no definite level of security provided by these algorithms (or families of) and their relative value can't be easily compared.

Scrypt is an exception as it can use an arbitrary amount of memory, which adds a dimension to the cost added.

Having said that, unless you're actually using these for what they were intended (deriving keys) and encrypting something then you're probably adding little actual security to your users' lives.

I would consider this topic firmly in the realm of security theater. There's entirely too much handwringing about hashing passwords and entirely too little about encrypting user information or providing anonymity (where appropriate).

I think we'd all be better off putting notices on signup pages that say "please don't reuse passwords" and spending more time on other more important security issues.

Better, where we can we should move to zero-knowledge, bad-password tolerant protocols like SRP and bypass this issue entirely.

mbenjaminsmith··on Will we ever want to have sex with robots?
That's supposedly how the internet grew as rapidly as it did, yes. I don't buy it for sexy robots though.

In order for a robot to be sexier than a blow-up doll they would likely need a level of sophistication that would make them 1) expensive and 2) able to do more valuable tasks.

Also, given human nature, someone who could afford a sexy robot could get laid with a human. I don't mean a prostitute either.

The real revolution will be robots that can cook, clean and drive (supposing we need drivers by then). Take a look at what a properly trained butler will cost you per year. If you could make a butler robot that costs 100k with a 10 year service life then you'll probably reshape human society.

mbenjaminsmith··on Film on Salinger Claims More Books Are Coming
One of my college roommates grew up close to Salinger. Many years ago (he told me the story in the mid-90s) he had heard from a local firefighter that after a fire at Salinger's house, it had become apparent that there was a large safe in his house that contained a number of unpublished manuscripts. We had read all of Salinger's work at the time so we had a lot of fun speculating about when and what would eventually be published.
mbenjaminsmith··on HKSAR Government issues statement on Edward Snowden
> Basically they told Snowden they'd stall for him (docs are missing page 4 - please resubmit) but he'd better hit the road fast.

Do you mind citing your source(s)?

mbenjaminsmith··on HKSAR Government issues statement on Edward Snowden
Wikipedia:

"Ellsberg also shared the documents with New York Times correspondent Neil Sheehan under a pledge of confidentiality. Sheehan broke his promise to Ellsberg, and built a scoop around what he'd received both directly from Ellsberg and from contacts at IPS."

No, Ellsberg got duped. He also went into hiding afterwards (although briefly). He never deliberately put it all on the line.

Snowden made this information public and shortly thereafter admitted to it -- knowing full well that it would end his life as he knew it. That's the act of a patriot.

mbenjaminsmith··on HKSAR Government issues statement on Edward Snowden
> For the past 10 days we have been hearing non-stop reports of the infamous extradition process that will drag on for 10-15 years in HK

Have we? I didn't read those. I also didn't expect HK to grant asylum and I don't think there's any precedent for a US citizen seeking asylum in or being extradited (or not) from HK.

HK's track record with asylum seekers isn't that great (around 10% are granted asylum) and the bulk of those cases involve people from the region. HK doesn't have its own laws in place regarding asylum seekers and instead defers to the UNHRC for those decisions.

Did Snowden leave HK because they asked him to? I don't think there's any evidence of that. (Correct me if I'm wrong.) What they did do is refuse to arrest him at the request of the US and refuse to treat him like anything other than an American tourist. I'd say they did all that could be expected of them.

> Snowden put HK in a very tough position this is literally the best way they could get the US off their backs.

I think you might be overestimating how much HK & China care about what the US wants. The US isn't in a position to dictate policy to Beijing.

mbenjaminsmith··on HKSAR Government issues statement on Edward Snowden
Agreed.
mbenjaminsmith··on HKSAR Government issues statement on Edward Snowden
My opinion of the HK SAR, which has always been quite high, just went up a couple of notches.

I hope Snowden finds asylum and can live a reasonably comfortable life. He's a patriot. I'm a US citizen and I'm pro-US but this bullshit has to stop.

mbenjaminsmith··on Email Sent by Michael Hastings Hours Before His Death Mentions ‘Big Story’
Take a look at the paper I referenced above. Their tests show the ability to disable braking while manual override isn't possible.

While that doesn't address this specific car, it shows that it's possible on at least one type of car.

mbenjaminsmith··on Email Sent by Michael Hastings Hours Before His Death Mentions ‘Big Story’
Brakes in most modern cars are under computer control. They are in mine. I know that because I can disable that control if I want to drive more aggressively.

Before you say something's impossible, you might want to do some research.

http://www.autosec.org/pubs/cars-oakland2010.pdf

Cars can be controlled via their onboard computers.

> I think you're overestimating the importance of Mr. Hastings.

Wikipedia:

"His Rolling Stone profile of General Stanley McChrystal, commander of NATO's International Security Assistance Force in the Afghanistan war, documented the widespread contempt of him and his staff for civilian officials in the US government and resulted in the general's resignation."

On the journalistic threat scale of 1-10 I'd say Hastings was an 11.

mbenjaminsmith··on Email Sent by Michael Hastings Hours Before His Death Mentions ‘Big Story’
Thank you.

Maybe a mod can swap the link. I don't think it matters under the circumstances though, this story is going to go under a microscope.

mbenjaminsmith··on Email Sent by Michael Hastings Hours Before His Death Mentions ‘Big Story’
Here's the same story via the LA Times:

http://www.latimes.com/local/lanow/la-me-ln-hastings-crash-e...

Also, the local station KTLA broke the story.

mbenjaminsmith··on Low batteries on your Tesla? Swap ‘em out
That doesn't account for the recycling of the aluminum which by itself is quite efficient.

I just pulled up a number of around $1/kg for scrap aluminum. That's 55% of your cost. I'm sure that's wildly optimistic but that drops your fill up to under $10. That's in the ballpark of the electricity costs for the Tesla.

mbenjaminsmith··on Low batteries on your Tesla? Swap ‘em out
> and has low power density

Wikipedia:

"They have one of the highest energy densities of all batteries ... an electric vehicle with aluminium batteries has the potential for up to eight times the range of a lithium-ion battery with a significantly lower total weight."

> Because it is highly inefficient

I just read in the 20 - 30% range. One, that's a lot better than a gas burner. Two, your magical 93% doesn't account for the efficiency of the source of the electricity. Over 40% of the electricity produced in the US is from coal. The average efficiency of a coal plant is around 30%.

Coal plants are also the #1 source of greenhouse gasses in the US.

mbenjaminsmith··on Low batteries on your Tesla? Swap ‘em out
> Tesla's filed eight patents for metal-air batteries.

> Can't imagine a 30k Tesla with this technology.

Sounds like Musk can imagine it. Don't know about anybody else but I'll side with Musk vs anonymous HN poster #5674.

> But all I can really think about are electric supersonic VTOL jets. Which might crash if you fly too high...

All jets crash if they fly too high. (Well, it's not necessary that they crash but they have a well defined operational ceiling.)

mbenjaminsmith··on Low batteries on your Tesla? Swap ‘em out
If we're going to be swapping things at charging stations, why not use a technology like this:

http://www.phinergy.com/

Takes a refill of plain water every ~200 miles and a swapping of aluminum at larger intervals. Aluminum is common as is the recycling of it. It's also a lot easier to handle than battery packs I would imagine -- lighter, safer, etc.

Not sure about the range but early press suggests it to be at least 1k miles between changes. I put around 4k miles on my car a year (much lower than average, I know). I take my car in at least twice a year for service so it would get half of them "for free".

Even at 12k miles per year that's only once a month. If it could be done in 15 minutes (a number I just made up) that's not much of a PITA.

I wonder what the cost would be vs gasoline vs the cost of buying a car packed with LIBs.

mbenjaminsmith··on Advice for young developers
Thanks for joining the discussion.

Qualified it is still bad advice. The last thing the software industry needs is a hazing period for unscrupulous companies to take advantage of. If you're really lacking in any demonstrable experience then work on a personal project or an open source project until you can show that you know what you're doing. The pay is the same and what you'll have to show for it is just as valuable (if not a lot more) for future employers -- at least the ones you're likely to actually want to work for.

>> "fast-moving, multi-faceted company with real clients"

Before I got into software I built a public relations agency from the ground up. I used to dream in corporate double-talk. Even I don't know what that phrase means.

mbenjaminsmith··on We Think We Know What Elon Musk's Hyperloop Is
I would go one step further and say that the mechanism you describe would also keep the train off the floor (and would possibly be handled by the train, not the tunnel). It seems to me that using electromagnets for propulsion only and not for levitation would drastically reduce costs.

I could only guess at the aerodynamics but I have a feeling you could just give the train a flat bottom and make the end of the train pointed like the intake of a jet engine. At speed it would compress the air and force it between the train and the floor of the tube in a way similar to how an air bearing functions. (Actually all sides, assuming it was rectangular, would work in the same way.)

mbenjaminsmith··on Wait, What?
Looks like it's preventing most exceptions of that type from being logged. That would make sense if it's the type of exception likely to repeat itself constantly (until addressed). Using a random number as a gate is easier than measuring/throttling the rate that you're logging at.
mbenjaminsmith··on The //* /*/ //*/ comment toggle trick
I'm glad to know I'm not the only one abusing compiler macros for "ghetto source control".

Having said that, there are plenty of cases where you can't use macros (like all languages/compilers/interpreters that don't support them). I don't agree with the author here though. Just comment the damn code out normally until you can clean everything up. Doing it that way encourages leaving that mess intact and forgetting about it.

mbenjaminsmith··on We used to sleep twice each night
Wow, my wife has started to do this and I thought it was really strange. I'm happy to see it's not unheard of. We live "normal" lives of course, careers and lightbulbs, but she will often go to bed early (by my standards) and wake up sometime after midnight and work for an hour or two before going back to bed.
← PreviousPage 4 of 15Next →