Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 134
Search took 0.04 seconds.
Search: Posts Made By: EdSalamander
Forum: PHP Aug 10th, 2005, 9:43 AM
Replies: 3
Views: 221
Posted By EdSalamander
Try turning output buffering on. That's what all...

Try turning output buffering on. That's what all the "ob_" functions refer to (and they don't work without it). Like this (changes in bold),


$page = $_GET['page'];

function getContents($filename)...
Forum: Coder's Corner Lounge Aug 10th, 2005, 2:35 AM
Replies: 54
Views: 1,170
Posted By EdSalamander
XP/Mandrake 10 dual boot. Can you guess which I...

XP/Mandrake 10 dual boot. Can you guess which I run more often? *sigh* I really must get sit down and get comfortable with linux/GNU. My project list always seems so high, and learning it always...
Forum: Java Aug 9th, 2005, 9:55 PM
Replies: 4
Views: 379
Posted By EdSalamander
Hmm.. not the most efficient algorithm by any...

Hmm.. not the most efficient algorithm by any means. It works, certainly. I'm not trying to rag on Uman, but there are other ways. Most notably, instead of filling the entire array and checking for...
Forum: Java Aug 9th, 2005, 9:06 PM
Replies: 4
Views: 245
Posted By EdSalamander
You could also take the JLabel route. JLabel...

You could also take the JLabel route.

JLabel ball = new JLabel(new ImageIcon("ball.jpg"));
ball.setBounds(xCoord, yCoord, imgWidth, imgHeight);
panel.add(ball);
Forum: Java Aug 9th, 2005, 8:55 PM
Replies: 6
Views: 322
Posted By EdSalamander
What version of the SDK did you use to compile...

What version of the SDK did you use to compile the program? If you used 1.5, then your friend will need to update to the 1.5 Runtime Enviornment to run it (even if you didn't use any of the 1.5...
Forum: Java Aug 9th, 2005, 8:43 PM
Replies: 1
Views: 176
Posted By EdSalamander
Unless you specify otherwise, PrintStreams act as...

Unless you specify otherwise, PrintStreams act as buffers and don't automatically flush their contents. Either add "true" as a second variable in your constructor call to PrintStream to turn on...
Forum: Java Jun 23rd, 2005, 8:46 PM
Replies: 3
Views: 425
Posted By EdSalamander
Ok, so I discovered that it is possible, but it's...

Ok, so I discovered that it is possible, but it's very platform dependent. It involves sending certain strings to the console that tell it to clear. This might...
Forum: Java Jun 23rd, 2005, 8:29 PM
Replies: 3
Views: 425
Posted By EdSalamander
If you mean the console, then I think you're...

If you mean the console, then I think you're outta luck. As far as I know, Java can't do anything more to affect the console than to send it strings via the System.out PrintStream. I'll look into it...
Forum: Coder's Corner Lounge Jun 23rd, 2005, 8:07 PM
Replies: 34
Views: 784
Posted By EdSalamander
Well, the most important thing is whether or not...

Well, the most important thing is whether or not you can prove that he gave you lower marks on any assignments and whatnot that he should have. Instead of try to get him back somehow, I'd try to get...
Forum: Coder's Corner Lounge Jun 23rd, 2005, 5:21 PM
Replies: 1,430
Views: 23,810
Posted By EdSalamander
The new Coldplay CD. That's right, I actually...

The new Coldplay CD.

That's right, I actually went out and bought the actual disc! No borrowing and ripping, no downloading, just a straight up purchase. Freaky, isn't it! :p
Forum: Community Announcements and Feedback Jun 23rd, 2005, 5:19 PM
Replies: 15
Views: 580
Posted By EdSalamander
Speedy, I must say. The messages you had up...

Speedy, I must say. The messages you had up suggested that the site wouldn't be up for a while longer still. I could help noticing that all our avatars have exploded (or imploded perhaps) since the...
Forum: Java Jun 23rd, 2005, 12:05 AM
Replies: 7
Views: 258
Posted By EdSalamander
The set___Size() methods will do it for you...

The set___Size() methods will do it for you too.


public class SizedButtons extends JFrame{

public SizedButtons(){

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

JPanel panel =...
Forum: PHP Jun 22nd, 2005, 10:39 AM
Replies: 14
Views: 384
Posted By EdSalamander
Dia's great. It's what I use to layout my UML...

Dia's great. It's what I use to layout my UML whenever I'm designing a big object-oriented project in Linux. When I'm in Windows (which is most of the time) I use AgroUML...
Forum: Coder's Corner Lounge Jun 22nd, 2005, 10:11 AM
Replies: 14
Views: 399
Posted By EdSalamander
and what's wrong with that? :p

and what's wrong with that? :p
Forum: Coder's Corner Lounge Jun 22nd, 2005, 2:57 AM
Replies: 14
Views: 399
Posted By EdSalamander
Well, the fact that you found only one solution...

Well, the fact that you found only one solution doesn't mean there aren't more. That doesn't mean I don't agree with you though. There's only one solution. It rests mostly on the fact that P must...
Forum: Java Jun 22nd, 2005, 2:08 AM
Replies: 3
Views: 204
Posted By EdSalamander
I did a little digging for you. I've never used...

I did a little digging for you. I've never used this software myself, but I hope it helps.

http://cocoon.apache.org/
XML to HTML HowTo...
Forum: Java Jun 21st, 2005, 6:49 PM
Replies: 7
Views: 375
Posted By EdSalamander
Neither. I'd suggest Eclipse...

Neither. I'd suggest Eclipse (http://www.eclipe.org). It's a very powerful and stable opensource Java editor. Oh, and best of all, it's free.
Forum: Coder's Corner Lounge Jun 21st, 2005, 6:36 PM
Replies: 637
Views: 18,678
Posted By EdSalamander
Cool Aww.. no silly Object Oriented methods yet? Well...

Aww.. no silly Object Oriented methods yet? Well then!

116) Java:



interface NumberShot{
public String myMark();
}
Forum: Coder's Corner Lounge Jun 21st, 2005, 9:54 AM
Replies: 14
Views: 399
Posted By EdSalamander
D=1 G=2 B=3 F=4 Y=5 Z=6 N=7 P=8 J=9 H=0

D=1
G=2
B=3
F=4
Y=5
Z=6
N=7
P=8
J=9
H=0
Forum: HTML / XHTML / CSS Jun 21st, 2005, 1:06 AM
Replies: 10
Views: 383
Posted By EdSalamander
Getting non-inline elements to flow inline is...

Getting non-inline elements to flow inline is easy (ie. putting tables side by side on a page); getting everything else to still look right is the tricky part. You're gonna need to use some css...
Forum: HTML / XHTML / CSS Jun 20th, 2005, 7:55 PM
Replies: 12
Views: 429
Posted By EdSalamander
When I was starting with WebDev, I learned a lot...

When I was starting with WebDev, I learned a lot of the basics from webmonkey.com (http://www.webmonkey.com). It's been years since I've actually used that site though, so I can't vouch for it's...
Forum: Java Jun 20th, 2005, 10:42 AM
Replies: 7
Views: 377
Posted By EdSalamander
The Comparable interface is your friend. All hail...

The Comparable interface is your friend. All hail the Comparable interface.. *insert droning chanting*

;)
Forum: Java Jun 20th, 2005, 10:37 AM
Replies: 3
Views: 265
Posted By EdSalamander
Hmm... From the looks of things your making this...

Hmm... From the looks of things your making this a lot more complicated than it needs to be. For starters, having seperate setDay(), setMonth(), and setYear() methods is unnecessary. Your program...
Forum: Java Jun 18th, 2005, 3:57 PM
Replies: 11
Views: 678
Posted By EdSalamander
Correct, this code only works when "enter" is...

Correct, this code only works when "enter" is pressed. Actually, it doesn't work at all beause readChar() isn't actually defined, but we'll overlook that for a minute. The real problem with trying to...
Forum: Java Jun 17th, 2005, 5:17 PM
Replies: 11
Views: 678
Posted By EdSalamander
It's a bit of a hack, but you could create a...

It's a bit of a hack, but you could create a "ghost" Component that has a KeyListener registered to it. You don't need to actually show this component or even use it for anything else, just have it...
Forum: Java Jun 17th, 2005, 10:50 AM
Replies: 10
Views: 469
Posted By EdSalamander
There's no substitute to writing your own code...

There's no substitute to writing your own code for GUIs. It's tough and awkward at first, and Swing's LayoutManagers are confusing as hell until you've actually worked with them a bit, but like...
Forum: JavaScript and Client-Side Browser Scripting Feb 15th, 2005, 6:27 PM
Replies: 5
Views: 325
Posted By EdSalamander
<script language="JavaScript"...

<script language="JavaScript" type="text/JavaScript">

document.write("Hello Earth!");
alert("Hello Mars!");
document.getElementById('helloDiv').innerHTML = "Hello Pluto!";

</script>

<br>
Forum: Coder's Corner Lounge Feb 15th, 2005, 2:08 PM
Replies: 15
Views: 532
Posted By EdSalamander
Actully, you were the first to get it right...

Actully, you were the first to get it right Kurifu. Sure, some random guy PMed me, but he's never even posted, so he doesn't count. And I wrote both the puzzle and the answer you saw above, soo......
Forum: Coder's Corner Lounge Feb 14th, 2005, 10:37 AM
Replies: 93
Views: 1,580
Posted By EdSalamander
Lex Luthor

Lex Luthor
Forum: Coder's Corner Lounge Feb 14th, 2005, 1:58 AM
Replies: 15
Views: 532
Posted By EdSalamander
My how the creative juices are flowing! Those and...

My how the creative juices are flowing! Those and some thick red juices from the carpenter's head too. Ick! I hate to disappoint Xero, but if you melt the gold, he won't work for you, and if kill...
Forum: Java Feb 13th, 2005, 11:08 PM
Replies: 1
Views: 239
Posted By EdSalamander
Ok, here's a rundown of the fixes you need to...

Ok, here's a rundown of the fixes you need to make:


First, it's easier to paint onto a JPanel than onto a JComponent. Have myShape extend JPanel.
Don't call the paintComponent() from the...
Forum: Java Feb 11th, 2005, 12:19 PM
Replies: 3
Views: 222
Posted By EdSalamander
Tell you what. Give it a try, than ask if you're...

Tell you what. Give it a try, than ask if you're on the right track. We tend to prefer the shot-first-and-ask-questions-later approach 'round here. ;)
Forum: HTML / XHTML / CSS Feb 11th, 2005, 11:08 AM
Replies: 6
Views: 1,072
Posted By EdSalamander
From your examples, it looks like your problem is...

From your examples, it looks like your problem is really more about boundry and layout changes than with font changes. My suggestion would be to let people change font sizes normally, but to setup...
Forum: Coder's Corner Lounge Feb 11th, 2005, 10:42 AM
Replies: 15
Views: 532
Posted By EdSalamander
Dammit Hockeyman! I said don't blab! Now everyone...

Dammit Hockeyman! I said don't blab! Now everyone knows, and no one got a chance to do it themseves! :p

...anyway, you can only cut it twice for the entire week, Ade. ;)
Forum: Coder's Corner Lounge Feb 10th, 2005, 7:23 AM
Replies: 15
Views: 532
Posted By EdSalamander
Talking Paid in Gold

Just for gits and shiggles I thought I'd post a logic puzzle one of my CS section leaders gave us in class today (er I suppose yesterday now..). Don't worry, I'm not trying to get someone to solve it...
Forum: Coder's Corner Lounge Feb 10th, 2005, 6:57 AM
Replies: 10
Views: 354
Posted By EdSalamander
Yeah, if I were you, I'd squeeze my wallet, bite...

Yeah, if I were you, I'd squeeze my wallet, bite the bullet, and go buy some real RAM. I don't think you're gonna get the effect you're looking for by extending virtual memory, especially not for...
Forum: Coder's Corner Lounge Feb 9th, 2005, 11:13 PM
Replies: 1,430
Views: 23,810
Posted By EdSalamander
Radiohead - Sit Down. Stand Up. (Snakes and...

Radiohead - Sit Down. Stand Up. (Snakes and Ladders.)

Yay for mood music.

(..and yay for the begginings of a rebuilt music libarary! Right on, Xero. Good song too.. :))
Forum: Coder's Corner Lounge Feb 9th, 2005, 9:32 PM
Replies: 1,430
Views: 23,810
Posted By EdSalamander
U.N.K.L.E - In A State (Sasha Remix)

U.N.K.L.E - In A State (Sasha Remix)
Forum: Java Feb 9th, 2005, 7:30 PM
Replies: 3
Views: 173
Posted By EdSalamander
The Apple developper's site...

The Apple developper's site maybe?

http://developer.apple.com/java/

I dunno if those downloads are the full thing or just updates. Sometimes when Java says "update" they just mean "better" or...
Forum: Coder's Corner Lounge Feb 9th, 2005, 7:27 PM
Replies: 93
Views: 1,580
Posted By EdSalamander
galore

galore
Showing results 1 to 40 of 134

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:55 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC