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. cbreemer

    After .exitD is clicked, which should be hidden?

    For all we know that button does not have an onclick handler or form action, and as @Johna writes, it will be doing nothing at all when you click it. Is there a particular reason for this jumble of <div> 's ? Is this generated or copied code or did you write it like this ?
  2. cbreemer

    JavaScript JS audio player not working on Tumblr blog

    What error are you stuck on then ? Please tell me you have made an effort to understand and fix at least some of them.
  3. cbreemer

    JavaScript Canvas drawing issue

    I am having fun with drawing stuff on a Canvas using Graphics2D. Basically I want to mimic a Form Editor like that of Visual Studio, where you can paint a component on the screen by drawing rectangle with the mouse. Essentially, the rectangle should grow or shrink as long as the mouse is being...
  4. cbreemer

    JavaScript Model validation error when using Fetch or Axios despite returning a status 200 in the backend?

    A lot of stuff here I don't know anything about - React, ASP.Net, Axios, Swagger ... I have only gotten as far as using vanilla JS with XmlHTTPRequest against a PHP backend. I'd take my cue from the fact it works with Swagger. Actually that seems to be using the good old cUrl command, the...
  5. cbreemer

    JavaScript JS audio player not working on Tumblr blog

    You can safely assume that is the issue, or at least part of it. Fix the errors one by one.
  6. cbreemer

    JavaScript file js with suspected malicious code

    You won't get anyone to download this. If you don't know anything about JS, why do you find the code very strange ? Evidence please ?
  7. cbreemer

    Using C/C++/FreeBASIC etc. dll with scripting languages.

    This is interesting. Makes one wonder how an interpreted language goes about calling native code does it not ? Again, I think the author of the ffi-napi package could possibly tell you more. So are there specific things you can do with C/FreeBasic that you cannot do directly in Node.js or...
  8. cbreemer

    Using C/C++/FreeBASIC etc. dll with scripting languages.

    My past experience with dynamic loading and calling of DLL's/shared libraries is restricted to compiled languages and Java. No idea how interpreted languages like Python and Node.js handle this, but I can't believe there is much performance impact here. Perhaps the author of the ffi-napi package...
  9. cbreemer

    C++ How to get C++ to identify colors in a webcam.

    Doing pretty much nothing is not going to get you anywhere. Try to take a few first steps at least. Set up your webcam in the required spot, shoot a video and feed it into your computer. Beforehand, think about the speed of your marbles and choose an adequate video framerate so you get several...
  10. cbreemer

    Dynamic load of CSS file

    Yes I think so. It's the default, right ? and there is no styling there to change it. But now I start to wonder why I made the popup absolute. May have to rethink that, I don't care about caching, these styles are only used for a bundle of dialogs that are created on-the-fly. But yes I DO miss...
  11. cbreemer

    C++ How to get C++ to identify colors in a webcam.

    What have you done with your webcam?
  12. cbreemer

    Dynamic load of CSS file

    I get that you think that. But yes the CSS is already there, otherwise the color of the popup would not be "aliceblue" and the height would not be 50px. It just does not have the correct position yet. I have my reasons 😊 Anyway I have worked around the issue now. It occurred to me that if I...
  13. cbreemer

    C++ How to get C++ to identify colors in a webcam.

    What have you got so far, also in terms of infrastructure ?
  14. cbreemer

    Dynamic load of CSS file

    Just wondering is anyone here has experience with dynamic loading of stylesheets. I am doing this and it works well, just not the first time. I fail to see what difference there is between the first time and the second. Either I am overlooking something obvious, or there is more to it than meets...
  15. cbreemer

    Hard disc drive does not work Windows 11

    Good that you have it sorted. Your original post makes a bit more sense to me now.
  16. cbreemer

    HTML & CSS Set minimum with for HTML <dialog> ?

    For the record, I have enforced a minimum size by padding the header text (the first <div> in the dialog) with the necessary number of &nbsp; characters.
  17. cbreemer

    Fun activity Know any good programming jokes?

    I remember seeing a bit of professional C code where one statement was adorned with this comment // Look Mom, I'm a C programmer now !
  18. cbreemer

    Fun activity Know any good programming jokes?

    Kaksi Fooa meni baariin, mutta toinen ei oikein mahtunut ? So that 'works' ? 😁
  19. cbreemer

    I create a Factor Calculator Tool for Factoring in HTML. Please Help with this

    A general remark : you can use == and != instead of === and !== That long format is only needed when you are dealing with objects and want to compare not just the values but the actual object instances. Not sure I explained that 100% correct but you may get the gist.
  20. cbreemer

    I create a Factor Calculator Tool for Factoring in HTML. Please Help with this

    I haven't studied Johna's algorithm. But it seems to me that your code is largely ok, except that you try divisibility by each prime factor only once. Which is why up see each prime factor only once in the factorization. You need to keep dividing until the division does not succeed anymore - if...
Back
Top Bottom