code logs -> 2010 -> Sun, 18 Apr 2010< code.20100417.log - code.20100419.log >
--- Log opened Sun Apr 18 00:00:33 2010
--- Day changed Sun Apr 18 2010
00:00
<@AnnoDomini>
I would also like to make such a data structure, like a custom IList with all the fields I need, but I don't have the faintest idea how.
00:02 * AnnoDomini is going to try using a raw SQL query, in case this is something with the goddamn ORM rather than the lists.
00:05
<@AnnoDomini>
Nope, still getting an IList of Object[].
00:18
< gnolam>
McMartin: To stabbing Sun's lazy, incompetent devs or my game?~
00:19 * AnnoDomini haaaaaaaates NHibernate.
00:28 You're now known as TheWatcher[T-2]
00:33 You're now known as TheWatcher[zZzZ]
00:43
< RichardBarrell>
I still don't get why anybody would want to use an ORM.
00:44
< RichardBarrell>
If you want to use an ODB, just use an ODB. There exist good ACID ODBs, I use one from day to day at work. (ZODB, which kinda rocks if you happen to want to use Python).
00:44
< RichardBarrell>
But other than that, relational algebra is itself a really good abstraction. Why do people want to get *away* from that?
00:45
<@AnnoDomini>
I do not WANT any of this.
00:45
<@AnnoDomini>
I NEED it to pass this class.
00:45
<@AnnoDomini>
When the lecturer says "do this in NHibernate" I bloody well do it in NHibernate or get failed.
00:46
< Namegduf>
Every problem with conflicting designs, issues with design, or models that don't fit together, can be solved by gluing more things into the design.
00:46
< Namegduf>
I think people just apply that solution too far. :P
00:47 * AnnoDomini posts a question on Stack Overflow, which is really nice.
00:49 AnnoDomini [annodomini@Nightstar-a519dbfe.adsl.tpnet.pl] has quit [[NS] Quit: HATE HATE HATE.]
00:56
< gnolam>
http://www.lysator.liu.se/~gnolam/temp/ocean_soft_lens.png <- what it looks like
01:05
< PinkFreud>
bizarre
01:06 Attilla [Attilla@FBC920.3488E2.03ED7E.3EC87F] has quit [[NS] Quit: ]
01:09 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Connection closed]
01:19 Orthia [orthianz@Nightstar-65cbc144.xnet.co.nz] has joined #code
01:29 Derakon is now known as Derakon[AFK]
01:49
< RichardBarrell>
Boat!?
02:05 Derakon[AFK] is now known as Derakon
02:08
< Namegduf>
Maybe someone here will know- I doubt I'll get time, but is there an effective method for writing JUnit tests for a Swing interface?
02:10 * Namegduf isn't sure how one would "test" an interface
02:16 RichardBarrell [mycatverbs@Nightstar-16573ac5.bb.sky.com] has left #code ["ERC Version 5.3 (IRC client for Emacs)"]
02:17 Serah [Z@5E691D.FC7C16.7074BE.95D87D] has joined #code
02:19
<@Vornicus>
There's the awt robot
02:25 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:38
<@Kazriko>
-_- Apparently the 3rd monitor on my ATI card has to be hooked in through DisplayPort. HDMI won't work.
02:49 Serah [Z@5E691D.FC7C16.7074BE.95D87D] has quit [Ping timeout: 121 seconds]
03:16 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
03:24 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
03:27 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
03:30 Vornotron [vorn@ServerAdministrator.Nightstar.Net] has joined #code
03:31 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
03:31 Vornotron is now known as Vornicus
03:52
< celticminstrel>
Hm. If you "kill pages" in Google Chrome, do the corresponding tabs close?
03:53
< Vornicus>
Should
03:53
< celticminstrel>
Or does it just make them show the "oops, this tab crashed" page?
04:33 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
04:56 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
06:29 Derakon is now known as Derakon[AFK]
07:11 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
07:49 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
08:12 Vornicus is now known as Vornicus-Latens
08:40 Attilla [Attilla@FBC920.3488E2.03ED7E.3EC87F] has joined #code
08:40 mode/#code [+o Attilla] by Reiver
09:22 AnnoDomini [annodomini@Nightstar-283f20f8.adsl.tpnet.pl] has joined #code
09:22 mode/#code [+o AnnoDomini] by Reiver
09:32
<@AnnoDomini>
Yay, got useful answers from SO.
09:35
<@AnnoDomini>
Well, mostly.
09:35
<@AnnoDomini>
I must now figure out why it doesn't work.
10:31 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
10:35
<@AnnoDomini>
Okay, the project is done. Two pages have solutions which are hideous and contrary to the point of using ORM, but they work.
10:35
<@AnnoDomini>
If I manage to figure out how to use HQL for them, I'll change that, but it's somewhat unlikely.
11:24 You're now known as TheWatcher
12:40 Orthia [orthianz@Nightstar-65cbc144.xnet.co.nz] has quit [Client closed the connection]
12:46 Orthia [orthianz@Nightstar-65cbc144.xnet.co.nz] has joined #code
13:02 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
13:44 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
13:57 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
14:12
<@jerith>
Quick poll: Should bitflags be defined as (0x0040) or (1 << 6)?
14:15
< gnolam>
I have no real preference in that (I've used both).
14:15
< gnolam>
Does it really matter, though? As far as the end programmer is concerned, they're Magic Values That Shouldn't Be Touched anyway.
14:16
<@jerith>
I prefer the latter, because it makes a "0x0060" bug less likely.
14:16
<@jerith>
gnolam: I'm defining constants in C/C++.
14:16
< gnolam>
In which case the naming of the enums/defines/plain old constants is what matters.
14:17
<@jerith>
Correct.
14:17
< gnolam>
But yes. The latter is a bit more readable.
14:17
< gnolam>
The former is a bit more convenient when you want to make compound flags though.
14:18
<@jerith>
Perhaps, but it's far less obvious that they're compound.
14:24
<@jerith>
I've seen them defined in decimal, which is just plain *wr0ng*.
14:24
<@jerith>
*wrong
14:26
< gnolam>
... yes.
14:31 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
14:31
< gnolam>
What kind of sick mind would even come up with the idea?
14:31
< gnolam>
The whole point of hex is that you can easily convert to and from binary in your head!
14:33
< celticminstrel>
What are you talking about?
14:34
<@jerith>
15:12 <@jerith> Quick poll: Should bitflags be defined as (0x0040) or (1 << 6)?
14:38
< celticminstrel>
I personally would prefer the latter, because it's clear at a glance which bit is set.
14:39
<@jerith>
I've also seen people use just the bit number, and then get/set it with a macro that does the shift.
14:39
<@jerith>
Only in the embedded world, though.
14:40 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
14:40
< celticminstrel>
Using the 0b... extension would work too, if GCC supported it.
14:41
< celticminstrel>
At least, if it does, I've no idea how to enable it.
14:41
<@jerith>
That's too verbose, I think.
14:41
< celticminstrel>
But the bit-shift is probably a little clearer.
14:41
< celticminstrel>
Yeah.
14:42
<@jerith>
The binary's useful for multibit values, but hex is probably still better.
15:00 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
15:26 * gnolam fixes his precaching.
15:26
< gnolam>
Much better.
15:28 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Connection reset by peer]
15:29 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
15:38 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Client closed the connection]
15:39 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
15:41 Derakon[AFK] is now known as Derakon
15:52 Orthia [orthianz@Nightstar-65cbc144.xnet.co.nz] has quit [Ping timeout: 121 seconds]
16:00 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Connection reset by peer]
16:00 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
16:18 Derakon is now known as Derakon[AFK]
16:45 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Client closed the connection]
16:45 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
16:46 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
16:47 Vornicus-Latens [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: ]
16:50 Vornicus-Latens [vorn@ServerAdministrator.Nightstar.Net] has joined #code
16:50 mode/#code [+o Vornicus-Latens] by Reiver
18:24 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
18:36
< celticminstrel>
dAlek!
18:45 * gnolam WTHs.
18:50
< gnolam>
Argh.
18:51 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
18:51
< gnolam>
I had accidentally switched gl_FrontColor = gl_Color for gl_Color = gl_FrontColor.
18:51
< gnolam>
Strangely, the shader compiler did not complain.
19:02
< gnolam>
(This is one of the downsides to the otherwise quite enjoyable art of shader programming - there's little hand-holding from the compilers)
19:03
< gnolam>
(The other big downside is that graphics drivers tend to be awfully buggy, so you can never be sure if you've made an error or if you're encountering a driver bug)
20:13 Derakon[AFK] is now known as Derakon
20:14 nif [MapAkn@Nightstar-1185804a.lodz.mm.pl] has joined #code
20:18 Orthia [orthianz@Nightstar-65cbc144.xnet.co.nz] has joined #code
21:08 Orthia [orthianz@Nightstar-65cbc144.xnet.co.nz] has quit [Ping timeout: 121 seconds]
21:10 nif [MapAkn@Nightstar-1185804a.lodz.mm.pl] has quit [[NS] Quit: leaving]
21:15 crem [moo@Nightstar-8ca3eea7.adsl.mgts.by] has joined #code
21:23 Taki^ [jwjw@Nightstar-9b459f81.consolidated.net] has quit [[NS] Quit: ]
22:22 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
22:24 Taki^ [jwjw@Nightstar-9b459f81.consolidated.net] has joined #code
23:05 Attilla [Attilla@FBC920.3488E2.03ED7E.3EC87F] has quit [[NS] Quit: ]
23:30 AnnoDomini [annodomini@Nightstar-283f20f8.adsl.tpnet.pl] has quit [[NS] Quit: EXIT LITE, ENTER NITE.]
--- Log closed Mon Apr 19 00:00:55 2010
code logs -> 2010 -> Sun, 18 Apr 2010< code.20100417.log - code.20100419.log >