running a python script on server

i have a python script on the server #!/usr/bin/env python import cgi import cgitb; #cgitb.enable() import sys, os from subprocess import call import time import subprocess form =...

Animating elements in d3.js

I have a nice little network of nodes. One is the central node and fixed, the others are flying around it, connected with links and influenced by the force field. When the user clicks on one of...

Runtime error in FTP java program: Type top is not assignable to 'java/net/socket'

import java.io.*; import java.util.*; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import java.sql.Timestamp; public class PrintOutConvosFtp2 { ...

How can I adapt my java program to continually run and execute periodically?

I wrote the following section of java which picks up a plaintext file, converts it into an HTML file, and then FTPs the file to a web server. As the plaintext source file is constantly being...

Why am I receiving a java.io.IOException in this loop?

I have written the following block of code which picks up a plaintext file, and if the current modified date on the file is greater than the last iteration of the loop, parse the file into an HTML...

Can a catch block in java simply re-execute the main block of code altogether?

Can a catch block in java simply re-execute the main block of code altogether? I have a program that iterates every 5 minutes and looks at a plaintext file. If there have been changes, it...

Having trouble getting java program to run scheduled or as infinite loop with sleep timer

So I have written up a rather large program which in the long is supposed to look at a file, if its been updated since the last iteration, turn that file into a webpage (you can ignore the details...

Flutter parsing Google Books API

I am trying to use the google books API in a new flutter app and am having a lot of trouble parsing the json into a useable format. I am new to coding and flutter and have used the following...

Quart python : send websocket broadcast message from curl and display it

i have edited this way: my curl command is: curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://localhost:5000/telepath i want to display this posted...