code logs -> 2012 -> Wed, 12 Sep 2012< code.20120911.log - code.20120913.log >
--- Log opened Wed Sep 12 00:00:11 2012
--- Day changed Wed Sep 12 2012
00:00 You're now known as TheWatcher[T-2]
00:03 Reiv [NSwebIRC@D4E70A.D52DB0.820B13.98C775] has joined #code
00:09 You're now known as TheWatcher[zZzZ]
00:16 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
00:16 mode/#code [+o himi] by ChanServ
00:26 Derakon[AFK] is now known as Derakon
00:35 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
00:49 Vash [Vash@Nightstar-a60eef95.ct.comcast.net] has quit [[NS] Quit: I lovecraft Vorn!]
01:50 gnolam [lenin@Nightstar-ccbf4b44.cust.bredbandsbolaget.se] has quit [[NS] Quit: Reboot]
01:50 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
01:53 gnolam [lenin@Nightstar-ccbf4b44.cust.bredbandsbolaget.se] has joined #code
02:03 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
02:03 mode/#code [+o himi] by ChanServ
02:06 Kindamoody is now known as Kindamoody[zZz]
02:20 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
02:28 Attilla_ [Obsolete@Nightstar-0badc022.as43234.net] has quit [Ping timeout: 121 seconds]
02:33 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
02:33 mode/#code [+o himi] by ChanServ
02:57 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has joined #code
02:57 mode/#code [+o Vash] by ChanServ
03:36 mac [NSwebIRC@Nightstar-fe8a1f12.il.comcast.net] has joined #code
04:06 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has joined #code
04:31 mac [NSwebIRC@Nightstar-fe8a1f12.il.comcast.net] has left #code [""]
04:37 Rhamphoryncus [rhamph@Nightstar-cc6253d6.abhsia.telus.net] has joined #code
06:14 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:31 Derakon is now known as Derakon[AFK]
06:38 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
06:51 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
06:51 mode/#code [+o himi] by ChanServ
07:16 You're now known as TheWatcher
08:10 You're now known as TheWatcher[afk]
08:16 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [Connection reset by peer]
--- Log closed Wed Sep 12 09:19:58 2012
--- Log opened Wed Sep 12 09:20:25 2012
09:20 TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code
09:20 Irssi: #code: Total of 27 nicks [5 ops, 0 halfops, 0 voices, 22 normal]
09:20 mode/#code [+o TheWatcher] by ChanServ
09:20 Irssi: Join to #code was synced in 39 secs
09:35 Kindamoody[zZz] is now known as Kindamoody
10:14 Kindamoody is now known as Kindamoody|out
11:07 Attilla [Obsolete@Nightstar-0badc022.as43234.net] has joined #code
11:11 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
--- Log closed Wed Sep 12 11:33:34 2012
--- Log opened Wed Sep 12 11:33:46 2012
11:33 TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code
11:33 Irssi: #code: Total of 29 nicks [5 ops, 0 halfops, 0 voices, 24 normal]
11:33 mode/#code [+o TheWatcher] by ChanServ
11:34 Irssi: Join to #code was synced in 44 secs
12:18 froztbyte [froztbyte@B19C04.9D2D7E.A788A9.8EAA6C] has quit [Ping timeout: 121 seconds]
12:24 froztbyte [froztbyte@B19C04.9D2D7E.A788A9.8EAA6C] has joined #code
13:16 Attilla_ [Obsolete@Nightstar-0badc022.as43234.net] has joined #code
13:16 Attilla [Obsolete@Nightstar-0badc022.as43234.net] has quit [Ping timeout: 121 seconds]
15:47 Rhamphoryncus [rhamph@Nightstar-cc6253d6.abhsia.telus.net] has quit [Client exited]
16:06 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
16:17 Reiv [NSwebIRC@D4E70A.D52DB0.820B13.98C775] has quit [Ping timeout: 121 seconds]
16:34 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
16:39 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
16:39 mode/#code [+ao Derakon Derakon] by ChanServ
16:41 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
16:56 You're now known as TheWatcher[afk]
17:10 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [Operation timed out]
17:10 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
17:12 Attilla_ is now known as Attilla
17:21 Derakon_ [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
17:22
< Derakon_>
I'm getting really tired of getting a kernel panic every time I slip up performing some OpenGL operation.
17:24
< Derakon_>
Google just keeps turning up hackintosh forums.
17:24 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has joined #code
17:24 mode/#code [+o Vash] by ChanServ
17:28
< Derakon_>
And Apple wants to charge me over a hundred bucks just to %Btalk%B to them.
17:29
< Derakon_>
Er, talk.
17:31
< AnnoDomini>
This is Apple you're talking about.
17:38 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Operation timed out]
17:40 Kindamoody|out is now known as Kindamoody
17:40 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
17:49 Kindamoody is now known as Kindamoody|out
17:58 mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ
18:12 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [Ping timeout: 121 seconds]
18:19 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
18:25 * Derakon_ tries to run MUI on a Windows computer instead to avoid the kernel panics, discovers that it doesn't like him calling glGenFramebuffers. WTF.
18:25
< Derakon_>
"Attempt to call an undefined alternate function (glGenFramebuffers, glGenFramebuffersEXT), check for bool(glGenFramebuffers) before calling"
18:26
< Derakon_>
Google turns up just someone's pastebin.
18:32 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
18:32 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
19:05 * gnolam checks some of his old code.
19:05
< Derakon_>
Oh hey, Gnolam, you're an OpenGL veteran.
19:05
< gnolam>
Seems I'm using gl*FramebufferEXT in it as well.
19:05
< Derakon_>
Any idea why this would spew that aforementioned error? http://pastebin.com/YnA4hn0y
19:05
< Derakon_>
The weird thing is that it works fine on OSX.
19:06
< Derakon_>
And it's derived (albeit heavily altered) from code I had working on a different Windows machine...but I wouldn't think that framebuffers would be an optional part of the install.
19:20 Kindamoody|out is now known as Kindamoody
19:23 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
19:27 ErikMesoy [Erik@A08927.B4421D.B81A91.464BAB] has joined #code
19:37 You're now known as TheWatcher
19:57 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
20:04
< ErikMesoy>
I'm trying to print the character ? (C with ^) in Python. Autohelp gave me a "coding:" line, but the character is nonetheless getting output as ?^ instead. What should I do?
20:04
< Derakon_>
You want a 'c' with a circonflex above it?
20:04
< ErikMesoy>
Yes.
20:05
< RichyB>
print u"?".encode("utf-8")
20:05
< Derakon_>
That won't have the accent, Richy.
20:05
< RichyB>
Look more closely.
20:05
< ErikMesoy>
RichyB: /that/ came out as ?OE
20:06
< ErikMesoy>
(A with diaresis, OE diphthong)
20:06
< RichyB>
Are you on Windows? Sounds like your terminal is using some gash character encoding that isn't utf-8.
20:07
< ErikMesoy>
I'm using IDLE on Windows and added "# -*- coding: utf-8 -*-" to start of file at IDLE's suggestion.
20:09
<&jerith>
That sets the Python encoding, not the terminal encoding.
20:09 * ErikMesoy has attempted r"?" and variants thereof too.
20:10
<&jerith>
I'd look up the codepoint and use u'\uxxxx'
20:10
< RichyB>
"# -*- coding: utf-8 -*-" sets the encoding that the Python interpreter will parse your source code in. Without that, you'd get bad results (SyntaxError under some Python versions, wrong behaviour in others) when you tried to start your program.
20:10
<&jerith>
You don't want want r'' here. That's for turning off escaping, and is pretty much only useful for writing regexen.
20:10
< RichyB>
Your problem here is that your *terminal* is using some other character encoding.
20:11
<&jerith>
I'd suggest setting LC_ALL, but Windows. :-/
20:11
< RichyB>
If you want to make sure that it's definitely not the Python file being misinterpreted, you can encode that string as, uh, u"\u0108"
20:11
<&jerith>
Windows *really* likes its strange and random charsets.
20:12
< RichyB>
I'm not sure if you even *can* print \u0108? It's outside of cp1252 and latin-1.
20:12
< RichyB>
Maybe if your terminal is using one of the other latin charsets.
20:12
< ErikMesoy>
print u"\u0108" #this worked
20:12
< ErikMesoy>
Thanks
20:13
< AnnoDomini>
http://www.codinghorror.com/blog/2012/09/computer-crime-then-and-now.html
20:13
< RichyB>
Okay, apparently it gets exposed. import sys; print sys.stdout.encoding; # should print "cp437" or "cp1252" or something.
20:14
< RichyB>
I wonder if there's an escape code that'll cause the terminal in Windows to switch encoding?
20:15
< ErikMesoy>
cp1252
20:15
< RichyB>
Other than that, you might have to just use a different terminal in order to get proper (full) unicode support.
20:15
< RichyB>
I think that there are terminals for Windows that can grok utf-8 properly, based on PuTTY and/or xterm.
20:17
< RichyB>
Stackoverflow recommends PuttyCyg and Console. http://stackoverflow.com/questions/701895/best-terminal-environment-for-cygwin-w indows -> http://code.google.com/p/puttycyg/ and http://sourceforge.net/projects/console/
20:29 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
20:39
< ErikMesoy>
Now that I've got coding:utf-8 and u"\u0108" in my program, how portable should I expect this to be if I send it to someone else?
20:40
<&jerith>
If you don't have any literal UTF-8, you don't need the coding line.
20:40
<&jerith>
And they'll need to run it in a terminal using an appropriate characterset.
20:43
< ErikMesoy>
I see.
21:00 Derakon_ [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [[NS] Quit: leaving]
21:47
< simon_>
(Haskell) I'm doing 'if Map.lookup x m == Just True then Just Foo else Nothing' but figure I can shorten this using some operators. I thought about 'Map.lookup x m >> Just Foo', but this does not regard Just True, only Nothing.
21:50
< simon_>
hmm, mfilter.
21:51
< gnolam>
Derakon: belatedly, no.
21:52
< gnolam>
I know I had Buffer VS BufferEXT problems, and found out why I had to use EXT... but I apparently never wrote it down in the comments.
21:53
< simon_>
I like how you can hoogle for (a -> Bool) -> Maybe a -> Maybe a, and you get mfilter :: MonadPlus m => (a -> Bool) -> m a -> m a.
21:54
< gnolam>
(The usual problem of what was supposed to be a one-off support class instead getting used year in and year out :P)
21:54 Vash is now known as Vash[AFK]
22:43 ErikMesoy is now known as ErikMesoy|sleep
23:23 You're now known as TheWatcher[T-2]
23:24 Reiv [NSwebIRC@D4E70A.D52DB0.820B13.98C775] has joined #code
23:26 You're now known as TheWatcher[zZzZ]
23:31
< gnolam>
http://www.amazingsuperpowers.com/2012/09/moms-computer/
23:39 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
--- Log closed Thu Sep 13 00:00:46 2012
code logs -> 2012 -> Wed, 12 Sep 2012< code.20120911.log - code.20120913.log >

[ Latest log file ]