Navigation

    ask avan logo
    • Register
    • Login
    • Search
    • Categories
    • Unsolved
    • Solved
    Log in to post
    • All categories
    • Coding Question & Answers
    •      Javascript + jQuery
    •      Java
    •      PHP
    •      Ruby on Rails
    •      Hosting
    •      Git and Github
    •      Linux
    •      Domain Names and DNS
    •      Coding Tools
    •      HTML CSS
    •      Bootstrap
    •      Node.js + Express
    •      React.js
    •      Angular.js
    •      Python
    •      Spreadsheet Macros
    •      Android
    •      C#
    •      C++
    •      C
    •      Algorithm
    •      General Software / App
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • L

      SOLVED Function (split_string_at_index) given string & index , can't figure out how pass back to main after splitting into source_left and right
      C • • learntocode  

      7
      7
      Posts
      11
      Views

      L

      Thanks again and I will do that.

    • anushree bajaj

      UNSOLVED I am learning socket python but keep getting error in my client file. Please help.
      Python • • anushree bajaj  

      3
      3
      Posts
      5
      Views

      avan

      @anushree-bajaj said in I am learning socket python but keep getting error in my client file. Please help.:

      msglen = int(msg[:headersize])

      Have you tried googling the exact error message?

      e.g.

      ValueError: invalid literal for int() with base 10: b''

      When I tried googling it I got the following answer:

      https://stackoverflow.com/questions/1841565/valueerror-invalid-literal-for-int-with-base-10

      So try changing

      msglen = int(msg[:headersize])

      to

      msglen = float(msg[:headersize])

      I am not a python guy so not sure how that will affect your program. Let me know . ☺

    • Cynthia Chang

      UNSOLVED How to finish this tic tac toe program?
      Python • • Cynthia Chang  

      2
      2
      Posts
      16
      Views

      avan

      The question is too broad. Asking questions on specific parts of the assignment/problem is much better and yields better results.

    • Filippo Rezzadore

      UNSOLVED I am trying to update the value in a post custom field as automatically with a variable value.
      PHP • • Filippo Rezzadore  

      1
      1
      Posts
      9
      Views

      No one has replied

    • C

      UNSOLVED Problems with loading modal in Safari, Firefox and on Smartphone
      Javascript + jQuery • html javascript • • cthornval  

      2
      2
      Posts
      5
      Views

      avan

      Try to create a vanilla sandbox and then share the link with us.

      https://codesandbox.io/

      Let me know if you need help on how to do that.

    • Michael Constantine

      SOLVED how to add Random pick and Reset buttons for a table (html - javascript)
      Coding Question & Answers • • Michael Constantine  

      4
      4
      Posts
      7
      Views

      Michael Constantine

      Very sorry for not answering, yes of course it did worked, allow me to say you are a real master and thank you a lot

    • mrnuqname

      UNSOLVED How to Select All Elements Based on Attribute Name
      Javascript + jQuery • • mrnuqname  

      3
      3
      Posts
      11
      Views

      mrnuqname

      Thanks for the response!!

    • P

      UNSOLVED mtproto proxy
      Linux • • pedram  

      1
      1
      Posts
      4
      Views

      No one has replied

    • C

      SOLVED Toggle both <div> and <p> onclick + hide <div>
      Javascript + jQuery • div javascript paragraph toggle • • cthornval  

      6
      6
      Posts
      14
      Views

      avan

      Awesome @cthornval

      Post anytime! One more favor to ask, do you mind selecting my answer as the correct solution? Thank you.

    • N

      UNSOLVED Parse logs and report alert when 'n' errors within 'm' minutes
      Python • • neuromancer  

      5
      5
      Posts
      10
      Views

      N

      it's fine, An: glad to share...

    • Hnp Mira

      UNSOLVED training error bigger than testing (validation) error (XGBoostRegressor)
      Python • • Hnp Mira  

      1
      1
      Posts
      6
      Views

      No one has replied

    • Michael Constantine

      SOLVED Table "size" problem when adding or removing some cells
      Coding Question & Answers • css html javascript size table • • Michael Constantine  

      2
      2
      Posts
      8
      Views

      avan

      Hey @Michael-Constantine again,

      No sure if I understand. But I think you have to pay attention to the width and height you have set here:

      <table border width='250' height='250' cellspacing='0' cellpadding='0' align=center>

      So the table will always to stay within those dimensions regardless of how many cells you are adding or removing.

      Do you want the cells to stay the same size? If so try to adjust the width and height every-time you adjust cell numbers. Hope this helps.

    • Michael Constantine

      SOLVED how to set another <td> bg color on click
      HTML CSS • background border css html table • • Michael Constantine  

      6
      6
      Posts
      20
      Views

      avan

      @Michael-Constantine You are good. I took care of it.

    • W

      SOLVED Javascript Registration Form Validation
      Javascript + jQuery • javascript validation • • willaeng  

      2
      2
      Posts
      8
      Views

      avan

      Hey @willaeng

      I would start off by not calling on value twice. You call on value here:

      var userId = document.myForm.userName.value;

      and again here:

      var userId_len = userId.value.length; ... else if (userId.value.match(alphaNumber)) {

      Try removing the extra calls on .value and then go from there.

    • X

      UNSOLVED Build a timed code quiz with multiple-choice questions. It will include html, css and js with timer that -10sec if wrong ans im a beginner
      Javascript + jQuery • • xsza  

      2
      2
      Posts
      8
      Views

      avan

      I would recommend formatting your code by embedding it inside the code tags like so

      var question = "Can you Help?"

      use three back ticks ` or the code (</>) option at the top.

    • Jayanti Vishnoi

      UNSOLVED Maximum xor Value Pair n an Array Without Using Tries
      C++ • • Jayanti Vishnoi  

      1
      1
      Posts
      8
      Views

      No one has replied

    • Kebaboo

      SOLVED Can't Get pip install apiai To Work
      Python • python3 • • Kebaboo  

      2
      2
      Posts
      14
      Views

      avan

      I don't work with python at all but I feel like you might be trying to do something that is outdated.

      Screen Shot 2020-01-28 at 5.07.28 PM.png

      The following page has more info on it's replacement:

      Google Python client library

      Screen Shot 2020-01-28 at 5.08.20 PM.png

    • Paul Borg-Barthet

      SOLVED MP3 Player for Listening Tests
      Coding Question & Answers • • Paul Borg-Barthet  

      2
      2
      Posts
      15
      Views

      avan

      Per our session via zoom here is working version of the mp3 player. Wanted to post in case there is somebody else looking for the same thing.

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>MP3 Player For Testing Purposes (Only Plays Twice)</title> </head> <body> <h1>MP3 Player For Testing Purposes (Only Plays Twice)</h1> <script type="text/javascript" src="https://avantutor.com/student_files/swfobject.js"></script> <script src="main.js" charset="utf-8"></script> <div id="myAlternativeContent"> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a> </div> </body> </html>

      main.js javascript file in the same directory as the html.

      var flashvars = {}; flashvars.mp3url = "https://avantutor.com/student_files/test.mp3"; flashvars.timesToPlay = "2"; flashvars.showPlay = true; flashvars.waitToPlay = true; var params = {}; var attributes = {}; attributes.id = "myflashcontent"; swfobject.embedSWF("https://avantutor.com/student_files/mp3.swf", "myAlternativeContent", "100%", "100", "9.0.115", "https://avantutor.com/student_files/expressInstall.swf", flashvars, params, attributes);
    • C

      SOLVED Images does not show in Lightbox module on click
      Javascript + jQuery • javascript • • cthornval  

      3
      3
      Posts
      13
      Views

      C

      This worked wonderfully! I ended up using both codes!

    • Paul Borg-Barthet

      SOLVED Adding Pipe Video Recorder to Formsite
      Coding Question & Answers • • Paul Borg-Barthet  

      2
      2
      Posts
      13
      Views

      avan

      Here is what I got from the link you shared:
      "Replace formsite_field_ID with the id of your Hidden Field item. If the Hidden Field item is the first item in the form, the ID will be RESULT_TextField-0. You can view the form and either view the page source or use the browser’s developer tools to find the item’s ID value."

      So let's start by making sure that the id of the hidden field exists and is 'RESULT_TextField-0'.

      To do that, you need to inspect the page. Select an element close to the hidden element since you cannot see the hidden element. And then look for the id of the hidden element. I have included a small demonstration on how to do it on a different form.

      View Demo (will open in this window)

      Or share the page source of the form page and we can help you find the id of the hidden element.