I'd like to write a program which reads user input only from tty, instead of redirected stdin pipes, like passwd and ssh do. Is there any approach?
Many thanks
I have created a table with draggable rows. Unfortunately, most of the rows are covered with a large textbox input element. In order to drag the rows, you have to grab the row on the very edge just outside of the textbox. Is there a way to allow the rows to be grabbed through the textboxes without destroying the textbox functionality? (i.e.…
hi
i am using an array of file, i mean input type ="file" to upload number of files at a time.
i want to print or echo that file array values , how can i do this.
please help me
Thanks
I need to know how to wait at set amount of time (about 10 seconds), for a user to input a key or set of keys, before proceeding with an 'auto run' portion of the application.
This is bugging me because I can't quite figure out how the timer works, or threading.sleep, what should I use? Been googling all day.
I am trying to make an interactive shell script in perl.
The only user input I can find is the following:
$name = <STDIN>;
print STDOUT "Hello $name\n";
But in this the user must always press enter for the changes to take effect.
How can I get the program to proceed immediately after a button has been pressed?
http://stackoverflow.com/questions/1564566/using-jquery-to-add-or-remove-form-elements/
when i click the add link the information in the existing input field disappears.
How do i tell it to retain this information.
Is there a GetLastInputInfo() equivalent that can be used in Linux?
The intention is to detect the last input time (keyboard or mouse) of the user.
Am using python to script the program.
I know that I can assign an onclick action to <input type="button"-style buttons. But is it possible to let it behave like an <a> without using JavaScript? I ask because I'm in a situation where technically I'm better off using <a>'s, but buttons look nicer.
I am creating an interpreter for my esolang, and I need the user to enter some text which then will be interpreted as an INTERCAL program. I want the user to enter text, which may contain any character including newlines, until the user presses ^X (Ctrl-X), like this:
Enter your code followed by ^X:
Bla
Blablabla
Bla^X
Thank you for entering…
Hello there,
How can I prevent a given app from creating a newline ('\n') after I request user input in C?
I'd like something like:
Type a number
Number: 3x10 = 30
The "x10 = 30" is added after the user inputs the number.. The problem is I can't do it on the same line (and I'd like to do it).
Can anyone help me?
I've got a textbox (set to readonly) and I need its' contents to be selected for easy copy/paste when it gains focus. Using the code below it only seems to quickly select the text and then unselect it for some reason.
HTML
<input id='thing' type='text' value='some text' readonly='readonly' />?
JavaScript
…
For a Console app, I need to know how to wait at set amount of time (about 10 seconds), for a user to input a key or set of keys, before proceeding with an 'auto run' portion of the application.
This is bugging me because I can't quite figure out how the timer works, or threading.sleep, what should I use? Been…
Hello all,
I've just gotten started using BDD with RSpec/Cucumber/Webrat and Rails and I've run into some frustration trying to get my view spec to pass.
First of all, I am running Ruby 1.9.1p129 with Rails 2.3.2, RSpec and RSpec-Rails 1.2.6, Cucumber 0.3.11, and Webrat 0.4.4.
Here is the code relevant to my…
I want to format a date in jsf which is xmlgregoriancalendar type. I've come across post which say I need custom converter. Does anybody found solution which does not require custom date converter. I was trying following but I gives me error saying...
Element type "h:outputText" must be followed by either…
So,
I have some code which looks like this:
byte* ar;
foo(ar) // Allocates a new[] byte array for ar
...
delete[] ar;
To make this safer, I used a scoped_array:
byte* arRaw;
scoped_array ar;
foo(arRaw);
ar.reset(arRaw);
...
// No delete[]
The question is, Is there any existing way to do this using…
I have a Linq query and I want to pass the ouput (userid) to another form for further processing.
var userid = from auser in allusers.Users where auser.Username == nameString select new { id = auser.UserId };
so only 'UserId' is stored in variable 'userid' and I want to use this value in…
Ok, I have a very simple app created in Grails.
I have a generated domain class (Person) and its generated controller, using the automatic Grails scaffold:
package contacts
class PersonController {
def scaffold = Person
}
Now I'd like to get a JSON representation of a Person object.
Do I…
public class swapex{
public static int var1, var2;
public void badSwap(int var1, int var2){
int temp = var1;
this.var1 = var2;
this.var2 = temp;
System.out.println("var1 " + var1 + " var2 "+ var2);
}
public static void main(String args[])
{
swapex sw= new swapex();
sw.badSwap(10,20);…
Right now I have this code.
<?php
error_reporting(E_ALL);
require_once('content_config.php');
function callback($buffer)
{
// replace all the apples with oranges
foreach ($config as $key => $value)
{
$buffer =…
For example if App-A tries to installed App-B. Is there any way for App-A to know when App-B is finished installing and can be run?
update
to be specific I am trying to install ChromeSetup.exe on windows using AIR 2.
I am using an IBM ThinkPad T30 running Windows XP. It is connected to a TV system via S-Video output.
Windows is currently set up in multi-monitor mode with monitor 2 being output to S-Video. However, since there is no preview monitor, I can't interact with anything I…
Quick one for you guys.
Say I have a function that outputs a string:
function myString()
{
echo 'Hello World';
}
How would I go about testing to see if the function outputs any data?
if(myString() ==''){
echo ''Empty function;
}
I'm experimenting with a DOS batch file to perform a simple operation which requires the user to enter a non-negative integer. I'm using simple batch-file techniques to get user input:
@ECHO OFF
SET /P UserInput=Please Enter a Number:
The user can enter any text…