Live data from Hacker News

Optimal Peanut Butter and Banana Sandwiches

ethanrosenthal.com

71–80 of 110 posts

Re: Optimal Peanut Butter and Banana Sandwiches

#71
post #37

I am an emergency physician without any formal software training and for the last three months I’ve been trying to build a program that segments the wall of the heart from an ultrasound video and then identifies regions that aren’t moving (an early sign of heart attack). There are many similarities between this man’s project and mine. And if I had his knowledge I may have cracked my problem by now and would have new…

This paper might be useful [0]. It measures the thickness of a tissue. If you do that over time you can detect the parts that aren't moving. I studied under Yezzi for a while. Cool dude. [0] http://iacl.ece.jhu.edu/~prince/pubs/2003-TMI-Yezzi-Thicknes...

Awesome, thank you for the reference. That's the essence of finding regional wall motion abornomalities. When looking at the ultrasound I look for parts of the myocardium that don't change in size relative to their neighbors during the cardiac cycle.

Re: Optimal Peanut Butter and Banana Sandwiches

#72
post #69

Earlier quoted context omitted.

In addition to posting your contact info please also check out this course designed for people from other fields who want to learn machine learning. https://www.fast.ai/

Fast.Ai is incredible. Love it. I've bumbled my way through it and was able to make a unet learner trained from this dataset -- https://www.creatis.insa-lyon.fr/Challenge/camus/ -- in order to segment the left ventricle from an apical four chamber view. It's a start, but I still have a long way to go.

Awesome!

Re: Optimal Peanut Butter and Banana Sandwiches

#73

Earlier quoted context omitted.

In addition to posting your contact info please also check out this course designed for people from other fields who want to learn machine learning. https://www.fast.ai/

Wow I sometimes I understand the downvotes but this one doesn’t make any sense...

Agreed! Thanks for posting this

Re: Optimal Peanut Butter and Banana Sandwiches

#74
post #51

I initially assumed the challenge was to fit the entire banana on the bread in a single layer; I am disappointed that problem was not solved, but it seems like it should be a relatively trivial extension of the package provided (produce a packing for [N, M] slices of banana, pick the number of slices which covers the bread without any left over pieces). (Of course, as someone who does not eat banana sandwiches, I hav…

If you want to make a PB&B that uses the entire banana, simply peel the banana, coat the flesh in PB, tear up your bread slices and adhere them to the banana. This method is not guaranteed to use all the bread.

This method may also compromise the structural integrity of the banana after trying to spread PB on it.

Re: Optimal Peanut Butter and Banana Sandwiches

#75

Wow this guy can really see something through to the end. I have had some good ideas that I give up on once things become complex but he carefully saw this “meaningless” but super difficult project through from beginning to end. That alone is a sort of sacred skill, regardless of the task.

This is something I struggle the opposite of. When I dive into something, I get super focused, to the point of it severely disrupting my life. I had a few projects in grad school that kept me up for like 2 days straight even though they weren't due for a few weeks. I think the author has that same level of manic focus. It's honestly why I can't be a programmer, it's not that I can't write good code, it's my head spac…

That sounds like a gift haha. It would definitely not work well for most programming gigs (sprint style, kanban board, small estimated tasks with regularly reported progress), but in the right niche you could do stuff that most of us can only dream of.

Re: Optimal Peanut Butter and Banana Sandwiches

#76
post #55
post #52

As expected scientists never talk about the actual taste. You probably want ripeness and the peanut butter/banana sugar ratio to make sure banana flavour doesn’t overwhelm the entire taste profile.

Easily solved by analyzing the color of the banana peel and recommending a quantity of peanut butter to match

Yes he needs to add that feature to round it out.

Re: Optimal Peanut Butter and Banana Sandwiches

#77
post #46

Excellent project. Very well written and executed. Love it. I've found that I can get excellent consistency in coverage by slicing the banana vertically to get long rectangular slices and then laying the slices side-by-side - generally about 4-5 across.

Over many years, I have highly optimized my PB&B production process:

1. Apply peanut butter to bread. (Copious amounts. I prefer Adam's.)

1. Peel banana and cut length-wise. Place one half across top of bread where the loaf curves. Use curve of banana to match curve of bread. Cut off part of banana that hangs off.

2. Invert other half of banana and place it parallel to first piece, slightly tucked under. Cut overhang.

3. Take the two overhanging pieces, and place them next to each other on the remaining third of the bread.

With a properly sized banana and loaf, this provides almost perfect uniform banana coverage, requires only three cuts, and dirties only one knife.

Re: Optimal Peanut Butter and Banana Sandwiches

#78
One technique I've seen for tomatoes is that if you cut two slices in half you can make a square with the rounded edges facing in towards each other: I'm sure you could do the same with bananas. You could possibly extend your algorigthm to match similarly sized slices to get the most optimal pairings.

Re: Optimal Peanut Butter and Banana Sandwiches

#79

Wow this guy can really see something through to the end. I have had some good ideas that I give up on once things become complex but he carefully saw this “meaningless” but super difficult project through from beginning to end. That alone is a sort of sacred skill, regardless of the task.

This is something I struggle the opposite of. When I dive into something, I get super focused, to the point of it severely disrupting my life. I had a few projects in grad school that kept me up for like 2 days straight even though they weren't due for a few weeks. I think the author has that same level of manic focus. It's honestly why I can't be a programmer, it's not that I can't write good code, it's my head spac…

As someone with ADHD, this sounds like an ADHD symptom called hyperfocus. Note I am not trying to e-diagnose you with something, I'm just comparing the similarity of your description to the description of an ADHD symptom, not saying I think you have ADHD.

I make that comparison because if you do a search for hyperfocus, you may be able to find strategies to help you break out.

For me, hyperfocusing can be so strong that hours will pass with me barely noticing. I often say that the house could burn down around me and if I am hyperfocusing, I'd be toast. I don't get it for multiple days as you describe, but it's not unheard of for others. My dad is a metallurgical engineer, and described something basically exactly the same to your experience with programming. He had some lab course involving programming freshman year and stayed in the lab for 24 hours straight obsessed with a project. When he broke out of the 'trance,' he realized that he could never be a programmer full time because it would completely take over his life.

For others who maybe aren't familiar with this feeling, it is most definitely NOT a pleasant feeling. I always come out of that state feeling almost sick to my stomach, headachy, dissociated. Not something I enjoy, and not really something I can direct to be more productive.

----

(Note that it may sound odd to describe hyperfocusing as an ADHD symptom -- isn't ADHD about a deficit of attention? But actually ADHD is kind of a misnomer; a better name might be "Executive Functioning Disorder." ADHD is more about being unable to direct or control your focus, and this can work either way -- to make you appear less focused, or severely over-focused. In particular this symptom is not a side effect of medication, and in fact medication can help to break out or prevent you from being sucked in in the first place.)

Post reply on HN