code logs -> 2010 -> Wed, 03 Feb 2010< code.20100202.log - code.20100204.log >
--- Log opened Wed Feb 03 00:00:30 2010
00:00
< celticminstrel>
Though, it's python. Either the sys module or the os module contains something to determine operating system... why wouldn't they use that?
00:04
<@McMartin>
It sounds to me like it's getting confused and trying to go into cross-compile mode.
00:05 Derakon[work] [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
00:18
< celticminstrel>
Maybe. It does seem to work otherwise.
00:22
< celticminstrel>
It still doesn't find libraries that I am able to locate with Finder search, though.
00:28
<@McMartin>
Finder Search is literally scanning every directory on your HD
01:01
<@McMartin>
You'll probably need to set LIBPATH or something to tell it roughly where to look
01:01
<@McMartin>
Probably in Environment but so far I've only used SCons to build things on their own
01:01
<@McMartin>
(Custom NSIS build: working!)
01:30
< Rhamphoryncus>
Derakon[AFK]: GC on the previous value of seb.foo might invoke anything
01:43
<@McMartin>
Apparently SCons on Mac requires you to put something like "DefaultEnvironment(TOOLS='gcc')" at the top of your SConstruct file for now
01:43
<@McMartin>
We're actually working on a patch to improve autodetect for this, because it's BS and we'd kind of like to use SCons for our full build process~
01:48 Derakon[AFK] is now known as Derakon
01:52 * Derakon mutters at his recent OS upgrade to 10.6, which has broken the "turn display off after 15 minutes of no activity" feature.
01:52
<@Derakon>
So I wake up in the morning to find that my display has been on all night, wasting electricity.
01:54
< gnolam>
Pfft. I came back home over lunch to find that I'd forgotten a pot on the stove. I have yet to figure out if the fire alarm is broken or if it's just yelled itself hoarse (i.e. run out of batteries). :P
01:55
< gnolam>
Yeah. It's not been a very good day. Not that any day that starts with web programming in fucking C has any chance of ever being one, but still.
01:55
<@Derakon>
Ouch.
01:55
<@Derakon>
Today I appear to have fixed a bug by using wx.CallLater, which the documentation claims is just a nice interface around wx.Timer, which I tried previously to no success.
02:01
< celticminstrel>
Speaking of 10.6, does anyone know if there's a way to make a middle-click on a Dock icon bring up Expos??
02:02
<@Derakon>
I bet you could write a short Applescript program that would bring up Exposé when run...why the middle-click business?
02:04 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:05
< celticminstrel>
Well, the default behaviour is that you click and hold for Expose; there's also a way to change that so that click+hold is equivalent to right-click. However, I don't like click+hold having special behaviour; on the other hand, I do like the ability to bring up Expose from the Dock. So, middle-click is the most obvious option.
02:05
< celticminstrel>
There's no obvious way to do it, though.
02:05 * Derakon shrugs.
02:05
< celticminstrel>
I often have the click+hold behaviour being detected when I intend a single click.
02:06
< celticminstrel>
^activated fits better than detected.
02:06 * celticminstrel will Google it, of course.
02:15
<@Derakon>
Hmph. Set the controls to sleep the display after 1 minute, and it doesn't turn off.
02:16 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
02:19 Searh [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
02:30 Derakon [Derakon@Nightstar-5abd3ac9.ca.comcast.net] has quit [[NS] Quit: And poof! I am gone.]
02:33 Attilla [Attilla@FBC920.642D35.E70B85.268FE2] has quit [Client closed the connection]
03:02 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
03:36 Derakon [Derakon@Nightstar-5abd3ac9.ca.comcast.net] has joined #code
03:36 mode/#code [+o Derakon] by Reiver
03:38
<@Derakon>
Well, software update appears to have fixed that sleep problem I was having.
03:39
< Serah>
What?
03:39
<@Derakon>
I updated my OS version, after which point my computer wouldn't sleep.
03:39
< Serah>
Oh.
04:05
< celticminstrel>
Agh, is there no way for AppleScript to get the path of the currently running script?
04:21
<@Derakon>
http://www.macosxhints.com/article.php?story=20080223103121102
04:21
<@Derakon>
Found by Googling for "Applescript path of script"
04:23 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
04:24 * celticminstrel sighs.
04:24
< celticminstrel>
Why don't I think of Google more often? That's actually somewhat like what I was trying, but with with a different preposition.
04:25
<@Derakon>
Google knows all. :)
04:33
< celticminstrel>
I often find it difficult to find what I want on Google. The success rate of Google searches is highly variable.
04:34
<@Derakon>
Googling is a skill. It justs takes practice.
05:22
< celticminstrel>
And it works. Yay.
05:23
<@McMartin>
AppleScript is the most horrifically poorly documented abomination ever visited upon the world
05:27
< celticminstrel>
Lisp is at least as bad.
05:27
< celticminstrel>
Maybe worse.3
05:27
<@McMartin>
Lisp has dump trucks full of docs.
05:28
< celticminstrel>
Well, the one I found, at least, was very detailed, very technical, and difficult to wrap my brain around.
05:29
<@McMartin>
Hmm
05:29
<@McMartin>
What dialect are you using?
05:29 * McMartin goes digging through The Shelf Of Arcane Lore
05:30
< celticminstrel>
Actually, I think this was the SBCL docs.
05:30
<@McMartin>
So, Common LISP
05:30
< celticminstrel>
Yes.
05:31
< celticminstrel>
I wasn't actually "using" it, though. Just investigating it.
05:31
<@McMartin>
I learned Common LISP from http://www.amazon.com/Lisp-3rd-Patrick-Winston/dp/0201083191/ref=sr_1_1?ie=UTF8& s=books&qid=1265175058&sr=8-1
05:32
<@McMartin>
http://www.amazon.com/Simply-Scheme-Introducing-Computer-Science/dp/0262082810/r ef=sr_1_1?ie=UTF8&s=books&qid=1265175002&sr=8-1 is a fairly good Scheme introduction, but if you want to dive in harder, http://mitpress.mit.edu/sicp/full-text/book/book.html is a CS book run in it available in full for free
05:32
< celticminstrel>
Scheme being an alternate dialect of Lisp, right?
05:33
<@McMartin>
Yeah.
05:33
<@McMartin>
Scheme is the "highly polished little jewel", while Common LISP is the big clanking kitchen sink factory
05:33
< celticminstrel>
Hehe.
05:34
<@McMartin>
Scheme has control flow constructs that are basically the CS equivalent of R'lyeh
05:34
< celticminstrel>
...huh?
05:34
<@McMartin>
More powerful than human imagining, but contemplating them drives you mad
05:34
<@ToxicFrog>
Mmm, call/cc
05:34
<@McMartin>
The same~
05:35
<@McMartin>
Still can't believe that Gambit-C is a Scheme-to-C compiler that fully implements call/cc.
05:35
<@McMartin>
(Call/cc's short description is "call the function named. That function takes an argument x which represents the entire rest of the program run. This can be passed around, and is explicitly permitted to be called multiple times.)
05:36
<@Vornicus>
...how the shit do you manage /that/
05:36
<@Vornicus>
(Gambit-C, that is)
05:36
<@McMartin>
Because phn'glui mwgl'nafh fhtagn
05:37
<@McMartin>
I must assume that the C produced involves operating a Scheme runtime and interacting with it somehow.
05:37
<@McMartin>
As for call/cc, it's strictly more powerful than exceptions, but that's the most I've fathomed.
05:37
<@McMartin>
And I use other kinds of continuations routinely.
06:18 Derakon is now known as Derakon[AFK]
06:37 AnnoDomini [annodomini@Nightstar-91e6d295.adsl.tpnet.pl] has joined #code
06:37 mode/#code [+o AnnoDomini] by Reiver
07:10 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
07:17 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
07:24
<@Vornicus>
Things I hate about generating UI elements via code: this function is 60 lines long.
07:25
<@Vornicus>
(granted it generates a table with 70 cells in 7 rows, with 7 spanning cells, and 36 radio buttons.
08:12
<@Vornicus>
button.addEventListener("click", function() {foo(a, b);}); <--- what am I doing wrong? a and b are defined in the context; I want the button to call that function with the arguments as they were when I defined the function and added the listener.
08:12
<@Vornicus>
(javascript)
09:02
<@Vornicus>
button.addEventListener("click", (function(a, b) { return function() { foo(a, b); }; })(a, b));
09:02
<@Vornicus>
Yay, closures
09:34 You're now known as TheWatcher
09:41 Namegduf [namegduf@Nightstar-7ec84b32.bath.ac.uk] has quit [Operation timed out]
09:41 Namegduf [namegduf@Nightstar-7ec84b32.bath.ac.uk] has joined #code
10:02 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
10:07 * McMartin resolves a bug as "time paradox", heads to bed
10:07
<@TheWatcher>
Pfft
10:07
<@McMartin>
Sequence went like this:
10:07
<@McMartin>
<QA> Here's a bug
10:07
<@McMartin>
<Me> Bug fixed in revision X, sending to QA
10:07
<@McMartin>
<QA> Bug still present in revision X-100, failing back to dev
10:07
<@McMartin>
<Me> ...
10:08
<@McMartin>
<QA> Bug verified resolved in revision X-50, resolving as fixed
10:08
<@McMartin>
<Me> ...but
10:08
<@McMartin>
<QA> Actually, only partially fixed, failing back to dev
10:08
<@McMartin>
<Me> OK, let's try to verify
10:08
<@McMartin>
<Automated system> IT'S TOTALLY FIXED GUYS SENDING TO QA
10:08
<@McMartin>
<Me> ... yup, the fix was only partial and... what. Taking bug back now
10:09
<@McMartin>
In taking it back, I set the resolution to "time paradox"
10:09
<@TheWatcher>
Hah, quite
10:11
<@McMartin>
(the "it was fixed in the past" report isn't completely out of left field, as QA and Dev sometimes have intermediate builds fall out of sync, so dev will report the first build they see after the commit that actually has the fix, and QA ends up getting it sooner than Dev does)
10:11
<@McMartin>
(However, that was in fact before the fix went in itself.)
10:50 Attilla [Attilla@FBC920.58502B.179BC9.8FDBD2] has joined #code
10:50 mode/#code [+o Attilla] by Reiver
11:17 Tarinaky [Tarinaky@Nightstar-e8b77b8f.adsl.virginmedia.net] has quit [Client closed the connection]
11:18 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
11:32 Tarinaky [Tarinaky@Nightstar-6a72c29b.adsl.virginmedia.net] has joined #code
12:18 Alek [omegaboot@Nightstar-e0c97964.emhril.sbcglobal.net] has quit [Ping timeout: 121 seconds]
12:22 Alek [omegaboot@Nightstar-cdb0343a.emhril.sbcglobal.net] has joined #code
13:33 AbuDhabi [annodomini@Nightstar-54a82367.adsl.tpnet.pl] has joined #code
13:35 AnnoDomini [annodomini@Nightstar-91e6d295.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
13:43 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
14:29 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
15:37 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
16:12 Bob_home is now known as Bobsentme
16:26 * gnolam can has 24"!
16:26
< gnolam>
And desk space.
16:27
< AbuDhabi>
That's nice, but I'd advertise with the ladies, rather than random dudes on the internet.
16:27
< gnolam>
Hah.
16:53
< Tarinaky>
Hey! Guys need lovin' to q.q
16:56
< Bobsentme>
You come anywhere near me with that thing uncovered and I'll throw exception errors at you.
16:57
< Tarinaky>
Hahaha.
16:58
< Bobsentme>
I was gonna make a struct joke...but it's been a while since I've done any C.
16:59
< Bobsentme>
On a completely different topic:
16:59 * Tarinaky sodomises Bobsentme with an unsigned long int.
16:59 * Tarinaky gives Bobsentme's wchar a reach-around.
16:59
< Bobsentme>
I managed to complete and deliver the php site I've been working on for the professor. Project manager, who is an idiot, upon seeing the site, says "Splendid! Now, where's the button to upload files?"
17:00
< Bobsentme>
Please note that in NONE of our e-mail exchanges was an upload file button ever mentioned.
17:00
< Tarinaky>
*wchar_t
17:02
<@TheWatcher>
Bob: I suggest napalm
17:02
<@TheWatcher>
Administered in the form of a suppository
17:02
<@TheWatcher>
with a mallet
17:03
< Bobsentme>
I am both horrified and intrigued by your methods.
17:03
< Bobsentme>
Well played, sir.
18:53
< gnolam>
Bobsentme: that's when you point to exactly that fact and say that it wasn't in the specification.
19:04
<@ToxicFrog>
Non sequitur, but I just came across this again and was amused:
19:04
<@ToxicFrog>
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are - by definition - not smart enough to debug it."
19:04
<@ToxicFrog>
-- Kernighan
19:13
< gnolam>
Kernighan's Law is something to live by.
20:24 * TheWatcher pokes cygwin to let him compile opengl programs
20:38 * TheWatcher ...s, facepalms
20:39
<@McMartin>
?
20:39
<@TheWatcher>
Of course, because specifying -I/usr/include/opengl when compiling fixes linker errors. Obvious!
20:40
<@TheWatcher>
(without that, mess of unresolved references when linking, with it everything compiles fine)
21:12 * TheWatcher eyes the mingw site
21:12
<@TheWatcher>
Lovely.
21:25
< gnolam>
What about it?
21:25
< gnolam>
Huh. The domain's been taken over by a link farm.
21:25
<@TheWatcher>
That, yes.
21:25
< gnolam>
In other words: an improvement.
21:25
< gnolam>
The previous page was about as helpful.
21:32
<@McMartin>
gnuwin32.sf.net includes mingw, doesn't it?
21:35
<@McMartin>
Also, last night's Time Paradox has been explained, as was why the automated system freaked out.
21:35
<@McMartin>
An admin was repairing some versioning errors in the SVN history and the bug trackers got wind of this and got Very Confused.
21:38
<@Vornicus>
whups
21:39
< gnolam>
svn commit flux_capacitor
22:19 * TheWatcher eyes this
22:19
<@TheWatcher>
"checking for malloc... no" ... yeeah, I think something's kinda broken here
22:20
<@McMartin>
;_;
22:21
<@McMartin>
... you aren't mixing MinGW and cygwin, are you?
22:21
<@TheWatcher>
No
22:21
<@McMartin>
OK, just checking
22:22
<@TheWatcher>
I'm trying to get SDL to compile on cygwin, with apparently the result that "*** Your compiler (gcc) does not produce Win32 executables!" which is news to me, considering that I just made one 10 minutes ago.
22:22
<@McMartin>
Hrm
22:23
<@McMartin>
... no, wait, that was MinGW, not cygwin gcc
22:23
<@McMartin>
I wonder if cygwin lies about its host OS
22:25 * TheWatcher eyes config.log
22:25
<@TheWatcher>
"gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler." ahahah
22:26
<@McMartin>
"gcc: RMS would like to punish you for daring to target the OS used by over 90% of the computing base. How dare you collaborate with the overlords"
22:31 * TheWatcher eyes this mess, laughs humourlessly at the fact that (excluding the fact that it was all compiled from source) getting this stuff to work on gentoo was hilariously easy. Windows? Ahahahah
22:32
<@TheWatcher>
Okay, mingw+msys I guess...
22:32
<@McMartin>
Heh
22:32
<@McMartin>
... why not DevCPP?
22:33
<@McMartin>
I *know* you've gotten that working, you made the Dev-CPP devel pack for Sable for me
22:33
<@McMartin>
And Sable was an SDL program
22:34
<@McMartin>
In other news, I have a 1,200 page book on Windows internals here
22:34
<@McMartin>
I love how instead of same source code it has "try hacking Windows here" sections.
22:34
<@McMartin>
*sample source code
22:36
<@TheWatcher>
Hm
22:38
<@TheWatcher>
Well, devcpp is actually mingw underneath anyway, just an old version of it (vintage ~2005)
22:41
<@McMartin>
Ah.
22:42
<@McMartin>
MinGW64 still in its infancy I see
22:46
<@TheWatcher>
Basically, I could either bodily rip out the outdated mingw from beneath devcpp and see if the new one works, or just use mingw on its own and cygwin's emacs for editing (as the native build crashes as soon as it starts for me...)
23:58 AbuDhabi [annodomini@Nightstar-54a82367.adsl.tpnet.pl] has quit [[NS] Quit: Gnargle.]
--- Log closed Thu Feb 04 00:00:25 2010
code logs -> 2010 -> Wed, 03 Feb 2010< code.20100202.log - code.20100204.log >