428 Posted Topics

Member Avatar for Violet_82

Hi there, I was wondering if anybody can help me understanding this code please - well it's more about the usage of :first really): <!DOCTYPE html> <html> <head> <style> span { color:red; cursor:pointer; } div { margin:3px; width:80px; display:none; height:80px; float:left; } div#one { background:#f00; } div#two { background:#0f0; } …

Member Avatar for Violet_82
0
413
Member Avatar for Violet_82

HI all, I was wondering if anybody can help me to understand this exercise: "A small airline has just purchased a computer for its new automated reservation system. Write an application to assign seas on each flight of the airline's only plane (capacity: 10 seats). Your application should display the …

Member Avatar for Violet_82
0
7K
Member Avatar for Violet_82

Chaps, I was wondering what this.id (and for that matter this.whatever) is in jquery and how to use it. A few quick examples are here: <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <img title="hat.gif"/> <script> $("img").attr("src", function() { return "/resources/" + this.title; }); </script> </body> </html> and another one: …

Member Avatar for Violet_82
0
157
Member Avatar for Violet_82

Hi all, I am slightly confused about passing functions to the addClass method. This code is taken from the jquery.com site http://api.jquery.com/addClass/: <!DOCTYPE html> <html> <head> <style> div { background: white; } .red { background: red; } .red.green { background: green; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div>This div should …

Member Avatar for Violet_82
0
230
Member Avatar for Violet_82

Chaps, I am thinking to redesign and redevelop my site, http://www.antonioborrillo.co.uk/ I want to get rid of those hideous buttons and make it mobile friendly, add extra info and have a page where people can leave comments on some of the pix. Now first thing: mobile version. I will go …

Member Avatar for JessicaJohn
0
151
Member Avatar for Violet_82

Chaps I think there might be an issue here, I have just posted something http://www.daniweb.com/software-development/java/threads/449524/building-a-simple-airline-reservation-system-exercise and it looks like it posted it twice. I am fairly sure I didn't press submit twice, so I am not sure what's going on. thanks

Member Avatar for Violet_82
0
142
Member Avatar for Violet_82

Chaps, I am thinking to build a nice picture blog, to upload pictures and add a bit of a blurb, just enough to describe the picture, and let people comment if they want to. Now, here's the thing: one of the main feature I would like to have, well really …

Member Avatar for Violet_82
0
113
Member Avatar for Violet_82

Chaps, I am doing a bit of responsive/mobile development. SOme concepts are pretty new to me, like using viewports, initial-scale, maximum-scale etc etc, so I was wondering if anybody is aware of a good tutorial that could clear these things up for me. I have found this quite beneficial http://alistapart.com/article/fluidgrids …

Member Avatar for Violet_82
0
116
Member Avatar for McLaren

have you ever tried the key combination ALT + TAB? Not only you can see the icons but also the name of the program

Member Avatar for McLaren
0
144
Member Avatar for Violet_82

Hi all, can somebody please let me know where I can find a good guide on how to use and especially what's included and what you can accomplish with Open CMS (I believe it's an open source content management system, probably a bit like wordpress)? ALso, if anybody has used …

Member Avatar for Violet_82
0
165
Member Avatar for Violet_82

HI all, I have just come across this: `System.out.printf("Student %2d: %3d\n");` What does that ":" mean? I assume it is a kind of separator becasue that line prints something like this: `Student 1: 87` thanks

Member Avatar for Violet_82
0
482
Member Avatar for Violet_82

HI guys, sorry to go on about these visited links. I have spotted an issue with safari, and it looks like it is only safari doing it (at least on windows). DOes safari have some special settings that need to be enabled/changed? Same link as before, but different content this …

Member Avatar for Violet_82
0
158
Member Avatar for Violet_82

HI all, I wonder if you can help me at all. Today I changed the system battery to an Asus laptop, which had to be taken apart completely. I changed the battery and put it back together and everything was working ok. Now, when I switched it back on I …

Member Avatar for gerbil
0
219
Member Avatar for Violet_82

HI all, not long ago I posted something about a similar issue http://www.daniweb.com/web-development/web-design-html-and-css/threads/447728/change-the-colour-of-visited-link-with-avisited but this time it is slightly different. Ok, so here's the offending page http://antobbo.webspace.virginmedia.com/various_tests/links/faqTest.html When you click on the question, the answer will slide down. Now, the links will always point to #, but I still need …

Member Avatar for Violet_82
0
225
Member Avatar for Violet_82

HI all, I am a bit confused about right justifying and formatting strings and numbers in general, and I was wondering if somebody can clarify this for me please. Ok, so let's take an example: // Fig. 7.2: InitArray.java // Initializing the elements of an array to default values of …

Member Avatar for Violet_82
1
1K
Member Avatar for Violet_82

Hi all, I am trying desperately to align correctly a set of 2 adjacent input boxes, but alas, this is turing into a nightmare and I wonder what guys you think it might be the best approach. Here's the code: <html> <head> <title>test</title> <style> .theForm{ background-color:#f4f4f4; margin-top:14px; padding:25px 0 40px …

Member Avatar for Violet_82
0
106
Member Avatar for Violet_82

Hi chaps, I wonder if you can help me with something. I am looking into responsive design a bit, and I was testing something here http://antobbo.webspace.virginmedia.com/test/responsive/test.html Now, if you try to resize the window the cnes logo gets pushed under the "this is an extra bit" div: what I would …

Member Avatar for AleMonteiro
0
334
Member Avatar for Violet_82

Sorry guys, I'd like to just confirm this, is it correct to have a p tag inside a form tag? Something like <form action="demo_form.asp"> <p>This is a test.</p> First name: <input type="text" name="FirstName" value="Mickey"><br> Last name: <input type="text" name="LastName" value="Mouse"><br> <input type="submit" value="Submit"> </form> thanks

Member Avatar for Violet_82
0
929
Member Avatar for BigPaw

I agree, the user is not asking for advice about pirated software, he's just got an issue with his screen - as already mentioned he must have used the key combination to turn the screen upside down. He clearly doesn't know what he's talking about, it's irrelevant whether his version …

Member Avatar for caperjack
1
319
Member Avatar for Violet_82

HI all, I have a question about changing the colour of visited link with `a:visited{}`: it doestn' seem to work the way I thought it would, or, more likely I am doing something wrong. I have this situation: .box1 a:link{ color:#ac2973; text-decoration:none; } .box1 a:visited{ color:#6bb8c0; } .box1 a:hover{ color:black; …

Member Avatar for pritaeas
0
226
Member Avatar for Violet_82

Hi all, I am looking into responsive design and I have a problem with media query. Being pretty new to the whole responsive design business, it seems that media queries are quite a good way to deal with it. But IE7 and 8 don't seem to be able to read …

Member Avatar for iamthwee
0
77
Member Avatar for Violet_82

Hi there, quick question. Say my laptop is connected to a wireless network, and I then decide to plug the wire in, does the wired connection takes over? In other words with both the wireless and the wired cable connected, which one take precedence? thanks

Member Avatar for riahc3
0
142
Member Avatar for Violet_82

Hi I wonder if somebody can help me with this. This programs simulates throwing a die 20 times: import java.util.Random; // program uses class Random public class RandomIntegers { public static void main( String[] args ) { Random randomNumbers = new Random(); // random number generator int face; // stores …

Member Avatar for Violet_82
0
532
Member Avatar for Violet_82

hi chaps, I am having some trouble decoding this regex in a javascript (wasn't entirely sure whether javascript was the right place to post this since it has more to do with regex). I am very new to it - this is the first time I look into that - …

Member Avatar for Violet_82
0
210
Member Avatar for Violet_82

Hi there, I have to calculate the pithagorean triplets up to 500 (it's an exercise I found on the deitel and deitel book) and I got a little stuck, in that it looks like I am getting an infinite loop. The exercise says to use a triple for loop, but …

Member Avatar for Violet_82
0
132
Member Avatar for Violet_82

hi all, I need to draw a series (10) concentric circles starting fromt he middle of the panel. This is what I have done, do you reckon it is ok? //Ovals.java import java.awt.Graphics; import javax.swing.JPanel; public class Ovals extends JPanel{ public void paintCmponent(Graphics g){ super.paintComponent(g); //calculates the centre of the …

Member Avatar for Violet_82
0
3K
Member Avatar for Violet_82

hi chaps, I would like to do this exercise taken from the deitel and deitel book, chap 4 exercise 4.38, in brief: "Write an application that reads a 4 digit int and encrypt it replacing each digit with the result of addin 7 to it and getting the reminder after …

Member Avatar for Violet_82
0
580
Member Avatar for Violet_82

Hi there, I have opened another thread even if the program is very similar. I have modified some code I have produced earlier and now I am getting some runtime errors, and I can't quite understand why. Now, here's the code: EmployeeClass.java public class EmployeeClass{ private String firstName; private String …

Member Avatar for Violet_82
0
4K
Member Avatar for Violet_82

Hi all, I have just installed the jdk on a windows7 machine 64bit. I run the first test application in the terminal and got the following message: "'java' is not recognized as an internal or external command, operable program or both file". So I had a look online and found …

Member Avatar for vishnu.khera.5
0
440
Member Avatar for Violet_82

Hi all, I am having a few problems with a css. Basically in my conditional css I need to target IE9 and below (IE9 included). Now, I have this: <!--[if IE 9]> ... <![endif]--> and <!--[if lt IE 9]> ... <![endif]--> Can I combine them together somehow? thanks

Member Avatar for Violet_82
0
65
Member Avatar for Violet_82

Hi all, finally following the advice on this forum I got hold of the Deitel and Deitel java how to program 9th edition! Great book I must say so far (only got to chapter 3). Now, I am doing some of the exercises as I go along, and today I …

Member Avatar for Violet_82
0
316
Member Avatar for Violet_82

Hi all, I was looking into determine the size of some text on 2 websites (basically it is 2 websites a dev and a live copy and I wanted to determine whether they are the same on every browser) and because I couldn't find a way to do that in …

Member Avatar for Violet_82
0
149
Member Avatar for Violet_82

Hi guys, if you have an anonymous function sitting within an each function and I would like to use the this parameter within the anonymous function, how would I do it? Currently it returns an error saying `"SyntaxError: missing formal parameter setTimeout(function(this){"`. I am trying to apply a delay of …

Member Avatar for Violet_82
0
142
Member Avatar for Violet_82

HI all, I am experiencing a very weird problem. I dont' seem to be able to read from any usb. When I insert one windows recognize it in that it play the usb sound and even it shows that up - eventually - in my computer (although with a significant …

Member Avatar for Violet_82
0
153
Member Avatar for Violet_82

Hi there, I would like to start an anonymous blog. The reason is that I simply don't want people to associate its content with my name, I am not planning to post anything dodgy on it. Now, here's my strategy, please let me know if you have any suggestion. I …

Member Avatar for AarenAce
0
105
Member Avatar for Violet_82

HI peeps, I have a question about the following program: TempScale.java: public enum TempScale { CELSIUS, FAHRENHEIT, KELVIN, RANKINE, NEWTON, DELISLE, R�AUMUR, R�MER, LEIDEN }; Temperature.java public class Temperature { private double number; private TempScale scale; public Temperature() { number = 0.0; scale = TempScale.FAHRENHEIT; } public Temperature(double number) { …

Member Avatar for Violet_82
0
235
Member Avatar for Violet_82

HI all, quick questiona bout a laptop I would like to buy for my parents, a dell 15, i3 processor, 4gb ram and windows 8. Now, I have absolutely no experience at all with wondows 8 and I was wondering if anybody can let me know whether it is worth …

Member Avatar for Violet_82
0
226
Member Avatar for Violet_82

HI all, I am having a little problem with the following program. Here are the files: Player.java: import java.text.DecimalFormat; public class Player { private String name; private double average; public Player(String name, double average) { this.name=name; this.average=average; } public String getName() { return name; } public double getAverage() { return …

Member Avatar for Violet_82
0
191
Member Avatar for Violet_82

Hi all, my parents have just opened their xmas present, brand new dell 5520 laptop. I have plugged the ac adapter in to get it charged and noticed that the battery led light on the actuall laptop is off. I am fairly sure the charger works because the light on …

Member Avatar for Violet_82
0
168
Member Avatar for Violet_82

HI all, I was looking at this program and noticed few things: import static java.lang.System.out; public class Employee { private String name; private String jobTitle; public void setName(String nameIn) { name = nameIn; } public String getName() { return name; } public void setJobTitle(String jobTitleIn) { jobTitle = jobTitleIn; } …

Member Avatar for Violet_82
0
3K
Member Avatar for Violet_82

Hi I am trying to give some sense to this expression #container, #footer { width: expression(document.body.clientWidth < 742? "740px" : document.body.clientWidth > 1202? "1200px" : "auto"); } found on here http://www.cameronmoll.com/archives/000892.html but I can't quite get it. Is it saying if the width of the page is less than 745 …

Member Avatar for Violet_82
0
114
Member Avatar for Violet_82

Hi there, I have a bit of a problem here. I have a div with a background image positioned and I want to add a gradient background to this div <div id="myDiv"> ... </div> CSS: #myDiv{ /*border:1px solid green;*/ /*width:940px;*/ padding:10px 0 0 20px; height:160px; background:#fafafa url("image.png") no-repeat 100% 60%; …

Member Avatar for Violet_82
0
232
Member Avatar for Violet_82

Hi I am having problems running and compiling a program with more than one class, but I am not sure how to do it in netbean, it keeps complaining. I have the 2 following files called respectively Account.java public class Account { String name; String address; double balance; } and …

Member Avatar for Violet_82
0
300
Member Avatar for Violet_82

Hi I am having some problem understanding the do-while loop in the following program, and I was hoping for some help: import java.io.File; import static java.lang.System.out; import java.util.Scanner; class DeleteEvidence { public static void main(String args[]) { File evidence = new File("c:\\cookedBooks.txt"); Scanner keyboard = new Scanner(System.in); char reply; do …

Member Avatar for Violet_82
0
198
Member Avatar for Violet_82

Hi there, I have bought a new laptop an acer 756 and I was wondering if anybody can give me any advice as to what to do with the battery the first time and how to make sure that it lasts long. What I usually do is this: -laptop off, …

Member Avatar for Violet_82
0
217
Member Avatar for Violet_82

Hi all, I have recently built a website using wordpress and I have noticed that wordpress adds some classes to my html tags automatically. I asked for support in their forum, but nobody got back to me, so I was hoping somebody could she some light on this? SO I …

Member Avatar for Violet_82
0
243
Member Avatar for Violet_82

Hi there, as I am learning java (providing I will have the time to keep going!) I was wondering if there is anywhere I can find some simple exercises to practice with. At the moment, as an introduction, I am reading a java for dummies book, so I am still …

Member Avatar for Violet_82
0
122
Member Avatar for Violet_82

quick question.Take this html <form id="the_form"> <input type="checkbox" value="ideal" name="ideal_drive" id="ideal"><label for="ideal">This is a test only only</label><br> ... Say I want to select the text in the label and give it a different colour. I tried this rule #the_form label[for='ideal']{ color:yellow; } It works ok but not in IE7. SO, …

Member Avatar for Violet_82
0
123
Member Avatar for Violet_82

Hi there, I am trying to find an explanation for what the `findWithinHorizon()` does. I landed on this page http://docs.oracle.com/javase/7/docs/api/ and I know that the method is part of the `java.util.Scanner` class (isn't it?). How do I find it in the page above please? thanks

Member Avatar for Violet_82
0
248
Member Avatar for Violet_82

Hi I got in a bit of a muddle here. Basically say you have this html: ... <a href="javascript:void(0)"> <img alt="" data-name="myCar" data-family="ferrari" data-type="Fast Family" src="images/ferrari.png" style="left: 193.291px; opacity: 0.5; cursor: default;"> </a> <a href="javascript:void(0)"> <img alt="" data-name="yourCar" data-family="aston" data-type="Fast Family" src="images/aston.png" style="left: 293.291px; opacity: 0.5; cursor: default;"> </a> ... …

Member Avatar for Violet_82
0
166

The End.