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. John Weiss

    Bit Masking

    I'm trying to understand the code here View: https://www.youtube.com/watch?v=NLKQEOgBAnw&t=443s I don't understand this notation: (x&(1<<i)) != 0 I understand we want to AND the bit at i position with 1, and see if it's equal to 1. So i assume that's what the formula is doing. Is this C...
  2. John Weiss

    Python Receive Input on Same Terminal Line?

    How to receive input on the same line, without clearing the rest of the terminal? The following prints a new "Enter" line for every bad entry. while not entry in menu: entry = input('Enter: ') (also asked on thecodingforums, freecodecamp, python-forum.io)
  3. John Weiss

    HTML & CSS Clicking Hidden Radio Button

    Trying to click a hidden radio button, but it's making the image go all wonky. How to fix? Everything seems normal until you click. Then the image remains wonky even after you move the mouse pointer away. The img-clip div constrains the size of the image. The radio-button click area is meant to...
  4. John Weiss

    JavaScript Reg Exp Not Working With matchAll

    Trying to get all delimited items in a string. Here's the code: const myString = "abc{{HELLO}}defg{{WORLD}}" const templateFieldsRegex = /\{\{\w+\}\}/g const templateFields = myString.matchAll (templateFieldsRegex) I expect to get array ["{{HELLO}}", "{{WORLD}}"] Not getting any results. also...
Back
Top Bottom