I have a text file that I'd like to import into R. Problem is, the file looks like this:
x1,x2,x3,x4,x5,x6,x7,x8,x9,10,x11
1953.00 7.40000 159565. 16.6680 8883.00
47.2000 26.7000 16.8000 37.7000 29.7000
19.4000
1954.00 7.80000 162391. 17.0290 8685.00
...
Hi,
I'm using the jQuery Validator Plugin. My code is like this:
<input name="username" type="text" class="newtextbox required" rangelength="(4,16)">
The error message is "Please enter a value between NaN and 4 characters long". The actual error message that has to be is "Please enter a value between 4 and 16 characters long".
I thi...
I have to create a small "who does what" web application for incoming letter routing:
there is a relatively long list (about 600 items) of employees;
there is a short list (about 5 items) of tasks;
when assigning a task to an employee, due date must be specified;
As a result, i need a list (sequence of items matters in this case, sin...
Hi,
I'm trying to sanitize any data that's inputted by making sure the data is valid for a particular field (e.g. a name can't contain special characters/numbers etc..) However, I'm not sure what to do when it comes to a password field. Would I even need to bother with any sanitization as the password is simply hashed? If the user was ...
I'm writing a program that sits in the systray. It will have a keyboard hook into all typed input, in any open application. I want it to intercept any typed input, run code on that input, and then send the new 'correct' character to be typed. This new character will be what shows up in the app that has focus.
I found this code via anoth...
I am trying to get input from the user and need to know a way to have the program recognize that the input was or was not a double/char this is what i have right now... but when you type an incorrect type of input
1) the double test one just loops infinatly
2) the char one won't stop looping even with the correct imput
int m...
This looks perfect for what I'm trying to do. I need to stop mucking around with SendInput() and let someone else do it for me!
http://inputsimulator.codeplex.com/
The problem is there's no documentation for getting the code working as simply as it does on the home page there. Can someone help me with the 'other code' I need to have in...
I'm trying to find out what is the best way to read large text (at least 5 mb) files in C++, considering speed and efficiency. Any preferred class or function to use and why?
By the way, I'm running on specifically on UNIX environment.
...
I've got this piece of code for a jQTouch/jQuery page that dynamically resizes inputs to the window's innerWidth - the associated label width - 50px.
<html>
<head>
<title>resizeInputs</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">@import "jqtouch/jqtouch.min.css";</st...
Hi,
How can I place the cursor automaticly to certain input box. This would help to not use the mouse all the time when open the page. (php and html)
Thank you!
...
How would you create a variable that could be read. It would read from a certain file if it exists, otherwise it would read from standard input. Something like:
input = File.open("file.txt") || in
This doesn't work, but I think this should be done pretty often, but I can't find a nice way to do it.
...
Hi, I have a problem where I get an int as input at the wrong time in my c++ program, so I need to "put it back" on cin later. However the closest thing I can find to do this is the pushback function for istreams. This sadly is only for characters and using multiple characters seems to separate them. Is there a good way to put a piece...
Hello, first off, I am a newbie with php (as well as coding in general). I have a website that has user profiles. On these profiles there are areas to comment in. I am trying to toggle 3 types of comment areas depending on
A. If you are signed in and looking at your own profile
B. If you are signed in looking at someone elses profile
C...
I have a checkbox on my GSP page as follows (which was stolen directly from the scaffolded "create" code for my domain object)...
<tr class="prop">
<td valign="top" class="name">
<label for="isSelling"><g:message code="person.isSelling.label" default="Is Selling" /></label>
</td>
<td valign="top" class="value ${hasErrors(bean: personI...
I'm using raw_input() to receive password from user in interactive mode, but I want to make input symbols invisible for security reasons, as it is when you're typing your password using sudo or connecting to a database. How I should do it?
...
Hi there,
I am using latest version of 'Jquery-ui' datepicker. i am trying to make the datepicker readonly(no more selections) with a given input date highlighted.
i did not find any way to make it readonly but i was able to highlight a given date to some extent (though today's date appears to be more highlighted).
my code looks:
$(...
CSS looks like:
input[type="text"]
{
width: 200px;
}
.small
{
width: 50px;
}
I have some text fields that I'd like smaller. I've tried a few different things, but can't figure out how to get specify an input field with, say, width 50.
Textbox is rendered with:
<%= Html.TextBox("Order","",new { @class="small", size = 5 } ) %...
OK, DUE TO BEING NEW I WASNT ALLOWED TO POST IMAGES, SO I HAVE ATTACHED LINKS INSTEAD. (images should be inline with this question)
Im writing a webpage and have a div containing some text (inline) an then an image.
Now when one clicks on the image, a hidden div appears below with an input field.
The input field in this div is automatic...
Hello flok,
I true to set a text input mask which only allow numbers from 0-999, or even better 1-999.
So I tried the mask "##0", but unfortunately this also allows negative numbers. Is there a way to allow only positive numbers?
Best regards,
Enyra
...
Hello,
I have a problem with jQuery Validator. I want to use "required" property on a text input. It doesn't work when input has set value attribute by HTML code (tested on Firefox (3.5), and on IE 8 - on IE it works a bit better).
Story:
1. Page loads;
2. value is cleared;
3. focus is changed.
4. Nothing happens but the error message s...