code logs -> 2011 -> Fri, 26 Aug 2011< code.20110825.log - code.20110827.log >
--- Log opened Fri Aug 26 00:00:26 2011
00:05 You're now known as TheWatcher[T-2]
00:08 You're now known as TheWatcher[zZzZ]
00:21 shade_of_cpux is now known as cpux
00:25
<@McMartin>
Oh hey, it's Linux's 20-year anniversary today.
00:29
<@Tamber>
...huh.
00:29
<@Tamber>
Wow, it's really been /that long/ since '91?
00:30
<@McMartin>
It has indeed!
00:30
<@McMartin>
It is now 2011.
00:30
<@McMartin>
GLORIOUS FUTURE YEAR 2011.
02:08 Derakon[AFK] is now known as Derakon
02:08
<@Derakon>
Evening, all.
02:08
<@Derakon>
Today's house project: destroying fifty-year-old linoleum tiles.
02:09
<@Derakon>
Everything I'd read online was going on about how this was such a pain to deal with, but I guess they just weren't waiting long enough~
02:09
<@Derakon>
About an hour's work with a scraper and I've pulled up and/or shattered all of the tiles in a ~100-square-foot room.
02:10
<@Derakon>
Oh wait, this is #code, not #fleet. Whups~
02:24 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
02:50 kwsn [kwsn@Nightstar-635d16fc.org] has joined #code
03:02 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
03:03 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
03:03 Syloqs_AFH is now known as Syloqs-AFH
03:19 cpux [chatzilla@Nightstar-c5874a39.dyn.optonline.net] has quit [[NS] Quit: ChatZilla 0.9.87 [Firefox 6.0/20110811165603]]
03:36 Kindamoody[zZz] is now known as Kindamoody
03:38 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Client closed the connection]
03:38 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
04:07 Kindamoody is now known as Kindamoody|afk
04:33 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
04:41 Kindamoody|afk is now known as Kindamoody
05:53 kwsn [kwsn@Nightstar-635d16fc.org] has quit [Ping timeout: 121 seconds]
06:00 kwsn [kwsn@Nightstar-635d16fc.org] has joined #code
06:11 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Connection reset by peer]
06:11 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
06:17 AnnoDomini [annodomini@Nightstar-f7eedefa.80-203-17.nextgentel.com] has joined #code
06:32
< AnnoDomini>
Is the latest HTML Turing-complete nowadays?
06:34
<@McMartin>
Has been ever since <script> became standard~
06:38
< AnnoDomini>
I meant on its own. I am informed that with CSS it is, but what about without it?
06:39
<@McMartin>
I'm not sure how that works with CSS either, so I dunno.
06:39
< AnnoDomini>
http://lambda-the-ultimate.org/node/4222
06:42 Derakon is now known as Derakon[AFK]
07:18 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
08:04 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
09:13 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
09:17 You're now known as TheWatcher
11:52 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Client exited]
11:55 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
12:14 Kindamoody is now known as Kindamoody|out
12:25 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
14:35 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Client closed the connection]
14:36 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
14:44 * TheWatcher gains a level in insanity, having now reached the point where he can write his own MediaWiki skins.
14:45
<@Reiver>
O.o
14:47
<@TheWatcher>
(It's actually surprisingly easy once you get around it)
14:48
<@TheWatcher>
*your head
14:54 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
15:04 AnnoDomini [annodomini@Nightstar-f7eedefa.80-203-17.nextgentel.com] has quit [[NS] Quit: Need to step outside.]
16:03 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
16:27 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
18:05 AnnoDomini [annodomini@Nightstar-f7eedefa.80-203-17.nextgentel.com] has joined #code
18:05 AnnoDomini is now known as Zon
19:19 Derakon [chriswei@Nightstar-c826c088.ca.comcast.net] has joined #code
19:20
< Derakon>
I figured out why I was throwing an error condition yesterday with the 1024 characters after 'a'.
19:20
<@Tamber>
Oh?
19:20
< Derakon>
Microsoft's description of how wcstombs behaves when passed NULL as the target buffer doesn't match the behavior I'm seeing.
19:20
<@Tamber>
I'm shocked. Shocked I tell you.
19:21
<@TheWatcher>
Le Gasp!
19:21
< Derakon>
(That is to say, if I pass NULL as the target buffer then I always get -1 returned, whereas MS's description says that -1 is returned only if there's an invalid character)
19:23
< Derakon>
This may be because I'm not generating the multibyte string properly though...
19:23
< Derakon>
I would have thought that doing "multiByteString[i] = 'a' + i" would work...
19:30
< Derakon>
...hooray, now I'm doing "multiByteString[i] = L'a' + i" and I get bus errors.
19:35
< Derakon>
That's fixed, but I still get -1 from wcstombs.
19:45
< Derakon>
Have to wonder if my method for programmatically generating wide-character strings is invalid.
19:46
< Derakon>
Does this look wrong? http://paste.ubuntu.com/675450/
19:51
< celticminstrel>
So, your goal is to create a multibyte string that's a subset of "abcdefghijk..."?
19:51
< celticminstrel>
^subsequence
19:51
< Derakon>
This is just for testing purposes, but yes.
19:51
< celticminstrel>
Then yeah, I see nothing wrong with what you have.
19:51
< Derakon>
Ultimately I'll be calling an API that will be returning variable-length wide-character strings and I need to process those correctly.
19:51
< Derakon>
CM: well, then why is wcstombs(NULL, target, 0) returning -1 every time?
19:52
< celticminstrel>
Converting a char* to a wchar_t* can be done by a simple character-by-character copy.
19:52
< celticminstrel>
I have no idea.
19:52
< Derakon>
It's not the 0 either -- if I replace 0 with size then I still get -1.
19:56
< celticminstrel>
man tells me that it should return size-1 if successful and that the third argument is a limit on output size rather than the size of the input.
19:57
< Derakon>
Yes, but in the case of the first argument being NULL it's supposed to only return -1 if there's an unconvertable character.
20:06
<@ToxicFrog>
Derakon: does wchar_t imply anything about the encoding?
20:07
<@ToxicFrog>
In particular, does it imply that all possible codepoints within its expressible range are valid?
20:07
< Derakon>
Are you asking if the encoding is sparse?
20:08
< Derakon>
I don't actually know, but I would assume that wchar_t, like most wide character sets, is a superset of something like Latin-1, which would make the lowercase alphabet compact (and that's all that I'm testing ATM).
20:08
<@ToxicFrog>
I think so? My main wonder is whether there exists some value i for which 'a' + i is an invalid character.
20:09
<@ToxicFrog>
(sanity check: if you know 'a' is convertable, make a string of all 'a' and see if wcstombs() still returns -1)
20:10
< Derakon>
It does.
20:10
<@ToxicFrog>
Welp.
20:11 Kindamoody|out is now known as Kindamoody
20:11 * Derakon eyes this line, can't spot the syntax error before "int".
20:11
< Derakon>
printf("Test: %d vs. %d\n", int(L'a'), int('a'));
20:12 * McMartin looks up
20:12
<@McMartin>
Windows wchar_t is not a superset of Latin-1.
20:12
<@McMartin>
It's UTF-16.
20:12
<@McMartin>
This is easily the single worst decision MS made in Windows NT. -_-
20:15 * Derakon posts to stackoverflow, heads to lunch. http://stackoverflow.com/questions/7209502/testing-wchar-t-for-convertable-chara cters
20:20 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
20:20
<@McMartin>
Derakon: This is C, not Python.
20:20
<@McMartin>
(int)L'a', not int(L'a').
20:22
<@McMartin>
Also, uh, in that sample code? You're never writing a terminator to target.
20:22
<@McMartin>
This may be why wcslen is returning craziness.
20:23
<@McMartin>
(Remember gamedev.net and its forums insistence that use of char * was a bug? Yeah.)
20:23
< celticminstrel>
Or compile as C++ so that the constructor notation works. :P
20:36
< Derakon>
McM: ah, right, thanks.
20:36
< Derakon>
Okay, lack of terminator was the problem.
20:38
< Derakon>
I wouldn't use char* if I didn't have to. :\
20:39
< Derakon>
AFAICT it's the only way to generate Python strings.
20:41
< Derakon>
Also, int L'a' == int 'a'
20:41
< Derakon>
At least in OSX.
20:42 Kindamoody is now known as Kindamoody[zZz]
20:50
< celticminstrel>
Yes it does.
20:54
< celticminstrel>
Okay, under Repository there's an "Edit default relationships" option, which appears to be for specifying dependencies. I have a few questions. 1) Should I include dependencies required for compile, or only dependencies required for running the plugin? 2) Does that fact that I used an external repository mean I shouldn't use this at all? 3) Must the dependency have a project page on BukkitDev before I can add it?
20:55
< celticminstrel>
Question 1 is more about the definition of optional vs required, because it's optional to run it but required to compile it.
20:55
< celticminstrel>
Aaaand I posted in completely the wrong channel. Yay.
20:57
<@ToxicFrog>
celticminstrel: if this is about linux package management I can probably answer it~
20:58
< celticminstrel>
It's not, though I dunno; your answer may be enlightening anyway.
20:59
<@ToxicFrog>
Well, for (1), it's traditional to release two packages per project, source and binary; the former lists as dependencies everything required to compile, the latter, everything required to run.
20:59 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
21:00
< celticminstrel>
I see.
21:00
<@ToxicFrog>
In general, the rule of thumb is "after dependency resolution, you should need to install anything else to use this", where the meaning of "use" varies depending on whether it's a binary or source package.
21:00
<@ToxicFrog>
s/should/shouldn't/
21:11 * Derakon amuseds at a comment he just wrote: "Make room for the terminator".
21:11
<@McMartin>
He'll be (at the) back
21:12
<@McMartin>
Also a reminder that one object owns another object if it destroys that object along every possible run.
21:12
<@McMartin>
PWNZ3D
21:44 Zon is now known as AnnoDomini
22:16 * TheWatcher eyes the mediawiki foundation
22:17
<@TheWatcher>
You dozy sods.
22:18
<@TheWatcher>
They only set up svg rendering using imagemagick in a way that makes all images have white backgrounds, even if the svg has a transparent one
22:23 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
22:27 AnnoDomini [annodomini@Nightstar-f7eedefa.80-203-17.nextgentel.com] has quit [[NS] Quit: leaving]
23:05
< gnolam>
Ooh, neat, there's a Python DICOM module.
23:06
< gnolam>
(I seem to have landed another small gig for the department during the conference)
23:16 * Derakon mutters at his boss.
23:17
< Derakon>
He's been asking me to add access to the set_accel function for one of our hardware devices, despite the fact that any actual use of that ability is at least a couple of months out. He's been pestering me about this for weeks.
23:17
< Derakon>
So finally, to shut him up, I do it. What's the first thing he says? "But what about the ability to set the jerk [rate of change in acceleration]?"
23:18
< Derakon>
Notably absent: any semblance of the words "thank" and "you".
23:18
< Derakon>
No goddamn respect.
23:18
<@TheWatcher>
:/
23:18
< Derakon>
Also! He complains when I mention I've been thinking about some other problems we'll have to deal with a bit more imminently, just because we aren't immediately ready to work on them.
23:22
<@Tarinaky>
:(
23:24
< Derakon>
(Also also, setting the jerk is pointless. It's just a knob he wants to be able to fiddle; it's not going to actually affect anything)
23:26
<@TheWatcher>
Sounds like he's a complete knob-fiddler, really.
23:26
<@Tamber>
^
23:27
< Derakon>
Pretty much, yeah.
23:31
<@McMartin>
FROBNICATION.
23:31
<@McMartin>
I MUST TURN THIS DIAL BECAUSE TURNING DIALS IS FUN.
23:35
< Derakon>
Well, more like it's something he doesn't control, so he's applying something he does control (i.e. me) to get control of it.
23:35
< Derakon>
How dare there be devices that do not bow to his will etc.
23:35
<@Tamber>
Is his hair pointy, by any chance?
23:35
< Derakon>
Frizzled and balding, really.
23:48 Derakon [chriswei@Nightstar-c826c088.ca.comcast.net] has quit [[NS] Quit: leaving]
--- Log closed Sat Aug 27 00:00:40 2011
code logs -> 2011 -> Fri, 26 Aug 2011< code.20110825.log - code.20110827.log >

[ Latest log file ]