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

    HTML & CSS Background image map with clickable areas to bring up popup

    I had thought of a solution, but the problem is that it is not really simple: You put the background, as an <img>, inside a <div>. You give the <div> a smaller size than the <img> and you give the property overflow: hidden; to the <div> so there is not scrollbars that appears (Only a section of...
  2. LTomy

    Python Simple confusion for the del instuction

    Hello Steve389! The reason is that the index '-1' is invalid. The first element of an array is located at the index '0'. You are trying to delete a non-existing element, thus the error. Wait... Are you sure the problem is at line 5 and not 6?? Also, it should be: hatList[2] = int(input("Enter...
  3. LTomy

    Python for else loop

    Hello adenn! So, if I understand right, your post is a presentation of the for-else loop in Python? Thank you for sharing your knowledge here! Just a little remark: Please insert your code inside code tags by clicking on the </> button (And mark it as Python code) and make sure to keep the...
  4. LTomy

    HTML & CSS Background image map with clickable areas to bring up popup

    Hello scully_a, Quite interesting that you made a video to explain the problem ;) I am thinking about it, but for now, I did not find any simple way to achieve that...
  5. LTomy

    JavaScript how to make a video autoplay from javascript in chrome, with volume?

    Hello, I do not have much experience with Javascript, but can't you simply start the video yourself by writing the following?: var video = document.getElementById("video"); video.play();
  6. LTomy

    HTML & CSS Why does the class work inside the img tag but not inside div?

    Hello! As @Malcolm said, you need to be more specific! However, I think what you expect is the two codes to produce the same result, right? The thing is the size of an <img>, by default, does not depend on its parent, so changing the size of the <div> will, by default, no affect the <img>. If...
  7. LTomy

    Python Python Proxy File

    Heum, that is different if this is not the script that does the requests. That would probably be different for each Web browser. It is probably possible to configure the Web browsers so they pick random proxies by themselves. That way, you would simply have to open them with the Python script...
  8. LTomy

    sometimes my code doesn't let me enter a character if it is asked earlier in the program

    Oh, I did not notice your reply! I was going to say to simply use 'getchar' first to discard the newline character, but what Krusty said is probably better here! You would have to give 'stdin' to the function 'fflush': fflush(stdin); Bascially, 'stdin' is a pointer to an object of type FILE that...
  9. LTomy

    Python Python Proxy File

    Hello! The HTTP requests would be made by the script? Using a random proxy each time is not the hard part. I do not know any Python library, but you would have to use a Python HTTP client that supports to usage of proxies.
  10. LTomy

    PHP Email PHP | Not sending/receiving email

    Hello kelloggs_cp, Sorry for the very late reply! Did you solve it? Do you send the mail from a Gmail account? If so, you must activate a configuration on your Gmail so it can be used by external programs such as PHP. Do you use your own mailserver? If so, does it work by itself? Many internet...
  11. LTomy

    HTML & CSS Ways to improve technical debt, and various issues in front end.

    Hi Jatin4494, Sorry, it seems that your post got lost and forgoten! Well, sadly, I do not have the experience to help you much on that...
  12. LTomy

    JavaScript HTML5 Canvas - Drag and Drop

    Hello WolfTech77! I do not know how to help here, your question is relatively large. If you are comfortable with JS it does not seem too hard to do, but it for sure takes some time to actually code. Some thoughts, I do not know if it will be useful to you?: You can generate <input...
  13. LTomy

    HTML & CSS Can not get all links to work with my custom cursor

    Hello ryanforprez, Sorry for the late reply! It seems to work... Did you solve it?
  14. LTomy

    Python I'm trying to re loop my code and stop when if statement is right

    Hello IDrinkKoolAid, You must write a short description of what is the problem exactly if you want some help! You know that the instruction 'break' has the effect of making the current loop ('while' here) stop? By the way, great name, haha!
  15. LTomy

    Hi All

    Welcome SMSteven, Nice to have you here on CodeForum!
  16. LTomy

    We now have 900 registered coders!

    Haha, that GIF ;)
  17. LTomy

    Loops

    Hello Sh123, Basically, 'For J in J_LIST' repeats the instructions between 'do' and 'enddo;' for each value inside 'J_LIST' and it assigns 'J' with the value.
  18. LTomy

    Python Needing help with errors (FIXED)

    Hello Zyphon_22, I am glad that you found out the problem! Yeah, it is normal. The default is python2 when you do not specify it!
  19. LTomy

    sometimes my code doesn't let me enter a character if it is asked earlier in the program

    Let us say you enter '1234' to the console. What will be received by the console is "1234\n" (The '\n' is created when you press the key 'enter'). If you execute 'scanf("%f", &var);', then, only the '1234' part will be taken off by 'scanf'. So, when you execute 'scanf("%c", &e);', what is read...
  20. LTomy

    sometimes my code doesn't let me enter a character if it is asked earlier in the program

    With printf, you must give, as argument, the value of the variable, not its address ;) : printf("%c", e);
Back
Top Bottom