« first day (698 days earlier)      last day (4265 days later) » 

12:00 AM
what does he mean duplicate account numbers? you might have a single account that places multiple transactions. that seems like desired behavior
I think OP of that question just doesn't know what he wants
 
To me that looks like homework and if he can't figure it out I don't want to help because then someday when he graduates I'm going to have to fix his shit...
 
hahahahahahahaha
 
@Grixxly I think you are 100% correct :)
 
Lol
 
you have an interview grix?
 
12:03 AM
Friday... For local University... figure it's mostly recovering databases students blow up
 
good luck with it bud
 
@Grixxly Tell them to buy enterprise edition, mirror everything, lulz all the way home ?
 
bad design if it blows up anyways ;)
 
@E.LDunn you underestimate the creative ways ignorant people can destroy things :D I make it a point to never touch prod unless I ABSOLUTELY have to
 
It's pre-scripted tables. Don't know why they would want to recover anyway, drop the DB and re-run the script. But the benefits of being able to go back to school free seems nice
programming is the eternal struggle between the programmer writing better idiot proof code and the universe creating better idiots... universe is winning
 
12:07 AM
lol see if you can find lew a nice red head while your at it :P
tis true
 
@Pheonix I'd just be happy with a place willing to pony up the money for redgate software. The few times I've installed their demos it has been kick ass
 
@Grixxly I use SQL Compare on a daily basis <3
The licenses are like $8k each though
they sort of fall flat when it comes to changing constraints on populated tables, though... I have to do that manually
Anyone ever write a "generic task runner for SQL" type thing in C#?
I'm trying to determine if it's better to multithread my job via multiple servers
or if it's better to just index the column I'm filtering on
 
I'm sorry but I have to rant a bit... SQL BELONGS IN TEH F'IN DB NOT IN CODE!!!!! There I feel better.
 
@Grixxly worry not, I have a sproc to do what I want. :) But I need to run it on multiple DBs
 
@Pheonixblade9 Yup. I have one lying somewhere, but sadly... must inform you it targets Oracle
 
12:14 AM
Oh and reading some of these SO questions has given me gas... but I suppose that's a bonus
 
@sehe the target shouldn't matter, all I need is a guideline of how to write it. I have an idea, but it's always good to see an implementation.
 
@Grixxly Lol
 
@Grixxly READ SO AND HEAT YOUR HOME </LifeHacks>
 
It is even worse when they never upvote or accept an answer.
 
I yell at them in the comments if they have <75% accept rate
 
12:16 AM
@Pheonixblade9 I'll have to search it. Not sure I get the goal right. I was associating with the SqlCompare reference before. I've used a C# tool to compare schema and generate update scripts. It did handle populated tables in Oracle (disabling triggers + constraints and resetting sequences)
 
@Pheonixblade9 Really?
 
@sehe oh, my bad, thought you were responding to my "generic task runner" thing, don't worry about the SQL Compare thing. I appreciate it though
 
@Pheonixblade9 I thought it was what you meant. No problem :)
 
@LewsTherin yeah, I am a reasonably high rep user (and my asked/answered ratio is huge), so I try to steer the newbies correctly. Sometimes it's just ignorance.
 
Sometimes it's just stupidity... and think about this... someday they might be a co-worker... do you really want to go to prison for putting them out of their misery? Think about that...
 
12:20 AM
Yeah... half my answers on SO are "here is a duplicate answer, now go away"
...slightly more politely than that
 
Lol
 
... guess I kind of when Shaun of the Dead there didn't I?
 
It seems desperate though
 
It's on auto...
Got a quid?
 
Yep
 
12:25 AM
now I'm pissed... Shaun of the Dead is not available for instant view on netflix... :-/
 
I'm off, gentlemen!
 
laterz
I'm out to... to much crap running through my head so it's time to blow up some tanks and watch some netflix... o/
 
12:59 AM
any jquey fans here?
i cant get my twitter plug in to work :S
or if anyone just wants tio chat
and shaun of the deads is fun
 
1:48 AM
meow
 
2:13 AM
hey i have a really stupid sql question
how can i combine this into one sql statement?
UPDATE friend_info
SET sentmessage = 'true'
WHERE friend_fb_id = N'1344674403'
AND primary_user_fb_id = N'30814429'

UPDATE friend_info
SET sentby = 'SENDFACEBOOKID'
WHERE friend_fb_id = N'1344674403'
AND primary_user_fb_id = N'30814429'
nevermind
 
lol
 
 
2 hours later…
3:49 AM
i'm sick of internet explorer
in IE
 
 
1 hour later…
5:21 AM
hello all
anyone
works for me @Ray
 
in internet explorer?
 
 
1 hour later…
6:34 AM
i dislike IE
 
7:10 AM
I iz back
 
posted on September 13, 2012 by Scott Hanselman

When the Visual Studio 2012 free versions were originally announced the first thing I noticed was that they had switched from a language-specific model (C# Express, VB Express, etc) to a target-specific model (Windows 8, Web). However, I was very surprised (and disappointed) that there was no free way to make Console Apps, or Windows Forms apps, or anything for the Windows Desktop. I wasn't th

 
7:29 AM
Good morning.
 
Morning people :)
 
7:47 AM
morning
 
Morning
can anyone see anything wrong with this function as its not working

$('<%= ddl.ClientID %>').bind('change',Setring());


function Setring()
{
var objA = $get('<%= chk.ClientID %>');
var objB = $get('<%= ddl.ClientID %>');

if(objB.value == '0')
objA.checked = false;
}

only thing wrong is I guess, DDL is a asp.net drop down list and I am attaching this function to it
 
@TimeToThine Do you have more than one dropdowns that uses this function?
@TimeToThine I think I would give the id's needed in the function as parameters instead of doing it the other way around. That way your function will be more generic and easier to maintain.
 
@Steffen I also got another "onClick" event but that is for ObjA checkbox, which is making changes to DDL, so not sure if thats something making it not work
 
8:06 AM
@TimeToThine The onClick event on the checkbox and the onChange event on a dropdown doesn't have anything to do with each other the way I see it.
@TimeToThine I think I would do something like:
$('<%= ddl.ClientID %>').bind('change',Setring('<%= ddl.ClientID %>','<%= chk.ClientID %>'));


function Setring(dropdownId, checkboxId)
{
var checkbox = $get(checkboxId);
var dropdown = $get(dropdownId);

if(dropdown.value == '0')
checkbox.checked = false;
}
I'm not sure what your problem is and if this will solve it - but I think it's much cleaner code.
 
let me give it a go :)
 
8:43 AM
@SteffenJørgensen am not able to bind to the control as if it wont gonna bind it to control it wont gonna be able to attach it to any functino
 
@TimeToThine Not sure I understand. Do you get a javascript error when loading the page?
 
hi all
i have a problem with database normalization
 
@SteffenJørgensen it works like this

$(<%= ddl.ClientID %>).bind('change',Setring());

why ? i got no clue
 
@TimeToThine Did you remember to put quotes around the elementId's? Like this:
$('<%= ddl.ClientID %>').bind('change',Setring('<%= ddl.ClientID %>','<%= chk.ClientID %>'));
 
@SteffenJørgensen it wasn't biding to control unless I remove quotes to following so there was no chance to go any further :)

$(<%= ddl.ClientID %>)
 
8:57 AM
JS? Again?
There are other rooms, with 89 users currently talking in 30 rooms.
 
@folex You're right.
@TimeToThine You properly are better of asking in one of the javascript chat rooms. I guarantee that you will get better help, than what I've managed :)
 
@SteffenJørgensen I have been asking them since yesterday and they all tried help me and I also asked one java script developer here but he told me stuff which didn't helped me
I wonder how can they call themselves JavaScript when they can't fix these small small things :S
 
9:17 AM
anyone used System.Diagnostics.Trace before?
im wondering how u would turn it on and off from app.config.
would u just comment out <listeners> ... </listeners>
?
 
I think if you need full trace you do something like ex.fulltrace or something if thats what your after
 
@TimeToThine howd u mean ex.fulltrace?
ex being the exception variable?
 
yup
 
@HansRudel
C#
Der???
 
@TimeToThine ok cool
@VinitKumarKamboj hi
 
9:31 AM
Hey I had a query regarding gridview
I want to display the color to the particular row selected in the grid
either by coding side our by designing
 
not sure, sorry bro
 
ohk.... :(
 
10:14 AM
hi all
is anybody there
 
10:30 AM
if anyone knows much about pipeline then help me out please stackoverflow.com/questions/12404140/…
 
@AmberArroway
 
10:53 AM
:O
 
11:10 AM
hello @E.LDunn
i have question
i have a list from which i found the lowest now i have to find second lowest plese guide me
This is my code
Contractor _ContractorBID = tempList.SingleOrDefault(x => x.BIDAmount == tempList.Min(ex => ex.BIDAmount));
 
@kapil I think you could solved the problem using LINQ. Something like:
Contractor _ContractorBID = (From temp In TempLIst Order By temp.BidAmount Descending Select Temp ).Skip(1).SingleOrDefault()
@kapil Made this of the top of my head so please any errors
 
11:27 AM
@SteffenJørgensen thanks bro
@SteffenJørgensen your code completely over my head
 
Hello
I am here again, with UserControls and Controls
Can not get a Control to draw itself on a UserControl
 
11:42 AM
@kapil Did it not work?
@kapil I just spotted one error. It should be ordered by Ascending and not Descending else you'll get the second highest bid instead of the second lowest bid - my bad
 
tempList.OrderByDescending(x => x.BIDAmount).Take(2).LastOrDefault();
same as what steffen said
 
@E.LDunn Uhhh...nice! Didn't know that you could do the same with a lambda expression.
@E.LDunn Much cleaner than my solution
 
i think you can lol i didnt have his list object to check though
 
\m/
 
Does anyone know how to use Control class?
 
11:51 AM
@E.LDunn and @SteffenJørgensen thanks alot :)
 
depends in use it how?
 
My class inherits from it
and over rides the OnPaint
to draw itself
 
yupp
 
but when I add the control to my form at run time
it does not even call the OnPaint method
So its not drawing itself
 
hmmm is this winforms or something else ?
 
11:53 AM
WinForm
 
is your control small enough to paste in here?
 
Yes
 
if you paste it ill add it to a winforms project and have a look
 
class OINodeControl : Control
{
private GraphicsPath GPNode;

public OINodeControl()
{
GPNode = new GraphicsPath();

GPNode.AddEllipse(0.0f, 0.0f, 50.0f, 50.0f);
GPNode.CloseFigure();
}

protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);

e.Graphics.FillPath(Brushes.SkyBlue, GPNode);
e.Graphics.DrawPath(new Pen(Brushes.Black), GPNode);
}
}
And in my main form's button event holder I have this:

OINodeControl temp = new OINodeControl();
temp.Location = new Point(50, 0);
this.Controls.Add(temp);
 
        OINodeControl temp = new OINodeControl();
        temp.Location = new Point(50, 0);
        temp.Size = new Size(50, 50);
        this.Controls.Add(temp);
        this.Invalidate();
 
12:00 PM
mmmm so it was the Size I forgot to set?
 
yea
 
Thanks a lot, now that make sense
 
12:21 PM
Can Controls (The Control Class) have events?
like a OnClick event?
or MouseHover
 
@KendallFrey hey ..kendall
 
That's me.
 
lol
has there been any entries for the logo thing yet?
 
12:39 PM
No.
 
I've been trying to think of one but have been way to busy
 
when was is the closing date?
was/is
 
I think Saturday we will vote on them
 
what logo is this, may I ask?
 
2 days ago, by Kendall Frey
We are having a contest to design a logo for the C# room wiki. More details are here.
 
12:44 PM
mmm
should think of something
@KendallFrey would you maybe know, or related to, RT Kendall?
 
huh, what?
 
any1 can share there wallpaper source links with me....
m quite bored with mines....:/
 
@KendallFrey sorry corrected my spelling
 
Still lost.
 
Hello @KendallFrey @Samy000rathore @ZioN
 
12:50 PM
Then I guess you do not know RT Kendall
 
WinRT?
 
A person
 
No idea.
 
any one have any idea how to create nested properties like
dataTable.Columns[0].ColumnName
 
12:52 PM
I have always wanted to know that myself
I guess you would use classes
 
Columns[0] returns an object with a ColumnName property. Simple.
 
is it for a control?
 
i suspect a memory leak in my code....and i have no idea how to use a profiler to detect that :/
 
this a new question?
 
12:54 PM
@ZioN No just wanted to create nested properties
 
put it in some water and see where the bubbles come out
:D
 
That could work :) haha
 
That`s my wallpaper.
 
@Kendall so your new laptop came?
 
12:56 PM
are you currently running on an alienware machine?
 
i dunno like alien ware wallpapers
 
desktopwallpapers.co.uk <-- here for more wall papaers
 
but neway, do i have to call the GC explicitly???
what if i told myself that i can't
:(
 
@Samy000rathore ?
 
You should never have to call the GC explicitly.
 
1:00 PM
memory leaks :( @LewsTherin
my app crashes after running for some time
like an hour or so
with System.OutOf Memory Exception
 
I've got a stackpanel, any way to "start" the stack at the right side (Horizontal stack) of the parent?
 
Roel Van Udel told me i have memory leak in my code
@LewsTherin
 
Isn't there some RightToLeft property?
 
There is
 
Hi
 
1:02 PM
No I think it is FlowDirection
FlowDirection="RightToLeft"
 
No, that's vertical or horizontal.
Or isn't it?
 
@Samy000rathore Do you know why it is happening?
 
@LewsTherin Thanks, retarded naming strikes again
 
A book was linked here recently about building your own relational database. Can anyone give me the name?
 
theres also orientation=""
 
1:03 PM
Orientation="Horizontal"
not right-to-left :P
 
well, that did the trick <3
 
it tried to see the error, it says System.Out of Memory exception
 
Ah, yes. Lews was right
 
Problem signature:Problem Event Name: CLR20r3
System.OutOfMemoryExceptionOS in c# windows application
 
1:04 PM
@Samy000rathore I dunno. Bad advice - try GC.Collect()
 
@Samy000rathore Are you doing anything that you think could use a lot of memory?
It's probably a memory leak, but I don't know if it's because of you or the CLR.
 
i suspect it might be me
 
Are you working at all with unmanaged/unsafe code? Do you use any WinAPI functions? Anything low level?
 
my form is consuming a web service and i m continuously processing the data i'm reciebing
 
your app will have a max of 2gb if your loading alot of data and retaining it, you may find you get out of memory on smaller objects as there isnt a large enough continous memory section to hold the new data you are adding
 
1:07 PM
@Samy000rathore How are you creating the web service?
Try wrapping it around a using block?
 
i'm not creating it, i'm just consuming one
the betfair api
 
anyone here know how to change the sql generated from linq2sql? the query currently generated uses 17 sql "DECLARE" statements and they seem to be the difference between 1 second runtime and 10ms.
 
How are you creating the object to consume the web service?
e.g. new WebServiceClient()
 
    private BFExchangeService.BFExchangeService bfg2 = new BetRates_NS.BFExchangeService.BFExchangeService();
but that is executed just once i think
the code is quite long, should i paste it here??
 
Nah, nvm.
Did you try profiling it?
The number of strings you are consuming may be too large.
 
1:12 PM
is there a way to "marge" some using statements?
 
i tried but i have no idea how it works, never used a memory profiler before :(
 
I'm having 4 using statements after eachother
._.
 
merge?
 
merge*
 
then again the application crashes after a long duration of time
like an hour or so
 
1:15 PM
@Tgys using blocks or using directives?
 
blocks
 
Using blocks are easy to merges.
 
using (..) {
using (..) {
...
}
}
 
can the profiler catch the leak in a small duration test or i have to run it until the app crashes??
 
using (bla)
using (fee)
using (nox)
{
}
 
1:15 PM
I have an array with the following values : { "ID=1", "Nome=Teste", "Tipo=J" }
How can I convert it to a dictionary ? Being the <string, string> and the key is always what comes before =
 
well, then they are still seperate :P
using (a, b, c) {

}
 
Direct EventHandler roots (Show details) (Ignore...)
One type has instances that are directly rooted by an EventHandler. This can indicate that an EventHandler has not been properly removed.
Investigate the type below for more information
 
Nope, can't put them all into one using
 
the profiler is showing a warning
14+issues O.O
 
Alright then, ty
 
1:17 PM
Anyone? :(
 
Loop and split
 
That is the hard way. ._. I thought someone would have a lambda.. ;x
 
The hard way? What's hard about that?
 
Loops inside loops.. makes the code bigger, harder to analyze.
 
What?
 
1:18 PM
ToDictionary maybe?
 
Hm. Let me try that.
 
It won't work.
 
Why not?
 
Yeah. Noticed that ._.
 
foreach(var keyValuePair in stringArray)
{
  var arr  = keyValuePair.Split("=")
  dict.Add(arr[0], arr[1]) ;
}
Something like that ^
Surely that isn't hard?
 
1:20 PM
ToDictionary is easier
 
How will you do that?
Quick! I have to go out :(
 
arr.ToDictionary(s => s.Split('=')[0], s => s.Split('=')[1])
 
See. I knew someone would have a lambda for this.
:)
 
Split twice bleh
 
Any way to calculate "the average" of two colors?
 
1:21 PM
That can be remedied.
 
blending w/e
 
Wrap it in a block maybe
 
arr.Select(s => s.Split('=')).ToDictionary(a => a[0], a => a[1])
 
Nice!
brb
 
For the performance OCDers
@Tgys Each color component is the average.
 
1:23 PM
Thanks Kendall. Worked like a charm.
 
Ehh?
 
c.R = (a.R + b.R) / 2
etc.
 
ahhh obviously
Oh, now the fun begins
Alpha has to be taken in account, otherwise the thing messes up XD
 
Disposed instances (Show details) (Ignore...)
6 types have instances that have been disposed but not GCed.
Investigate the types below for more information.
ok some1 pls help me understand this
under the native memory tab, i selected to shoe the difference between snapshots
what signs m i looking foe that might indicate memory leaks?/
 
Look for places in your code where you add many things to a list and never remove them, or subscribe to many event handlers.
 
1:34 PM
errr.....okay :|
 
1:49 PM
hai
 
Color blending is so weird :<
 
will it blend?
 
lol :D
 
y not :P
 
5
Q: Is there an easy way to blend two System.Drawing.Color values?

MattIs there an easy way to blend two System.Drawing.Color values? Or do I have to write my own method to take in two colors and combine them? If I do, how might one go about that?

sounds legit
 
1:55 PM
hey folks
 
Hows it goin?
 
I thought VS was alwqays free
 
that stared remark by TimeToThine is so wrong. Developers so often brag about "I don't pay for shit" and still, if they are being honest, they actually buy things
 
I don't
 
1:57 PM
what are you doing hansleman.. express was always free
 
If I have something paid, work paid for it.
I can't buy anything on the internets.
 
Anyways: Does anyone know of a beautifier that separates multiple declarations in one line into several lines?
e.g. int i = 0, j = 1, k = 3;
 
dat metro ui
 
int i = 0;
int j = 1;
int k = 3;
 
My brain won't let me combine them. No need for such beautifiers.
@Tgys metro modern
 
1:59 PM
@yas4891 taken it out of context brahgrammer
 
@KendallFrey keep it that way :P MSDN licensing has some pretty clear verbiage that their licensing is bound to the developer more than it is bound to the company
 
ugly ui*
 

« first day (698 days earlier)      last day (4265 days later) »