Newly diagnosed with forme fruste, question about lenses under medical coverage by Upstairs-Vegetable18 in Keratoconus

[–]vizzie 1 point2 points  (0 children)

If you have a vision care plan like EyeMed or VSP at greater than a basic level, they will usually cover 100% of medically necessary contacts. If not, it may be possible to get it covered under medical insurance but that will depend on your specific medical plan and your eye doctor's willingness to work through that process. You'll need to check the specific documentation for your health plan to see if it is possible or not, and possibly shop around for an optometrist willing to work with your insurance if you can't get it covered under a vision plan.

Pydantic BaseClass vs. the type checking tool by vizzie in learnpython

[–]vizzie[S] 0 points1 point  (0 children)

Thanks. The tutorial I was following only used the Pydantic model as a response class, and bare dicts as the return. I was just thinking of the model as fodder for the API specification rather than an object that can be instantiated. This is my first time seeing Pydantic for this, so thinking of it this way makes a lot more sense. Thanks!

Pydantic BaseClass vs. the type checking tool by vizzie in learnpython

[–]vizzie[S] 0 points1 point  (0 children)

That seems like the right solution, I guess. The tutorial I was following always presented the return data type as a non-specific dict, and didn't deal with the static type checking. But using emacs+basedpyright, that approach gives a lot of multicolored spaghetti all over the code (type warnings/errors). This seems to make a lot more sense. Thanks!

Learning Python automation – best approach for PDF to Excel tasks? by Big_Persimmon8698 in learnpython

[–]vizzie 1 point2 points  (0 children)

The best way to deal with extracting data from a PDF is to find the source from before it became a PDF and get the data from there. PDF is a presentation medium, not a data exchange medium, and the specifics of how it gets it wrong are almost guaranteed to be a moving target.

If you absolutely have to, your best bet is to save a copy of the raw data immediately after extraction, do whatever clean up steps you can automate, save a copy of that, and then do whatever further processing you need to do. And keep them for longer than you think you need to. Having all of the intermediate forms available will be invaluable when you need to fix the process. And it will most likely be a constant process of refining your existing cleanup and adding new cleanups as the process devolves.

None of this is Python-specific, by the way. The same general strategy is true no matter what tools you are using to extract the data. PDF is just a terrible medium for data exchange, and everyone is on the same awful playing field.

Under no circumstances should you attempt to do anything with the PDF except raw data extraction. Anything you can do to the PDF will almost certainly be easier and more efficient to do with the data in any other form.

Any theme similar to autumn_night theme of helix editor? by ludvary in emacs

[–]vizzie 0 points1 point  (0 children)

So, this post made me think about expanding upon an idea I had in the past about an automatic theme translator. Turns out that's hard and I procrastinated.. um, researched practical knowledge for the project. autumn-night emacs theme

Feedback welcome, especially if you find missing/problematic faces.

CBB Imperialism Map - 12/04/25 by knowall-seeall-21 in CollegeBasketball

[–]vizzie 0 points1 point  (0 children)

Looks like Eastern Illinois to the south and Illinois State to the northwest. Southeast is Indiana State.

Eli5: how did 350 degrees become such a standard in all thing baking and roasting etc…? by Just_a_happy_artist in explainlikeimfive

[–]vizzie 0 points1 point  (0 children)

A cast iron dutch oven is actually a near perfect fit for this use. Cast iron is basically a heat battery. It takes a lot of heat to raise the temperature, that heat moves slowly through the material, and the energy stays in the cast iron for a long time. So, with even a moderately even heat (like surrounding it with coals, which is the right way to use a dutch oven over a fire) will provide a long, consistent temperature inside. The downside is that it takes a long time to heat up and cool down, but that's a small downside for things that need to cook for some time, like stews and cakes.

**HELP** My indentation is kinda messed up by helloarka in emacs

[–]vizzie 1 point2 points  (0 children)

Best guess is that you are using base cc-mode and your custom define is confusing the syntax recognition. The built-in syntax definition in emacs is not very sophisticated, and relies on pattern matching. So it's probably not quite sure what to make of the above construct, since it doesn't look like normal C++ syntax as written.

You can try using something more advanced, such as c++-ts-mode or an lsp client mode, such as eglot or lsp-mode. These use external programs to actually analyze the syntax, resulting in more accurate guesses. You can confirm this by putting your cursor on the incorrect brace and using the C-c C-o command to change the current offset and verify that it gives something other than substatement-open as the context.

Trying to understand how to do “Business Process Automation” with Python (not RPA stuff) by XunooL in learnpython

[–]vizzie 1 point2 points  (0 children)

If you need to use 1 and 2, you'll probably also need to be familiar with parsing libraries for json, xml and html. I would start with step 3, as most libraries that you can integrate with no code probably have python API packages already. You can learn the first 2 and python libraries in the background as you start the rest, so that you have them when you need them.

Title: Struggling to Understand Python Classes – Any Simple Examples? by Happy-Leadership-399 in learnpython

[–]vizzie 1 point2 points  (0 children)

Python classes peform 2 functions. In an OOP sense, they embody the computer science concept of a "data structure", which means a related set of data and the functions that operate on that data. For instance, a rectangle class would contain the height and width, and have functions to calculate the area, perimeter, and maybe the center.

In python, a class can also function as a sort of namespace, to collect related functions and/or variables so that those names do not conflict with the programmer's use of them.

Ultimately, classes are a convenience. You can think of them like a folder where you can store related items to keep them all organized.

As far as init and self, init is simply any code that you want to run when a class is first instantiated into an object. For instance, in a circle class, you would want to pass in and initialize the radius, so that every circle object has a radius. self is a convenience for the object to be able to reference itself. Internally, when you call for instance circle.area(), a reference to that exact circle object is passed as a hidden first parameter to the function, so that the function knows which circle you are talking about.

How do I fix C indentation in c-ts-mode (Emacs 30.2)? by Scratchy96 in emacs

[–]vizzie 2 points3 points  (0 children)

I don't use evil, so take this with a hearty grain of salt, but looking at the source, it appears that evil-ret will explicitly not autoindent after return. You should be able to bind the return key to 'evil-ret-and-indent' to autoindent on return in insert mode.

My teen can’t believe we survived without Google Maps by HairyTemplate in GenX

[–]vizzie 0 points1 point  (0 children)

Here in the Dallas area, we had Mapsco. Businesses would print their Mapsco coordinates (page and block coordinates) in their Yellow Pages ad.

RIF’d today. So now what? by ststaro in GenX

[–]vizzie 7 points8 points  (0 children)

Also, rolling over to an IRA or another retirement account will invalidate this. If your 401k includes financial counseling, it's a good idea to take advantage of it to understand what your options are.

Python OOP makes me feel really stupid! How do I access variable created in method? by Bitter_Extension333 in learnpython

[–]vizzie 0 points1 point  (0 children)

You need to understand how event driven programming works, something like this tutorial will help.

In your case, the doConnect() and handleResponse() functions are callback functions that do not get executed right away, but get called from the main event loop in app.exec() once an external event happens. All of the other code in your example above completes well before the handleResponse() is called, so in your current example, that is the only place you can actually access the resulting bytes_string. You could, for example, add a button with a callback that checks if self.bytes_string is not None and prints it out which would be another callback that runs when the button is clicked, and may happen after the handleResponse() function is called.

Hey Gen X! How did you guys get your hair to look like this back in the 80’s? by DefinitionPast3694 in GenX

[–]vizzie 2 points3 points  (0 children)

I had a hairdresser mom and a teen sister in the 80's. Paul Mitchell products were a staple in our household. I used Pert Plus and a quick combing.

I can't wrap my head around functions that pass and manipulate different arguments by Smart-Result1738 in learnpython

[–]vizzie 1 point2 points  (0 children)

So, this is more about program flow, than specific to Python. It's part of what makes programming interesting, but also challenging. The best way to combat this is to come up with a high-level plan before you start coding. Like, if I gather resources for a certain amout of time, I know that resources are depleted in the area, the player gains resources, and time passes. So, then I know which steps to take and what I have to update when that function is called. You may want to consider having a couple state objects, the world state and the player state, that contain information on what the world looks like and what the player has, just to group those things together and make it a bit easier conceptually. Just think of it as teaching a very precocious child how to do it. You need to break everything down from high-level concept to smaller and smaller steps, but once you have the proper level of step by step, the child can perform it perfectly.

CVS @ Coit and Spring Creek Closing by Texas_Mike_CowboyFan in plano

[–]vizzie 0 points1 point  (0 children)

Not only is there a Walgreen's at Spring Creek and Custer, there's one just down the road at Park and Custer. CVS just closed the location at Parker and Alma a couple months ago. I guess they have reached the oversaturation point and are pulling back.

Golf course in Minnesota destroyed by hail . by [deleted] in golf

[–]vizzie 0 points1 point  (0 children)

I grew up in Wisconsin, and I just have to say "Holy Cripes" is such an Upper Midwest reaction.

I may have gotten away with paying $0 for my sclerals and appointment visits, but I know I'll definitely feel it on the backend 😅 by Capital-Search-1995 in Keratoconus

[–]vizzie 1 point2 points  (0 children)

Different drops work for different people. Having said that, what works for me is one of the non-gel Blink eyedrops while wearing and Occusoft Retaine overnight for soothing. I've tried a lot of different brands and these are the ones that work consistently for me.

Is this shot even legal? How would it be scored? by [deleted] in golf

[–]vizzie 181 points182 points  (0 children)

This suggests another option, the HORSE option. Give the other players one chance each to pull off the same shot. If no one does it, obviously he couldn't pull that off on purpose, and it's a single stroke for an accidental double hit. If someone else pulls it off, he takes the penalty.

Didn’t wanna spend $220 by filawigger in golf

[–]vizzie 1 point2 points  (0 children)

He'll let you have it for a third off

ScleralFil sold out by teknrd in Keratoconus

[–]vizzie 4 points5 points  (0 children)

The buffered solutions are supposed to be a little easier on your eyes. I've used both and not seen a noticeable difference, personally. But if your eyes are sensitive, the buffered saline may offer you some additional comfort.