Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
2 answers
85 views

I have a question ovi, my question is about input() how do I make a input on a if statement block and make it about it for example a heads and tails game.
GUY RUFF's user avatar
-1 votes
0 answers
37 views

I’m learning Java and testing basic input handling. I wrote the following simple program: import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner ...
Burak HINGE's user avatar
1 vote
2 answers
85 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
87 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
44 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
104 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
80 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
113 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
119 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
45 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
76 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
60 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
0 votes
0 answers
17 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
86 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
46 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
202 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
79 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
136 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
82 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
69 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
70 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
75 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
64 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
85 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
  • 600
0 votes
2 answers
254 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
122 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
87 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
60 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
62 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
57 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
117 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
358 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 ...
user29944582's user avatar
-4 votes
1 answer
60 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
87 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
80 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,280
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
121 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
69 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
55 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,376
-3 votes
1 answer
72 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
56 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
118 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
0 votes
0 answers
17 views

I have tested this thing. There is a div element in my application with two inputs(type="file") inside. There are no any styles or libraries. Only this div and two inputs inside. I don’t ...
Leo's user avatar
  • 13

1
2 3 4 5
703