IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-29
[12:40]<mracn>funny how this guy is on the same mental level as a 12 year old
[12:40]<zgzzcygnv>theyre both ignored
[12:41]<mracn>oh no, my world will no collapse
[12:41]<znzj>ooooooer, ignore. For the simple minded pathetic ones who can't stand reality :) Love it :D
[12:41]<mracn>you should see his website
[12:41]<zgzzcygnv>have fun asshats
[12:41]<znzj>of course, everyone knows that if you're going to ignore someone, you don't tell them. you just do it. It's like the mob and telling people they're going to be killed. :D
[12:41]<mracn>it's... well, it's like reading a comic book
[12:41]<znzj>Macke: I'm guessing what you *really* mean is "you don't want to see his website".
[12:42]<mracn>no, really, you should see it
[12:42]<mracn>makes for a good laugh
[12:42]<mracn>I don't have the url anymore though
[12:42]<mracn>and honestly, it was a while since I saw it, so it might have changed
[12:42]<mracn>but what I saw was pretty funny
[12:43]<mracn>Something about some wiki he'd coded, but stopped coding since it was nearly finished. The only things missing were... well, everything that makes up a modern wiki.
[12:43]<znzj>righty :D
[12:43]<mracn>and that was pretty much the status of any code he'd written
[12:43]<mracn>started, got tired after the first bug and then discontinued
[12:43]<mracn>but he's this awesome programmer you know
[12:43]<mracn>;o)
[12:44]<znzj>heh
[12:45]<znzj>anyhoo. Now I gotta try figure out how reflection works in C#/.net. I remember looking into it about 2 years ago, and found it to be absolultely utterly horrible. Well, compared with Java's reflection, which is just bliss.
[12:45]<mracn>What was wrong with it?
[12:45]<znzj>just difficult and messy to use from what I remember.
[12:46]<saxgnymnz>how can i know what radiobutton is actived in gtk#? if somebody has a piece of code or something i'm thankful
[12:48]<mracn>schneider: Check the Checked property of the radiobuttons
[12:48]<mracn>if you got them all in a container control, like a panel, you can quickly just loop through the child controls in the panel (ie, the radiobuttons) and check their Checked property
[12:50]<saxgnymnz>Macke i'll check, thank you and i'm sorry my bad english :}
[12:51]<mracn>np
[13:22]<zxw>Anyone has an article on writing Functor classes in C#? I mean, function objects that are bindable (for example, bind a BinaryFunctor and a ref argument to an UnaryFunction)?
[13:32]<ndn2jfv>private void dlgOpenFile_FileOk(object sender, CancelEventArgs e). How can I access dlg.OpenFile() from there?
[13:34]<rdyvv>i want to make a winform application that constantly reads from a network stream. should that be implemented with while(true) ?
[13:42]<ndn2jfv>amitt you'd have to run it in a separate thread or your GUI will be frozen the whole time. or you could use socket asynchrously
[13:46]<rdyvv>i did a button that events a function that has while(true) in it.i also have a text box that shows the string read from the stream. before i press that button i can see a message in the text box but not after. what do u mean socket asynchrously?
[13:47]<ndn2jfv>non blocking sockets
[13:48]<ndn2jfv>if you just need to receieve you could get away with a separate thread for a socket
[13:50]<rdyvv>so generally speaking everytime you want to make something in your app always run in the backgroud you'll have to make a thread?
[13:55]<ndn2jfv>amitt if you require GUI to be updated then yes, either by making a new thread explicitly or by using thread pools
[13:55]<rdyvv>ok thanks
[13:56]<ndn2jfv>if you want to do it asynchrously look up BeginConnect, BeginReceieve etc
[13:57]<vyzusdjvnev>why do i get an error on this?
[13:57]<vyzusdjvnev>// executes a command and returns the results as a DataTable object
[13:57]<vyzusdjvnev>public static DataTable ExecuteSelectCommand(DbCommand command)
[14:10]<vyzusdjvnev>whats wrong with this :(
[14:10]<vyzusdjvnev>return Convert.ToBoolean(ConfigurationManager.AppSettings["EnableErrorLogEmail"]);
[14:10]<vyzusdjvnev>it says can't implicity convert 'bool' to 'string'
[14:12]<vyzusdjvnev>anyone?
[14:13]<vyzusdjvnev>?
[14:14]<cjmgrug>no idea :p
[14:14]<vyzusdjvnev>:(
[14:15]<vyzusdjvnev>I did bool.Parse() no luck, I tried Convert.ToBoolean no luck, tried (bool) no luck =(
[14:19]<ndn2jfv>why do you want to convert bool to a string?
[14:22]<vyzusdjvnev>well im testing to see if i have MailServer true or false in the Web.Config
[14:25]<ndn2jfv>boolval.ToString(); or string s = boolval ? "true" : "false";
[14:25]<cjmgrug>oh.. am i missing something... bool value = true; Console.WriteLine(value.ToString());
[14:25]<ndn2jfv>or simply print it
[15:17]<vyzusdjvnev>anyone familar with mssql2005?
[15:23]<lcs>how to make a static class?
[15:23]<-- 2yd2nzy xrs fuyv>http://iownmymusic.org/ http://iownmydvds.org/ .")
[16:09]<cjmgrug>pks: public static myClass{ //class fields ..... } <<< is that what you're asking??
[16:09]<cjmgrug>coz i thought you knew c# inside-out :o
[16:13]<lcs>nope
[16:13]<lcs>no this one
[16:13]<lcs>;)
[16:13]<cjmgrug>oh, did i misunderstood your question?
[16:14]<cjmgrug>misunderstand*
[16:14]<lcs>so, it goesl ike that
[16:14]<lcs>when i try to do, what you wrote after namespace Something {
[16:14]<lcs>i get error that compiler expects enum, delegate or class
[16:15]<cjmgrug>public static class myClass{ //class fields ..... } // sorry :p
[16:15]<lcs>the same
[16:15]<lcs>i've trie4d all possible combinations ;p
[16:16]<cjmgrug>can you paste the sourcecode?
[16:20]<lcs>http://nomorepasting.com/paste.php?pasteID=65930
[16:22]<lcs>anyway you dont have to bother, i just wanted to make 'config fil' class static, so that it other classes would be able to access it whenever they need to
[16:24]<cjmgrug>yeah... just try making the static class 'public'
[16:25]<lcs>move the static code above the class Connector
[16:25]<lcs>and you will see what i was talking about
[16:26]<cjmgrug>ok.. from the 26 lines you've posted.. i think that error which you were talking about earlier is when the compiler doesnt 'see' the static class..
[16:27]<cjmgrug>so, you have to make it public.. whereever it is, whether outside the class Connector or not
[16:28]<lcs>nope
[16:29]<lcs>the code i have pasted does not compile, it breaks at the static keyword
[16:33]<y-gz>aren't static classes 2.0 ?
[16:33]<cjmgrug>http://www.nomorepasting.com/paste.php?pasteID=65931
[16:33]<lcs>oh
[16:33]<lcs>i-nZ: thats a good remark ;-)
[16:34]<cjmgrug>oh..i didnt know as i skipped the phase of .NET 1.1
[16:34]<lcs>i use 1.1 only
[16:34]<lcs>its too late to change to 2.0
[16:35]<lcs>at least for this project
[16:35]<y-gz>make it a singleton or something
[16:35]<lcs>i-nZ: a what?
[16:35]<lcs>is singelton something liek Application class?
[16:35]<lcs>like*
[16:36]<cjmgrug>http://en.wikipedia.org/wiki/Singleton_pattern
[16:36]<lcs>ah, sealed class
[16:36]<lcs>good to know that such things exist
[16:36]<lcs>thx
[16:36]<lcs>:)







