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

    C My professor said there is no way this code works...but it does and we don't know why.

    Hello bouttreefiddy, Waaahh, gave you 0, kind of rude :laugh:. I must say your code is pretty clean. There is a small problem in the functions 'feet_per_second, and 'meters_per_second'. You are using the variable 'calc_seconds;': calc_mps = (double)METERS_PER_MILE/calc_seconds; But you did...
  2. LTomy

    HTML & CSS non linear gauge

    Simply tweak the angle (Transform the real angle into the angle for the gauge). The following function should return the angle the gauge must have depending on the real angle: function tweakAngle(angle) { if(angle < 50.0) return (angle / 50.0) * 35.0; else return angle -...
  3. LTomy

    Hey there 🙋

    Welcome, Good to have you here on CodeForum!
  4. LTomy

    What do you recommend to connect to your website storage space?

    Hello Pien, I personnaly use Filezilla, but I do not think the FTP program used really matters. It depends on how the Web server is configured, but I guess the 'root' of you storage space is the 'root' of your website, so if the file 'page.html' is located at the root of your storage space...
  5. LTomy

    Python Key input in python

    Hi Zyphon_22, I do not understand what you want to achieve... The first and second examples do not produce the same result. The second example simply inputs text from the console and discards it (It stores it inside a local variable that will be destroyed at the end of the function call). The...
  6. LTomy

    HTML & CSS non linear gauge

    Hello mgysgtdev, I am not sure to understand what the problem is, but the following JS code should set the rotation of the gauge with the class 'truck-engineRpm' to the value of the variable 'rotation': var rotation = 90; var gauge = document.getElementsByClassName("truck-engineRpm")[0]...
  7. LTomy

    Search Engine

    Well, you could first look if the request matches one of the name of the links (Ex. 'Youtube') and otherwise look for the links that matches the closest (Example, return 'Youtube' if the request is 'outube').
  8. LTomy

    Search Engine

    You will need JS to filter the element displayed in function of the keywords in the search box.
  9. LTomy

    Search Engine

    Well, okay yeah, that is simpler. But still not easy. What do you want to search? Do you have a list of 'products' or a list of 'articles'? You need to define a criteria that will be used to determine the list of 'articles' or 'products' that are relevent to the search query.
  10. LTomy

    Search Engine

    Web search engine? That is really hard to do. If you need to ask how to do it, you probably do not have the experience/ressources to achieve it. Basically, you need to analyse pretty much all the pages of all the public websites and then, using the data you compiled from that, you present a...
  11. LTomy

    What should I name my website.

    Hahah.
  12. LTomy

    What should I name my website.

    Bonsoir, When it comes to finding a name, it depends on you preferences really. That sounds interesting, but, if I may ask, why? What benefits would it have from GitHub?
  13. LTomy

    Java Java Array List

    Oh, sorry did not notice. I do not have much knowledge with Java and even less with Java byte-code decompilation...
  14. LTomy

    Java Java Array List

    Hello Sago, I do not seem to understand. That does not look like Java code to me?
  15. LTomy

    Python insert() function printing the list the opposite way

    Print will simply display the values inside the List, in order. When you give '2' as first argument to 'insert', the value is inserted inside the array at the index 2 from the start of the list. If the list is smaller than 3, then it is inserted at the end.
  16. LTomy

    Python insert() function printing the list the opposite way

    In the 'for' loop above, 'i' starts with the value '1' up until 5'. So, in the first iteration, you insert '1' at the begining of the list. Then, you insert '2' at the START of the list. ... Finally, '6' is inserted at the START of the list. The first argument of 'insert' is the position...
  17. LTomy

    Python insert() function printing the list the opposite way

    I did not understand. Right now, it starts at 0 or 6? Seems like it should start at 6. When you give '0' as first argument to 'insert', you insert the value at the start of the array. Therefore, in the 'for' loop, the array grows like that: (1) (2, 1) (3, 2, 1) (4, 3, 2, 1) ...
  18. LTomy

    Python Simple confusion for the del instuction

    Glad I helped! I did not know for the [-1], I do not really code in Python, so I assumed it was like in C++ haha ;)
Back
Top Bottom