Tarek Khojah

Ranch Hand
+ Follow
since Jul 21, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tarek Khojah

I'm not asking for which is better, just wondering why Groovy isn't mentioned/discussed as much as the other two languages when it comes to scripting.
14 years ago
I know there can't be an "ultimate" source, but I just thought there might be something similar to freshmeat, only for Java packages!

Anyhoo, the link you gave me looks great, and now it's bookmarked
14 years ago
By non-standard, I mean not part of the JDK.

Is there one place to browse through all available "open source" packages? Instead of writing my own stuff from scratch just to find out someone else has it coded already.

Of course I tried searching google, but didn't find anything.
14 years ago
By non-standard, I mean not part of the JDK.

Is there one place to browse through all available "open source" packages? Instead of writing my own stuff from scratch just to find out someone else has it coded already.

Of course I tried searching google, but didn't find anything.
14 years ago

In my view, people only procastinate on things they do not enjoy doing or do not have drive or passion to do it



That's quiet a statement to make. And I can assure you, it couldn't be farther from the truth. I'm not talking about personal experience, I'm talking about procrastination as a psychological field of study.
14 years ago
You mean, each pane will represent a connection with a client, correct?
14 years ago
Well, I didn't create this thread in the forum because it's not specifically about landing a job (even if my topic title indicates otherwise ).

I mean, forget a job is even involved, if you were to set a checklist for yourself, what would it look like? Languages don't really matter, it's the areas you can handle (sound programming, network programming, databases, etc) and how proficiently.

In other words, I'm looking for a technical checklist!

Unfortunately, I find myself very weak in the area of OS's, compiler design and algorithms and all that half theory / half practice, I just seem to forget this stuff because I never really use it!

I'm a geek at heart, so of course I love what I'm doing Again, the reason I'm having this problem right now is because I was a terrible procrastinator, if there was anything such as "clinical procrastination", then I guess I had it.
14 years ago
I've read this and the other topic concerning threads.

I'm not quiet sure I understand what you're trying to do? How do you want multiple instance to run in the same window?

By "multiple instances", do you mean serve more than one client?

In any case, any server (that I can think of) needs to be multi-threaded.

If you're not comfortable with threads, start with something simple, here's the general idea:

http://en.wikipedia.org/wiki/Thread_pool_pattern

Explicitly create the threads and the data structure (the "queue") and handle the whole thing with .wait() and .notify()

I haven't used executors myself, but they're also something you might want to look into using.
14 years ago
I know this a very vague and broad question. And it would appear that I am waiting for some "magical solution", but I'm genuinely asking for help that I will try and follow through.

I made my way through college not really caring about actually learning or expanding my knowledge on my own. I have good grades (due to our crappy educational system), but really none of the know-how.

I had a really severe "case" of procrastination that I only got over less than a year ago, and guess what? I already graduated, so you can see I'm in somewhat of a pickle here ^_^

Now I kind of need to catch up, I only know one programming language (Java) and I don't even know it well, my skill set is VERY limited when it comes to computer science or other similar fields.

I just don't know what to do from here, the possibilities are endless, what I'm asking for is some sort of basic "checklist" of things to follow through. Assume I know absolutely nothing, give me some direction please.

Also, there's something that's been bothering me for a while.

If I don't encounter something for a while, I forget it.

Now I know that's normal, but how come you guys know all the nitty-gritty stuff that I haven't encountered since my intro level courses? I forget the difference between the different sorting algorithms, or the memory management algorithms, but you guys seem to pull it instantaneously. Is that because you keep encountering it? Or do I just have bad memory?

Please help out with any suggestions or thoughts, I'm kinda at a cross-roads in my life right now, trying to make up for the time I wasted doing nothing.
14 years ago
No silly questions, I'm quiet the beginner myself.

If there's still any confusion, getByName() works for both IP addresses and host names (or, err, domain names o machine names, not down with the lingo myself).

It's always best to have the API docs handy. So if you don't already have them, downloading them will make things so much easier for you.
I'm not sure I understand your problem.

InetAddress.getByName(String name) should work.

According to the 1.5 docs:

"Host name-to-IP address resolution is accomplished through the use of a combination of local machine configuration information and network naming services such as the Domain Name System (DNS) and Network Information Service(NIS). The particular naming services(s) being used is by default the local machine configured one. For any host name, its corresponding IP address is returned."

So if your local network is configured to work the way you want it, wouldn't it solve this problem?
I'm not sure if this belongs here since it's not really a Java specific question, but it's about network programming in general.

Why are some faster than other? I doubt that all file transfers go through the server (in other words, no middle man).

In that case, then isn't TCP pretty much the standard for file transfer? Why are some file-sharing services MUCH faster than others?
I'm surprised that Eclipse doesn't take care of these things for you.

Heh, it probably does and I just don't know how.

Thank you for your help, very much appreciated
14 years ago
I remember I had this problem when it came to files, where I had to use getResourceAsStream()

Now I'm facing the same problem with:

Class.forName("org.hsqldb.jdbcDriver");

Throwing a class not found exception.

I have no clue on what to do, please help.
14 years ago
I found Swing: A Beginner's Guide to be a great book that will get you started right away.

That being said, even though it is about 500 pages long, it doesn't cover as much material as you'd think.
14 years ago