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

Programming & Design - December 2007

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

2007-12-11 22:03:58 · 7 answers · asked by mithun p 1

Any advice would be greatly appreciated. Thank you.

2007-12-11 20:20:34 · 5 answers · asked by sdn90036 6

I want to make my own website. Is there any software I should learn before I do this. Thank you.

2007-12-11 20:01:33 · 8 answers · asked by sdn90036 6

Suppose the list astronauts has the value
['Yuri Gagarin', 'John Glenn', 'Neil Armstrong']
Give a single Python statement that adds 'Alan Shepherd' to the list between
'Yuri Gagarin' and 'John Glenn'.

2007-12-11 14:38:30 · 3 answers · asked by Kenny 1

how can i get the text to change color on a mouse click in a powerpoint custom animation?

2007-12-11 14:31:27 · 3 answers · asked by Anonymous

1

2007-12-11 14:21:09 · 4 answers · asked by Anonymous

Hello. I want to make one of my pages look the same in IE and FF. There is something wrong with FF, consider these tags:

Hi, I'm a title


Hi, I'm some text



The CSS for this is:
#h1 {
font-weight:bold;
font-family: "Bell Gothic Std Black", Georgia, sans-serif;
font-size: 24pt;
}
.firstParags {
font-family: Constantia, "Lucida Sans Unicode", serif;
font-size: 13.5pt;
text-align: justify;
}

The problem is that there is a larger gap below the first paragraph in FF. Why is it like this and how do I fix it?

2007-12-11 14:06:54 · 3 answers · asked by Anonymous

I want to have users on my website input some short info in a few fields on my website. Is there a free program that makes it easy to set this up? Do I need to have an sql database available from my host server? What's the easiest and cheapest way to save form data from visitors?

2007-12-11 14:04:14 · 2 answers · asked by martin h 6

I have a 20x20px background image that I want to repeat to fill the entire screen.

I have tried using the following:

background: #000000 url(images/bg.gif) repeat-x repeat-y;

This does not work, it only repeats on the X axis.

Could someone please advise what is the correct syntax that I should be using.

Thank you

2007-12-11 13:33:58 · 3 answers · asked by Anonymous

if it is, can you tell me if i can download it and where? what about any programming languages besides qbasic, are any or them free?

2007-12-11 12:49:10 · 2 answers · asked by someon 3

Im trying to display cell b3 in a message box. The cell is in a sheet called Data.

So far i got:
MsgBox "The answer is "....Now i want to display cell b3 but i cant. Please help!

2007-12-11 11:42:51 · 3 answers · asked by basics_87 1

0

At the moment i am trying to make a website, using net2ftp.com
exept when i look at the website it comes up with all my folders and documents etc. I would like to know how to get it to come up with a certain document.. any ideas

2007-12-11 09:05:26 · 5 answers · asked by Lostfairytale 2

to production" -- do you mean "live site"? Or do you mean to a staging server (of some sort)? I'm having a debate with some of the people I work with about what this term means and how it is used "in the industry." Thanks for your time.

2007-12-11 08:42:05 · 7 answers · asked by bmi=22 4

1

i just learned html and im trying to the top of my homepage like i.e. how myspace has theirs it has home | browse | search etc.... i know css and html just im a little confused about what to use css for and html for since they have some same features... if someone could write some html or css for me as an EXAMPLE i would be thankful

2007-12-11 08:12:58 · 2 answers · asked by Anonymous

hi all
i want my visitors to see this page
www.mydomain.com/smart.html
when they enter my site instead of
www.mydomain.com/index.html

how do i do so ?
thanks

2007-12-11 07:38:45 · 5 answers · asked by Hello 1

2007-12-11 07:16:41 · 1 answers · asked by curious_mike 2

Does anybody know the code to find out the length of a string. as an integer?

2007-12-11 07:15:27 · 1 answers · asked by Anonymous

I want to use this method in my view. The is_active field returns true or false and I want to display it as yes or no instead

<%=user.is_active%>

So I want a way of doing something like this,

<%=user.is_active%>? yes: no

Can anyone help me?

2007-12-11 05:50:34 · 1 answers · asked by theedge2343 2

i have a question " write an application that uses an enhanced for statment to sum the double values passed by the command-line argumants .[hint:Use the static method parseDouble of class double to convert a String to a double vale]"
this is what i wrote but its wrong can u please help me ASAP----->


public class args{
public static void parsedouble(){

for (int i=0;i Double.parseDouble(args[i]);

}
}
public static void main(String args[]){
double total=0.0;

for(int i:args.length){
total+=parsedouble();
}
System.out.print(total);
}
}

2007-12-11 05:42:48 · 3 answers · asked by funky !! 2

 Write a c++ program that take two strings and compare between them. This program tests the strings with these functions:


1 string_smaller_than( ):- Function which take two string and returns 'True' if 'first' is alphabetically smaller than 'second'. Otherwise, it return ‘False’

2 string_ptr_smaller_than ( ):- Pointer arithmetic version of function which returns 'True' if 'first' is alphabetically smaller than 'second'. Otherwise, it return ‘False’
Hint:-
1 You may assume that the two strings contain only lower case letters, and no blanks or other non-alphabetic characters.
2 Test your function with a suitable main program.

2007-12-11 04:53:37 · 3 answers · asked by seba 1

and i have to show the picture's and text on the server , so what should i do??

2007-12-11 04:48:51 · 4 answers · asked by Anonymous



Guilford Fitness Center menu frame




Programs



Schedule



Contact us



Home





Above is the code.i tried it but i kept messing it up..What i really want is for the stuff on the menu frame like program, contact us and all that be in like a button format and when you click it changes color..thank you i appreciate it

2007-12-11 04:44:35 · 1 answers · asked by itsmesnitches 1

how can you write one java method that prints out the contents of any type of array with out knowing what type of array it is? for example, it could be an int[], an object[], a boolean[] and so on. What parameter do you give the method?

2007-12-11 04:37:05 · 1 answers · asked by Anonymous

I've searched through a few of the "master the vi editor" sites but can't seem to find out how to use the tabbed functionality like I want to. Note: I'm not referring to the tab button or indenting, but the actual tabs for opening multiple files within a single vi command prompt.

2007-12-11 04:18:21 · 2 answers · asked by Mike 2

import java.io.*;

public class vehicleDriver
{


public static void main(String[]args)
{
vehicle myVehicle = new vehicle();
processMenu(myVehicle.vehicle());
}

public static void displayMenu()
{
System.out.println("Please type your menu choice and press enter.\n");
System.out.println("0. Display Current Vehcile Attributes.\n");
System.out.println("1. Enter Vehicle Make.\n");
System.out.println("2. Enter Vehcile Model.\n");
System.out.println("3. Enter Vehcile Color.\n");
System.out.println("4. Enter Number of Doors.\n");
System.out.println("5. Enter Number of Cylinders in the Engine.\n");
System.out.println("6. Enter Current Speed.\n");
System.out.println("7. Enter To Stop Vehicle.\n");
System.out.println("8. Enter To Speed Vehicle Up.\n");
System.out.println("9. Enter To Slow Vehicle Down.\n");
System.out.println("10. Enter To Open Doors.\n");
System.out.println("11. Enter To Close Doors.\n");
System.out.println("99. Enter To Quit Vehicle Application.\n");
}

public static void DoorConfig(boolean[] isDoorOpen, int doors)
{
for(int i = 0;i < doors; i++)
{
if(isDoorOpen[i] = false)
System.out.println("Door is Closed.");
else
System.out.println("Door is Open.");
}
}

//Create BufferedReader for keyboard input
private static BufferedReader stdin = new BufferedReader( new InputStreamReader( System.in ));


public static void processMenu(vehicle myVehicle) throws IOException
{
//Declare variables
boolean isDoorOpen[] = new boolean[10];
String input = "";
int number = 0;
int choice = 0;

//Set doors to closed by default
for(int i = 0; i < isDoorOpen.length; i++)
isDoorOpen[i] = false;



//Loop through menu until quit is chosen
while(choice != 99)
{
displayMenu();
System.out.println("Enter menu option now: ");
input = stdin.readLine();
choice = Integer.parseInt( input );

switch(choice)
{
case 0: System.out.println("The Vehicl Attributes are:");
System.out.println("\nMake: " + myVehicle.get_vehicleMake());
System.out.println("\nModel: " + myVehicle.get_vehicleModel());
System.out.println("\nColor: " + myVehicle.get_vehicleColor());
System.out.println("\n#Doors: " + myVehicle.get_vehicleNumOfDoors());
System.out.println("\n#Cylinders: " + myVehicle.get_vehicleNumOfCylinders());
System.out.println("\nSpeed: " + myVehicle.get_vehicleSpeed() + "\n");
DoorConfig(isDoorOpen, myVehicle.get_vehicleNumOfDoors());
break;

case 1: System.out.println("Enter a new make: ");
input = stdin.readLine();
myVehicle.set_vehicleMake(input);
System.out.print("Vehicle's make is now " + myVehicle.get_vehicleMake() + "\n");
break;

case 2: System.out.println("Enter a new model: ");
input = stdin.readLine();
myVehicle.set_vehicleModel(input);
System.out.print("Vehicle's model is now " + myVehicle.get_vehicleModel() + "\n");
break;

case 3: System.out.println("Enter a new color: ");
input = stdin.readLine();
myVehicle.set_vehicleColor(input);
System.out.print("Vehicle's new color is " + myVehicle.get_vehicleColor() + "\n");
break;

case 4: System.out.println("Enter a number of doors: ");
input = stdin.readLine();
number = Integer.parseInt( input );
myVehicle.set_vehicleNumOfDoors(number);
System.out.print("Vehicle now has " + myVehicle.get_vehicleNumOfDoors() + " doors\n");
break;

case 5: System.out.println("Enter a number of cylinders: ");
input = stdin.readLine();
number = Integer.parseInt( input );
myVehicle.set_vehicleNumOfCylinders(number);
System.out.print("Vehicle now has " + myVehicle.get_vehicleNumOfCylinders() + " cylinders\n");

case 6: System.out.println("Enter number for current speed: ");
input = stdin.readLine();
number = Integer.parseInt( input );
myVehicle.set_vehicleSpeed(number);
System.out.print("You are now going " + myVehicle.get_vehicleSpeed() + "mph\n");
break;

case 7: System.out.println("Stopping vehicle, You will be slowing down by 1 mph\n");
number = myVehicle.vehicleStop();
System.out.println("Vehicle has stopped after slowing down from " + number + "mph\n");
System.out.print("Current speed is: " + myVehicle.get_vehicleSpeed() + "mph\n");
break;

case 8: System.out.println("Enter how fast you want to go: ");
input = stdin.readLine();
number = Integer.parseInt( input );
System.out.print(myVehicle.get_vehicleModel() + " current speed is " + myVehicle.get_vehicleSpeed() + "\n");
int temp = myVehicle.vehicleAccelerate(number, isDoorOpen);
System.out.print("Vehicle sped up to " + myVehicle.get_vehicleSpeed() + " after accelerating "+temp+"mph\n");
break;

case 9: System.out.println("Enter how much you would like to slow down to: ");
input = stdin.readLine();
number = Integer.parseInt( input);
System.out.print(myVehicle.get_vehicleModel() + " current speed is " + myVehicle.get_vehicleSpeed() + " mph\n");
temp = myVehicle.vehicleSlowDown(number);
System.out.print("Vehicle slowed down to " + myVehicle.get_vehicleSpeed() + " after slowing down " +temp+" mph\n");
break;

case 10: System.out.println("Enter a door number you want to open: ");
input = stdin.readLine();
number = Integer.parseInt( input );
System.out.print("Doors open or closed before opening chosen door\n");
DoorConfig(isDoorOpen, myVehicle.get_vehicleNumOfDoors());

isDoorOpen = myVehicle.door_open( number, isDoorOpen);

System.out.println("\nDoors open or closed after opening chosen door\n");
DoorConfig(isDoorOpen, myVehicle.get_vehicleNumOfDoors());
break;

case 11: System.out.println("Enter door number you would like to close: ");
input = stdin.readLine();
number = Integer.parseInt( input );
System.out.print("Doors open orclosed before closing chosen door\n");
DoorConfig(isDoorOpen, myVehicle.get_vehicleNumOfDoors());

isDoorOpen = myVehicle.door_closed(number, isDoorOpen);

System.out.print("\nDoors open or closed after closing chosen door\n");
DoorConfig(isDoorOpen, myVehicle.get_vehicleNumOfDoors());
break;

case 99: System.out.println("\nQuit opting was chosen, quitting vehicle application, please wait\n");
break;

default: System.out.println("incorrect value, Enter only available menu options.");
}//end of switch case\\
}//end of while loop\\
}
}

2007-12-11 04:11:04 · 1 answers · asked by mattjcook07 2

How do i turn a double into an int so I an use it with a while ( boolean ) statement?

Ex:
double percent
.
.
.
while ( percent > 60)

2007-12-11 04:10:08 · 2 answers · asked by Anonymous

Anyone know if there is a way to execute a program from a batch file and then continue executing the batch file?

I tried executing the program from a separate batch file and using "Call" to call that batch file, but the batch job just waits for this program to be closed before continuing.

I need the program to execute and remain running while the batch file continues...

2007-12-11 03:54:53 · 2 answers · asked by Shwaa 6

fedest.com, questions and answers