code logs -> 2010 -> Fri, 08 Jan 2010< code.20100107.log - code.20100109.log >
--- Log opened Fri Jan 08 00:00:42 2010
00:07 You're now known as TheWatcher[T-2]
00:09 You're now known as TheWatcher[zZzZ]
01:24
<@Vornicus-latens>
http://www.research.att.com/~njas/sequences/A053664 <--- there's some really wacky integer sequences out ther.
01:30 Vornicus-latens is now known as Vornicus
01:48 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
01:49
<@McMartin>
Yes
02:14 Attilla [Attilla@FBC920.A5C359.B8500D.B4F94A] has quit [Client closed the connection]
03:13 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
03:43 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: ]
03:46 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
03:46 mode/#code [+o Vornicus] by Reiver
04:49 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
08:18 You're now known as TheWatcher
08:58 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has quit [Client exited]
09:48 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Ping timeout: 121 seconds]
10:05 Attilla [Attilla@FBC920.173C5E.C75157.1D4D3E] has joined #code
10:05 mode/#code [+o Attilla] by Reiver
10:32 AnnoDomini [annodomini@Nightstar-07ad26a0.adsl.tpnet.pl] has joined #code
10:32 mode/#code [+o AnnoDomini] by Reiver
11:50 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
12:10 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
12:11
<@AnnoDomini>
Hey, guys, I want a regexp validator to detect whether the entered text is a select-from query (basically detecting if it's "select" followed by something followed by "from" followed by something).
12:12
<@AnnoDomini>
I'm guessing "select*from*" is not quite what I need?
12:28
<@TheWatcher>
Which favour of regexp engine?
12:29
<@TheWatcher>
*flavour
12:29
<@AnnoDomini>
ASP.NET
12:29
<@TheWatcher>
No clue then, sorry
12:30
< chintimin>
How's your morning, watcher?
12:30
< chintimin>
I'd ask about AD here, but I can already see. :)
12:30 * AnnoDomini downloads someone's solution to the problem. It's apparently, "^(S|s)(E|e)(L|l)(E|e)(C|c)(T|t)\s[0-9a-zA-Z\*]+\s(F|f)(R|r)(O|o)(M|m).*".
12:31
<@TheWatcher>
... that is fugly
12:31
<@TheWatcher>
there's no case insensitive match flag for asp.net? :/
12:31 * chintimin laughs. That is pretty awful.
12:32
< chintimin>
I haven't seen anything quite that awful since I had to write a case stripper for input in Pascal
12:32
<@TheWatcher>
Also, that won't even work
12:33
<@TheWatcher>
SELECT t.foo,f.bar FROM ... etc... will not match, despite being valid
12:33
< chintimin>
besides which
12:34
<@AnnoDomini>
Well, it's good enough for a pass on this task.
12:34
< chintimin>
you can specify how... well, I guess not if it's like that
12:34
< chintimin>
hmm
12:35
< chintimin>
Can't you add punctuation that might happen in the class names to the (T|t)\s[0-9a-zA-Z\*]
12:35
< chintimin>
Watcher's complaint sounds easily fixable
12:36
< chintimin>
"Watcher" is so long
12:36
< chintimin>
can't I call you tee-dub or something?
12:37 * chintimin ducks
12:46 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has left #code []
12:53
<@AnnoDomini>
I hate SQL Server. It's a shitload of fuck that doesn't work when by all rights it should.
12:54
< chintimin>
Take heart
12:54
< chintimin>
you could be fucking around with access and VBscript
12:56
<@AnnoDomini>
I'm using C# rather than VBscript, but I am also working with Access.
12:56 Tarinaky [Tarinaky@Nightstar-091e0c39.adsl.virginmedia.net] has quit [Connection reset by peer]
12:57
<@AnnoDomini>
Access is better because it just sits there. You point the code to the file and it goes!
12:57
<@AnnoDomini>
To make an SQL Server database work, you actually have to work with the god-damned SQL Server.
12:57
< chintimin>
Point.
12:58
< chintimin>
I really started hating access back in 98 when I was trying to make something work while multiple people were using input fields
12:58
< chintimin>
haaate.
13:13 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has joined #code
13:21
< chintimin>
Morning. :)
13:24
<@Vornicus>
Geh. In order to ensure that it /is/ in fact a select from query you have to make sure that select and from are not in quotes. This... may be difficult!
13:28
< chintimin>
I usually have to end up writing functions to interperet strings.
13:29
<@Vornicus>
yeah, I'd actually write a tokenizer. :(
13:32
<@TheWatcher>
It'd be doable with a regexp, but it'd be a pretty damned complex one
13:34
<@Vornicus>
Yeah, you can check even/oddness of occurrences in regexp, now that I think on it.
13:35
<@Vornicus>
But you just plain don't want to do validation as a single regexp (when I write a tokenizer I'll often use a regexp to define what a single token looks like)
14:01 You're now known as TheWatcher[afk]
14:14 AbuDhabi [annodomini@Nightstar-c7dfe06d.adsl.tpnet.pl] has joined #code
14:16 AnnoDomini [annodomini@Nightstar-07ad26a0.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
14:18
< chintimin>
http://www.crayonphysics.com/ pay what you want for the game.
14:21
<@Attilla>
Now if only I could draw Tesseracts with that.
14:21 darth_work [NSwebIRC@1AB00B.73880E.8B103B.2F7B7C] has joined #code
14:22
< chintimin>
...I haven't thought of that in years.
14:22
< chintimin>
I loved that book.
14:23
< darth_work>
What were you doing, chintimin?
14:23 * chintimin cocks his head
14:23
< chintimin>
Was it not obvious?
14:23
< darth_work>
Weren't you banned before?
14:23
< chintimin>
I was, yeah.
14:23
< chintimin>
Ask me if I care.
14:23
< chintimin>
go on, ask me.
14:23
< darth_work>
And still are supposed to be
14:23
< darth_work>
Obviously you don't
14:23
< chintimin>
YES! That's correct.
14:24
< chintimin>
The only reason I don't sit around and stir up trouble is because I can't be bothered. :P
14:24
< chintimin>
Certainly not because of my undying respect for the administrative chain of authority in #tsc. :P
14:25
< chintimin>
And it's not like I came in and spammed hate hate hate and then left - I came in, linked a game that might be to someone's taste, then left channel.
14:26 * darth_work waves to all the UberAdmins in this channel, points at chintimin for skirting around a ban
14:26
< chintimin>
Skirting?
14:26
< chintimin>
I didn't switch IPs or anything.
14:26
< chintimin>
or names.
14:26
< darth_work>
You know the ban was specific because we didn't want to ban someone else using teh same IP
14:26
< chintimin>
I didn't, actually.
14:26
< darth_work>
*the
14:27
< chintimin>
What's it listed under, anyways?
14:27
< chintimin>
I assumed I'd be banned if they wanted me to stay banned.
14:27
< chintimin>
Unless they're too incompetent to use IRC - which I wouldn't put past them.
14:28
< darth_work>
Or because of the recent refreshes of the server and someone neglected to re-add you to the list
14:28
< darth_work>
Which has since been corrected
14:28
< chintimin>
All right. Now then, what are YOU doing?
14:29
< chintimin>
besides following me around messagine me in channels?
14:29
< darth_work>
Trying to figure out why you randomly logged into a channel where I'm currently the only active op, pasting a link, then leaving, like a spambot
14:30
< chintimin>
You're an op in #TSC?
14:30
< darth_work>
Yes I am
14:30
< darth_work>
I've been an op for a while
14:30
< chintimin>
. /msg. works wonders.
14:30
< darth_work>
True. But conveniently, there are a bunch of UberOps in this room
14:31
< darth_work>
Two birds, one stone.
14:31
< chintimin>
Use gtalk if you want to talk to me.
14:31 * chintimin shakes his head
14:35 darth_work is now known as darth_meeting
14:36 darth_meeting [NSwebIRC@1AB00B.73880E.8B103B.2F7B7C] has left #code [""]
14:36
< chintimin>
oof. sorry for that.
14:37
< chintimin>
I dropped in on an old channel I used to frequent, dropped the link, and left. Apparently the ban I'd had placed on me for personality clashes with a group of regulars not being readded was quite unintentional.
14:37
< chintimin>
Has nightstar been having problems lately?
14:52 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
14:59 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has quit [Operation timed out]
15:13 Tarinaky [Tarinaky@Nightstar-8595d829.adsl.virginmedia.net] has joined #code
15:45
< chintimin>
Hello, Floyd. :)
16:01 Attilla [Attilla@FBC920.173C5E.C75157.1D4D3E] has quit [Connection reset by peer]
16:01 Attilla [Attilla@FBC920.173C5E.C75157.1D4D3E] has joined #code
16:01 mode/#code [+o Attilla] by Reiver
16:02 You're now known as TheWatcher
16:03
< chintimin>
welcome back.
16:11
< chintimin>
Sweet. Now I can turn my little brother into a speaker for five bucks.
16:11
< chintimin>
i knew I was keeping him around for a reason.
16:30 You're now known as TheWatcher[afk]
17:04 AnnoDomini [annodomini@Nightstar-c7dfe06d.adsl.tpnet.pl] has joined #code
17:04 mode/#code [+o AnnoDomini] by Reiver
17:05 AbuDhabi [annodomini@Nightstar-c7dfe06d.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
17:15 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
17:38 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has joined #code
18:13 Tarinaky [Tarinaky@Nightstar-8595d829.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
18:27 Tarinaky [Tarinaky@Nightstar-1dfe7549.adsl.virginmedia.net] has joined #code
18:52 You're now known as TheWatcher
19:02 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
19:34 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *whistles* Did you hear something?]
19:47 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
19:48 Syloqs_AFH is now known as Syloqs-AFH
19:53 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
20:11 chintimin [zag@Nightstar-d0088b95.or.comcast.net] has quit [Ping timeout: 121 seconds]
21:25
<@AnnoDomini>
http://www.codinghorror.com/blog/archives/000781.html <- Interesting.
21:26
<@AnnoDomini>
I am relieved that I can, in fact, write Fizzbuzz in under 3 minutes. :D
21:33 * AnnoDomini reads the comments section.
21:33
<@AnnoDomini>
It's hilarious. Several people there got it WRONG.
21:35
<@jerith>
Chalain had a lot of fun overthinking Fizzbuzz.
21:36
<@AnnoDomini>
Wow. There's a recursive version in there.
21:41
<@AnnoDomini>
"It's disgusting how many wrong solutions there are to FizzBuzz on this page.."
21:42
<@AnnoDomini>
And then the guy who says this goes to write it WRONGLY.
21:44
<@AnnoDomini>
Heh. The indentationless assembly version looks horrible.
21:46
< Namegduf>
"I think the above is not elegant. Here's a better one, but I don't think it actually works and don't know how to make it work."
21:47
<@AnnoDomini>
Damn.
21:51
< Namegduf>
Fabian's misses printing the actual number, and for the love of god, you're in a high level language, you are not doing anyone any favours by "optimising" <= 100 into < 101, that's the compiler's job in *C*, let alone anything else.
21:52
< Namegduf>
Aside uglifying your code.
21:53
<@AnnoDomini>
I did it with i<101 too. It was the first thing that came to mind. Optimization never crossed my mind.
21:54
< Namegduf>
Huh. Why?
21:54
<@AnnoDomini>
Because i<100 was wrong.
21:55
< Namegduf>
Well, yeah.
21:55
<@AnnoDomini>
I went like "i<100" -> "wait, that's wrong" -> "i<101" -> "DONE."
21:55
< Namegduf>
Ah.
21:57 * Namegduf winces at the Ruby syntax
21:58 Derakon[work] [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
21:58 * Derakon[work] mutters at people who tie up the microscope for two days solid without being in the lab.
21:58
< Namegduf>
It's like someone tried to turn it into psuedoenglish, but said person was actually from Eastern Europe and didn't speak it properly.
21:58
<@Vornicus>
Namegduf: Japan.
21:58
< Derakon[work]>
Problem being, there's a slide in the microscope, and the program is running; it's just not doing anything. But I can't take the risk that he's not just waiting for the cells to mature before starting phase 2 of his experiment or something.
21:59
< Namegduf>
Vornicus: Japan? Would make sense.
21:59
<@Vornicus>
He learned English /after/ starting Ruby.
21:59
< Namegduf>
...ah.
21:59
< Namegduf>
I wonder why they don't understand modeling stuff with objects in Japan.
22:00
<@jerith>
Matz took the bits he liked from perl, lisp and smalltalk.
22:00
< Derakon[work]>
Jumping as I am into the middle of a conversation, I assume we're talking about the design of the Ruby language here?
22:00
< Namegduf>
Yes.
22:00
<@jerith>
Sadly, they're not really the bits /I/ like from those languages.
22:00
< Derakon[work]>
(OO design is not the be-all and end-all of programming, incidentally. It just happens to be fairly versatile and applicable to most generic problems)
22:00
<@jerith>
Der: As an aside while talking about Fizzbuzz.
22:00
< Namegduf>
Oh, yes, but when you're using it, it should be used... properly.
22:01
< Derakon[work]>
Jerith: regexes, implicit variables, and parentheses?
22:01
< Namegduf>
20.days.ago makes my brain hurt
22:01
<@jerith>
Namegduf: That's Rails, not core Ruby.
22:01
< Namegduf>
1.upto(100) isn't much better
22:01
< Namegduf>
jerith: Core Ruby seems to be just as bad.
22:01 * Derakon[work] ponders a language that is inspired by multiple recent languages, but gets all the inspirations wrong.
22:01
< Namegduf>
In what conceptual model is "upto" an action performed "by", or on, the number 1?
22:02
< Derakon[work]>
Namegduf: in the same model in which you can do ",".split("foo,bar,baz")
22:02
<@jerith>
Namegduf: That's perl's "pragmatism" shining through.
22:02
< Namegduf>
Yeah, that doesn't make sense conceptually either, Derakon.
22:02
< Namegduf>
Luckily, "and that's it" seems to be the case for languages with that.
22:03
< Namegduf>
That is, strings are kinda weird, but other things are normal.
22:03
< Derakon[work]>
Perl was originally designed for text processing, remember.
22:03
< Namegduf>
Yeah.
22:03
< Derakon[work]>
It's expected that it's going to have some weird shortcuts to make that easier.
22:04
< Namegduf>
Oh, yeah, so long as they're just shortcuts, it's not so bad.
22:04
<@jerith>
Ruby makes it easy to hide landmines that later programmers (such as yourself, a week later) run into.
22:04
< Derakon[work]>
E.g. I'm pretty certain you can just do ",".split to operate on the implicit variable @_
22:04
< Namegduf>
When they're basically "how the language's loops work"
22:04
< Namegduf>
Just... no.
22:04
< Namegduf>
Yeah, Perl's automatic variables are weird.
22:05
< Namegduf>
I've never written in Ruby, I actually seriously doubt I could tolerate that. I literally get a headache looking at that code.
22:05
< Derakon[work]>
I suspect that had I less experience with Perl, the things that Sebastien does to Python would really confuse me.
22:05
< Namegduf>
Perl's "if at the end of the line" thing isn't a good feature to port, either.
22:05
< Derakon[work]>
What, "doSomething if (someCondition);"?
22:05
< Namegduf>
Yeah.
22:05
<@jerith>
Well-written Ruby code can be concise, elegant and almost beautiful.
22:05
< Namegduf>
I mean, it's slightly convenient, I guess, but it reads kinda unhappily.
22:06
<@jerith>
But it's almost as rare as well-written PHP code.
22:06
<@Vornicus>
Unfortunately, well-written ruby code is rare even in the standard library.
22:06
< Namegduf>
I'm used to reading branching in code forwards, rather than backwards.
22:06
< Derakon[work]>
Well, so it has the same problem as the do-while loop.
22:06
< Namegduf>
Not really.
22:06
< Namegduf>
That starts with a "do".
22:06
< Namegduf>
And the branching in a loop happens at the end.
22:06
< Namegduf>
(If it's a do-while)
22:06
< Derakon[work]>
Okay, point. That is a signfier that a "while" is coming up.
22:07
< Derakon[work]>
I don't think there's ever a reason to have "do" without "while", is there?
22:07
< Namegduf>
I don't think it's legal in C/C++, not 100% sure.
22:07
<@Vornicus>
There isn't a reason
22:07
<@Vornicus>
in C you can have naked blocks for scoping.
22:07
< Derakon[work]>
Do without while would...yeah.
22:07
< Derakon[work]>
Just be a naked scope block.
22:07 * jerith has stayed up way past his bedtime playing with his friends and needs to go brush his teeth now.
22:08
< Derakon[work]>
Night, Jerith.
22:08
<@jerith>
Duff's device! \o/
22:08
< Derakon[work]>
:(
22:08
< Namegduf>
That thing is... certainly something.
22:08
<@jerith>
G'night all
22:09
<@jerith>
(Duff's device is beautiful and horrifying all at once. I love it. And I would eviscerate anyone who used it in production code.)
22:11 * Derakon[work] sneaks it into Jerith's next checkin.
22:50
<@McMartin>
(Duff's device is something that compilers should automatically refactor syntax trees into as part of loop unrolling optimizations. It is NOT FOR HUMANS ANYMORE)
22:50
<@McMartin>
(We've done it, now you don't have to!)
23:14 AnnoDomini [annodomini@Nightstar-c7dfe06d.adsl.tpnet.pl] has quit [[NS] Quit: Half Life 2 before bedtime.]
23:24
< Derakon[work]>
It just occurred to me -- sending attachments via webmail is rather inefficient.
23:25
< Derakon[work]>
First you upload the attachment to the server, then the server sends the attachment to the recipient.
23:25
< Derakon[work]>
There's an extra transfer involved.
23:34
<@McMartin>
Yes.
23:35
<@McMartin>
Unless you're on the same webmail server.
--- Log closed Sat Jan 09 00:00:17 2010
code logs -> 2010 -> Fri, 08 Jan 2010< code.20100107.log - code.20100109.log >