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

    Software Development- First Time

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

    Fast wired internet

  3. 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 🤣
  4. 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.
  5. 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}"); } }
  6. ratwolf

    Python Generate a Secure Random Password in One Line!"

    https://codeforum.org/threads/less-is-more-your-best-python-one-liner.8294/
  7. ratwolf

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

    Estimate π via the Monte Carlo method: import numpy as np; print(4 * np.mean(np.sum(np.random.rand(10**7, 2)**2, axis=1) < 1))
  8. ratwolf

    Console.WriteLine("Hello World");

    Welcome
  9. ratwolf

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

    You're seeing unexpected results because you're treating the characters in the binary string as their ASCII values, not actual binary digits. Add: // Get the binary digit character and convert it to its integer value (0 or 1) int bit = binary[i - 1] - '0'; using System; public class Program...
  10. ratwolf

    Python Generate a Secure Random Password in One Line!"

    Want to generate a secure, random password in just one line of Python? Here's a quick one-liner using random and string modules: import random, string password = ''.join(random.choices(string.ascii_letters + string.digits + string.punctuation, k=12)) print(password) This creates a random...
  11. ratwolf

    (Nodejs) Trying to read a file but not getting the output I expect

    You should try this: Update fd inside the callback and only start the interval once the file is successfully opened. const path = require('path'); const fs = require('fs'); let mypath = path.join(__dirname, 'files', 'myvoice.raw'); let fd = null; let interval = null; const buffer =...
  12. ratwolf

    Secure PHP User Authentication System

    well documented
  13. ratwolf

    Node.JS Question about a programming exercise

    const dishData = [ { name: "Italian pasta", price: 9.55 }, { name: "Rice with veggies", price: 8.65 }, { name: "Chicken with potatoes", price: 15.55 }, { name: "Vegetarian Pizza", price: 6.45 } ]; const tax = 1.2; // example tax multiplier const taxBoolean = true; // example boolean...
  14. ratwolf

    Trying to add svg arrows to my slider gallery- but they disappear when added

    as you already confirmed with your left arrow png seems to work so it should be related to the svg itself just some ideas: Incorrect SVG file path: Double-check for typos or case sensitivity in "img/background/right-arrow.svg". SVG file is empty or broken: Open the .svg file in a browser—if...
  15. ratwolf

    Trying to add svg arrows to my slider gallery- but they disappear when added

    Can you share a snippet of your code?
  16. ratwolf

    If you could go back, would you code?

    m Programming languages are essentially extensions of human language—but specifically crafted to be unambiguous and precise, something natural language struggles with. Where you can say “Put that there” in English and rely on context, a computer needs crystal-clear instructions like move(item...
  17. ratwolf

    I actually like the temporary theme

    Happy with existing solution
  18. ratwolf

    Review My website Structure and Design

    you need to focus on developing the design of the website yourself. Please take some time to think about what you want in terms of aesthetics, user experience, and functionality. Once you have a clear vision, discuss it directly with your programmer to implement it. This is something that...
Back
Top Bottom