- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 28
- Posts with Upvotes
- 25
- Upvoting Members
- 24
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
754 Posted Topics
Re: I used Norton (corporate without the bloatware) for a long time until they were very slow to come out with a 64bit version many years ago. I have since been using Avira, which has some of the best overall scores in testing. I always see AVG mentioned a lot as … | |
Re: Keep in mind that outlook will lock the pst file, so your java program won't be able to access it at the same time if you have outlook running. This link appears to give a good description of the file's format. [URL]http://www.five-ten-sg.com/libpst/rn01re04.html[/URL] Upon further reading, those files can be up … | |
Re: Either my iTunes clone in Java, or my RTS game in a non-OOP language. Neither are finished yet. | |
Re: I looked up PPS on wiki to see how it is calculated. Once the proper number is calculated, you can simply cast it to a char to match it up with an ASCII table. Random r = new Random(); StringBuilder sb = new StringBuilder(8); int x = 0; for(int i=0;i<7;i++){ … | |
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 … | |
Re: Or, you could simply check if the character is upper case. [code] public static void main() { String s = "This has Three Upper case characters"; int caps = 0; for (int i=0; i<s.length(); i++) { if (Character.isUpperCase(s.charAt(i))) caps++; } System.out.println(caps); } [/code] | |
Re: I don't know what a csv file is or what the structure is, but if its just a text a file with numbers like that, it's quite simple. The only thing to be careful about in this code is that it assumes there won't be more than 24 elements, or … | |
Re: I strongly back up what diafol has said. Right now you're vulnerable to injection attacks. Many folks think that because they can't see POST data that it can't be tampered with, but it's rather simple to not only view it but alter it as well. Look into using **filter_var** ![]() | |
Re: Well for one thing, your second SELECT is missing the opening tag around the options. I'm not exactly sure what you're asking. If you're wanting to just change the default selected option, just add the *selected* attribute to the option tag. | |
Re: Does it throw any errors when you compile? Or simply doesn't display? | |
Re: PHP can do what you want, as long as you don't mind refreshing the page to calculate the answer. Most would say that's a deal breaker, so use javascript as the others have suggested. You can still use PHP, however, to build the initial form if you have a lot … | |
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 … | |
Re: > Right there is your problem. Naming conventions Just to add to what fredy is talking about, every language tends to have a standard way of naming things, whether official or not. Makes it much easier looking at other people's code. http://www.oracle.com/technetwork/java/codeconventions-135099.html http://java.about.com/od/javasyntax/a/nameconventions.htm | |
Re: This isn't a place for people to do your homework for you. Try it yourself, then if having trouble ask a specific question. | |
Re: I'd put those strings into an array, more efficient doing a simple array lookup than a bunch of IF statements. `echo do_shortcode(codes[get_the_ID()]);` My guess is that you're getting that banner because the ID function is returning 78. Unless you have an error somewhere in your do_shortcode function. | |
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; … | |
Re: Where's your code for sending the email? Do you have an email server setup yet? Generating a 6 digit pin is as simple as: `$pin = rand(100000,999999);` Store the pin and associated user id into a table. When the user enters the pin, check it with the table that the … | |
Re: I played around with it for awhile, and I just don't see a way of doing this with pure CSS. You're going to need javascript to change those LI tags when checkboxes are clicked. Unless CSS has some kind of conditional code I'm not aware of. Something like:` [if (#select_type_1:checked)] … | |
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 | … | |
Re: You could set the ImageIcon. ImageIcon icon = new ImageIcon("image.png"); JButton button = new JButton(icon); | |
![]() | Re: My current monitor is LED because it's more efficient and also mainly because that's what all monitors seem to be these days. My old westinghouse started to fail, it was not LED, and I had to buy a new one. Despite the fact that my new 24" Asus ProArt is … |
Re: Which graphics card is best? Usually the newest one. What's typically the best one for most average gamers? The one we can afford. | |
Re: Looks like the Nimbus look n feel. To change the look and feel, read here: https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/index.html | |
Re: Hijran, you can't send the redirect header when you've already outputted text to the page. And create a new thread next time instead of hijacking someone elses. Jason, I'm uncertain what you're having trouble with. Store the image path as a string in the database. Are you having trouble getting … ![]() | |
Re: Sounds like someone is trying to get answers for their homework because they were too lazy to pay attention in class. | |
Re: var checkBox = document.getElementById(boxID); checkBoxValue = checkBox.value; | |
Re: Sorry piyali, I only understand English grammar. Since nobody is aware of Google, I decided to be a nice guy and find some resources for all of you. [url]http://java.sun.com/developer/onlineTraining/Programming/BasicJava2/socket.html[/url] [url]http://java.sun.com/docs/books/tutorial/networking/sockets/index.html[/url] [url]http://www.cise.ufl.edu/~amyles/tcpchat/[/url] [url]http://www.javaworld.com/javaworld/jw-12-1996/jw-12-sockets.html[/url] Once you know how to use the socket classes and understand the functionality of an instant messenger program, … | |
Re: I think he means this: [code] stupid formatting basically, the other side of the tree (flip his image around) [/code] Sounds like a homework problem to me. | |
Re: What is wrong with you? You brought back a 4 year old thread and hijacked it. Do a search on the forum, hundreds of kids have asked for project ideas already. Develop a front-end interface for an e-commerce site. | |
Re: Sounds tricky, but here's my first thought. Add a listener to the combo boxes. When a value is selected from one of them, retrieve a list of the other combo boxes from that row. A custom table model can help with that. You don't need to create a new JComboBox, … | |
Re: > I've managed to display all the deatiles of the person i the JList , but I only want the id and name to display The concept is the same, you override the toString() method for your JList. You've already changed what gets displayed in it, so I'm not sure … | |
Re: BlueJ? Are schools seriously still using that? | |
Re: For reference, this will help you learn about layout betters: http://docs.oracle.com/javase/tutorial/uiswing/layout/index.html | |
Re: **st** is a linked list, not a string. Anytime you output an object like that it's going to use its default toString() method. You can either extend the LinkedList class and override the toString() method to keep the output implementation separate from your existing program, or simply write a new … | |
Re: You'll need to use JEditorPane, that can support RTF formatting. But as far as I'm aware, it doesn't support tables. You'd have to write your own custom editor/renderer. Or you can simply google for a solution: http://java-sl.com/advanced_rtf_editor_kit.html | |
Re: first of all, you don't need STEP, because the default step value is always 1. Secondly, A FOR statement is looking for an integer. CHR$() returns a character, which is not a number. Leave the CHR$() out of the FOR header. Look at the example below. [code] FOR outer = … | |
Re: What will this application be using for its source of authentication? Does it access network resources which require LDAP authentication? | |
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 … | |
Re: This will show/hide the textboxes when clicking the checkboxes. (seems to have an issue with IE though) <head> <style type="text/css"> .tb_hide{display:none;} </style> <script type="text/javascript"> function myfunction(id){ e = document.getElementById(id); tb = document.getElementById(id+"_tb"); if(e.checked){ tb.style.display = "inline"; }else{ tb.style.display = "none"; } } </script> </head> <html> <body> <form> <input type="checkbox" onchange="myfunction('gas_cb')" … | |
Re: Even web designers are expected to know at least a little html/css. Not learning it you'd only be hurting yourself. And wysiwyg editors tend to make awful looking code and inefficient. HTML isn't that hard to learn. | |
Re: Not sure what you're trying to do exactly. Chrome's tabs show the page's url. | |
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: <? … | |
Re: [code] HashMap freqMap = new HashMap(); //FOR loop through chars goes here if (freqMap.containsKey(character)) freqMap.put(character, freqMap.get(character)+1); else freqMap.put(character, 1); [/code] Don't expect that code to work with a copy n paste job, you'll still need to do some casting and boxing. You can even condense that 4-line IF statement into … | |
Re: I know this thread is 4 months old, but I wanted to chime in anyway. To backup 800GB of data to discs is going to take a fair bit of time. Not to mention the headache when you want to go back and find a particular file, how will you … | |
Re: Yes we need more information. Does the drive show up in BIOS? If not, try different cables (both ide/sata AND power). Also try connecting the drive to a different connector on the motherboard, one on a separate controller if possible. If that doesn't work, attach it to another computer if … | |
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 … | |
Re: This doesn't have anything to do with game development. Try godaddy.com, I've been with them for awhile and you should have everything you need within 24 hours. The domain nearly instantly, but the name servers take time to update. Speaking of, I have to switch mine over to the new … | |
Re: This might help, but relies on PHP 5.3 or newer. http://pastebin.com/bwb5VKpe ![]() | |
Re: Because you're creating a new Sound whenever the user clicks play. Create the sound first, outside of the function. |
The End.