« first day (10 days earlier)      last day (4954 days later) » 

4:00 PM
:-)
 
i love new links
 
@mgroves lol
 
i always find new material
 
my dad works too, he just doesn't know obj-c
 
I thinking KFC
 
4:00 PM
www.nettuts.com is great
 
yeah because obj-c is for chumps :P
 
i'll be back
 
Yes, obj-c is the worst language ever..
ditto
 
well I don't know about that
maybe 2nd worst
:P
 
Right folks, I'm off to get a nosebag on, work endeth. o/ safe coding
 
4:02 PM
Tally ho!
 
nosebag?
is that some sort of drug slang?
 
nosebag, food
what they give horses
 
o_O
what country are you from
 
Hello all :)
 
in the states we call it "Nosecrisps" or "Nosebiscuits"
 
From the UK
lag...
anyway, laters.
 
@RichardJRossIII The more I get to know it, the less I enjoy it
 
Hi I'm back
@joren lol I know, objc = ugly..
 
4:17 PM
I love using C# so muh that I would have it's babies if I could.
 
Well i do not think that an inanimate object, such as a programming language, can have children, at least not giving birth children lol..
but then again, C++ is the descendant of C, and C# is the descendant of C++...
 
is there any reason to use System.Diagnostics.Debug.WriteLine() vs System.Diagnostics.Debug.Print()?
 
Uhmmm...
I think they call the same code underneath..
just a matter of style..
 
stackoverflow is no longer accepting new questions?
 
4:24 PM
odd
 
I can ask one i think..
 
when i go to the site and click ask question i get redirected to a page telling me how to ask a question. i click a checkbox and click proceed and get that message
 
need a good question to ask lol
 
i dont even see a login link
i might not even be logged in
if this chat does not link my user credentials correctly
 
can you take a screenshot and upload?
 
4:25 PM
@Chris I've just tried and it works for me, check you're logged in.
 
theres no login link... hrmm ill try to del my cookies
 
hmm 1 sec
 
no dice
works in firefox
 
Page not found
 
4:30 PM
very odd.
You using firefox?
 
firefox works... I.E. 8 appears to have issues with me.... im shooting them an email
 
ok, well im on Mac OSX so i cannot help you with IE, and dont have firefox installed..
 
@RichardJRossIII Works fine for me
 
It should...
tornado siren here, might have 2 go...
Yep tornado warning...
so bye until further notice
 
email sent
its weird...on the homepage the most recent question is listed as being from 2 days ago
 
4:53 PM
Has it done it before?
 
not for me
I just noticed the issue today
but i havent been on in about a week or so
 
5:27 PM
Hmm. Interesting.
 
5:37 PM
hello
 
Hello @Xaisoft
 
Does it make sense that GridView.Rows.Count change on every RowDataBound? The number of rows is always the same...
2
A: Visible Checkbox only on Gridview's last row?

Josh StodolaUse RowDataBound instead... protected void grvOutHour_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowState == DataControlRowState.Edit) { GridView grid = (GridView)sender; CheckBox nextDay = (CheckBox)e.Row.FindControl("chkNextDay"); nextDay.Vi...

View my comments in reply to that answer please
 
cout << "Hello world!";
 
I can't find out why it behaves like that
 
5:49 PM
@JonH Wrong language ;)
 
@ReedCopsey I know was just being friendly :) First time on the chat.
 
6:04 PM
So few people use the chat :(
Only 35 users in 25 rooms, lol
 
@EtonB Do you think it's because not everybody knows about it? (Then again, theres a giant banner on the main page advertising it).
 
@JamieKeeling that would be my guess
or maybe we're the beta testers :)
 
@ChrisKlepeis The SO team could send out a user wide email, on the other hand some people might not like getting email from SO.
 
@JamieKeeling Yeah I think it's really hard to miss the banner :P I would've thought a lot more people would use it
 
Then it remains a mystery..
How long has the chat room system been going for?
 
6:13 PM
im waiting for my chat beta badge
 
How do you get it?
 
i was kidding
 
totally didn't check the badge list
 
6:30 PM
Has anybody noticed problems with VS 2010 slowing down over time when using debug->attach to process to debug COM objects?
 
so nobody is in the SQL room... does anyone know why when I add a new field to a table, SQL Management Studio tells me it is going to affect all these other tables that have a foreign key in said table, even though nothing should actually change? nothing is actually changing right??
 
@Shogun what is the exact error message?
 
it's not an error just a warning
oh yeah, we ignore warnings :P
hold on let me check
 
6:45 PM
dont do it in design view if you are
 
the following tables will be saved to your database do you want to continue?
and it has all these tables none of which i changed, they just have an FK that is in my table that i changed
even though i didnt change the column that is realted to the fk
related*
oh, what's not cool about the Design view? @ChrisKlepeis
i can also uncheck this 'warn about tables affected' thing on this dialogue but i was confused as to what exactly is the reason it is warning me
also i have done this many times in the past and never had any problems arise i am more just curious as to what the point of the warning is..
 
design view normally wants to drop the table and re-create it
if you run an alter statement it will just add it to the existing
 
oh ya i've had it tell me that like 'this change requires the table to be dropped and recreated' and then i say nevermind you!
 
if you have lots of data in your table and you try to add a non nullable field it will most likely lock it up
 
@ReedCopsey i've experianced it.
 
6:49 PM
hmmm ok, thanks for your feedback i'll have to learn this alter thing
 
ALTER TABLE myTable ADD [columnName] [columnDataType] NULL ..... something like that
 
w3schools FTW...
oh nice
@ChrisKlepeis FTW :)
ok looks like null is default
meaning without me specifying it says it is allowed to be null
thanks
 
if you dont specify "NULL" then its not nullable... and in a large table it will lock it up
at least I believe so without googling anything... havent done it in a while
 
"lock it up"?
 
it wont lock up, it will just fail if it encounters that single edge case where the field is null and it wasn't supposed to be.
 
6:58 PM
If you add it as NOT NULL it fails because you're adding an empty column that can't be empty
 
i did not specify null and it is nullable
 
maybe im thinking of a default value... but i vividly remember it locking the entier table
 
oh
 
ALTER TABLE Companies ADD AdminMessageOnBottom bit
that was my query
 
Then I guess you can't add a not null column?
Only make it non-null after it has values
 
6:59 PM
and it added the column AdminMessageOnBottom (bit, null)
 
@EtonB yep
 
7:14 PM
Good afternoon!
 
Hello!
 
7:49 PM
Anyone here worked on GData Calendars?
 
the calendars api, or the widgets api?
 
The calendars api
Give an url to a specific event I'm trying to figure our how to get a CalendarEntry
 
2
Q: Google Calendar API: How to get a CalendarEntry for the default Calendar?

LegolasI'm trying to get the 'normal' url for a users default calendar feed (e.g. http://www.google.com/calendar/feeds/jo@gmail.com/private/full). I would like to use the jo@gmail.com part of the URL as a unique ID for that calendar. I know I can do things with the default calendar using the URL http:...

should just need to tweek the uri to fit your situation
 
does it auto post the question in the chat?
or do you just have to post the link?
 
just the url of the question
 
8:01 PM
nice
 
the FAQ calls it oneboxing
same thing for Gist post from github, youtube videos, etc
 
gotcha... i dont post much on those sites
 
hey guys, I have this email template saved in my SQL Database and when I get it out into a string which is then sent in an email, the line breaks are present, however when I want to show a preview of this string in an html window the line breaks are not present, do you know what I will try find and replace with a '<br/>'? I tried both \n and \n\r and neither worked..
(C#)
or perhaps it is \r\n.. I'll try that... :)
 
did you try \r\n (PS: the room is for C# so you can be pretty sure we already knew you meant C# ;)
 
hmm no luck
body = body.Replace("\r\n", "<br\\>");
 
8:13 PM
well
your slashes are the wrong way
<br />
 
/facepalm
 
yay! @AndersonImes thanks
 
I'm a goddamn genius
 
lmao
 
8:14 PM
you are the wasps nipples
 
and I need to sloooww doooowwwnnn
 
I've been told
 
but how can I, the bosses want everything done yesterday..
 
they will always want that
 
Yesterday? pshaw... you have plenty of time then
 
8:15 PM
get used to the feeling :)
 
yeah i am trying, actually learning some tricks... like if you think a feature would be a bad idea, even if they think otherwise, you could pad the estimate and suddenly it's not going to happen ;)
is that, wrong? I mean really the feature would be a bad idea, support nightmare, etc etc
 
@Shogun Lucky. That means you work for reasonable people who live in reality land.
 
more like, we don
dont have infinite money land
 
@shogun i think they call them duck features. the little things you add to the project on purpose to pad out the estimate, even though you know they will get cut.
 
i mean sometimes i can explain to them why it would be a bad idea though and they listen
@entens i'm not sure that's the same thing
 
8:20 PM
yeah, i realized that after i hit enter. i need to slow down and read things twice more often.
 
yeah i know how you feel, like my <br\> blunder, if I had just slowed down and thought about it I wouldn't have wasted like 15 minutes
I feel like using computers all day makes me impatient
(not to mention video games at night)
 
nah. PHB makes me impatient. computers are logical and zen compared to dealing with people^H managers.
 
Hi all
 
PHB? @entens (google: The PHB is a hydrogen bicycle, power-assisted by an electric motor that gets its electricity from a fuel cell. ...)
 
@Shogun are you asking?
 
8:34 PM
yeah what does that mean
i assume he didn't mean a hydrogen bicycle :P
 
The pointy-haired boss (often abbreviated to just PHB) is Dilbert's boss in the Dilbert comic strip. He is notable for his micromanagement, gross incompetence and unawareness of his surroundings, yet somehow retains power in the workplace. In the Dilbert TV series, in which he is voiced by comedian Larry Miller, the character is notably smarter (although still quite stupid) and more actively evil. The phrase "pointy-haired boss" has acquired a generic usage to refer to incompetent managers. It is also possible to speak of someone being pointy-haired or having pointy hair metaphorically,...
 
!! hahaha
true dat
 
Anyone know why the Visual Studio 2010 upgrade from Standard 2008 is cheaper than the Visual Studio 2010 upgrade from Professional 2008?
 
3
Q: What are the reasons for and against wearing a bicycle helmet?

Jay BazuziThis is a tricky question to ask correctly. One attempt has already been closed as subjective and argumentative. There is no one correct answer, for sure. However, there are interesting reasons that I believe are worth recording here. Please reply with one reason per post. Ideally include docum...

 
I heard there is a very small percentage of types of spills where a helmet will actually help you at all.
 
8:43 PM
Is there a SE site that Jeff doesn't visit?
 
oh there are some really interesting replies I like the third one down
a car seeing you with a helmet may give you less room, haha
 
the question is loosely typed. it doesn't specify the helmet type.
i think that question is prime for an:
 
hahaha
troll fodder right? lol
 
switch (typeof(helmet))
{
case(kiddie):
return "you might as well save for the group home now";
case(bmx):
return "you look like an idiot wearing that down town";
}
 
haha
case(viking): return "you are the man";
 
9:49 PM
@entens @Shogun - if for every case you just return a string, why aren't you using a pre-constructed dictionary? ;)
So I was wondering, is it as unwise as it seems to queue a work item to the thread pool if the work loops indefinitely?
You are hogging one entire thread pool thread that way
Are there heuristics in place to create additional thread pool threads if some of the existing ones are almost always blocking, and never exit?
 
10:31 PM
@Joren: In .NET 4, the threadpool will already inject new ones
You can use ThreadPool.SetMinThreads to force extra threads, thoguh
@Joren: That being said, if the work will have a long lifetime, you might want to use a normal thread. If .NET 4 is an option, you can use a Task with the LongRunning hint (which is my preference now)
 
10:58 PM
Yeah, I did consider Tasks. The main difference between manual thread pool use in this case would be work stealing. But does works stealing apply to blocked tasks as well as to finished tasks? I'd be surprised if it does.
@Reed: Also, I know about the LongRunning hint, but what does it actually do?
 
a blocked task's thread will steal work from another one
in the current implementation, with the default TaskScheduler, the longrunning hint causes the task to get its own thread instead of using the threadpool
actually - I take that back - a blocked task (after a point in time) will cause another threadpool thread to get injected, if there is any starvation in the threadpool, which will then steal work
the blocked thread will continue to be blocked
 
Okay, cool
So basically TPL + LongRunning = don't worry :)
 
hehehe, yeah
it's like scheduling your own thread
but a nicer API
 
I'm trying to get rid of oldskool threading in my projects
 
(you get all of the nice task features for error handling, checking, etc - if you need htem)
 
11:00 PM
Tasks are way more elegant
Even if the best solution was still manual threading, I'd have used Tasks with that bake-your-own-Task class, what's it called ...
TaskCompletionSource I think is the one I'm looking for there
But if the thread pool is smart enough now, that's cool
How do you know these implementation details, by the way? Reflector, or is there any interesting blog/documentation/whatever I should know about?
 
I use tasks a lot - never had any issues with it
the thread pool is much smarter now
mmm - I've talked about it a bit on my blog. The MSDN forum for TPL is probably the best source, though, if you have specific questions. Stephen Toub actively watches and participates there, and he's the best source for all info TPL.
 
Okay, thanks
 
Rye
Good Morning Geeks >:)
 
@ReedCopsey Ah, Toub's blog links to blogs.msdn.com/pfxteam, which I had bookmarked somewhere already ... guess I should read it :P
Morning, Rye
 
Yeah - the PFX team blog is good, too.
hehehe, btw, thanks for reminding me - time to add a new blog post on the subject
 
11:18 PM
No problem, consider it a bonus for helping me ;)
 
hehehe, well, hopefully part 19 will get up there in a few minutes
 
I'd have to start at part 1 I'm afraid
Don't you think it's strange by the way that none of the threading information anywhere talks about loops? Is it so weird to have something like a server listening loop or whatever?
I mean, what is the alternative? Pretend you don't have a loop, while endlessly chaining callbacks? :P
 
what do you mean?
there's a lot that talks about looping (or other/better means of handling things that used to require loops)
what do you want to use a loop to handle?
 
well, for instance, a Socket.Listen call
Or something of the sort
All of the msdn docs and related blogs all talk about 'doing some work' which finishes relatively soon
 
well, there are some really slick alternatives for things that aren't that way
 
11:23 PM
I haven't seen anything about work that lasts indefinitely, and how to elegantly represent it (e.g. other than waithandles or whatever)
Of course, if you say otherwise, then perhaps I haven't been looking in the right places
 
look at BlockingCollection<T>
it's an incredibly elegant way to handle long running, long processing tasks
GetConsumingEnumerable makes a lot of longer running tasks that would otherwise need a loop dead easy
 
How would you fill the collection then?
And doesn't a push model make more sense in this sort of scenario?
 
you can have your consumer(s) listen, and the socket can push work into it
but, in general, concurrent collections with multiple threads/tasks working on them do a lot of what looping used to handle
 
Yeah true
But it's a slightly different issue from what I was thinking of. Sure, it does make the cooperation between threads a lot simpler, and I'll definitely look into solutions like this.
But I'd like something that 'magically' turns all those ugly polling loops into something sweeter
Maybe I could yield return up an IEnumerable impementation (without regards to threading) of whatever polling I'm doing and then use the reactive framework to convert it to an IObservable?
while (true) { stuff = Next(); blockingCollection.Add(stuff); } is of course a lot better already than while (true) { stuff = Next(); /* lots of wait handle horrors here */ } :)
But it's the looping that I'd want to get rid of now
Of course something is going to have to loop (in general), but I don't have to see it :P
 
hehehe,yeah
easy enough to wrap up into a simple class, though
 
11:32 PM
Yeah, just wondering how far the fairy dust goes
 
Task.Factory.StartNew( () => while(true) { blockingCollection.Add(Next()); } );
done
 
yeah, I suppose, once you add the task cancellation stuff to it
 
yeah, the blocking collection can work on a cancellationtoken
so you can add that in there, if you want
but still, pretty simple
 
But the TPL is definitely the coolest thing I've seen in a while ... FromAsync alone makes my life so much easier :P
Especially when combined with ContinueWith
(Still wondering if Eric Lippert is going to mention the TPL in his series on CPS)
Bah, so much interesting stuff to learn :) The TPL, Reactive Framework, T4 (which I only heard about recently)
 

« first day (10 days earlier)      last day (4954 days later) »