« first day (584 days earlier)      last day (4358 days later) » 

9:01 PM
oh
 
Why do you ask? Most of them are inactive. Jon Skeet is in that category.
 
you mention him alot.
 
?
I wish I could be like him.
 
He must be rich
 
I doubt it.
 
9:06 PM
was a j/k
 
Just got chills from listening to Forever Today by Tiesto.
Haven't heard it in far too long.
 
=D
 
Have you guys seen this? youtube.com/…
 
im listening to some jungle playing on pandora
 
Dude makes head tracking out of some wiimotes
 
9:08 PM
Tiesto is so good. He works hard too
<- super cuts radio ..
 
ah thats neat, this one company i contracted for did that recently
but i think they fucked it up.
 
@SPFiredrake - Have you heard Antidote by Swedish House and Knife Party?
 
@SpencerRuport Awesome.
 
@KendallFrey - Right? I think I'm going to make a game for that.
Like duckhunt 3d
 
Niiice.
 
9:11 PM
I have an integration of kinect SDK into cryengine
right now it just outputs tracked positions to console.
 
I don't really like kinect
 
heathen
 
:(
Lots of people working with threading lately too
That seems to come in waves
 
I haven't gotten that far in my new book :P
 
Don't read about it
Smaller bites
 
9:20 PM
I need bigger bites :) I wrote a web forms application for our health dept (well mostly written, maybe a couple more days) but I really like this MVC stuff and want to rewrite the thing. So I need bigger bites, faster!
 
lol
you'll do it wrong!
 
I'd say just go look at some examples
 
Gotta take it slow
give it time to sink in so you can see the caveats.
 
Learn from everybody elses code, look at how they use it.
Then go back to the book, and you'll know what they are talking about, it will give you a sense of context.
 
@SpencerRuport Checking it out now. I might have, but not sure off the top of my head.
 
9:22 PM
I like steep learning curves, shallow ones bore me :)
 
I think immersion is a great idea, just know that your going to screw some stuff up on your first couple projects.
 
and hell I'd never written a web forms app before this one one it only took me about a week to figure out the web forms stuff
 
so whats everyone think of the new metro look of VS11?
 
@TonyHarmon Hey, if you could help me figure out neural networks, it'd be greatly appreciated. ;)
@Greg Metro in VS11? I thought it was just WPF.
 
SELECT * FROM Brains; :)
 
9:25 PM
Metro look
alot of work went into making VS 11 look like crap
 
@Greg I think it's WPF.
 
i think your missing the point that its a Metro "look" as in they are trying to follow metro guidelines with it.
aw metro-style is what they are calling it.
 
@TonyHarmon - ASP.Net Forms is easy to learn because there's no wrong way. It's all bad.
 
That would probably be why I like this MVC stuff a LOT more
 
@Greg I'm not sure quite what you mean. I don't remember VS 11 looking significantly different than VS 2010.
 
9:28 PM
did you download the beta?
 
The dev preview a while back.
 
I like it
Less visual distractions
 
Its ok, if your color blind and like ALL CAPS
 
eesh some outsider must've got into the code. VS 2010 looked nice.
 
i think they got a mandate from some marketing people pushing metro
I really like VS2010
 
9:35 PM
I thought VS 2008 was better looking
2010 is so loud it feels like.
 
if they want to tone it down, thats fine
but i like color
 
I don't mind metro. I just hate the helvetica ALL THE THINGS they are using
 
Well remember also these are just the default colors.
Even VS2010 has themes
 
?? What is this themes you speak of?
 
9:37 PM
You can make your studio look waaaaay different if you want.
 
that looks like a plugin
 
@SpencerRuport I'd prefer this ;) youtube.com/watch?v=0_fPV13lKm4
 
@Greg - I'm pretty sure it's not.
 
@KendallFrey - Haha I haven't seen that video in a while.
 
9:46 PM
ha
 
@SpencerRuport FYI you were correct, ive been stepping through the modified multi threading section on my new project and it seems to work fine. One part im not sure of is where should i dispose of the task, should i just let it be disposed by the GC?
 
why is <h1> the largest font
 
It's a first-level heading.
 
oh .. explains everything
 
Cool. I didn't know everything could be explained in 5 words.
 
10:00 PM
quick trivia. Guys when does it make sense to spin off more threads than the no. of processors in your machine?
 
@HasanKhan Embarrassingly parallel problems.
 
@KendallFrey whats embarrassingly parallel? And are problems parallel or solutions?
 
@HasanKhan Embarrassingly parallel problems are problems that could be solved much quicker in parallel.
For example, drawing the Mandelbrot set.
 
You can't have more parallelism than the no. of CPUs you have in your machine correct?
 
u can but u get context switching
= resource intensive
 
10:03 PM
hmm, can you stick these threads on a queue?
 
TPL is meant for this.
 
@KendallFrey :|
 
TPL is for task parallelism
and it spins of only as many threads as there are CPUs
not more
 
dont think thats correct
u can create as many tasks as u want.... i think (editted)
 
TPL = Task Parallel Library. You don't create threads in TPL. You create tasks
the no. of threads are controlled by scheduler
though you can write your own scheduler that creates more threads than necessary
but that would hurt parallelism instead of increasing it.
 
10:06 PM
yes
so u can create more
but as u have pointed out its not ideal. Then again if u open ur task manager and have a look at how many threads are running per application u will see its more than a couple
 
but back to original question. When does it make sense to have 8 threads while you have only 4 processors.
 
i dont have sufficient experience to answer that, sorry
 
when all those threads must be running in pseudo parallel for your program to function correctly.
 
@Greg wrong
Alright I'll tell you. When your problem is not CPU intensive. When its IO intensive.
 
@HasanKhan Right.
 
10:10 PM
Thread is unit of execution and if your execution blocks on IO then you're wasting CPU time.
 
My answer is definately more right than your answer.
 
in that case it makes sense to have more threads because at given time most of them will be blocked on IO
 
Did you come up with that question all on your own? So when some one tells you a correct answer thats different than your own, you can cut and paste what you spent an hour thinking of?
Don't be a dick.
 
lol
 
@HasanKhan u ask a question just to answer it urself.... thats lame
 
10:12 PM
I never asked a question
it was trivia remember?
 
but back to original question. When does it make sense to have 8 threads while you have only 4 processors.
 
Someone really likes seeing themselves talk.
 
I see, you were actually just writing gibberish. That sentence doesn't make grammatical sense without a question mark at the end.
 
rainbow the more you know about threads
 
10:17 PM
Nonsense again. Learn what ad hom is.
 
ad hom is not always a fallacy
 
Anyway moving right along.
 
not correcting anyone. I just found that interesting
inb4 your face is a fallacy
 
but i do like that website.
 
comic
 
10:19 PM
your face is a f... darnit
 
k i need to go home
 
@Greg - You're right about that being a plugin. You can change the colors of the text editor without the plugin but the rest of the colors have to be changed with the plugin unfortunately.
 
Meanwhile... Anyone recommend a good linq book?
 
APRESS LINQ in c# 2010
 
ty spencer for not accusing me of ad hom.
 
10:21 PM
... I hate that
I just wanted to link to it
not flood the chat
 
Kyle, are you getting kickbacks form amazon?
theres no shame in telling the truth
 
I was looking at that one. I like the Apress book on MVC 3...
 
haha
 
the chat automatically does that when you past an amazon link
 
10:23 PM
Just to make sure I've got this correct. Linq is 'query' in the code jQuery is 'query' in the page; correct?
 
not exactly
 
jquery isn't a query language
 
but yes, you're right
^^ that
 
The only "query" part of jquery is the selectors.
 
linq is poor (smart?) mans SQL
 
10:25 PM
linq is the lazy mans sql
but it can be applied to things that aren't sql
its nice in that respect, you can use the same linq commands for varying datasources
 
jQuery is just a library that abstracts out a lot of browser incompatibilities for javascript functionality.
@Greg - You are welcome haha
 
How about a razor book?
 
Just Incase anyone didn't know - Howard Stern is a judge on America's Got Talent , as bad as that show was - it's awesome now nbc.com/Americas_Got_Talent/video
 
I got accused of "trolling" the vb6 tag because I asked why someone was using vb6 to do something that would have been really easy in .Net
How many programming books do you have @Tony?
 
@SpencerRuport Well he's probaby supporting legacy code
I get really annoyed when i'm supporting legacy stuff, and people tell me i shouldn't do it.
 
10:34 PM
Well but at the same time sometimes some people are using bad/old technologies for silly reasons.
 
@SpencerRuport You know Graham's number? g(64)? Well, he has g(65).
 
Maybe ask them in a comment if they have to use vb?
or ask if a .net solution would work
 
@TonyHarmon MVC3 books will cover razor. I don't know if they even make a book just for that.
 
@Greg - I did.
 
10:35 PM
oh, link?
 
Cool
 
0
Q: VB6, How to limit user access to html files inside a folder

David PetersonHi everybody i want to display some HTML file in a visual basic 6 application and i use the browser object. is there anyway to prevent these files to be viewed by other browsers? in other words, i want only my application can access the HTML file's contents. could you bring me an example about...

 
@Greg Just give them the answer. If the .NET solution is really short, then possibly include it as 'bait'.
 
@Greg - He only had 65 rep I thought maybe he was just a noob.
 
ah thats is totally reasonable Spencer
 
10:37 PM
Right? I thought so too.
 
I was thinking more along the likes of the answer by Cor, here: social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/…
Not only did he tell me i shouldn't do that, he told me nothing existed for it, when there was a standard ms library
 
Yeah I love t4 templates
 
Those people on MSDN are worthless
 
@Greg they sure are
 
I used to be on there. Even got an MCC award.
SO is so much better.
 
10:40 PM
I'm new , and completely avoid help from them, usually there is always an answer on here that is better
 
I was always more active on Experts Exchange before SO.
 
I even had an enemy on MSDN. He's on SO too, but without all the sketchy rep.
 
nobugz?
 
Omg i have a picture now.
 
no.
@Greg I noticed. Welcome to the club.
 
10:43 PM
lol @Greg yeah I was confused for a second when your avatar changed.
 
Half a second. Win...
 
hmm this one is from 2008. I like to pretend im still this young
 
:(
I'm slow okay?
 
@SpencerRuport Like many other people I know.
 
@Greg - Y U NO HAVE MORE REP?
 
10:44 PM
I just started here
 
oh
Well in that case, welcome.
 
ty
i will have to harvest rep as i move along.
 
I always just wait until a new technology comes out
Then people start asking a bunch of easy questions
 
good idea
 
@Greg Not to be a prick, but I'm almost twice as new as you are.
 
10:46 PM
ad hom!
 
I'm an addict though, so... :/
 
oh your right, i made an account in 2009
anyway, by new i just started "using" SO
 
Yeah, I'm guessing most people don't dive in. I didn't.
 
@Greg - My justification for asking people why they're writing legacy stuff is because sometimes they're doing it just because they're afraid to say anything to their boss. I kind of feel like we all share a bit of responsibility to remind each other that as developers we should refuse to follow bad directions from non-developers.
 
@KendallFrey you said earlier "If it doesn't require an object reference, make it static." does that mean if i need to pass in an object as a formal parameter then it shouldnt be static?
 
10:51 PM
@HansRudel Generally, yes. It depends on the situation.
 
so passing in a reference to a combobox...
 
@SpencerRuport Asking, "do you have to use legacy?" Is totally fine. Saying "You shouldn't use legacy. Its wrong." is not ok.
 
I dove in... I love this place! :) And I'm probably the newest :P
 
that shouldnt be static?
 
@Greg - Oh sure. Politeness is always good.
 
10:52 PM
@HansRudel Not if it's in the ComboBox class.
 
@HansRudel - What do you mean "passing in a reference to a combo box"?
 
public static void PopulateSProcComboBox(DataTable SProcDT, ComboBox cbSProcList)
        {
            for (int i = 0; i < SProcDT.Rows.Count; i++)
            {
                string currentRoutineName = SProcDT.Rows[i]["routine_Name"].ToString();

                if (i == 0)
                {
                    cbSProcList.Items.Add(SProcDT.Rows[i]["routine_name"]);
                }
                else
                {
                    if (currentRoutineName == SProcDT.Rows[i - 1]["routine_name"].ToString())
so thats wrong
 
No that's fine.
 
@KendallFrey Real quick question....how do you call a method that is a public string method?
 
@heinst What is the signature, and what class is it in?
 
10:54 PM
Question. I created a public class then did a build but intellisense isn't picking up my public stuff in the class; why?
 
@SpencerRuport, ok im a little lost.
 
How so?
 
ComboBox is an object
 
@KendallFrey What do you mean signature? and its in the form1 class
 
@TonyHarmon - Type it in anyway and try to compile. Sometimes it'll tell you what the problem is.
 
10:55 PM
@heinst The first line, as in public string ...
 
public string GetDisplayNameFromPath(string defaultPath)
 
@HansRudel Actually, a class.
 
@HansRudel - I think one thing you might be confused on is that while static variables and properties are generally to be avoided, static functions and methods are more often than not a good thing.
 
@SpencerRuport build and compile == right?
 
@heinst And where is the code you are trying to call it from? Inside or outside Form1?
 
10:56 PM
inside
 
@TonyHarmon - Yeah I meant build. My bad.
 
Its in a label function
 
It builds without error, but intellisense still doesn't pick up the public stuff
 
@heinst Then just GetDisplayNameFromPath(someString)
 
@TonyHarmon - hmmm do you have visual studio sp1?
 
10:57 PM
@heinst A label function... what is that?
 
@KendallFrey cheers bro. @SpencerRuport yeah but im having issues figuring out when i should n shouldnt be using them thats all.
 
Yes. I did however start typing in the stuff before I remembered to do the build so maybe like studio management not seeing a table you just built because it didn't exist when you created the session?
 
@HansRudel - Generally speaking: Avoid static variables and try to use static methods.
 
a function that is writing to a label ....(mines using a tick event handler)
public void datemodified_Click(object sender, EventArgs e)
{
if (selectdirectories.SelectedItem == null)
{
datemodified.Text = "";
}
else
{
string display;
DateTime lastdate = Directory.GetLastWriteTime(SelectedPath());
datemodified.Text = GetDisplayNameFromPath(display) + " was last modified on " + lastdate.ToString();
}
}
 
@TonyHarmon - Did you try exiting and reloading?
 

« first day (584 days earlier)      last day (4358 days later) »