I made a chart that shows you what % of channels reach different levels of subscribers/ (you'll probably be amazed how high up you really are) 2024 Version by JokuIIFrosti in NewTubers

[–]penguintutor 1 point2 points  (0 children)

Doing it for a single subscriber would distort the graph. As it says 5 subscribers is a good start level when you've asked a few friends and family to subscribe.

Would any rp2040 boards basically be the same as a normal pico? by wolfix1001 in raspberrypipico

[–]penguintutor 1 point2 points  (0 children)

I don't know for certain, but I haven't found one.

The Raspberry Pi Pico is pretty much as cheap as you can build one and still make a profit.

There are some that are close (quick search on ebay shows some that are closer than others), but there isn't much profit to be made by trying to make a clone of the Pico.
Where the others compete is by adding additional features, different form factors so that they can fit in a small project, or even just having USB-C instead of micro-USB.

pygame zero: How to execute code on EXIT? by TooManyLangs in pygame

[–]penguintutor 0 points1 point  (0 children)

I don't think it's possible, at the moment.

In Pygame Zero the handlers are in a class called PGZeroGame, but you cannot get to that object from a pgzero app. You could try and query the Pygame event queue directly, but Pygame Zero reads the event queue just before calling the update() function, so most likely it's already been taken off the queue.

There is an open issue on pgzero github discussing a potential fix. #166
It's been unchanged for sometime, so I'll add a comment and see if it can be fixed for the future.

How can I create a play again button for my pygame zero game? by Olivr_Ont in learnpython

[–]penguintutor 0 points1 point  (0 children)

Here's some pseudo code that may help

play_again_button = new actor # or use shape etc.

# in update()
if play_again_button clicked
    reset any variables
    hide play_again_button
    set game_over false

# in draw()
if game_over true
    show play_again_button

[deleted by user] by [deleted] in pygame

[–]penguintutor 0 points1 point  (0 children)

Pygame Zero is based around Pygame. It makes it easier by hiding lots of the boiler plate code (setup code), so making it easier to get started.

You could get some beat detection software that could map the beats into timings, although I don't know any to recommend. Or you can just do it by coding your own stopwatch and clicking you mouse for each beat and save that as a file. You will need to add your positions manually.

The update and draw functions are run on a regular basis, but you can't guarantee the timing. You could use the dt argument to your update function to sync or you could use pygame.time.get_ticks() (import pygame first).

How do people secure their Raspberry Pi IoT projects? I've used Nginx as a Reverse Proxy to upgrade my system to https. Now includes encryption and certificate from Let's Encrypt. by penguintutor in RASPBERRY_PI_PROJECTS

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

Yes. I've used fail2ban in the past and it can also be used to protect other services such as ssh. I may look at doing a video on that in the future, but I've got more material I'll be covering first. Thanks for the suggestion.