Ernesto Pye

Greenhorn
+ Follow
since Apr 10, 2003
Merit badge: grant badges
For More
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 Ernesto Pye

Talk about a bump!

Any ideas? School's now off, and I'm still wondering about this.
19 years ago
I was looking into that, but I don't seem to be able to display formatted text with it. However, JEditorPane does let me do this. I have a question though, is it possible to just append new HTML formatted text to it? Or do I have to change all the text everytime I want to update the box?
19 years ago
I am currently working on a Java IRC Client, and I wanted to know if there's a simple way to show formatted text in a scrollable object. I could feasibly parse the incoming messages and change the control codes used on IRC with HTML code to format the text, and use something like a JLabel to show the formatted text. However, I don't seem to be able to scroll through the text of a JLabel.. Is this even possible? Or is there a different object I should look into? Or maybe I need to make a custom control or something?

I'm pretty lost here, so I'd really appreciate it if someone could point me in the right direction.

Thanks in advance
19 years ago
This is for my IB extended essay assignment..
Uh, basically I wanted help on stuff I'd need to _measure_ or benchmark performance in those areas? (File handling, Memory, graphics..)
I just want someone to point me in the right direction, for example, what properties of file handling performance I should benchmark (cached, uncached, can this even be done in Java?).. So if anybody has had any benchmarking experience with files, memory, etc, I'd really appreciate it if you could perhaps give me some pointers or some sites I could look at..
Thanks for any help..
20 years ago
I'm starting a new project pretty soon, and it's about comparing performance between a Windows and a Linux box. I have a few ideas as to what I could compare:
- File handling
- Memory
- Graphics
- Implementation of common algorithms (Sorting, encrypting, etc)
I'm not exactly sure as to what I could to compare these (code-wise). Doing the process repetitively and using currentTimeMillis(), taking time, etc, would be the basic idea...
Does anybody have any sample code I could take a look at to get me started in benchmarking?
Thanks in advance..
FYI: I'm currently dual booting Windows XP and Fedora Core 1, Java's installed and ready to go in both of them. Graphics drivers are updated in both, as well. I have yet to upgrade to the 2.6 kernel, but I'll be doing that over the weekend.
20 years ago
Hi,
I've been looking for some decent encryption algorithms for a while now, and haven't been remotely successful. I'm looking for MD5, RC4 or RC5, and SHA algorithms which I can implement into Java code. It's for a school project I'm working on, and I really don't know where else to look.. Google hasn't been to me for once.
Does anybody know where I can find such algorithms or know where I can get Java implementations of those? (or any other popular encryption algorithms I may have missed?)
I would even appreciated it if someone just pointed me in the right direction, 'cause I'm completely lost right now.
Thanks in advance.
20 years ago
Er, never mind. The answer was simple. Thanks anyway!
EDIT: Wow that was a fast reply. Yes that was exactly what I did.. the answer was in front of me the whole time.. Thanks for the help
[ February 05, 2004: Message edited by: Ernesto Pye ]
Do you (or anybody) know where I can find an example of controlling the Socket class from a thread started from the main program class? So that..

The question is, how can I access the 'botSocket' output stream, that is, access it by creating a new 'out' or PrintWriter class instance, or using the one I already created, from the thread 'x' which does some other processing?
The purpose of this is to avoid the bot to lag whenever a command that takes a while to process (due to CPU load or simply network latency).
Thanks in advance.
[ February 05, 2004: Message edited by: Ernesto Pye ]
I am currently working on an IRC bot, and I wanted to add certain commands that could take a while to be finished (Extra socket utilities, or simply anything that took a *long* time to be processed).
I'm pretty new to threads, so I wanted to know if it's possible to create a thread that does this long process, and then outputs some data through the main bot Socket's output stream.
Thanks in advance for any help.
Thanks a lot for that. I'm definitely keeping that in a text file, though I think I should first learn more of the basics before moving on to using the more complicated stuff.
Thanks again.
21 years ago
Just so you know, I already switched my Display Name to my Real Name.
21 years ago
Oh, I see. Thanks for the information. Yeah, onto classes and methods I go. Any thoughts of what I should learn about after that?
21 years ago
Hi, I'm new to Java. I'm already familiar with the Hello World favourite, System.out.Println()... I was just wonder how to get user input in the command prompt? I tried System.in.read().. But I really don't know what else to do after that... Can anyone help? Maybe show me some sample code?
Thanks in advance.
21 years ago