code logs -> 2009 -> Sat, 09 May 2009< code.20090508.log - code.20090510.log >
--- Log opened Sat May 09 00:00:24 2009
00:16 * Vornicus-Latens fiddles with MS Office Mac 2008. Want to get rid of the Elements gallery. I'm a mathematician, not a middle manager.
00:55 Vornicus-Latens is now known as Vornicus
01:13 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
01:14 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
01:14 mode/#code [+o Attilla] by ChanServ
01:43
<@McMartin>
Rargh.
01:43
<@McMartin>
Is there a better way to do this? http://paste.ubuntu.com/167340/
01:43
<@McMartin>
Screw you, Troika.
01:43
<@Derakon>
I saw it.
01:44
<@Derakon>
...I'm guessing this is supposed to be the Haskell equivalent of "int(sqrt(x)) == sqrt(x)"?
01:45 SmithKurosaki [~Jenn@Nightstar-7213.cpe.net.cable.rogers.com] has quit [Ping Timeout]
01:55 SmithKurosaki [~Jenn@Nightstar-7213.cpe.net.cable.rogers.com] has joined #code
01:57
<@McMartin>
It's supposed to be "if n is a square, return the square root of n as an integer, otherwise return failure"
02:03
<@Derakon>
Okay, so if I translate this properly, it's "r = floor(sqrt(int(x))); if r == x, then return r, else return failure".
02:03
<@Derakon>
Er, "if r**2 == x, etc"
02:04 mode/#code [-o+o McMartin McMartin] by Vornicus
02:07
<@McMartin>
That's what it says. This is in part because I can't ask if a number is equal to its own floor.
02:07
<@McMartin>
Which is the silliness.
02:20
<@MyCatVerbs>
McMartin: intsqrt x = let r = floor . sqrt . fromIntegral $ x in if (r*r)==x then Just r else Nothing -- no need for the seperate left f.
02:20
<@MyCatVerbs>
s/left/let/
02:21
<@McMartin>
What you describe won't typecheck; f is being split out there so I can tell it that it's Integer -> Integer; otherwise it freaks out over typeclass assignment
02:23
<@MyCatVerbs>
You sure? I just typed it straight into ghci and got the type, intsqrt :: (Integral a,Integral b) => a -> Maybe b.
02:24 Derakon is now known as Derakon[AFK]
02:28
<@McMartin>
Hm.
02:28
<@McMartin>
It works when I type it in, but I can't compile it
02:28
<@McMartin>
It freaks over RealFrac.
02:30
<@MyCatVerbs>
Odd. Worksforme. What version of GHC are you using? Perhaps the defaulting has changed.
02:33
<@McMartin>
6.8.2
02:33
<@MyCatVerbs>
Mine's ghc6.10.2, incidentally.
02:33
<@MyCatVerbs>
Hrmn. Ah, hang on.
02:34
<@McMartin>
... oh hey
02:35 * McMartin forgot the $
02:35
<@MyCatVerbs>
Phew. I just tried it on my friend's box who has 6.8.3 installed, and it worked there, so I was starting to worry. :)
03:12 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
03:13 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
03:13 mode/#code [+o Attilla] by ChanServ
03:23 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
03:23 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
03:23 mode/#code [+o Attilla] by ChanServ
03:28 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
04:26 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: @GeekSoldier
04:27
< Vornicus>
Hey look, it's a "Hey look, it's a {Hey look, it's a /Hey look, it's a "Hey look, it's a (Hey look, it's a *Hey look, it's a /Hey look, it's a *Hey look, it's a (Hey look, it's a recursion cannon) recursion cannon* recursion cannon/ recursion cannon* recursion cannon) recursion cannon" recursion cannon/ recursion cannon} recursion cannon" recursion cannon
05:03 Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Ping Timeout]
05:05 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
05:06 Syloqs_AFH is now known as Syloqs-AFH
05:48
< Rhamphoryncus>
Vornicus: I'm not sure what the point of that was, but somehow I want to smack you
06:02 Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Connection reset by peer]
06:10
< Vornicus>
It was the Recursion Cannon.
06:10
< Vornicus>
I wrote it some years ago.
06:10
< Vornicus>
My favorite line is return recursionCannon(start,end,choice(rcannon_functions)(gestalt),prob)
07:03 Vornicus is now known as Vornicus-Latens
07:15 AnnoDomini [~farkoff@Nightstar-29694.neoplus.adsl.tpnet.pl] has joined #Code
07:15 mode/#code [+o AnnoDomini] by ChanServ
07:49 Derakon[AFK] is now known as Derakon
08:24 Derakon is now known as Derakon[AFK]
09:40 You're now known as TheWatcher
09:41
<@TheWatcher>
yey, recursion cannon!
10:22
<@jerith>
Dear Other Developers, When I ask for a sane db setup script so I can provide you with a repeatable test environment, "just dump this horribly inconsistent unversioned shared test db" is *not* a useful answer. Much love, The Guy Who Know Several Ways To Make You Die Screaming Over The Internet.
10:34
<@AnnoDomini>
+s
12:15 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus]
12:34 You're now known as TheWatcher[afk]
12:41 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
12:41 mode/#code [+o Attilla] by ChanServ
12:55 You're now known as TheWatcher
13:01 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
13:02 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
13:02 mode/#code [+o Attilla] by ChanServ
13:06 You're now known as TheWatcher[afk]
13:31 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
14:02 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
14:02 mode/#code [+o Attilla] by ChanServ
14:13 AnnoDomini [~farkoff@Nightstar-29694.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
14:20 AnnoDomini [~farkoff@Nightstar-29737.neoplus.adsl.tpnet.pl] has joined #Code
14:20 mode/#code [+o AnnoDomini] by ChanServ
14:58 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
14:58 mode/#code [+o GeekSoldier] by ChanServ
14:59 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
15:00 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
15:00 mode/#code [+o Attilla] by ChanServ
15:02 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
15:02 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
15:03 mode/#code [+o Attilla] by ChanServ
15:09 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
15:17 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
15:17 mode/#code [+o Attilla] by ChanServ
15:45 You're now known as TheWatcher
16:04 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
16:05 Syloqs_AFH is now known as Syloqs-AFH
16:32 Vornicus-Latens is now known as Vornicus
17:05 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
17:06 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
17:06 mode/#code [+o Attilla] by ChanServ
18:22 Derakon[AFK] is now known as Derakon
18:55 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
18:56 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
18:56 mode/#code [+o Attilla] by ChanServ
19:01 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
19:07 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
19:07 mode/#code [+o Attilla] by ChanServ
20:30 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code
21:50 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
21:51 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
21:51 mode/#code [+o Attilla] by ChanServ
21:52 SmithKurosaki [~Jenn@Nightstar-7213.cpe.net.cable.rogers.com] has quit [Ping Timeout]
22:49 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
22:49 Attilla_ [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
22:52 Attilla_ [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
22:55 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
22:55 mode/#code [+o Attilla] by ChanServ
23:07
<@Consul>
Okay, if I were able to minor in computer science (I'm majoring in engineering physics), what 2 or 3 CS classes would you recommend I take? I've already been told by one person to take a data structures class, but I want other opinions.
23:09 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: Rhamphoryncus, @GeekSoldier
23:10
< Vornicus>
Data Structures is a good one.
23:10
<@Derakon>
Agreed.
23:11
< Vornicus>
if you can take a NUmerical Methods or something like that course that would also be good; you're going to want to be able to do better than double rather often.
23:11
<@Derakon>
Algorithms, combinatorics, and graph theory all tend to be useful as well.
23:13
< Vornicus>
Data structures will probably touch on all three of those.
23:13
< Vornicus>
But only touch on.
23:13
<@Derakon>
Yeah.
23:14
<@Derakon>
If you're going to take three courses, I'd say data structures and algorithms should be two of them.
23:14
<@Derakon>
(Algorithms including big-O analysis, i.e. worst-case runtime, which is important for recognizing major sources of slowdown)
23:14
< Vornicus>
Yeah, I think my triad would be Data Structures, Algorithms, and Numerical Methods/Scientific Computing
23:19
<@Derakon>
Lessee...the upper-division courses I took were data structures, algorithms, large-scale development, graphics, digital engineering, and discrete mathematics.
23:20
< simontwo>
do you all go to the same university?
23:20
<@Derakon>
No.
23:21
<@Derakon>
(Discrete mathematics did combinatorics and graph theory, I note)
23:21
< simontwo>
the "Scientific Computing" course at my uni (copenhagen, denmark) sucked badly.
23:25 Netsplit over, joins: Rhamphoryncus
23:25
< Vornicus>
Arg. handling human input is a paaaaiiiin
23:26
<@Derakon>
Heh.
23:26
< simontwo>
that's partly why I hate making interactive websites.
23:30
< Vornicus>
I'm working on a D&D 4e character sheet calculation tool. There's lots of validation that needs to happen that, if I could make this actually interactive, would not need to happen.
23:30 * simontwo is planning to take Discrete Math and Mathematical Methods next year.
23:30
< simontwo>
Vornicus, do you operate on scanned sheets of paper or what?
23:31
< Vornicus>
simontwo: no, typed stuff, but for instance: it's "rogue", not "rouge" as one of my players typed.
23:32
<@Derakon>
Have a dropdown for available classes~
23:32
< simontwo>
Vornicus, Levenshtein?
23:32
< Vornicus>
Der: a great idea! If only it were an actual interactive program instead of a batch-masher.
23:33
<@Derakon>
If only~
23:33
< Vornicus>
(I do have a little PHP thing that generates lists of available feats, but it's very simple.
23:34 * Derakon snerks at a video of someone playing Tetris on the NES, going for 999 lines...and ending up with A00 right afterwards.
23:34
<@Derakon>
Of course, he's also on level A5 now.
23:35
< Vornicus>
Heh
23:38
<@Derakon>
Around about D80 lines the block colors glitch.
23:39
< Vornicus>
Hee
23:39
<@Derakon>
Interesting. After F99 lines comes G00 lines and a momentary freeze.
23:39
< Vornicus>
Okay now that's impressive.
23:40
<@Derakon>
And then repeated freeze glitches every time he clears a line.
23:40
<@Derakon>
Including a flickering sprite dripping down the right side of the screen, Matrix-style.
23:40
<@Consul>
Thanks, guys! I don't know how many courses I'll be able to slip in as a minor. I'm thinking data structures and algorithms will be the big two.
23:41
<@Derakon>
They're both good 'uns.
23:41
<@Consul>
I'm hoping to talk to an advisor on Monday.
23:41
<@Derakon>
Good luck
23:41
<@Derakon>
!
23:41
<@Consul>
But I'll push myself to get in all three.
23:41
< simontwo>
Consul, second or third year?
23:42
<@Consul>
I'll be starting my third year.
23:42
<@Consul>
Transferring from a 2-year school to uni.
23:42
<@Consul>
I've had math up to diff-eq, a C++ class, freshman physics, and freshman chemistry.
23:43
<@Consul>
Plus most of my non-technical requirements.
23:43
<@Consul>
Western civ, poli sci, and so on/.
23:43
<@Consul>
I still need a humanities and a foreign language.
23:43
<@Consul>
I'll probably take a music course, and Spanish.
23:45
< simontwo>
on another note, can one of you recommend a decent java IDE and how to install it on ubuntu? I'm as far as 'aptitude install sun-java6-jdk' now.
23:46
<@Derakon>
At around H30, it starts intermittently refusing to count lines.
23:46
< Vornicus>
Eclipse is the Usual Java IDE
23:46
< Vornicus>
Very heavy, but then that's Java for you.
23:49 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
23:49 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
23:49 mode/#code [+o Attilla] by ChanServ
23:51
<@Derakon>
Heh. Then he gets stuck on level EA.
23:51
<@Derakon>
(As in, the level does not advance)
23:51
< Vornicus>
hm. this keyboard accepts 5 non-modifier keys with no apparent restrictions. This is better than any other keyboard I've used.
23:53
<@Derakon>
Oh incidentally, Vorn, for your valid-input thing, you could display a list of options and only accept numerical input, oldschool-style.
23:54
< Vornicus>
Yeah, I've been thinking about that way
23:55
< Vornicus>
But then... there is attributes.
23:55
< simontwo>
Vornicus, or use a guessing mechanism. would work for trivial typos.
23:55
<@Derakon>
Hee. Level wrapped around from 255 to 0 and the game suddenly slowed waaaaay down.
23:55
<@Derakon>
What about attributes?
23:55
<@Derakon>
There's a valid range for them, yes?
23:55
< simontwo>
Vornicus, also, PHP supports it through levenshtein()
23:56
< Vornicus>
A valid range, yes, and it's dependent on the other things, and... geh, how do I describe it.
23:56
< Vornicus>
I should probably look into PHP.
23:56
<@Derakon>
Betcha there are Perl and Python libs that do the same thing.
23:56
< Vornicus>
It does give the whole "shiny GUI" thing which has validation built in.
23:57
<@Derakon>
Maybe a commandline program you could invoke from bash, too.
23:57
<@Derakon>
Any web-oriented language can do that, I note.
23:57
< Vornicus>
Indeed.
23:57
<@Derakon>
My personal preference there would be for Perl.
23:58 * Vornicus examines.
23:59
< Vornicus>
I could write a web service.
23:59
< simontwo>
Vornicus, you say character sheets are typed in currently. why not provide input validate at that point?
23:59
< simontwo>
s/validate/validation/
23:59
<@Derakon>
That's what he's wrestling with.
23:59
< Vornicus>
Indeed.
--- Log closed Sun May 10 00:00:39 2009
code logs -> 2009 -> Sat, 09 May 2009< code.20090508.log - code.20090510.log >