Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
62 views

I'm building a custom CLI daemon in Go for Ubuntu. When I run the CLI locally (without SSH), everything works correctly — for example: admin@admin> whoami responds as expected. However, after ...
Aditya Paluskar'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
0 votes
2 answers
76 views

I'm working on a very simple program that takes a user-specified number (can be an integer or a float of any length) and performs one specific multiplication operation on that number. The program then ...
jasper's user avatar
  • 1
0 votes
1 answer
48 views

I am using jpackage to convert a Java application into an executable .app file. When running on macOS, as shown below, the application cannot read user input. open -n /Applications/MyApp.app The ...
Evgeny's user avatar
  • 121
0 votes
1 answer
93 views

I am doing a REST API in Java (although this question may apply to other languages) where I create several local files and directories, and they can be deleted based on input. I manage my files in a ...
coriuser's user avatar
0 votes
3 answers
116 views

#include <stdio.h> #include <stdlib.h> #define BUF_SIZE 1024 int main() { char *buf = (char*)malloc(BUF_SIZE*sizeof(char)); fgets(buf, BUF_SIZE, stdin); int a = 0; sscanf(buf, ...
Treio1024's user avatar
2 votes
2 answers
68 views

I'm trying to make a script that will ask for 5 score input from the user. Each score corresponds to a specific dilution. The input are strings and only six "characters" are allowed to be ...
user30902982's user avatar
0 votes
0 answers
34 views

I have a date field in an Angular project that looks like this: <input [disabled]="this.viewMode" type="date" name="txtDateReceived" class="form-control" [...
TheIronCheek's user avatar
  • 1,231
-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
1 vote
0 answers
31 views

I'm developing a custom iOS keyboard using SwiftUI. I want to access a large portion of text before the cursor. I'm currently using: textDocumentProxy.documentContextBeforeInput However, this only ...
saqlain jamil's user avatar
0 votes
0 answers
36 views

I have in Drupal 10 made a simple table that is being build with a PHP as part of a module. When I use a buildForm-function, I can not position the input fields. I want these to be as if they were ...
Serge tkint's user avatar
1 vote
1 answer
67 views

A project I am working on needs to automatically accept an input after 5 seconds. the idea is that they have 5 seconds to enter as many particular characters as possible. I've found plenty of examples ...
damagedChair5916's user avatar
2 votes
1 answer
55 views

I am following a tutorial I found on youtube for a file integrity monitor. The code is messy but im trying to add my own twist and clean it up. I just added input validation and now the code won't run ...
Trystan Williams's user avatar
0 votes
0 answers
98 views

I am currently developing a C# .NET console application on my computer which allows me to move a virtual joystick by moving my mouse to the joystick and pressing down(currently not implemented) and ...
Bastian's user avatar
0 votes
0 answers
29 views

I have tables -> calender , bi_alloceffort_data & bi_alloceffort_data_main. I Have linked calendar date column to REVDATE column of bi_alloceffort_data & "PROJECTNO" of both the ...
recharge amount's user avatar
0 votes
1 answer
83 views

I have two files/components: Createrisk.jsx for creating individual risks Tablepage.jsx displays the risks in an MUI Data Grid The problem is Tablepage renders only the attributes from Createrisk ...
Aleks3000's user avatar
0 votes
0 answers
35 views

Windows Forms has a control NumericUpDown that allows the user to choose a number by clicking tiny up and down arrows, or entering a number via keys. Is there a way to add this functionality, but ...
Anna Vahtera's user avatar
0 votes
0 answers
51 views

Is it enought to check whether user input conforms to an expected value, before I embed it into executed code? E.g.: $fruits = array( "Orange", "Banana" ); if(isset($_GET['...
Ben's user avatar
  • 821
2 votes
1 answer
98 views

class CustomUserViewSet(UserViewSet): serializer_class = UserSerializer pagination_class = PageNumberPagination permission_classes = [permissions.IsAuthenticated] def ...
st.splash's user avatar
1 vote
1 answer
67 views

I am attempting to make a simple text-based calculator application in Java. I am wondering if it would be possible to take input inline with a print statement. for instance, instead of getting an ...
Keegan Welch's user avatar
0 votes
1 answer
60 views

When running my programs in VS Code terminal, the input and output are printed in the same terminal window. But I want the input and output to be clearly separated, like in online compilers. Eg: (...
Joy's user avatar
  • 103
1 vote
1 answer
78 views

I am having a problem with comparing declared constants in the .data section with user variables in the .bss section, where I will store user input from syscall read. They both are doublewords. Could ...
IlikeAssemblyButIsuck-sorry's user avatar
0 votes
1 answer
253 views

In my multi-tenant SaaS application, I use AWS Cognito for authentication with a managed login page. Each tenant has a separate Cognito user pool. The authentication flow is as follows: The user ...
Jithu Jacob's user avatar
1 vote
1 answer
126 views

I am new to React and I am trying to have a input field which can take values between -40 and 30. I am using Form.Control from react-bootstrap and below is my code interface Range{ min: number, max: ...
Nico Robin's user avatar
0 votes
0 answers
73 views

I am making a text-based game with frames, and my problem right now is that I have the code to check for keypresses key = getkey.getkey() But it seems like that command waits for you to press a key ...
itsThatCoderboy's user avatar
0 votes
0 answers
64 views

I am trying to make a program that can take a string from a file, and convert it to 4 predefined integers. For now, I am attempting the stage after extracting the line from the document, to split it ...
Cool_cricri's user avatar
0 votes
1 answer
662 views

I am working with MudAutocomplete in Mudblazor(6.12.0).I want the autocomplete to hold the list of values as well as allow the user to enter the text manually which is not in the list .It works fine ...
Sapri s's user avatar
  • 69
1 vote
2 answers
181 views

I'm currently learning Kotlin and using https://play.kotlinlang.org/ to compile my code. I tried to create a very simple program, collecting user input and giving output. Howevery, it doesn't run. fun ...
Mehalon's user avatar
  • 23
1 vote
0 answers
136 views

I am trying to make a music player with Bevy and Rust. I want to use global input to check if the play/pause button has been pressed even when the window is not in focus. I've tried using a number of ...
Mr. Sja's user avatar
  • 23
0 votes
1 answer
60 views

I am building a language interpreter and needs to have two functions, one to input an integer and another to input a character (from System.in). For instance, inputting integer - character - integer - ...
Sunny's user avatar
  • 147
0 votes
0 answers
133 views

I am having an issue of where I am obtaining an error to do with the input shapes for the CNN model. The code for the model text_input = Input(shape = (max_len,), name = 'text_input') numerical_input =...
leakie's user avatar
  • 1
0 votes
2 answers
165 views

Android studio Bumblebee 2021.1.1 All I am simply trying to do is get or retrieve text input from edittext field and it simply doesn't work no matter how I do it. I have searched everywhere including ...
ThN's user avatar
  • 3,284
1 vote
1 answer
115 views

I have an application where, on a specific event, I want to open a edit control at a specific position x,y with a specific size width,height. In the opened window, I want the user to enter a string ...
RocketSearcher's user avatar
2 votes
1 answer
81 views

Preface I'm currently working on a small app that literally types the input from the system Clipboard (using Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);), by simulating the ...
JayC667's user avatar
  • 2,660
-4 votes
1 answer
63 views

I created a list of Animals. Then I ask the user, What are you? When he answers, I can't get the program to recognize it in the list. class Animal: def make_sound(self): pass # This is an ...
Marney Schulz's user avatar
2 votes
1 answer
94 views

I know how to write a while loop that reads user input, stores into an array then terminates at the stopping value. However, that stopping value is also stored and I'm not sure how to have it not do ...
user27803601's user avatar
3 votes
3 answers
170 views

When validating user input to check if the user has inputted correct values (i.e. letters for the strings, numbers for the integer), the below code can only detect when the strings have been ...
Ren's user avatar
  • 53
0 votes
2 answers
72 views

I want to write a program using Python in which looks something like this- text = input("Enter an integer:") But as soon as the user enters an integer and clicks Enter, the entire line gets ...
NGC3992's user avatar
0 votes
1 answer
82 views

I'm creating a shell program with C and am working on getting user input after displaying the current working directory. I'm using read() and write() as I will need to use signals within my shell ...
Gyro's user avatar
  • 39
-5 votes
2 answers
81 views

while True game2=input("Welcome to Treasure island! Your mission is to find the treasure. You find two different paths. Left or Right?") if str(game2)==str("right"): ...
Khadija Awan's user avatar
-1 votes
1 answer
158 views

I am currently writing a basic program with multiple menus. I have a function called menu1(), which is called in main and handles the first set of menu options. My issue I am having is being able to ...
Jack Ross's user avatar
-3 votes
1 answer
67 views

I have a problem when I submit the form which had empty rows so that in the database the empty rows are still inputted even though they are empty which causes the next input to skip the empty row.
Arafat's user avatar
  • 5
2 votes
1 answer
125 views

For some context, my game runs in the terminal and is like a command line type game. At the moment to process commands is does a strcmp() for every single command which isn't really pretty nor ...
some guy who likes C's user avatar
-3 votes
1 answer
116 views

I am new to C#. I want to be able to scan a user input line by line in C# (like you can in Java with a scanner or in Go with bufio). My code needs to handle user input like this: 3 Hans Grethe Otto ...
Theresia Ravn's user avatar
1 vote
1 answer
579 views

I was following this tutorial (https://developer.android.com/codelabs/large-screens/advanced-stylus-support#4) which uses pointerInteropFilter to handle the MotionEvents directly and detect ...
Calvin Godfrey's user avatar
-2 votes
1 answer
124 views

I wrote this code and tested it, but in the end I encountered a problem and an error, because the number should be entered inside the input, but inside the if, when the user enters the word done, the ...
Mr Daniel's user avatar
0 votes
1 answer
256 views

I have been using Blazor and I encountered an issue could not find any solution. I have been trying to add text into input fields but it's not updating. @page "/" <PageTitle>Form</...
Gweam's user avatar
  • 21
0 votes
1 answer
90 views

I want to take user inputs in c language but I am unable to as the Sublime Text does not allow that. I want to create a build system for C that will take user inputs and display output in the default ...
Anshul Pratap Lakra's user avatar
0 votes
0 answers
61 views

I am able to give a prompt to the user using powershell script but the issue is that the user is able to ignore it. What I mean is the user is able to open other programs and file even when the prompt ...
user26675830's user avatar
3 votes
3 answers
206 views

I'm trying to construct a random, yet predictable cronjob schedule for a monthly and daily cronjob based upon arbitrary user-provided data. The daily and monthly cronjobs should run with a sufficient ...
PhrozenByte's user avatar

1
2 3 4 5
113