sillyboy 43 Practically a Master Poster

For staters, you don't need to be using floats for hour, sec, min and this is where a lot of your issues will be starting.

If you avoid decimal multiplication / division, you will probably get results closer to what you want. e.g. 1.20 = 1 in int (I am referring to your hours).

After you calculate hours, you need to take this into account when calculating the minutes. After you get the minutes you need to take this & hours into account when you calculate the seconds.

Hope this helps...

sillyboy 43 Practically a Master Poster

i. Does this code have any error(s)? If there correct it.
ii. Store some values (in member variables MyString and MyInteger) in 15th element of the array StructVariable using StructPointer.

You can't just expect somebody to do your homework for you...

sillyboy 43 Practically a Master Poster

I guess simplicity depends on how secure you want it. More secure will make it more complex.

Using html & javascript should enable you to create a simple login system, BUT it is not going to be very secure.

sillyboy 43 Practically a Master Poster

Hm... curious. Problems like this can be fairly difficult to diagnose, but hopefully this one isn't too bad. Since you are using a router, you will want to auto-assign your IP / DNS, so as a next step I would check your properties on your network card.

Just make sure you are being auto-assigned a IP / DNS / Gateway, and aren't using static values.

See how that goes.

sillyboy 43 Practically a Master Poster

How is the wireless network configured? Is it going through a router or through a computer? If the DNS is not correct, perhaps you are going through a computer and you need to put that computer's IP address as the DNS...

sillyboy 43 Practically a Master Poster

Yeah, probably not a good idea to switch to linux unless you have time to get familiar with it first. You can get your games to run, but it'll take a little bit of configuration I believe (e.g. installing wine). You shoule be able to program fine on windows anyway...

sillyboy 43 Practically a Master Poster
while(menu != 99)

Encapsulated your various if statements, so I assume 99 is some sort of exit code. If the user enters 1 as you say, when will this ever become 99? (Never). You need to get more inputs until the user inputs a 99.

With the exception handling sections, you are throwing / catching the exception, and then in finally you are doing:

System.exit(0)

This is going to exit, not ask for another input, hence the behaviour you are observing.

Have a think, if you get stuck again I will check back later.

sillyboy 43 Practically a Master Poster

You will probably get better help in a software dev forum.

sillyboy 43 Practically a Master Poster

src="/default.asp?client='$query_value'"

I can not use any server side code!

I think you have broken your own rule already since asp is server-side. Anyway, what you probably want to do is look at AJAX.

sillyboy 43 Practically a Master Poster

If you want flashing menus, then the easiest way would be to use .gif images. BUT this is usually a bad idea as they will get annoying very quickly.

You also need to let us know the content of the menu before we can advise what to do with it.

sillyboy 43 Practically a Master Poster

LOL, I am pretty sure it is "rooted". It doesn't really do anything, just annoying every time I see it. Not to worry, thanks anyway.

sillyboy 43 Practically a Master Poster

Well I tried removed it from being shared, but no luck. I can't access the security tab for the folder, so I can't get its permissions.

"The requested security information is either unavailable or can't be displayed"

bah!

sillyboy 43 Practically a Master Poster

I had a look at the code and tried it out, it works for me (though I did get rid of those "..." things you have. I was using firefox.

sillyboy 43 Practically a Master Poster

I would take that as three scenarios. Is there a shorter way? Most likely, but I wouldn't think that is the aim here, and I wouldn't be the best person to try optimise your code.

Perhaps somebody else can help you there...

sillyboy 43 Practically a Master Poster

Well yes you would probably end up needing another try / catch block. Keep in mind though, a scenario is like a story.

To test some other cases, perhaps have a movie where ALL the humans watch the movie, and one where NONE watch the movie.

Does that make sense?

sillyboy 43 Practically a Master Poster

You could probably increase the width of the frame, otherwise have some other content in the frame, or have a permanently hidden div to set the width.

Hopefully I am understanding you now :p

sillyboy 43 Practically a Master Poster

hahaha, no way.

sillyboy 43 Practically a Master Poster

So originally the box should be "hidden" and take up no space, correct?

What I assume happens next is some kind of box is pressed to upload a file, and if this is so, you attach an even e.g. "onclick" to the button and change the css of the box at the same time.

Would this work for your scenario?

sillyboy 43 Practically a Master Poster

Regarding requirement 1, not too sure exactly what the issue is, and I am not too sure what the family class looks like. Your conditions are also redundant (you are checking the same condition for each case, so you don't really need to divide these out).

Regarding the second requirement, it seems you already have 1 scenario, so just add more.

Hope that helps

sillyboy 43 Practically a Master Poster

Not too sure why you have punctuated those sentences when I had no idea of your requirements.

Anyway, you should look at the visibility or display attributes for the div (css, but it can easily be modified by JavaScript).

sillyboy 43 Practically a Master Poster

Try this file, I did what I said and it worked fine for me...

sillyboy 43 Practically a Master Poster

All you have to do is get rid of the height / width attributes from the table cells. I didn't post it because I did it through the developer tool...

sillyboy 43 Practically a Master Poster

I see you have set height / width on some of those cells. Try getting rid of them and let the table auto-size. I edited your site using IE Developer Tool and it seemed to do the trick.

sillyboy 43 Practically a Master Poster

Yep, I wasn't saying it wasn't. I was just unclear in my last post, sorry.

sillyboy 43 Practically a Master Poster

Why would you start at position 19? If you start at the start at position 0, you can process the carry as you go.

sillyboy 43 Practically a Master Poster

Yeah, it is underneath a shared directory (so its parent is shared, not itself). Thanks for your suggestion, I will try it later on.

sillyboy 43 Practically a Master Poster

So you are just after addition. Do it the way we are taught in primary school. Start by adding the ones, carry, repeat.

You have already defined num3, so this would be a logical place to store the answer, display once you finish processing.

sillyboy 43 Practically a Master Poster

Not on my computer currently, so I don't know the permissions. But it's just a normal folder "E:\My Recieved Files\Shared".

It shouldn't be anything malicious, it was a folder I created myself. I deleted a bunch of other folders with it (the others are gone), but this one is just hanging around.

I will post permissions when I get home.

sillyboy 43 Practically a Master Poster

I was looking at it in firefox, where it is fine. Since you are using dreamweaver (which I don't use), and I think you will probably want to keep using it, look for settings about browser compatibility. I suspect dreamweaver is creating html for firefox and perhaps ignoring ie.

If you want a coding solution I will look at your code.

sillyboy 43 Practically a Master Poster

Hey all,

This isn't a huge concern and I have just ignored it, but I guess I am curious to see if anybody has a remedy. I have somehow got a folder which is visible, but doesn't map to anything. What I mean is I can see it, but if I try to perform any actions on it, it says the folder doesn't exist.

I've tried "unlocking" it, and also disable explorer.exe and using cmd, but these 2 methods had no effect.

Any ideas?
(Like I said, I'm not really bummed about it, it's just slightly annoying)

sillyboy 43 Practically a Master Poster

What is incorrect about it? It looks ok to me

sillyboy 43 Practically a Master Poster

You can use JavaScript to create this type of behaviour. E.g. changing colours (when mouse cursor is over the button) can be achieved using "onmouseover".

sillyboy 43 Practically a Master Poster

I don't think you will find a tutorial for Hangman. You will instead want tutorials to understand the concepts required to create the hangman program, and it is up to you to decide what these concepts are...

As a start you could learn about user input/output, e.g. how will you get a letter from the user, and what will you do with it?

sillyboy 43 Practically a Master Poster

I replied to your other post, be a little more patient perhaps. If you annoy people, they won't help you out...

sillyboy 43 Practically a Master Poster

Ah, debugging JavaScript is a mission at times. I highly recommend getting a debugger like firebug.

So I found a few issues in the code above. Firstly, you are calling "start('start')", you don't need any arguments for start (see the definition).

Second, there isn't actually a "start()" function in your JavaScript because the showSlide function isn't being closed at the right place (check your brackets).

Third, why are you using different code to show the first / last slides. For a start, it doesn't work and it won't reset your caption and counter.

Hope this helps, if you get stuck again, I'll give you some more pointers.

sillyboy 43 Practically a Master Poster

Do you have a link by any chance? If the div is "hidden" I assume you mean no content, how it is taking up space? Maybe I don't understand the problem entirely...

sillyboy 43 Practically a Master Poster

If you view the page source it will have script tags, if they are from a file look at the "src" attribute. Otherwise you can "save page as" and it will automatically download all the page resources (including JavaScript).

sillyboy 43 Practically a Master Poster

It is so hard to help when we don't know where you are up to. And if you haven't actually done anything, how will you ever learn?

sillyboy 43 Practically a Master Poster

For websites where you get the error, just use firefox. That would be the easiest fix imo

sillyboy 43 Practically a Master Poster

Why is it packaged inside the jar? Can't you just have it sitting "near" the jar? I think that would make your job significantly easier...

sillyboy 43 Practically a Master Poster
myInterpretter.exec("import java.util")

Not too sure what you are trying to do here. You should be able to simply use:

import java.util

Jython is python with access to java packages.

sillyboy 43 Practically a Master Poster

From what I've read it is working for everybody except you...:(

What IDE are you using to program, compile, run this code? Can you give some details on your inputs etc...

Send me you code if you want and I will try it without touching it at all.

sillyboy 43 Practically a Master Poster

I copy / pasted your original code and added (double) in the divisions, this is the output I got (looks like it works to me):

Grades Program

Enter valid student grades (in decimal values ranging from 0-100).
Invalid grades will not be considered. Enter -1 to view the results.


	Input a grade: 99
	Input a grade: 85
	Input a grade: 70
	Input a grade: 60
	Input a grade: 50
	Input a grade: 40
	Input a grade: 30
	Input a grade: -1


Your Results:


The total amount of valid grades input were: 7

Letter Equivalent	Instances	% of total	
	As:		1		14.285714285714285%
	Bs:		1		14.285714285714285%
	Cs:		0		0.0%
	Ds:		1		14.285714285714285%
	Fs:		4		57.14285714285714%

	pass:		3		42.857142857142854%
	fail:		4		57.14285714285714%

The highest valid grade you entered was: 99.0
The lowest valid grade you entered was: -1.0

The average of the valid grades you entered is: 62.0
sillyboy 43 Practically a Master Poster

That looks correct, so if it isn't working I fear you probably have some silly mistake somewhere else :p

This is a simple test program I wrote:

public class Main {
	
	public static void main(String [] args) {
		
		double result;
		
		int value = 50;
		int count = 100;
		
		result = ((double)value / count) * 100;
		
		System.out.println(result);
	}

}

Console output:

50.0
sillyboy 43 Practically a Master Poster

Give a heads up if you get too stuck.

sillyboy 43 Practically a Master Poster

Surely you have not tried to write your own, in the 5 minutes from my last post. Write some code, try it, if it doesn't work, post it and then we can help you more.

sillyboy 43 Practically a Master Poster

The os library will include the methods you need to create such a function.

Take a look at http://www.python.org/doc/2.5.2/lib/os-file-dir.html

sillyboy 43 Practically a Master Poster

Hey, I think you are on the right track with your percentages. So by it not working, I assume you get getting results of 0% for everything?

If this is indeed the case, the problem is int / int is integer division, and will return a int. So... since counter is always greater than your percentage, it is always 0.XYZ which will get trimmed to be 0. Since you are keen to learn and put in the effort, you should be able to find a solution to this :).

In regard to having string inputs, sure you will be able to do this. But if you decide to take this route, you may need to learn some exception handling... I am not too sure how strict your requirements for the assignment are and it seems you are already going beyond the scope, so perhaps you won't need exception handling.

hope I have helped...

sillyboy 43 Practically a Master Poster

Ok, so what I recommend is getting something like firebug for firefox. It will make this type of debugging a lot easier. I had a little play with the site, and the problem I see is that your "header" div is not containing the 5 thumbnails.

So what I mean here is that whist, they are inside the div tag, they are not positioned within the boundaries (which is set to height: 214px look at style-header.css).

As an experiment I changed this height value, and as expected it shifted the content below this boundary.

does this get you further?

sillyboy 43 Practically a Master Poster

Unable to connect means that you can't view websites? or the program crashes?

If the programs are crashing, I can't really help, but if it is just unable to connect, it is probably because you are behind a proxy, and it needs to be configured.