Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by Ingolme

  1. Is this for homework?

    It's pretty obvious to me, but I wouldn't like to help you cheat at your homework, you wouldn't learn anything.

    A logical error is when the program compiles and runs just fine, but does not do what you want it to. To identify the logical error in your code, look at what the program is actually doing and compare it to what you want the program to do.

  2. John

    Assuming that all of the table have the same DateTime values and the same number of rows, the query is not too difficult. If the different tables have different date times it becomes more complicated.

    The simple query would be like this:

    INSERT INTO `NewTable` (`DateTime`, `Object1Value`, `Object2Value`, `Object3Value`)
      SELECT t1.`DateTime`, t1.`Object1Value`, t2.`Object2Value`, t3.`Object3Value`
      FROM `Table1` AS t1
      JOIN `Table2` AS t2 ON t2.`DateTime` = t1.`DateTime`
      JOIN `Table3` AS t3 ON t3.`DateTime` = t1.`DateTime`

    This may be very slow depending on how many rows there are to copy from the tables.

  3. You'll have to learn to use the Canvas API.

    The simplest way to make a drawing application using canvas is to draw circles on each mousemove event while the mouse button is down, or on phones, using the touchstart, touchmove and touchend events.

    Once you managed to make a simple drawing application, then comes the difficult part: writing software to recognize shapes. There is an entire field of science dedicated to solving this one problem, it is not an easy task. It seems neural networks are the most common approach to solving it.


  4. This would take me hours.

    You have to replace all "\x##" in the strings the the ASCII character of that value. Then put line breaks on opening braces, closing braces and semi-colons. Then you have to indent all the code.

    Perhaps there are some automatic code deobfuscators out there but I've never looked for one.

    Why do you need to decode this? I'd sooner write new software from scratch then spend the time on this.

  5. 15 hours ago, Makwana Prahlad said:

    At first, you need to use a input[type=file] to get a File.


    <input type=file id=file/>
    <div id=result></div>

    And then use FileReader to read file to target format, just like base64, text, buffer.

    const file = document.getElementById('file').files[0]
    const result = document.getElementById('result')
    const reader = new FileReader
    reader.addEventListener('load', () => {
        result.innerHTML = reader.result
    reader.readAsText(file, 'UTF-8')

    See: https://developer.mozilla.org/en-US/docs/Web/API/FileReader

    If you read the thread instead of just the title, the question was regarding running Javascript from a local file.

  • Create New...