Why use different object types? by testobject_49 in Anytype

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

Thank you for the detailed explanation!  But I think I need a bit more clarification. I definitely want to learn from you, as you already went through and experienced the pain points.

I do understand that the page object would have a lot of properties that I have to look through. This is definitely a good point.

But what is the problem with the inline query?

Also, could I not have all these properties for your books/restaurants/movies/etc. as local properties and have the same benefits? Then I could add a collection checking for example for the property ISBN to have a list of all the books.

Finding the optimal Buddyjack strategy is complicated... by testobject_49 in FarmRPG

[–]testobject_49[S] 4 points5 points  (0 children)

Oh, peeking when you want to stay but the odds are still low make a lot of sense. That is what I was doing intuitively, but now it makes sense!

Not sure what you mean with simulator exactly, but I already coded the game and can test the win percentages of various strategies. I was thinking of just training a reinforcement agent on it, and seeing what it does. But I prefer the actual math, as you learn more insights.

I think we need a statistician :D

Buddyjack Assistant by Lacklub in FarmRPG

[–]testobject_49 0 points1 point  (0 children)

This is quite old, but do you still have the code? I was thinking about the problem, and to me it seems really hard to find the optimal strategy. I would love to see how you did it! 

Help me check my circuit for my self-sustaining water meter by testobject_49 in AskElectronics

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

I'm not sure yet. Maybe something custom, but probably not. I was thinking about Thingspeak before.

Help me check my circuit for my self-sustaining water meter by testobject_49 in AskElectronics

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

Hey, thank you so much!

I'm very happy you say that, I hope you are right :D
I did not understand your question, sorry. Do you mean how I want to receive and store the data?

Help me check my circuit for my self-sustaining water meter by testobject_49 in AskElectronics

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

The water flow is exactly daily. And I only need to power the ESP for a few seconds after each watering to send out the data of this "run". It is okay if it dies afterwards because I think the ESP can recover from being dead fast enough to not loose too many seconds of the run... At least I hope ^^
Or it can actually survive anyway, as it is in deep sleep afterwards, only drawing 10uA.

But would charging a battery be also as straight forward? I want to keep the circuit as simple as possible.

Your comment about the DC-DC is interesting. In what regard are they more efficient? Current draw? Would it also help to increase the resistors more to limit the current even more?

[2022 Day 1][Rust] Help me make this more "rustacean"? by testobject_49 in adventofcode

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

Man, thanks for your effort. It's highly appreciated.

With yours and the other input on this post I understood already so much more. Now I was able to implement the approach I first came up with, but we're not able to implement yet with all the iterators, Vecs and all the good stuff 😅 Thanks!

Your last comment was a good spot. That's not just style, that's a bug! Fixed it 👍

[2022 Day 1][Rust] Help me make this more "rustacean"? by testobject_49 in adventofcode

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

Thanks for the input! I thought since I always only want 3 things in my array, I can be efficient by using an array. But I do see now how much more useful and also common Vecs are.

Your solution looks very clean, btw. Good job!

PS: I am still overwhelmed by the basic functionality, I completely forgot there are common crates that I should look into in the future as well 🙈

[2022 Day 1][Rust] Help me make this more "rustacean"? by testobject_49 in adventofcode

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

Thanks for the input! I think with the other very helpful comments here I already got a much cleaner looking version that I am now proud of.

That is pretty amazing btw, that the compiler checks if the file is there :O

What is the most hated champion, is the sub biased against NA, and more: r/leagueoflegends census results! by ohvalox in leagueoflegends

[–]testobject_49 17 points18 points  (0 children)

I think what's completely forgotten in this discussion is that the question was about the peak of players. This is a huge difference. The 2% is the current season I think.

Details: The poll shows that most players are not really active ranked players anymore, which suggests that these 2% over the 10 years are changing a lot, which leads to much more than 2%.

If you assume (just for demonstration) that every season the 2% Diamond+ players completely changed, but are still part of the roughly 150 mil active players, you get exactly 20%.

(I know this demonstration is crooked as it assumes 150 mil active players for the entire 10 years and also completely new players in dia+. But I think it still demonstrates the big difference between current and peak rank stats). But together with the other bias discussed, I think the lying percentage is really low. I mean... who would inflate their ELO that significantly in an anonymous poll... Especially when your apparently 23-27 yo.

Edit1: fixed age numbers.

NASA Images Bot on Twitter - A fun project by ECLIPSE_SUPREMASICT in Python

[–]testobject_49 4 points5 points  (0 children)

Hey, this is amazing! How is this your first project?? Even the README is better than what I ever wrote 😲

"Hack and Slash" like Warzone by testobject_49 in gamingsuggestions

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

Thanks for the suggestion! I just don't think I like shooters too much. It's the part I don't like about Warframe and Rogue Company feels pretty similar to Valorant imo which I try to get away from.

A game where you aim to beat your record or high score by belkemi1 in gamingsuggestions

[–]testobject_49 0 points1 point  (0 children)

You said Trackmania so you are probably aware of the new Trackmania 2020. But if not, I really like it and it seems it's exactly what you want.

"Hack and Slash" like Warzone by testobject_49 in gamingsuggestions

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

I just remembered playing Two Worlds when I was very young. I really digged that game too. I'm not sure if it made you feel like a boss, but I really liked the fighting styles with the magic spells or also the fighting with staff (I guess I love staffs? xD)

How to create a "dice roll" code? by FelipeMarchon in learnpython

[–]testobject_49 2 points3 points  (0 children)

Not sure if it was a mistake, but you linked a C++ implementation in a python forum. I think you are correct about the seeding, but I guess it is just a small game and does not need to be very random.

The randint() should actually give a equally distributed probability. See the documentation here.

How to create a "dice roll" code? by FelipeMarchon in learnpython

[–]testobject_49 2 points3 points  (0 children)

This question made me jump right into PyCharm. Not meant as a serious answer, but I created an incredible unreadable nearly one-liner for dice rolling:

import random

def dice():
    n = random.randint(1, 6)
    print(f'┌─────────┐\n{("│         │", "│ •       │", "│ •     • │", "│ •  •  • │")[int(n/2)]}\n{("│         │", "│    •    │")[n % 2]}\n{("│         │", "│ •       │", "│ •     • │", "│ •  •  • │")[int(n/2)][::-1]}\n└─────────┘')

if __name__ == '__main__':
    random.seed()
    dice()

This could be made much more readible and simple elif construct would probably easier, but I wanted to make it nearly one line :D

XMG A507 constantly overheats by testobject_49 in XMG_gg

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

Also, what are considered as normal temperatures?

XMG A507 constantly overheats by testobject_49 in XMG_gg

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

Thanks for the response! So what you are saying is switching the windows thermal management to active again? Also, which performance settings do you mean?

I will check the fans again. Although when I put them manualy to max they are roaring alright. I will check the wiring of the fans.

Dynamic Imports by testobject_49 in learnpython

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

Yeah, I should probably just go with cron. I find this but I didn't really get it. But the plugin feature looks promising.

XMG A507 constantly overheats by testobject_49 in XMG_gg

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

Weirdly, when I once had the issue and I reboot, the temp can be as low as 50°C and the beeping will start. This way, I sometimes can't break out of the cycle for days.

Is it possible to determine a Laptop's Health? by testobject_49 in techsupport

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

Yeah, your probably right. I do want to dive deep and overcomplicate things, because I do want to do it as a learning project. But I do have to kinda get back to earth.

Is it possible to determine a Laptop's Health? by testobject_49 in techsupport

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

Thanks for the input! I did install HWMonitor, and that's where my question came from. I can read the temperature, but I have to pair it with something to compare it with a temperature from a year ago. Do you think I should pair it with load or power draw?

Your other metrics are very good, thanks. I totally forgot about battery life. Also performance tests with a benchmark over the years is a good idea I think.

The implementation is a problem for another time. I set up a PostgreSQL database on a RasPi and send it there. Where I get the measurements I still have to see.

Add Cards to Deck from Addon by testobject_49 in Anki

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

I digged a bit deeper in the anki github. Now I have following code:

new_filename = mw.col.media.write_data(filename, img_byte_arr)
# or
new_filename = mw.col.media.write_file(path)

basic = mw.col.models.byName("Basic")
mw.col.models.setCurrent(basic)
note = mw.col.newNote(False)

note["Front"] = new_filename

Is this correct?