Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
3 replies
41 views

I am a beginner learning GCSE level python, but stuck on this book problem Here, the num1.txt file data is appended to the temp1list num1.txt file data: 10,20,30,40 20,30,40,50 30,40,50,60 40,50,60,70 ...
nova's user avatar
  • 1
0 votes
3 answers
164 views

I’m a B.Tech CSE 1st-year student and I’m learning C. I wrote a simple program to take two integers as input and print their sum. But when I run it, the program either skips the input or gives the ...
Dilip M's user avatar
Best practices
0 votes
7 replies
169 views

import random number_to_guess = random.randint(1, 10) while True: guess = input("Guess a number between 1 and 10: ") # This crashes if 'guess' is not a number if int(guess) == ...
P Jaideep's user avatar
1 vote
2 answers
87 views

I have this piece of code <input matInput type="number" [(ngModel)]="value" (ngModelChange)="onChange(true)" /> But I want to be able to enter only numbers, ...
Lako12's user avatar
  • 376
1 vote
1 answer
95 views

If I want consistent scrolling behavior across platforms and different wheel resolutions, I need a way to make wheel input independent of the device’s physical precision. Different mice seem to have ...
Zhi J ZhiJ's user avatar
0 votes
1 answer
52 views

I’m learning Python and trying to take two numbers as input from the user, then print their sum. My code: a = input("Enter first number: ") b = input("Enter second number: ") print(...
Apurva Bhoyar's user avatar
Advice
1 vote
1 replies
105 views

The prompt_toolkit module allows displaying output while simultaneously waiting for input without breaking the input line. Here's an example from the developer: import asyncio from prompt_toolkit....
IlayVanse's user avatar
0 votes
1 answer
82 views

Here is my code: print("Make a 20-digit code with numbers 0-9: |___|", end="\r", flush=True) addDigits = input("Make a 20-digit code with numbers 0-9: |") More ...
define_duck's user avatar
1 vote
1 answer
115 views

I have a basic input grabber which looks like this: Display *display = NULL; int main(const int argc, const char *argv[]) { display = XOpenDisplay(NULL); if (!display) { return 1; ...
Coarse Rosinflower's user avatar
0 votes
2 answers
129 views

What I'm doing is having the value of my <input> reflected in the value of the data attribute every time I click a button, to then copy the value with another button. Example: If I type "...
3Code's user avatar
  • 93
0 votes
0 answers
50 views

I'm encountering an inconsistent event behavior with the FileTrigger component from @react-aria/components in a React application. The issue is observed specifically in ​​Chrome on iOS (version 140)​​ ...
Howa's user avatar
  • 1
0 votes
0 answers
80 views

I’m seeing noticeable UI hitches only on Android when the keyboard opens/closes while using react-native-keyboard-controller. On iOS everything is smooth — inputs scroll correctly, no dropped frames. ...
Pasha Marchenko's user avatar
3 votes
1 answer
61 views

How do you read multi-line input from clipboard at once? I tried using input but line change appears treated as Enter pressing. >> x=input(char.empty,'s'); 2020 2037 2054 2131 ans = ...
Argyll's user avatar
  • 10.1k
-1 votes
0 answers
20 views

I need to add new input type text field as custom URL within the media content type. Need help I tried updating the custom URL to the description but the description is required for SEO purpose. If i ...
Surya R Praveen's user avatar
0 votes
1 answer
90 views

I'm working on a R shiny application. When I use the "Run App" button on the R interface my fileInput doesn't seem to be working (see image below). My browser console shows this error: :...
Joran van Noort's user avatar
0 votes
2 answers
90 views

I'm new to Python and I am building a simple interactive calculator as a project. When I run the code in the terminal, it takes all the inputs but does not return the final output. The code restarts ...
new_coder's user avatar
0 votes
0 answers
52 views

I am trying to use the test harness to verify the function of my Simulink model. I set the input from Workspace, and write a .m file to build the input structure(I got embedded bus element in my bus ...
tyrela's user avatar
  • 101
1 vote
0 answers
268 views

I have a .gitlab-ci.yml template that looks something like so # .base.yml spec: inputs: RUNNER_TAG: default: "one" options: ["one", "two"] type: ...
A Simple Programmer's user avatar
1 vote
2 answers
80 views

I'm trying to add a python terminal onto a website using pyscript to run programs I've written using <script type="mpy" terminal worker src="subrepo/folder/program.py"></...
onomatopoeia's user avatar
2 votes
0 answers
88 views

I have a problem with one of my class methods. class Input # Method to get a valid number of days to assign prices to def Input.get_valid_number_of_days puts "Time to enter the number of ...
Neblinus's user avatar
1 vote
1 answer
138 views

I have a small issue that I "understand" but cannot fix. Imagine you have s = float(input("Write a number")) When on a linux terminal the user types 0.4 and press enter: ...
Atmos's user avatar
  • 113
-4 votes
1 answer
84 views

pfz0 = ["","centi","milli","micri","nani","pici","femti"] # z for zeta illion = ["llion","illion"] a0_ni = ...
Samiun Saad's user avatar
-3 votes
2 answers
75 views

I'm getting a filtered record set from a SharePoint list to a collection, and then I'm getting that collection data to a gallery. In the gallery, I have added a text input. If we think, for example, ...
Thushara Chinthaka's user avatar
2 votes
2 answers
75 views

I have 2 inputs (date and number) in view - blade, like this: <div class="col-3"> <label for="jatuhtempodate">Jatuh tempo</label> <input name="...
ronny hidajat's user avatar
0 votes
0 answers
77 views

I would like to resize the spinner buttons of the number input I declared in a ion-alert. view of the too small spinner buttons I tried tips I found but it does not work in my case. In my ts file: ...
Sapart09's user avatar
0 votes
1 answer
66 views

I'm learning to program in Python with a focus on Data Science using VS Code, along with the Python and Jupyter extensions. However, whenever I run any code that uses input(), the input prompt doesn't ...
Eduardo Silva's user avatar
1 vote
1 answer
86 views

I have a very simple scenario that looks like std::ifstream file("myfile.txt"); std::string discard; int num; file >> discard >> num; // to consume e.g. HEADER 55 Despite all ...
avigt's user avatar
  • 602
0 votes
2 answers
281 views

I'm making a small game with Godot, and the player can keep some panels on top of the game display while playing, for easy access to some actions. The panel is a Control node, and it could appear on ...
devil0150's user avatar
  • 1,481
2 votes
2 answers
127 views

How do I convert a numeric string input from a user into an integer array in Java? What I did so far is: # Get User input System.out.println("Guess the number: "); String input = read....
its.spark.dev's user avatar
1 vote
1 answer
91 views

I'm a newcomer to programing and I have an issue regarding the camera controls in my 3d strategy game. I've been trying to add a "rotation" functionality to the camera using the Q and E keys ...
agfessel's user avatar
-1 votes
1 answer
35 views

I am working on a standard NextJS/React app and have a (maybe basic) question. It is related to the code below in a component. return ( <form> <label> <input type=&...
Michel's user avatar
  • 11.9k
1 vote
1 answer
64 views

When typing in Japanese, pressing Enter often just confirms the conversion but not the submission. How can I achieve this? I have an input field and upon pressing enter it will submit. So I have this ...
Haidepzai's user avatar
  • 1,124
0 votes
0 answers
49 views

please help. I am learning the DirectInput API, but I am having trouble calling a single function DirectInput8Create() in my MSYS2-MINGW64 environment. I verified dinput.dll is in the bin/ directory......
WarrenJay's user avatar
0 votes
2 answers
63 views

I am trying to build a custom form component. In this I use inertiajs useForm hook to automatically load the data into a state (similar to react-use-form). But my problem is, that everytime i type a ...
Henry's user avatar
  • 1
0 votes
0 answers
60 views

I'm building an Airbnb-style React app. The header starts as an expanded version and shrinks once the user scrolls. To detect scroll, I placed a 1px invisible div at the top of the page and observe it ...
Nir's user avatar
  • 1
3 votes
1 answer
123 views

I am writing a CLI text editor in c. I have to handle a lot of CTRL+key inputs. Right now, I am using a macro that gets the key you want to pair with CTRL, like this: #define CTRL(key) ((key) & ...
Everlee Jones's user avatar
0 votes
1 answer
70 views

I have problem in telegram web app on macOS (Vue js). If i use input with type file, then click and choose nothing - input don't work again. <template> <div> <button @click="...
Archon's user avatar
  • 1
1 vote
3 answers
397 views

My operating system is Arch Linux and my desktop environment uses Wayland. I've been trying to make a small renderer in the terminal which moves the camera around using WASD. I've disabled canonical ...
johny's user avatar
  • 42
-4 votes
1 answer
61 views

I am very new to this. I wanted to use EXCEL table data as input for my AMPL optimization code through Google Colab. I wrote the code as below, but it said Syntax Error. I don't know why. Can anyone ...
Mentor Town's user avatar
-2 votes
1 answer
88 views

I'm trying to get the input of index from the user using the code below: menu = ["pasta", "pizza", "salad"] user_choice = input("Enter the index of the item: ")...
amit rai's user avatar
-2 votes
1 answer
83 views

I use pug template with Node.JS. How can I use a label to hide file input control and use the label click to upload file? I have done the same thing using bootstrap but not sure about about to ...
khteh's user avatar
  • 4,290
0 votes
1 answer
57 views

keyword_input = wait_for_element( driver, By.XPATH, '/html/body/div[12]/div[2]/div/div/div/main/form/div[14]/div/div[2]/input', description="Keyword input field" ) if ...
Aditya Dand's user avatar
-1 votes
1 answer
86 views

I need to periodically record a value in the program using a dialog box. The program is written in Borland Delphi 7, Windows API. The recorded value is stored in RAM. I also have a Java program in ...
Alexandr X's user avatar
0 votes
0 answers
128 views

I'm currently trying to analyze the spectrum of a prbs signal in order to better desing inputs for my experiments. However, I have some confusion so far. On one side, we can use Matlab's cpsd function ...
Jean-Fr's user avatar
  • 111
0 votes
1 answer
75 views

In Java I want to print after press enter to do an input but in the same line, e.g: 'Username: // User input // Other print'. Doesn't matter if I need to print in the loop or in the find method, if ...
Bujakiewicz Franco's user avatar
-1 votes
2 answers
121 views

I'm working on a simple mortgage calculator right now cause I'm new to coding and not very good at it I'm trying to get ask the user how big the loan is so I'm trying to user Number.format for ...
kenneth templeton's user avatar
0 votes
1 answer
57 views

Here is a script that try to capture human play and later feed to a train script. I found that is not able to accept keyboard input, win 11, gitbash. using window native cmd, also has same problem. ...
kenpeter's user avatar
  • 8,386
-3 votes
1 answer
74 views

I'm trying to style a checkbox with CSS, but my styles are not working, can someone help me? I'm checking the checkbox using javascript, hence the "onclick: return false" code input[type=...
Samuel Freitas's user avatar
2 votes
0 answers
57 views

I am trying to build some kind of simple text editor and I am trying to get input from user but it is not unlimited, user can only input 10 bytes of memory section .bss input resb 10 info ...
skami0_0's user avatar
0 votes
2 answers
123 views

Maybe its not related to svelte, but if do some DOM changes after input is focused, for example <input onfocus={() => toggleVisibiltyOfOtherElement = true } onblur={() => console.log("...
Alex's user avatar
  • 66.6k

1
2 3 4 5
703