Hi, I have a little problem with npm.
I started a new project and I'm stuck right at the beginning and I don't know what to do. I know it's pretty easy, but in this case I tried everything and nothing helped, so thanks in advance for the help. As always, I installed the node modules in the new...
Here's an error that has been plaguing me every time I try to add a function from within an onclick. It happens for seemingly no reason. Here is the code:
export class Clickables {
constructor(game) {
this.game = game;
this.doOnce = false;
this.textDisplaying =...
I have been working at this thing for like a year and it just has not been working. It is supposed to download files, acting as a button. Could someone correct it please?
<!DOCTYPE html>
<html>
<Head>
<title> button </title>
</head>
<a href="file path"...
I'm attempting to use sqlite3 with node.js, I'm on macOS. and I've tried everything imaginable to try and fix the problem but as soon as i try to run,
const sqlite3 = require('sqlite3').verbose;
const db = new sqlite3.Database('my_database.db');
it comes up with the error: Uncaught TypeError...
I'm trying to get data from my temperature and humidity sensor and write the data to a JSON file every minute. I started learning Python two days ago, so I have no idea why these errors occur (the output is in the attachment):
The Code:
import time
import board
import adafruit_dht
import...
Hello All, I am in learning face to java programming and to run my program at the command prompt, I downloaded the java development kit also known as JDK, and I set my windows 10 system path to:
C:\Program Files\Java\jdk-9.0.1\bin;C:\Program Files\Java\jre-9.0.1\bin
After writing a simple...
I have defined some variables. I have previously defined
#define SYS_LEN 50.0
#define N_CELLS ((int)SYS_LEN)
as well as
extern double *array_one
where I populate the array via
array_one[0] = 0.5*SYS_LEN
array_one[1] = 0.25*SYS_LEN
I then go onto define a further array within a function
void...
I am trying to change my profile picture to a GIF, but it either loads forever and then nothing happens, or I get this error:
The GIF image is 400x400px and 2.38mb
I would like it to run rather than terminate itself:
#//Snake
#Import random for spawns, turle for graphics, time for pauses, and urllib for downloading icon
import random
import turtle
import time
import urllib.request
#//Downloading...
print("Downloading necessary files...")
#//Icon download...
// Code asking for name & checking for numbers
let nam = prompt("What would you like to be called?");
while (l == 0) {
if (isNaN(+nam) !== true) {
if (nam === '69' || nam === '420') {
console.log(`( ͡° ͜ʖ ͡°), We don't call people numbers, such as "${nam}" `);
nam =...
Hi. I'm coding a hangman game in Python & I've been getting an error that I can't figure out how to get rid off. Basically, after I take the user's letter, I create a counter that goes from 0 to the length of the word. However, since Python uses the number 0 first, instead of 1, I have to do the...
When I try to create a new flutter project in Android Studio, it says that "The Flutter SDK is incomplete" after I specify the SDK.
The Next button is also greyed out so I can't continue either. I have followed all the instructions on the flutter.dev website and installed the Flutter and...
Hello y'all!
I'm new here, so I hope my question will be clear enough!
I'm trying to create a Breakout game using Python n Turtle.
I created my lists of blocks and my main block to .clone() but
wenn the ball reaches the top of the game, where the blocks are, it only erases the first block...
So I've just started coding, and obviously I did some things wrong.
I wanted to make a jump script in which jumpDelay turns FALSE when the button is pressed, and TRUE when the player hits the ground.
The problem is that "Cannot implicitly convert type 'bool' to 'PlayerCollision'. "
I do not...
Hi, I am new here!
I need help for my Quiz assignment as I have a problem in my Javascript.
My quiz has a textbox, radio and checkbox.
At first, the checkAnswer() worked when I did not input the show() function to my JavaScript. It showed my overall score.
But after I input that show() function...