code logs -> 2007 -> Mon, 07 May 2007< code.20070506.log - code.20070508.log >
--- Log opened Mon May 07 00:00:03 2007
00:07 Vornicus-Latens is now known as Vornicus
00:09 Serah [~Z@Nightstar-8842.ds1-ba.adsl.cybercity.dk] has quit [Killed (NickServ (GHOST command used by Ev3))]
00:10 Serah [~Z@Nightstar-8842.ds1-ba.adsl.cybercity.dk] has joined #Code
00:10 mode/#code [+o Serah] by ChanServ
00:40 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: ]
00:47 Vornicus is now known as IanMusgrave
00:50 ReivClass is now known as Reiver
01:16 Thaqui [~Thaqui@Nightstar-17628.jetstream.xtra.co.nz] has joined #code
01:16 mode/#code [+o Thaqui] by ChanServ
02:57 Reiver is now known as ReivClass
06:02 IanMusgrave is now known as Vornicus
06:35 GS[Away] [~Rob@Nightstar-4346.pools.arcor-ip.net] has quit [Ping Timeout]
06:40 ReivClass is now known as Reiver
07:24 Serah [~Z@Nightstar-8842.ds1-ba.adsl.cybercity.dk] has quit [Connection reset by peer]
07:25 Serah [~Z@Nightstar-8842.ds1-ba.adsl.cybercity.dk] has joined #Code
07:25 mode/#code [+o Serah] by ChanServ
07:34 AnnoDomini [~farkoff@Nightstar-29083.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
08:17 You're now known as TheWatcher
08:49 KBot [~karma.bot@Nightstar-29761.neoplus.adsl.tpnet.pl] has joined #Code
08:50 KarmaBot [~karma.bot@Nightstar-29083.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
08:50 KBot is now known as KarmaBot
09:06 You're now known as TheWatcher[afk]
09:39 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
09:39 mode/#code [+o gnolam] by ChanServ
10:21 Mahal is now known as MahalBed
10:45 Chalcedon [~Chalcedon@Nightstar-2310.ue.woosh.co.nz] has quit [Quit: Gone]
12:29 Thaqui [~Thaqui@Nightstar-17628.jetstream.xtra.co.nz] has quit [Quit: Leaving]
12:39 Thaqui [~Thaqui@Nightstar-17628.jetstream.xtra.co.nz] has joined #code
12:39 mode/#code [+o Thaqui] by ChanServ
12:58 You're now known as TheWatcher
13:39 Thaqui [~Thaqui@Nightstar-17628.jetstream.xtra.co.nz] has left #code [Leaving]
14:36 MzCoCoPoP [~dddd@Nightstar-25155.dyn.iinet.net.au] has joined #Code
14:37
< MzCoCoPoP>
Raif is ^horny@Nightstar-22484.hsd1.ca.comcast.net * I love cock up my ass
14:37
< MzCoCoPoP>
Raif on @#cocklovers #Code @#? @#looking_For_guys
14:37
< MzCoCoPoP>
Raif using DeepThought.NY.US.Nightstar.Net
14:37
< MzCoCoPoP>
Raif has been idle 30 secs, signed on Mon May 07 23:40:16 2007
14:37
< MzCoCoPoP>
Raif End of /WHOIS list.
14:38 MzCoCoPoP was kicked from #code by Vornicus [Byee]
14:38 MzCoCoPoP [~dddd@Nightstar-25155.dyn.iinet.net.au] has joined #Code
14:39 MzCoCoPoP [~dddd@Nightstar-25155.dyn.iinet.net.au] has quit [Client exited]
14:39 MzCoCoPoP [~dddd@Nightstar-25155.dyn.iinet.net.au] has joined #Code
14:40 MzCoCoPoP [~dddd@Nightstar-25155.dyn.iinet.net.au] has quit [Client exited]
14:40 MzCoCoPoP [~dddd@Nightstar-25155.dyn.iinet.net.au] has joined #Code
14:41 MzCoCoPoP [~dddd@Nightstar-25155.dyn.iinet.net.au] has quit [User has been banned]
15:09 GeekSoldier [~Rob@Nightstar-4346.pools.arcor-ip.net] has joined #code
16:30 Reiver is now known as ReivZzz
16:42 Serah [~Z@Nightstar-8842.ds1-ba.adsl.cybercity.dk] has quit [Quit: .reloc]
17:07 ReivZzz is now known as ReivSLEP
17:08 You're now known as TheWatcher[afk]
17:33 ToxicFrog is now known as ToxicFrog|wr0k
17:41 EvilDarkLord is now known as Icarus
17:45 Vornicus is now known as Vornicus-Latens
17:56 GeekSoldier_ [~Rob@Nightstar-4094.pools.arcor-ip.net] has joined #code
17:57 GeekSoldier [~Rob@Nightstar-4346.pools.arcor-ip.net] has quit [Ping Timeout]
18:09
<@ToxicFrog|wr0k>
...what the fuck, aptitude.
18:09
<@ToxicFrog|wr0k>
I mean, honestly.
18:09
<@jerith>
?
18:09
<@ToxicFrog|wr0k>
...ok, apt-get goes it too.
18:09
<@ToxicFrog|wr0k>
*does it too.
18:10
<@ToxicFrog|wr0k>
jerith: if you have any dependency issues - like, say, you had to install an odd library version because Ubuntu refuses to acknowledge the existence of 32-bit apps - apt-get and aptitude will refuse to do anything until you "fix" this.
18:10
<@ToxicFrog|wr0k>
In this case, the "fix" would cause, err, xclock to start working again. At the cost of breaking Opera and NXclient.
18:11
<@jerith>
I think there's a "peg this package at version x" option somewhere...
18:11
<@ToxicFrog|wr0k>
Yeah, the issue here is that it's the latest version, it's the wrong /arch/
18:12
<@ToxicFrog|wr0k>
So it wigs out because xclock is missing its libraries and refuses to install anything until I install the x86_64 version.
18:12
<@jerith>
Ah.
18:12 * jerith ponders.
18:12
<@ToxicFrog|wr0k>
And installing the x86_64 version breaks vital software because Ubuntu has dick in the way of 32bit support.
18:13
<@ToxicFrog|wr0k>
Between this and having to manually hack xorg.conf to get dual-head working, I am forced to conclude that Ubuntu's claims of being the most user-friendly linux are, in fact, damn lies.
18:13
<@jerith>
:-/
18:19 You're now known as TheWatcher
18:24
< GeekSoldier_>
the claims are valid if you intend to use it on 32bit platform on one monitor, with a default install set.
18:24
< GeekSoldier_>
:)
18:42
<@ToxicFrog|wr0k>
GeekSoldier_: as long as you never ever install the display configuration tools!
18:42
<@ToxicFrog|wr0k>
Because if you're using an nVidia card, this uninstalls the display driver and your system stops working next boot.
18:44
<@ToxicFrog|wr0k>
Although you can fix this by switching to tty1 and doing a $ sudo apt-get remove nvidia-settings nvidia-xconfig && sudo apt-get install nvidia-glx
18:45
<@ToxicFrog|wr0k>
Followed by sudo /etc/init.d gdm restart
18:45
<@ToxicFrog|wr0k>
Which is of course intuitively obvious even to inexperienced users.
18:45
< GeekSoldier_>
naturally. that is the first thing I'd think of.
18:46 AnnoDomini [~farkoff@Nightstar-29761.neoplus.adsl.tpnet.pl] has joined #Code
18:46 mode/#code [+o AnnoDomini] by ChanServ
18:46 GeekSoldier_ is now known as GeekSoldier
19:31 MahalBed is now known as Mahal
19:56
<@AnnoDomini>
"addActionListener(java.awt.event.ActionListener) in java.awt.Button cannot be applied to (Pawel)" <- This error confuses me. WHY can't it be added?
19:57
<@jerith>
Because awt is a steaming pile of rancid dung?
19:58
<@AnnoDomini>
Likely. This is not helpful however; whether or not I like AWT, I need to make that cruddy homework program for tomorrow.
20:00
<@AnnoDomini>
Does anybody here have an idea?
20:00
<@jerith>
Context?
20:00
<@jerith>
Pastebin the relevant bits?
20:01
<@AnnoDomini>
I don't know which are relevant, honestly. I'm a near-total newbie. What I'm trying to do is add a listener to a button in a class extended from Frame.
20:03
<@AnnoDomini>
http://pastie.caboo.se/59636
20:03
<@AnnoDomini>
That's the entire thing.
20:03
<@AnnoDomini>
What it is supposed to do is draw a function. It does that.
20:04
<@AnnoDomini>
Now, my homework is to make it possible for the amplitude, frequency and phase of that cosine to be changed via buttons and text fields.
20:06 * jerith waits for the interwebs to be delivered...
20:08
<@AnnoDomini>
I'm pretty sure I should make Pawel implement ActionListener.
20:08
<@AnnoDomini>
Only that it ALSO returns an error.
20:08
<@jerith>
Does Pawel implement the ActionListener interface?
20:08 Mahal is now known as MahalGone
20:08
<@jerith>
If you tell it to implement the interface, you then need to provide all the methods that interface defines.
20:09
<@jerith>
In this case, actionPerformed().
20:10
<@AnnoDomini>
I don't understand. :/
20:11
<@AnnoDomini>
"Pawel is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener"
20:11
<@jerith>
ActionListener is an interface that basically says "I can listen for an ActionEvent".
20:12
<@jerith>
The way it does this is by providing an actionPerformed() method that the event handler can call with the event.
20:12
<@AnnoDomini>
Okay.
20:12
<@AnnoDomini>
What does that error I pasted mean?
20:13
<@jerith>
What a button does when you click it is call actionPerformed() on each of its registered ActionListeners with an event.
20:13 * AnnoDomini nods.
20:14
<@jerith>
It means that you haven't given it an actionPerformed() method.
20:14
<@jerith>
The interface just says "These method signatures will be there". It's up to you to implement them.
20:14
<@jerith>
In this case, you want to write an actionPerformed() method that will respond to that button by redrawing the graph.
20:14
<@AnnoDomini>
Butbutbut. The errors!
20:16
<@jerith>
The first error you pasted was Java saying "addActionListener() wants a parameter that implements the ActionListener interface".
20:16
<@AnnoDomini>
Alright. So then I try to implement it.
20:17
<@jerith>
The second is Java saying "You've told me that Pawel implements ActionListener, but I can't find the actionPerformed() method on it".
20:17
<@AnnoDomini>
AH.
20:18
<@AnnoDomini>
Thank you.
20:19
<@jerith>
So you need to write an actionPerformed() method that accepts an ActionEvent, checks that it comes from the right button and does whatever you want the button press to do.
20:19
<@jerith>
Not bad for someone who has never done any Java gui stuff. ;-)
20:22
<@AnnoDomini>
YAY! Now I can get it to refresh the damn thing!
20:23
<@AnnoDomini>
Onwards to somehow getting variables from the textfields.
20:24
<@jerith>
Did you skip the lectures where they taght this stuff or do they expect you to pick it up on your own?
20:24
<@jerith>
If the latter, they have a much higher standard than any programming course I've ever attended. :-)
20:25
<@AnnoDomini>
The latter. The lectures explain basic syntax and are FAR ahead of the exercises.
20:25
<@jerith>
If the former, I hope you got some quality sleep. ;-)
20:26
<@AnnoDomini>
Hell, I'm glad the teacher actually showed us how to make the graph. The one we had last semester wouldn't, even when asked to.
20:26
<@jerith>
"Far ahead"?
20:26
<@jerith>
That sucks.
20:27
<@jerith>
That sucks even harder than my lag.
20:28
<@AnnoDomini>
Far ahead means the lecturer (we have three different programming people - lecturer, exercise teacher, project overseer) is talking about stuff we'd be doing in, uh, two years from now at the rate it gets explained to us in practice on the exercises.
20:31
<@jerith>
Oh.
20:31
<@jerith>
That sounds unbalanced.
20:31
<@AnnoDomini>
We are obviously expected to have no lives besides what they want us to do for class.
20:32
<@AnnoDomini>
I understand more and more why students are drawn to alcoholicism.
20:33
<@jerith>
I think it's more because they have their first taste of freedom away from home and go to extremes.
20:34
<@AnnoDomini>
Eh. Those who wanted to rebel did so in grade school.
20:38 Syloq [Syloq@NetAdmin.Nightstar.Net] has joined #code
20:38
<@AnnoDomini>
Gnar. What was the way to convert a String into an Integer?
20:39
<@jerith>
Integer.parse(), unless I'm thinking of Ruby.
20:41
<@AnnoDomini>
Integer.decode(), apparently.
20:41
<@AnnoDomini>
But I should be using a float here.
20:42
< Icarus>
String -> Integer -> Float then I guess.
20:42
<@jerith>
No, that wouldn't let you type 3.5
20:42
<@jerith>
I apparently don't have a java system installed. :-(
20:49
<@AnnoDomini>
Glee! It worketh!
20:49 * jerith dances for joy.
20:50
<@AnnoDomini>
Thank you muchly for your assistance, jerith.
20:50
<@AnnoDomini>
Now to load it up on my pendrive.
20:50 AnnoDomini [~farkoff@Nightstar-29761.neoplus.adsl.tpnet.pl] has quit [Quit: No fighting in the War Room!]
20:55 Chalcedon [~Chalcedon@Nightstar-2310.ue.woosh.co.nz] has joined #code
20:55 mode/#code [+o Chalcedon] by ChanServ
20:56 AnnoDomini [~farkoff@Nightstar-29761.neoplus.adsl.tpnet.pl] has joined #Code
20:56 mode/#code [+o AnnoDomini] by ChanServ
21:00
<@AnnoDomini>
Whoah. In my extreme pessimism, I am pleasantly surprised. I did not expect to have ANY time for myself this evening.
21:01 * jerith takes AnnoDomini's time in payment for having to think about Java.
21:01
<@AnnoDomini>
Nuuuu.
21:07
<@AnnoDomini>
Hm. How much of my time would constitute a fair payment for you to explain the basics (the really basic basics) of using databases in Java?
21:08
<@jerith>
I'd have to learnit first.
21:08
< Icarus>
Still a course assignment?
21:08
<@AnnoDomini>
This is my project. The tougher one, anyway.
21:08
<@jerith>
But I'd be happy to give you whatever pointers I can find whenever we're both online.
21:09
<@AnnoDomini>
My lazyass comrades will likely start learning a week before the thing is due.
21:09
<@AnnoDomini>
Thus, I need to work for four.
21:09
<@jerith>
I'd suggest looking for a good ORM.
21:09
<@AnnoDomini>
ORM?
21:09
< Icarus>
Are we talking about real database management systems like MySQL or some Java database thingy?
21:09
<@jerith>
Object /Relational Model.
21:09
<@jerith>
-/
21:09
<@AnnoDomini>
I'm talking about something that will allow me to make graphs.
21:10
<@jerith>
Essentially it makes your db tables look like Java objects.
21:10
<@jerith>
So you call methods instead of writing SQL.
21:10
<@AnnoDomini>
The project itself is to create a utility application for stock exchange-related stuff.
21:11
<@AnnoDomini>
One of the requirements is that data must be stored in a database.
21:11
<@AnnoDomini>
And that it must be able to read data from files.
21:11
<@jerith>
I think Hibernate is the popular Java ORM.
21:11
< Icarus>
Oh. Write it in Python and call the project from the commandline with Java~
21:12
<@jerith>
Ruby has ActiveRecord and Python has SQLAlchemy.
21:12
<@jerith>
:-)
21:12
< Icarus>
(But I don't know much about databases in Java, really. SQL I know some if you need help with that as such.)
21:12
<@jerith>
Icarus: I think they might want to look at his code...
21:12 GeekSoldier is now known as GS[Away]
21:12 * GS[Away] is now away - Reason : sleep.
21:13
<@jerith>
This doesn't really sound like a great fit for a relational db.
21:13
<@jerith>
And I'm not a big fan of shoving everything and its cousing into a model that doesn't really work.
21:13
<@jerith>
But meh.
21:13
<@jerith>
-g
21:14
< Icarus>
If they are cool people they'll give him an A for thinking outside the box ;)
21:14 * AnnoDomini is totally ignorant of database lore, and not very good at Java. Guess what this makes me?
21:14
<@AnnoDomini>
Team leader.
21:14 * AnnoDomini weeps.
21:14
<@jerith>
If they were cool people they wouldn't be teaching Java...
21:14
< Icarus>
Point.
21:15
<@jerith>
Do you have to use a particular db or just a db?
21:15
<@AnnoDomini>
Everything is vague about the project. Any db that works.
21:15 * Icarus recommends MySQL, for he is an incurable fanboy. Plus it has a lot of easy-to-use bindings last I checked.
21:16
<@gnolam>
JDBC?
21:16 * jerith recommends Postgres because MySQL has a lot of ... interesting ... features.
21:16
<@AnnoDomini>
To add insult to injury, the requirement is that we do this like professionals.
21:17
<@jerith>
But I think folks around here know MySQL better and thus it would appear to be the wiser choice.
21:17
<@AnnoDomini>
By that I mean loggers, proper directory structure, build files, Ant, etc.
21:17
<@gnolam>
I'd go with *SQL and JDBC, personally. The latter simply because it's built into the standard JDK.
21:17
<@jerith>
"Like professionals" -- so just dive into the code with no thought for design and such?
21:17
<@AnnoDomini>
Yes.
21:17 * AnnoDomini weeps more.
21:18 * jerith puts his hands over his ears at the mention of ant. "Lalalalala I can't hear you lalalalala."
21:18
<@AnnoDomini>
I have some vague idea where to begin. My teammates do not.
21:18
<@gnolam>
I think it means "Snipe at each other and rat out your co-developers to curry favor with the management".
21:18
<@jerith>
Firstly, log4j is your very bestest friend in the whole world.
21:19
<@jerith>
It's trivial to configure and incredibly useful.
21:19
<@jerith>
You want to log *everything* at DEBUG level.
21:20
<@AnnoDomini>
Once I figure out how to use it.
21:20
<@AnnoDomini>
How do you use it?
21:20
<@jerith>
A lot of stuff (normal operations and such) at INFO level.
21:20
<@jerith>
Nasties at WARM and ERROR levels.
21:21
<@AnnoDomini>
From the example class given us by the project overseer, it's like calling a function that puts some text into the logs or something?
21:22
<@jerith>
he log4j docs are fairly good.
21:22
<@jerith>
Essentially, you initialise a static logger for each class and then call logger.info("Message"); and the like.
21:22
<@jerith>
Configuration is done in a properties file.
21:22
<@jerith>
*WARN
21:22
<@jerith>
I hate this lag.
21:22
<@jerith>
I'm going to see if it's not perhaps a network issue, because the laptop never drops this many packets.
21:22
<@jerith>
Except it's actually time for me to go to bed.
21:23
<@jerith>
So it's not worth booting the laptop.
21:25
<@AnnoDomini>
Buh-bye!
21:25
<@jerith>
I'm not going just yet.
21:25
<@jerith>
:-
21:25
<@jerith>
)
21:26
<@AnnoDomini>
I see. This logger stuff appears to be simple. I hope it is.
21:26
<@jerith>
It is.
21:27
<@jerith>
You configure the root logger (no need for anything else in a project that size) and log everything.
22:07 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Z?]
22:14 Icarus is now known as EvilDarkLord
22:30 Chalcedon is now known as ChalcyAFK
23:00 You're now known as TheWatcher[T-2]
23:02 You're now known as TheWatcher[zZzZ]
23:18 Serah [~Z@87.72.36.ns-26407] has joined #Code
23:18 mode/#code [+o Serah] by ChanServ
23:26 ChalcyAFK is now known as Chalcedon
23:47 AnnoDomini [~farkoff@Nightstar-29761.neoplus.adsl.tpnet.pl] has quit [Quit: Juffo-Wup is a *candle*. It is filled with many *candy bars*.]
23:52 AnnoDomini [~farkoff@Nightstar-29761.neoplus.adsl.tpnet.pl] has joined #Code
23:52 mode/#code [+o AnnoDomini] by ChanServ
--- Log closed Tue May 08 00:00:21 2007
code logs -> 2007 -> Mon, 07 May 2007< code.20070506.log - code.20070508.log >