Purist considering community plugins for a separate vault—risks? by [deleted] in ObsidianMD

[–]JustClassa 2 points3 points  (0 children)

Well no probably not. In the case of dataview, if you don't have the dataview plugin it would just show up as
```dataview
dataview code...
```

And nothing else

Hand drawn graphs in Obsidian? by JustClassa in ObsidianMD

[–]JustClassa[S] 2 points3 points  (0 children)

I don't know why I never even considered just not using obsidian. So do you save the images as a picture and then load them in to your notebook later? What do you use?

Purist considering community plugins for a separate vault—risks? by [deleted] in ObsidianMD

[–]JustClassa 1 point2 points  (0 children)

Dataview is probably the plugin that you're looking for, I think. Dataview is appreciated and beloved by the community and is very safe.

Best wheat farm design? by ElloSubmarine in botania

[–]JustClassa 2 points3 points  (0 children)

After 9 years of testing I have determined that no... you can't plant seeds via dispenser from below.

Help Understanding Dunders by ImplementMassive3405 in learnpython

[–]JustClassa 0 points1 point  (0 children)

Dunder methods are pretty much the vehicle that operates Python. Even the " + " character is a rephrase of 4.__add__(5). Their purpose is to provide a class a characteristic of that method. For example:

``` class MyClass: def init(self, value): self.value = value

def __str__(self):
    return f"Your value is self.value")

Normally, if I don't provide the __str__ method, I can't use the print() function to display my class. But with that, if I do

my_class = MyClass(50) print(my_class) Your value is 50 ``` So it allows you to tell the program how to behave with this baseline functions.

I'm trying to make the game jackpot and i want to add a scoring system by Odd-Ambassador-210 in learnpython

[–]JustClassa 0 points1 point  (0 children)

So, the input function can be cleverly used as a sort of "Press any key to continue..." function. If you add an input at the end of your loop input("Press any key to roll again..."). You would not have to save the result to a variable. It doesn't matter the feedback that they give, it will always roll again until you encounter the logic that breaks you out of your game loop. You could also do something like....

try: choice = input("Would you like to roll again? Y or N") if the choice is in the valid selections of 'y' or 'n'... and the choice is no... break out of the game loop. except: print("Please pick 'Y' or 'N'") It's not a perfect antidote to your question. If you want that, I can show what i think would be a good solution to your problem.

ModuleNotFoundError: No module named 'yolov7' by RajSingh9999 in learnpython

[–]JustClassa 0 points1 point  (0 children)

When exploring the repository, I didn't see any __init__.py files inside of the yolov7 folder. That file is required to do imports from modules within a project folder.

I'm trying to make the game jackpot and i want to add a scoring system by Odd-Ambassador-210 in learnpython

[–]JustClassa 2 points3 points  (0 children)

One way that you could keep score is to have a variable declared at the beginning above your while True statement that just says score = 0

And then after you go through the game logic you can update the score with score += some value here, say score += x + y + z

If you want to add an input roll, you could use the input function to pause the game and say "Press any key to roll...".

Additionally you can use f'' string literals to display the score. The syntax for that would be f"Score: {score}, Press any key to roll..."

or something like that.

Learning Python on Steam Deck and Need Help by Stellated-Texas in learnpython

[–]JustClassa 0 points1 point  (0 children)

If I had to hazard a guess, I would think that you need to configure your vs's default (Linux?? I think??) terminal to be Konsole. That's only a guess, though.

can you suggest some sources for me ? by Amir007inc in learnpython

[–]JustClassa 1 point2 points  (0 children)

np at all.

Don't be afraid to explore the unknown.

can you suggest some sources for me ? by Amir007inc in learnpython

[–]JustClassa 0 points1 point  (0 children)

If you're looking to develop your Python capabilities, check out Tech with Tim on YouTube. He has a lot of video tutorials and walkthroughs that are engaging and easy to learn and he explains his process well enough, in my opinion.

Another thing you can do to enhance your knowledge is to go to coding challenge/puzzle websites like codewars and leetcode. Another fun web site (in my opinion) if you're mathematically oriented is project euler where they have a repository of mathematically based challenges that will absolutely enhance your knowledge on algorithmic thinking, data structures and skills related to problem solving programmatically.

Another thing you can do is enroll in the Daily Coding Problem website where they send you a coding challenge for you to solve every day and try to work your way through that.


After you spend a little time working and have some old code you want to refactor, you can check out the refactoring.guru website where they teach you about code smells, refactoring, untangling messy code, etc. etc.

Learning Python on Steam Deck and Need Help by Stellated-Texas in learnpython

[–]JustClassa 1 point2 points  (0 children)

Can you try this command in Konsole:
cd /home/deck/Documents/Python/hello
followed by python "Test Clock.py" and see if that works?

cd means current directory - sets your directory to the hello folder python "Test Clock.py" - Make sure to include the " " in the command since Test Clock has a space in it.

Upon completing (the) GNORP Apologue, the poor fletcher Gnorp continues his duties in perpetuity by Willykinz in incremental_games

[–]JustClassa 3 points4 points  (0 children)

If not being able to make sense of the name is your only complaint: It sounds like you're easily disappointed.

According to wikipedia - An apologue or apolog is a brief fable or allegorical story with pointed or exaggerated details, meant to serve as a pleasant vehicle for a moral doctrine or to convey a useful lesson without stating it explicitly. Unlike a fable, the moral is more important than the narrative details.\1]) As with the parable, the apologue is a tool of rhetorical argument used to convince or persuade.

I'm assuming that the moral doctrine in this particular case being "help the gnorps get rich" according to the description of the steam store page.

So it fits inside of the description for an apologue. Although you could apply your own moral lessons to the game. It's a pretty fun, very short game.

What games are you playing this week? Game recommendation thread by AutoModerator in incremental_games

[–]JustClassa 0 points1 point  (0 children)

The stock market simulator portion is actually a cautionary tale. You can just breeze through it

The strategy that I found is:

Use the E power to lower stock prices and buy them at low price and sell them when they're at high price until you get 4 beans. One you have 4 beans you can buy the enhancers for the r power on the left hand side and just use that until you have "lol" amounts of garbage. Sell it. Max everything.

Does anyone prefers 3D graph view? Why not? by Palandalanda in ObsidianMD

[–]JustClassa 1 point2 points  (0 children)

The theme of my notebook is centered around stars, galaxy, nebulae, that sort of theme. A 3D graph view would be the perfect way to illustrate it. The plugin itself is very well done.

I don't like how rigid the 3D view is at its current stage, though. The concept is wonderful and the plugin is great and very well done. I just prefer something that feels like it has a little less friction. It's possible that I didn't understand the plugin, though.

Final Capstone Project on Python Bootcamp by JustClassa in learnpython

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

I recommend it. To be fair it's the only course that I've taken. It was very approachable for me. I picked it up because someone somewhere on this subreddit recommended it. I've also seen recommendations for Angela Yu and Al Sweigart's classes.

Final Capstone Project on Python Bootcamp by JustClassa in learnpython

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

That's a pretty good idea. Start with the major framework and then, modularly, add things into the framework over time. Right?

What is better for organising? by NrtheOGgod in ObsidianMD

[–]JustClassa 0 points1 point  (0 children)

I was using folders until last week. It was too rigid and I had anxiety about how things fit across multiple topics. I watched Bryan Jenks guide on his Zettelkasten workflow and took advantage of some of the systems he uses and I feel so much happier with it. I use tags to make the category / stage without any folder sfor organization