English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - November 2007

[Selected]: All categories Computers & Internet Programming & Design

Hi, I have this Javascript, but to be honest, I'm exactly sure what it means. I know that it's an email validator function, but what is the "elements" part? What does "(!(emailPattern.test(email)))" mean?

Thanks again for all the brains out there!!!

function emailTest(emailText)
{
var email = emailText.value;
var emailPattern = /^.+@.+\..{2,}$/;
if (!(emailPattern.test(email)))

{
alert("Please enter a valid email address.");
document.myForm.elements[1].focus();
}
}

2007-11-15 06:12:03 · 2 answers · asked by J L 1

i have a website that creates reports (pdf files). these are temporary files and need to be removed. i wrote an exe that loops infinetaly and erases temp files older then 15 minutes. the problem is that when my program is running, the cpu usage goes to 100% and the website almost goes to a hold.
please sugest other ways to erase temp files without killing the cpu.
i had 2 ideas:
1) check for old temp files only when a user logs in
2) write a batch file that calls the exe to remove temp files. i havent written batch files with loops in a long time and don't know how it will effect cpu usage.

thank you

2007-11-15 03:27:41 · 2 answers · asked by svec7186 1

How to use it in classes?
Any simple example...

2007-11-15 03:27:40 · 4 answers · asked by David Junior 3

Sign by Dealighted - Coupons & Discount Shopping



it is supposed to show, some monster holding up a sign that says your ip, isp, and other things?

2007-11-15 03:27:14 · 1 answers · asked by Cancer 2

2007-11-15 03:17:25 · 5 answers · asked by EBC 1

Are any programs written with cobol anymore these days?

2007-11-15 02:41:13 · 6 answers · asked by Anonymous

ok i got a java assignment to do for university using blue j
and im just wondering if anyone is good with java and willing to do it for me (i cant do java and the assignment is way to hard for me)
java programming drives me crazy and i have to do this within 3-4 weeks

2007-11-15 02:32:35 · 4 answers · asked by ian r 2

I heard that there are non.

2007-11-15 02:15:39 · 2 answers · asked by duh?? 2

2007-11-14 23:28:53 · 5 answers · asked by Anonymous

I tried to select borders and shading but it did not work. What should I do? Anyone can help? I would appreciate.

2007-11-14 21:10:52 · 4 answers · asked by rauma_raumamary 2

the maximum table in microsoft is 5x4 but I need a table with more columns and rows ..how do i do that !!

2007-11-14 20:00:30 · 8 answers · asked by Anonymous

It says this:

[03:40:31] SmartFTP v2.5.1005.26
[03:40:32] Resolving host name "www.gcimedia.net"
[03:40:32] Connecting to 64.234.215.36 Port: 21
[03:40:32] Connected to www.gcimedia.net.
[03:40:32] 220 GCI
[03:40:32] USER ****** (I hid it)
[03:40:33] 331 User name okay, need password.
[03:40:33] PASS (hidden)
[03:40:33] 530 Not logged in.
[03:40:33] Active Help: http://www.smartftp.com/support/kb/index.php/51
[03:40:33] Cannot login waiting to retry (30s)...

I KNOW my password, but its been doing this for about a week.

2007-11-14 19:44:51 · 2 answers · asked by Confetti! 2

The title says it all.

My friend and I are going to create a website but we need an idea for the website to be centered around. Like a web based tool or something you would use or be drawn to.

Thanks
Matt

2007-11-14 18:28:18 · 4 answers · asked by mattnham 2

// This program by Dillon Nicholson gets numbers by the user
// then counts the number of digits in the number either being both
// positive or negitive whole numbers

#include
#include
using namespace std;

void countingFunction();

int main()
{
ofstream out;
out.open("output.txt");

int num;

out<<"This is the program of : ";
out<<"Dillon Nicholson"<<"\n";
out<<"CMPS 1043-02"<<"\n";
out<<"Due date:";
out<<" Nov 15 2007"<<"\n"<<"\n";

countingFunction();

out.close();
return 0;
}

void countingFunction()

{

while (num != 0)
if (num < 0) num*=-1;
count = 1;
else if (num >= 10)
{count++;
num= num / 10;
out>> num;
}





tell me whats wrong i cant tell but it wont build right says 'num' : unreferenced local variable on line 16 but theres nothing wrong that i see

2007-11-14 18:27:15 · 5 answers · asked by Dillon N 1

im not after a simple language either complexity isn't a issue i need a language that produces high efficient code very little waste code and if possible flexible to work with

2007-11-14 17:53:04 · 3 answers · asked by Anonymous

2007-11-14 16:46:24 · 5 answers · asked by MoM 3

I am an amateur webdesigner and i currently have a website running for a club (can be seen here http://avvolleyball.com/news.html ).... The problem is, for example under the "News & Press" page, the text margins are all the way at the border of the web layout.

Can anyone help me as to create a top, left, right, and bottom margin of about 1/2 an inch. Help would be appreciated.



*On a side note, some people have told me there is some sort of virus somewhere on my website. I don't think it's dangerous whatsoever but i would like to get rid of it to eliminate concern among my website visitors. Thank you.

2007-11-14 16:00:39 · 2 answers · asked by ec1x 2

I want to own my own domain completely. My question is how can these sites such as godaddy.com and others sell domains? Do they own their domain with no monthly payments? Who does this where you have to pay monthly fees for domains? Shouldn't you be able to buy it with a one time fee.

2007-11-14 12:48:29 · 4 answers · asked by Joe T 2

I need to have them so they fade in and out from each other on a constant loop.

Is there any ideal time between pics and is it a bad idea for a shop website?

Thanks bundles! :)

Debby.

2007-11-14 12:06:28 · 4 answers · asked by dss 3

1. Modify the Payroll Program application so it continues to request employee information until the user enters stop as the employee name.

2. In addition, program the application to check that the hourly rate and number of hours worked are positive numbers. If either the hourly rate or the number of hours worked is not a positive value, the application should prompt the user to enter a positive amount.

here is my code...

import java.text.NumberFormat;
import java.util.Scanner;
import java.util.Locale;

public class PayrollProgram {

public static void main(String[] args)
{

Scanner input = new Scanner( System.in );
NumberFormat usFormat = NumberFormat.getCurrencyInstance();

String fName;
String lName;
double hourlyRate = 0.0;
int hours = 0;

System.out.println("Enter the following info for the employee: ");
System.out.println("First name: ");fName = input.next();
System.out.println("Last name: ");lName = input.next();
System.out.println("Hourly rate: ");hourlyRate = Double.parseDouble(input.next());
System.out.println("Hours worked this week: ");hours = Integer.parseInt(input.next());

System.out.println("Here is the employee's info: ");
System.out.println("Name: " + fName + " " + lName);
System.out.println("Weekly Pay: " + usFormat.format(hourlyRate * hours));

}
}

2007-11-14 10:52:18 · 5 answers · asked by Anonymous

I want to do this in the simplest way possible in the shortest amount of time.

2007-11-14 10:42:57 · 6 answers · asked by ccdt50 2

If I have the excel file open and want to switch between the file and another file while running a macro, how do I find the name of the file so that I can reference it later?

2007-11-14 09:19:33 · 1 answers · asked by joke of an engineer 2

A. stable in value

B. handsome in design

C. durable

D. portable

2007-11-14 06:41:23 · 4 answers · asked by Gangsta P 1

1. Modify the Payroll Program application so it continues to request employee information until the user enters stop as the employee name.

2. In addition, program the application to check that the hourly rate and number of hours worked are positive numbers. If either the hourly rate or the number of hours worked is not a positive value, the application should prompt the user to enter a positive amount.

2007-11-14 06:24:55 · 2 answers · asked by Anonymous

In my website I have a header file I include in php so it is easier for doing pages but I want to have a tab highlighted if they are on that page but how do I do that?

2007-11-14 04:50:53 · 2 answers · asked by Liam S 1

2007-11-14 03:42:48 · 3 answers · asked by katydidnt356 1

I'm new to php and don't know where I'm putting my PHP code. I know is to put it into a text file and save it as .php and then put on my server...duh. But what if I want to connect to a mysql database and have the information print on the screen? Do I use command promp on my computer or is there a specific program? Please keep your answer simple and give examples.

2007-11-14 03:23:11 · 4 answers · asked by chrispmv 2

I posted earlier and maybe didn't make myself clear. I am trying to download from a disk that I purchased at the store. I keep getting an error message saying there's a problem with the program executable. Could I have something on my machine that's blocking the download ???

2007-11-14 03:03:57 · 2 answers · asked by carrob03 2

fedest.com, questions and answers