Posts

Showing posts with the label server

How can I communicate with other client connections on a MySQL server using python?

How can I communicate with other client connections on a MySQL server using python? I have multiple computers running python applications, each using the same MySQL server. Each of the applications contains a tkinter GUI that allows editing of a set of data (corresponding to data in a table in the MySQL server). Whenever the data is updated one machine (and in turn updated on the MySQL server), I would like the other machines to be prompted to update there displayed data by pulling from the server. I know I could simply have the applications self-update after a given interval, but I would prefer to only update when there is new data to pull. How should I go about this? sounds like you need to dig into MySql Triggers, maybe this answer would help stackoverflow.com/questions/17336804/… – kztd Jul 1 at 2:37 2 An...

Ngnix still seeing welcome screen after configuration

Ngnix still seeing welcome screen after configuration I have set up and deployed an application using Capistrano, Nginx, Passenger and set up the server and ngnix config file, however, I'm still seeing the Welcome to ngnix welcome screen. Welcome to ngnix Here is what I have in the /etc/nginx/sites-enabled/default file /etc/nginx/sites-enabled/default server { listen 80; listen [::]:80 ipv6only=on; server_name IP; passenger_enabled on; rails_env production; root /home/poladmin/poetry-out-loud-v2/current/public/; # redirect server error pages to the static page /50x.html error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } I have restarted Ngnix but I'm still not seeing the website. 1 Answer 1 Sounds like Nginx is serving you the content from it's installati...

Trying to do a broadcast server that echos clients

Trying to do a broadcast server that echos clients I'm trying to do a simple group chat where there's a server and several clients. The objective is when a client sends a message to the server, the server just sends that message back to all the other clients. I had the server send a message writen by him send to all the clients but he didn't send the clients message. Server code: package Group; import java.net.*; import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.logging.*; public class GroupServer extends Thread { private ServerSocket server; protected List<ClientHandler> clients; public static void main(String args) throws IOException { new GroupServer(9876); } public GroupServer(int port) { try { this.server = new ServerSocket(port); System.out.println("New server initialized!"); clients = Collections.synchronizedList(ne...