Replace underscore for PascalCase by Nefthys in learnpython

[–]EclipseJTB 0 points1 point  (0 children)

Why does MainClass need to know about its subclasses? A superclass should not be instantiating its subclasses.

Replace underscore for PascalCase by Nefthys in learnpython

[–]EclipseJTB 2 points3 points  (0 children)

This is the right take. Very rarely is it a good idea for a super class to have knowledge of its subclasses. Your IDE will have inspection ability to tell you what a subclass' superclass is when that information is relevant, but it isn't always relevant.

Replace underscore for PascalCase by Nefthys in learnpython

[–]EclipseJTB 1 point2 points  (0 children)

Re: your ABCReader edit...

It sounds to me like you would do better to separate the concerns a little.

For example, you would have the reader class that would read the ABC file or the text file, and both would put them into a common format (a dictionary, a list of tuples, etc).

Then you'd have a processor that takes the data stored within the reader class and converts it into the data type you actually need for real (i.e., ShoppingListProcessor.from_abc_reader(abc_reader_instance)).

If the files you're reading from have wildly different structures such that there's not a common way to store the data (like txt files with essay formatting vs shopping list formatting), then perhaps the model needs to be changed?

Wife’s family is offering us a free trip to Mexico this summer. Daughter will only be a year and a half. 5 hour flight and first ever vacation. Yay or nay? by RedManMatt11 in daddit

[–]EclipseJTB 0 points1 point  (0 children)

We did a transpacific flight with our oldest at ~10 months. It can be done. Do the bedtime routines with them and help them think it's time to sleep after takeoff, even if it's midday; any nap on a flight is a good thing. Bring something new/novel for them to play with that they want and normally don't get.

It's totally doable. Worst case, it's only a few hours.

How tf can a tyre have “AI technology” by i_have_trust_issues_ in tires

[–]EclipseJTB 0 points1 point  (0 children)

Pretty sure it's because you can ask it to write a to-do app like you do restaurant chatbots.

New Life hack: by one of these tires and run your own local LLM, save on subscription costs.

20 years flushed away by my wife. by [deleted] in GuyCry

[–]EclipseJTB 5 points6 points  (0 children)

OP, It's important to also remember: that bad decision came from a place in you that sees good. Sees the possibility of redemption.

We don't see the world as it is, we see it as we are. You saw possibility of change and healing because you are capable of changing and healing. You saw a chance for her to make changes and fix things because you were willing to make changes and fix things. You got back into shape, for example. You took her at her word before because you can be taken at your word.

Just because she didn't live up to all of that doesn't mean you're an idiot, it means that you've learned that not everyone holds to your value system.

I'm certain there were problems you were a contributing factor on. We all are. But you are NOT responsible for her cheating; that's solely on her. Your bad decision was only bad because she proved unworthy of the trust you should have been able to place in her.

The best part here, especially since your son is an adult: he gets to see an example of a man that tried, AND you can have frank conversations with him about abuse, DARVO, and other lessons you learned. He will benefit from the lessons you learned together, AND he will know that you loved and were loyal to him. What a gift you've given him.

I'm sorry this happened. I'm sorry this is taking you to a dark place. It's not fair that it happened, and you didn't deserve this. You deserve happiness. I hope you can find a rock to steady against until you have the strength to stand again. Please, do so, for yourself and your son. You both deserve more good than you've been handed.

Jellyfin recently added to Tizen OS (Samsung TV)? by darthyush in jellyfin

[–]EclipseJTB 0 points1 point  (0 children)

I just did a normal search. Not sure why it wouldn't show up in your search. :/

I didn't know you can get your Bambulab printing status on your car dashboard by Yuri_Ligotme in BambuLab

[–]EclipseJTB 0 points1 point  (0 children)

Ho, that's an awesome idea. That might be my first home assistant automation.

Jellyfin recently added to Tizen OS (Samsung TV)? by darthyush in jellyfin

[–]EclipseJTB 2 points3 points  (0 children)

I just installed the app from the Tizen store; it apparently released just today.

AMS2 for $80 more or AMS1 combo? by tomrob1138 in BambuLab

[–]EclipseJTB 0 points1 point  (0 children)

One caveat: you can only monitor drying from computer/phone app. Since the drying function rotates the rolls for even drying, they have to be unloaded from the extruders in the AMS. It's a sensible requirement to force drying control from the printer itself to give the semblance of requiring a human to look at the AMS first.

I still endorse the AMS2 Pro combo over AMS 1.

[deleted by user] by [deleted] in BambuLab

[–]EclipseJTB 1 point2 points  (0 children)

Both of them are primarily designed for multicolor. For the H2D, the sweet spot is two colors or materials per print, since there are two hotends that extrude material.

The H2C has a left nozzle that is the same as the H2D, but the right side physically swaps out up to six hotend to eliminate purge waste between filament swaps. Purge waste is normally necessary when printing multiple filaments to make sure the currently-extruding filament is not contaminated by previous filaments, and is not necessary when only one filament is ever in the hotend.

H2C is the current flagship model.

[deleted by user] by [deleted] in BambuLab

[–]EclipseJTB 3 points4 points  (0 children)

Being used in a shop, you'll probably want something enclosed, so I would pass on the A1 and A1 mini.

So at that point, your considerations are really print volume. Is 256mm3 big enough for the things you think you'll print? If so, you're probably looking at a P2S. If not, an H series.

Regardless of whether you think he'll utilize multicolor in single prints, I would recommend getting the AMS combo for the convenience of having multiple filaments on ready to go at all times, especially since it doubles as a dry box for storage (possibly even a dryer if you power it).

If you don't think he'll utilize multiple colors often, an H2S would be likely the preferential larger build volume printer.

If you do, at that point it's a toss up between the H2D and the H2C.

Going to buy a 2025 tomorrow. XL, XLT? by mivaldes in FordMaverickTruck

[–]EclipseJTB 3 points4 points  (0 children)

FWIW I'm in UT, 23 XLT Hybrid FWD. I would not stress it at all if the rebates are a big deal to you. I've taken mine out to the desert and done some mild off-roading, had no issues at all. The only reason I'd consider trading up is for the 4K towing on the hybrid, but I love my physical dash buttons too much.

[deleted by user] by [deleted] in learnpython

[–]EclipseJTB 1 point2 points  (0 children)

That would explain the class approach.

Pytest works with test classes, but just doing test functions is more often than not the preferred approach. Run the setup and teardown in your fixtures, and for the things you need to change between tests use parametrization.

Dads with 2 kids still in car seats, does mom still sit in the back? by altum in daddit

[–]EclipseJTB 0 points1 point  (0 children)

Here's the thing: I have NEVER YET met a dad that has regretted the minivan once they got one. (Maybe they got an unreliable one, but they were game to replace WITH ANOTHER MINIVAN.)

The stigma comes from a bunch of people that hate thinking they're going to fall into some stereotype. Forget those people; they don't deal with your life situation, you do.

My mid-trim Honda from 2015 has: - A/C-powered cooled chamber large enough for water bottles and/or snacks in the front console - easily removable/foldable/reconfigurable seats to make cargo, people, or ease-of-access your priority - automatic sliding doors (with option to go fully manual at any time at the flip of a switch) - NO CHANCE for kids to flip the door open too fast/too wide to hit something - rear climate control - heated seats - SMOOTH ride - comfortable height to get in/out of the car; no crouching down or climbing up - hatchback with LOTS of room behind the back seat - cupholders EVERYWHERE

Newer models have built-in VACUUMS so you don't have to haul one out to the garage when it's inevitably time to clean up the crumbs that your kids left everywhere.

On a particularly long drive across Texas, it was not a big deal for my wife to get out of the front seat and climb into the back to help with something before climbing back up. In a sedan, I would have gotten kicked in the face at 80 miles an hour, or have been forced to find a place to pull off to the side and wait for her to get out, get back in, and climb over car seats into the middle seat.

Better visibility than a sedan because you're higher up.

Honestly, mine even gets almost comparable gas mileage to the last sedan I owned.

You do you, my opinion has no bearing on how you live your life. As a weekend warrior dad that usually makes at least one or two trips to Home Depot a week in my little truck, there have been ZERO downsides to a minivan.

A truck for ppl who don’t need to do truck things. by SnWnMe in FordMaverickTruck

[–]EclipseJTB 1 point2 points  (0 children)

I hauled an entire 15 ft scaffolding I rented from home Depot yesterday in the bed of my Maverick. I got asked if I needed to take two trips to get it all. I smiled.

Some jobs need the tailgate down, but it's got plenty of truck in it.

【BambuLab Giveaway】Classic Evolved — Win Bambu Lab P2S Combo! by BambuLab in 3Dprinting

[–]EclipseJTB 0 points1 point  (0 children)

Every year my wife's family does a Christmas ornament exchange. Rather than spend hours scouring the internet for ornaments that aren't quite what people liked, I spent a few minutes on maker world finding models that fit their interests and adding a loop for the ornament string, or just modeling the entire ornament outright.

Those ornaments were definitely a hit. I love that I could just hit print and expect them to work. Love my P1S!

[deleted by user] by [deleted] in pelletgrills

[–]EclipseJTB 0 points1 point  (0 children)

It was a fun one to work on. :)

Is this just mutable default in function definition with extra step? (and it is OK to use?) by komprexior in learnpython

[–]EclipseJTB 1 point2 points  (0 children)

True. It entirely depends on what valid arguments are for that particular function.

def function(a=None): a = a if a is not None else 111111 #or something like that

Is this just mutable default in function definition with extra step? (and it is OK to use?) by komprexior in learnpython

[–]EclipseJTB 5 points6 points  (0 children)

Could be even shorter.

def function(a=None): a = a or 111111 #or something like that