IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.87 MB
Powered by
Channel Info
Network: freenodeChannel: #java |
Search in www.irclog.org
Log from #java at freenode 2006-05-21
[00:07]<ene|tjwya>+Is it a good idea to build a forum using servlets or should I do it in javaserver pages?
[00:10]<zussv>+ENE|Toxic, pages are good for the presentation (view), servlets are good for things like business logic, persistence, etc.
[00:11]<ene|tjwya>+russt: Thanks, I take it I can use the pages for the presentation and perhaps call upon from sql from database access from servlets, or does javapages allow me to do that ?
[00:12]<gudedj>+~assert
[00:12]<rrvr2jv>+Guyzmo, assert is http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html
[00:12]<gudedj>+~help
[00:12]<rrvr2jv>+See 'help about', 'help factoids', 'help javadoc', 'help karma', 'help abuse', 'help literal', 'help magic8', 'help google', 'help rot13', 'help dict', or 'help tell'.
[00:12]<zussv>+ENE|Toxic, it's probably a good idea to avoid direct calls to sql - save that for a data access object.
[00:13]<gudedj>+is it possible to update the bot's factoid to java 1.5 ? :)
[00:13]<gudedj>+oh no
[00:13]<gudedj>+does not exists :-k
[00:13]<gudedj>+:-x
[00:14]<ene|tjwya>+russt: Alright, I've only been programming alot of regular java apps, so I want to expand my horizons a little :) Now, is the data access object a class in pages?
[00:15]<zussv>+ENE|Toxic, typically it is a class used by the servlet
[00:15]<-- sgvgzs xzs fuyv (>/dev/brain")
[00:15]<ene|tjwya>+russt: Thanks
[00:15]<zussv>+ENE|Toxic, yw
[00:15]<zussv>+oops - you're welcome
[00:15]<mjxrmy2>+russt: you can get to the event queue if you want
[00:15]<ene|tjwya>+Self explanatory :)
[00:16]<mjxrmy2>+dont know if its the best thing to do
[00:16]<zussv>+mohadib, how does one access the event queue? And youi're right - it may not be the best solution.
[00:16]<mjxrmy2>+through ToolKit
[00:16]<zussv>+ah
[00:17]<zussv>+thank you
[00:17]<mjxrmy2>+np
[00:17]<sfrvr>+mohadib: check out http://www.factorcode.org/browser-tool.png
[00:17]<sfrvr>+mohadib: you click several things in the first column and they list in the second, etc
[00:18]<sfrvr>+mohadib: i had fun coding the various widgets for this
[00:18]<mjxrmy2>+slava: nice :)
[00:18]<mjxrmy2>+it uses coco?
[00:25]<sfrvr>+mohadib: it uses cocoa to display the window, but the rest is opengl with my own widgets
[00:25]<sfrvr>+that's why they look so crap
[00:25]<zussv>+mohadib, my little test case works fine on windows, but is hosed on linux - I think it might have something to with the way that java interfaces with the low-level stuff on XWindows
[00:25]<mjxrmy2>+slava: nice :)
[00:25]<sfrvr>+mohadib: i just have a minimal amount of OS-specific stuff for X11, cocoa and windows, to open a GL canvas
[00:26]<sfrvr>+mohadib: the whole toolkit is 6000 lines of code
[00:26]<mjxrmy2>+tiny
[00:26]<2zfzjr-cug>+how do write a constructor for an unnamed nested class? :P
[00:27]<sfrvr>+balrog-kun: new Runnable() { { /* constructor */ } public void run() { ... } }
[00:27]<2zfzjr-cug>+slava: oh cool!
[00:27]<2zfzjr-cug>+thanks
[00:27]<2zfzjr-cug>+i was assuming it wasn't going to be possible
[00:27]<gzgydzyf>+balrog-kun: you do not, but you can have an anonymous initilizer... (almost the same thing, but has a different name)
[00:27]<2fzfdnz>+it's not really a constructor, though
[00:27]<2fzfdnz>+as ernimril said :-)
[00:27]<2zfzjr-cug>+i see
[00:28]<2fzfdnz>+you can have those in named classes, too
[01:07]<hyczzu6n>Okay, I've done that. But when I invoke javadoc (through netbeans, btw), all packages, including test, are being generated stil.
[01:07]<hyczzu6n>*still.
[01:11]<2zfzjr-cug>ah, does someone know a way to make the applets viewed with the mozilla plugin use ALSA instead of OSS?
[01:12]<ljry>balrog-kun: have you tried using alsadsp for that?
[01:12]<yffnrrfa0mn>night guys
[01:12]<2zfzjr-cug>Logi: nope, i've tried running mozilla with aoss but it didn't help
[01:13]<ljry>balrog-kun: ok, just a thought..
[01:14]<2zfzjr-cug>Logi: is alsadsp usually in a separate package?
[01:15]<ljry>balrog-kun: I was just wondering why it's not on my kubuntu machine
[01:15]<ljry>balrog-kun: so I suppose it is
[01:16]<2zfzjr-cug>ok, thanks
[01:18]<2zfzjr-cug>i can't seem to find alsadsp though
[01:18]<ljry>ah, I am being confused
[01:19]<ljry>there is an artsdsp which captures the oss devices and sends output to the arts daemon
[01:19]<ljry>it can then be configured to use alsa rather than oss
[01:19]<2zfzjr-cug>ah, i see
[01:19]<ljry>which would need you to be a kde user (I think)
[01:19]<2zfzjr-cug>i prefer not to install arts at the moment
[01:19]<ljry>so I'm just bloody useless then :)
[01:20]<2zfzjr-cug>that's like me then :)
[01:23]<wyfw>Hmm..
[01:23]<vjdx->anyone knows a good lib which filters html tags/attributes?
[01:23]<wyfw>I have a resource bundle that I use for l10n.
[01:23]<wyfw>The text in the l10n file is in UTF-8.
[01:24]<ljry>sigh, an hour-long debugging session finished
[01:24]<wyfw>But the applet that loads the strings garbles the strings.
[01:24]<ljry>I made an == vs. != error in exception handling code
[01:24]<gzgydzyf>tomh-: you could try htmlparser or you could try the lib in my proxy...
[01:24]<vjdx->ok i will check
[01:24]<wyfw>How can I make it see that it is UTF-8 text?
[01:24]<sju|auvvnz>Hikaru79: If you use ant you can have an exclusion list or fileset or something I'm pretty sure
[01:27]<azdjzyaas>wilx: Readers accept a character encoding, I believe.
[01:28]<wyfw>I don't use streams, the text comes from ResourceBundle.getBundle().
[01:29]<ljry>wilx: unfortunately resource bundles have to be in iso-8859-1 encoding
[01:30]<wyfw>O_O
[01:30]<ljry>yeah, pretty sucky
[01:31]<wyfw>I thought it was supposed to be used for l10n, which pretty much means it needs to have a way of encoding arbitrary language.
[01:32]<ljry>you can use some sort of escaping, can't remember how
[01:33]<ljry>perhaps just \u0000 notation?
[01:33]<wyfw>omg
[01:34]<ljry>yup
[01:34]<wyfw>What am I suposed to use as edit tool?
[01:34]<ljry>IDEA handles this pretty well, but I don't often write this stuff and anyway, all the languages I know fit inside the latin-1 encoding
[01:35]<sju|auvvnz>sigh.. back to square one
[01:35]<sju|auvvnz>dammit
[01:35]<gudedj>~javadoc Random
[01:35]<rrvr2jv>Guyzmo, please see java.util.Random: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Random.html
[01:36]<hyczzu6n>wilx, I always use native2ascii and native2ascii -r to handle stuff like that. Works like a charm.
[01:37]<ljry>wilx: what language do you need to translate to?
[01:39]<sju|auvvnz>today has been a waste of time
[01:56]<myrrmrmrrr>~snapping







