Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Spaceship
Post: RE: Spaceship

(May-22-2021, 11:25 AM)abscorpy Wrote: Now this is the code i have, it doesnt run again Can anyone help me Thanks for the support! **smile**Not many people want to take the time to look through a...
SheeppOSU Game Development 8 626 May-24-2021, 09:56 PM
    Thread: Two separate dataframes, two seperate programs
Post: RE: Two separate dataframes, two seperate programs

Look into Python's socket library
SheeppOSU General Coding Help 2 227 Apr-28-2021, 01:44 PM
    Thread: Return won't stop a function
Post: RE: Return won't stop a function

(Apr-25-2021, 01:50 PM)jonagold Wrote: Thank you for the tips I will try to implement them and use them (When I understand them, because I'm a beginner **biggrin** ). However return didn't work even...
SheeppOSU Game Development 3 435 Apr-28-2021, 01:39 PM
    Thread: Return won't stop a function
Post: RE: Return won't stop a function

break will break out of the current loop it is under, or if under multiple loops, the one that it is directly under. return will exit the function with data if provided. In your code here, you've adde...
SheeppOSU Game Development 3 435 Apr-24-2021, 06:53 PM
    Thread: Client server Multithreading
Post: RE: Client server Multithreading

The socket library should come with Python download iirc, so you shouldn't have to use pip to install it. Also, you should make a new thread next time rather than using one on a separate question.
SheeppOSU Networking 6 965 Apr-21-2021, 08:19 PM
    Thread: [machine learning] identifying a number 0-9 from a 28x28 picture, not working
Post: [machine learning] identifying a number 0-9 from a...

I wanted to try my hand at some machine learning, so I started with this project which already had data provided by mnist. I studied the concepts and algorithms of how machine learning works online an...
SheeppOSU Data Science 0 311 Apr-09-2021, 12:38 AM
    Thread: A better way to search the contents of a directory?
Post: RE: A better way to search the contents of a direc...

If I understand correctly, I think a design similar to this would work easily def directory(path): for file in os.listdir(path): if "keyword".lower() in file.lower(): return os...
SheeppOSU General Coding Help 5 448 Apr-07-2021, 07:03 PM
    Thread: Convert String of an int array to a Numpy array of ints
Post: RE: Convert String of an int array to a Numpy arra...

I think it would be easier to do something like this: import numpy as np import json testImage = np.random.randint(0, 255, 10*1000) metadata = "" data = {"image": testImage, "metadata": metadata} str...
SheeppOSU General Coding Help 5 643 Apr-07-2021, 06:51 PM
    Thread: I need help with a script that reads and searches through an api.
Post: RE: I need help with a script that reads and searc...

By async I assume you're referring to asyncio? If that's the case, then I don't think asyncio would help here at all. asyncio is similar to threading, but also much different since instead of running ...
SheeppOSU Web Scraping & Web Development 3 388 Apr-06-2021, 01:51 PM
    Thread: After using models.Model on my class Im getting 'ImproperlyConfigured' error Django
Post: RE: After using models.Model on my class Im gettin...

Try running python manage.py makemigrations and python manage.py migrate
SheeppOSU Web Scraping & Web Development 1 304 Apr-05-2021, 03:11 PM
    Thread: I need help with a script that reads and searches through an api.
Post: RE: I need help with a script that reads and searc...

What exactly is not working in your code?
SheeppOSU Web Scraping & Web Development 3 388 Apr-05-2021, 03:05 PM
    Thread: How to write a recursion syntax for Sierpinski triangle using numpy?
Post: RE: How to write a recursion syntax for Sierpinski...

I would write a function which takes in 3 points for the triangle, makes 3 points for the triangle within it to get 3 sets of 3 points like so: [A, p1, p3], [B, p1, p2], [C, p2, p3]. Then it executes ...
SheeppOSU Homework 2 458 Apr-03-2021, 06:11 AM
    Thread: Redirect in Python
Post: RE: Redirect in Python

Could you provide some of your code?
SheeppOSU Web Scraping & Web Development 5 541 Apr-03-2021, 05:39 AM
    Thread: Redirect in Python
Post: RE: Redirect in Python

I don't quite get this question. If you're using Python to run a web application, then you're most likely using either Flask or Django (and if this is the case then please specify which). If you're no...
SheeppOSU Web Scraping & Web Development 5 541 Apr-03-2021, 01:52 AM
    Thread: Client server Multithreading
Post: RE: Client server Multithreading

run_ping_client is a thread, so time.sleep will only hold up the code running within that thread. Also yes, you can use json to easily send lists over the socket. json.dumps will take in a list and re...
SheeppOSU Networking 6 965 Mar-28-2021, 02:53 PM
    Thread: Client server Multithreading
Post: RE: Client server Multithreading

Firstly, I assume you're using sockets since I did not see any mention of a specific library. I would create a Server class and within it two main functions. The first receives and handles signals fro...
SheeppOSU Networking 6 965 Mar-27-2021, 02:41 AM
    Thread: [split] Accurate Clicks Per Second
Post: RE: [split] Accurate Clicks Per Second

(Feb-16-2021, 03:38 AM)michael1789 Wrote: That effect is more that just a circle, there is a drawing effect applied when it is blit, and or the images are translucent. The color stacks up with over...
SheeppOSU Game Development 4 682 Feb-16-2021, 04:27 PM
    Thread: Way to avoid repetition?
Post: RE: Way to avoid repetition?

I would do something like this: import sqlite3 conn = sqlite3.connect('employee.db') my_cursor = conn.cursor() values = [ ('Corey','Scagnasty',50000), ('Joe','Scagnasty',90000), ('Hiep...
SheeppOSU General Coding Help 5 525 Feb-15-2021, 09:10 PM
    Thread: [split] Accurate Clicks Per Second
Post: RE: [split] Accurate Clicks Per Second

It just looks like a circle is created each time you click and it expands. Then it disappears after reaching a certain size. I don't know what you're using but I think it'd be best to have a list of c...
SheeppOSU Game Development 4 682 Feb-15-2021, 09:03 PM
    Thread: Rock/Paper/Scissors Game 1
Post: RE: Rock/Paper/Scissors Game 1

This forum is not here to give you code. You must do it yourself.
SheeppOSU Game Development 6 1,213 Dec-01-2020, 03:16 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020