code logs -> 2013 -> Thu, 27 Jun 2013< code.20130626.log - code.20130628.log >
--- Log opened Thu Jun 27 00:00:37 2013
--- Day changed Thu Jun 27 2013
00:00 Typh|offline [Typherix@Nightstar-7dc8031d.mi.comcast.net] has joined #code
00:02
<&McMartin>
Some of this may be because I'm more willing to use assembler-like memory layout tricks than ape higher-level constructs, and some of it is that I've gotten quite good at deploying those higher-level concepts when I need them.
00:03 * McMartin kind of gleed when he managed to do automatic recursive destruction of his binary search tree with "tree_postorder(t, free);"
00:27
< RichyB>
Hee
00:34 You're now known as TheWatcher[T-2]
00:37 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
00:37 mode/#code [+o himi] by ChanServ
00:39 You're now known as TheWatcher[zZzZ]
01:17 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
01:25
<&McMartin>
On the other hand, now I have an entire screen full of "Del 2 from (6 (2 (1 nil nil) (5 (3 nil (4 nil nil)) nil)) nil) -> (6 (3 (1 nil nil) (5 (4 nil nil) nil)) nil)" to verify.
01:25 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has quit [[NS] Quit: Gone.]
01:28 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has joined #code
01:41
< [R]>
What's the highest number of nested-returned closures you've seen? So far I've got returns 2-deep.
01:42
<&McMartin>
Er
01:42
<&McMartin>
Lexical scope or chain of closures?
01:42
< RichyB>
Quite a lot more than that.
01:42
<&McMartin>
If the former, probably five or six, in languages where closures are the module system.
01:42
< [R]>
Which is just a helper-function for the REPL when you have to give a callback. Use: var x = {}, n = grin.nabber(x); functionAskingForCallback(n('err', 'res')); x.res
01:43
<&McMartin>
If the latter, hundreds of millions, because it's a way to implement lazy evaluation
01:43
< [R]>
Aww
01:43 * RichyB nod
01:43
<&McMartin>
One way of doing infinite lists is as a pair of Value and Functino that gives you The Next Pair, But Now Value Is The Next One.
01:49
<&Derakon>
Ahh, Functino. I make that typo all the time.
01:49
< RichyB>
No, it's a keyword now.
01:50
< RichyB>
Henceforth we all program in pseudo-italian.
01:51
<&McMartin>
I'm not sure if I do "functino" or "horus" the most
01:53
< ktemkin>
I type "recieve" in comments all the time; and I /know/ it's spelled wrong. There's something about my muscle memory that won't let me correctly type that; I'm perpetually typing it and then correcting.
01:54 * McMartin flips through stuff on Win8.1
01:54
<&McMartin>
... I totally had missed that joke
01:54
<&McMartin>
The Windows 8 beta had INEXPLICABLE FISH as its loading and desktop screens.
01:54
<&McMartin>
I had missed that this fish was supposed to be a beta~
01:55
< ktemkin>
... oh, god.
01:55
< ktemkin>
Well, you're not alone in your obliviousness.
01:56
<&McMartin>
I feel bad, though. That was clever~
01:59
<~Vornicus>
That is clever.
02:13
< ktemkin>
Thanks, by the way, to whomever suggested f.lux.
02:14
< ktemkin>
I wound up setting up redshift, which does the same thing, but supports multihead.
02:47 * sshine got the top grade in his Abstract Algebra course!
02:50
<&McMartin>
Woot, grats
02:51 * McMartin gives sshine a crown and a division ring, so that sshine may Rule The Field.
02:51
<@gnolam>
sshine: congrats!
02:52
<@gnolam>
Time to fire up your favorite music source and listen to some Abstrakt Algebra. :)
02:52
< sshine>
hehe, thanks.
02:52
< sshine>
McMartin, actually the curriculum ended just at the beginning of the chapter on rings, so I have that in store for later.
02:54
<&McMartin>
Ah.
02:55
<&McMartin>
So, this was mostly group theory then?
02:55
< sshine>
just, yes.
02:55
< sshine>
this was Algebra 1 out of 1, 2 and 3. :)
02:55
< sshine>
finite groups, even
02:56
<&McMartin>
Cool
02:56
<&McMartin>
God
02:56
<&McMartin>
It's been 15 years
02:56
< sshine>
Sylow p-subgroups, characterising finite Abelian groups up to isomorphism, proving things with group homomorphisms.
02:56
< sshine>
hehe
02:58
< sshine>
it was a 30 minute oral presentation, re-exam because I missed the written one by accident. everyone else but me had failed the written exam and so they were extremely nervous.
02:59
< sshine>
the censor, after having asked various questions, kept saying "you'd be surprised how many students don't know that!" :)
03:00
< sshine>
there's a minority of CS students who take Algebra 1&2 and they usually fare well once they dare take the course without having its prerequisites.
03:01 * sshine is compiling Yesod at 4AM.
03:01 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Operation timed out]
03:06 Turaiel[Offline] is now known as Turaiel
03:16 Kindamoody[zZz] is now known as Kindamoody
03:42 Typh|offline [Typherix@Nightstar-7dc8031d.mi.comcast.net] has quit [Ping timeout: 121 seconds]
03:43 Typh|offline [Typherix@Nightstar-7dc8031d.mi.comcast.net] has joined #code
03:47 Typh|offline [Typherix@Nightstar-7dc8031d.mi.comcast.net] has quit [Ping timeout: 121 seconds]
03:47 Typh|offline [Typherix@Nightstar-7dc8031d.mi.comcast.net] has joined #code
04:23 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:54 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
04:54 mode/#code [+ao Derakon Derakon] by ChanServ
05:01 Turaiel [Brandon@Nightstar-7dc8031d.mi.comcast.net] has quit [Operation timed out]
05:01 Turaiel [Brandon@Nightstar-7dc8031d.mi.comcast.net] has joined #code
05:29 Derakon is now known as Derakon[AFK]
06:48 ErikMesoy|sleep is now known as ErikMesoy
07:08 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has joined #code
07:46 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has quit [[NS] Quit: No Ping reply in 180 seconds.]
07:50 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has joined #code
--- Log closed Thu Jun 27 08:01:29 2013
--- Log opened Thu Jun 27 08:01:36 2013
08:01 TheWatcher[zZzZ] [chris@Nightstar-3762b576.co.uk] has joined #code
08:01 Irssi: #code: Total of 38 nicks [17 ops, 0 halfops, 0 voices, 21 normal]
08:01 mode/#code [+o TheWatcher[zZzZ]] by ChanServ
08:02 Irssi: Join to #code was synced in 39 secs
08:48 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has quit [Ping timeout: 121 seconds]
09:03 celticminstrel [celticminst@Nightstar-8403057e.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
09:10 You're now known as TheWatcher
09:22
<@Tarinaky>
Does anyone here have experience with troubleshooting Ubuntu problems?
09:22
< Syka>
Tarinaky: yep
09:23
<@Tarinaky>
I'm trying to launch GIMP as installed using apt-get.
09:23
<@Tarinaky>
When I launch it using my user account it hangs - the --verbose flag gives this as the last line:
09:23
<@Tarinaky>
Parsing '/home/tarinaky/.gimp-2.8/tool-options/gimp-rect-select-tool'
09:23
< Syka>
Tarinaky: go to a terminal
09:23
<@Tarinaky>
If I launch gimp using sudo/root it launches without problem...
09:24
<@Tarinaky>
Syka: I'm already in a terminal.
09:24
< Syka>
`mv .gimp-2.8 .gimp-2.8-old`
09:24
<@Tarinaky>
I already rm -rf'd it several times.
09:24
<@Tarinaky>
This is a 'clean' install.
09:24
< Syka>
um
09:24
< Syka>
you rm -rf'd your home directory?
09:24
<@Tarinaky>
No, .gimp-2.8
09:24
< Syka>
strange
09:25
<@Tarinaky>
My guess is there's a broken permission 'somewhere' but then everyone would have the same problem...
09:25
< Syka>
well, the issue is happening specifically in your dir
09:26
< Syka>
try a more recent version (eg. https://launchpad.net/~otto-kesselgulasch/+archive/gimp )
09:26
<@Tarinaky>
Shouldn't apt-get get me the most recent version?
09:26
< Syka>
it'll get you the most recent version from the ubuntu repo, yes
09:26
< Syka>
the ppa i linked there is built after
09:26
< Syka>
because ubuntu stick with the same version
09:28
<@Tarinaky>
How do I install from that link sorry?
09:29
<@Tarinaky>
NM, found it.
09:32
<@Tarinaky>
I just installed from that repository. I'm getting the same issue.
09:44
< Syka>
Tarinaky: are you absolutely sure you're getting rid of your .gimp-2.8 folder? :/
09:44
<@Tarinaky>
Yes.
09:44
<@Tarinaky>
Unless Ubuntu's rm is different to what I expect...
09:49
<@Tamber>
...I wouldn't put it past them
09:49
<@Tarinaky>
I should clarify, I'm actually using lubuntu rather than vanilla Ubuntu.
09:49
<@Tarinaky>
So no GNOME or the like.
09:50
<@Tarinaky>
Oh, I tell a lie. Apparently I do have nautilus installed.
09:50
<@Tarinaky>
It isn't running though~
10:09
<@Tarinaky>
Ah. That makes it more interesting.
10:09
<@Tarinaky>
gimp -n works.
10:10
<@Azash>
Tarinaky: Are your permissions alright?
10:10
<@Tarinaky>
Permissions on what?
10:10
<@Azash>
The gimp dotfolder and its subdirs
10:11
<@Tarinaky>
As far as I am aware.
10:11
<@Tarinaky>
Given I'm deleting it/starting without one.
10:13
<@Tarinaky>
I need a nap.
10:15 Kindamoody is now known as Kindamoody|out
11:26 * Vornicus gets nothing done again.
11:28
<~Vornicus>
I'm not sure what I'm trying to do at the moment
11:30
<@TheWatcher>
Might be something to establish befor attempting to do it.
11:30
<@TheWatcher>
+e
11:30
<@Tamber>
Nah. Just do it, and enjoy the journey!
11:33
<@TheWatcher>
Gods, what do some coders have against whitespace?
11:42
<~Vornicus>
while personally I haven't figured out the point of 8 space tab width, I do enjoy making things relatively well spaced out.
11:42
<@TheWatcher>
Yeah, I always use 4 spaces
11:43
<@TheWatcher>
And this code has sane horizontal space
11:43
<@TheWatcher>
But it's like the coder thought that blank lines are made of lava or something
11:45
<~Vornicus>
I tend to put just one blank line between things, though my C++ code this month has been a little bit more liberal.
11:48
<@TheWatcher>
I will generally put two blanks between functions, one line between distinct chunks of code within a function (eg: https://github.com/TheWatcher/twscript/blob/master/TWScript.h and https://github.com/TheWatcher/twscript/blob/master/TWScript.cpp )
11:49 * Vornicus examines, determines that the next step is to build the thing that will take the generic data and turn it into planet-specific data.
11:49
<@TheWatcher>
This guy has no vertical whitespace at all
11:49
<~Vornicus>
Ouch.
11:51
<@TheWatcher>
Yeah, making my eyes cross a bit
12:26
<@gnolam>
TheWatcher: I use the same standard.
12:28
< RichyB>
That looks nice and civilised.
12:32
<~Vornicus>
My functions are stuffed together internally; if I can't read it that tells me my function is too big.
12:38
<~Vornicus>
then I usually put one line of space between functions or whatever; for this C++ thing I've gotten a little wider in some places, though it's been kind of ad-hoc.
13:14
<@iospace>
... dear coworker
13:14
<@iospace>
why are you flushign the FIFOs on this SMBus controller without checking to see if the line is busy or not?
13:14
<@iospace>
T_T
13:29 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
13:29 mode/#code [+o Courage] by ChanServ
13:30 Netsplit *.net <-> *.split quits: Chutzpah, RichyB, Derakon[AFK], Turaiel[Offline]
13:32 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
13:38 Turaiel[Offline] [Brandon@Nightstar-7dc8031d.mi.comcast.net] has joined #code
13:38 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
13:39 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has joined #code
13:50 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
14:05 * iospace wonders if she can implement this right instead of relying on BS ported code
14:08
<@iospace>
... fuck me, this driver isn't compliant with the spec
14:21 Karono [Karono@Nightstar-03f66622.optusnet.com.au] has joined #code
14:21 * iospace head desks
14:21 Karono is now known as NSGuest31405
14:23 NSGuest31405 is now known as Karono
14:48 Karono [Karono@Nightstar-03f66622.optusnet.com.au] has quit [Client closed the connection]
14:49 McMartin [mcmartin@Nightstar-77da9fec.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
14:49 Karono [Karono@Nightstar-03f66622.optusnet.com.au] has joined #code
14:51
< ErikMesoy>
I like this trap: http://www.getacoder.com/projects/solve_p_vs_np_132036.html Now if only they could suspend everyone who replied on the grounds of being spambots, clueless, or trolling.
14:54 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has quit [[NS] Quit: ]
14:55 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has joined #code
15:05
< ktemkin>
Seems like a good deal to me. That'll increase your earnings to about $1,000,000 - $1,001,000 after you pick up your millenium prize.
15:05
< ktemkin>
*$1,000,500-$1,001,000
15:08
< ErikMesoy>
Not necessarily; the millennium prize is for proof of concept, and this requires implementation. They might turn out to be the same (proof by existence), but I wouldn't count on it.
15:11
< ktemkin>
In the additional information, it says "Any other way to solve P vs NP will be accepted.", so you need not come up with a particular polynomial time algorithm for an NP-complete problem.
15:14
< RichyB>
Little more than that, you can also immediately pick up another half million dollars with https://en.wikipedia.org/wiki/RSA_Factoring_Challenge
15:17
< ktemkin>
That would require quite a bit more, as ErikMesoy was saying: rather than just coming up with an answer to "Does P = NP?", you'd specifically have to prove that P /does/ equal NP; and then also come up with an polynomial-time integer factorization algorithm.
15:17
< ktemkin>
(And besides, I think the RSA challenges ended quite a few years back.)
15:18
<&ToxicFrog>
It did.
15:21
< RichyB>
Oh. I thought they were just left around as open challenges.
15:21
< RichyB>
It's not like it's likely that anyone is going to claim the 2048 bit prize anyway.
15:24
< ktemkin>
Supposedly, quantum computers will one day be large enough to implement Shor's algorithm.
15:25
< Syka>
oh dear
15:25
< ktemkin>
Though I know next to nothing about quantum computing.
15:26
< Syka>
i checked my mail, and i've already got someone asking me if i can switch my pypi project name :/
15:26
<@Tamber>
"No."
15:26
< Syka>
yeah i'm pretty much going to be saying that
15:26
< Syka>
"I had it on pypi for a while, but deleted the project temporarily since I was having trouble with the packaging." :/
15:27
< Syka>
their project is a python wrapper around wkhtmltoimage
15:27
< ktemkin>
Does pypi let you reserve package names in advance like rubygems does?
15:27
< Syka>
mine is a metrics and riemann communication framework
15:27
< Syka>
ktemkin: yes
15:28
<@TheWatcher>
Why, what is your project name?
15:28
< ktemkin>
Then they should have done that, and deleting their project was effectively giving up the name.
15:28
< Syka>
TheWatcher: eagleeye
15:29
< Syka>
(because ~bird puns~)
15:29
< Syka>
"The first user to submit information for a given name is designated the Owner of that name." according to the docs
15:33 Karono is now known as Karono|zZz
--- Log closed Thu Jun 27 15:34:28 2013
--- Log opened Thu Jun 27 15:34:35 2013
15:34 TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code
15:34 Irssi: #code: Total of 33 nicks [16 ops, 0 halfops, 0 voices, 17 normal]
15:34 mode/#code [+o TheWatcher] by ChanServ
15:35 Irssi: Join to #code was synced in 38 secs
15:36 Reiver [quassel@Nightstar-3762b576.co.uk] has joined #code
15:45
< Syka>
yeah i'm probably just going to say no
15:51
<@TheWatcher>
Godsdamnit, fingers. Why do you keep trying to fill my HTML full of dragons?
15:53
< Syka>
because dragons are cool
15:54
<@TheWatcher>
Web browsers appear to disagree
15:54
< Syka>
that's because you didn't include the dragon doctype
15:54
<@TheWatcher>
Having <dov ...>...blabla</dov> all over the place just seems to produce garbage.
15:57
< Syka>
heh
16:08 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:15 Turaiel[Offline] is now known as Turaiel
16:21 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
16:21 mode/#code [+o himi] by ChanServ
17:00
<@Alek>
ahah
17:04 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
17:17 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
17:17 mode/#code [+o himi] by ChanServ
17:57 Kindamoody|out is now known as Kindamoody
17:59 Turaiel is now known as Turaiel[Offline]
19:38
<&ToxicFrog>
Huh. I now have a kickin' rad apron.
19:38
<@iospace>
o rly
19:38
<&ToxicFrog>
Adsense 10th anniversary.
19:38
<&ToxicFrog>
Why aprons? I do not know.
19:39
<@iospace>
hahah
20:37
<&ToxicFrog>
Ahahaha
20:37
<&ToxicFrog>
Following the discovery of a coding horror inside the google codebase:
20:37
<&ToxicFrog>
"The most merciful thing in the world, I think, is the inability of the our engineers to correlate all our codebase. We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far. Our search tools, each straining in its own direction, have hitherto harmed us little; but some day the piecing together of dissociated knowledge will open up such terrifying vistas of reality, a
20:37
<@TheWatcher>
Heee
20:38
<&ToxicFrog>
(Call of Cthulhu, for those who don't recognize the original~)
20:42 Kindamoody is now known as Kindamoody[zZz]
21:04
<@Azash>
ToxicFrog: RFC1459 sends his regards
21:04
<@Azash>
Cut off at "reality, and"
21:15
<&ToxicFrog>
"and of our frightful position therein, that we shall either go mad from the revelation or flee from the deadly light into the peace and safety of an entirely different company."
21:15
<&ToxicFrog>
Death to irssi.
21:21
< AnnoDomini>
Life to irssi!
21:21
< sshine>
ToxicFrog, there's a splitlong.pl for irssi.
21:22
<&ToxicFrog>
I should probably install that at some point
21:22
<&ToxicFrog>
I'm used to the client splitting automatically
21:22
< sshine>
http://stuff.anarcho.dk/splitlong.pl (just a copy I got from years back)
21:23
< sshine>
IRC is getting advanced. "The user ToxicFrog is not accepting DCC SENDs from you."
21:24
<&ToxicFrog>
Oh yeah, we have some kind of server-side DCC whitelisting thing now, I think
21:24
< sshine>
there used to be a version of splitlong, I remember, that inferred the maxlength from the initial ircd connect messages, even though they're non-standard.
21:55
< ktemkin>
And /another/ half-hour wasted due to PHP's bad language "features".
21:55
< ktemkin>
I really dislike this language.
22:01
< ktemkin>
I should keep a tally of how many times I've been tripped up by things that completely violate the principle of least astonishment.
22:04
<@Tamber>
It would probably be easier to keep a tally of how many times you *aren't* tripped up.
22:06
< ktemkin>
Sadly, that might be easier.
22:07
< ktemkin>
This time, I was tripped up in my debugging, because one the '1's provided in the debugger output was really a true.
22:07
< ktemkin>
*one of the
22:09
< ktemkin>
So, while I was expecting '1' to be numeric, it was not, because it was secretly a 'true' that PHP decided should be /so equivalent to one/ that even the reflection/introspection tools should represent it to one, while also not being numeric.
22:15 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
22:15 mode/#code [+ao Derakon Derakon] by ChanServ
22:18 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
22:24 Karono|zZz is now known as Karono
22:27 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
22:27 mode/#code [+qo Vornicus Vornicus] by ChanServ
22:39 Karono [Karono@Nightstar-03f66622.optusnet.com.au] has quit [Connection closed]
22:40 Karono [Karono@Nightstar-03f66622.optusnet.com.au] has joined #code
22:46
< [R]>
L2var_dump/var_export
22:55 Karono [Karono@Nightstar-03f66622.optusnet.com.au] has quit [Connection closed]
23:08 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
23:08 Karono [Karono@Nightstar-03f66622.optusnet.com.au] has joined #code
23:09 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
23:09 mode/#code [+ao Derakon Derakon] by ChanServ
23:35 Karono [Karono@Nightstar-03f66622.optusnet.com.au] has quit [Connection closed]
23:36 celticminstrel [celticminst@Nightstar-8403057e.dsl.bell.ca] has joined #code
23:36 mode/#code [+o celticminstrel] by ChanServ
23:46
<@Reiv>
Hey, Vornicus
23:47
<@Reiv>
I recall doing some probability-based math on the odds of getting X 1s in a die pool of Y. Do we still have that, or would we need to do it again?
23:48
< ktemkin>
[R]: Which is what I did, eventually, which allowed me to actually find the source of the error; I had just wasted time being misled by the output of failed unit test.
23:48
< ktemkin>
*of the
23:48
<~Vornicus>
I don't have it on me but it's not hard to get: =BINOMDIST(X,Y,1/sides,FALSE) gives you the probability of getting exactly X 1s.
23:49
<~Vornicus>
At /least/ X 1s is =1-BINOMDIST(X-1,Y,1/sides,TRUE)
23:49
<@Reiv>
What about X+ 1s?
23:49
<@Reiv>
ha nice
--- Log closed Fri Jun 28 00:00:05 2013
code logs -> 2013 -> Thu, 27 Jun 2013< code.20130626.log - code.20130628.log >

[ Latest log file ]