Search Results

Showing results 1 to 34 of 34
Search took 0.01 seconds.
Search: Posts Made By: brianlevine
Forum: Java Nov 13th, 2008
Replies: 10
Views: 1,042
Posted By brianlevine
Here's a bit to get you started.

SavingsAccount should extend Account
CheckingAccount should extend Account
SpecialCheckingAccount should extent CheckingAccount

implement Account first, then...
Forum: Show Off your Projects Nov 13th, 2008
Replies: 2
Views: 1,008
Posted By brianlevine
Out of curiosity, what's the advantage to the people who sign up? I get why marketers/advertisers would sign up. But why would users? I mean, most people I know don't want to be marketed to.

Not...
Forum: Java Nov 12th, 2008
Replies: 15
Views: 872
Posted By brianlevine
There's got to be some good libraries/tools out there that do the charting part of this. Then all you'd need to do is parse the text file and pull out the information you want to chart, and feed it...
Forum: Show Off your Projects Nov 12th, 2008
Replies: 1
Views: 719
Posted By brianlevine
Hey all!

Please check out my new site. It's been live for a couple of months now. I read music reviews for all the new albums and summarize the reviews Yes, it's quite a glamorous life, haha. ...
Forum: Java Oct 24th, 2008
Replies: 1
Views: 422
Posted By brianlevine
It's been a while since I used java random number generator, so hopefully someone will correct me if I'm wrong, but I believe if you use the same seed for the Random number generator you'll get the...
Forum: Java Oct 22nd, 2008
Replies: 7
Views: 542
Posted By brianlevine
Are you using stacks to keep track of how deep into a compound expression your in?

Post up some code and I'll take a look...
Forum: Java Oct 22nd, 2008
Replies: 12
Views: 1,687
Posted By brianlevine
Null pointer exceptions are unchecked (the documentation will never say that a method can throw it). So it could be thrown from one of the methods you call.

Can you add ex.printStackTrace() to...
Forum: Java Oct 21st, 2008
Replies: 7
Views: 542
Posted By brianlevine
Kermit, here's a bit to get you started. First there are two kinds of operators unary and binary. Unary just means it effects a single expression and binary means it works on two.

So ¬ is unary...
Forum: Java Oct 20th, 2008
Replies: 7
Views: 542
Posted By brianlevine
What problems are you running into? It sounds to me like some kind of recursion is the way to go. What's not working?
Forum: Java Oct 20th, 2008
Replies: 11
Views: 3,758
Posted By brianlevine
Hi, sorry for the delay in responding...

And actually sorry, but I don't know how to help. The fact that you can run cat and grep really is weird. The only thing I can think of is running find...
Forum: Java Oct 20th, 2008
Replies: 1
Views: 334
Posted By brianlevine
Sounds like you need a web crawler. There are probably a lot out there that fit your needs. I'd look into one of those to find the URLs you need to count keywords in. You should look into the...
Forum: Java Oct 16th, 2008
Replies: 11
Views: 3,758
Posted By brianlevine
can you post the exact error message you're getting from cygwin?
Forum: Java Oct 16th, 2008
Replies: 1
Views: 1,643
Posted By brianlevine
Are you familiar with recursion? It would probably simplify things for you. And it's a good thing to learn about.

But, for what you have now, your running into trouble because the "level"...
Forum: Java Oct 16th, 2008
Replies: 7
Views: 3,195
Posted By brianlevine
Regular Expressions are a great tool, but probably overkill in this case. You can iterate character by character and use methods in the Character class to see if the current character is a letter,...
Forum: Java Oct 16th, 2008
Replies: 10
Views: 1,084
Posted By brianlevine
Whoops, I didn't see your post, before I posted mine. Looks like you got it right.
Forum: Java Oct 16th, 2008
Replies: 10
Views: 1,084
Posted By brianlevine
is your classpath set correctly?
Forum: Java Oct 15th, 2008
Replies: 11
Views: 3,758
Posted By brianlevine
Did you look at page 4? From the article:
The incorrect assumption here is that the exec() method acts like a shell interpreter; it does not. Instead, exec() executes a single executable (a program...
Forum: Java Oct 15th, 2008
Replies: 11
Views: 3,758
Posted By brianlevine
That runtime.exec stuff is a real pain to use with a lot of traps. Here's a great article that's helped me out a lot:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

It's a long...
Forum: Java Oct 14th, 2008
Replies: 1
Views: 337
Posted By brianlevine
Does it have to be recursive?

Since it works on smaller polygons it sounds like the function is getting called too many times and you're running out of heap space.

Depending on your needs the...
Forum: Java Oct 14th, 2008
Replies: 1
Views: 2,186
Posted By brianlevine
Assuming you only allow a single selection in the JTree you can use: JTree.getSelectionPath.

It returns a TreePath which basically holds a list of the hierarchy that is selected. Then you can...
Forum: Java Oct 14th, 2008
Replies: 2
Views: 353
Posted By brianlevine
Yeah, it's a little hard to tell without seeing more, but I like talking out of my ass so...

Saying the "upper bound" is just a fancy way of saying "how many lines of code". But in a more general...
Forum: MySQL Oct 14th, 2008
Replies: 4
Views: 1,333
Posted By brianlevine
Also, it's probably more important that the underlying mysql servers are the same version than the phpadmin version. But yeah, what priteas said.
Forum: IT Professionals' Lounge Oct 14th, 2008
Replies: 9
Views: 1,296
Posted By brianlevine
I personally use linux, because that's what's hosting my site, but it's certainly not mandatory. It may make some things easier, but probably not :)

I think the main thing to remember is that...
Forum: Java Oct 14th, 2008
Replies: 2
Views: 426
Posted By brianlevine
You should look into the WindowAdapter class. It has a windowClosed method that you can override to keep track of when a window is closing.

You'll need to subclass WindowApater and then add...
Forum: Java Oct 14th, 2008
Replies: 3
Views: 3,460
Posted By brianlevine
in showAllSeats, I'd change
fn == "1294"
to
fn.equals ("1294")

the double equals checks for object equality (i.e. the same object in memory)
.equals() checks to see if it's the same string
Forum: Growing an Online Community Oct 14th, 2008
Replies: 3
Views: 941
Posted By brianlevine
Yeah, I agree with you that a lot of search implementations tend to be too literal.

Lucene is very nice in that respect. If you have a domain specific site, you can plug in your own aliases for...
Forum: Website Reviews Oct 14th, 2008
Replies: 3
Views: 640
Posted By brianlevine
Very nice! One small comment is that I'd make the main part of the home page fixed width. When viewed on a widescreen monitor, the stop/play/pause control and the concerts and albums box moves...
Forum: Website Reviews Oct 14th, 2008
Replies: 3
Views: 663
Posted By brianlevine
I like it! You've got the most important thing right up front -- the photos turned into paintings/drawings/etc. Nice testimonials and how it works. Very clear and inviting.

One nitpick, the...
Forum: Website Reviews Oct 14th, 2008
Replies: 5
Views: 954
Posted By brianlevine
I think you could also do more on the home page to welcome new people and set expectations about what the site is going to do for them.

Good luck!
/Brian
Forum: Growing an Online Community Oct 14th, 2008
Replies: 3
Views: 941
Posted By brianlevine
I've been developing a custom search for my site using lucene. I've found lucene fast and very flexible. I have a small site so the flexibility is more important to me than the speed.

I messed...
Forum: Java Oct 14th, 2008
Replies: 4
Views: 721
Posted By brianlevine
The screenshot shows prefuse.demos.TreeMap.jar

Maybe that's causing the problem...
Forum: Java Oct 13th, 2008
Replies: 4
Views: 721
Posted By brianlevine
I have to admit I'm not familiar with prefuse. But when I run jars from the command line I use >java -jar <jar name>
Forum: Java Oct 13th, 2008
Replies: 2
Views: 657
Posted By brianlevine
Scanner implements the Iterator interface. So you have to use next() to go to the next element somewhere inside your while loops.

In other words the scanner is checking to see if there are more...
Forum: Promotion and Marketing Plans Oct 13th, 2008
Replies: 13
Views: 4,560
Posted By brianlevine
It may not help with page rank and stuff like that, but they can be useful by sending traffic your way from people who browse the directories. But I agree with earlier posters that it's not so...
Showing results 1 to 34 of 34

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC