391 Topics
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) { … | |
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 … | |
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 … | |
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 … | |
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; } … | |
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 … | |
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%; … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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, … | |
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 | |
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> ... … | |
Hi there, as one of my first programs in java, I thought I will do a simple (!) lottery program...needless to say it doesn't compile, and after looking at it for quite awhile trying to unsuccessfully spot the error (I am not sure how to debug in netbeans, any advice … | |
Hi there, say I have this situation: `ul a[href$=".pdf"]{...}` to match any link that end in .pdf: how do I match any possible combination of "pdf"? Say "pDf", "PDF" etc? I thought that I could use regex in the css, but I really don't know anything about regex, so I … | |
Hi all, I am having really weird problems happening on my machine (windows 7, IE9). I was testing a website and noticed that my Browser Mode and Document Mode are not doing what they should. Basically from what I have read, when you open IE they should be pointing to … | |
HI I was wondering if you can help me with this random number program. import static java.lang.System.out; import java.util.Scanner; import java.util.Random; class GuessAgain { public static void main(String args[]) { Scanner myScanner = new Scanner(System.in); int numGuesses = 0; int randomNumber = new Random().nextInt(10) + 1; out.println(" ************ "); out.println("Welcome … | |
Hi there I am reading some java tutorial and a have a question about these 2 classes java.util.Scanner; javax.swing.JOptionPane; In the tutorial I am looking at the 2 classes are used in separate programs to get the input from a user With the first class http://www.homeandlearn.co.uk/java/user_input.html after importing the class … | |
Hi there, I am just beginning to learn java right now, and have a real begeinner question. I ahve read that when you declare a float variable and ssigna value to it the number has to be followed by an "f". What I coudln't find out is why: `var floatNumber … | |
Hi there, I wonder if anybody can help me with this. I a a bit confused as to what $(this) and what e.target.nodeName represent in jquery. I had a look at this http://api.jquery.com/event.target/ but I am still not entirely sure, I hope somebody can clarify this. I run a little … | |
Hi, I am having some funny problems with hiding and showing the navigation and I am not entirely sure why. Here's the demo: http://antobbo.webspace.virginmedia.com/various_tests/worktest/hidingnavigation/test.htm and here's the code: html: ... <!-- NAVIGATION --> <div id="navBox"> <ul> <li class="mainList"><a href="#">Item 1</a> <ul class="subList"> <li><a href="#">sub item1.1</a></li> <li><a href="#">sub item1.2</a></li> <li><a href="#">sub … | |
Hi I run into something peculiar. I have an html file linking to a local file jquery-1.4.4.js. Now, everything works ok in every browser but when I test the page in IE7 and 8 it fires the following error: SCRIPT87: Invalid argument. jquery-1.4.4.js, line 18 character 20135 and everything falls … | |
hi all, I have an old dell 1200 that doesn't seem to be wworking properly. I had a look inside but my knowledge of hardware is basic, so at glance everything seems ok down there. I am not sure whether the problem is with the motherboard or whatever. Basically at … | |
HI I am experiencing a problem with the system clock. Basically the laptop in question, an asus, had its battery removed a while ago. A few months ago, I noticed something was wrong with the clock. Everytime I unplug the adapter - when the laptop is off - the system … | |
Hi all, I have to fix a laptop with windows vista on it (asus) and I was wondering if anybody can assist me with that please. The laptop is very very slow and has some more problems and needs to be formatted. I have the recovery disk and the drivers … | |
Hi I have run into a issue recently. I am working on a website that involves quite a bit of scrolling: basically, there is a fixed position menu with some anchor links. when you click on an anchor links the page automatically scrolls down to the desired position. All good … | |
Hi peeps, quick question. I am debugging a script in IE (it's producing errors and I suspect it might be down to the selectors) and I was wondering if the below is correct. Guven the following html <div id="fruit_filter"> <h1>Compare the Toyota range</h1> <div class="filter_checkboxes"> <h2>fruit type</h2> <form id="first_filter"> <input … | |
Hi guys, I have a big problem with my firend's laptop. Shes got a acer aspire one happy and I was installing on it a virtual drive emulator. ALl went ok, but after the installation I kept getting the blue screen - see link attached -  and I … | |
Hi there, lately I have noticed that my connection, despite various speedometers saying it is as fast as it should be, slowed dowm. I have got in touch with my provider, Virgin, and somebody from support came back with this: " I have checked your connection and the upstream power … | |
Hi there, quick question about onchange method usage. I have a couple of checkboxes and when I check/uncheck them I want a function to be called, therefore I have decided to use the onchange method. But I am not sure I get how this works. Take the following example: HTML … | |
Hi there, I am in a bit of a situation. I have a few images that I have inserted in my html using javascript. The url of the images are stored as strings in json object notation and to access them in the script I had to have 2 nested … | |
Guys, the power cable of my LG external dvd/cd burner have stopped working. I am trying to find a replacement for it but it seems to be an inpossible task. I need a ACDC input 0.65A max output 2A. Can't find it anywhere, any idea at all? thanks | |
Hi there, I am working on a website at the moment and I am using the firefox console quite a lot. I am in the process of testing a script and I have noticed something really odd, hopefully somebody might be able to tell me whether there is something I … | |
Hi there I have recently bought a usb network adapter (http://www.ebay.com/itm/280891780614?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649#ht_2366wt_1170) . It works fine in linux but in windows 7 I can't connect the laptop to the internet, for some reasons it keeps connecting to, it says, an unknown network and the connection is limited, it won't go on … | |
Hi there, I wonder if you can help me at all. My lappy's network port is broken, I dropped it with the network cable in and as a result it pushed the pin back so that the network cable's connector is really loose when inserted and it won't connect to … | |
Hi all,what size should be the avatar picture, I tried different combinations but it is always skewed. From what I noticed the usual size are 80x80 but the picture is always deformed!? | |
Hi all, I wonder if you can help me again with some more json. I have this json fragment: cars_data={ "haveAlook": { "xmlns:fo": "http://www.w3.org/1999/XSL/Format", "xmlns:inlineData": "Lookup", "CategoryAttributes": { "attOne": "MyattOne", "attTwo": "MyattTwo", "attThree": "MyattThree", "attFour": "MyattFour", "attFive": "MyattFive", "attSix": "MyattSix", "attSeven": "MyattSeven" }, "TheThumbnails": { "thumb1": "first.png", "thumb2": "second.png", "thumb3": … | |
Hi chaps, I wonder if you can help me with this. I have the following script: $(document).ready(function(){ init_get_data(); }); var cars_data; function init_get_data(){ my_data={"data1":{"-xmlns:fo":"http://www.w3.org/1999/XSL/Format","-xmlns:inlineData":"Lookup","TheAttributes":{"-price":"Price","-other_attribute":"other_value"... console.log(my_data.data1.TheAttributes.price); } Being very new to json I am trying to write on the firebug console to check how to get the values out of the … | |
Hi there, I am in a bit of a situation here trying to prevent the browser from following a link within a <a> This is the html code: <a href="#" onclick="changeImage(this,'/folder/images/23.jpg');"> <img src="/folder/images/23_thumb.jpg" alt=""> <span>this is it</span> <h3>This is it</h3> <p class="caption">lorem ipsum...</p> </a> and here's the script: function changeImage(calledFrom, … | |
Hi peeps, I wonder if you can help me. My sis's got an asus notebook F50SL Series which is now unusable, very sluggish and she can't run anything on it anymore. I was wondering if it would be a good idea to format it and install xp on it. At … | |
Some time ago I briefly looked into installing Ubuntu 11.10 (or above) on my dell xps17. I remember there were quite a few issues (sorry can't remember which ones, it was long time ago) and I was wondering if anybody could let me know if I can install it without … | |
Hi peeps, I wonder if you can help me at all undertanding this code. Unfortunately I don't have it live anywhere, it is something I have seen somebody working on Here's the code and I will explain breifly what it does and what's not clear (which needless to say is … | |
HI peeps, I have a general question about scripting. what's the best scripting to learn (I would like to learn one language) and do you have any link to any good resource, not just a tutorial but somewhere I can see what scripting can do (sorry I am really new … |
The End.