66 Archived Topics
Remove Filter I have a fixed header followed by a list with various anchor tags. By default, the anchor will jump to the top of the browser. I need to offset this so it displays below the header. I found a solution online, but became quite annoyed once I found out that … | |
Title pretty much says it all. I want a background image to have a linear gradient fade to transparent. I've faded the image out to a color by overlaying a gradient on top of it, which unfortunately would only help me if my site background is a solid color. (see … | |
Doing a custom file upload button like so: CSS: input[type="file"]::-webkit-file-upload-button{ visibility:hidden;width:0;height:0;} input[type="file"]{font-size:30px !important;background:none !important;} input[type="file"]::before{ content: 'Select an image'; display: inline-block; background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3); border: 1px solid #999; border-radius: 3px; outline: none; white-space: nowrap; -webkit-user-select: none; cursor: pointer; text-shadow: 1px 1px #fff; font-size: 40px; margin:auto auto; text-align:center; line-height:80px; width:624px; … | |
I'm making a kind of address book thingy and seem to have confused myself on the best way of organizing the tables. At the moment, I have two tables, Contact and Number. Here's a basic representation of my tables: ___________ | Contact | |-----------| | cid | | fname | … | |
I have a list of items, each item having two checkboxes; available and purchased. The item can be available without being purchased. But it cannot not be purchased without it being available. Therefore, I want the user to be able to check purchased and have 'available' auto-checked if it isn't … | |
I have a simple contact form for a restaurant that's then emailed when submitted. What are some things I can do to ensure the form isn't abused? Such as a user sending multiple emails over and over, or it being hijacked to send spam elsewhere. Here's the php script: <? … | |
I had a massive folder of about 500GB of data that I was organizing and copying over to my NAS for backup. Upon deleting a subfolder, somehow the entire root directory was deleted. Obviously at that size it was not in the recycle bin (I'm using Win7). I used a … | |
Can't seem to figure this out. [CODE] string *array; void addNodes(string names[]) { array = names; //how many elements in the array??? } [/CODE] | |
My friend has a Gateway FX laptop or something with Vista. The right speaker stopped working (i checked all the balance settings). I've searched around for how to change the output from stereo to mono, but they all say the same thing; set it to mono (laptop output) in the … | |
I thought "JTree. setRootVisible(false)" would hide the root yet display its children, but it doesn't. I've even tried to expand its children but nothing shows when I hide the root. Here's the code if you need to see it. [code=java] DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Root"); JTree projectTree = new JTree(rootNode); … | |
I'm looking for a way to learn RPG as used on the AS400. Is there any software to emulate the machine on Windows or Mac? What tools would I use to program in RPG? | |
I'm writing an inventory program for my uncle's warehouse, which has never been counted in 20 years. (yea it's taking me a week so far and still counting parts) I want the program to be serverless and just run on his laptop (which I'm still fixing also). I thought of … | |
It's an old system of mine I haven't used in a few years. It worked fine when I stuck in the closet, but now it's being weird. Sometimes I could make it into Windows but then it'd crash; BSOD. So I threw it back into the closet for another 6 … | |
I need to make my popup class observable and the main frame class observer. When the user clicks the ok button on the popup, I need the string from the popup's textfield returned to my main program. Main fram class. [CODE] import javax.swing.*; import java.util.*; import java.awt.*; import java.awt.event.*; public … | |
User fills out a web form containing about a dozen or so combo boxes. As each comboBox has its options filled from values contained in a database, this limits what the user can input. However, as we know this can be bypassed, hence the need for validation even on a … | |
Here's the code I'm currently using which works fine in Chrome, Safari, FF, Opera, but not in IE6. (Haven't tested IE7/8) [code] <div style="position:fixed;width:100%;top:0;"> </div> [/code] What I need is for the header of my page to stay at the top, regardless of page scroll. I've been searching the net … | |
Hopefully, I explain this well enough. If I know the width of a container, how could I determine how many line breaks are needed to fit a given string within that space? Given a string of N-length, if it needs to wrap beyond a 3rd line, then I want to … | |
I need a method of rendering HTML in Java. I was originally planning to use [URL="http://www.genuitec.com/about/labs-webkit-for-swt/WebKit%20For%20SWT%20Developer%20Guide.html"]WebKit for SWT[/URL], but I'm having problems with it displaying images as specified in the CSS. Most examples I've seen have worked fine when loading an external html file, even the package mentioned above. My … | |
I've played around with HTMLEditorKit and HTMLDocument, and while I've managed to do the parsing I needed, I also need the complete source code of the document to pass along to a webkit renderer. Java's existing document throws out some tags after I read it in. [code] HTMLEditorKit kit = … | |
I'm using [I]javax.xml.parsers.DocumentBuilderFactory[/I] to load an XML file. The file contains paired elements like so: <A></A> <B></B> <A></A> <B></B> <A></A> <B></B> So if I did the following: [code] Element element = <root node element> NodeList nodeListA = element.getElementsByTagName("A"); NodeList nodeListB = element.getElementsByTagName("B"); [/code] Can I assume the elements are in … | |
Nothing fancy, but I know many new programmers are often confused about recursion. Recursion simply is when a method calls itself. What MyTree does is it adds nodes to the root node, then that root node can be used to create a JTree. The populate() method reads in a list … | |
Most web forums will state next to each board how many threads or posts have been been. Would you calculate that with a query for each board to count the number of "post" entries in the table for that board, or simply increment a number in the board table whenever … | |
I installed php (4 i think) and added the extension to iis. When I try to view a php file through the web browser, I get the following error: [quote] [b]CGI Error[/b] The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did … | |
I need to create table with expandable rows. Each row in the table can be expanded to display a secondary row. While I have managed this in the past for other projects, this problem is slightly unique. For the rows that are always visible, I want them to be only … | |
Nevermind, I'm a retard. I had phpMyAdmin opened to the live server, not the testing server which is still empty. I need a drink. | |
The first thing at the start of every page is "session_start()". Next, each page has the following code. The 'loggedIn' session variable was initialized to 0 with a require_once call of another script. When you log in, the page that did the check will show the login is successful, but … | |
Any direction someone could point me in for auto-sizing only the last (right-most) column in a jtable? I want the user to be able to set the size of columns and be allowed to set them beyond the scrollable viewing area, but if the viewing area is wider than the … | |
Dell Latitude D600, won't see the harddrive. I took the harddrive out and stuck it in a desktop(with a 2.5" adapter) and was able to boot all the way up to XP just fine. Now I am aware that these latitudes are notorious for failing motherboards, but was hoping someone … | |
we use lotus notes here at work, always have. We're merging with another company who uses Outlook and we're converting them to Notes and its not going so well. I was just wonder what everyone's opinion was about lotus notes. To me, it's on the top 10 worst software list. … | |
Which would be the preferred, or more efficient, way to read in a 40mb XML file? I remember reading (awhile ago) there were different methods of parsing XML, some more efficient than others depending on the need. The entire file would eventually need to be loading into an array, so … | |
Given a JTable which presents 30-50k rows, its responsiveness becomes very slow. Is there anything I can do to improve its speed? I don't see why the number of rows would affect it so much. Wouldn't it stop rendering rows once it passes the a point beyond the size of … | |
I installed the public beta of Vista (5728) on one harddrive and later installed Win2k on another. Ever since I installed win2k i haven't been able to boot into vista. Vista isn't listed as a boot option on the boot menu and I've read its because vista doesn't use the … | |
I have a GA-7DPXDW motherboard. One 512mb registered ecc ddr stick, of either samsung or micron. I just bought a 1gb samsung stick and stuck it in. For some reason, adding that stick, the computer is very slow to boot up. Turn it on, and it sits for about a … | |
I'm not sure how to correct for these size difference. This is sort of my first real attempt to not use tables. [U]Borders:[/U] IE: adds border to the inside FF: adds border to the outside (making component display larger) [U]Padding:[/U] IE: adds padding inside the component. (component width of 10 … | |
[code=java] public static final String SEPARATOR = System.getProperty("file.separator"); String code = "test.foo.bar"; String fix = code.replaceAll("\\.", SEPARATOR); [/code] I'm keep getting a StringIndexOutOfBoundsException. If I replace SEPARATOR with "[URL="http://www.daniweb.com/techtalkforums/"]\\\\[/URL]" then it'll work as I want. Is there a safe way to replace the periods with the file separator associated with … | |
For awhile now, I've been using Mac to code java. Though my programs compile and run fine, I always get these errors. Using the same project to compile on windows with the same IDE(netbeans), I dont get them. I was hoping someone would be able to shed some light on … | |
Is there a limit to how deep you can go with inner classes? Like having a class within a class, within a class, within a class, etc.... I'm just curious. | |
Anyone know when Sun plans to release 1.6 for Mac? I couldn't find an estimated date anywhere. | |
How can I use this in Java? I don't need to run a server, just call some functions from an existing one. I haven't found much "useful" documentation on this. | |
Got a friends Dell Inspiron 4000 laptop. p3 700mhz 256mb ram Win XP Before windows can even load, it displays the following: The amount of system memory has changed. F1 to continue or F2 for setup Windows loads just fine passed that point. (as well as can be expected on … | |
Wasn't sure where to post this at, so I stuck it here. Anyone know how to prevent AIM from taking focus when a new message pops up? It's quite annoying when you're typing in one window, then suddenly typing in a new window. Or having a full screen application minimized … | |
I'm doing an english paper, an internal proposal memo. I chose a fake company and their problem is use of remote monitoring software which bogs down a system beyond use when its active due to the software doing complete screen dumps for the monitoring. My proposed solution is to rewrite … | |
This is a question from a mid-term I had awhile ago. I just want to hear what you guys think the answer is, because I just can't agree with the teacher on this. A(n) ____ is a listener interface that listens for any events that occur during the execution of … | |
Title says it all. I've tried getting different system properties with no luck. Not sure if "java.compiler" is the right one or not, but it always returns null for me. The others I've tried are: "java.home" "java.library.path" "java.class.path" java.home gives me: c:\java\j2sdk1.4.2_05\jre But javac is in c:\java\j2sdk1.4.2_05\bin I don't want … | |
I'm writing an IDE for java and already got the compiler linked into it, but I can't figure out how to read the data on the System.err or System.out streams. | |
I'm trying to find all quoted strings in a given text so that I can apply proper highlighting. I've tried various regex but can't seem to get the results I want. [code] String line = "a big \"yellow\" dog! And a \"purple\" bird!"; String[] tokens = line.split("\".+\""); [/code] That cuts … | |
After a form is completed its submitted to another page to process the form. Once that's done, it forwards back to where visitor was. I want to display a message to the visitor first before moving to the next page, so how can I delay the page forwarding? | |
I'm using a JEditorPane and StyledDocument, which automatically wraps text to the window. I cannot have this, I need the window to allow horizontal scrolling of the text. I've been all over yahoo and google and cannot find an answer on how to disable word wrapping. And before anyone tells … | |
Is there a way to set the number of spaces shown for a tab? (tab as in a tab character) I've made an editor using a StyledEditorKit and StyledDocument, but tabs give more spaces than I would prefer. | |
The probably isn't the parsing actually, I can't even get to that part yet. The webpage uses a different character set, "windows-1252". But even after setting the reader to use that charset (which exists in the system), I still get the ChangedCharSetException. [code] String link = "myurl.com"; URL url = … |
The End.