I have a text box I'm using as a timer display "hh:mm:ss" When I select the box and press a number, it inserts the number at the cursor location, but instead of replacing the value at that position, it shifts all existing values over. For example, the timer text box reads "01:00:35" and I replace the first minute position with 1, the ti...
For a major school project I am implementing a real-time collaborative editor. For a little background, basically what this means is that two(or more) users can type into a document at the same time, and their changes are automatically propagated to one another (similar to Etherpad).
Now my problem is as follows:
I want to be able to d...
I have a situation, where I have a text input box in IE(input type='text')
But the horizontal scroll bar of IE will be shown when it has lots of texts , and the box is not fixed-size. What I would like to have is:
1. The input box should accommodate the whole text(not fixed -size).
the horizontal scroll bar of IE will not be shown.
...
I have this code:
<%= f.text_field :email, :type => "email", :placeholder => "[email protected]" %>
So people can enter their email on an iPhone with the email keyboard instead of the ASCII keyboard. However, the output is:
<input id="user_email" name="user[email]" placeholder="[email protected]" size="30" type="text" />
which should...
I am creating an application. I have to implement a bookmark feature, and adding one should be similar to this:
I want editable UITableViewCells for text input. I was wondering if there is an easier way then embedding a UITextField into a UITableViewCell. And if not, can someone explain how I can use the UITextField inside it? Thanks
...
Why these lines of code doesn't work when i try to read a DWORD num = 1880762702 using fread(&num, "file path", 1, FILE*); I get the result = 10574 if I change the num to any other number say 2880762702 only then it works.
...
I have this program, but cin in randomly skips.. I mean sometimes it does, and sometimes it doesn't. Any ideas how to fix this?
int main(){
/** get course name, number of students, and assignment name **/
string course_name;
int numb_students;
string assignment_name;
Assignment* assignment;...
I am working on a C++ based command line tool and I want to capture the user's keystrokes in real-time without requiring them to hit Return to commit the input. I can't seem to find an iostream call to support this kind of behavior but I recall from my college years that it can be done. Can anyone point me in the right direction?
...
Good Day,
I have a simple Python question that I'm having brain freeze on. This code snippet works. But when I substitue "258 494-3929" with phoneNumber, I get the following error below:
# Compare phone number
phone_pattern = '^\d{3} ?\d{3}-\d{4}$'
# phoneNumber = str(input("Please enter a phone number: "))
if re.search(phone_...
I started my app using the original OpenGL ES template that came with the 2.2.1 sdk. I added the touch callbacks and everything worked fine
but I have now migrated my project to the new OpenGL ES template that came with the 3.1.3 sdk, and everything works fine except now touches that begin above the screen, dragged onto the screen no l...
I'm using VS 2010, and I'm wondering how I can get my c++ program to read a file using standard input while debugging. I know how to do it from command prompt, but not when debugging.
Basically I want it to read in a file with cin>> instead of me typing stuff - but in debug mode.
...
I have a form with some input texts passed in GET, and i don't want to have in GET all the fields; i want to avoid empty fields.
So, a concrete example for:
<form method="GET" action="an_url">
<input type="text" name="field1"/>
<input type="text" name="field2"/>
<input type="text" name="field3"/>
<input type="submit" va...
My question is a design question :
let's say i have a data entry web page with 4 drop down lists, each depending on the previous one, and a bunch of text boxes.
ddlCountry (DropDownList)
ddlState (DropDownList)
ddlCity (DropDownList)
ddlBoro (DropDownList)
txtAddress (TxtBox)
txtZipcode(TxtBox)
and an object that represents a dataro...
Using MATLAB,
I have this code:
value = input('>> Enter a value: ');
and basically, I want a "default" value to the right of the colon
(sortof like this)
>> Enter a value: 12
where "12" is editable such that the user could [backspace] [backspace] and change the value to, say, "20" or something.
Is there any (easy) way to do this...
I'm trying to build with IO for Mac, but I don't seem to have the file with friends installed. When I googled for it, it seemed to me like it was part of, or related to, glut implementation on Mac? Glut is installed. What do I need to do?
...
How do you read in a double from a file in C++?
For ints I know you can use the getline() and then atoi, but I am not finding an array to double function. What is available for reading in doubles, or converting a char array to a double?
...
Does anyone have any suggestions for a good cross platform input library?
I'd like to get:
* at least keyboard and mouse input
* on at least the big three operating systems
* Small/fast
* C or C++
* permissive licensing gpl2/mit/free/etc.
So far I've seen:
* OIS (used in Ogre) http://sourceforge.net/projects/wgois/
* SDL (used everyw...
I have been using mach_absolute_time() for all my timing functions so far. calculating how long between frames ect.
I now want to get the exact time touch input events happen using event.timestamp in the touch callbacks.
the problem is these two seem to use completely different timers. sure, you can get them both in seconds, but the...
How to put Multiple emails into the Input object with style (Windows Live and Facebook Like)?
Like the image above:
...
I've written a program to get a string input from a user and parse it into tokens and move a robot according to the input. My problem is trying to issue more than one command. The code looks like:
void Navigator::manualDrive()
{
const int bufSize = 42;
char uinput[bufSize];
char delim[] = " ";
char *token;
while(t...