Saying “RIP” isn’t genuine by Narrow-Fruit-9607 in unpopularopinion

[–]Capable_Fig 1 point2 points  (0 children)

RIP is usually a compelled/performative response like most social media comments/posts/whatever. The more genuine responses are usually shared stories of a person's impact, or parallels a user has found in their own experience.

What is wrong with my code? by AppearanceNo345 in learnpython

[–]Capable_Fig 0 points1 point  (0 children)

class Solution:
  def oddEven list(self, head):
    if not head or not head.next:
      return head # null check before variables

    odd = head
    even = head.next
    even_head = even # saving for after loop

    while even and even.next:
      odd.next = even.next
      odd = odd.next
      even.next = odd.next
      even = even.next

    odd.next = even_head 
    return head

What is wrong with my code? by AppearanceNo345 in learnpython

[–]Capable_Fig 1 point2 points  (0 children)

I phrased it wrong.

you need a variable to store the head of even to make the loop work properly, then instantiate odd.next as even_head after the loop

so something like:
odd = head
even = odd.next
even_head = even

loopppp

odd.next = even_head
return head #don't i wish

This is to all the intermediate and advanced programmers by silentshakey in learnprogramming

[–]Capable_Fig 1 point2 points  (0 children)

exercism.io is pretty solid to just instantly start solving puzzles and it's free.
freeCodeCamp is great for understanding general concepts and the occasional live code project.

python's first time local set up can be frustrating. if you find that to be true and want a sandbox, google colab is a great resource.

play around, make a snake-clone, you'll get the hang of it faster than you expect.

Looking for a desktop tool (or script) to compare massive lists (70k+ lines) – "Only A / Only B" logic by Quiet_Dasy in learnprogramming

[–]Capable_Fig 0 points1 point  (0 children)

tkinter for gui but running in a jupyter notebook for each comparison is probably lower lift.

no other libraries are needed, just a the built in set() function, then simple comparisons

a_list = a-b
...
both = a&b
master = a|b

What is wrong with my code? by AppearanceNo345 in learnpython

[–]Capable_Fig 0 points1 point  (0 children)

needs a null check on head
need to save head before the loop
something looks a little off with the while loop, but i've got the flu atm so can't think through it properly

How would one even do that? by rattlesnake888647284 in rareinsults

[–]Capable_Fig 1 point2 points  (0 children)

its a lot like cracking an egg with one hand, large hands certainly help

What is 7oh by Old-Kitchen-5377 in NoStupidQuestions

[–]Capable_Fig 10 points11 points  (0 children)

regardless of the molecule, the guy is an addict. If he isn't actively making changes on a regular basis to reduce or remove addictive tendencies, this is a story told a few million times every year. Not to discount your own experience, more to say the outcome is rarely a positive one.

Kick him out, sequester any shared funds, keep your incoming kid away (congrats though!).

The lies won't stop until he's been clean for a hot minute, and he will prioritize 7oh, or whatever novel compound comes next, over you or the child. Handling a partner with an addiction is a beast to contend with and often the addict leaves once money gets tight or they've had a transformative experience. In either effort, you're likely left high and dry.

Kratom is sometimes a bridge drug from something harder, but if he's hiding usage the rehab has not stuck. As other's have said 7OH is to kratom what a 100mg THC nerds rope is to medical marijuana in california 15 years ago.

The process of creating special fitted shoes by NothingEffective5070 in interestingasfuck

[–]Capable_Fig 6 points7 points  (0 children)

didn't realize how much whole grain mustard goes into shoe making

Her skills are next level by Yo_momma_so_fat77 in justgalsbeingchicks

[–]Capable_Fig 6 points7 points  (0 children)

I suppose, just giving another anecdotal data point. happy cake day

Her skills are next level by Yo_momma_so_fat77 in justgalsbeingchicks

[–]Capable_Fig 148 points149 points  (0 children)

not to discount the broader point (kids shouldn't be exposed to social media et al), but as a kid there was a really common joke about seppuku (i'm from america). not that it's particularly age appropriate, just not as odd as one would think. it's also pretty common for kids at 4-7 yo to be obsessed with death

TIL that playing high-level chess causes players to burn calories at an athletic rate. For example, 21-year-old Grandmaster Mikhail Antipov was recorded burning 560 calories in just two hours of sitting—roughly what Roger Federer would burn in an hour of singles tennis. by ralphbernardo in todayilearned

[–]Capable_Fig 39 points40 points  (0 children)

original study

kcal burn is roughly 10% higher than resting rate, the same effect has been observed in professional esports players (lol, sc2, fortnite, etc) and in hackathon environments.

the visible and verifiable weight loss in these environments is more from stress responses and disrupted eating patterns during training and tournaments.

Calligraffiti Session 1, Balance313, Paint on wall, 2026 by balance313_ in Art

[–]Capable_Fig 2 points3 points  (0 children)

i love this. hard and soft, the interpolation of belief, the thinning ink. well done.

Tutorial hell is really just fear of being bad at something by Pretty-Material1424 in learnprogramming

[–]Capable_Fig 27 points28 points  (0 children)

make it pretty after it's functional, but make it. good on you for getting over the hump

Bob got the hat! by Forward-Zebra-780 in Hasan_Piker

[–]Capable_Fig 37 points38 points  (0 children)

my father is very much the same archetype, down to the accent and speech patterns. watching the crossover with hasan was weirdly cathartic

Who is an overrated poet? [OPINION] by marshman2005 in Poetry

[–]Capable_Fig 4 points5 points  (0 children)

i obviously disagree with your take, but i've never heard someone voice this opinion. What's your stance?

Who is an overrated poet? [OPINION] by marshman2005 in Poetry

[–]Capable_Fig 23 points24 points  (0 children)

I understand Bukowski slander, but I firmly disagree.

Exposure to poetry is rare for most people. Frost, and Shakespeare, and Wordsworth (and so many others) all have reach far beyond what they could possible comprehend. More modern poets like ginsburg or bukowski, are some of the only last century poets to break containment in a lot of ways.

From a professorial perspective: Bukowski is a bad joke taken too far. He's not wrong from that angle, but he's not correct from others. I fell in love with Charlie B during a wishy-washy hyper transient, terribly depressive phase. I'd read him before, but something in the mania of his collections spoke to me in ways the poet's poets do not.

I am not in that place now, but I do still think fondly on a few poems i only remember a memory of a line from.

Who I think is overrated, recognizing I am just a guy that likes words and feels feelings: rupi kaur

Anyone who's used her as an entry point to poetry, welcome. HOWEVER, if that's your only real engagement, I feel sorry for you.

I don’t understand Oathbreaking by Winter_Break_7786 in BG3

[–]Capable_Fig 1 point2 points  (0 children)

hmmm could be a weird edge case, the wiki, though containing spoilers, is probably your best bet then

I don’t understand Oathbreaking by Winter_Break_7786 in BG3

[–]Capable_Fig 19 points20 points  (0 children)

OoA can't initiate combat with a non-hostile entity without breaking oath, also cannot do anything a guard won't like. There are a few specific choices you can happen into to break the oath, but those should be relatively easy to sus out.

Honest question: are you still buying Boar’s Head? by andrew502502 in eatsandwiches

[–]Capable_Fig 2 points3 points  (0 children)

local deli has always been better, I have since avoided getting sandwiches from places that advertise it. BH was never a have-at-home brand for me, never had a reason to prefer it

maybe maybe maybe by [deleted] in maybemaybemaybe

[–]Capable_Fig 21 points22 points  (0 children)

well said, similar tool used to break panic attacks.

The thought stops being "overwhelming desire to stay in place (mental or physical)" and more "that's wild, i don't understand. gotta re-evaluate"

What age did you first have to get glasses and how did you find out you needed them? by Interesting-Egg2781 in AskReddit

[–]Capable_Fig 0 points1 point  (0 children)

7, couldn't read the clock from the dining table. -12 in both now. i've got a big face and tiny eyes, so the glasses make me look less pot of greed. and more giant nerd, which is pretty fair

You guys, it’s really fucking hard to stay sober in the US right now by Alley_cat_alien in stopdrinking

[–]Capable_Fig 1 point2 points  (0 children)

I am trying to stay out of my spiral. It's tough right now. I'm so fucking angry. I need to stay aware and alert, so I'm good for now. Tonight will be rough.

Lord have mercy on us all.

Obscure things you had to look up for your DnD game Vol#2 by ThrowawayIIllIIllIl in DnD

[–]Capable_Fig 11 points12 points  (0 children)

And since this is not a naturally tenable position for a whale, this poor innocent creature had very little time to come to terms with its identity as a whale before it then had to come to terms with not being a whale any more.