66 Archived Topics

Remove Filter
Member Avatar for Phaelax

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 …

Member Avatar for Dani
0
283
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
456
Member Avatar for Phaelax

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; …

Member Avatar for pixelsoul
0
232
Member Avatar for Phaelax

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 | …

Member Avatar for joshmac
0
135
Member Avatar for Phaelax

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 …

Member Avatar for pixelsoul
0
124
Member Avatar for Phaelax

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: <? …

Member Avatar for Atli
0
504
Member Avatar for Phaelax

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 …

Member Avatar for CimmerianX
0
136
Member Avatar for Phaelax

Can't seem to figure this out. [CODE] string *array; void addNodes(string names[]) { array = names; //how many elements in the array??? } [/CODE]

Member Avatar for Diego.Corso
0
27K
Member Avatar for Phaelax

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 …

Member Avatar for rreighe
0
526
Member Avatar for Phaelax

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); …

Member Avatar for villadsen
0
5K
Member Avatar for Phaelax

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?

Member Avatar for Rashakil Fol
0
154
Member Avatar for Phaelax

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 …

Member Avatar for Ezzaral
0
104
Member Avatar for Phaelax

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 …

Member Avatar for jak0b
0
161
Member Avatar for Phaelax

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 …

Member Avatar for masijade
0
471
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
112
Member Avatar for Phaelax

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 …

Member Avatar for MidiMagic
0
135
Member Avatar for Phaelax

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 …

Member Avatar for me655321
0
112
Member Avatar for Phaelax

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 …

Member Avatar for ~s.o.s~
0
137
Member Avatar for Phaelax

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 = …

Member Avatar for Phaelax
0
113
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
138
Member Avatar for Phaelax

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 …

0
182
Member Avatar for Phaelax

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 …

Member Avatar for davidn
0
111
Member Avatar for Phaelax

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 …

Member Avatar for nav33n
0
131
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
125
Member Avatar for Phaelax

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.

0
74
Member Avatar for Phaelax

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 …

Member Avatar for johnsquibb
0
154
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
1K
Member Avatar for Phaelax

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 …

Member Avatar for Chaky
0
100
Member Avatar for Phaelax

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. …

Member Avatar for doonz
0
153
Member Avatar for Phaelax

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 …

Member Avatar for jwenting
0
99
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
128
Member Avatar for Phaelax

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 …

Member Avatar for coolraj003
0
122
Member Avatar for Phaelax

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 …

Member Avatar for Gary Mcguire
0
149
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
113
Member Avatar for Phaelax

[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 …

Member Avatar for DavidRyan
0
98
Member Avatar for Phaelax

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 …

0
80
Member Avatar for Phaelax

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.

Member Avatar for jwenting
0
294
Member Avatar for Phaelax

Anyone know when Sun plans to release 1.6 for Mac? I couldn't find an estimated date anywhere.

Member Avatar for jwenting
0
107
Member Avatar for Phaelax

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.

Member Avatar for Phaelax
0
93
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
107
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
208
Member Avatar for Phaelax

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 …

Member Avatar for Salem
0
145
Member Avatar for Phaelax

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 …

Member Avatar for jwenting
0
189
Member Avatar for Phaelax

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 …

Member Avatar for jwenting
0
282
Member Avatar for Phaelax

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.

Member Avatar for freesoft_2000
0
122
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
97
Member Avatar for Phaelax

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?

Member Avatar for paradox814
0
214
Member Avatar for Phaelax

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 …

Member Avatar for server_crash
0
204
Member Avatar for Phaelax

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.

Member Avatar for Phaelax
0
218
Member Avatar for Phaelax

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 = …

Member Avatar for Phaelax
0
366

The End.