75 Discussion / Question Topics
Remove Filter I have html similar to this [CODE]<span><a href="link"><img.. /></a></span>[/CODE]. In IE and Firefox, when the image is clicked, it highlights a box around the image. From that point on the box remains around the image. I don't want any highlighting effects whatsoever. How can I use css or an inline … | |
Apologies if you already know about this/it isn't a problem for other people, but the banner at the top consistently covers up the Software Development drop down for me. Just letting someone know. Thanks :) | |
Anybody here a fan of Chuck? I'm a pretty big fan - behind at the moment, but I've seen every episode except the last two. Giving our geeky hero superpowers was a risky move on the show's part, but it is still entertaining so far. I also liked his third … | |
Oracle Certified Professional Java Programmer was formerly known as the Sun Certified Java Programmer certification. Does anyone know if the switch to Oracle has changed anything significantly, such as the questions that will be on the test? Or is it the same cert with a new name? The reason I … | |
Hi everyone, I'm in a situation where I would like to have a ServerSocket that listens on a specific port. However, if this port is already taken, I would like to listen on a different port. How can I advertise what port my Java program is listening on, so that … | |
[CODE] Integer i = 5; Integer j = 5; if (i == j) System.out.println("true"); [/CODE] ^ Prints true [CODE] Integer i = new Integer(5); Integer j = new Integer(5); if (i == j) System.out.println("true"); [/CODE] ^ Does not print true. I understand that in the second case, the == is … | |
I read on various articles on google that a 'cron job' is used to schedule a task to run periodically on a server. I'm in a situation where I need to schedule a script to run nightly. The script would probably be written in php and update a MySQL database. … | |
Problem: when the user prints the JTextArea, the text at the right-hand side of the "paper" is cut off, despite the fact that it is visible on the screen. Question: How can this be solved? I've tried two ways of printing the text area, and neither has worked as I'd … | |
It seems like the Hardware forums do not have buttons to start a new thread? | |
[url]http://www.rollingstone.com/politics/story/29127316/the_great_american_bubble_machine/[/url] An interesting article, no matter what you make of it. I would have comments but I'm not in the know about many of the issues that were described in the article, so I'll refrain for now. It is a long article though, so if you want to read it, … | |
My friend is building something (in fact, he already built it) that requires an embedded device. The requirements are that it be as cheap as possible and be able to run a GUI that allows the user to select a drink or create a drink and have a little bit … | |
I was always brought up that 15% tip was a standard rate. So it was surprising when my mom argued with me today that it is now considered rude to tip 15% and that 20% is now the standard tip. This is after I expressed surprise at her tipping over … | |
I think Dani has made up her mind on the quotes (since she had said as much) but I just wanted to bring up one more point. I just searched on google and was brought to [URL="http://www.daniweb.com/forums/thread86156.html"]this thread[/URL] .. do you see the issue here? All of the old posts … | |
On the old layout, the Mark as Solved button was easy to find and new members, and even some with nearly 200 posts, still rarely used it. Now it is, IMO, much too small. I knew the button would be somewhere and it still took me awhile to find. New … | |
I was going to post this in the linux/unix board, but there is no 'start new thread' button. Why is that? Anyway, I'm going through a ton of steps to apply a patch file. Everything in the patch file seems to apply seamlessly, with one exception. My patch file is … | |
How can I create a semaphore using the above functions that will allow [I]any[/I] process access to the semaphore? I've been playing around with global variables for hours thinking I was doing it wrong, but now I believe I was misled. I think the problem is that the other processes … | |
[CODE] wait(mutex); ... body of function ... if (next_count > 0) signal(next); else signal(mutex); [/CODE] I think I understand how semaphores work so I understand the wait(mutex) and signal(mutex) operations but despite a couple hours of reading different materials I don't understand the next_count or the signal(next). From my book: … | |
My sister has a windows vista machine and I have a windows 7. I want to connect remotely to her machine because she has a viruses, and I helped her track it to 'ave.exe' which is some trojan that edits registry values, starts itself when you start another process, won't … | |
I'm trying to write my own system calls. I have a .c file where I'm putting the system calls. My system calls use a struct, so I have declared a global variable that is an array of my struct. Lets just call it [CODE] //Stuff is the name of the … | |
(NYC) This weekend. I don't know what I'm going to be doing there yet, though. But it should be fun! If anyone has any non-touristy suggestions, they would be welcome. | |
[url]http://theoatmeal.com/comics/computers[/url] I found that pretty funny, as well as the oatmeal's comic about printers. It might be old news to some of you but I don't frequent the site so I tend to forget it exists until a friend shows me a link. | |
What I've learned so far: An OS may trigger a software interrupt by executing a system call. According to what I read online, this is implemented via special instructions such as INT that the CPU can execute. I also understand how interrupts get handled by the interrupt service routine. My … | |
My book says that interrupt chaining is a "compromise between the overhead of a huge interrupt table and the inefficiency of dispatching to a single interrupt handler." I understand how the interrupt vector table works & why dispatching to a single interrupt handler is worse than choosing from an array. … | |
Are different in different places. I'm not sure if this is considered a problem or if Dani is aware, so just letting you know. | |
I'm wondering where to find what values system() accepts. For example, I want to list the server's OS type. I already did man system, did not find it very useful. And google is returning a lot but nothing relevant. | |
Hey guys, simple question that I don't see anything on in the String.h library and I can't remember from my C class 3 years ago. I have the following declaration: char something[100] = "whatever"; And later in the program I call strncpy. After calling strncpy, at some later point I … | |
If I was using @$ as my flag pattern (to signal the end of the data) what would I do if @$ was seen in the data? I would just stuff another @$ right after it in the sender and in the receiver, if I saw two consecutive @$ I … | |
Actually, at the risk of sounding whiny, I retract my statement. But I still believe that new members misuse the down vote system to "spite vote" | |
Is it true that code tags now "know" what forum they're in? Because I was only posting one line of code so I didn't use the =Java tag in the Java forum, yet it got posted with the Java code tags instead of the regular code tags. If that is … | |
After compiling the code found [URL="http://beej.us/guide/bgnet/output/html/multipage/clientserver.html#simpleclient"]here[/URL], I immediately got a number of errors. (Unfortunately, Beej is the starting point my instructor suggested to implement our FTP client's "minimal" commands, but that's another story). Anyway, I got rid of a few of them, then ran into this: [CODE]client.c:32 - error: storage … | |
It took me very little effort to put a JComboBox in a JTable so that when the cells in a certain column are clicked, it lets the user choose from a drop down list of items. However, my program requires that the underlying combo box can change, since the list … | |
Hey guys, I bought a new computer with 4 gigs of ram, 64 bit windows vista OS, dual core 2.4 ghz processor. . and I'm having some problems with it. Firefox frequently seems to mess up. Sometimes it won't stop loading a page when I click 'X', it will become … | |
The important code: [CODE] Browser browser = new Browser(shell, SWT.NONE); URL url = this.getClass().getResource("/example.html"); browser.setUrl(url.toString()); shell.open(); [/CODE] P.S. I've carefully considered what Masijade and others told me in the other thread; the example.html file is located in multiple locations, including in the same directory as the .class file. . I … | |
edit: I see a lot of other threads on Daniweb on this. But after 2+ hours of reading about Sound in Java, I'm even more frustrated, so I have some questions. 1. Is the Java Sound API sufficient for the following operations: Playing mp3 audio files, pausing, and fast forward/rewinding … | |
[CODE=Java]URL myurl = this.getClass().getResource("/SummaryReport.rptdesign"); File file = new File(myurl.getFile()); System.out.println("Name=" + file.getAbsolutePath()); [/CODE] The above code seems to get the resource. But I guess I am going about creating a file connected to that resource wrong? Because I cannot subsequently open a FileReader connected to that file. . I am … | |
After a little research I discovered some Calendar methods that were pretty nice. [CODE=Java]Date date = new Date(); int daysSinceSeen = - ( rand.nextInt() % 365 ); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.add(Calendar.DATE, daysSinceSeen);[/CODE] How could this code be returning a date in 2010? Do I have a bug that … | |
What would be the best way to implement dynamic search? So, for example, given the words: the, then, behemoth, abchemto Typing in 'he' would return all of the above words since they all have he in them. Is the best way to do this using a Trie? | |
Ezzaral & James -- I remember (and found) a thread from a while back where you guys gave me an example of an Observer pattern. Basically a model had a List of interested Listeners. When the model changed, it went through a for loop, notifying each listener (the views) that … | |
In one View, I have text boxes and buttons. In the other View, I have a Pie Graph that I created using JFreeChart. When the button is clicked, I want the Pie Graph to be refreshed, displaying the new percentages (based on what the user entered in the text boxes). … | |
Ok, as I mentioned to Ezzaral, I'm working on learning Eclipse RCP but it is pretty hard to find good resources. I've found one good resource but it was written in 2006 and I'm really looking for some up to date online tutorials or resources using Eclipse Ganymede. Does anyone … | |
from Java Sun's JavaBeans tutorial: "The accessor methods for a bound property are defined in the same way as those for simple properties. However, you also need to provide the event listener registration methods forPropertyChangeListener classes and fire a PropertyChangeEvent (in the API reference documentation) event to the PropertyChangeListener objects … | |
Hi, I'm a fairly good Java programmer, but I have basically no web development experience. I'm posting in the html forum because I know it is the most basic, but I'm sure there are other necessary tools to accomplish this task, please let me know what they are. I want … ![]() | |
Is using (in the paint method) g.clearRect() the correct way to clear the screen? It's working but I don't know if there is a better way. . google says it is supposed to clear automatically when update is called but that doesn't seem to happen. | |
I have a list of teams, it can be any length. Now, for each team, I want to create a 2D box that says the team's name in the box. And I want to match these teams up against each other. So basically I want to be able to drag … | |
I'm using netbeans and I have a problem. I'm using a card layout to flip between multiple windows. Two of these windows are wider than the others, and this cannot really be helped. Ideally, it would be best to design each window so that they are all the same size, … | |
How can I check if an event is user generated? When the user clicks on a combo box and changes the displayed/selected content, I want the code in the itemStateChanged method to be executed. But I only want this code to be executed if the method call was due to … | |
[CODE=Java]java.util.Vector<EmergencyContacts.ContactInfo> contacts = Application.getPatient().readEmergencyContacts().readContactInfos(); for (int i = 0; i < contacts.size(); i++){ EmergencyContacts.ContactInfo info = contacts.get(i); } public Vector<ContactInfo> readContactInfos(){ return contacts; } private Vector<ContactInfo> contacts = new Vector<ContactInfo>(); [/CODE] As you can see, it returns a Vector of ContactInfo. Why would I be getting an error saying, "Exception … | |
Question directed at JamesCherill specifically, (and anyone else who can answer it) I've never had [I]too[/I] much trouble with communicating between the model and the view, in an application that only has a model and a view. However, looking at the observer pattern (at the bottom) of this [URL="http://leepoint.net/notes-java/GUI/structure/ui-model-communication.html"]link[/URL], I … | |
I'm using the same file menu with the same menu items in multiple places. As such, they should have the same actionListeners etc since the same windows should open when they are clicked. How do I get netbeans to automatically do this (make them all use the same events and … | |
I have a JTabbedPane inside a JFrame. I've been having a lot of problems with resizing and things like that. . how do I get the JTabbledPane to resize with the JFrame? So when the user drags the window open to a larger size, the JTabbedPane should be dragged to … |
The End.