You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
(39) |
May
(63) |
Jun
(15) |
Jul
(14) |
Aug
(3) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
---|
From: Thomas J. <ntm...@gm...> - 2005-05-19 20:57:58
|
On 5/18/05, Toby Donaldson <tj...@sf...> wrote: > public interface Cropped { > public void cropTop(int numPixels); > public void cropBottom(int numPixels); > public void cropLeft(int numPixels); > public void cropRight(int numPixels); > } >=20 > (I've never implemented cropping before, so this might not turn out to be > the best interface. If you or anyone has other ideas, by all means please > suggest them.) Might also be worth adding a "cropToRectangle(upperLeftX, upperLeftY, lowerRightX, lowerRightY)" for easier photoshop-style cropping, as well as specifying a default behaviour for the case that numPixels > MatrixWidth |
From: Thomas J. <ntm...@gm...> - 2005-05-19 20:50:19
|
On 5/18/05, he...@sf... <he...@sf...> wrote: > HI, all! Also, how to change the reversion number to two digits? CVS doesn't treat its revision numbers as decimals as one would expect. Numbering goes as follows: ... 1.8, 1.9, 1.10, 1.11 ... 1.99, 1.100, 1.101 ... and so forth until someone decides that the major version number needs to be changed to 2.x, which should only happen in the (rare) case of major API changes that will cause older software to break. |
From: Daryl V. H. <dva...@sf...> - 2005-05-19 15:27:38
|
The state of my sections are as follows: - generic load/save/quite buttons: Complete - remove alpha-value code: Complete (I've removed the getAlpha() methods) - button support: Complete (including the buttons in a separate panel in the window and not overwriting the image) - chatbot framework (not listed): Seemingly complete (I can't think of much more to do with it) Daryl. Toby Donaldson wrote: >Here's a slightly updated release schedule. If you haven't already done so, >please let us now where you are if you are working on one of the listed >features. > >Release name: casey >Date: end of June >New features: > - Cartesian coordinate system > - simple axes > - generic load/save/quit buttons > - basic testing code for TheMatrix > - basic user-level documentation for TheMatrix > - cropping > - reversi board demo >Other changes: > - remove alpha-value code for TheMatrix since it doesn't work correctly > (add as a feature in a later version) > - remove scaling code (add as a feature in a later version) > >Release name: harriet >Date: end of August >New features: > - correct handling of alpha values > - improved flexibility for using TheMatrix as a panel in other windows >(de-coupling of image and frame) > - more complete testing > - more complete user documentation > - improved and fixed animation library > >Are there any other features that should be added/removed/modified? > >Toby > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19/05/05 |
From: Toby D. <tj...@sf...> - 2005-05-19 07:29:47
|
Here's a slightly updated release schedule. If you haven't already done so, please let us now where you are if you are working on one of the listed features. Release name: casey Date: end of June New features: - Cartesian coordinate system - simple axes - generic load/save/quit buttons - basic testing code for TheMatrix - basic user-level documentation for TheMatrix - cropping - reversi board demo Other changes: - remove alpha-value code for TheMatrix since it doesn't work correctly (add as a feature in a later version) - remove scaling code (add as a feature in a later version) Release name: harriet Date: end of August New features: - correct handling of alpha values - improved flexibility for using TheMatrix as a panel in other windows (de-coupling of image and frame) - more complete testing - more complete user documentation - improved and fixed animation library Are there any other features that should be added/removed/modified? Toby -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-19 07:07:37
|
Hi Henry, I guess the issue is that TheMatrix combines two things: an image, and frame for displaying it. Thus, it has methods for manipulating the image, and methods for manipulating the frame. There are no standard rules for how the frame and image should interact. For instance, if you make the frame smaller, should the image get smaller? And vice-versa, if the you make the image smaller, should the frame get smaller? TheMatrix scaling method is a good example of a method that would benefit from precised rules for how the image and frame interact. I don't know if there's one best set of behaviours; it would probably take some experimentation to see what's best. Thus, I think we should just remove the scaling methods for the next release, and then add image/frame behaviour as a feature to be implemented by someone who can think it through. This is also suggests a new underlying design: cleanly separate the image class and the frame that displays it. Then we could use different frames for an image, depending on what you want to use the image for. Toby On 5/18/05 7:49 PM, "he...@sf..." <he...@sf...> wrote: > > HI! Some of the test case are avaliable for people to see how matrix class > work at /csjava/csimage/tests/TheMatrixTest.java. > > > > /* > > Attention to owner of scalefactor class: > > I am in doubt with the scalefactor class, > > > > Due to the fact that we just scaled the pixel size and did not increase the > number of pixels. Thus, get image width and height returns the original > image width and image height value. > > > > The image itself does appear scaled in size. Do we consider this as a pass. > It is rarely to get the image width of a scaled image in our demo, and > getimagewidth and getimageheight did reflect the number of the pixels that > was used, but did not reflect the real world's change. > > > > In conclusion, I classified this as unknown, whoever wrote Scalefactor > class, please give me your advice. I will take that under consideration. > > */ > > > > Similarly, I think "save as jpeg" have similar nature of problem, whoever > wrote that I give it a pass, since it is the nature file format, so it is > not an error. > > > > > > Thank you for your time. > > > > best wishes, > > > > Henry Chan > > Computer Science Major > > Simon Fraser University -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-19 04:12:02
|
Hi Angela, As we discussed, I'll assign the "cropping" functions to you. To do this, you could: - create a new sub-package in the developers package with your SFU username as the title - make a new interface in this package: public interface Cropped { public void cropTop(int numPixels); public void cropBottom(int numPixels); public void cropLeft(int numPixels); public void cropRight(int numPixels); } (I've never implemented cropping before, so this might not turn out to be the best interface. If you or anyone has other ideas, by all means please suggest them.) - create a new version of TheMatrix in your package and call it, say, TheCroppedMatrix, and have it extend TheMatrix, e.g. class TheCroppedMatrix extends TheMatrix implements Cropped { // ... } To get an idea of how to approach this, Daryl's TheButtonMatrix (in developers.dvanhumb) does the same sort of thing for a different feature. - make a demo program that shows how to use the cropping features in a typical way, e.g. cropping a photo Toby On 5/16/05 1:03 PM, "Angela Ma" <sta...@ho...> wrote: > Hi everyone, > > I am Angela, newly joined into this project. Nice to meet you all! =) > > I'm a TechOne student; I'm looking forward to join the Interactive Design > stream. I have a general interest in computer, especially in web/graphic > design area. I had just completed cmpt 125, but I'm not very good at Java. > So I hope to take this opportunity to practice java. > > Best, > > Angela > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > csjava-developer mailing list > csj...@li... > https://lists.sourceforge.net/lists/listinfo/csjava-developer > -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-19 03:54:48
|
Lets not mess with the version numbers CVS assigns unless it solves a *major* problem. Toby On 5/18/05 7:53 PM, "he...@sf..." <he...@sf...> wrote: > > HI, all! Also, how to change the reversion number to two digits? > > > > For example: > > > > Now my current verision number after commited is 1.9, I want to go to 1.91 > next time I commit, how to set that? I saw another guy have a version 1.29? > Can someone reset my version number to 1.01 and commit at a rate of 0.01? > > Thanks you for your help. > > > > Henry Chan (Redjustice) > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > csjava-developer mailing list > csj...@li... > https://lists.sourceforge.net/lists/listinfo/csjava-developer > -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: <he...@sf...> - 2005-05-19 02:53:43
|
HI, all! Also, how to change the reversion number to two digits? For example: Now my current verision number after commited is 1.9, I want to go to 1.91 next time I commit, how to set that? I saw another guy have a version 1.29? Can someone reset my version number to 1.01 and commit at a rate of 0.01? Thanks you for your help. Henry Chan (Redjustice) |
From: <he...@sf...> - 2005-05-19 02:49:55
|
HI! Some of the test case are avaliable for people to see how matrix class work at /csjava/csimage/tests/TheMatrixTest.java. /* Attention to owner of scalefactor class: I am in doubt with the scalefactor class, Due to the fact that we just scaled the pixel size and did not increase the number of pixels. Thus, get image width and height returns the original image width and image height value. The image itself does appear scaled in size. Do we consider this as a pass. It is rarely to get the image width of a scaled image in our demo, and getimagewidth and getimageheight did reflect the number of the pixels that was used, but did not reflect the real world's change. In conclusion, I classified this as unknown, whoever wrote Scalefactor class, please give me your advice. I will take that under consideration. */ Similarly, I think "save as jpeg" have similar nature of problem, whoever wrote that I give it a pass, since it is the nature file format, so it is not an error. Thank you for your time. best wishes, Henry Chan Computer Science Major Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-17 07:23:35
|
Thanks Daryl. Toby On 5/16/05 3:19 PM, "Daryl Van Humbeck" <dva...@sf...> wrote: > Ok, I've just moved the Jabber chatbot framework from csjava.chatbot.* > to cschatbot.* to be more in keeping with the csjava naming convention > (csimage, csmedia, csspeech, etc. > > You should be able to see it in one or two hours, the servers don't seem > to update immediately. > > Daryl. > > Toby Donaldson wrote: > >> Daryl, >> >> I just noticed that you put your chatbot stuff into what I believe is an >> onbsolete module. Apparently it is currently here: >> >> http://cvs.sourceforge.net/viewcvs.py/csjava/csjava/csjava/ >> >> I believe that's one csjava too far down (confusing, isn't!). >> >> Instead, it should probably be one level up, on par with csimage, csmedia, >> csspeech, etc. Calling it "cschatbot" would be in keeping with the naming >> scheme. >> >> Toby >> -- >> Dr. Toby Donaldson >> School of Computing Science (Surrey) >> Simon Fraser University >> >> >> -----Original Message----- >> From: csj...@li... >> [mailto:csj...@li...] On Behalf Of Daryl Van >> Humbeck >> Sent: Thursday, May 05, 2005 9:19 PM >> To: csjava Mailing List >> Subject: [csjava-developer] JabberBot framework >> >> Hi, all, >> >> I was wondering what package to put my JabberBot framework code in. >> >> I know that TheMatrix (an image package) is in csjava, the >> text-to-speech stuff is in csspeech, and the media stuff (mostly .mp3 >> stuff right now) is in csmedia. >> But where do I put JabberBot stuff in? >> >> cschat? >> cschatbot? >> ? >> >> I don't know right now :-\ . >> >> Any suggestions? Please? >> >> Daryl. >> >> >> >> > > -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-17 07:21:31
|
I think it's a safe bet that no code relies on TheMatrix alpha values. You can easily check in Eclipse to see where methods used by using the References-->project option that appears in the right-click menu. Toby On 5/16/05 11:45 AM, "Daryl Van Humbeck" <dva...@sf...> wrote: > Sounds good to me. > > I know that the alpha code includes both versions of getAlpha(), but is > there any other code that handles alpha colours? > > An update on how TheButtonMatrix is working: > I've added an icon for the Load button and I've fixed the problem of the > buttons overlapping and obscuring the image. > I had to create a new JComponent (called ImagePainter) to act like a > fixed-size component that draws any Image given to it. > > Daryl. > > Toby Donaldson wrote: > >> Hi all, >> >> I am doing a bit of planning for the next two released versions of the >> csimage package. The next version will be code-named "casey", and the one >> after that will be called "harriet". >> >> If you are working on one of the features mentioned below, please keep us >> informed of your progress by occasionally emailing this list. >> >> Release name: casey >> Date: end of June (hopefully!) >> New features: >> - Caretesian coordinate system >> - simple axes >> - generic load/save/quit buttons >> - basic testing code for TheMatrix >> - basic user-level documentation for TheMatrix >> Other changes: >> - remove alpha-value code for TheMatrix since it doesn't work correctly >> (scheduled to be added in the next version) >> >> Release name: harriet >> Date: end of August (hopefully!) >> New features: >> - correct handling of alpha values >> - improved flexibility for using TheMatrix as a panel in other windows >> - more complete testing >> - more complete user documentation >> - improved and fixed animation library >> >> Any other ideas for changes? Did I miss anything? Note that this is just for >> the csimage library; non-image code may also be included, or we might >> release a separate package for that. >> >> Toby >> >> > > -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-17 07:13:32
|
I suspect the feature list will get refined and changed over time, so there is plenty of opportunity for the deadlines to become unreasonable. :-) The animation library works, but has some small bugs. Hopefully someone wil= l volunteer to work on it. It's a lot of fun. Here are my comments on TheMatixOrigin: - I don't think it's necessary to reset the coordinates, because I suspec= t it would be a rare thing to want to do. If a programmer needs to change the coordinate system they can always make a copy and change the coordinates in the copy. So once the coordinate system and origin is set, there are no changes allowed. - Thus, there is no "panning" through an image. Although this would be a neat feature to add later as a separate feature. - As you know, the "convertReal" and "convertFake" methods need to be re-named (e.g. using the terminology I suggested in a previous message). - A demo file of a few very simple uses of the TheMatrixOrigin should als= o be included, so that programmers can understand how to use it by seeing som= e examples. - I wonder if the implementation be made simpler? Is there any way to avoid over-riding so many methods? I haven't thought it through, but I wonder if it's possible to have TheMatrixOrigin always assume that is in user space, except for when it comes time to actually plot the points on th= e screen, when it converts to the screen coordinates. I'd like to be sure about this particular point before committing any final changes to TheMatri= x proper. Toby On 5/15/05 9:06 PM, "Alex Tsai" <caf...@gm...> wrote: > Hmm, that seems about right, the release dates are fairly generous as > well. IIRC the animation library is basically non-functional right > now, so that gives plenty of time if it's by August. >=20 > I have a question about coordinate system thing though - is the way it > currently works fine? (ie. when you set the origin, it is always > relative to the machine space.) I did look into the Graphics2D > translate as you mentioned, but that seems to always do it relative to > the current coordinate system, which makes it harder to return to the > original origin if that is necessary. I'm also wondering if moving > the origin is supposed to move the currently drawn image or not - my > stance on this is no, but I want to see other views on it. >=20 > -Alex >=20 > On 5/15/05, Toby Donaldson <tj...@sf...> wrote: >> Hi all, >>=20 >> I am doing a bit of planning for the next two released versions of the >> csimage package. The next version will be code-named "casey", and the on= e >> after that will be called "harriet". >>=20 >> If you are working on one of the features mentioned below, please keep u= s >> informed of your progress by occasionally emailing this list. >>=20 >> Release name: casey >> Date: end of June (hopefully!) >> New features: >> - Caretesian coordinate system >> - simple axes >> - generic load/save/quit buttons >> - basic testing code for TheMatrix >> - basic user-level documentation for TheMatrix >> Other changes: >> - remove alpha-value code for TheMatrix since it doesn't work correctly >> (scheduled to be added in the next version) >>=20 >> Release name: harriet >> Date: end of August (hopefully!) >> New features: >> - correct handling of alpha values >> - improved flexibility for using TheMatrix as a panel in other windows >> - more complete testing >> - more complete user documentation >> - improved and fixed animation library >>=20 >> Any other ideas for changes? Did I miss anything? Note that this is just= for >> the csimage library; non-image code may also be included, or we might >> release a separate package for that. >>=20 >> Toby >> -- >> Dr. Toby Donaldson >> School of Computing Science >> Simon Fraser University >>=20 >> ------------------------------------------------------- >> This SF.Net email is sponsored by Oracle Space Sweepstakes >> Want to be the first software developer in space? >> Enter now for the Oracle Space Sweepstakes! >> http://ads.osdn.com/?ad_id=3D7393&alloc_id=3D16281&op=3Dclick >> _______________________________________________ >> csjava-developer mailing list >> csj...@li... >> https://lists.sourceforge.net/lists/listinfo/csjava-developer >>=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_ids93&alloc_id=16281&op=CCk > _______________________________________________ > csjava-developer mailing list > csj...@li... > https://lists.sourceforge.net/lists/listinfo/csjava-developer >=20 >=20 --=20 Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-16 22:45:19
|
Daryl, I just noticed that you put your chatbot stuff into what I believe is an onbsolete module. Apparently it is currently here:=20 http://cvs.sourceforge.net/viewcvs.py/csjava/csjava/csjava/ I believe that's one csjava too far down (confusing, isn't!). Instead, it should probably be one level up, on par with csimage, = csmedia, csspeech, etc. Calling it "cschatbot" would be in keeping with the = naming scheme. Toby -- Dr. Toby Donaldson School of Computing Science (Surrey) Simon Fraser University -----Original Message----- From: csj...@li... [mailto:csj...@li...] On Behalf Of Daryl = Van Humbeck Sent: Thursday, May 05, 2005 9:19 PM To: csjava Mailing List Subject: [csjava-developer] JabberBot framework Hi, all, I was wondering what package to put my JabberBot framework code in. I know that TheMatrix (an image package) is in csjava, the=20 text-to-speech stuff is in csspeech, and the media stuff (mostly .mp3=20 stuff right now) is in csmedia. But where do I put JabberBot stuff in? cschat? cschatbot? ? I don't know right now :-\ . Any suggestions? Please? Daryl. --=20 No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 04/05/05 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, = 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=3D20 _______________________________________________ csjava-developer mailing list csj...@li... https://lists.sourceforge.net/lists/listinfo/csjava-developer |
From: Daryl V. H. <dva...@sf...> - 2005-05-16 22:39:56
|
Ok, I've just moved the Jabber chatbot framework from csjava.chatbot.* to cschatbot.* to be more in keeping with the csjava naming convention (csimage, csmedia, csspeech, etc. You should be able to see it in one or two hours, the servers don't seem to update immediately. Daryl. Toby Donaldson wrote: >Daryl, > >I just noticed that you put your chatbot stuff into what I believe is an >onbsolete module. Apparently it is currently here: > >http://cvs.sourceforge.net/viewcvs.py/csjava/csjava/csjava/ > >I believe that's one csjava too far down (confusing, isn't!). > >Instead, it should probably be one level up, on par with csimage, csmedia, >csspeech, etc. Calling it "cschatbot" would be in keeping with the naming >scheme. > >Toby >-- >Dr. Toby Donaldson >School of Computing Science (Surrey) >Simon Fraser University > > >-----Original Message----- >From: csj...@li... >[mailto:csj...@li...] On Behalf Of Daryl Van >Humbeck >Sent: Thursday, May 05, 2005 9:19 PM >To: csjava Mailing List >Subject: [csjava-developer] JabberBot framework > >Hi, all, > >I was wondering what package to put my JabberBot framework code in. > >I know that TheMatrix (an image package) is in csjava, the >text-to-speech stuff is in csspeech, and the media stuff (mostly .mp3 >stuff right now) is in csmedia. >But where do I put JabberBot stuff in? > >cschat? >cschatbot? >? > >I don't know right now :-\ . > >Any suggestions? Please? > >Daryl. > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.11 - Release Date: 16/05/05 |
From: Angela M. <sta...@ho...> - 2005-05-16 20:35:47
|
Hi everyone, I am Angela, newly joined into this project. Nice to meet you all! =) I'm a TechOne student; I'm looking forward to join the Interactive Design stream. I have a general interest in computer, especially in web/graphic design area. I had just completed cmpt 125, but I'm not very good at Java. So I hope to take this opportunity to practice java. Best, Angela |
From: Daryl V. H. <dva...@sf...> - 2005-05-16 18:44:00
|
Sounds good to me. I know that the alpha code includes both versions of getAlpha(), but is there any other code that handles alpha colours? An update on how TheButtonMatrix is working: I've added an icon for the Load button and I've fixed the problem of the buttons overlapping and obscuring the image. I had to create a new JComponent (called ImagePainter) to act like a fixed-size component that draws any Image given to it. Daryl. Toby Donaldson wrote: >Hi all, > >I am doing a bit of planning for the next two released versions of the >csimage package. The next version will be code-named "casey", and the one >after that will be called "harriet". > >If you are working on one of the features mentioned below, please keep us >informed of your progress by occasionally emailing this list. > >Release name: casey >Date: end of June (hopefully!) >New features: > - Caretesian coordinate system > - simple axes > - generic load/save/quit buttons > - basic testing code for TheMatrix > - basic user-level documentation for TheMatrix >Other changes: > - remove alpha-value code for TheMatrix since it doesn't work correctly >(scheduled to be added in the next version) > >Release name: harriet >Date: end of August (hopefully!) >New features: > - correct handling of alpha values > - improved flexibility for using TheMatrix as a panel in other windows > - more complete testing > - more complete user documentation > - improved and fixed animation library > >Any other ideas for changes? Did I miss anything? Note that this is just for >the csimage library; non-image code may also be included, or we might >release a separate package for that. > >Toby > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.11 - Release Date: 16/05/05 |
From: Alex T. <caf...@gm...> - 2005-05-16 04:06:55
|
Hmm, that seems about right, the release dates are fairly generous as well. IIRC the animation library is basically non-functional right now, so that gives plenty of time if it's by August. I have a question about coordinate system thing though - is the way it currently works fine? (ie. when you set the origin, it is always relative to the machine space.) I did look into the Graphics2D translate as you mentioned, but that seems to always do it relative to the current coordinate system, which makes it harder to return to the original origin if that is necessary. I'm also wondering if moving the origin is supposed to move the currently drawn image or not - my stance on this is no, but I want to see other views on it. -Alex On 5/15/05, Toby Donaldson <tj...@sf...> wrote: > Hi all, >=20 > I am doing a bit of planning for the next two released versions of the > csimage package. The next version will be code-named "casey", and the one > after that will be called "harriet". >=20 > If you are working on one of the features mentioned below, please keep us > informed of your progress by occasionally emailing this list. >=20 > Release name: casey > Date: end of June (hopefully!) > New features: > - Caretesian coordinate system > - simple axes > - generic load/save/quit buttons > - basic testing code for TheMatrix > - basic user-level documentation for TheMatrix > Other changes: > - remove alpha-value code for TheMatrix since it doesn't work correctly > (scheduled to be added in the next version) >=20 > Release name: harriet > Date: end of August (hopefully!) > New features: > - correct handling of alpha values > - improved flexibility for using TheMatrix as a panel in other windows > - more complete testing > - more complete user documentation > - improved and fixed animation library >=20 > Any other ideas for changes? Did I miss anything? Note that this is just = for > the csimage library; non-image code may also be included, or we might > release a separate package for that. >=20 > Toby > -- > Dr. Toby Donaldson > School of Computing Science > Simon Fraser University >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=3D7393&alloc_id=3D16281&op=3Dclick > _______________________________________________ > csjava-developer mailing list > csj...@li... > https://lists.sourceforge.net/lists/listinfo/csjava-developer > |
From: Toby D. <tj...@sf...> - 2005-05-16 00:43:55
|
Hi all, I am doing a bit of planning for the next two released versions of the csimage package. The next version will be code-named "casey", and the one after that will be called "harriet". If you are working on one of the features mentioned below, please keep us informed of your progress by occasionally emailing this list. Release name: casey Date: end of June (hopefully!) New features: - Caretesian coordinate system - simple axes - generic load/save/quit buttons - basic testing code for TheMatrix - basic user-level documentation for TheMatrix Other changes: - remove alpha-value code for TheMatrix since it doesn't work correctly (scheduled to be added in the next version) Release name: harriet Date: end of August (hopefully!) New features: - correct handling of alpha values - improved flexibility for using TheMatrix as a panel in other windows - more complete testing - more complete user documentation - improved and fixed animation library Any other ideas for changes? Did I miss anything? Note that this is just for the csimage library; non-image code may also be included, or we might release a separate package for that. Toby -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-15 04:14:22
|
Daryl, Yes it, would be good to fix this. If I recall correctly, the status of alpha values for basic graphic file formats are: JPEG: no alpha information stored GIF: 1 bit per pixel of alpha information PNG: 8 bits per pixel of alpha information So storing 8-bit alpha values will use up a little more memory in the case of JPEG and GIF images, but it's probably not a big deal. It might be best to make the default TYPE_INT_ARGB, and then provide a constructor option that lets you set it to TYPE_INT_RGB in case someone wants to conserve memory. If you do want add these alpha values, then you should start with a demo program that shows how different alpha values will be displayed in TheMatrix. Indeed, a set of carefully created examples will probably help explain and clarify these tricky alpha value issues. I'll add the alpha values issue as a feature for you ... Toby On 5/14/05 9:55 AM, "Daryl Van Humbeck" <dva...@sf...> wrote: > I just realized that TheMatrix isn't saving Alpha values that it's given. > > When the BufferedImage is created in utils.Utilities.java, it's created > with type TYPE_INT_RGB, which doesn't save Alpha values, instead of > TYPE_INT_ARGB, which does. > > Also, to create a Color object from an RGBA packed integer, using new > Color(int) ignores the Alpha value, when you use new Color(int, boolean > true) it actually copies it. > > Another thing is when you're drawing an image with transparent pixels > onto another image (see utils.Utilites.java, method BufferedImage > makeBufferedImage(Image image, int image_type)) it doesn't copy the > Alpha values, it just blends the pixels with alpha values with the color > that's already there (usually black), which probably isn't what we want, > is it? > > I found this out by reading the JavaDocs, looking for information for > another project I'm working on (if you want to know, NQL, Not Quite Liero). > > If you want these problems fixed, I think I'd like to volunteer (unless > you think I'm working on too much already). > > Daryl. > -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-15 03:49:32
|
Yes, that's a good point. A *very* intelligent chatbot might talk as slowly as a human. Toby On 5/13/05 8:50 PM, "Daryl Van Humbeck" <dva...@sf...> wrote: > Not to mention a delay so they're not hogging bandwidth, etc. > You also want to be able to follow their conversation, not have this > whole long list of stuff they've said to read. > > Daryl. > > Toby Donaldson wrote: > >> Good point. At least one of the chabots must be able to "take the >> initiative" and start the conversation. The simplest way is probably just to >> have it send a "hello" message as soon as it begins the conversation. >> >> Toby >> >> >> On 5/13/05 3:42 PM, "Alex Tsai" <caf...@gm...> wrote: >> >> >> >>> Hi everyone, >>> >>> This chatbot looks good for an early stage - I'm trying to remember >>> all that stuff about the Smack library from first year, but I think I >>> know what it's doing. To get two chatbots talking to each other, >>> there would have to be some external input first, wouldn't there? >>> >>> -Alex >>> >>> On 5/13/05, Toby Donaldson <tj...@sf...> wrote: >>> >>> >>>> Thanks Daryl, >>>> >>>> I was accidentally only looking in the csimage package. >>>> >>>> Could you make two or more chatbots, and have them talk to each other? >>>> >>>> Also, can you make a non-Jabber interface for easily testing the chatbots? >>>> It shouldn't be too hard. >>>> >>>> The important thing is to make sure that the design of the chatbot is >>>> well-done, so that you can just use the same chatbot in the Jabber >>>> interface >>>> or the non-jabber interface. Also, the chabot interface should not assume >>>> it >>>> is talking to a human or another chabot ... It should view the incoming >>>> messages simply as strings from some unknown source. Of course, a >>>> particular >>>> chatbot might be designed to work just with people, but those details >>>> should >>>> go into the chabot, not into the chatbot interface. >>>> >>>> Toby >>>> >>>> >>>> On 5/13/05 11:54 AM, "Daryl Van Humbeck" <dva...@sf...> wrote: >>>> >>>> >>>> >>>>> It should be under csjava.chatbot.*, though if you're viewing the CVS >>>>> tree through SourceForge's viewer, it's csjava.csjava.chatbot.*. >>>>> There are three files, MessageListener.java, JabberBotFramework.java, & >>>>> JabberBotTest.java. >>>>> The version numbers (if you need them) are 1.3, 1.2, & 1.1, respectively. >>>>> >>>>> I don't think that changing it from threaded to event-listening would be >>>>> too hard, I'd just have to change it a little bit. >>>>> >>>>> I noticed I also need to add some more JavaDoc comments to indicate what >>>>> certain methods do. >>>>> I should be updating it some soon. >>>>> >>>>> The demo I have does exactly what you suggested, though I think I might >>>>> be able to make it a little more interesting by sending something like >>>>> "You sent this:", then whatever they sent. >>>>> >>>>> Suggestions as to what it should do would be appreciated, although I >>>>> don't have much experience with text-based user interaction. >>>>> >>>>> Daryl. >>>>> >>>>> Toby Donaldson wrote: >>>>> >>>>> >>>>> >>>>>> Daryl, >>>>>> >>>>>> I just updated from the CVS tree, and I don't see the Jabber code. >>>>>> Where should I look for it? >>>>>> >>>>>> I think it's probably simpler to use events instead of threads for the >>>>>> asynchronous chatting, if you know what I mean. Treat the messages >>>>>> that come from the Jabber server like events. The Smack library should >>>>>> have support for this. >>>>>> >>>>>> Also, I've been chatting with a Surrey high school IT teacher about >>>>>> running a Turing Test contest using Jabber, and if a demo is ready I'd >>>>>> like to let him try it (i.e. at least chat to it). >>>>>> >>>>>> Toby >>>>>> >>>>>> Daryl Van Humbeck wrote: >>>>>> >>>>>> >>>>>> >>>>>>> Hi, all! >>>>>>> >>>>>>> The Jabber chatbot framework is now at a state of some usefulness, >>>>>>> you can log-in to a server, listen for messages and send messages. >>>>>>> >>>>>>> It uses Jivesoft's Smack toolkit (which made the framework code >>>>>>> _much_ smaller), so you'll need to download it and point the projects >>>>>>> classpath to two of the files, smack.jar and smackx.jar, in order to >>>>>>> use the program. >>>>>>> >>>>>>> Just so you know, the test program logs into jabber.org, so if only >>>>>>> one person uses the bot unaltered, it will log into jabber.org with >>>>>>> the username "csjavaChatBot," and everyone can chat with it. >>>>>>> >>>>>>> I probably shouldn't have used threads to listen for messages, but I >>>>>>> hadn't been sure of how it works, so I'll probably change it later. >>>>>>> >>>>>>> To log into a server, just create a new instance of >>>>>>> JabberBotFramework, using the host name, username, and password (and >>>>>>> optionally, port) that you want to use. >>>>>>> The constructor will throw an org.jivesoft.smack.XMPPException if a >>>>>>> problem occurrs, so you need to catch it. >>>>>>> >>>>>>> For examples, look at the file JabberBotTest.java in the same package >>>>>>> as the JabberBotFramework, csjava.chatbot.*. >>>>>>> >>>>>>> To send a message, you just call .sendMessage(msg, to), where msg is >>>>>>> the String message to send, and to is the username to send it to. >>>>>>> >>>>>>> To listen for messages, add a MessageListener to your copy of the >>>>>>> JabberBotFramework with .addMessageListener(messageListener). >>>>>>> >>>>>>> That's basically it. If you want more functionality (it currently >>>>>>> only supports text messages), please post saying so. >>>>>>> Though I'm not sure how to recieve HTML, etc. messages. >>>>>>> >>>>>>> Anyway, here it is. >>>>>>> >>>>>>> Daryl. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> -- >>>> Dr. Toby Donaldson >>>> School of Computing Science >>>> Simon Fraser University >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by Oracle Space Sweepstakes >>>> Want to be the first software developer in space? >>>> Enter now for the Oracle Space Sweepstakes! >>>> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click >>>> _______________________________________________ >>>> csjava-developer mailing list >>>> csj...@li... >>>> https://lists.sourceforge.net/lists/listinfo/csjava-developer >>>> >>>> >>>> >>> >>> >> >> >> > > -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Daryl V. H. <dva...@sf...> - 2005-05-14 20:19:54
|
Hi, all! I've added yet another debugging tool for your Jabber chatbots. This one uses the console window. It's called ConsoleBotFramework.java, and it just waits for text input through the console and sends it to the bot, then sends the bot's output to the console. Very simple. Daryl. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 13/05/05 |
From: Daryl V. H. <dva...@sf...> - 2005-05-14 16:54:14
|
I just realized that TheMatrix isn't saving Alpha values that it's given. When the BufferedImage is created in utils.Utilities.java, it's created with type TYPE_INT_RGB, which doesn't save Alpha values, instead of TYPE_INT_ARGB, which does. Also, to create a Color object from an RGBA packed integer, using new Color(int) ignores the Alpha value, when you use new Color(int, boolean true) it actually copies it. Another thing is when you're drawing an image with transparent pixels onto another image (see utils.Utilites.java, method BufferedImage makeBufferedImage(Image image, int image_type)) it doesn't copy the Alpha values, it just blends the pixels with alpha values with the color that's already there (usually black), which probably isn't what we want, is it? I found this out by reading the JavaDocs, looking for information for another project I'm working on (if you want to know, NQL, Not Quite Liero). If you want these problems fixed, I think I'd like to volunteer (unless you think I'm working on too much already). Daryl. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 13/05/05 |
From: Daryl V. H. <dva...@sf...> - 2005-05-14 03:48:58
|
Not to mention a delay so they're not hogging bandwidth, etc. You also want to be able to follow their conversation, not have this whole long list of stuff they've said to read. Daryl. Toby Donaldson wrote: >Good point. At least one of the chabots must be able to "take the >initiative" and start the conversation. The simplest way is probably just to >have it send a "hello" message as soon as it begins the conversation. > >Toby > > >On 5/13/05 3:42 PM, "Alex Tsai" <caf...@gm...> wrote: > > > >>Hi everyone, >> >>This chatbot looks good for an early stage - I'm trying to remember >>all that stuff about the Smack library from first year, but I think I >>know what it's doing. To get two chatbots talking to each other, >>there would have to be some external input first, wouldn't there? >> >>-Alex >> >>On 5/13/05, Toby Donaldson <tj...@sf...> wrote: >> >> >>>Thanks Daryl, >>> >>>I was accidentally only looking in the csimage package. >>> >>>Could you make two or more chatbots, and have them talk to each other? >>> >>>Also, can you make a non-Jabber interface for easily testing the chatbots? >>>It shouldn't be too hard. >>> >>>The important thing is to make sure that the design of the chatbot is >>>well-done, so that you can just use the same chatbot in the Jabber interface >>>or the non-jabber interface. Also, the chabot interface should not assume it >>>is talking to a human or another chabot ... It should view the incoming >>>messages simply as strings from some unknown source. Of course, a particular >>>chatbot might be designed to work just with people, but those details should >>>go into the chabot, not into the chatbot interface. >>> >>>Toby >>> >>> >>>On 5/13/05 11:54 AM, "Daryl Van Humbeck" <dva...@sf...> wrote: >>> >>> >>> >>>>It should be under csjava.chatbot.*, though if you're viewing the CVS >>>>tree through SourceForge's viewer, it's csjava.csjava.chatbot.*. >>>>There are three files, MessageListener.java, JabberBotFramework.java, & >>>>JabberBotTest.java. >>>>The version numbers (if you need them) are 1.3, 1.2, & 1.1, respectively. >>>> >>>>I don't think that changing it from threaded to event-listening would be >>>>too hard, I'd just have to change it a little bit. >>>> >>>>I noticed I also need to add some more JavaDoc comments to indicate what >>>>certain methods do. >>>>I should be updating it some soon. >>>> >>>>The demo I have does exactly what you suggested, though I think I might >>>>be able to make it a little more interesting by sending something like >>>>"You sent this:", then whatever they sent. >>>> >>>>Suggestions as to what it should do would be appreciated, although I >>>>don't have much experience with text-based user interaction. >>>> >>>>Daryl. >>>> >>>>Toby Donaldson wrote: >>>> >>>> >>>> >>>>>Daryl, >>>>> >>>>>I just updated from the CVS tree, and I don't see the Jabber code. >>>>>Where should I look for it? >>>>> >>>>>I think it's probably simpler to use events instead of threads for the >>>>>asynchronous chatting, if you know what I mean. Treat the messages >>>>>that come from the Jabber server like events. The Smack library should >>>>>have support for this. >>>>> >>>>>Also, I've been chatting with a Surrey high school IT teacher about >>>>>running a Turing Test contest using Jabber, and if a demo is ready I'd >>>>>like to let him try it (i.e. at least chat to it). >>>>> >>>>>Toby >>>>> >>>>>Daryl Van Humbeck wrote: >>>>> >>>>> >>>>> >>>>>>Hi, all! >>>>>> >>>>>>The Jabber chatbot framework is now at a state of some usefulness, >>>>>>you can log-in to a server, listen for messages and send messages. >>>>>> >>>>>>It uses Jivesoft's Smack toolkit (which made the framework code >>>>>>_much_ smaller), so you'll need to download it and point the projects >>>>>>classpath to two of the files, smack.jar and smackx.jar, in order to >>>>>>use the program. >>>>>> >>>>>>Just so you know, the test program logs into jabber.org, so if only >>>>>>one person uses the bot unaltered, it will log into jabber.org with >>>>>>the username "csjavaChatBot," and everyone can chat with it. >>>>>> >>>>>>I probably shouldn't have used threads to listen for messages, but I >>>>>>hadn't been sure of how it works, so I'll probably change it later. >>>>>> >>>>>>To log into a server, just create a new instance of >>>>>>JabberBotFramework, using the host name, username, and password (and >>>>>>optionally, port) that you want to use. >>>>>>The constructor will throw an org.jivesoft.smack.XMPPException if a >>>>>>problem occurrs, so you need to catch it. >>>>>> >>>>>>For examples, look at the file JabberBotTest.java in the same package >>>>>>as the JabberBotFramework, csjava.chatbot.*. >>>>>> >>>>>>To send a message, you just call .sendMessage(msg, to), where msg is >>>>>>the String message to send, and to is the username to send it to. >>>>>> >>>>>>To listen for messages, add a MessageListener to your copy of the >>>>>>JabberBotFramework with .addMessageListener(messageListener). >>>>>> >>>>>>That's basically it. If you want more functionality (it currently >>>>>>only supports text messages), please post saying so. >>>>>>Though I'm not sure how to recieve HTML, etc. messages. >>>>>> >>>>>>Anyway, here it is. >>>>>> >>>>>>Daryl. >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>>-- >>>Dr. Toby Donaldson >>>School of Computing Science >>>Simon Fraser University >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by Oracle Space Sweepstakes >>>Want to be the first software developer in space? >>>Enter now for the Oracle Space Sweepstakes! >>>http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click >>>_______________________________________________ >>>csjava-developer mailing list >>>csj...@li... >>>https://lists.sourceforge.net/lists/listinfo/csjava-developer >>> >>> >>> >> >> > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.9 - Release Date: 12/05/05 |
From: Toby D. <tj...@sf...> - 2005-05-14 01:57:10
|
Good point. At least one of the chabots must be able to "take the initiative" and start the conversation. The simplest way is probably just to have it send a "hello" message as soon as it begins the conversation. Toby On 5/13/05 3:42 PM, "Alex Tsai" <caf...@gm...> wrote: > Hi everyone, > > This chatbot looks good for an early stage - I'm trying to remember > all that stuff about the Smack library from first year, but I think I > know what it's doing. To get two chatbots talking to each other, > there would have to be some external input first, wouldn't there? > > -Alex > > On 5/13/05, Toby Donaldson <tj...@sf...> wrote: >> Thanks Daryl, >> >> I was accidentally only looking in the csimage package. >> >> Could you make two or more chatbots, and have them talk to each other? >> >> Also, can you make a non-Jabber interface for easily testing the chatbots? >> It shouldn't be too hard. >> >> The important thing is to make sure that the design of the chatbot is >> well-done, so that you can just use the same chatbot in the Jabber interface >> or the non-jabber interface. Also, the chabot interface should not assume it >> is talking to a human or another chabot ... It should view the incoming >> messages simply as strings from some unknown source. Of course, a particular >> chatbot might be designed to work just with people, but those details should >> go into the chabot, not into the chatbot interface. >> >> Toby >> >> >> On 5/13/05 11:54 AM, "Daryl Van Humbeck" <dva...@sf...> wrote: >> >>> It should be under csjava.chatbot.*, though if you're viewing the CVS >>> tree through SourceForge's viewer, it's csjava.csjava.chatbot.*. >>> There are three files, MessageListener.java, JabberBotFramework.java, & >>> JabberBotTest.java. >>> The version numbers (if you need them) are 1.3, 1.2, & 1.1, respectively. >>> >>> I don't think that changing it from threaded to event-listening would be >>> too hard, I'd just have to change it a little bit. >>> >>> I noticed I also need to add some more JavaDoc comments to indicate what >>> certain methods do. >>> I should be updating it some soon. >>> >>> The demo I have does exactly what you suggested, though I think I might >>> be able to make it a little more interesting by sending something like >>> "You sent this:", then whatever they sent. >>> >>> Suggestions as to what it should do would be appreciated, although I >>> don't have much experience with text-based user interaction. >>> >>> Daryl. >>> >>> Toby Donaldson wrote: >>> >>>> Daryl, >>>> >>>> I just updated from the CVS tree, and I don't see the Jabber code. >>>> Where should I look for it? >>>> >>>> I think it's probably simpler to use events instead of threads for the >>>> asynchronous chatting, if you know what I mean. Treat the messages >>>> that come from the Jabber server like events. The Smack library should >>>> have support for this. >>>> >>>> Also, I've been chatting with a Surrey high school IT teacher about >>>> running a Turing Test contest using Jabber, and if a demo is ready I'd >>>> like to let him try it (i.e. at least chat to it). >>>> >>>> Toby >>>> >>>> Daryl Van Humbeck wrote: >>>> >>>>> Hi, all! >>>>> >>>>> The Jabber chatbot framework is now at a state of some usefulness, >>>>> you can log-in to a server, listen for messages and send messages. >>>>> >>>>> It uses Jivesoft's Smack toolkit (which made the framework code >>>>> _much_ smaller), so you'll need to download it and point the projects >>>>> classpath to two of the files, smack.jar and smackx.jar, in order to >>>>> use the program. >>>>> >>>>> Just so you know, the test program logs into jabber.org, so if only >>>>> one person uses the bot unaltered, it will log into jabber.org with >>>>> the username "csjavaChatBot," and everyone can chat with it. >>>>> >>>>> I probably shouldn't have used threads to listen for messages, but I >>>>> hadn't been sure of how it works, so I'll probably change it later. >>>>> >>>>> To log into a server, just create a new instance of >>>>> JabberBotFramework, using the host name, username, and password (and >>>>> optionally, port) that you want to use. >>>>> The constructor will throw an org.jivesoft.smack.XMPPException if a >>>>> problem occurrs, so you need to catch it. >>>>> >>>>> For examples, look at the file JabberBotTest.java in the same package >>>>> as the JabberBotFramework, csjava.chatbot.*. >>>>> >>>>> To send a message, you just call .sendMessage(msg, to), where msg is >>>>> the String message to send, and to is the username to send it to. >>>>> >>>>> To listen for messages, add a MessageListener to your copy of the >>>>> JabberBotFramework with .addMessageListener(messageListener). >>>>> >>>>> That's basically it. If you want more functionality (it currently >>>>> only supports text messages), please post saying so. >>>>> Though I'm not sure how to recieve HTML, etc. messages. >>>>> >>>>> Anyway, here it is. >>>>> >>>>> Daryl. >>>>> >>>>> >>>> >>>> >>>> >>> >>> >> >> -- >> Dr. Toby Donaldson >> School of Computing Science >> Simon Fraser University >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by Oracle Space Sweepstakes >> Want to be the first software developer in space? >> Enter now for the Oracle Space Sweepstakes! >> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click >> _______________________________________________ >> csjava-developer mailing list >> csj...@li... >> https://lists.sourceforge.net/lists/listinfo/csjava-developer >> > > -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |
From: Toby D. <tj...@sf...> - 2005-05-14 01:55:03
|
You can use Swing window if you like ... Although to start with, interacting with the chatbot at the console is probably fine (e.g. Like the command-line in Python). Toby On 5/13/05 3:42 PM, "Daryl Van Humbeck" <dva...@sf...> wrote: > Do you mean like write a Swing window that lets you view what the bot > says and have a text input widget to let you talk to the bot? > > I kind of think that there should be more test bots, I'll see what I can > come up with. > > Daryl. > > > Toby Donaldson wrote: > >> Thanks Daryl, >> >> I was accidentally only looking in the csimage package. >> >> Could you make two or more chatbots, and have them talk to each other? >> >> Also, can you make a non-Jabber interface for easily testing the chatbots? >> It shouldn't be too hard. >> >> The important thing is to make sure that the design of the chatbot is >> well-done, so that you can just use the same chatbot in the Jabber interface >> or the non-jabber interface. Also, the chabot interface should not assume it >> is talking to a human or another chabot ... It should view the incoming >> messages simply as strings from some unknown source. Of course, a particular >> chatbot might be designed to work just with people, but those details should >> go into the chabot, not into the chatbot interface. >> >> Toby >> >> >> On 5/13/05 11:54 AM, "Daryl Van Humbeck" <dva...@sf...> wrote: >> >> >> >>> It should be under csjava.chatbot.*, though if you're viewing the CVS >>> tree through SourceForge's viewer, it's csjava.csjava.chatbot.*. >>> There are three files, MessageListener.java, JabberBotFramework.java, & >>> JabberBotTest.java. >>> The version numbers (if you need them) are 1.3, 1.2, & 1.1, respectively. >>> >>> I don't think that changing it from threaded to event-listening would be >>> too hard, I'd just have to change it a little bit. >>> >>> I noticed I also need to add some more JavaDoc comments to indicate what >>> certain methods do. >>> I should be updating it some soon. >>> >>> The demo I have does exactly what you suggested, though I think I might >>> be able to make it a little more interesting by sending something like >>> "You sent this:", then whatever they sent. >>> >>> Suggestions as to what it should do would be appreciated, although I >>> don't have much experience with text-based user interaction. >>> >>> Daryl. >>> >>> Toby Donaldson wrote: >>> >>> >>> >>>> Daryl, >>>> >>>> I just updated from the CVS tree, and I don't see the Jabber code. >>>> Where should I look for it? >>>> >>>> I think it's probably simpler to use events instead of threads for the >>>> asynchronous chatting, if you know what I mean. Treat the messages >>>> that come from the Jabber server like events. The Smack library should >>>> have support for this. >>>> >>>> Also, I've been chatting with a Surrey high school IT teacher about >>>> running a Turing Test contest using Jabber, and if a demo is ready I'd >>>> like to let him try it (i.e. at least chat to it). >>>> >>>> Toby >>>> >>>> Daryl Van Humbeck wrote: >>>> >>>> >>>> >>>>> Hi, all! >>>>> >>>>> The Jabber chatbot framework is now at a state of some usefulness, >>>>> you can log-in to a server, listen for messages and send messages. >>>>> >>>>> It uses Jivesoft's Smack toolkit (which made the framework code >>>>> _much_ smaller), so you'll need to download it and point the projects >>>>> classpath to two of the files, smack.jar and smackx.jar, in order to >>>>> use the program. >>>>> >>>>> Just so you know, the test program logs into jabber.org, so if only >>>>> one person uses the bot unaltered, it will log into jabber.org with >>>>> the username "csjavaChatBot," and everyone can chat with it. >>>>> >>>>> I probably shouldn't have used threads to listen for messages, but I >>>>> hadn't been sure of how it works, so I'll probably change it later. >>>>> >>>>> To log into a server, just create a new instance of >>>>> JabberBotFramework, using the host name, username, and password (and >>>>> optionally, port) that you want to use. >>>>> The constructor will throw an org.jivesoft.smack.XMPPException if a >>>>> problem occurrs, so you need to catch it. >>>>> >>>>> For examples, look at the file JabberBotTest.java in the same package >>>>> as the JabberBotFramework, csjava.chatbot.*. >>>>> >>>>> To send a message, you just call .sendMessage(msg, to), where msg is >>>>> the String message to send, and to is the username to send it to. >>>>> >>>>> To listen for messages, add a MessageListener to your copy of the >>>>> JabberBotFramework with .addMessageListener(messageListener). >>>>> >>>>> That's basically it. If you want more functionality (it currently >>>>> only supports text messages), please post saying so. >>>>> Though I'm not sure how to recieve HTML, etc. messages. >>>>> >>>>> Anyway, here it is. >>>>> >>>>> Daryl. >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >> >> >> > > -- Dr. Toby Donaldson School of Computing Science Simon Fraser University |