code logs -> 2014 -> Mon, 01 Dec 2014< code.20141130.log - code.20141202.log >
--- Log opened Mon Dec 01 00:00:39 2014
00:06 MantaWaffles [MantaWaffle@Nightstar-ujj.2ik.216.24.IP] has quit [Ping timeout: 121 seconds]
00:31
<@Alek>
the hell
00:31
<@Alek>
I'm benchmarking graphics options in Arkham Origins, for playability.
00:31
<@Alek>
firstly, at default it has better FPS than the previous 2 games, Asylum and City.
00:32
<@Alek>
secondly, FXAA High benchmarks at higher minimum FPS than FXAA Low.
00:32
<@Alek>
that... seems backwards to me. o_o
00:35
<&Derakon>
The first isn't unreasonable, since engines get optimized over time.
00:35
<&Derakon>
The second I have a harder time explaining.
00:36
<&Derakon>
Best guess is that if you did the High test after the Low test, then maybe some behind-the-scenes loading was already done for it.
00:36
<&Derakon>
Try testing Low again after testing High, maybe.
00:39 io\PACKERS is now known as iospace
00:42
<@Alek>
actually, default was high, then I switched to low to test, then tested again with high to make sure it wasn't a fluke.
00:42
<@Alek>
it wasn't a fluke.
00:42
<&Derakon>
Weird.
01:12 Vorntastic [Vorn@Nightstar-i7ftmo.sub-70-215-25.myvzw.com] has joined #code
01:52 Lamabo [thelambo@Nightstar-ic6koa.fl.comcast.net] has quit [[NS] Quit: ]
01:55 Lambo [thelambo@Nightstar-ic6koa.fl.comcast.net] has joined #code
02:09 Orthia is now known as Reivles
02:43 Netsplit *.net <-> *.split quits: @gnolam
02:45 Netsplit over, joins: @gnolam
03:12 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:17 Vorntastic [Vorn@Nightstar-i7ftmo.sub-70-215-25.myvzw.com] has quit [[NS] Quit: Bye]
04:43
<@celticminstrel>
So... I have a string, and an index into the string. Then the string is split into several segments, and I need the new index for that particular character in the particular segment it ends up in.
04:44
<&Derakon>
Do you know the index of the segment?
04:45
<&Derakon>
index -= sum([lambda s: s.len() for s in segments[0:segIndex]])
04:46
<&Derakon>
That should work for Python, assuming I correctly remembered how to get a string's length in Python.
04:52
<@celticminstrel>
It's len(s). :P
04:52
<&Derakon>
D'oh.
04:52
<@celticminstrel>
I can know the index of the segment if I do normal iteration instead of foreach iteration.
04:54
<@celticminstrel>
Now I just need to decipher what you wrote.
04:54 Kindamoody[zZz] is now known as Kindamoody
04:56
<&Derakon>
for s in segments[0:segIndex]: index -= len(s)
04:56
<&Derakon>
That's a similar way of writing the same thing.
04:56
<&Derakon>
More efficient, marginally, since it doesn't bother to sum up the offsets.
04:56
<&Derakon>
Do you understand the segments[0:segIndex] notation?
04:56
<@celticminstrel>
Yes.
04:56
<@celticminstrel>
I do know Python, just am not using it for this.
04:56 * Derakon nods.
04:56
<&Derakon>
Not everyone who knows Python has seen list slicing, though. :)
04:57
<@celticminstrel>
So, "for s in segmments[0:segIndex]" is the same as "for(i=0; i<segIndex; i++)"...?
04:57 * celticminstrel has an extra m in there, whoops.
04:58
<&Derakon>
Well, you also have to do "s = segments[i]", but otherwise, yeah.
04:59
<@celticminstrel>
Right.
05:12 Derakon is now known as Derakon[AFK]
05:34
<@celticminstrel>
Yay, it works!
05:34
<@celticminstrel>
Well, there's still a couple of quirks to iron out, though.
06:00 Checkmate [Z@Nightstar-g2q2tu.customer.tdc.net] has quit [Ping timeout: 121 seconds]
06:10 grindhold [quassel@Nightstar-uufabm.zebra.fastwebserver.de] has quit [[NS] Quit: No Ping reply in 180 seconds.]
06:10 grindhold [quassel@Nightstar-uufabm.zebra.fastwebserver.de] has joined #code
06:12
<@celticminstrel>
Well, so far my text field seems to behave as expected with respect to keyboard input ... until it overflows. >_>
06:20 Harlow [harlow@Nightstar-pq0497.il.comcast.net] has joined #code
06:29
<@celticminstrel>
Oh, I forgot to implement up/down arrows...
06:29
<@celticminstrel>
That'll be hard.
06:56 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
07:34
<@Julius>
Hehe. "long void".
07:50 Harlow [harlow@Nightstar-pq0497.il.comcast.net] has quit [[NS] Quit: sleep]
08:04 Xires is now known as ^Xires
08:17 ^Xires is now known as Xires
09:18 Kindamoody is now known as Kindamoody|afk
10:13 Reivles [orthianz@Nightstar-gsd.bg2.224.119.IP] has quit [Ping timeout: 121 seconds]
10:14 * Julius refactors his code to be more professional. This seems to mean that useful methods need to be nested under a heap of parent objects.
10:15
<@Julius>
OLD: DAO db = new DAO(); List<Stuff> list = db.getMyStuff(id);
10:16
<@Julius>
NEW: List<Stuff> list = getFoo().getBar().getBaz().getMyStuff(id);
10:17 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
10:17 mode/#code [+o himi] by ChanServ
10:17 Orthia [orthianz@Nightstar-3h2.die.224.119.IP] has joined #code
10:17 mode/#code [+o Orthia] by ChanServ
11:40 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
13:39 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
13:39 mode/#code [+o PinkFreud] by ChanServ
13:48
<@Tarinaky>
https://github.com/Olde-Skuul/doom3do
14:03
<@TheWatcher>
"I had to write my own string.h ANSI C library because the one 3DO supplied with their compiler had bugs! string.h??? How can you screw that up!?!?!"
14:03
<@TheWatcher>
... that's a really good question
14:27
<&ToxicFrog>
<string.h> contains at least a few locale-aware functions, which are always easy to get wrong
14:28
<&ToxicFrog>
And a bunch more really simple functions that people will be tempted to prematurely optimize
14:28
<&ToxicFrog>
And strtok()
14:53 * Julius peers.
14:53
<@Julius>
It seems I'll have to write a couple of wrapper classes for a boolean value.
15:30
<@Tarinaky>
Dammit. I think people noticed that I fell asleep during the meeting this afternoon.
15:41
<@Julius>
Did anyone care?
15:42 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
15:42 mode/#code [+o Checkmate] by ChanServ
15:44 Red_Queen [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
15:44 mode/#code [+o Red_Queen] by ChanServ
15:46 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
15:47
<@Tarinaky>
Julius: I'm not sure, I fell asleep.
15:47 Red_Queen is now known as Checkmate
15:53 Checkmate is now known as Serah
15:53 Serah is now known as Checkmate
16:06
<@Julius>
I am reminded of a Dilbert strip where he tells Dogbert that he wore his shirt inside out, but nobody noticed. Dogbert replies that everybody noticed, but nobody cared.
16:53 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
17:53 Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has joined #code
17:53 mode/#code [+o Checkmate] by ChanServ
19:05 Kindamoody|afk is now known as Kindamoody
21:10 Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has quit [Operation timed out]
21:14 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
21:19 Kindamoody is now known as Kindamoody[zZz]
21:45 Orthia [orthianz@Nightstar-3h2.die.224.119.IP] has quit [Ping timeout: 121 seconds]
21:50 Orthia [orthianz@Nightstar-s0c.kmb.224.119.IP] has joined #code
21:50 mode/#code [+o Orthia] by ChanServ
22:03 macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
22:04 [R] [rstamer@genoce.org] has quit [Ping timeout: 121 seconds]
22:07 [R] [rstamer@Nightstar-d7h8ki.org] has joined #code
22:25 [R] [rstamer@genoce.org] has quit [Ping timeout: 121 seconds]
22:28 [R] [rstamer@Nightstar-d7h8ki.org] has joined #code
22:40 [R] [rstamer@genoce.org] has quit [Operation timed out]
22:40 [R] [rstamer@Nightstar-d7h8ki.org] has joined #code
22:46 [R] [rstamer@genoce.org] has quit [Ping timeout: 121 seconds]
22:46 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
22:46 mode/#code [+o Checkmate] by ChanServ
22:51 [R] [rstamer@Nightstar-d7h8ki.org] has joined #code
23:01 [R] [rstamer@genoce.org] has quit [Operation timed out]
23:09 [R] [rstamer@Nightstar-d7h8ki.org] has joined #code
23:10 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:10 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:14 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code
23:14 mode/#code [+o himi] by ChanServ
23:25 macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code
23:25 mode/#code [+o macdjord] by ChanServ
23:55 thalass [thalass@Nightstar-bakqqn.bigpond.net.au] has joined #code
23:55 mode/#code [+o thalass] by ChanServ
--- Log closed Tue Dec 02 00:00:55 2014
code logs -> 2014 -> Mon, 01 Dec 2014< code.20141130.log - code.20141202.log >

[ Latest log file ]