« first day (3760 days earlier)      last day (357 days later) » 

2:41 AM
<button id = "foo">
<script>
var foo = "potato"
foo.hidden = true
</script>

In this case, it should fail, because "foo" refers to a text string that contains the word "potato" and not to an id element
 
1 message moved from JavaScript
 
<button id = "foo">
<script>
var foo = "potato"
foo.hidden = true
</script>

In this case, it should fail, because "foo" refers to a text string that contains the word "potato" and not to an id element
 
1 message moved from JavaScript
 
 
2 hours later…
4:14 AM
0
Q: bash for loop outputs always the same number

skynet1010I try to print the numbers from 1 to 14 to terminal window. If I execute for i in {1..14}; do echo $i; done everything works as expected. If I execute the following: /bin/bash -c "for i in {1..14}; do echo $i; done" it outputs always the number 14. I don't understand, why ....

 
 
6 hours later…
9:57 AM
0
Q: esptool.py: line 7: import: command not found

Andrea ZanniI want to erase the flash before installing MicroPython on my ESP32 dev board. The problem arises when I try to erase the flash: ~$ esptool.py -p /dev/ttyUSB0 erase_flash /home/chloe/esp/esp-idf/components/esptool_py/esptool/esptool.py: line 7: import: command not found /home/chloe/esp/esp-idf/co...

 

« first day (3760 days earlier)      last day (357 days later) »