FlytrapCare Carnivorous Plant Forums

Sponsored by FlytrapStore.com

Talk about anything you want in this forum.

Moderator: Matt

User avatar
By sanguinearocks101
Location: 
Posts:  1650
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:  111
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:  111
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:  1650
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:  1650
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.
Feeding

They are grandaddy long legs spiders. A lot of leg[…]

Thanks everyone for the info, I appreciate it.

Greetings from Virginia

Welcome to the the forum. The struggle against cri[…]

I don't think i would place a 2nd order =(

Sarracenia 2021

Juthatip Soper https://i.imgur.com/1dTpilL.jpg […]

Squirrels!!!

Just under $400. It is 12' long but apparently th[…]

^^^^ What they said, it needs more light. I would […]

Support the community - Shop at FlytrapStore.com!