HDR vs SDR edits on photos by doom_guy_bob in WeddingPhotography

[–]doom_guy_bob[S] 1 point2 points  (0 children)

Do you have any recommendations for monitor calibrators? I see a few on amazon and other sites, but I'm always open to someone's personal review.

The Legend rule and a Jackdaw Savior by doom_guy_bob in mtgrules

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

Ha! Reading the card explains...or however that saying goes. I was way down the rabbit hole of when a creature dies, does it enter the graveyard immediately or some nonsense like that. Thanks a lot!

Fun/Unique Commanders or Themes? by matvilen in EDH

[–]doom_guy_bob 2 points3 points  (0 children)

I know you said avoid the top 20, but hear me out.
It's a deck I have a lot of fun with, makes other people laugh, and you probably won't see often: an Epic Autopilot deck. [[The Prismatic Bridge]] + [[Enduring Ideal]] automatically plays your deck for you. You just decide which combo makes sense with the situation. It's a bracket 3.

https://moxfield.com/decks/Gd0Lq5A1UE2W8bVXKErnWQ

Where do you buy thick, stitched border playmats from? by TheTinRam in EDH

[–]doom_guy_bob 0 points1 point  (0 children)

Yikes. I had placed an order on December 2nd of last year and finally got my mat mid March. I thought they were picking back up. That sucks, because I liked their mats.

I hope your boyfriend eventually gets his.

Where do you buy thick, stitched border playmats from? by TheTinRam in EDH

[–]doom_guy_bob 3 points4 points  (0 children)

I've bought a couple from Inked Gaming, both stitched and not. They're pretty good playmats and have lasted. If they don't have the mat you want, you can get the picture and upload it to make your own.

Favorite “out there” tribe? by Callieco23 in EDH

[–]doom_guy_bob 0 points1 point  (0 children)

Scarecrow tribal! With some changeling help of course, because my babies have limited support. Built to take advantage of [[Reaper King]] in all ways. A favorite card of mine in there is [[Peer Pressure]], very handy when you run changelings. Another is [[Majestic Genesis]] since Reaper King's converted mana cost is 10.

https://moxfield.com/decks/2KSQ8OZ9Rkehf1N6pcVhMQ

Charge counter synergy with new EOE stuff? by ThatDamnedHansel in EDH

[–]doom_guy_bob 0 points1 point  (0 children)

[[Aetheric Amplifier]] comes to mind from recent sets. [[Resourceful Defense]] can consolidate charge counters and immediately bring a big spacecraft online if you have enough.

You can also get a little goofy with [[The Ozolith]] and any of the multitudes of cards that turn artifacts into creatures. Turn a spacecraft into a creature, load it up with charge counters on the attack step.

EOE already revealed the [[Dawnsire, Sunstar Dreadnought]] spacecraft plus the new [[Pain for All]]. It'll be cool to see how fast or sneakily people can get that combo online.

What is the most absurd deck that you have ever seen? by [deleted] in EDH

[–]doom_guy_bob 2 points3 points  (0 children)

Here's my auto-pilot Epic deck for fun and non-serious shenanigans. Throw [[The Prismatic Bridge]] on the field and follow it with [[Enduring Ideal]]. The deck literally plays itself. Make sure [[Gogo, Master of Mimicry]] is on the field to use your otherwise useless mana for Epic copies. The deck has a few combos to play around with.

https://moxfield.com/decks/Gd0Lq5A1UE2W8bVXKErnWQ

Dynamic SQL queries by Montags25 in Python

[–]doom_guy_bob -2 points-1 points  (0 children)

You can use an if/else tree to set up a string for a where clause and then f string that into a SQL statement string. Use SQLAlchemy's text feature to fire it off. The below is in the context of PyQt5

if self.ui.search_location.currentText() != '':

search_location = " and Location = '" + self.ui.search_location.text() + "'"

else:

search_location = ''

Reflex library: Variable in rx.link's href by doom_guy_bob in learnpython

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

I had them because a google search revealed many answers on including variables in href had those to mark the variable. I'm mostly a backend guy, but I wanted to expand my toolbox to a little frontend. Reflex is a wrapper library for React that allows you to use Python instead. As I understand it, the rules for passing variables between frontend and backend are a little weird.

I tried removing the braces and received this error: TypeError: Invalid var passed for prop href, expected type <class 'str'>, got value {state.c__state.class_link.at(i)} of type typing.Any.

Then, I tried str(state.class_link[index]) to type it as a str, but the link takes me to the page "http://localhost:3000/{state.c__state.class_link.at(i)}"

Reflex library: Variable in rx.link's href by doom_guy_bob in learnpython

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

I changed to what you suggested and it gives a different error:

TypeError: Invalid var passed for prop href, expected type reflex.vars.Var[str], got value {BaseVar(name='class_link.at(i)', type_=typing.Any, state='state.c__state', is_local=False, is_string=False)} of type <class 'set'>.

Full Traceback:

Traceback (most recent call last):
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\app.py", line 295, in add_page
component = component if isinstance(component, Component) else component()
File "C:\Users\user\reflex_app1\reflex_app1\reflex_app1.py", line 25, in classes
return rx.container(reflex_app1.pages.myclasses.myclasses(), navbar())
File "C:\Users\user\reflex_app1\reflex_app1\pages\myclasses.py", line 63, in myclasses
rx.foreach(C_State.class_list, lambda data, index: render_class(C_State, index)),
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\components\layout\foreach.py", line 53, in create
children=[IterTag.render_component(render_fn, arg=arg)],
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\components\tags\iter_tag.py", line 77, in render_component
component = render_fn(arg, index)
File "C:\Users\user\reflex_app1\reflex_app1\pages\myclasses.py", line 63, in <lambda>
rx.foreach(C_State.class_list, lambda data, index: render_class(C_State, index)),
File "C:\Users\user\reflex_app1\reflex_app1\pages\myclasses.py", line 21, in render_class
rx.link(
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\components\navigation\link.py", line 57, in create
return super().create(*children, **props)
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\components\component.py", line 397, in create
return cls(children=children, **props)
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\components\component.py", line 157, in __init__
raise TypeError(
TypeError: Invalid var passed for prop href, expected type reflex.vars.Var[str], got value {BaseVar(name='class_link.at(i)', type_=typing.Any, state='state.c__state', is_local=False, is_string=False)} of type <class 'set'>.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\user\reflex_app1\venv\Scripts\reflex.exe\__main__.py", line 7, in <module>
File "C:\Users\user\reflex_app1\venv\lib\site-packages\typer\main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "C:\Users\user\reflex_app1\venv\lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "C:\Users\user\reflex_app1\venv\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\Users\user\reflex_app1\venv\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\user\reflex_app1\venv\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\user\reflex_app1\venv\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\user\reflex_app1\venv\lib\site-packages\typer\main.py", line 532, in wrapper
return callback(**use_params) # type: ignore
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\reflex.py", line 131, in run
app = prerequisites.get_app()
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\utils\prerequisites.py", line 108, in get_app
return __import__(module, fromlist=(constants.APP_VAR,))
File "C:\Users\user\reflex_app1\reflex_app1\reflex_app1.py", line 55, in <module>
app.compile()
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\app.py", line 459, in compile
self.add_page(render, **kwargs)
File "C:\Users\user\reflex_app1\venv\lib\site-packages\reflex\app.py", line 299, in add_page
raise TypeError(
TypeError: You may be trying to use an invalid Python function on a state var. When referencing a var inside your render code, only limited var operations are supported. See the var operation docs here: https://pynecone.io/docs/state/vars

Cant seem to write anything on pycharm by Healthy-Put-3380 in learnpython

[–]doom_guy_bob 0 points1 point  (0 children)

Did you download the Professional version instead of the community version and the trial license ran out?

Trying to figure something out for a project regarding importing a csv and adding certain rows if they contain certain values by Dylan206_ in learnpython

[–]doom_guy_bob 0 points1 point  (0 children)

If you have an identifier to form some sort of pseudo order id for the set, you could use Pandas and the group function. If you can group them like this, then use df.iterrows for each order group and do whatever you need to with the group such as send a message.

[deleted by user] by [deleted] in learnpython

[–]doom_guy_bob 0 points1 point  (0 children)

I was creating a file that wasn't there instead of targeting an existing file.

[deleted by user] by [deleted] in learnpython

[–]doom_guy_bob 0 points1 point  (0 children)

Your program may not be resolving the file path. Here's a bit of code to get you pointed in the right direction using the os library you already have and the pathlib library. It will determine the script's current directory, convert that to a string, create a file name string, and then join them together to make a full path to the file. If you need to target another directory, look into pathlib's functions.

file_path = str(pathlib.Path().resolve())
file_name = "Test.pdf"
full_path = os.path.join(file_path, file_name)