« first day (418 days earlier)      last day (4524 days later) » 

12:12 AM
Evening guys :)
Is anyone here? Haven't used this chat before.. I have a small question regarding visual studio if anyone is here :)
 
12:25 AM
hello simonlangh
 
 
3 hours later…
2:58 AM
hello, How do I create a new form_load method? I accidentally deleted it and after I copied and pasted it the methods that I call won't work. But all of them work if I put them in the public form(){} method
*I manually wrote the private void Form_Load(object sender, EventArgs e){} method
 
 
4 hours later…
6:30 AM
Guys, i want to know if we can raise an event called "Text Not Changed"
The Textbox gets values continously from a socket , I want to raise an event when the text is not changed
or if there's any trick to achieve this
 
AMH
7:30 AM
@all Hi
 
AMH
7:44 AM
@christianstuder hi
@christianstuder may I ask U question please
 
Good morning.
 
AMH
Good morning
 
@AMH You just did. :-)
But yes, ask...
 
AMH
I have class, I will chang Point in it , will I pass it by reference or by value , and what's the difference
Point is .NET structure
I pass it by reference but I want to optimize
are u there
 
8:16 AM
Sorry, yes.
All objects are passed by reference.
@AMH But Structs are value types, so they are passed by value.
 
8:33 AM
@christianstuder guten Morgen
@AMH السلام عليكم
 
@yas4891 Moin, moin.
 
@christianstuder what's up in Österreich? :-)
 
@yas4891 Fooled you. ;-) I'm usually more like: Grüezi.
 
@christianstuder Küß die Hand :)
 
@yas4891 Ähhhh, no.
 
8:35 AM
@christianstuder don't you people over there use that ?
I've been told so
 
I'm swiss, and that's not one of our greetings.
 
@christianstuder urgs. Why did I put you into Austria? I'm very sorry for that
 
@yas4891 No problem.
If in doubt, have a look at my profile. (And bask in the glory of my freshly aquired gold achievment!)
 
@christianstuder :)
populist badge... awesome :)
I'm 11 days away from 'Fanatic'
 
Weekends are always killing that one.
 
8:42 AM
hehe
I've got a virtual assistant who takes care of that :)
 
I could write a script.
Ahhhhh. :-)
 
just kidding :)
 
Remember when virtual agents were all the vogue?
It's scary how good the gamification works.
 
you mean the gamification of SO? Yeah. It works really good
I had one about two years ago (for only one month). I found it really cumbersome
It was mostly my problem though. Expressing my ideas etc.
But they are (usually) no good for one-time projects
 
AMH
@yas4891 hi
@christianstuder but I change in the structure
 
8:45 AM
@AMH I shamelessly copied that of the web :)
 
AMH
@yas4891 No problem it means Hi in arabic
 
@AMH I know :)
 
@AMH I don't understand your question. You have a structure and what do you want to do with it?
 
AMH
@yas4891 @christianstuder if you have class contains value types that you will change them will U passs the class by reference or not
 
@AMH don't make value types mutable
 
AMH
8:48 AM
@yas4891 what do U mean by mutable
 
don't change value types
 
AMH
I have class contains Point, and I need to change in it
 
a value type should (in the majority of cases) be im-mutable (meaning readonly)
 
AMH
but in my case it's not
so will I pass it by reference
 
@AMH It should not be
you should not do something like Point.X = 100
 
8:50 AM
@AMH The class itself will be passed by reference. Always.
 
AMH
@yas4891 so how to modify
@christianstuder so WIll I pass it by reference U mean
 
var point = new Point(OldPoint.X + 100, OldPoint.Y - 200);
myClass.Point = point;
 
@AMH Yes.
If in doubt, open a little new test project and, well, test it.
 
@christianstuder I feel like @AMH is not very specific about whether he talks about the class or the value type (a property in that class)
 
AMH
@christianstuder @yas4891 I need to change value type in class
 
8:55 AM
As far as I understand, you have a class containing a property which is of a value type.
 
@AMH classes are always passed by reference
value types are not, they are usually passed by value (hence the name)
 
This is not different from a class containing a short/long/double... etc. Those are value types too, just like structs.
 
AMH
U mean when bass class by reference its value type will be changed
not take copy
 
@AMH sorry. I don't get you. Could you rephrase that ?
 
AMH
@yas4891 I have class contain Point, I sayed ClassObject.Point.X = 0 , will this afect the ClassObject.Poin or will create copy
 
8:58 AM
it will affect ClassObject.Point and not create a copy
However, this is a discouraged behaviour
if Point is a struct
 
AMH
what do U mean
struct is value type
 
yes. And struct should be im-mutable
21
Q: Immutability of structs

Joan VengeI read it in lots of places including here that it's better to make structs as immutable. What's the reason behind this? I see lots of Microsoft-created structs that are mutable, like the ones in xna. Probably there are many more in the BCL. What are the pros and cons of not following this guid...

 
AMH
@yas4891 sorry, internet problem
@christianstuder am sorry
I mean the struct if value type
I have another question what about generic list that I want to modify it, will I pass ity reference or not
@christianstuder any idea
 
9:19 AM
@AMH Sorry, no. Why don't you write a test project and have a look with the debugger yourself?
 
AMH
@christianstuder Ok thanks U
 
9:38 AM
0
Q: convert svg to image programatically

astrocybernauteim trying to convert my svg to an image i ve been looking into several tools and still cant make this hapen :( now im trying SVG rendering engine but im having trouble with it since it has no documentation this is my code: using (FileStream fileStream = File.OpenRead(@"C:\sample.svg")) ...

hi all
0
Q: convert svg to image programatically

astrocybernauteim trying to convert my svg to an image i ve been looking into several tools and still cant make this hapen :( now im trying SVG rendering engine but im having trouble with it since it has no documentation this is my code: using (FileStream fileStream = File.OpenRead(@"C:\sample.svg")) ...

 
2 messages moved from JavaScript
 
Didn't we have this discussion yesterday?
 
9:53 AM
We can move messages from one room to another, cool
ah
this is a regular message
 
10:10 AM
hi all
 
:))
is c# better than java or is it otherwise?
 
@rjtubera both languages are turing complete. So they are equal
one of the languages may be the better choice for a certain scenario
but judging that "X is better than Y" is a pointless discussion
but a rather popular discussion nonetheless
 
10:30 AM
thanks for the info mr yas
 
you are welcome. Just pick whatever language you like / you are most familiar with
or what fits your needs
be it C#/Java or brainfuck
 
do java also has a compiler like visual studio where you can drag and drop forms?
 
@rjtubera I believe that NetBeans IDE has such a function
 
thanks!!!
 
Among Java developers Eclipse JDT is really popular and that does not have that functionality AFAIK
 
10:43 AM
knowing some C#, some SQL Server, some OOP, and a little UML....what do you suggest? reading more and more ? working while reading? what?
 
@odiseh suggest what ?
 
roadmap or choosing the right way .... please I feel so confused !
 
??? use maps.google.com
I don't get it
 
@odiseh are you asking for suggestions on how to learn those things?
 
@ANeves the first one: suggestions
 
11:00 AM
Write code. Writing code is never a bad idea and always the best way to learn things.
 
If you already knew OOP I would suggest starting a small pet project; it's always more interesting to try to tackle realistic problems.
But if you don't know OOP yet, I would suggest first learning OOP as a separate toolset. If you learn C# while learning OOP, all the better.
I agree with @christianstuder .
 
@christianstuder well I agree with you and try to know new things for example "Enterprise library" of Microsoft corp. but new some guidance or help which take my hand and train me every day.... sorry my poor english writing could I explain my meaning?
@ANeves As I mentioned above I know OOP
 
Oh. So you mean that you want to expand your knowledge on those areas?
(My apologies, I understood that you wanted to learn their basics.)
For C# I would suggest learning extension methods, lambdas/delegates and generic methods.
 
@ANeves ok I will.... what do you think about learning GOF design patterns? is it good learning them now or after getting some skills? (my C# skill is in intermediate level not prof. )
 
anyone knows the answer ? stackoverflow.com/questions/8429439/…
 
11:22 AM
@odiseh the book seems to be about software engineering, and not about a particular language. So I guess it would be handy for any other language you know of, as well.
If you fear your overall programming level is not high enough to really understand why some things are as they suggest, then maybe you could still quickly read it so you are on the lookout for some particular things?
 
11:36 AM
well just be up-to-date in order to be a good .net software developer
 
Then by all means go at it. :)
 
12:13 PM
:)
thank you
 
 
2 hours later…
user1049284
2:29 PM
@odiseh Odiseh, while the GOF book is very good, if you are simply an intermediate programmer then you may want to consider another book which teaches these patterns in an easier to understand way. I learned from the head first design patterns book which i found very easy to understand. It uses java for its examples, but this is very similar to C# and the concepts are what you are mainly after anyway.
 
2:58 PM
Is MVVM worth it?
I'm just using an MVC like pattern with wpf
 
@CBarlow Whats happenin ?
 
3:27 PM
@kcbeard Ugh, i'm jet lagged. What's up with you??
 
4:21 PM
@CBarlow Trying to figure out how to deal with a 20 gig table in a Blog Engine Site we are suppose to be moving this week.
 
 
1 hour later…
5:21 PM
Does anyone know what the limitations are for File.ReadAllBytes() is?
 
5:52 PM
0
Q: how to save Extjs4 chart image to print in a pdf report?

astrocybernautei have several charts in my extjs4application dashboard.. i want to generate a pdf report using the images of those charts for that i use iTextSharp is there a way to get the images from the charts in order to include them in my report? the ideal for me is to use it like this with itextsharp M...

 
6:34 PM
Anyone here know Subsonic well?
 
6:59 PM
@kcbeard Gross.
you should tell them you don't have time for that. =)
 
7:36 PM
Hey guys - anyone around to help with a frustrating memory leak?
 
8:14 PM
@CBarlow Lol i was thinking the same thing, i would much rather be writing an API right now.
@CBarlow Funny thing is this 20 gig table only has 18 rows and when i select the nvarchar(max) column with SELECT LEN(be_DataStoreSettings.Settings) AS MyLength FROM be_DataStoreSettings it returns back there is roughly 40 to 50 k of bytes, i dont know what the f is going on.
 
9:00 PM
@kcbeard haha, that sounds frustrating... like painting a masterpiece that you know is going directly into the garbage.
 
@CBarlow exactly !
 
9:54 PM
@Cbarlow Corrupted DB is looking at some cache or something, i never figured it out but i got all the fn blog crap out :)
 
@kcbeard haha, congrats!
 
@CBarlow Thanks
 
10:25 PM
Hi guys :)
Does anyone know if it is possible for one to have two windows of the same file open in visual studio, side by side. For example assign my program.cs file to the left hand side of the editor window and another view of the same file on my right hand side of the window?
 
10:44 PM
@SimonLanghoff Yes, you can do that. But you'll need two copies of studio open.
 
Ah well, it runs slow enough as it is :) but ty :)
 

« first day (418 days earlier)      last day (4524 days later) »