« first day (1968 days earlier)      last day (2974 days later) » 

12:40 AM
hi
@Amy i see you
 
@SteveG hi
 
@KendallFrey hey man
what are you doing today
 
normal saturday stuff
 
oh, i decided to say fuck everything, so i'm doing normal sunday stuff
 
vidya games and recovering from hockey
 
12:42 AM
i know, i know, i'm a rebel
i wish i could play hockey
real life hockey
 
yeah you do
 
yeah
 
uh huh
 
 
6 hours later…
6:28 AM
Good morning.
 
user47589
up dog
 
yo.
The usual. At work while Christendom sleeps.
 
 
2 hours later…
8:09 AM
o/
 
\o
 
_o>
 
9:04 AM
( ͡° ͜ʖ ͡°)
 
 
1 hour later…
10:16 AM
Croissants are hard. I should stick to programming :-/
 
programming apps have around 3 layers croissants have 128 layers :^)
2
 
10:31 AM
Good point.
 
Howdy
 
Howdy
 
I'm having some trouble copying a local db file to a devices storage
It's sqlite
Have you checked in synchronous conditions whether the same exception occurs? — Aydin Adn yesterday
Any ideas would be nice
 
And the file doesn't exist at that location? Or is it an access rights issue?
 
 
2 hours later…
12:11 PM
@Squiggle It should exist in the path I've specified as its in my solution's Database folder. Unless I've made a mistake with the path? How could I check if its an access rights issue?
 
hi
i whould like to know what is meanning of \\ inside String
 
ty very much
 
12:43 PM
hi @Amy
 
1:01 PM
hi all
did any one know a better reporting tool better than crystal report ?
 
@ShamseerKSmr Jasper Reports?
Hi!
 
decimal winRate = .4636M;
decimal result = Math.Pow(winRate, intTemp);
what do i do?? 'winRate' = cannot convert from decimal to double
nvm, il just use doubles
 
1:44 PM
@gdoron Hi. will you be able to share a little time for clearing a doubt in me?
 
@CrazyNinja thanks let me try
 
here is the story
I have a class called Parent and a sub class called Child
so, whenever I create a Child object, it will implicitly call the parent class constructor and it will create a Parent object as well.
so, the first question was, how to maintain a single Parent object for multiple Childs ?
This question was raised by my C# lecturer to me, and I saw that in C# we have static constructors something similar to static blocks in java. But it's still a constructor
when I showed this he asked, can you maintain two data sets, for the two Child objects but still having a single Parent object?
first of all, I just want to know, whenever I create a sub class, will it implicitly create a separate Parent object?
is this what really happens in underlying mechanisms in C#?
Child c = new Child();
 
1:59 PM
a factory kind of design?
 
@misha130 Please tell me this
8 mins ago, by Crazy Ninja
first of all, I just want to know, whenever I create a sub class, will it implicitly create a separate Parent object?
 
I'll just open up vs and write a console app to check
 
let me see myself
 
yes
it does
 
thanks for that point. i'll be back. gonna find out the equalant for Object#hashCode()
:29158118 not actually. This is just the interpretation of how the constructors are being called through the inheritance hierarchy
 
2:05 PM
The inheritance is wrong
Child doesnt inherit from parent
Parent contains child
So If you create a Parent object it should have a method to create children
 
Yes but Parent and child relation are not inheritance
unless you mean like base and derived
I am saying what I am saying based on the names you used
 
ok. it's just matter of Parent = Base and Child = Derived class
But I didn't the answer for my question
:(
 
I just did a console application with derived and base and made them output text when they run. The derived class inherited base. When I called the derived class constructor the base class constructor was also run as was shown by console output
it was first run and after that the derived class
 
@misha130 yes. That's the basic OOP inheritance
 
2:14 PM
and base object is created
whats the question
 
Hi guys..
 
13 mins ago, by Crazy Ninja
8 mins ago, by Crazy Ninja
first of all, I just want to know, whenever I create a sub class, will it implicitly create a separate Parent object?
 
Its just yes
 
I am not asking whether the parent constructor is calling or not. I know that it is calling. I am asking whether it creates a separate object in CLR
 
well base
hmm
 
2:16 PM
finally, you understood it :p
 
I created an XML document in Visual Studio and created schema. But in designer mode i couldn't locate the 'XML' tab and 'Data' tab
where should I find them?
 
@Sadiq have you tried resetting your views ?
 
It seems not
Console.WriteLine(this.GetHashCode());
Console.WriteLine(base.GetHashCode());
 
@misha130 how would you confirm it?
 
these two lines return the same hash
 
2:17 PM
@misha130 ah haa. This is what I was thinking about to check this
13 mins ago, by Crazy Ninja
thanks for that point. i'll be back. gonna find out the equalant for Object#hashCode()
 
yes you wrote that and I stole the idea :^)
 
@CrazyNinja I simply copied an example and put that in XML Editor for learning purpose. What views are you referring to?
 
@misha130 can you share your class through hastebin.com
 
@Sadiq I thought you are using Visual Studio and you can't find a overview window
@misha130 can you try something like this> (Sorry. I don't have Visual Studio in my laptop)
`Child c1 = new Child();`
`Child c2 = new Child();`
and inside the parent constructor
Console.WriteLine(this.GetHashCode());
@misha130 and show me the output
 
@misha130 thanks mate
 
np
 
As you can see in the snapshot i want the marked XML tab and Data tab.
how can i have them in VS?
 
2:50 PM
@Amy Hi
 
its odd that my code compiled there ninja
i just noticed i had class inside class due to copy pasting badly
welp that works
 
BTW; it is confusing me now
Cos, the child and parent has the same hashcode
 
It was always the same
 
so, C# doesn't create separate parent base objects.
 
might be compiler basically appends all the inherited properties to the class
 
2:59 PM
it just embed the methods and attributes to the child derived object
 
yea
this is a THEORY, not really 100%
 
But my lecturer taught us in the other way. :(
@misha130 what do you mean?
 
I dont know how the compiler was designed
i can't say 100%
 
I think, I should go for a SO question. I may not have time to read this book right now :(
 
3:17 PM
0
Q: Object creation in C# inheritance hierarchy

Crazy NinjaI have below two classes. When execute this line, Child myChildObj = new Child(); does this create separate two objects (Parent and Child) ? Or just a single child object which includes both the parent methods and attributes ?

 
4:13 PM
Here ninja I did a little experiment: hastebin.com/vitofixipi.vala
basically check if the addresses on the derived class and base are the same and they are
 
How goes it ladies
 
4:37 PM
hey hey
 
 
1 hour later…
5:47 PM
crickets
 
6:28 PM
Lol Moonraker
 
6:46 PM
Hi folks
 
7:27 PM
Hi Kub
 
8:01 PM
I got a problem with winforms, using list and list box, anyone want to help me? ;)
 
what ya have?
 
Actually I have list of 4 defined values, which i can additionaly add to this list in app runtime, and i want to that listbox show these values just after lauch, but i don;t know how :? How can i fill this listbox with my values just with application start?
 
in the constructor of the forum, create a method that will load the listbox
 
o/
 
\o
 
8:09 PM
:O insta-high five
love it
 
o/
 
\o
 
@kubawich you going to try that?
 
Yeah, i'm doind this and i got prblem :v As i remember i cannot create any methods inide constructor? or it just isn't working in my case :D so i tried to write listValues.Items.AddRange(Generate.LName.ToArray());
under Initialize component() but it ain't working anyway
it's so lame, but i'm using winforms for the first time, been always using console
 
@kubawich He meant to call the method from the constructor
 
8:13 PM
pastebin.com <- throw your code in there, let us see >:)
So hungry - I want a breakfast burrito
cause i'm a fatass
 
Just curious, why are you doing that in the drawitem event?
 
You mean Preprocess method?
 
Yeah
 
idk it's generated by visualstudio, so i used it
 
8:25 PM
Strange, one sec
 
8:35 PM
try that
I didn't add any functionality but putting the preprocess() method inside of hte drawitem event was your problem. DrawItem is used for custom drawing the control and it's aesthetics, not adding content to it.
 
Well, it's still not working :'(
 
Strange, works for me
Make sure you remove the event handler in vs for the drawitem event
go into the events tab in vs, click the dropdown menu next to the drawitem event and make sure there is no value there
then try again
Also, on a side note, overusing the static keyword is generally considered bad practise. You should declare a variable and use a property to access it instead
 
i mean u there are two lines in startgenerate() listValues.Items.Clear();
listValues.Items.AddRange(Generate.LName.ToArray()); And they're drawing items to listbox, but it's not working how i wanted, when i remove it and use ur method with call preprocess inside constructor, then it isint working
 
The only reason I added .clear was to stop it from repopulating the list endlessly
if you which to remove that go ahead :)
Just make sure you don't use preprocess within your DrawItem event
It won't work if you do that
Just adjust it to how you actually want it to work, I was meerly working with the logic you place in front of me and just created controls on the form to represent what I saw in your code
If you have more code that I didn't see that adjusts the behaviour, sorry :)
 
That's all my code, actually i want to maki it like this, i open app, and already see 4 predefined elements in my listbox at the start of app, i add another value to name, and lisbox is being reset and printing whole list so predefined values + this i added in app runtime
i think, that's all
 
8:49 PM
Well if that's the case you'll probably want to either use a Observable Collection or invoke the ui thread to refresh the listbox to the values you place in there. One sec, i'll quickly do up a dirty example
 
8:59 PM
I don't understand one thing, what you mean by "ust make sure you don't use preprocess within your DrawItem event"
 
I have a match database table and I'm looking for the amount of matches of 1 person that he has won in a row. Any advice?
 
@kubawich pastebin.com/Hi3vXT8v try that
Ok so basically the DrawItem event is for controlling the appearance of each list item
You don't want to add content to the control there
Check out that code, moved all the "adding" to one button, checks if the textboxes are valid
Addes and refreshes the list after eeach add
So remove the "Add surname" button completely, handle it with just the first button. Easier :)
 
Thank you Gabe :)
 
np
 
 
1 hour later…
10:15 PM
alright all
 
Hey, Can someone help me with a server issue I'm having? None of the solutions I can find are working
 
depends on the issue I guess :)
 
Fair enough. When I run my project locally with IIS, it works fine, but when I push the code to my server, and try to set up the site, I get a Parser Error and it says "Could not load type 'namespace.MvcApplication".

I've made sure that everything is named correctly, and tried all the solutions I could find.
 
10:31 PM
have you tried removing all the files and uploading the code again?
 
Several times
 
are you working with a website or web application?
 
web application
actually i think i just figured out my own issue
 
have you checked to see if the asp.net version on the server matches that of the asp.net version on your local machine
 
I guess sleep is all I needed. was up until 7am.
 
10:34 PM
what was it out of curiosity?
 
I'm not sure, but I just manually moved all my project files to my server, rather than with source control.
I have a feeling it wasn't building
 
maybe a web deployment package might be easier if you can deploy using them
 
11:15 PM
Hello , may i get help on this situation , i create a c# dll and i call it dynamically from another c# Application using this code :

string filename = "WinToastNotification.dll";
Assembly SampleAssembly = Assembly.LoadFrom(filename);
Type myType = SampleAssembly.GetTypes()[0];
MethodInfo Method = myType.GetMethod("NotiicationWithBtns");
object myInstance = Activator.CreateInstance(myType);

var parm = new object[9] { "الصلاة", "حان موعد صلاة العصر", IconPath, "SalatApp", method, "إيقاف الأذان","StopAthan","إغلاق","Close"};
i want to pass a callback method to a method on another dll(created with c#)
 
Oh Toast Notifaction I will ned that as well for my app
 
11:35 PM
what app you want to use it in wpf apps ? i can send you an exemple(verry easy) just send me you email on electronics844@gmail.com
 
yep windows universal ... i will need to set up a server for the push notifications
@Bilal thanks, but the examples from microsoft are enough for me on this topic ;)
 

« first day (1968 days earlier)      last day (2974 days later) »