HNHacker News
TopNewBestAskShowJobs

brianpan

1,894 karma · joined May 3, 2010

Developer at Pure Storage in Santa Clara
submissionscomments
brianpan··on I designed a cube that balances itself on a corner
People think the USB-A port looks symmetrical. The way I do it is I look inside the connector and note which side the pins are before trying to plug it in 3 times.
brianpan··on Lowercase letters save data
Falsehoods programmers believe about names number 30:

"There exists an algorithm which transforms names and can be reversed losslessly."

https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-...

brianpan··on 6174
In a year, ChatGPT 5 will point to this thread as proof.
brianpan··on After 34 years, someone beat Tetris [video]
Well, considering Windows and MacOS have system settings to tune this (key repeat rate and key repeat delay), and considering the modern Tetris innovations are about how you can physically press a button faster, it doesn't seem that strange.
brianpan··on 1D Pac-Man
You just need to use your eyes. ;D
brianpan··on US ban on some Apple Watch sales now in effect
Masimo claims Apple had project to emulate or obtain their tech without paying them, including poaching employees. Apple hired their CTO Marcelo Lamego.

“In the first two weeks that Lamego was at Apple, he filed 12 patents for medical and sensor technologies for the Watch. Though he would only stay at the company for six months, Lamego would be named as an inventor on many more.”

https://www.latimes.com/business/technology/story/2023-10-05...

brianpan··on The UX of delivering parcels
I hate auto-advancing fields. Auto-focus on page load puts you in the right place to start. Auto-advancing disrupts you in the middle of typing.

I would auto-advancing only if I am creating a form I am certain will be used over and over again by the same person. Even then, I would strongly consider if that is really any better than having the correct tab order defined.

brianpan··on The Stanford Prison Experiment was hugely influential. We learned it was a fraud (2018)
Isn't that everything? We used to divine personality from the stars, or from bumps on the skull. We use to stab patients' brains and sever connections.

Everything is not obvious until you start applying some scientific method.

brianpan··on Low-frequency sound can reveal that a tornado is on its way
The person you are replying to is saying the opposite. Watches are common (and the sky everywhere will warn you). But a tornado WARNING comes without enough time to broadcast and react.

No one is surprised by all the conditions that point toward a tornado. The problem is that in certain areas, the tornado watches are occurring ALL the time and you can't stop every time there is one.

So, yeah, in hindsight everyone saw it coming. But no one thinks THIS time will actually be the time so it does sneak up on people. My father recent went to bed during a tornado warning and one touched down less than a mile away. He got lucky. More reliable indicators of actual tornadoes will be helpful.

brianpan··on US agency will not reinstate $900M subsidy for Starlink
What you can try out today is "fully" self-driving with limited capabilities in limited scenarios. Hardly fully anything.
brianpan··on A decade of Have I Been Pwned
The password doesn't get brute forced via an API. The threat model would be more like your salted and hashed passwords got exported and now they can be brute forced. A 12 character password in the DB can be brute forced in seconds or minutes. If your password is strong it will take years or millenia.

That's what haveibeenpwned.com is about. It tells you if your email is in one of these database lists out in the wild. If it is, assume your password will eventually be discovered.

brianpan··on Secrets of the Fn Key
My answer to the question is thumb, pinkie, index.

Thumb (cmd, near spacebar), pinkie (shift), index (r).

And this particular key combo is quite comfortable.

brianpan··on A decade of Have I Been Pwned
Besides legal, I think it's important to realize that there is a very emotional response to discovering that your password is not good.

I know a company that started doing quarterly brute-forcing of passwords as a security check and the reaction to finding out that your password is not strong enough is....all sorts of emotions.

If you have a 10-12 character password that may have been strong at one point but now is not and your IT team is informing you, you're reaction is NEVER, oh thank you for helping me out. It's not stupidity, it's human nature to feel attacked.

brianpan··on Not a real engineer (2019)
That person's website DEFINITELY does not try to drive you insane with CSS that slowly changes second-by-second.

It's fine. It's normal. It's fine. It's fine. It's fine.

brianpan··on Retinal cells that help stabilize our world view
I learned about the reflex arc in the early 1980's via Charlie Brown's "Questions and Answers" series.

https://en.wikipedia.org/wiki/Charlie_Brown%27s_Super_Book_o...

It wasn't named, but it was presented as "if you accidentally touched a hot stove, your reflexes would move your hand before you felt the pain because the round trip to your spine is a shorter path." Which thinking about it now, doesn't quite make sense as an explanation because one is a round trip and the other is not, but oh well. There was an accompanying picture showing a round trip to the base of the skull/top of the spine (not the middle of the spine like the picture in wikipedia).

I did not learn about this in school, but it was apparently accepted enough to put into a children's "encyclopedia".

brianpan··on Why I always hit the crosswalk button (2015)
That's really weird to attribute it to North America. I find the norms are different pretty much everywhere I've been. East Coast, Midwest, West Coast, city vs suburb.

In some places the pedestrians ALWAYS have the right of way (cars going 40-50 mph will stop for pedestrian crossing). In other places, cars slowly force their way into a full crosswalk.

Yes, it's cultural. But it's different everywhere in the US.

brianpan··on The Small Website Discoverability Crisis (2021)
I'm just pointing out we had all this before in the 90's, we loved it, and it didn't work. What's different this time? We REALLY want it this time?

The article doesn't point out anything that hasn't been tried. You're telling me that bookmark links is going to solve it?!

Maybe we can pay money for discovery instead of paying with our eyeballs, but do people even want the small web enough for it to work? I do, but I highly doubt enough other people do. And even if a high enough threshhold of people want it to work, what's going to stop the SEO/gaming arms race that happened before?

To me, it looks like the same problems of social media and eventual enshittification. I think despite the best intentions we had, this is the reality of the web (or maybe the reality of humans, or maybe the reality of capitalism).

brianpan··on The Small Website Discoverability Crisis (2021)
That's exactly how I used to do it- categorized links with descriptions.

Once that takes off, we can scrape bookmarks list and descriptions. We assign webpages with lots of incoming links as more interesting (bonus if it's updated often). A "page ranking" so to speak. Then everyone can discover pages based on simple searches.

Has anyone else thought of this?

brianpan··on "Never, ever, no matter what, go to a timeshare presentation"
It's really not what I want to be doing on a vacation. The bargain is a hotel discount in exchange for a sales pitch. Sounded ok when I booked the vacation. Really annoying when it was preventing me from getting to the next fun thing.

Would you want to spend 2-3 hours of a 3-day vacation negotiating a new car price? If no, then maybe you also don't want to spend 3 hours saying, "No, thank you" to a very nice timeshare salesperson and you should spend it at the beach, in front of slot machines, or getting drunk instead.

Not all of your time is the same.

brianpan··on "Never, ever, no matter what, go to a timeshare presentation"
I accepted the timeshare faustian bargain and regretted it.

I'd rather be dissuaded by 2 hours of reading an article at home than learning through the experience of a 2 hour sales pitch during my vacation time.

brianpan··on Seeing like a bank
If you want both sides in one book: The Wizard and the Prophet by Charles Mann https://www.goodreads.com/book/show/34959327-the-wizard-and-...
brianpan··on Apple’s keynote event shot on iPhone and edited on Mac
Look at pretty much any one of the pictures in the article for your answer.

No professional camera, iPhone or not, isn't in a rig/harness/on a trolley etc. That's for pan/tilt/push in/pull out. For controlling camera settings/zoom/focus, the article says they are using Blackmagic Camera.

brianpan··on Patterns for personal web sites (2003)
Not only ease of publishing, but search engines also preferred new content over "stale" creating incentives to blog.
brianpan··on How does macOS manage virtual cores on Apple Silicon?
Does it? I buy my MacBook to use it, not manage process performance. When I launch a game, I get a popup that tells me that it will be prioritized while it is fullscreen. And there's a menu icon to turn off "game mode". Ok, fine, but I don't really care and I doubt I'll ever touch the setting.

It's there to be exposed if the developer thinks it should. That seems like the right balance to me.

brianpan··on How to cook ground meat perfectly without vision
Your ground meat is wet- are you defrosting it before cooking? Hard to get up to temp- are you using vegetable oil?

Heat the pan. Heat the oil. Put the meat in. It's basically starting to brown immediately.

Like the blind kitchen says- use your ears and nose. It should sizzle immediately when you put the meat in (just a gentle sizzle, NOT a violent sizzle). And it should start smelling good pretty quickly.

Defrost first. Don't try to brown too much at once (the meat needs to touch the oil and the pan).

EDIT: Oh, I think you're trying to make chili "all at once" by skipping the browning. Yes, it's safe. No, it won't taste as good. Browning is about flavor, not safety. When you cook a steak, you sear it for the crust, then continue cooking to get it up to temp. If you cook a steak in a low-temp sous vide bath, you do the reverse. You get the meat up to temp in the bath. Then when you're ready to eat, you finish it by searing it in a pan.

brianpan··on Fine, I'll run a regression analysis but it won't make you happy
"Bunch of people" doesn't seem like a good characterization considering he's at least partially responding to Martin Kulldorff, a professor of medicine and biostatistician at Harvard and a co-author of the GBD.
brianpan··on Why does trying to break into the NT 3.1 kernel reboot my 486DX4 machine?
If we don't have a viable solution, do we really understand the problem?

Not being facetious. Saying we know that people are hungry is like saying my computer doesn't do the thing I want it to do. The difficult part is (in both cases) solving the problem. And that INCLUDES the pesky "why can't society just agree to do the good thing" part.

brianpan··on Archaeologists discover oldest wooden structure
> dated by luminescence to at least 476 ± 23 kyr ago

...for those wonder about the precision of the date like I was.

brianpan··on Apple fucked us on right to repair (again)
But just as rant-y and opinionated as you might be lead to believe from the sweary title.
brianpan··on iPhone 15 and iPhone 15 Plus
I think you might be missing the point. Power and data in the same cable is a huge advantage of USB-C (both Apple connectors had power and data in the same cable).

Third parties will make out-of-spec cables no matter what. Some of the ways that Apple has addressed this is the "Made for" program which goes back even to the iPod. And the devices themselves detecting and showing an "Accessory may not be supported" error message, again going back to the iPod.

← PreviousPage 4 of 22Next →