« first day (745 days earlier)      last day (4195 days later) » 

8:00 PM
This is driving me crazy because it was supposed to be a 5 minute change to an existing application, and it's taking me like an hour
 
seriously.... that is the ugliest settings dealio I have ever made
and I spent like 20 minutes making it
 
you could probably hack it by opening up the designer file and forcibly cutting and pasting the code into the right location
 
Okay wtf, where is the profiler in VS2010?
 
In Ultimate.
 
I couldn't find it, so I installed it. Now I still can't find it. Isn't it usually in the Tools menu?
 
8:01 PM
http://jsfiddle.net/Ammarcola/awpDQ/
I will turn it into <form> soon
 
@TomW That's what I figured I'd have to do; I'm just afraid of wrecking something that already works.
Smoke break. Will return.
 
@HerNameIsEllie Source control exists so you don't have to be afraid ;)
 
@robjb Performance/Analyze something like that (main menu)
No VS open here
 
@AmmarAhmed what would be immensely more helpful is the rendered output. :P
 
lol
the form is HUGE. I am still working on it
 
8:07 PM
@rlemon i couldnt find anything about it and so it didn't help but oh well
 
I thought maybe there is a stupid JS mistake I am making
 
hej @LewsTherin I even looked in the java room for you :)
 
Hi!
Yeah I went home.
Just got home lol
 
@AmmarAhmed yea so far looks ok
my assumption is the form name is not what you tell it to be
 
idk why it can't find the form on my code but I will just use form[1]
http://jsfiddle.net/Ammarcola/awpDQ/6/
 
8:12 PM
@JohanLarsson Why were you looking for me? :O Sounds urgent.. :O
 
just wanted to say hej
 
is there really a space in the rendered HTML
name ="foo"
because if there is......... ;)
 
@LewsTherin have you done much mono for Android?
 
;_; I will look
if there is then I am never using Razor again
 
8:14 PM
@JohanLarsson I have never done Android. Nor have I used Mono. You thinking of a new project? Bored with XML are you? :p
@JohanLarsson Oh, and hi :)
 
<form action="/PropertyAnalysis?name=FormID" method="post"><br />
That is the problem. I think I am not giving it a name correctly
and I was giving myself a hard time over the JS. Thanks man
 
@LewsTherin I dont have a specific project in mind, thinking about setting the stage if an idea would materialize
The Android room is locked and that is probably a good thing :)
 
uh. StackExchange crashed.
 
Hi there! Is anyone brave enough to help me?
0
Q: .NET MVC 4 Kendo UI Grid and file upload

Daniel GralakIs there a possibility to do smoething like this: I have a window with KendoGrid. DataSource is binded to model which contains a list of AttachmentDetails: FileName, Content, Description, etc. I have a button on top of the form to "Save" the modified/added/deleted list to database. I have a but...

 
@AmmarAhmed np - that looks funny - how in the hell do people use asp
 
8:21 PM
Android is awesome :) I think I can get into the room...
 
and why people use "html" helpers is beyond me
 
in JavaScript, 16 mins ago, by dievardump
Holy shit. Disney buys LucasFilm for $4 Billion...
 
i know
wtf
 
8:22 PM
Wookie the Chew!
 
if its not a movie based on the extended universe books, I'll be pissed
they should make new jedi order into a movie
or a trilogy
 
I would be happy with Wookie the Chew
 
the yuuzhan vong were an interesting antagonist.
 
evil fuckers was what they were!
 
8:25 PM
they destroyed Ithor!
 
and chewie!
:(
The whole Anakin thing made me tear up.
 
o_O
I have got to leave this room for a bit now
"Starwars teared me up"
we cannot really be that nerdy can we?
 
if you read the books (all 19 of them)
you would too
book one of the series especially
 
Well, that took longer than expected, but I have returned. .....now to deal with designer -____-
So has no one ever seen this problem before? I'm looking in the designer code and it seems to think the items are in that menu strip, but they don't show up when I run it.
 
@HerNameIsEllie winforms?
 
8:34 PM
Yes
I have a WinForm contained within another form and the menu strip items from the inner form are showing up on the container's menu strip.
[Not sure if that description made sense... It's been a long day.]
 
I suk at winforms, sry
 
@HerNameIsEllie is the lower winform inheriting the upper winform? they do that automatically sometimes.
 
@JohanLarsson Don't be.
Sucking at WinForms is a good thing.
 
@Pheonixblade9: I'm not sure. How would I check that?
 
8:38 PM
@KendallFrey true
 
I think we need more info ... e.g. what kind of forms? Is the outer form an MDI form?
 
Ah.
IIRC, MDI has a feature that does that.
 
I'm trying to give y'all as much info as I can. This whole parent/child form is new to me - my boss had to show me some MDI stuff.
 
@HerNameIsEllie look in the code and see if theres any inheritance.
 
8:39 PM
I'm not finding any inheritance.
 
In C# it would show up as something like public class Child : Parent
 
But the container form is the MDI Parent to all following forms that are opened.
 
There's probably not inheritance from an MDI form, the children just have an MDIParent property set
 
mm, just a thought. my stepdad had to deal with that BS, they had like 7 layers of inheritance...
 
When is the deadline for starring stuff? reading the transcripts from earlier and found a gem
 
8:40 PM
There is one?
 
@JohanLarsson You can star whenever I think
 
it worked now, needed to use the menu on the left
the star on the right was disabled
 
@HerNameIsEllie Check that AllowMerge is false in your menu strips.
 
@Ken
Whoops
@KendallFrey <3 !!! Thank you!
 
@JohanLarsson just scroll up to it and star it
you can't star from the archive
 
8:45 PM
@KendallFrey why do you have to be 17 so I can't hire you?
 
Did it work? I fall victim again to correct guesses!
@Pheonixblade9 You can hire me, but you'll have to outdo my current job.
 
YES it worked!! I don't just send hearts to anyone! :P And 17? Wow, that makes me feel like a failure.
 
@KendallFrey I guess you didn't hear the conversation about where I work yesterday :P
 
lucas look pissed that he's forced to have disney chars dressed in starwars
 
8:46 PM
IDK. 6 second review plox.
 
uhm, startup, highly accountable for your work, small teams, independent work, big impact, free snacks. I like it :)
 
Will you buy me a 2 month old Alienware?
i.e. this one
Which I don't own.
I like that word because this: plox.net
 
@KendallFrey idk, I use a 8-core (16 thread) Xeon @2.8Ghz w/ 12GB triple channel DDR3... it does pretty well, I run multiple instances of SQL server on it with no problems :)
that's my workstation, at least
 
Does it run games well?
 
not for running games :P
 
8:53 PM
:(
Programming is just one big game.
 
I hate to be that annoying guy. but someone please help me
 
Sims 4: Ultra-Hard
 
Okay I have another stupid WinForm question for y'all. (Assuming I haven't driven you crazy by now with stupid questions.)

Is there a way to make a gridview in a form load without selecting a row?
 
Hello! :)
 
I have a Quadro NVS295 though, it's a pretty good workstation card
 
8:54 PM
@HerNameIsEllie: by load do you mean fire its Load event?
 
Dear friends, I beseech your wisdom. :) Any good recommendations on a C# 5.0 book? :)
 
I have a few forms that populate textboxes with detail information depending on the row you select in a gridview. My boss would like those screens to load with blank textboxes (i.e. not having to click 'Clear Form'), but they auto load because the form loads with a row already selected.
 
@PauloCereda 5.0? I like C# 4.0 in a nutshell for 4.0, maybe they've made a 5.0 book lol
 
@TomW: I just mean when the form pops it up.. It always has the first row selected, which loads the textboxes.
 
@Pheonixblade9 There is, actually. :P
 
8:55 PM
ah, gotcha
 
If anyone would answer: How can I make a rectangle clickable? I have decided to use the mouse coordinates approach where I see, when the mouse i clicked, if the coordinates are inside the rectangles area, and if they are, then perform a specific task. Except I either don't know how to do it or I am doing something wrong. Could someone please help me?
 
If this is impossible, no problem, I would just like to know if I can disable that 'feature' so it loads with blank text boxes.
 
maybe try setting CurrentRow to null when the form is created? guessing here
 
@user1079641 WinForms or WPF?
 
@TomW I'll try that
 
8:57 PM
@HerNameIsEllie Try selectedIndex = -1
 
@Pheonixblade9 I was looking at your blog
 
ah, it's readonly, scratch that
 
your latest post is well... I didn't like it
function sortPrices(priceStrings) {
    priceStrings = priceStrings.map(function(v, i) {
        return v.replace(/[^0-9\.\,]/g, "");
    });
    return priceStrings.join(",").split(",").sort(function(a,b){ return a-b; });
}​
much shorter solution
 
@PauloCereda there's not a ton of new stuff, the async feature is pretty cool, and more dynamic stuff
 
8:58 PM
you can even make it shorter
function sortPrices(priceStrings) {
    return priceStrings.map(function(v, i) {
        return v.replace(/[^0-9\.\,]/g, "");
    }).join(",").split(",").sort(function(a, b) {
        return a - b;
    });
}​
 
@rlemon haha, that was a random snippet
 
@AntLaC I can't even find a selectedindex property
 
what kind of control is it?
sorry, didn't catch the whole convo
 
DataGridView
 
@Pheonixblade9 yea well I looked at it and was like.... no way. we can do better than this
 
8:59 PM
It's all good. Any help is welcome.
 
@Pheonixblade9 Ah I see (I come from a Java background, so forgive my ignorance on C# affairs). I might start new project on compilers and the plan is to generate MSIL, so I was looking for a nice book on cool features. :)
 
Huh. GridView has one
SelectedIndex
what version of .NET?
 
@rlemon I never claimed to be a JS haxx0r :D
 
CurrentCell is read/write, try setting that one, see what happens?
 
9:01 PM
@PauloCereda Haha, I was an Android dev before my current job :)
 
hey i'm just offering my two cents :P not bashing your code
 
@AntLaC GridView != DataGridView
 
No kidding Kendall
 
@AntLaC: Just a WinForm
@TomW What do you mean?
 
@Pheonixblade9 Oh, a fellow 'droid! :) I'm still in the Java business, but I'll probably try this new project with C#, I'm really interested in some cool features. :)
 
9:03 PM
@rlemon no worries :)
 
I also ensure trailing .00 is left in
;)
I get side tracked when I see js :/
 
@PauloCereda yeah, this is actually my first job out of college. I got hired before I graduated... it was the only non-mobile job I interviewed for, but they gave me a really nice offer :)
 
the property CurrentCell is read/write, so my suggestion of setting to null applies to that too, try setting CurrentCell to null in the form constructor or the load event...logically if there is no cell selected, no row can be selected either
like I say, guessing
 
I never did J2ME or J2EE, just J2SE with Android stuff. I got pretty good at it, though. I still do Android consulting on the side ;) gotta love consulting rates.
 
Woah, ok. Disney have bought Lucasfilm
 
9:05 PM
        dataGridView1.ClearSelection();
        dataGridView1.CurrentCell = null;
 
@TomW jeez, dude, that's so 15 minutes ago. Get with the program
 
Probably Not News to everyone but me
 
@Pheonixblade9 How nice! :)
 
Hmm.. Yeah, I was just trying the ClearSelection() method. I'll try combining it with nulling currentcell
 
Sorry took soo long, had to create a winforms project
 
9:06 PM
:( reddit starwars fanbase you disappointing me
 
Sigh, I must be doing something wrong. That's still not working.
 
@HerNameIsEllie Is this a bug, or are you just looking for a better way of doing things?
 
I just went step by step through and when you click the button that opens this form, on top of other events firing, it's going through my SelectionChanged event for the DataGridView
And this isn't a bug. It's a change requested by users.
Well, users by way of my boss. Couldn't really say no.
 
Is this DataGridView bound to a BindingSource?
 
I've told my boss no already. Felt good.
 
9:09 PM
@TomW Yes
@KendallFrey I'm just an intern - saying no doesn't bode well for my future at this company.
 
DataGridView doesn't say either way, but BindingSource seems kind of more explicit in saying that it doesn't permit no item selected
 
2 bugs, 1 ticket. 1 of them a PEBCAK, 1 a no-repro.
 
DataGridView seems like it should, but when bound I guess it defers to the BindingSource
 
Silly boss.
 
@HerNameIsEllie try adding the selection change event handler after the grid is loaded
 
9:10 PM
O.o You lost me.
 
@HerNameIsEllie just because you're an intern doesn't mean your opinion doesn't matter. If it's too hard, ask for help. If it's a bad idea, tell your boss WHY, not just THAT it's a bad idea, and he might listen. If he doesn't listen, that's not a place you want to work for.
 
I mean, I didn't even know it was hitting that event. I thought it wouldn't fire until I physically changed my selection.
 
in a datagrid the selection changed event gets fired everytime you add a row
 
@Pheonixblade9: thanks for the hint, I'll try that book. :)
 
@HerNameIsEllie if I'm not mistaken, the VS debugger has an "events" view that lets you see and filter all events
 
9:11 PM
Oh, I know why they want it changed, and it didn't seem like that big of a deal when I said yes. I have a spine - I'll say no when necessary, but this seemed like a 10 minute fix.
 
@PauloCereda no problem, I understood LINQ-XML much better 'cause of the C# 4.0 book!
 
like I said, try adding the event handled after the datasource is bound
this way it won't fire until the user actually selects it
get handled anyway :)
 
Yeah, seems like the problem is that BindingSource is to blame here, it doesn't support having no selected item unless there's nothing in the collection, apparently
 
I can't find the event log.. That would be something I've never even touched before.
 
guys, how can I force entery of only a specific char in Console.Read() ?? I mean I am waiting for an input from user and that input should only be a number for example. So If user presses a letter, I don't want to evaluate and check wether it was a number or letter. Any smart idea? (no if() else() PLS!)
 
9:15 PM
dataGrid.SelectionChanged += new EventHandler(dataGrid_SelectionChanged);
 
And I put that where...?
Right after binding?
 
@Saeid87 Impossible. Before you can decide whether or not to check, you need to check to determine it.
 
@Kendallhmm thught so as well, was wondering if its possible at first place
 
@HerNameIsEllie - It doesn't matter where. Form load could do. This is just registering the event handler.
 
    private void dataGridView1_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
    {
        dataGridView1.SelectionChanged += new EventHandler(dataGrid_SelectionChanged);
    }
 
9:17 PM
@Oded Blech. Form_Load is a horrible to place to do things. Ctor is much better.
 
@KendallFrey So there is nothing like Console.ReadOnlyNumeric() :D What I want is do not have any outputs unless a number has entered. EG I dont want to echo "please enter the value again..."
 
@Oded Incorrect, in her case we are trying to delay the event handler registration until after binding
 
@KendallFrey - Fair point.
 
It's still selecting that top row.
 
@AntLaC - Surely selection change will not fire during/after binding?
 
9:19 PM
@Saeid87 Well, you have to.
 
Yes it does
after each and every row that is added
 
Alright. I'm swallowing my pride and I'm gonna go talk to my boss. I'll (hopefully) be back later. Your help has not gone without notice. <3 to you all!! Thank you again for the amazing ability to fix my problems.
 
@KendallFrey, its WinForms
 
The use a Panel.
@HerNameIsEllie Hey! You said you don't give hearts to just anybody, and now you gave them to everybody! :P
 
Guys can you check this code please? I want to show the serial ports on screen and ask user to select the port. ITs not working :(

`
private static int SearchForSerialPorts()
{
_portNames = SerialPort.GetPortNames();
var numbers = new int[_portNames.Length];

if (_portNames.Length == 0)
return 0;

for (int i = 0; i < _portNames.Length; i++)
{
numbers[i] = i;
Console.WriteLine(i + "> " + _portNames[i]);
}

var read = 99;

while(read == 99)
{
read = Console.Read();
if (numbers.Contains(read))
return read;
else
read = 99;
}

return 0;
}
 
9:27 PM
What's not working about it, exactly?
 
I think in the while loop something is wrong it never changes maybe
 
@Saeid87 You should see that in the debugger?
 
hmm trying :P
 
Read does not read a number.
It reads a character.
 
it looks like if you don't find what you're looking for, you're going to stay in the loop
 
9:30 PM
IIRC
 
seriously :D
 
Just use ReadLine and int.TryParse.
 
sry about that
 
put that back :)
 
9:31 PM
its ok we all do mistakes ;)
 
@KendallFrey yo! i'm all up in this js room calling you names and you don't see them
what gives
 
Ignoring?
 
still looks strange
 
@KendallFrey come over here and boost my car dammit!
I know it was you who killed the battery
 
No! I'm going home!
 
9:34 PM
you were afraid i'd steal your $2000
 
AHA! fixed

`
private static int SearchForSerialPorts()
{
_portNames = SerialPort.GetPortNames();
var numbers = new int[_portNames.Length];

if (_portNames.Length == 0)
return 99;

for (int i = 0; i < _portNames.Length; i++)
{
numbers[i] = i;
Console.WriteLine(i + "> " + _portNames[i]);
}

var j = 99;

while(j == 99)
{
var input = Console.ReadLine();
int.TryParse(input, out j);
if (numbers.Contains(j))
return j;
else
j = 99;
}

return j;
}
~
 
Going to meet Luke Hoban, program manager for TypeScript, in a couple weeks :)
I can ask him "wtf weren't you on the original ECMAScript specification team??"
 
@Saeid87 iis it you who asked the question about leaking serialports?
 
I deal with SP a lot
 
9:36 PM
leaking? no I have no idea what is serial port leak
 
i'll be home in a few
leaving now
 
Y'all would not BELIEVE how we fixed it. Just put the SelectionChanged event within the MouseClick event. Have to thank my co-worker for that idea.
 
No I didnt fix it. The following code returns 0 if I input a character :
while(j == 99)
{
var input = Console.ReadLine();
int.TryParse(input, out j);
if (numbers.Contains(j))
return j;
else
j = 99;
}
and 0 is a valid return for me
 
why the while(j == 99) and not while(true)?
 
@Saeid87 MAGIC NUMBERS BAD! BAD SAIED! BAD!!!
 
9:46 PM
hmmm true on that
:D
this also does not work:
 
@HerNameIsEllie Good job
 
if i input letter its ASCII will be returned and its a a number
while(j == 99)
{
var input = Console.ReadLine();

var a = input[0];
if (char.IsNumber(a) && numbers.Contains(a))
return a;
else
j = 99;
}
hmm Console programming is a disaster
 
I'm not sure what you're trying to do here
also, I need a third display >.<
 
@zneak just get a Gaben display
 
what's that
 
9:51 PM
I get the avilable serial ports, and list them from 0 to any number of serial ports so my output in console is like:

0 > COM1
1> COM4
2> COM5

so if user inputs 2 I will connect to `_port = new SerialPort(_portNames[_return])
 
doesn't sound so bad
 
Speaking of the Steam Sale, is anyone playing the Secret World?
 
while (true)
{
	string line = Console.ReadLine();
	int port;
	if (int.TryParse(line, out port))
	{
		if (numbers.Contains(port))
			return port;
		else
			Console.WriteLine("#{0} is not assigned to any port.", port);
	}
	else
		Console.WriteLine("{0} is not an integer value.", line);
}
 
GREAT!
 
@JohanLarsson Looks like the server is online
 
9:56 PM
@zneak thanks man!
 
string[] portNames = SerialPort.GetPortNames();`
int portIndex = 0;
foreach(string p in portNames)`
{Console.WriteLine(String.Format("{0}: {1}", string.parseInt(portIndex++), p));}
Console.WriteLine("Which port would you like to connect to?");
string portNum = Console.ReadLine();
SerialPort port = new SerialPort(portNum);
port.Open();
Combine @zneak and I's code :P
 
@LewsTherin what server?
 
@JohanLarsson Yeah, I don't know what's so special about Android that they had to lock the room.. but anyway :)
@JohanLarsson SO was down
 
ok
It was a good thing, was gonna flood with noob
 
Well since you aren't a help vampire you should be grand.
I'm freezing my ass off.
 
10:03 PM
    var dictionary = SerialPort.GetPortNames().
        Select((p, i) => new {index = i.ToString(CultureInfo.InvariantCulture), portName = p}).
        ToDictionary(x => x.index, x => x.portName);
Is there a nicer way to do that^^
 
you can even forego the select
no, you can't
good
 
@JohanLarsson It seems that you are fond of neat coding :D
 
because of the index?
@Saeid87 don't be fooled
 
yeah, because of the index
 
Ben
Can somebody tell me the syntax of programmatically setting a checkbox margin? I've tried "check.margin.all = 0;", but VS tells me that check.margin is not a variable. The MSDN page just gives some kind of XAML information, and I know nothing about XAML, and I can't find any other margin-setting examples in C#.
 
10:09 PM
did you try check.Margin?
 
Ben
Yes, that gives Error 1 Cannot implicitly convert type 'int' to 'System.Windows.Forms.Padding'
 
looks like you're getting closer
 
Ben
check.margin = 0, I mean. Same with check.margin = "0" for string to padding.
 
and did you try check.Margin.All now?
please use proper casing in your messages if you've tried them
 
Ben
Yes, sorry; it's been check.Margin.All. I've been using Intellisense to see what I can options I have off of check.
 
10:13 PM
and what's the exact, copy-pasted error you get for that when you try to compile?
 
Ben
For "check.Margin.All = 0;" I get Error 1 Cannot modify the return value of 'System.Windows.Forms.Control.Margin' because it is not a variable c:\users\thermopyle\documents\visual studio 2012\Projects\Chapter11\Dispatch Review Assistant\Dispatch Review Assistant\Form1.cs 52 21 Dispatch Review Assistant
 
ah ha
now that makes sense
you cannot modify individual properties of structures returned by properties
 
@Ben I think margin is a struct
 
yes, it is
so you need to do check.Margin = new Padding(0)
 
isn't t read-only ?
No, it's not, just checked xD
 
10:15 PM
new Thickness(0);?
 
structures are different from classes in that regard
structures are always copied whole piece when they're passed around
this means that if you have, like
Padding a = foo;
Padding b = a;
if you change something on b, it won't appear on a
and since properties return copies of the structures they hold, assigning anything to a property of the structure would do nothing
 
Ben
Padding was accepted, thank you, and makes sense on why what I was trying to write wasn't compiling--unfortunately it didn't do what I was trying to accomplish, which is to change the difference in height between checkboxes in a FlowLayoutPanel control. Since the checkbox margins and the margins in the FlowLayoutPanel control don't have any effect on the vertical distance between each checkbox, do you have any suggestions on how I should change that?
 
Someone knows what google dll I have to add as reference to work with "Google drive" ?
 
unfortunately no, I have to get back to work
but good luck with that
 
check.margin = new Thickness(0);
 
10:20 PM
@JohanLarsson funny, "new thickness" is what my girlfriend calls me.
(just kidding, I don't have a girlfriend :D )
wait... D:
 
@Pheonixblade9 that goes for me too
but then I can go xpert and call her the same thing!
 
Ben
Thickness isn't found when I try that. :(
 
ok, always go with what zneak tells you
I did not try it, no VS here
maybe I spelled wrong, think it should work
1
Q: Change margin programmatically in WPF / C#

yozawiratamaFor this xaml: <WebBrowser Name="test" Margin="0,0,0,0" /> How can I change the web browser control margin on top to be -5 programmatically in C#?

 
Ben
This is winforms, not WPF, which may explain why check.Margin = new Thickness finds nothing.
 
The most unbelievable part of the newest Spider-Man movie is that Peter Parker uses Bing.
 
10:27 PM
@Ben ok, did not know it was winforms
@Billdr Bing is not that bad, I use it sometimes to mix it up
Google always has wikipedia 1...
 
Ben
Billdr: I remember noticing that. Marvel is owned by Disney, though, and Disney and MS have some kind of relationship.
 
I use Bing sometimes. When I'm mixed up.
 
Ben
Actually, "check.Height = 20;" seems to work well enough.
Thanks for the assistance. :)
 
I'm semi-back
did you find a solution Ben?
 
Ben
10:55 PM
Somewhat--using check.Height let me set the height of the control, and worked for my application. It's not dynamic, however, so if I were trying to use this in a context where the checkboxes were flowing left to right, this approach would not help at all for setting the padding between elements that way.
And since it's not dynamic, check.Width would not be a very good setting to use unless I constrained the length of the check.Text property in some way. I don't need to worry about it for this application, but it occurs to me as a problem I may have to look into at some point.
 

« first day (745 days earlier)      last day (4195 days later) »