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 :)

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

    Python Wallpaper for the mind, a forgotten old classic

    Wallpaper for the mind, a forgotten old classic
  3. 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...
  4. ratwolf

    Python 3D Rotation using Quaternions

    Solution
  5. ratwolf

    3D Rotation using Quaternions

    10q! 🙏
  6. ratwolf

    Python 3D Rotation using Quaternions

    3D Rotation using Quaternions
  7. 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)...
  8. 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...
  9. ratwolf

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

    I've heard of Supercollider. What applications do you plan to use Supercollider for?
  10. 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:
  11. 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...
  12. 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...
  13. ratwolf

    Software Development- First Time

    Regarding Python also Geany and Jupyterlab are good choices and Positron which is still Beta.
  14. ratwolf

    Fast wired internet

  15. ratwolf

    "Less is More: Your Best Python One-Liner?"

    Nice! Leveraging NumPy's vectorized operations for the Monte Carlo method in a single line is pretty elegant. And yes, sometimes these powerful one-liners require a bit of mental unpacking 🤣
  16. ratwolf

    C Beginner Learning C – How to Set Up VSCodium on Fedora for C Programming?

    Did you consider Qt Creator yet? You can also use it for none-qt projects and plain C, C++. Ore think about using Kate.
  17. ratwolf

    C# Binary -> Decimal Converter Outputting large numbers outside of reason...

    or: using System; public class Program { public static void Main() { string binary = "0000"; int decimalValue = Convert.ToInt32(binary, 2); Console.WriteLine($"Binary: {binary}"); Console.WriteLine($"Decimal: {decimalValue}"); } }
  18. ratwolf

    Python Generate a Secure Random Password in One Line!"

    https://codeforum.org/threads/less-is-more-your-best-python-one-liner.8294/
Back
Top Bottom