I am (trying) to make a simple IRC client in python (as kind of a project while I learn the language).
I have a loop that I use to receive and parse what the IRC server sends me, but if I use raw_input to input stuff, it stops the loop dead in its tracks until I input something (obviously).
How can I input something without the loop sto...
Hello guys, i want to read characters from the console and print them one after another only if they have a certain value.
Well i tried using something like this:
char c;
while (c != '\n') {
c = getch();
if (printable(c)) cout << c; // where printable is a function which checks
// if ...
I'm working on a program that asks for input, then calculates and posts the output.
I managed to do it on a console application, but I don't know how to store input from a textbox.
The input has to be positive integers, with an error message in place if anything invalid is input (to prevent crashing).
I plan to have use a button to tr...
Trying to figure out how to write a jquery formula that will sum all input fields that begin with "pull" on keyup... I'm trying the code below, but nothing happens... No errors, and no updates either.... (the html is at the very bottom)
$(document).ready(function(){
/* sums pull total input fields */
$("input[name^='pull']").bi...
On the page there are links displayed with CSS as buttons:
HTML:
<a class="button" href="#">Button</a>
CSS:
a.button {
display: block;
position: relative;
width: 50px;
height: 50px;
background-color: $00f;
}
a.button:hover {
background-color: $f00;
}
I have some main ...
I have an ASP.NET Webform and inside the form I have an input type of file. What I would like to happen is for the form to post immediately after the user chooses a file.
I have a server side function I would like to be called, let's say UploadedFile()
What is the easiest way to accomplish this?
...
when i try to upload two files in the form, it doesn't happen!!!
here is my code
<input type="file" name="video" />
<input type="file" name="picture" />
<input type="submit" class="input" value="Save" />
but when i post only one file, that's ok!!!
can somebody help me, pleaseee;)
...
Hi all,
I want to know what disadvantage of scanf() exist.
In many of a sites I have read that using scanf will cause buffer overflow some times. What is the reason for that, and is there any other drawbacks with scanf?
...
How to get the type of input in the form by its name? for example:
<input type="text" value="123" name="username" />
the return type should be "text".
Any ideas?
...
Is there a mature library that could enable audio input and output and work within Haskell? (A nice wrapper is fine, of course.)
I'm looking for something that can easily capture microphone input and, perhaps, play various audio files as well.
Thanks.
...
I'm trying to implement (as a prototype initially), a richtextbox control which can be parsed in real time to apply certain formatting options to it. This is being done in WPF so I thought the best way to go about it would be to extend the existing rich text box control.
I've run into the issue where it isn't documented well and the exa...
Our team has recently been working on a logic and data layer for our database. We were not approved to utilize Entity or Linq to SQL for the data layer. It was primarily built by hand. A lot of the SQL is auto generated. An obvious down fall of this is the need to sanitize inputs prior to retrieval and insertion.
What are the best meth...
Hi,
I am new to Xcode and would like to make a simple plug-in so that the plug-in can set the value to safari text box and get the id of the text box. Could someone please point me to the right direction? Thanks in advance.
...
I'm building an autosuggest search, like apple's spotlight... and want to disable the browser from offering text suggestions under the input box. I can't remember if that's an html or css setting and can't find it.
Anyone remember?
...
I'm trying to get this C++ code to input a series of numbers from a text file:
int x = 0;
cin >> x;
ifstream iffer;
int numbers[12];
iffer.open("input.txt");
for (int i = 0; i < 12; i++){
iffer >> numbers[i];
}
This doesn't seem to work on the Mac.
Every cell will equal to 0 regardless of the value...
This seems to be weird:
int main(int argc, char* argv[]) {
cout << "function main() .." << '\n';
char ch = 0;
double number_value=1.1;
cin >> ch;
cin.putback(ch);
cin >> number_value;
cout << "1 .. " << " " << cin.good() << " " << number_value << '\n';
cin >> number_value;
cout...
Hi,
I have a shipping/billing input form and I'm having trouble styling the input fields to be the same width...
The Problem:
-a field <input type="text" size="X" /> appears to render with different sizes in different browsers (see link).
-In addition, select fields seem to render on a differently as well.
-Chrome/safari do not seem to...
Hi,
I'm not finding a way to understand and fix this and I've done a lot.
I've got a script, wish is a simple form, that sends a file trough POST. The second file, process the info.
By default, I give to the user a few fields, one of them being a input field of type "file" and there's also, a few "hidden" one's, that gives me values t...
I've done this before with inputs, why on earth does this not work?
http://euroworker.no/user/checkout
input.text, select, file, form.other
{
width: 15em;
font-size: 16px;
padding: 2px;
border-width:1px;
border-color:#dddddd;
border-style:inset;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
...
I have a problem where I want a text field that by default has the word NAME in it, to become empty when a user clicks on it.
The text field has the instance name 'nam' and is inside a movie with the instance name 'input_text'.
I've searched around and found samples of code where everyone keeps suggesting this:
textboxinstancename.onS...