code logs -> 2010 -> Tue, 26 Jan 2010< code.20100125.log - code.20100127.log >
--- Log opened Tue Jan 26 00:00:29 2010
00:32
<@MyCatVerbs>
mount(8) just segfaulted on me.
00:32
<@MyCatVerbs>
I am quite perplexed.
00:32 Bobsentme [NSwebIRC@051596.69129A.C96753.910884] has joined #code
00:45 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
00:46 Derakon[AFK] is now known as Derakon
00:47 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
02:01
< Bobsentme>
It is dangerous to stroke a mans ego. Especially when the stroking involves telling them how they've single handedly saved a project.
02:01
< Bobsentme>
Even more so when the work you've asked them to do isn't entirely finished yet. >.>
02:02
< Bobsentme>
(got called into professors office today. Got told everything I've done on the php site so far is awesome and so forth. No changes at this point, but just wanted to let me know I've pushed the project ahead by several months)
02:03
<@Derakon>
Awesome. :)
02:06
< Alek>
not really.
02:06
< Alek>
the deadline is now several months closer.
02:06
< Alek>
¬_¬
02:06
< Bobsentme>
heh
02:07
< Bobsentme>
He drew a bell curve, and on the left side marked a spot, saying "This is where we were before you came along. Everyone knew what they wanted, but not how to do it. The top of the curve represents the problems we expected while doing it. "
02:07
< Bobsentme>
On the right side he marked another spot, saying 'This is where you are. You've surpassed the problem stage in just over a week, and, well...yeah, I'm extremely excited!"
02:08
<@Derakon>
You've been so buttered up you'd go well on toast.
02:08
< Bobsentme>
yeah. Scary, eh?
02:08
< Namegduf>
All in the name of cutting your deadline by months.
02:09
< Bobsentme>
To be fair, i am documenting everything, so if the project goes balls up, i can easily go to head of department and explain why it wasn't MY fault.
02:09
< Bobsentme>
(worked in IT too long not to have a backup plan.)
02:11
< Bobsentme>
Also mentioned I couldn't have gotten as far without people like you guys to rebound ideas off of. So...you know...if you get any calls asking why a certain project failed.... =P
02:12 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has left #code []
02:17 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has quit [Ping timeout: 121 seconds]
02:20 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has joined #code
02:42 Attilla [Attilla@FBC920.DDABA2.B6DD6A.6DBD7E] has quit [Client closed the connection]
02:43
< Alek>
LOL
02:43
< Bobsentme>
Morning Alek
02:44
< Alek>
evening Bob
03:23<~Reiver> #Code is a wonderful resource, innit? I'm somewhat proud of it. <g>
03:23<~Reiver> And for it, we can thank myself, Vorn, and a stoatburger.
03:26
< Bobsentme>
There are some very talented, willing to help people here. Good reason to be proud of it.
03:28<~Reiver> It actually started as a place for Vorn and I to help dear Chalcedon with a masters project. I created the channel after I realised there was no neutral ground to throw them both at to discuss programming, as while we had several channels of code-skilled folks, they were all social ones too, and I didn't want to drag a newcomer into a social channel just to pick Vorns brains.
03:29<~Reiver> ... as the project was being done, and all, I then realised that, y'know, there /wasn't a neutral channel for coders/. You could end up with an interesting discussion in one channel, point out that someone else might know... and then realise they were in the wrong channel.
03:29<~Reiver> Compounding the fact was that when the coders get excited, standard conversation in the channel has a habit of stalling~
03:30
<@Derakon>
s/coders/geeks/
03:30<~Reiver> So, uh, #Code got expanded. Now McM can talk to Bob can talk to Kaz, with nary a headache in sight. :p
03:30
<@Derakon>
I drop out of #fleet every once in a while when people go off on the latest videogame-I'm-not-playing.
03:30<~Reiver> Derakon: Well, the geeks still do it anyway. I merely removed the programmer subset from the issue; which was a rather common and distinctly 'you know it or you don't' subgenre. <g>
03:31 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has quit [Client closed the connection]
03:31
<@ToxicFrog>
Whatever happened to Chalcedon, anyways?
03:31
<@ToxicFrog>
I am curious how her project went (and she owes me a PDF ??)
03:32 * Vornicus misses Chalcy! :(
03:32<~Reiver> Ach!
03:33<~Reiver> I'm certain she could obtain the PDF for you
03:33<~Reiver> She did well, and completed her masters.
03:34
<@Vornicus>
YAY
03:34 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has joined #code
03:34 * Vornicus cookies Smith.
03:36
< Bobsentme>
excellent!
05:22
< Alek>
wow
05:23
< Alek>
with a medium/low-gpu-load game on AND MINIMIZED, Spelunky fails to load because of graphics card insufficiency. -_-
05:25
< Bobsentme>
ouch
05:54 Zedidiah [zag@Nightstar-d0088b95.or.comcast.net] has quit [Ping timeout: 121 seconds]
05:55 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
06:29 ErikMesoy|sleep is now known as ErikMesoy
06:30 Derakon is now known as Derakon[AFK]
06:30 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Power Cut: Back later. I love having a UPS~]
06:36 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code
06:36 mode/#code [+qo Reiver Reiver] by ChanServ
06:41 AnnoDomini [annodomini@Nightstar-d22d7158.adsl.tpnet.pl] has joined #code
06:41 mode/#code [+o AnnoDomini] by Reiver
07:08 You're now known as TheWatcher
07:39 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [Ping timeout: 121 seconds]
07:41 AbuDhabi [annodomini@Nightstar-f9a6281f.adsl.tpnet.pl] has joined #code
07:43 AnnoDomini [annodomini@Nightstar-d22d7158.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
07:44 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
08:12 You're now known as TheWatcher[afk]
08:59 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has quit [Client exited]
09:00 Zedidiah [zag@Nightstar-d0088b95.or.comcast.net] has joined #code
09:02 MyCatVerbs [mycatverbs@Nightstar-58acb782.cable.virginmedia.com] has quit [Operation timed out]
09:12 Alek [omegaboot@Nightstar-3ffc02c7.emhril.sbcglobal.net] has quit [Ping timeout: 121 seconds]
09:16 Alek [omegaboot@Nightstar-68dcfce9.emhril.sbcglobal.net] has joined #code
09:24 Vornicus is now known as Vornicus-Latens
09:59 You're now known as TheWatcher
10:24 Tarinaky [Tarinaky@Nightstar-4bcfa341.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
10:39 Tarinaky [Tarinaky@Nightstar-81c7bb86.adsl.virginmedia.net] has joined #code
11:02 Bobsentme [NSwebIRC@051596.69129A.C96753.910884] has quit [[NS] Quit: Page closed]
11:03 Attilla [Attilla@FBC920.DDABA2.B6DD6A.6DBD7E] has joined #code
11:03 mode/#code [+o Attilla] by Reiver
11:53 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
12:26 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
12:28 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code
12:28 mode/#code [+qo Reiver Reiver] by ChanServ
12:32 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
12:50 You're now known as TheWatcher[d00m]
13:09 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
13:15 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [[NS] Quit: The world is so funny sometimes; I often forget to laugh.]
13:16 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
13:39 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
13:49 Alek [omegaboot@Nightstar-68dcfce9.emhril.sbcglobal.net] has quit [Ping timeout: 121 seconds]
14:16 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
14:30 You're now known as TheWatcher
15:02 You're now known as TheWatcher[afk]
17:39 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has joined #code
18:15 You're now known as TheWatcher
18:26 MyCatVerbs [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
18:26 mode/#code [+o MyCatVerbs] by Reiver
18:39 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
18:39 Alek [omegaboot@Nightstar-25fda8e1.emhril.sbcglobal.net] has joined #code
18:45 Vornicus-Latens is now known as Vornicus
19:22 MyCatVerbs [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has left #code ["ERC Version 5.3 (IRC client for Emacs)"]
20:26 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has quit [Client closed the connection]
20:34 Derakon[work] [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
20:34 * Derakon[work] is idly thankful for the fact that he has a clue what to do when it comes to project administration.
20:35
< Derakon[work]>
I'd hate to imagine me-from-2006 learning from the examples set by the code and administrative practices I'm seeing here.
20:36 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has joined #code
20:38
< TheWatcher>
Heh, very true.
20:42
< Derakon[work]>
(Currently reviewing my changes from the past week or so, which have finally gotten to a check-innable state)
20:45
< Derakon[work]>
Checkin comment: "Rewrote the stage XY limits and TIRF motor controls to not use the Priithon buttonbox code, which doesn't behave in Python 2.5. The code is as a pleasant side-effect now much nicer to work with."
20:55
<@jerith>
Maybe I shouldn't be commenting on bug reports right now.
20:55
<@jerith>
I just put "wailings and gnashings of teeth ensue" as the final step in the sequence of events for this issue.
20:55
<@jerith>
(The wailings and gnashings of teeth really did ensue, though. It's accurate, just not perhaps entirely relevant.)
20:55
< ErikMesoy>
Do explicate.
20:56
< Derakon[work]>
Hee.
20:56
< Namegduf>
Gah, now I can't decide if that's a word.
20:56
<@jerith>
It is a word, although probably not one you'll find in the OED.
20:56
< Derakon[work]>
What, gnashings?
20:56
< ErikMesoy>
"Explicate", you mean? It's like "explain" but used when you don't really have a question or uncertainty, rather just a request for more information.
20:57
< ErikMesoy>
See also "elucidate", though that carries more of a connotation that the subject is difficult or obscure.
20:57
<@jerith>
"Gnashings" is a word, but Firefox underlined it in red squiggle when I put it in the comment.
20:58
<@jerith>
I use "elucidate" as a general request for further information.
20:58 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has left #code []
21:03 Alek [omegaboot@Nightstar-25fda8e1.emhril.sbcglobal.net] has quit [Ping timeout: 121 seconds]
21:04 Alek [omegaboot@Nightstar-25fda8e1.emhril.sbcglobal.net] has joined #code
21:10
< Alek>
augh
21:10
< Alek>
segfault bsod
21:10
< AbuDhabi>
POINTERS FOR THE POINTER GOD.
21:12
<@jerith>
References for the reference king?
21:28 AnnoDomini [annodomini@Nightstar-f9a6281f.adsl.tpnet.pl] has joined #code
21:28 mode/#code [+o AnnoDomini] by Reiver
21:29
< Alek>
... and it was caused by CA.
21:29
< Alek>
figures.
21:29 AbuDhabi [annodomini@Nightstar-f9a6281f.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
21:42
< Derakon[work]>
Mental note: "distance * multiplier / 1000.0" is not the same thing as "distance * multiplier / 1000.0".
21:42
< Derakon[work]>
Er.
21:42
< Derakon[work]>
The second should be "distance * multiplier - 1000.0".
21:44
<@Vornicus>
pfff
21:46
< Derakon[work]>
Hey, Python question for you all. This code doesn't work: http://pastebin.starforge.co.uk/109
21:46
< Derakon[work]>
Every event you bind, when triggered, will execute "callSomeFunction(100)".
21:47
< Derakon[work]>
I ended up having to fix that by writing a function that makes functions, which annoyed me. Is there a better way to handle it?
21:47
< ErikMesoy>
I know! You can use regular expressions!
21:47 * ErikMesoy ducks
21:48
< Derakon[work]>
That would give me...let's see, in the actual use case...11 more problems.
21:52
<@Vornicus>
Der: it, uh, looks like maybe your binder only lets you do 1 function at a time>
21:55
< Derakon[work]>
I have no idea.
21:55
< Derakon[work]>
This is Python 2.5 on Windows, for reference.
21:55
< Derakon[work]>
(It used to be Python 2.4! Progress!)
21:55
<@Vornicus>
Right, but that doesn't affect it. Your bindEventAction thing appears to /replace/ functions, not add them.
21:56
< Derakon[work]>
Oh, sorry, that's inaccurate.
21:56
< Derakon[work]>
Imagine there's a third argument that makes for a unique invocation each time.
21:56
< Derakon[work]>
What I'm actually doing is instantiating a button, generating the action lambda, and then binding the lambda to the event that gets triggered when the button is clicked.
22:01
< Derakon[work]>
(One new button for each iteration of the loop, that is)
22:05
<@Vornicus>
hmng.
22:06
< Derakon[work]>
AFAICT the problem is that the "distance" variable doesn't get bound to the lambda's closure properly, somehow.
22:32
<@Vornicus>
hmmm...
22:39 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
23:04 ErikMesoy is now known as ErikMesoy|sleep
23:11
< Derakon[work]>
Unrelated question: suppose I want to run a search-and-replace on multiple files. In this particular case, I want to insert a print statement at the top of each while loop in some C++ code. I could accomplish this on a per-file basis with the vim command :%g/while.*{/s/$/\rprintf("Top of a while loop\n");
23:11
< Derakon[work]>
What would be the proper way to do that to multiple files at once?
23:12
< Derakon[work]>
I mean, I know there are ways to do it -- Google will tell me that -- but what would be your favored approach?
23:14
< TheWatcher>
I would enslave a small group of demons and force them to go through the files painstakingly inserting the required code.
23:14
< TheWatcher>
That, or use sed.
23:15 * Derakon[work] looks up at the vim command he wrote, notes how hard that is to read. Hm.
23:16 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
23:20
< TheWatcher>
Or maybe even something like `find . -iname '*.cpp' -print0 | xargs -0 -n 1 perl -i.bak -p -e 's/(while.*{)/printf("Top of while loop\\n")\n$1/' ` if I was feeling vaguely crazy
23:22 * TheWatcher notes he missed the g flag on the regexp, shrug
23:24
< TheWatcher>
(note: I haven't tested that, so it probably won't work in its current form - I suspect there might be issues with the backup, but meh)
23:29
< Tarinaky>
Derakon[work]: Sed or Awk. I forget which one's which.
23:30
< Derakon[work]>
The goal of all this, incidentally, is to try to figure out if a particular hang is due to the program spinning its wheels in an infinite loop that I control.
23:35
<@ToxicFrog>
Why not just use gdb?
23:35 AnnoDomini [annodomini@Nightstar-f9a6281f.adsl.tpnet.pl] has quit [[NS] Quit: Tired.]
23:36
<@McMartin>
gdb only actually works on Linux
23:36
<@ToxicFrog>
My experience contradicts this
23:36
< Derakon[work]>
1) As McM said; 2) I'm more comfortable with print statements; 3) This is a complex, multithreaded program.
23:36
< Derakon[work]>
But I will be trying a debugger after this.
23:37
<@McMartin>
TF: Multithreaded programs on OSX break gdb horrendously
23:37
<@McMartin>
As in, "step doesn't work; you have to manually breakpoint every line, and even then it's a crapshoot"
23:37
<@ToxicFrog>
Aah. I have no OSX experience.
23:37 * ToxicFrog has used it mostly on linux, but has also successfully applied it to single- and multi-threaded windows programs
23:38
<@McMartin>
Hm. I haven't tried linking WinDbg into gcc-ed code much. I should try that more thoroughly.
23:43 * Derakon[work] eyes these functions that one of the biologists wants him to pull in from the festering pile that is sebTests (that is, even more of a festering pile than the rest of the codebase).
23:44
< Derakon[work]>
The problem here is that these functions call other functions in sebTests, which call other functions in sebTests...
23:44
< Derakon[work]>
I'm at 393 lines pulled in with no end in sight.
23:45
<@Vornicus>
and, let me guess, about 3/4 of the lines can safely be removed entirely.
23:45
< Derakon[work]>
I haven't checked yet.
23:46
< Derakon[work]>
There's a lot of commented-out stuff, but not the huge blocks I've seen in other files.
23:46
<@McMartin>
How much of it is actually C?
23:46
< Derakon[work]>
Oh, this is back in Python.
23:47
<@McMartin>
My question stands
23:47
<@McMartin>
I remember the semicolons and such from C&P Python code before.
23:47
< Derakon[work]>
Heh.
23:47
< Derakon[work]>
I count two semicolons thus far.
23:47
< Derakon[work]>
Both on print statements, oddly enough.
23:53 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: ]
23:56 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:56 mode/#code [+o Vornicus] by Reiver
23:57 Derakon[work] [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
--- Log closed Wed Jan 27 00:00:30 2010
code logs -> 2010 -> Tue, 26 Jan 2010< code.20100125.log - code.20100127.log >