code logs -> 2012 -> Tue, 10 Jul 2012< code.20120709.log - code.20120711.log >
--- Log opened Tue Jul 10 00:00:04 2012
00:03 You're now known as TheWatcher[T-2]
00:05
< ToxicFrog>
Vornicus: if you actually want to read it, log in to ifmud and @recap #macdev all
00:06 You're now known as TheWatcher[zZzZ]
00:13 Nemu [NeophoxProd@Nightstar-d8ef8074.asahi-net.or.jp] has quit [Client closed the connection]
00:14
<~Vornicus>
let's assume I've never been to ifmud
00:16
<&McMartin>
There was a discussion over whether shadowed variable names are intrinsically evil or not
00:16
<&McMartin>
And the FP guys were all "of course they aren't, they're mandatory" and everyone else was all "of course they are, why is this ever allowed"
00:18
<~Vornicus>
I think I might have missed the meaning of "shadowed variable names"
00:19
<~Vornicus>
Because I'm not really an FP guy and what I think of shadowed variable names is that they're, um. THe obvious way to go about things?
00:19
<&McMartin>
Where an inner scope has a variable that is the same name as some outer scope, and this is not an error
00:20
<&McMartin>
Though to be fair "should this be an error" and "should you ever actually do this" are two different things.
00:20
<&McMartin>
In something like C++ I'm pretty OK with "you should not do this except for this->x = x"
00:21
<&McMartin>
But for something where you're throwing inline lambdas around everywhere, the default should be "not an upvalue unless it's *obviously* an upvalue"
00:28 Derakon[AFK] is now known as Derakon
00:29
<~Vornicus>
So basically shadowing is what happens when you do assignment to a var in a function in python without first doing global
00:29
<&McMartin>
Yes.
00:29
<~Vornicus>
Okay.
00:30
<~Vornicus>
I'm not generally a fan, then.
00:30
<&McMartin>
This is a bigger deal in languages like, um, all the FP ones where single-letter parameter names are considered good style and function definitions are heavily nested
00:31 io|DRIVING is now known as iospace
00:31 Derakon_ [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
00:32 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
00:32 Derakon_ is now known as Derakon
00:32 mode/#code [+ao Derakon Derakon] by ChanServ
01:17 Attilla [Obsolete@Nightstar-d2497510.as43234.net] has quit [Ping timeout: 121 seconds]
01:46 Kindamoody[zZz] is now known as Kindamoody
01:50 Derakon_ [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
01:51 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [NickServ (GHOST command used by Derakon_)]
01:51 Derakon_ is now known as Derakon
01:51 mode/#code [+ao Derakon Derakon] by ChanServ
02:01 cpux|2 is now known as cpux
02:14 Derakon is now known as Derakon[AFK]
02:33 McMartin [mcmartin@Nightstar-c2a9aed7.pltn13.sbcglobal.net] has quit [[NS] Quit: leaving]
02:40 Kindamoody is now known as Kindamoody|p2
02:41 Tamber [tamber@furryhelix.co.uk] has quit [Client closed the connection]
02:41 FurryHelix [tamber@furryhelix.co.uk] has joined #code
03:29 Kindamoody|p2 is now known as Kindamoody
03:50 McMartin [mcmartin@Nightstar-c2a9aed7.pltn13.sbcglobal.net] has joined #code
03:50 mode/#code [+ao McMartin McMartin] by ChanServ
04:09 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has quit [Connection closed]
04:17 Derakon[AFK] is now known as Derakon
04:28 iospace is now known as io|t-2
04:30 io|t-2 is now known as iospacedout
04:57 Ariii [Ariii@Nightstar-f695463f.cicril.sbcglobal.net] has joined #code
06:24 Kindamoody is now known as Kindamoody|out
06:40 Derakon is now known as Derakon[AFK]
06:42 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
06:57 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
08:38 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
08:48 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Gone]
08:52 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
08:52 mode/#code [+o himi] by ChanServ
09:26 McMartin [mcmartin@Nightstar-c2a9aed7.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
09:26 Attilla [Obsolete@Nightstar-d2497510.as43234.net] has joined #code
09:28 You're now known as TheWatcher
09:34 gnolam [lenin@Nightstar-3d327d4a.dialup.ice.net] has joined #code
09:56 McMartin [mcmartin@Nightstar-c2a9aed7.pltn13.sbcglobal.net] has joined #code
09:56 mode/#code [+ao McMartin McMartin] by ChanServ
10:06 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
11:06 Nemu [NeophoxProd@Nightstar-3d299abe.asahi-net.or.jp] has joined #code
11:36 Nemu [NeophoxProd@Nightstar-3d299abe.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
11:38 gnolaptop [lenin@Nightstar-3d327d4a.dialup.ice.net] has joined #code
11:38 gnolaptop_ [lenin@Nightstar-3d327d4a.dialup.ice.net] has joined #code
11:38 Nemu [NeophoxProd@Nightstar-fd87b668.asahi-net.or.jp] has joined #code
11:38 gnolam is now known as NSGuest60759
11:38 NSGuest60759 [lenin@Nightstar-3d327d4a.dialup.ice.net] has quit [Connection reset by peer]
11:39 gnolaptop_ is now known as gnolam
11:41 gnolaptop [lenin@Nightstar-3d327d4a.dialup.ice.net] has quit [Connection closed]
11:53 iospacedout is now known as iospace
12:28 gnolam [lenin@Nightstar-3d327d4a.dialup.ice.net] has quit [Client closed the connection]
12:28 gnolam [lenin@Nightstar-3d327d4a.dialup.ice.net] has joined #code
12:32 SmithKurosaki [smith@Nightstar-1748d158.home1.cgocable.net] has joined #code
12:33 Attilla [Obsolete@Nightstar-d2497510.as43234.net] has quit [[NS] Quit: ]
12:47 Attilla [Obsolete@Nightstar-d2497510.as43234.net] has joined #code
12:50 gnolam [lenin@Nightstar-3d327d4a.dialup.ice.net] has quit [[NS] Quit: Gone]
14:36 FurryHelix is now known as Tamber
14:36 mode/#code [+o Tamber] by ChanServ
14:50 SmithKurosaki [smith@Nightstar-1748d158.home1.cgocable.net] has quit [Ping timeout: 121 seconds]
16:23 gnolam [lenin@Nightstar-0fcc80a0.tbcn.telia.com] has joined #code
16:54 Kindamoody|out is now known as Kindamoody
17:41 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has joined #code
17:41 mode/#code [+o Vash] by ChanServ
18:42 jeroid [jerith@687AAB.1BBF0C.D7C5C8.394A59] has joined #code
18:58 Chi [omegaboot@Nightstar-56dbba0f.in.comcast.net] has joined #code
18:58 mode/#code [+o Chi] by ChanServ
18:59 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has quit [Ping timeout: 121 seconds]
19:04 Kindamoody is now known as Kindamoody[zZz]
19:32 jeroid [jerith@687AAB.1BBF0C.D7C5C8.394A59] has quit [[NS] Quit: Bye]
19:35
< Tarinaky>
Derp moment.
19:35
< Tarinaky>
What's the syntax for a C++ typedef?
19:36
< ShellNinja>
This seems easily googlable.
19:46
< ToxicFrog>
pretty sure it's the same as a C one
19:48
< ToxicFrog>
typedef type name;
19:50
< Tarinaky>
name being the alias?
19:50 * Tarinaky forgot which way around it went >.<
19:50 Vashicus [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has joined #code
19:51 * rms always remembers it as being the opposite of a macro
19:52
<@rms>
#define NAME type
19:52
<@rms>
typedef type name;
19:52
< ToxicFrog>
Tamber: yes.
19:52 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has quit [Ping timeout: 121 seconds]
19:52
< ToxicFrog>
typedef long unsigned int uint32_t;
20:00
< Tarinaky>
Isn't a long 64bits usually?
20:02
<@rms>
No
20:02
<@rms>
long long is 64bits
20:02
<@rms>
long is 32 or 16
20:02
< Tarinaky>
How can you have a 16bit variable on a 32bit archetecture?
20:02
< Tarinaky>
*architecture
20:02
< Tarinaky>
Unless you're just throwing the high/low bits away.
20:03 * Tarinaky thought a short was 32bits on a 32bit target and everything else was just 64bits.
20:03
<@rms>
No
20:04
<@rms>
Addresses are always a single word, but they can point to /any/ size of type.
20:05
< Tarinaky>
Yeah, but aren't the registers a fixed size?
20:06
<@rms>
Yes.
20:06
<@rms>
Variables aren't registers though.
20:06
<@rms>
Unless you declare them as such.
20:13
< Tarinaky>
Well, I got told.
20:16
< ToxicFrog>
rms: actually, on AMD64, 'short' is 16-bit, 'int' is 32-bit, and both 'long int' and 'long long int' are 64-bit.
20:17
< ToxicFrog>
You're right otherwise, though.
20:29
<@rms>
Bleh
20:29
<@rms>
This is why I use stdint :/
20:38
< ToxicFrog>
Ditto.
20:45 Vashicus is now known as Vash
20:46 mode/#code [+o Vash] by ChanServ
20:53
<&jerith>
Doesn't C have explicitly-sized integers these days?
20:56
<@rms>
Yes, they're in stdint.
20:57
< iospace>
HEY GUYS
20:57
< iospace>
LETS USE UINTN FOR VALUES THAT ARE ONLY ZERO OR ONE
20:57
< ShellNinja>
HEY IOSPACE
20:57
< iospace>
CAUSE THAT'S TOTALLY NOT A WASTE OF MEMORY
20:58
< iospace>
who's ShellNinja ?
20:58
< ShellNinja>
I am vengeance, I am the night!
20:58 * iospace kicks ShellNinja in the nuts
20:59
< ShellNinja>
Ow.
20:59
< iospace>
well, assuming you're male
20:59
< iospace>
if not I apologize D:
21:00
< ShellNinja>
For assuming, or for kicking in the genitals? :P
21:01
< iospace>
for assuming ^_^
21:01
< ShellNinja>
Good show. This maneuver works on both sexes.
21:01
< iospace>
i know
21:02
<&jerith>
ShellNinja: iospace gets very upset when someone misjudges his gender. *hides*
21:02
<&jerith>
(Please not the nuts. My Young Lady would object.)
21:03
< iospace>
...
21:03
<&jerith>
(Here, take this very nice spleen.)
21:03 * ShellNinja politely refrains from #politics material in here.
21:03 * iospace breaks out a pair of six inch stilettos
21:03
< iospace>
oh jerith~
21:04
<&jerith>
Oh, iospace!
21:04 * iospace kicks jerith in the nuts... hard
21:04
< iospace>
with heel i may add
21:05 * jerith curls up in a little ball and whimpers. Piteously.
21:05
< iospace>
^_^
21:05
< iospace>
ShellNinja: yes i am a woman, despite what jerith may say
21:05
<&jerith>
Also, ShellNinja is AD.
21:06
< iospace>
AD?
21:06
< ToxicFrog>
Active Directory?
21:06
< iospace>
active dump?
21:06
<&jerith>
AnnoDomini, amongst others.
21:06
< ShellNinja>
AnnoDomini. AbuDhabi. AngryDrake. Etc, etc.
21:06
< iospace>
ah
21:06
< ShellNinja>
Petey naming scheme.
21:32 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
21:35 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
22:04 iospace is now known as io
22:04 io is now known as io\GONE
22:24 * TheWatcher arghs, stabs ssh until it actually starts behaving in the way its documentation says it should
22:27
<@TheWatcher>
I have ssh_config set up as
22:27
<@TheWatcher>
Host localhost
22:27
<@TheWatcher>
Port <portnumber>
22:27
<@TheWatcher>
but any attempt to `ssh localhost` fails because it's still trying to connect to 22 rather than the number I set
22:29
<@TheWatcher>
But if I set it in ~/.ssh/config it works, so it's obviously just not reading /etc/ssh/ssh_config argh
22:32
< ToxicFrog>
TheWatcher: try ssh -vvv and see if it says anything useful about ssh_config.
22:33
<@TheWatcher>
If I have ~/.ssh/config I get a "debug1: Reading configuration data /home/chris/.ssh/config", but without it, nothing. It just doesn't even seem to be looking at /etc/ssh/ssh_config
22:35
< ToxicFrog>
o.O
22:35
< ToxicFrog>
strings -n10 $(type -p ssh) | fgrep ssh_config
22:36
<@TheWatcher>
yeah, it's there
22:36
< ToxicFrog>
I've got nothing
22:36
<@TheWatcher>
It's not aliased, either, so it's not silently getting a -F added somewhere
22:38
<&jerith>
TheWatcher: Are the permissions right?
22:38
<&jerith>
ssh cares a lot about permissions.
22:39
<@TheWatcher>
... ssh_config was 644, but /etc/ssh/ was 700
22:40
<@TheWatcher>
I should have checked that one first, thanks jerith
22:40
< ToxicFrog>
jerith: in that case I would definitely expect some sort of message
22:40
< ToxicFrog>
Especially in maximum debug mode
22:40
< ToxicFrog>
So the fact that there isn't one may be worth a bug report!
22:41
<&jerith>
ToxicFrog: I've only ever had permission warnings about homedir config stuff, not /etc config stuff.
22:41
<&jerith>
But I do very little of the latter, so.
22:41
< ToxicFrog>
jerith: yeah, my point is that it should warn
22:42
<&jerith>
If you're not root and can't fix it, the warning's just noise.
22:42
<&jerith>
But that's what Maximum Debug is /for/.
22:43
<@rms>
Is there a tab before Port?
22:44
<@TheWatcher>
Also TF, do you have any recommendations for maildrop config documentation, because I find the official documentation is spectacularly horrible
22:45
<@TheWatcher>
rms: no, but it doesn't need one, that's only there for readability. Works fine without.
22:45 Nemu [NeophoxProd@Nightstar-fd87b668.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
22:48
<@rms>
Are you seeing a line "Applying options for localhost"?
22:48
<@rms>
(With the -vvv)
22:48
<&jerith>
rms: It's fixed now. :-)
22:49
<&jerith>
'Twas the permissions thing.
22:49
<@rms>
Ah
22:51
< ToxicFrog>
TheWatcher: look at some example filter files - I can pastebin a sanitized version of mine if you like
22:52
<@TheWatcher>
I would be deeply grateful if you could.
22:52
< ToxicFrog>
Alright. It'll have to happen after I finish making this curry, though.
22:52
<@TheWatcher>
No worries :)
22:55 * ToxicFrog deploys the mustard oil
22:56
< ToxicFrog>
Hmm. Looking at my .mailfilter, it's not actually as interesting as I remember, because I factored most of it out into a shell script and maildrop just reads its output to figure out where to put things
22:56
< ToxicFrog>
(specifically, it gives maildrop a set of regexes-maildir pairs, and maildrop picks the first one the message matches)
22:57
<@TheWatcher>
Still likely to be useful as a reference, if you're willing
23:08 gnolam [lenin@Nightstar-0fcc80a0.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
23:12
< ToxicFrog>
TheWatcher: https://gist.github.com/731777cd44facfe545f3
23:13
< ToxicFrog>
Mail/filter is just a shell script that looks up regexes and maildir names by index; the actual list is a bunch of entries like:
23:13
< ToxicFrog>
lists/lua-l^List-Id:.*lua-l
23:13
< ToxicFrog>
spam^X-Spam-Level: *(XXXXX+|\*\*\*\*\*+)
23:13
< ToxicFrog>
root^To:.*root@(orias|localhost).*
23:14
< ToxicFrog>
bulk/Facebook^X-Facebook
23:14
<@TheWatcher>
Awesomeness, thank you!
23:15 gnolam [lenin@Nightstar-0fcc80a0.tbcn.telia.com] has joined #code
23:29 io\GONE is now known as iospace
23:41 gnolam [lenin@Nightstar-0fcc80a0.tbcn.telia.com] has quit [[NS] Quit: Z?]
23:54 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
--- Log closed Wed Jul 11 00:00:36 2012
code logs -> 2012 -> Tue, 10 Jul 2012< code.20120709.log - code.20120711.log >

[ Latest log file ]