« first day (23 days earlier)      last day (3216 days later) » 
00:00 - 15:0015:00 - 00:00

3:04 PM
Whee.
 
hello!
 
Hi!
 
How goes it this ?beautiful Monday morning?
 
I just got to work.
 
lol
 
3:07 PM
In other words, I more or less rolled out of bed 5 minutes ago.
 
Good luck!
hahaha
 
3:29 PM
@mootinator lol, working from home is great
 
@drachenstern I agree, it's my case too
 
oh I don't work from home now, but I did in a previous crapjob
 
heh
 
I wish!
morning @drachenstern
 
morning
xkcd today is clbuttic
 
3:33 PM
?
 
hey, I know I screwed the pooch on this one, didn't care to go back and fixit, somebody downvote me so I can delete and get a free badge?
-2
A: Given a dictionary d and a list lst, remove all elements from the dictionary whose key is an element of lst.

drachensternwell the pseudocode goes like this: //since most languages won't let you modify a list that you're comparing against, //and because removing duplicates may mess you up, let's use two lists list newList foreach (element d in dictionary) foreach (listitem l in list) if (d.key == l) //...

 
downvote done
 
@Sagar the phrase clbuttic is a meme, there used to be filters (and I'm sure still are) that would parse page requests on the fly and would change swear words to less-foul words, so ass -> butt
but the problem is that ass is used in the middle of other words, like classic
 
aah
 
it works fine for words like fuck, but there are few uses where that's really necessary, especially given the prevalence of violence and profanity in western culture, so to think that we're going to water down chatrooms and webpages is silly
woot, thanks @Sagar got me badge
 
3:37 PM
I guess memes were just not big back home, at least when I got online (~1996). I doubt they still are, but viral memes get around. I didn't even know about lolcats until a couple of years ago...
lol
no problem :)
Apparently I just lost a point for something... is there any way to find out why?
 
yeah, you just lost a point for downvoting me
I'll make it up to you
 
aah
oh no no
I don't care that much really
 
too late :p
 
LOL 10:1 ratio, not bad haha
I honestly didn't care. I just didn't know downvoting caused losing points.
It's a good thing though, otherwise people would just go downvote anything they didn't like, no consequences
I think
 
3:41 PM
They still do
 
it's also why you get a badge for deleting a -3
:p
 
All you need is one upvote and you get 10 downvotes worth 20 of someone else's points ;P
 
lol that's what I just got thanks to @drachenstern
 
yeah but I never have enough time to make it worth sniping someone, and what are they going to lose? The best you could do is take them below commenting threshhold
out of 1157 votes on the site 10 of mine are downvotes
 
wow
 
3:51 PM
those are ones I've cast against others, I think I've been downvoted around a dozen times ... karma? who knows
also, woot me, table is up to 500 million records on my import, three months of data left
 
very nice!
 
don't care to do the math but at about 3 million records per day that's another roughly 300 million potential records to be inserted (I don't think there's that many just yet)
what sucks is I renamed one table thinking I was having insert complications (I was but for a different reason) so I really have two tables, which will need to be merged after the current process is done running
 
4:11 PM
Impressed: cssgrid.net
 
that looks cool, I'm kind of afraid to learn css and js b/c of all the suck
 
<hipster>I learned css when it was still underground. You wouldn't have known what it was.</hipster>
I can't believe it sold out.
 
CSS sold out? pfft, please.
It would be different if most web developers used it, but ya know, inline styles and <font> tags
I'm gonna go with it's still hipster :p
 
lol
 
so I have this query I've been hesitant to run, called "exceptions_intervals_insert" because I'm still inserting the intervals, and one would think that would parse all the intervals records, yeah? No, it runs on the other table. The one that's not intervals.
 
4:21 PM
ugh, note to self, dont answer questions 10 minutes after waking up...
 
/facepalm I could've run that last week and had boss not pacing ... grrr
at least, that's how our internal naming goes for some of these sprocs, if it says "intervals" in the name it works on the intervals table
 
So, what's everyone's strategy for answering questions: Tell them how to accomplish what they're trying to do or point out the obvious design flaw which lead them to concluding they need to do it in the first place?
 
I volley back and forth between the two: "what dumb business logic, zomg I can't believe you would try and do that" to "for realz? I coded this in my sleep LAST NIGHT, here it is lulz I can't believe you don't know that" ... so pretty much either one :p
 
@drachenstern bwahahahaha
 
4:58 PM
ahhh technological solutions to sticky social problems ...
 
I have a case of the Mondays.
 
me three
in C#, 22 secs ago, by drachenstern
@PhE I'm reading your mind from here but I'm getting static
in C#, 26 secs ago, by drachenstern
can you remove the tinfoil hat and give us sample code?
I'm feeling particularly snarky today
RTFM or GTFO
I have a case of the twitchy fingers this morning :( WHERE METERMITREADDT BETWEEN '08/07/2010' AND '08/10/2008' ... /facepalm ... ;)
 
"How is value X determined in system Y?"
I don't know, it was designed from YOUR REQUIREMENTS, did you pull them out of a hat, then burn them after sending us a copy?
That's my rant for the day.
 
5:14 PM
I believe they did ... I heard them dancing around the dumpster last night ...
 
Heh.
 
hi. got a suggestion. can't the chat rooms be tab based with the "all rooms" tab being default. You don't have to keep navigating between different pages. (just a thot)
 
sorta like how when I open several tabs in chrome I can see them all at the top of the screen and navigate between them?
wow, somebody should make a browser that does that!
it would even be nice if it highlighted the number of new messages in a room since the last time I read it!
and a star if I was mentioned!
 
@drachenstern i'd best describe it similar to xchat irc chatting application...
 
@deostroll see the following image
notification of new chat messages across the top, tab structure, multiple rooms
it's amazing what a browser can do
@deostroll if that's not close to what you meant, then can you specify what you meant? maybe make me a picture?
 
5:29 PM
i meant it to be in one window tab...instead of spanning several tabs.
 
so you want subtabs within one tab?
you want to take a browser concern and embed it within the page?
I swear I'm gonna have to iggy this guy ...
in JavaScript, 2 mins ago, by Johnson
I dont need someone to do that for me, only the first part. Is it possible to do:
$(window).focus(function() {
<?php if(session....) ?>
ajax
<?php }else{
header('');
?>
can I embed php in my javascript and have it work from the client?
 
one tab saying javascript, one tab saying c#, etc etc. (Essentially these are like html div's in the page). You click on one tab, and soon you shift to that room.
the whole thing is just one web page however...
ok, currently is it possible to embed code in our chats?
 
using gist or pastebin, yes
 
(cons yes? ())
 
@deostroll, some of your comments would be better served in the Chat Feedback room

Chat feedback

Problems with chat? Let us know...
also, what you want is already done. I just have one chat tab and in the right any room I'm in is listed in the other rooms you're in section
there's also a userscript that adds keyboard shortcuts, navigation, and /commands
 
5:41 PM
/me uses a non-existent command.
/emote 's hair is black and covers his face.
 
@mootinator, chat itself doesn't have a /commands
 
@rchern Sorry, I was meta-chatting again.
 
@rchern which of your scripts does one need to install to get the modifications? Are they independent scripts or should they be installed as a group?
 
I hate central vac
 
SEChatModifications.user.js is the chat script
 
5:49 PM
hates central vac.
 
@rchern what about the others on github? SEChatFaviconNotification.user.js
 
/me hates central vac is more keystrokes than hates central vac. I feel like I've just lost efficiency :O
 
that one adds numbers to the favicon I think. Readme should say. If not, create an issue.
 
@mootinator you're assuming you don't count the shift keys as keystroks
 
@rchern (And then blame @YiJiang)
 
5:51 PM
True.
 
@TimStone 'zactly!!
 
@rchern didn't know if it was complementary ... I can see you're trying to make me read this morning :p
 
@drachenstern, each script functions on its own.
 
All of the scripts are independent.
 
ok ok you two I pulled up the readme
oh wait, the readme was onscreen the whole time ... hmmm
gotta learn this site better I guess
 
5:53 PM
hehehe
 
6:12 PM
4 close votes need for an Exact Duplicate
0
Q: Clearing all RichTextBoxes on a form (VB.NET)

JamesI have a form set up with 25 RichTextBox controls. I need to clear them all on a button click (get rid of all text inside them). I hav tried accessing the controls programmatically but can't. I just need every RichTextBox on the form to clear. Any code samples would be great, thank you. UPDATE...

 
can't close for 500 more rep, sorry
 
6:24 PM
@drachenstern Shouldn't take you long, what 3 days?
 
lol, I wish :p
I've been here a year and only meandared into 2k this week
I'm not in it for the rep, I'm in it for the learning
or so I keep telling myself
 
lol, indeed
 
oh wait, I gotta have 3k for that one, I thought that was 2500, so I'm about 1k out ... at this rate, it'll be the fourth of july before I can vote to close :p
 
6:37 PM
how do the guys that have so much rep get it?
 
I've been on for 2 weeks and I'm over 1k. I'm catching up!
I think I'm going to use this site in moderation more in the future though.
 
do you have like a real job and stuff?
 
Yeah.
I got most of my rep the first day I used it and on a Sunday.
 
oh ok
 
I find I learn more trying to build rep than not.
There are all kinds of little gems hidden in other people's approaches to the same task.
 
6:49 PM
how do you sift through all the dumb 'my code borken fix it' questions?
 
Those are usually obvious. Doesn't hurt to answer those now and then either though. Practicing identifying (even simple) problems in code isn't a bad thing.
My top answer so far was one of those, even :P
 
7:28 PM
hello again :)
 
wb@Sagar
 
thanks...
how's it going?
 
570,633,604 rows and counting :D
 
:D
 
still have about 45 days waiting on imports to finish, doesn't help that I keep stressing the server today to fix and test other stuff
 
7:32 PM
Ooo, I just had a great idea that I have no idea whether it will work or not.
 
ooo share! ;)
 
Well...
 
?
 
I'm going to subclass Html.ActionLink so that it checks for a PrincipalPermission attribute on the target controller so I don't have to change my views at all in order to not display links to actions a user doesn't have permissions for.
 
@CodingGorilla you think I'm on the verge of tears or maybe I just want to avoid pointless discussions with people who don't read the answers presented?
@mootinator so you're still going to be testing for permissions, right? where will you do the test at?
I keep mine in the logic where the link is defined with a visible=role-test
but granted, I'm doing WebForms
 
7:38 PM
@drachenstern I'm not sure what the original discussion really was, but it seemed like he was arguing for arguments sake
 
MY MVC security looks like this: [PrincipalPermission(SecurityAction.Demand, Role = "administrators")]
[PrincipalPermission(SecurityAction.Demand, Role = "data entry")]
public ActionResult Edit(int id)
 
I was curious
"oh, the API really needs this oneliner that I want so I can be more lazy, because public void myExtension(this RichTextBox rtb) { rtb.SelectAll(); rtb.ClearFormattingOnSelectedText(); } is too complicated for me to add myself" ... that's all I got from that hour long game
@mootinator I've really gotta learn ASP.NET MVC ... that seems overly complicated to me
 
IMHO, that's why MS invented Extension Methods, but that's just me :)
 
that was my point to him ... /facepalm
 
Seems like he should be on Microsoft Connect if he's not happy with the winforms API, I dont think MS frequents SO chat lol
 
7:43 PM
ugh...anyone know a good way to undelete in linux?
 
@drachenstern I don't know if that is the simplest way of doing things, just cheap and easy for this particular project.
 
i moved, thought i copied, and deleted :S
 
@Sagar Might wanna go check on chat.serverfault.com instead
 
thanks
 
@mootinator interesting. Yeah, my way uses about 8 lines of code in toto, but allows for fine grained user permissions filtering
 
7:54 PM
Oops.
 
That's suboptimal.
 
quick usually is
 
Eh well.
 
/footbutt I just deleted the only log file that could have helped make life easier :'(
1 millions lines of output gone with a single 'rm'
 
7:58 PM
lol
/footbutt ?
try photorec
or testdisk
do it now, and quickly
you might can recover it
testdisk
 
lol footbutt is my alternative to facepalm, except i need to kick myself
already tried one...foremost...no joy
 
I see that
did you try testdisk?
 
downloading right now
@drachenstern thank you sir.
 
did it help? surely not in 8 minutes
 
still analysing the disk
 
8:13 PM
k
 
lol apparently there's an extension flp (called fruity loop)
 
Ooh, I have an even more facepalmy idea.
 
Those are the best kind...
 
lol @ facepalmy
 
8:56 PM
How many times a day does a clock’s hands overlap?
 
24
 
not at the 11 spot, since 10 overlaps at 10:55
 
23 actualyl
 
8:59 PM
or therabouts
@Sagar go get a clock and check me :p
 
hmmm
i guess you're right
 
You need to check that your friend, Bob, has your correct phone number but you cannot ask him directly. You must write the question on a card which and give it to Eve who will take the card to Bob and return the answer to you. What must you write on the card, besides the question, to ensure Bob can encode the message so that Eve cannot read your phone number?
Questions coming from businessinsider.com/… but there are no answers listed
 
use his phone number as the encryption key
err
idunno
 
ask him what his phone number is is what I would do
doesn't say she can't read his number
 
lol
@drachenstern "give me a call"
lol Eve can't read it, and if Bob has the correct number you'll get a call.
I dunno
:S
 
9:03 PM
You have eight balls all of the same size 7 of them weigh the same, and one of them weighs slightly more. How can you find the ball that is heavier by using a balance and only two weighings?
I've done this one before: Explain a database in three sentences to your eight-year-old nephew.
oh I didn't read to the end, there ARE answers
 
what's the answer to the weighing one. i just died a little inside :S
 
first I'll guess: weigh three on each side, that leaves two left over. if the six balance out, then you would have one heavy and one normal left, weigh those two. if the six don't balance, use two of those three, if either is heavy, that's it. if neither, then the one you're holding
 
binary search would require 3 weighings :/
 
that's what i figured :S
 
maybe the answer to this question will be a better than log(n) sorting algorithm
 
9:07 PM
two weighings
 
smart..
 
yay i was right about bob and the phone call :D
and the ball one i was so close :S
monday just got a little better :) lol
 
I still like my answer for the phone one ;p
 
lol
 
<~ working out of Barnes & Noble today
 
9:14 PM
oh don't tempt me to do that one
 
:o
I am very jealous, just fyi @DanGrossman
 
Hey I wish I had an office to work at sometimes
self-employed == lonely days
 
nod
 
your public key?
 
I guess...
 
9:18 PM
if so, pretty lame :-)
 
@Gary are you referencing something in particular?
 
the phone number question?
the answer is a public key I guess
but if so, it's not very clever
 
@gary the answer is "heyBob would you give me a ring at 2:15 this afternoon"
 
oh
 
25 mins ago, by drachenstern
Questions coming from http://www.businessinsider.com/15-google-interview-questions-that-will-make-you-feel-stupid-2010-11 but there are no answers listed
20 mins ago, by drachenstern
oh I didn't read to the end, there ARE answers
just, so you know, the conversation is linear
 
9:28 PM
blergh
Finally decided on an extension class
if (Html.HasPermission("post", "Delete")) {}
And by class, of course I mean method.
 
of course
 
I got rid of the "post" parameter too, because it made me want to stab things.
 
so how do you handle complex permissions? chaining? &&?
 
I don't have complex permissions :P
Edit is the name of a method.
.NET knows whether the current user can use it.
The HtmlHelper hints as to which object to look for Edit in.
 
rapidly approaching 600 million ... I love the numbers involved here ... db is 118GB in size, and this is the primary culprit
 
9:41 PM
I have one that's about half a terabyte, well over 500 million rows :)
what are you counting?
 
?? "what am I counting" ... what am I storing?
or the number of rows? that's in one table
boss and I had a little bet on performance issues after 2 billion, anxious to get there
probably won't see 2 billion for 2 more years tho :\
but this will be by far our largest single site initial deployment the number of records involved
I've got the sprocs down from 30 minutes processing per day to less than 15
and really ripped out some of the other overhead performance concerns
 
well you said it's "rapidly approaching 600 million" so I wasn't sure what you were referring to (other than I saw a previous post about rows in a DB)
what's the DBMS?
 
TSQL
2k8
600 million rows in one detail table
the parent is roughly 24:1 against, so it should be about 30 million rows
sorry, can't add apparently
it's 96:1
I should've known that off the top of my head
 
definitely....
 
so my parent is at 6,368,883 ... yay this data is gonna be lovely to play with, I'm gonna see if we can't get a disk couriered over to clone against
 
10:18 PM
The perplexing thing about this website is what it's replacing.
An access database which was burnt to CD and mailed to clients monthly.
 
which website?
ah
 
Anyhoo, that fun is over, back to optimizing SQL.
 
woot
I like optimizing SQL ... makes me feel smarter
yay for reduction of complexity in 4GL
 
10:35 PM
anybody remember where on FB you can goto see the last place you were logged in from?
found it
well it's official, I'm out of voting points for today, apparently I should come back in 1 hour
 
11:00 PM
And by one hour they mean nowish?
 
perhaps
 
Oh wait...
Everyone else in North America moved back an hour :P
 
11:24 PM
so who's hovering around that does SQL work?
trying to figure out the best way to find where a table is referenced, and figure that TSQL View Dependencies won't show me everything (like cross database)
 
00:00 - 15:0015:00 - 00:00

« first day (23 days earlier)      last day (3216 days later) »