FlytrapCare Carnivorous Plant Forums

Sponsored by FlytrapStore.com

Talk about anything you want in this forum.

Moderator: Matt

User avatar
By sanguinearocks101
Location: 
Posts:  1665
Joined:  Mon Jan 06, 2020 1:56 am
#376247
Hello, I am wondering if there are any free websites that let people use a python program but do not show any of the code, I have a giveaway idea I think would be cool and this would help a lot. I know I can host a web server from my raspberry pi, but am unsure if you all could see the code inside the program and would prefer not to have my raspberry pi plugged in 24/7 so it could host the server while the giveaway was going on. I know a lot of you are much deeper in the programming world than I am so maybe you all have some ideas. Thanks in advance.
By hungrycarnivores
Posts:  116
Joined:  Mon Feb 22, 2021 9:53 pm
#376253
So you can run a site using PHP or JS/CSS and then put the python code embedded, then on window-open jump in and start the program, and then after the window closes, you exit-on-close. That's all I've done.
By hungrycarnivores
Posts:  116
Joined:  Mon Feb 22, 2021 9:53 pm
#376305
Do you know JAVA? You could launch some GUI and thread it off your Pi, and just declare the private int n as a random()*ArrayList.size() and do the ArrayList.get(n) to get the winner and display it? That way, the number is calculated at runtime and it is obfuscated that way. I don't really know the List structure in python too well... always end up using tuple.
User avatar
By sanguinearocks101
Location: 
Posts:  1665
Joined:  Mon Jan 06, 2020 1:56 am
#376341
hungrycarnivores wrote: Wed Mar 24, 2021 3:32 am Do you know JAVA? You could launch some GUI and thread it off your Pi, and just declare the private int n as a random()*ArrayList.size() and do the ArrayList.get(n) to get the winner and display it? That way, the number is calculated at runtime and it is obfuscated that way. I don't really know the List structure in python too well... always end up using tuple.
All I know is a bit of Python and a tiny bit of js and html though the majority of what I know in js is creating shapes.
User avatar
By sanguinearocks101
Location: 
Posts:  1665
Joined:  Mon Jan 06, 2020 1:56 am
#376342
elaineo wrote: Wed Mar 24, 2021 5:35 am Google app engine lets you host a python webserver. It's free for the first 90 days or so, possibly longer if it's a small app.
https://cloud.google.com/appengine
Thank you, this will probably work very well for what I need it for.
Polimbo 52

Seedlings in the beginning of their third year. Th[…]

Repotting carnivorous plants

the media looks like peat? Did you add water and f[…]

Seeds received. Thanks Chef and donors!

Counting to infinity.

2496

Beautiful - nice to see your signs of spring!!

Completely agree on the Lowe’s BetterGrow vs[…]

Brushes For Pollination

Yep, I use cotton buds too, I find it easier to di[…]

Support the community - Shop at FlytrapStore.com!