code logs -> 2009 -> Thu, 03 Dec 2009< code.20091202.log - code.20091204.log >
--- Log opened Thu Dec 03 00:00:58 2009
00:10 You're now known as TheWatcher[T-2]
00:10 Attilla [The.Attilla@FBC920.398CA6.F5AD58.B7D1D3] has joined #code
00:13 You're now known as TheWatcher[zZzZ]
00:13 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
00:14 Syloqs_AFH is now known as Syloqs-AFH
01:15 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has joined #code
01:54 Derakon[AFK] is now known as Derakon
02:36 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:38 * Derakon is amused at this article title: http://en.wikipedia.org/wiki/Embarrassingly_parallel
02:44 Attilla [The.Attilla@FBC920.398CA6.F5AD58.B7D1D3] has quit [[NS] Quit: ]
03:16
< simon`>
Derakon, I also just recently learned of the term. :)
03:31 Derakon [Derakon@Nightstar-5abd3ac9.ca.comcast.net] has quit [Ping timeout: 121 seconds]
04:09 * Vornicus fiddles with LaTeX, and also Word to figure out specifically what he actually wants.
04:15
< Vornicus>
Okay. two columns, 5/8" margins, 1/4" inter-column spacing. Section and chapter titles should cross the entire page; chapter titles should start a fresh page.
04:17
< Vornicus>
Chapter titles 24 point extra bold; section titles 18 point extra bold.
04:20
< Vornicus>
Subsections 12 point italic; problems 12 point plain; problem numbers 12 point bold. Subproblems same stuff, indented 1/4" (?) from parent. If the problem itself is blank, the subproblem should start on the same line as the problem.
04:24
< Vornicus>
Problem solutions indented 1/8" /both sides/ from problem/subproblem, ten point plain. Solutions have end markers, flush right in the boxes.
04:25
< Vornicus>
ten bucks I can automate all of that.
04:36
< Vornicus>
Hm. Forgot page numbers. Top outside corner, 5/8" from side, 3/8" from top, 9 point.
04:38
< Vornicus>
Chapter and section titles should be sans serif; sections and chapters have numbers (oddly enough chapters start from 0) and the numbers are separated from the titles by a diamond.
04:39
< Vornicus>
Correction - 1/2" outside margin, 3/4" gutter margin.
04:39
< Vornicus>
THere should be a hairline between columns.
04:41
< Vornicus>
Okay I think that covers it.
04:42
< Vornicus>
Oh. Only multiline solutions should have end markers.
04:44
< Vornicus>
Now. Time to learn enough LaTeX to make it happen.
05:13
< Vornicus>
I did not know, before I did that, how much I have to say about how the page is laid out.
05:14
< McMartin>
This is why I do not believe that LaTeX and word processors are direct competitors.
05:15
< Vornicus>
I actually have more than that written in a text document; I've even defined down to where columns are allowed to break if necessary within problems.
05:23
< Vornicus>
Okay. Step 1 I guess is getting the margins, columns, and headers set up.
05:29 AnnoDomini [annodomini@Nightstar-302708ba.adsl.tpnet.pl] has joined #code
05:31 AbuDhabi [annodomini@Nightstar-302708ba.adsl.tpnet.pl] has joined #code
05:34 AnnoDomini [annodomini@Nightstar-302708ba.adsl.tpnet.pl] has quit [Client closed the connection]
05:35 AbuDhabi [annodomini@Nightstar-302708ba.adsl.tpnet.pl] has left #code []
05:35 AbuDhabi [annodomini@Nightstar-302708ba.adsl.tpnet.pl] has joined #code
05:41
< Rhamphoryncus>
Anybody remember the name of that theory that you can predict the success of a programming student based on some fairly simple testing?
05:43
< Rhamphoryncus>
Something like half the students have the wrong mental model to begin with, and few fix it no matter how much teaching
05:44
< Tarinaky>
I can vaguely recall one that involves VB and people who know it being 'damaged'.
05:45
< Rhamphoryncus>
Don't think that was it
05:45
< Rhamphoryncus>
This one had something like "a = 0; b = 12; a = b; what is a?"
05:45
< Rhamphoryncus>
or rather, what is a and what is b
05:45
< Rhamphoryncus>
lots of different interpretations
05:50
< Tarinaky>
I... I can only think of two :/
05:52
< Rhamphoryncus>
which are?
05:52
< Tarinaky>
Treating the '=' as an assignment operator... a and b are both 12.
05:53
< Tarinaky>
The second is as a comparator... In which case they could be anything.
05:54
< Rhamphoryncus>
http://www.cs.mdx.ac.uk/research/PhDArea/saeed/S_Dehnadi_ppij-2006__2.pdf
05:54
< Rhamphoryncus>
found it
05:55
< Rhamphoryncus>
sorry, a and b started as 10 and 20
06:05 * Tarinaky shrugs.
06:06
< Vornicus>
Hrm. This is not a difficulty I envisioned. The tutorial at http://www.tex.ac.uk/tex-archive/info/beginlatex/html/ says that documentation for various packages should be on my hard drive in my installation's texmf/doc folder, but there's nothing named or containing the word "geometry", according to search.
06:14 dmlandrum [darren@8E7DA3.838E9A.6CA65A.A8EF5A] has quit [[NS] Quit: Leaving]
06:31
< Vornicus>
Okay, found that documentation. Now columns.
06:36
< Vornicus>
Okay, found the columns docs, not hard to set up; however I would like to switch between a full-page header and the two-column section without actually repeating the columns command each time.
06:43
< Vornicus>
I suspect this happens when I start redefining how my section and chapter breaks work.
06:44
< Vornicus>
...no information there on how to define column spacing and hairlines.
06:47
< Vornicus>
Ah, there that is.
06:47
< Vornicus>
Okay. Columns and margins set up, except for automating the column starts etc.
06:52
< Vornicus>
multicol is a lot cleaner than setting twocolumn for the whole document. Balanced and all.
07:09
< Vornicus>
Okay, headers set.
07:23
< Vornicus>
...except i don't want that line there. Get lost, line!
07:25
< Vornicus>
There it goes.
07:37
< Vornicus>
Okay. Chapters should be allowed to start on even /or/ odd pages...
08:33 * Vornicus gets all of the following to work: chapter and section headings look like he wants; headers and columns and pages all look right. Now: \chaptername should give the name of the chapter instead of just "Chapter"
08:45
< Vornicus>
So far none of the things suggested actually work. Hrmng.
08:55 You're now known as TheWatcher
08:58 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has quit [Client exited]
08:58
< Vornicus>
TF: I have a great variety of LaTeX questions for you when we happen to once again be awake at the same time. Most important right now are "how do I make chapter and section headings break out of columns every time" which I suspect will teach me much about how this thing actually works, and "how do I get the name of the chapter to actually show up in the header, cuz it ain't"
09:04 Vornicus is now known as Vornicus-Latens
10:01 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
10:29 Attilla [The.Attilla@FBC920.398CA6.F5AD58.B7D1D3] has joined #code
10:45 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
11:04 MyCatSchemes [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
11:05 MyCatVer1s is now known as MyCatVerbs
11:26 Tarinaky [Tarinaky@Nightstar-cad4a6ec.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
11:40 Tarinaky [Tarinaky@Nightstar-a39a16b4.adsl.virginmedia.net] has joined #code
12:03 AbuDhabi [annodomini@Nightstar-302708ba.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
12:17 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection]
13:41 Tarinaky [Tarinaky@Nightstar-a39a16b4.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
13:48 AnnoDomini [annodomini@Nightstar-6ee2c5d2.adsl.tpnet.pl] has joined #code
13:55 Tarinaky [Tarinaky@Nightstar-7b0c05ad.adsl.virginmedia.net] has joined #code
14:37 * gnolam laughs diabolically.
14:44
< gnolam>
(Function pointer abuse. This might be some of the most evil C++ I have ever written.)
15:03
< MyCatSchemes>
No it isn't.
15:03
< MyCatSchemes>
It's not really evil until you're abusing both member pointers and method pointers.
15:03
< MyCatSchemes>
The latter of which, I am not even sure offhand if there is such a thing.
15:04
< gnolam>
They are pointers to member functions. :)
15:04
< gnolam>
Inside various nested std:: structures. :)
15:05
< MyCatSchemes>
Nested std:: structures are no scarier than any other kind of nested structures...
15:06
< MyCatSchemes>
http://docs.sun.com/source/816-6408-10/option.htm <- dig the epic eval() abuse in the "populate a SELECT" example.
15:06
< gnolam>
I disagree. Nested C++ templates make it so that even a simple typo can lead to error messages apparently written by Abdul al-Hazred.
15:07
< MyCatSchemes>
Mad Arabs FTW.
15:08
< gnolam>
And in the end, you end up with lines like ((*this).*(it->second))().
15:08
< MyCatSchemes>
Yeah, okay, I'll give you that.
16:00
< simon`>
ew
16:00
< simon`>
cool, but dangerous.
16:05
< Namegduf>
Method pointers can be useful.
17:01 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has joined #code
18:50 Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has joined #code
18:50
< Derakon[work]>
After discovering a variable named "aaaa", I decided to do a quick little check...
18:50
< Derakon[work]>
% perl -e 'foreach ("a".."z") {$a = "$_$_$_"; print "$a:\n"; print `grep -ri $a *`}'|grep -v test > repetition.txt
18:50
< Derakon[work]>
udp024415uds% wc -l repetition.txt
18:50
< Derakon[work]>
284 repetition.txt
18:52 MyCatSchemes [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
18:54
<@TheWatcher>
...
18:54
<@TheWatcher>
Derakon[work]: Where is sebastian again, roughly? In Germany?
18:55
< Derakon[work]>
Somewhere in Germany, yes.
18:55
<@TheWatcher>
I wonder how much it'd cost me to get to Germany...
18:56
< Derakon[work]>
Note that a significant number of the results from that were from his deciding that the proper name shortcut when importing sebGui is GGG.
18:59
<@TheWatcher>
Well, I suppose that one way to look at it is to admire his adherance to consistent naming!
19:02
< Derakon[work]>
Of course, I'm breaking that wherever I find it...
19:03
< Derakon[work]>
(Generally, eliminating "import X from Y" and "import X as Y" in favor of "import X")
19:11
< simon`>
Derakon[work], grep -Ei '([a-z])\1\1' test | wc -l
19:11
< simon`>
Derakon[work], shouldn't that suffice?
19:18
< Derakon[work]>
I tend to substitute Perl in for exhaustive knowledge of different systems' pattern matching peculiarities.
19:19
< Derakon[work]>
But yes, that looks like it would work.
19:28
< simon`>
so do I
19:29
< simon`>
I don't even know if that works in egrep, it would in perl. :P
19:37 You're now known as TheWatcher[afk]
19:55 * Derakon[work] eyes Numpy, which includes a function named "arange".
19:56
< Derakon[work]>
Mental note: do not name functions such that people think, at first glance, that I am incapable of spelling properly.
19:58
< simon`>
heh
19:59
< simon`>
in python I'd assume it'd be a variant to range/xrange
19:59
< Derakon[work]>
Yes.
19:59
< Derakon[work]>
I suspect the "a" stands for "arbitrary". Or perhaps for "floating point".
19:59 * McMartin throws creat() at Derakon.
19:59
< Derakon[work]>
Basically it doesn't constrain itself to integers.
20:00 * Derakon[work] looks up creat(). "...why?"
20:00
< Derakon[work]>
Is this something like HTTP_REFERER?
20:01 * simon` is trying to get a good fetchmail/procmail/mutt setup on his laptop.
20:01
< McMartin>
Because it's POSIX, and letters generally - especially vowels - are an abomination unto it.
20:01
< Derakon[work]>
But they couldn't get away with calling it "crt". Gotcha.
20:06 * Derakon[work] encounters, in some OpenGL drawing code, semicolons.
20:06
< Derakon[work]>
Okay, now he's really crossed the line~
20:06
< Derakon[work]>
(Probably he copied this from a C example)
20:24 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Ping timeout: 121 seconds]
20:35 You're now known as TheWatcher
21:17 * Derakon[work] finishes the first-pass code style fixing for this 988-line file.
21:18
< Derakon[work]>
Tomorrow I'll read the diff and make certain it still functions properly. ?.?
21:31
< AnnoDomini>
Is that an emoticon at the end?
21:31
< McMartin>
Yes; the eyes are logical NOTs.
21:31
< McMartin>
It's roughly similar to >_>
21:34
< Derakon[work]>
Heh. The diff for the file is 30% longer than the file itself.
21:34
< Derakon[work]>
I had to make a lot of changes!
21:37
< Derakon[work]>
(And this is just fixing code style; I didn't change much of anything in how the code actually runs)
21:38 * simon` is still downloading old emails through pop3s. this takes forever.
21:49 * Derakon[work] sighs as he discovers that Sebastian has written a sign() function that he uses precisely once.
21:49
< Derakon[work]>
(Said sign function is, in its entirety, "return (arr>0)*2 - 1")
21:51
< McMartin>
That isn't even a correct sign function.
21:52
< Derakon[work]>
I'm not certain, but the argument might be a Numpy array, which would explain why it's named "arr".
21:53 crem [moo@Nightstar-8ca3eea7.adsl.mgts.by] has quit [Connection reset by peer]
21:53
< McMartin>
Does he have a variable named "avast"?
21:53
< Derakon[work]>
Sadly, no.
21:58 SmithKurosaki [Smith@Nightstar-e2478917.cable.rogers.com] has quit [Client closed the connection]
22:03 SmithKurosaki [Smith@Nightstar-e2478917.cable.rogers.com] has joined #code
22:07 * Vornicus-Latens returns home from work.
22:19 crem [moo@Nightstar-8ca3eea7.adsl.mgts.by] has joined #code
23:15 * Derakon[work] excises 9 globally-scoped variables and two arguments from a function.
23:15
< McMartin>
>_<
23:15
< Derakon[work]>
One of them was named f.
23:16
< McMartin>
>_<
23:16
< Derakon[work]>
(It meant "frame" this time, instead of "file"!)
23:16
< Derakon[work]>
Now I just have to give more useful names to sv1, sv1h1, sv1h1v_h, etc.
23:18
< AnnoDomini>
JHVH.
23:19 * Vornicus-Latens returns home from picking up secret santa name and also cookies.
23:19 * Vornicus-Latens then rejoins the battle against LaTeX
23:19 Vornicus-Latens is now known as Vornicus
23:27 * Derakon[work] eyes this code.
23:27
< Derakon[work]>
Sebastian must've been working in a 60-column window that day.
23:27
< Derakon[work]>
camVertSizer.Add(panel, 0,
23:27
< Derakon[work]>
wx.EXPAND |
23:27
< Derakon[work]>
wx.ALL, 2)
23:28
< Derakon[work]>
(NB camVertSizer used to be called "sv1h1_v[i]")
23:44 * Derakon[work] finishes reworking the code style for a 150-line file; the file diff is 299 lines. ;.;
23:45
< McMartin>
That sounds like you changed every single line that wasn't blank space.
23:46
< Derakon[work]>
Just about.
23:46
< McMartin>
Or possibly that wasn't the shebang.
23:46
< Derakon[work]>
The lines I skipped were: a couple of imports; some comments; the creation of a sizer object (which I'd added the last time I was in this file), and part of a loop construct (which I also added last time).
23:47
< Derakon[work]>
And 23 blank lines.
23:49 Netsplit *.net <-> *.split quits: AnnoDomini, simon`, KazWork, Vornicus, crem, @jerith, MyCatVerbs, EvilDarkLord, Alek, Namegduf, (+2 more, use /NETSPLIT to show all of them)
23:53
< Derakon[work]>
I mean, I don't really get anything out of reading this code diff.
23:54 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Reboot]
23:54
< Derakon[work]>
"You removed every line of code and replaced it with a similar line of code, but because I'm diff, I'm not going to display them side-by-side for you."
23:54
< Derakon[work]>
Instead I get a big chunk of 20+ lines removed, then 20+ lines added, then the blank line I didn't touch...
--- Log closed Fri Dec 04 00:00:00 2009
code logs -> 2009 -> Thu, 03 Dec 2009< code.20091202.log - code.20091204.log >