code logs -> 2008 -> Sun, 07 Dec 2008< code.20081206.log - code.20081208.log >
--- Log opened Sun Dec 07 00:00:23 2008
00:16 McMartin [~mcmartin@Nightstar-14680.dsl.pltn13.sbcglobal.net] has quit [Client exited]
00:19 AnnoDomini [~farkoff@Nightstar-29296.neoplus.adsl.tpnet.pl] has quit [Quit: Tradition may be defined as an extension of the franchise. Tradition means giving votes to the most obscure of all classes, our ancestors. It is the democracy of the dead. Tradition refuses to submit to the small and arrogant oligarchy of those who merely happen to be walking about. All democrats object to men being disqualified by the accident of birth; tradition objects to their being disqualified by the accident of death.]
00:25 McMartin [~mcmartin@Nightstar-14680.dsl.pltn13.sbcglobal.net] has joined #code
00:25 mode/#code [+o McMartin] by ChanServ
00:34 Consul [~consul@Nightstar-3759.dsl.sfldmi.ameritech.net] has joined #code
00:34 mode/#code [+o Consul] by ChanServ
00:34
<@Consul>
Woohoo! The Zonet works!
00:35
<@Consul>
It took an amazingly small amount of effort, too.
00:43
<@Vornicus>
Hm. brute-forcing 35 isn't working. I should probably see about generating numbers a different way.
00:46
<@Vornicus>
except for 2 and 5, all prime numbers end in 1, 3, 7, or 9. Which means that all circular primes will consist entirely of those digits. There's only 5,456 numbers that satisfy that, and I'd imagine most aren't prime.
00:51 * Vornicus fiddles, creates for himself a crazy little recursive iterator that generates that list.
00:51 Syloqs-AFH [~Syloq@Admin.Nightstar.Net] has quit [Ping Timeout]
00:52 You're now known as TheWatcher
00:58 You're now known as TheWatcher[T-2]
01:05 You're now known as TheWatcher[zZzZ]
01:09
<@Vornicus>
okay, filtered down to 1113 items.
01:37
<@Vornicus>
oh, god, 37 looks /horrible/.
01:40 * Vornicus fiddles. have to generate lists in both directions, and intersect them as he goes.
01:41
<@Vornicus>
gonna probably want to use a less "make everything!" and more "use what you have!" prime generator.
01:57 * Vornicus does it by hand instead.
01:59 * Vornicus ...gets it wrong because he can't think straight.
02:10 * gnolam deploys the "Goatse MK I" against the Sakkra.
02:10
<@gnolam>
(Damn you WINE for letting me play MOO2 on my EEE PC!)
02:11
<@Vornicus>
heh
02:12
<@gnolam>
The Goatse MK I is equipped with Black Hole Generators.
02:12
<@Vornicus>
aheh
02:22 * Vornicus fiddles with it.
02:38
<@Vornicus>
Woot!
02:41
<@Vornicus>
oh that code is horrible!
03:37 gnolam [lenin@79.136.60.ns-4387] has quit [Quit: Z?]
03:37 * Vornicus finally makes said use what you have prime generator for #41.
03:47
<@Vornicus>
I'm building a surprising amount of Generally Useful Things here.
04:01 * Serah dances with Vornicus.
04:01
<@Serah>
Generally useful tingies you need?
04:17
<@Vornicus>
Well, most of them I never wrote before.
04:32
<@Vornicus>
So idunno if I need them or not, really
04:59 * Vornicus ...quails at 43, which is Scary.
04:59 * Serah nibbles on Vorn.
05:00 * Vornicus nibbles on Serah.
05:00
<@Serah>
Startled me, forgot how high my sound settings were.
05:02
<@Serah>
Would the euler projects be a good way to learn how to code certain solutions?
05:02
<@McMartin>
L-L-L-L-L-Look at you, hacker
05:02
<@Serah>
?
05:02
<@McMartin>
That is my canonical experience with my sound settings being too high.
05:03
<@Vornicus>
Project Euler has improved my refactoring, complexity theory, and general math skills.
05:03
<@McMartin>
(Music test: elevator music. That was normal, but it was also the MIDI port.)
05:03
<@McMartin>
(Sound test: BOOMING TAUNT FROM INSANE GENOCIDAL AI)
05:07
<@Serah>
Whenever someone writes my current nick, or my usual nick, or the nick stored in a specific variable, my computer alerts me by playing a unitsound from starcraft (from a general set I picked).
05:08
<@Serah>
The last one was "I'm listening" by infected kerrigan.
05:12
<@ToxicFrog>
Heh
05:31 * Vornicus does huge amounts of copypasta to do 43, discovers that he's Doing It Wrong.
05:42
<@Vornicus>
ha!
05:42
<@Vornicus>
so horrible though ;_;
05:44
<@jerith>
That was a yucky one, yes.
05:45 * Vornicus got it to buzz through pretty quickly though.
06:00
<@Vornicus>
...what?
06:00 * Vornicus can't figure out what's wrong with his answer for 44.
06:08
<@Vornicus>
oh. duh.
06:09 * Vornicus makes sure that he checks the /difference/ too.
06:09
<@Vornicus>
This will not be a small number.
06:13
<@Vornicus>
indeed, I think it's taking too long to be right.
06:14
<@jerith>
Are you filtering the right things first?
06:15
<@Vornicus>
if (k + current) / 2.0 in pentagons and (current - k) / 2.0 in pentagons: <--- this is my test; I'm looking for two pentagonal numbers that when added and subtracted are still pentagonal numbers, and k and current are the resultants.
06:17
<@Vornicus>
I'd like a guess at the right value; I've gotten to pentagon(1500) and haven't found /any/ that match the thing I need.
06:18
<@jerith>
Why are you dividing by two?
06:19
<@Vornicus>
These are the sum and difference.
06:19
<@jerith>
Oh, I did it the other way around.
06:19
<@jerith>
Pairs = lists:sort([{P1-P2, P1+P2} || P1 <- Pents,
06:19
<@jerith>
P2 <- Pents,
06:19
<@jerith>
P1 > P2]),
06:19
<@jerith>
Why the hell did I sort i?
06:20
<@Vornicus>
Faster searched?
06:20
<@jerith>
The next thing I do is a lists:min() over a list comprehension that filters Pairs.
06:21
<@jerith>
Remind me to look at that when I get back.
06:22
<@Vornicus>
Could you at least give me an order of magnitude for the answer?
06:24
<@jerith>
I make 4k pentagonal numbers.
06:24
<@jerith>
Don't remember where that's from.
06:24
<@jerith>
(I should comment this stuff better.)
06:24
<@Vornicus>
Gotcha. So my thing is taking a long time mainly because my algorithm is slow.
06:26
<@jerith>
Mine's taken over 30s so far.
06:26
<@jerith>
It might be one of the ones I got an answer out of much too slowly, but decided not to optimise immediately.
06:26
<@C_tiger>
Man, I need to leave this channel... I only just started and I don't want to steal ideas.
06:27 C_tiger [~c_wyz@Nightstar-5282.hsd1.ca.comcast.net] has left #code []
06:27
<@Vornicus>
oops
06:27
<@jerith>
Perhaps we should start #projecteuler instead?
06:27
<@Vornicus>
A capital idea.
06:30 C_tiger [~c_wyz@Nightstar-5282.hsd1.ca.comcast.net] has joined #code
06:31 * Serah mounts a lightbulb above Vorn's head so that he may turn it on and off.
06:31
<@jerith>
C_tiger: We've started #projecteuler, so you're safe in here.
06:31
< C_tiger>
yay.
06:33 Serah [~Z@Nightstar-5401.atm2-0-1041217.0xc329e232.boanxx12.customer.tele.dk] has quit [Quit: Be right back, got some smiting and righteous justice to attend to.]
06:34 jerith changed the topic of #Code to: It's like Swiss bank accounts, but for coders! | Have a pastebin! http://paste.ubuntu.com | Channel mode +U, ask for voice to post links. | Monologues permitted. | See #projecteuler for discussions about http://projecteuler.net
07:59 Syloqs_AFH [~Syloq@Admin.Nightstar.Net] has joined #code
08:00 Syloqs_AFH is now known as Syloqs-AFH
09:30 Vornicus is now known as Vornicus-Latens
09:33 You're now known as TheWatcher
10:14 AnnoDomini [~farkoff@Nightstar-29634.neoplus.adsl.tpnet.pl] has joined #Code
10:14 mode/#code [+o AnnoDomini] by ChanServ
11:57
<@Attilla>
Hmm. Does C have a symbol factorial function (like x! for factorial of x) or do I need to go find one or make one myself?
11:57
<@jerith>
The math library might have one.
11:57
<@jerith>
Otherwise write your own.
11:58
<@Attilla>
*simple
11:58
<@jerith>
Very few languages have a factorial operator, though.
11:59
<@Attilla>
I imagine it's the purview of more mathematical- and scientific-focused ones like FORTRAN
13:00 grossroot[idle] is now known as grossroot
14:17 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
14:19 Vornicus-Latens [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout]
14:40 Vornucopia [~vorn@Admin.Nightstar.Net] has joined #code
14:41 Vornotron [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout]
15:20 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
15:22 Vornucopia [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout]
15:25 gnolam [lenin@79.136.60.ns-4387] has joined #Code
15:25 mode/#code [+o gnolam] by ChanServ
17:02 You're now known as TheWatcher[afk]
18:01 Vornotron is now known as Vornicus
18:02 Vornicus is now known as NSGuest-416
18:06 NSGuest-416 is now known as Vornicus
18:33 You're now known as TheWatcher
18:33 grossroot is now known as grossroot[idle]
19:42
<@AnnoDomini>
gnolam: Do you know of any OO keyboard shortcut for subscript?
19:46
<@AnnoDomini>
Failing that, how do I assign a keyboard shortcut to a macro?
20:41
<@gnolam>
Nope. Don't think there is one.
20:42
<@gnolam>
And I've pretty much given up on OpenOffice.
20:42
<@gnolam>
I've come to the conclusion that walking all the way to campus to use the MS Office-equipped computers there actually /saves/ me time.
20:47
< Vornicus>
CUBE_
20:48
<@gnolam>
?
20:49
<@AnnoDomini>
!
20:49 * Vornicus made it to the "cube" level in Project Euler.
20:55 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
20:55 Vornicus [~vorn@Admin.Nightstar.Net] has quit [Killed (NickServ (GHOST command used by Vornotron))]
20:55 Vornotron is now known as Vornicus
21:00
<@ToxicFrog>
gnolam: er, couldn't you just use MSO locally?
21:01
<@ToxicFrog>
Also, I don't know if there's a default keyboard shortcut, but it's easy to add one
21:01
<@ToxicFrog>
Tools->Customize->Keyboard, pick the binding you want, Format->Subscript as the action.
21:01
<@ToxicFrog>
Hmm. Looks like it's c-s-B by default.
21:02 grossroot[idle] is now known as grossroot
21:03 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
21:04 Vornicus [~vorn@Admin.Nightstar.Net] has quit [Killed (NickServ (GHOST command used by Vornotron))]
21:04 Vornotron is now known as Vornicus
21:11 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
21:12 Vornicus [~vorn@Admin.Nightstar.Net] has quit [Killed (NickServ (GHOST command used by Vornotron))]
21:12 Vornotron is now known as Vornicus
21:36
<@gnolam>
ToxicFrog: I could, but I can't be arsed to pirate it.
21:37
<@AnnoDomini>
Yar, har, fiddle di dee!
21:37
<@AnnoDomini>
Do what you want, 'cause a pirate is free!
21:54 Serah [~Z@Nightstar-5401.atm2-0-1041217.0xc329e232.boanxx12.customer.tele.dk] has joined #Code
21:54 mode/#code [+o Serah] by ChanServ
21:56 Vornicus is now known as Finerty
22:04 grossroot is now known as grossroot[idle]
22:20 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
22:21 Finerty [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout]
22:23 Vornotron is now known as Finerty
23:29 AnnoDomini [~farkoff@Nightstar-29634.neoplus.adsl.tpnet.pl] has quit [Quit: Oh hai. In teh beginnin Ceiling Cat maded the skiez An da Urfs, but he did not eated it.]
--- Log closed Mon Dec 08 00:00:35 2008
code logs -> 2008 -> Sun, 07 Dec 2008< code.20081206.log - code.20081208.log >