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

    • C

      SOLVED Adding classes to javascript onhover code
      Javascript + jQuery • • cthornval  

      5
      5
      Posts
      21
      Views

      C

      Hey Avan! thanl you so much it worked!

    • AshutoshxxTeotia

      SOLVED why this code is not giving o/p as 3?
      C • • AshutoshxxTeotia  

      2
      2
      Posts
      9
      Views

      avan

      Hey @AshutoshxxTeotia

      How about something like this

      main(); int main() { printf("%d",tried(1,2)); } void tried(int a,int b) { int c=a+b; return c; }
    • Nature Square

      UNSOLVED I am trying to convert this "b'{"raw": 1587513600, "fmt": "2020-04-22"}'" to string in javascript
      Javascript + jQuery • • Nature Square  

      2
      2
      Posts
      5
      Views

      avan

      Hey @Nature-Square

      I would recommend formatting any code that you have in your post. It makes it easier to read.

      So what parts EXACTLY of the following would you like to convert to a string?

      "b'{"raw": 1587513600, "fmt": "2020-04-22"}'"

      What is the current type? You can use the built in typeof function to test e.g. typeof argument

    • Seehoon Jang

      UNSOLVED How to show up student's score? (C++)
      Coding Question & Answers • • Seehoon Jang  

      2
      2
      Posts
      4
      Views

      avan

      Hey @Seehoon-Jang I am confused on what is happening here. What is missing/not working? What is working?

    • DragonFire12321

      UNSOLVED Which programming language anylises data?
      Coding Question & Answers • • DragonFire12321  

      2
      2
      Posts
      6
      Views

      avan

      Hi @DragonFire12321

      Not sure if I understand your question correctly. What do you mean by "inspect element thing"? Do you want to know what languages you are able to inspect on a web-page? If so, you should be able to see the HTML, CSS and JavaScript. All the front-end stuff. Nothing on the backend.

    • Ayush gwari

      SOLVED Getting array out of bound exception in given problem
      Java • • Ayush gwari  

      3
      3
      Posts
      10
      Views

      avan

      Hey @Ayush-gwari

      Did that work for you? If so, do you mind marking my answer as the correct one. Thank you.

    • Jeetendrakumar Garag

      UNSOLVED Getting an error during runtime after submitting values for a regression model in flask
      Python • • Jeetendrakumar Garag  

      1
      1
      Posts
      8
      Views

      No one has replied

    • C

      UNSOLVED combining toggle code and slidetoggle+click outside code
      Javascript + jQuery • • cthornval  

      1
      1
      Posts
      4
      Views

      No one has replied

    • AshutoshxxTeotia

      SOLVED why this code is not working guys!
      Coding Question & Answers • • AshutoshxxTeotia  

      3
      3
      Posts
      13
      Views

      AshutoshxxTeotia

      you are right bro I got it just look at the last variable in the same line.

    • Raghav Khemka

      c++
      C++ • • Raghav Khemka  

      2
      2
      Posts
      5
      Views

      avan

      Hey @Raghav-Khemka

      I am confused. Have you tried running it? Are you asking what the output would be if you ran it?

    • Laurens van Oorschot

      UNSOLVED How do I get the selected ID of the second dropbox based on the first dropbox in PHP with a refresh?
      PHP • • Laurens van Oorschot  

      1
      1
      Posts
      5
      Views

      No one has replied

    • Lpokimo

      SOLVED Java Game engine Problem
      Java • • Lpokimo  

      10
      10
      Posts
      38
      Views

      avan

      @Lpokimo said in Java Game engine Problem:

      input = new Input(null); (This

      In your version you have

      input = new Input(null);

      in original version it is correct

      input = new Input(this);

      Line 26 in GameContainer.java file

    • Frankie Pa21

      SOLVED I know it is not coding but i was hoping you could help Trouble with math
      Coding Question & Answers • • Frankie Pa21  

      2
      2
      Posts
      16
      Views

      avan

      Hey Boonie!

      Not sure what they mean by 'best' prediction but every time you roll a die you get a 1 in 6 (or 1/6) chance that you roll a six. So if you roll it 6 times you just have to multiple 1/6 by 6 So

      1/6 * 6 = 1

      So my guess would be 1. I hope that helps boonie.

    • C

      UNSOLVED How to make a resposive bottom-up slider, that also works as a nav-bar
      Javascript + jQuery • • cthornval  

      5
      5
      Posts
      8
      Views

      avan

      Hey @cthornval

      I am sorry but I am afraid it's still confusing. Both snippets show a bottom-up slider . If you still need help I would recommend trying a screen recoding and then uploading it. It would have to be short though since the file limit is 50 MB I think. That way you can show me instead of trying to describe it. Just an idea.

    • Likith S reddy

      UNSOLVED Can someone try this question?
      Algorithm • • Likith S reddy  

      1
      1
      Posts
      11
      Views

      No one has replied

    • William W. Hensley

      SOLVED Creating a list from the the intersection of two lists containing unique integers
      Python • • William W. Hensley  

      5
      5
      Posts
      11
      Views

      William W. Hensley

      Thanks! This works and it only takes up 4 lines of code. The computation time is also much faster than my code. I think that I understand why it works faster as well. Your code executes after looping 23 times. However, my code executes after 11 iterations of 23 or 253 iterations which is 11 times more than my code. Also, it took 13.7 milliseconds, whereas as mine took 185 milliseconds which is 13.5 times as fast. I suspect that the method that I used where I changed my list into a set and then returned to transform it into a list also took more time than your method you recommended to me, which could partially explain the discrepancy in computation time as well.

    • bob pan

      UNSOLVED Python turtle collision detection
      Python • • bob pan  

      1
      1
      Posts
      16
      Views

      No one has replied

    • Abdul Rehman

      UNSOLVED 2D arrays in c++
      C++ • • Abdul Rehman  

      2
      2
      Posts
      12
      Views

      avan

      Hey @Abdul-Rehman

      Do you still need help with this? If so I would love to help but I would need to know what you have done so far and where you are stuck? It's important to share what you have tried so far or at least what your thought process is. And that is because it benefits you in terms of learning and it helps us feel good about helping you. Thank you.

    • Alassane Diallo

      UNSOLVED DuplicateFlagError: The flag 'config_path' is defined twice
      Python • • Alassane Diallo  

      1
      1
      Posts
      14
      Views

      No one has replied

    • William W. Hensley

      SOLVED PYTHON: Checking Primality of Integers
      Python • python3 • • William W. Hensley  

      10
      10
      Posts
      12
      Views

      William W. Hensley

      ok, I understand now