Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. ratwolf

    What's everyone up to :)

    10q! 🙏
  2. ratwolf

    AI Tools

    AI is like a power drill: useful but dangerous without skill. Your brain is the craftsman. The best developers/designers will be those who leverage AI while retaining deep expertise. :laugh:
  3. ratwolf

    What's everyone up to :)

    https://github.com/ratwolfzero/Quaternion_3D_Rotation
  4. ratwolf

    Fast GPU whole shapes sort, best way?

    Your approach is theoretically sound and could outperform A-buffers for many cases. The key is minimizing cutting overhead and maximizing parallelism. If you can efficiently reject non-overlapping shapes early, this should fly...
  5. ratwolf

    Python Help with pythom code from telegram

    I see that you probably have some unused imports, as well as redundant/duplicate imports. I would recommend using Timezone instead of Pytz. Just a proposal: # Standard library imports import os import sqlite3 from datetime import datetime, timezone # timezone is better than pytz for Python...
  6. ratwolf

    3D Rotation using Quaternions

    slight code improvement: pre-calculate cos_angles = np.cos(self.angles / 2) and sin_angles = np.sin(self.angles / 2) in class CombinedQuaternionRotator More efficient and cleaner. import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import...
  7. ratwolf

    What's everyone up to :)

    Finished a small Python project regarding combined 3D rotations using quaternions
  8. ratwolf

    Python Wallpaper for the mind, a forgotten old classic

    Wallpaper for the mind, a forgotten old classic
  9. ratwolf

    Wallpaper for the mind, a forgotten old classic

    import numpy as np import matplotlib.pyplot as plt # Constants WIDTH, HEIGHT = 400, 400 # Grid resolution CORNER_A = -15 # Lower-left corner CORNER_B = -25 # Lower-right corner SIDE = 41 # Side length of the square grid NUM_COLORS = 4 # Number of distinct colors def...
  10. ratwolf

    Python 3D Rotation using Quaternions

    Solution
  11. ratwolf

    3D Rotation using Quaternions

    10q! 🙏
  12. ratwolf

    Python 3D Rotation using Quaternions

    3D Rotation using Quaternions
  13. ratwolf

    3D Rotation using Quaternions

    import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import quaternion # Requires 'numpy-quaternion' package def setup_figure(): fig = plt.figure(figsize=(10, 8), dpi=100) ax = fig.add_subplot(111, projection='3d') lim = (-1.5, 1.5)...
  14. ratwolf

    The output is different from the correct answer

    22 / 7 is integer division in C because both 22 and 7 are integers. Integer division discards the decimal part and gives you just the integer result. 22 / 7 = 3 // not 3.14 Make at least one operand a float to ensure floating-point division: #include <stdio.h> int main () { int radius...
  15. ratwolf

    Fun activity Say hello... in a coding language!

    I've heard of Supercollider. What applications do you plan to use Supercollider for?
  16. ratwolf

    Fast wired internet

    In my area the road is torn up for three weeks and then filled in again, and here on a Sunday two people come with a bamboo ladder and the new connection is made. LOL. :Rofl:
  17. ratwolf

    JavaScript How to pull data from Excel to HTML/Javascript

    Where is your Excel file stored? On your local system? Or is it uploaded to a server or cloud (like Google Drive, OneDrive)? How are you planning to access the data? Will you upload the Excel file manually through the web page? Or should the code fetch the data automatically? What kind...
  18. ratwolf

    JavaScript Unable to get a Json back from a request

    The exact error message you're getting? The network tab information from the failed request? Whether you see the request hitting your server logs? Common Issue: CORS (Cross-Origin Resource Sharing) Postman doesn't enforce CORS, but browsers do Check if the server needs to include proper CORS...
Back
Top Bottom