« first day (844 days earlier)      last day (4106 days later) » 

2:00 AM
18< i > 21 id say, right?
 
@dotToString wrong
@CCInc right
 
OK then
 
this. is. stupid
 
@dotToString LOL
 
there are 72293812 people under 18 in the US as of 2010
 
2:00 AM
back to c# for #@$% sake
 
@dotToString LOL
@CCInc When was that count taken?
 
that means that there are 4,252,577.1764705882352941176470588 people per age
 
wow
my equation makes 0 sense
 
@dotToString thats a lot man!
@dotToString what equation?
Im good at SOME types of math
Im CCIncs personal math assistant. LOL
 
18 < i < 21
shoulda read
 
2:02 AM
@dotToString oh yeah. In chat those typos are common
 
@JABFreeware 2010
 
@CCInc screw 2010
 
Im not a math anything.
i mean i have solved some eulers....
 
2010 is history we are in 2013
 
That means there are about 85,051.543529411764705882352941176 people per state per age
 
2:03 AM
i have two records in one database....i want to copy those two records from that databse to another database....
how to do that
 
any project euler or Sphere Online Judge participants here?
 
@dotToString you bet! What are those, again?
 
alright now then
You live in MO says your profile? @JABFreeware
 
LINQ
query your table for the records
 
@CCInc Yes
 
2:05 AM
then use an update with the values gained from the query to your second database
 
so you know I'm less than 18 and live in MO
 
I am going to assume you are older than 14
 
Im in suburb on STL
 
so that means according to the 2010 MO census,
 
told you you guys were neighbours
 
2:05 AM
thats all everyone else here should know @CCInc. I dont release my personal info to just anybody
@drch yeah were friends. Why did you think that?
 
there are 12,954,254 people
 
@CCInc Oh no, I'm exposed! LOOL
 
@JABFreeware i meant you and dottostring
 
which means that's 4,318,084.6666666666666666666666667 people per age
 
@drch no, never met him until tonight
you really statistics or something?
!
 
2:07 AM
DIVIDED by 3531905 square miles in the entire state..
 
@CCInc GOSH! This is freaking stupid
 
Which means there are ABOUT 1.2225936616830482888601665862096 people per age per square mile
which gives you pretty good odds if I do say so myself
 
@CCInc odds of what?
 
somebody not finding you
 
@CCInc yeah
@CCInc you know there is this cool program
 
2:09 AM
@CCInc you on the other hand just took all the info necessary to determine the land distribution of 14-18 year olds in MO.
which means youre probably going to end up on a list somewhere
 
where you put in someones photo and its crawls the web looking for a skype or facebook picture, etc
 
huh @drch? It's a census, I'm a US citizen, shoudln't I have access to it?
 
even public records etc
 
that's great
but I don't think you would give away your photo...
 
@CCInc Never used it
@CCInc not to most people. You?
 
2:10 AM
.wait
i read that wrongly
I would not, no
althought I will admit JUST TODAY I gave my photo away
 
@CCInc not to me
 
not to you no
 
@CCInc facebook?
 
I'll tell you the specifics elsewhere if you like
NON NONONONOTJONWETiopnj4awt NO
NO
I hate social media
 
@CCInc me too, I dont use it
kinda a waste of time isnt it?
 
2:13 AM
It is indeed.
 
sorry guys
had to put away groceries
 
@dotToString Me and CC Inc are going to guess your age
@CCInc
 
do it!
 
I guess around 27
 
holy fucking shit
 
2:14 AM
I AGREE
 
wait wait
 
@dotToString LOL
 
you looked at my profile
 
@dotToString duh
 
C# convo anyONE!
asked about dynamic keyword
any simple examples of its use
 
2:16 AM
@dotToString Dont know about the keyword
 
OH OH OH IT WAS IN THE BOOK
 
@dotToString This is what I was talking about
 
It lets the compiler determine the type at RUNTIME, unlike the var keywrod which determines the type at COMPILE time
 
@CCInc really? Havnt read taht yet I guess
 
It was near the beginning I think
 
2:17 AM
@CCInc yeah that sounds right
@CCInc Where are you in it?
 
page 265 I think
 
so that means what?
 
well
 
i can import methods at runtime from a DLL outside of my project?
 
uhh
 
2:19 AM
@dotToString yes thats right
like the user32.dll
which has all sorts of goodies
 
why not just add a reference?
 
@dotToString You can only reference managed dlls
 
Oh
i see
another click in the brain
 
@dotToString He seems pretty smart doesnt he @CCInc?
 
CLICK
 
2:20 AM
I meant that
 
He's no user--- I'll say
so yeah I guess he is smart
 
@CCInc LOL yeah
 
Technically anyone who is not a user--- is smart
 
@CCInc user--- is that dumb?
 
well he seems not to get things
 
2:23 AM
@CCInc yeah he doesnt even try half the time I think
 
nope
OH @JABFreeware you don't know this
but it seems he moved languages
 
@CCInc to what, basic?
 
LOL
I can't find the quote
 
@CCInc have you seen him much?
 
!back again
 
2:27 AM
@dotToString where were you this time?
LOL
 
in Lounge<C++>, Jan 24 at 23:56, by DemCodeLines
You need PHP to get server functionalities going.
 
getting my baby in here with me to cuddle
 
@dotToString you male or female?
 
male
 
Uhh @JABFreeware ...
 
2:30 AM
@CCInc what?
 
There are NEVER NEVER EVER ANY FEMALES ONLINE
 
@CCInc LOL there are
 
with the exception of Ellie, who si a "GIRL" (guy in real life, they say)
 
you saw one yourself
 
Well I dont see how that matters in here......
 
2:30 AM
@dotToString When this room is active, alto
 
@dotToString Some guys here say a GIRL == guy in real life
 
wow
pathetic
in a c# chatroom....
 
well...
 
@dotToString yeah
 
anyone here working on some interesting progs
 
2:31 AM
no
 
I am designing a Mary Kay Inventory program for my fiance
pretty fun. Basic, really, but for me it's a big step
I disabled the border in a winform and allowed dragging the form by holding the mouse on the form backround :)
Black, pink, white theme
Having some issues with the database design as I am a noob
 
I'm not bad at SQL if you ahve any specific questions.
 
well, my issue came to being overwhelmed by the sheer amount Different items I needed to catalouge
I mean, make-up and accessories have MANY categories as I found out
So, having a category table and a item table wasnt enough to convey all the details
 
Sorry, I'm no good at DB DESIGN, just sql itself :)
 
so, i further subdivided it to have a subcategory table
which worked great all the way up to lipstick.
just didnt want a bunch of NULLs in my columns
I wanted a concise design so as to be easy to search through simple LINQueries, look appealing (full tables, few or no nulls)
i guess i will just use a simpler Category to Item approach for now
I will just make it up in my C3 code!
C#
Being pretty comfortable with LINQ, am I technically partially informed as to SQL?
I have VERY limited SQL
I mean, the DB design aside, I can create SP and query
Is SQL (aside from DB design) very complex beyond that?
Ok. Well I'll leave that subject
 
2:49 AM
@dotToString plaese.
I'm feeling weird right now
and didnt even read the above
 
sorry
User32.dll
earlier i was told it had some cool stuff
any good examples?
@JABFreeware :P
 
@dotToString GetWindowPos
ANY WINDOW that is
@dotToString thats just one of many
 
thats cool!
but as im on a 64 machine with win7....it seems it is dangerous...
 
No
 
@dotToString its not
 
2:55 AM
Don't be scared of Unmanaged PInvokes
 
seen alot of Dont Do This or your core will crash,
 
DLLImport uses the C# marshaller
sorry, the NetFrame work marchaller
@dotToString Umm..no...not with dllimport
VERY RARE if you are smart
more than likely it will crash your program
and thats all
 
PtrInt instead of int....
 
@dotToString yes...
crash your code most likely
 
PtrInt is used for compatibility with the Unmanaged framework
 
2:58 AM
there are cases where you can crash the computer but its rare
 
which I think microsoft uses C++
 
istead of passing an int to an int like paramater you pass a PtrInt
 
@Inisheer hi!
 
is that right?
 
Hello
 
2:59 AM
yes @dotToString
@JABFreeware Do you not know @Inisheer?
 
so anytime i use unmanaged libraries I will be using reference equivelent types for my value types
Hello Inisheer!
 
<asks same question>
 
@CCInc no
you?
 
Yes.
 
3:29 AM
what happened to this chat?
 
Don't worry, I'm back.
 
i got a browser error and evertime i try to link to this room or the chat index i get sent to area51
 
The site went down
 
only reason im here now is from my phne being signed on already
i see. thanks lol
i just went out here for a cig and my phone was working with it, so i thought it may be a browser issue
so bool isnt supported in unmanaged? so whats its IntPtr equivalence
 
BLACKOUT
ALL OVER THE FLOOR
 
3:33 AM
or is a form like bit used?
javawarrior in c# room? lol turncoat?
o-be-kay-be
 
4:10 AM
Hey chat is back
Anyone here know ASP?
 
4:26 AM
@CCInc im actually trying very hard at work not to have to learn it (classic ASP)
just got a StackOverflowException cause im a noob
 
4:50 AM
i know very little asp
why
 
5:22 AM
dotTostring :P you got it !
@ALL Good morning guys!
  WebForm2 newform = new WebForm2();
             Label lblthis = newform.FindControl("lblone") as Label;
             lblthis.Text = ("This is a instance Method");
 
5:58 AM
@Gary are you there?
 
yeah what's up?
 
hey I have the default partial class.. and a sample class i created. Now i added a label control on the page , how do i access it in the sample class ? If i change its Text property i recieve "NRE" !?
 
what type of application is this? WinForms, ASP.Net application, WPF?
 
 delegate void del();
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Testdelegate.Main();

        }


    }
    public class Testclass
    {
        public void instancemethod()
        {
         WebForm2 newform = new WebForm2();
         Label lblthis = newform.FindControl("lblone") as Label;
         lblthis.Text = ("This is a instance Method");
        }
    }

     public class Testdelegate
    {
lblthis.text throwing null reference exception
 
I think the reason this is happening is because the label is created in the WebForm2 class, meaning Testclass and Testdelegate aren't aware of the textbox, so there is a couple of workarounds:
first you could make the other class return a string and assign that to the label.Text property, but I don't think you'll want this, the other way is to use the ref keyword and pass the instance of the textbox to these classes
 
6:07 AM
good moring America,india,rest of the world
 
there are no textbox ..only labels i have to make this work
Morning @Beginner
 
public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Testdelegate.Main(ref this.lblone);

        }


    }
    public class Testclass
    {
        public void instancemethod(ref Label lbl)
        {
         lbl.Text = ("This is a instance Method");
        }
    }

     public class Testdelegate
    {


        public static void Main(ref Label lbl)
        {
            Testclass sample = new Testclass();
sorry I meant Label, not textbox.
something like that should work
 
wow..@Gary that would do it! thankx!
 
made a slight update, Testdelegate.Main(this.lblone); .. needs the ref keyword too

Testdelegate.Main(ref this.lblone);
 
Done :)
 
6:11 AM
does it work? I only worked it out in notepad and didn't test it lol
 
checking it gimme a minute
 
cool
 
did you check that delegate declared at the top..just modifyin it ..with arguments
 
ah that might not work then, missed that.. hmm
the problem is, the label is created in the WebForm2 class, that is the only class that is aware of it, that's why you are getting the NRE. Can I ask what it is you are trying to do, there may be a better way of working it
 
yea changed it and its working !
 
6:15 AM
ah right oh well haha
 
hey
anyone here uses mvc?
 
hey
yup :)
 
I'm getting annoyed
I need help...please
 
what's up?
 
I'm new to it... I did some tutorials and stuff...
 
6:16 AM
Hi anybody uses WCF HEre
 
@Bhuvan I've used it a bit, but I'm more used to the old ASMX web services
 
So basically I want to create a website that will have many different roles and these roles can only access certain features in the website. So the whole website is intended to allow a user to go in and add a template so that it can brand an incoming email...
 
but @Gary
 
yeah?
 
6:18 AM
I've set up part of the DB and I want to do this in MVC but it's too annoying lol. It's easy to set up the basic stuff like edit/delete/view but now when I need to mix things up it gets hard. So example I have users that can be put into a User Group... How do I get this linked up
 
delegate void del(ref Label lbl);
 
@codebrain ah I see, the Main method, is the starting point of the application, before any control is initialized so the Textbox doesn't exist yet
 
public static void Main(ref Label lbl)
:P thats label ..Rofl
OMG..
 
@BeginnerCoder have you installed the Membership Provider etc yet?
sorry again, it's 6:21 here and still not slept, Label, label, label!! ;p;
 
Ok here's a better example... I have a customer who can be put into a group (either Reseller or Service Provider) so on the customer screen there's a field called "CustomerTypeID", and in the CustomerType table I have CustomerTypeID int, Description varchar(50). How can I put a DropDown list to show what's in the CustomerType table and then write that ID back to the Customers table in the CustomerTypeID field?
Yes Gary, All that is ok. I'm not too concerned with the membership part. I've learnt how to do all of that online. I'm struggling with the above
 
6:27 AM
@BeginnerCoder it's a bit difficult to help without knowing how far along you are etc I can only really point you in the direction of tutorials or tell you how I work. Basically what I do, is create a database, then translate that into Models, which should be pretty similar to each other, then write a data layer / tier, which creates all your CRUD methods (this could be integrated with your controller, but I prefer separation) and then use your Controller to invoke these methods
 
Ok that's cool. I've just started a mock up project so I'm really just testing stuff out...
@GaryConnell do you have a sample project that I could see?
 
if you could use this as a start point
http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/examining-the-edit-methods-and-edit-view
 
@Beginner if i come to africa , i ll take you to lion safari and kick you out of jeep in the wild..!!
 
I know it's an edit method, but it should be quite easy to work out for Create
Basically what you will do, most examples work with one Model, but you can do whatever you want, so if you pass back CustomerType as a parameter, you could read the ID property, create an new instance of a Customer model object and pass the id into that Object... i'll write some sample code, gimme a few minutes
 
lol why codebrain
thanks Gary
 
6:36 AM
cz @gary was helping me and you messed em all :P
 
Sorry
:-(
But I bet if you did come to Africa and took me to a lion safari and kicked me out of the jeep I would be alive with out a scratch... dem lions are my dawgs!
 
lol ..:D I thought you would say you ll kick out those malnutritioned lions :D
 
[HttpPost]

public ActionResult Add(CustomerType _CustomerType)
{

	if(ModelState.IsValid)
	{

		Customer _Customer = new Customer;
		_Customer.CustomerTypeId = _CustomerType.Id;
		db.AddToCustomers(_Customer);
		return View();

	}

}
this is extremely simple, but you get the basic idea
db is obviously the db context and you would obviously add more to _Customer than an ID but just showing even through the method uses one Object as a parameter, doesn't stop you working with others
@BeginnerCoder ok, so can you give me a brief outline of what you are trying to do, because with that error I realised you are trying to set the text property of a label in the Main method, but the Main method is the entry point of the application, so no controls have been initialized yet, so don't exist
 
Gary you mean @codebrain sleepy u is
 
yup haha, sorry again :(
 
6:44 AM
looool
 
:P it workx..just a sample code to explore my knowledge @Gary
 
my brain is a bit fuzzy working on WPF multi-threading, came here for a rest haha
 
I'm feeling so siccck, I wanna go hommmeeee
I wish I knew what you knew in programming
 
@codebrain it works?
 
I could do stuff so quick
 
6:45 AM
yea it works :P
 
Build me a project :D
 
still its fine with that !
 
You can do it quick quick :-D
 
@BeginnerCoder most of what I know is due to boredom lol
@codebrain weird, even when the label is passed as a parameter?
 
lol...!Whatever if the code works..yeahoo
 
6:47 AM
I get so annoyed when I can't figure things out and even when I google some people explain so daftly
If daftly is a word lol I need a teacher :(
 
@codebrain if you want to mess about a bit more, passing a Label isn't really efficient as you pass all the properties with it, so you could change it to String and ref the Label.Text property directly, not sure what would happen lol
 
Does stackoverflow have a chatting application? Was thinking of building a desktop IM for stackoverflow I could learn so mucccch
 
eh ..maximum there ll be a error , lets f**k it!!
 
@BeginnerCoder daftly is a perfectly good word :) if you have skype you could add me if you like, if I'm always on there, just in case you get stuck :P
 
6:49 AM
@Beginner : SO introduced it a decade back :P
 
@codebrain well it would be more efficient on memory as you are only passing a string instead of a whole object
 
I will need to install Skype. Give me your ID in the mean while :P
I hope you don't get annoyed with me:D
 
very simple garyaconnell haha
 
@codebrain oh my bad :D
 
@Gary , in .net a object size is minimum 4 bytes max 12 bytes..
 
6:51 AM
lol cool will install it on WORK pc :D ahahha admin rights! yes!! my old job i never had admin rights
 
i ll try that !
@Beginner you should install style cop and check your buggy dwagy code
 
@codebrain really? I mean if I had say a very complex object like Movie, where I listed Title, Director, list of producers, like of cast etc... filled that with data, that has to take up space in memory does it not? :S
 
lol what
 
i mean a basic object may be, unless if you dump your wardrobe into it xD @Gary
@Beginner :P
 
6:55 AM
haha yeah that's what I mean, a label has lots of properties, like font, background colour, etc, and if you pass that using ref, that all gets moved around too... I'm honestly not sure as I've never tried and I would think there would be very little difference in performance, but as you said "let's fuck it" :P
 
wow internet is slow here
 
I have always found the same when downloading and installing skype lol
 
windows 8 sucks!!!!
 
@codebrain yeah that line that says instance data for the type, doesn't that mean property data
@BeginnerCoder you think so? I love it :)
 
6:59 AM
:P yeah ! knowledge sharing
 

« first day (844 days earlier)      last day (4106 days later) »