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.

Along with that ^^^^, something I had heard to m[…]

Order received. Your order number is 1644. I'll PM[…]

Repotting carnivorous plants

@andynorth , I got mine from a website in the […]

Dionaea m. ‘Ginormous’

Could you send photos?

https://uploads.tapatalk-cdn.com/20240424/a61a408[…]

Flower stalks for sale

I have three sundews, a typical red VFT, and ten V[…]

where is a good place to buy vfts in australia. he[…]

Nep/Heli bundle

Here’s some pics of a platy vog (not this o[…]

Support the community - Shop at FlytrapStore.com!