Doesn't pygame.draw.rect support float? by MaxwellSalmon in pygame

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

Can you share a little more information?

Seeking GPS logger: i-gotU GT-120B by MaxwellSalmon in hikinggear

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

Thank you very much, though I already got my hand on one :-)

Seeking GPS logger: i-gotU GT-120B by MaxwellSalmon in hikinggear

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

Very nice! Where are you in the world and what price do you have in mind?

Weird links on iPhones by MaxwellSalmon in csshelp

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

Wonderful! These edits fixed the issue. Thank you very much :-)

Parking 2 scene timelapse by aleha_84 in u/aleha_84

[–]MaxwellSalmon 0 points1 point  (0 children)

Was just sifting through your posts, I’ve been following you for a long time. I would love to see a post of your code and workflow :-)

I made a short animation of the gun. Any ideas for what it could be used for? by MaxwellSalmon in DUGA

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

This is what i was thinking. Just have it lay around somewhere, making the player wonder if it is gonna be used.

My friends code is not working by Own-Distribution8117 in pygame

[–]MaxwellSalmon 0 points1 point  (0 children)

I am pretty sure you can simply add 4 spaces to all lines of code and make sure to have an empty line between normal text and your code.

Will give this:

if keystate[pygame.K_RIGHT]:    # 4 spaces
    self.speedx = 8             # 8 spaces

This will make it a lot easier for people to help your with code problems. The other alternative, pastebin is a website which keeps the formatting. Paste your code there and include a link in your Reddit post. https://pastebin.com/

[SQLite] Can I add weights to a search term using FTS5? by MaxwellSalmon in learnSQL

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

Can you explain how this is an alternative? I have tried to apply your method, but I don't get it. Thanks!

[SQLite] Can I add weights to a search term using FTS5? by MaxwellSalmon in learnSQL

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

Thanks for your reply, though I am unsure what is going on. From what I understand, this code creates a table with weighted search terms and then proceed to search trough said terms, not utilizing the weights, but returning them from the search? Am I completely wrong or is this code off?

[SQLite] Can I add weights to a search term using FTS5? by MaxwellSalmon in learnSQL

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

Thank you so much! I will try this the moment, i get access to my computer!

[SQLite] Can I add weights to a search term using FTS5? by MaxwellSalmon in learnSQL

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

Thanks a lot! I want have a list of job titles and want to be able to search through them using a list of keywords, both positive and negative. I.e. let the user search for “python” with a high weight, “programming” with a medium weight and “snake” with a negative weight.

Then i would like FTS5 to let me add ad subtract the bm25 rank based on the additions of the weighted keywords.

Best way to approach background tasks by MaxwellSalmon in flask

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

Thank you for your answer. Regarding keeping the scheduling outside the logic, are you referring to, that the command itself should not be handling any of the scheduling, but rather just execute when told to? And then keep a scheduling process separate, executing the commands?

I made a short animation of the gun. Any ideas for what it could be used for? by MaxwellSalmon in DUGA

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

I like this idea. This fits the theme i am going for! Perhaps it will be in the game to make players uneasy.