Debug: Database connection successful
You are not logged in.
For offtherock re post in Python ... https://newmars.com/forums/viewtopic.ph … 55#p233855
Thanks for taking a look at the program!
I agree that most of the trends are toward object oriented programming.
My guess is that it helps to be introduced to object from the beginning, as you may well have been.
Actually, I didn't specify anything to Gemini. It simply created the program to my specifications for function, and used the standard Phthon patterns. You had mentioned teaching Python, so I can well understand how you would be inclined toward object.
If you have a bit of free time and want to start a class in Python (with emphasis on object) I would be happy to help in whatever way I can. We have no one in the group at present who shows signs of being interested, but I am happy to bring in new members who might wish to take a class with your guidance.
(th)
Offline
Like button can go here
Nah i used to be for functional programming.
But slowly started to see how object programming really makes sense.
Especially in big systems.
It just needs to be introduced to people correctly.
I dont know what it means to start a class in python. Like, what that actually entails.
Hasn´t the class already started, we are already talking and learning.
Last edited by offtherock (2025-08-26 17:49:17)
Offline
Like button can go here
For offtherock re #27
I agree that object makes sense for big systems.
I would even think it makes sense for two people working on a project.
The idea of not having global variables may be separate from object programming.
The original programs (active when I was entering the work force) had ONLY global variables. Gradually the idea of local vs global variables crept in.
Now I understand the preference is for no global variables at all, and passing values from procedure to procedure.
(th)
Offline
Like button can go here
For offtherock ...
We have members with a wide variety of backgrounds and interests.
I would like to suggest you investigate to see if Spaniard might have written posts that might be of interest.
The world view that Spaniard brings to the forum is similar in some respects to yours.
I would like to see how the two of you interact.
Louis is another (former) member whose writings you might enjoy reviewing.
(th)
Offline
Like button can go here
thanks i posted on one of his subjects.
Offline
Like button can go here
For offtherock re suggestion for a site to host images!
Thanks for that suggestion! It is good to know of all such sites.
I'm still testing the phpBB3 site. Here is a link to another of Dr. Johnson's images:
http://40.75.112.55/phpBB3/download/file.php?id=3
At the moment I am unable to serve the actual image in display mode. If you read the conversation with Gemini, you'll see that there may be a way to serve the images directly by modifying the htaccess file to allow NewMars to pull the files. Do you have any experience with htaccess?
(th)
Offline
Like button can go here
htaccess sounds like apache.
i abandoned apache a long time ago for nginx.
and did not regret that.
nginx has much more understandable configuration setup system.
and also, every request is served by creating only a thread, not an entire process like apache does.
So nginx is much better at dealing with sudden traffic peaks.
so.. no, havent dealt with htaccess apache configuration files for 15 years.
am still having nightmares about it.
almost.
Last edited by offtherock (Today 12:40:57)
Offline
Like button can go here
Hi offtherock!
Thanks for your comments about htaccess ... it is indeed part of the Apache system that Azure created for me back when we were working on a software upgrade for the forum. The host at Mars Society runs Apache, so (of course) we needed to replicate their system.
I'm glad to know there is an alternative web server to consider.
In the mean time, Apache is what we have. We can't change anything because we have other changes in the works for the forum, if we ever can find the time. You may have noticed "Like button can go here" on every post. That was a little marker we set while updating FluxBB from 2012 to 2024. We didn't have time to do more than set that little marker.
Now both kbd512 (webmaster) and I are too busy to do anything more.
(th)
Offline
Like button can go here
the server, how do u guys access it. do u ssh into it or what.
ssh is brilliant. by the way.
Offline
Like button can go here
There are two answers to your question ...
kbd512 uses ssh to log into the Mars Society server.
I use ssh to log into the test site on Azure.
We also use the file transfer version of that tool, but I can't remember the name of it. I have to look it up every time I use it.
As a small detail, we use Dropbox as a staging location because Dropbox and the ssh file transfer utility play nicely together.
So I develop on my local machine, send to Dropbox, and kbd512 performs the transfers into the Mars Society server.
(th)
Offline
Like button can go here