IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-04-02 18:00:08
Channels: 41
Logged Lines: 6229042
Size: 1797.83 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-26
[09:27]<cjmgrug>within*
[09:28]<vufvuzn>zeroflag: ever heard of SQL insertion attacks? :)
[09:28]<cjmgrug>i think Andrew Troelson..
[09:28]<nnzjpfrr>I've never heared of these events... are they in .NET 2.0?
[09:28]<cjmgrug>yes
[09:28]<nnzjpfrr>cool.
[09:28]<nnzjpfrr>then it makes sense...
[09:29]<nnzjpfrr>to create 20 different overloads per form you create...
[09:29]<cjmgrug>?
[09:29]<nnzjpfrr>oh wait, that's a public event I presume.
[09:30]<nnzjpfrr>hmm, could actually work.
[09:30]<sdnffdxdlld>zeroflag: those have been in since 1.0
[09:30]<nnzjpfrr>wtf?
[09:30]<nnzjpfrr>I need to check my msdn!
[09:30]<sdnffdxdlld>and yeah thats the built in stuff i was talking about
[09:30]<cjmgrug>but this fails.. in the following scenario : I have a textBox which holds the users Name. And if he doesnt modify it at all, and clicks [save], the errorprovider gets fooled and never shows an error. That is because the validating() and validated() evernts never triggered
[09:31]<fyfuym-syfggag>zeroflag the have been there for a while
[09:31]<nnzjpfrr>we're talking about System.Windows.Forms, right?
[09:31]<fyfuym-syfggag>CodeRun yeah but there is a workaround
[09:31]<cjmgrug>yes, zeroflag
[09:31]<slzygc>i'm not sure what i'm lookin for.. I want to concentrate some strings together.. kinda like this: string message = ("Hello {0}", name);
[09:31]<fyfuym-syfggag>i have methods that returns the length of the text in the textbox
[09:31]<slzygc>if anyone can make sense of that
[09:32]<nnzjpfrr>sprink: string bla = "foo" + "bar" + "bla";
[09:32]<fyfuym-syfggag>string message = strina + stringb
[09:32]<nnzjpfrr>or "foo" + name + "bar";
[09:32]<slzygc>wow okay
[09:32]<slzygc>i'm an idiot
[09:32]<slzygc>thanks
[09:32]<fyfuym-syfggag>no your not a idiot
[09:33]<fyfuym-syfggag>you are just mentally challenged
[09:33]<slzygc>hehe
[09:33]<cjmgrug>i see, Liquid-Silence. But then doesnt it make your code clumsy.. like the validation is done at more than 1 places.. and any good programmer will shoot you, for that..
[09:33]<sdnffdxdlld>if you want to do more than about 5 concatanations then you'll want to use the string builder ... it's more efficient
[09:33]<nnzjpfrr>you are just used to c/c++. >_<
[09:33]<slzygc>exactly zeroflag
[09:33]<fyfuym-syfggag>CodeRun yeah but I dont use the validation methods
[09:33]<azyfm>string message = String.Format("Hello {0}", name);
[09:33]<fyfuym-syfggag>and I have a class that does validation
[09:34]<fyfuym-syfggag>it is not done in the use
[09:34]<fyfuym-syfggag>use = ui
[09:34]<slzygc>nice Arild
[09:34]<cjmgrug>i see
[09:34]<cjmgrug>is this class implementing the Singleton pattern, Liquid-Silence?
[09:34]<fyfuym-syfggag>yup
[09:34]<fyfuym-syfggag>I just woke up
[09:35]<fyfuym-syfggag>like 2 minutes ago
[09:35]<cjmgrug>heh
[09:35]<fyfuym-syfggag>soooooooooo
[09:35]<nnzjpfrr>oh these events...
[09:35]<nnzjpfrr>well... ok...
[09:35]<fyfuym-syfggag>give me time to get coffee, wank, shower, breakfast
[09:35]<fyfuym-syfggag>:P
[09:35]<cjmgrug>nah, i;m done.. thanks :)
[09:36]<fyfuym-syfggag>lol
[09:38]<cjmgrug>man.. patterns are amazing :)
[09:40]<lrmmdne>hi
[09:41]<sdnffdxdlld>CodeRun: it's always fun to go back to your old code and spot where you were using various patterns before you knew about them
[09:44]<cjmgrug>lol, i have never written a proper application ever before
[09:46]<sdnffdxdlld>:)
[09:46]<sdnffdxdlld>what ya working on now?
[09:47]<cjmgrug>right now, i've started writing my first app, which will remind me of things to do. Like a personal life, task manager :p
[09:48]<cjmgrug>i dont know how useful this is, but all it does it, store tasks and thier occurances like bdays, meetings etc and reminds me about them, x days earlier :p
[09:49]<zdzzd_zfzzzsjg>Yet another calendar. ;)
[09:49]<cjmgrug>true :p
[09:50]<vufvuzn>ricky_clarkson: though YAC might cause some confusion..
[09:50]<sdnffdxdlld>:)
[09:50]<vufvuzn>CodeRun: going to make it compatible with Exchange? ;)
[09:50]<cjmgrug>umm, didnt think of it..
[09:51]<zgzzcygnv>hmmm
[09:51]<zgzzcygnv>is there a "process persistance" app available?
[09:51]<zgzzcygnv>i had this idea earlier today while at work...
[09:51]<cjmgrug>actually, i want to complete it and put it up for code review, so that i know how crappy my coding is and then attempt to modify the style.
[09:52]<zgzzcygnv>essentially it'd be an app that would save the state of a process and any child processes
[09:52]<zgzzcygnv>(to a file)
[09:53]<sdnffdxdlld>hmmm interesting, would that be possible? can you dig deep enough into the OS to pull it off?
[09:53]<zgzzcygnv>sure
[09:54]<zgzzcygnv>i mean, its no deeper than what a memory defragmenter does, for example
[09:54]<zgzzcygnv>(the ones that actualy do what they say, that is :P)
[09:55]<zgzzcygnv>theres some extremely useful situations for something like this...
[09:55]<sdnffdxdlld>gaming ^_^
[09:55]<zgzzcygnv>for example, what if you're doing some lengthy cpu intensive thing (like encoding a long video) and you need to shut your computer down?
[09:55]<zgzzcygnv>you could just hibernate the process and then shut the comp down
[09:55]<zgzzcygnv>then wake it up after you've rebooted
[09:56]<sdnffdxdlld>or when you want everything the fuck outta the ram and cpu, for games
[09:56]<zgzzcygnv>yeah
[09:56]<cjmgrug>doesnt that happen with the normal Windows built in hibernate function too?
[09:56]<zgzzcygnv>CodeRun, yes
[09:56]<zgzzcygnv>but thats the OS doing it
[09:56]<zgzzcygnv>also
[09:56]<zgzzcygnv>this would allow you to arbitrarily control individual processes
[09:56]<zgzzcygnv>instead of the entire computer
[09:56]<sdnffdxdlld>CodeRun: yeah but thats sorta a system wide thing rather than single process
[09:56]<cjmgrug>yes
[09:57]<sdnffdxdlld>hibernate doesnt work on my laptop any more since the ram got upgraded :'(
[10:42]<e-2jfr>its a windows service, so its hard to debug
[10:42]<e-2jfr>i dont tihnk i can "step" through it cuz i cant just run it
[10:43]<e-2jfr>Isnt there somehow i can get it to tell me what object thats null?
[10:43]<cjmgrug>half the time, i'm friggin adjusting whitespace in VS2k5!
[10:44]<sdnffdxdlld>E-bola, dont make it a service until after debugging







