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-31
[10:34]<d0`>ah
[10:34]<zgzzcygnv>http://nsis.sf.net/
[10:34]<d0`>thats nice
[10:34]<d0`>a friend asked me if he could include the whole installer when building it
[10:34]<zgzzcygnv>it does the download during install (with a download progress bar and stuff) instead of bundling the entire 22MB file with the program
[10:35]<lcs>uh
[10:35]<zgzzcygnv>uh what?
[10:35]<lcs>so thats not good if someone does not have internat access
[10:35]<lcs>;p
[10:36]<zgzzcygnv>well how else are they going to get your program in the first place?
[10:36]<lcs>on cd
[10:36]<zgzzcygnv>if your distributing via CD or something...then you already have plenty of space to put the .NET redist package in there
[10:36]<zgzzcygnv>so its a non-issue
[10:36]<lcs>yea, but you still need to install .net
[10:36]<zgzzcygnv>but seriously who fucking distributes crap with a CD?
[10:36]<zgzzcygnv>...........
[10:36]<zgzzcygnv>read what i just fucking wrote
[10:37]<lcs>*automaticaly* :)
[10:37]<zgzzcygnv>if you are using a CD, there is plenty of space to put the .NET redistributable package on the CD
[10:37]<d0`>yes
[10:37]<d0`>so we use a installer to bundle them togetehr
[10:38]<d0`>thx guy
[10:38]<d0`>s
[10:38]<lcs>:>
[10:40]<wgzmgr>AnarkiNet, chill, dude.
[10:44]<zgzzcygnv>i'm totally chill, yo
[11:07]<d0`>lol
[11:07]<d0`>AnarkiNet is like that :)
[11:07]<d0`>we all used to him :>
[11:34]<eezve|wjec>what's the purpose of the '@' i see at the beginning of regex patterns in c#?
[11:36]<cjmgrug>so, that they are considered as string literals
[11:37]<cjmgrug>http://www.yoda.arachsys.com/csharp/strings.html
[11:38]<lcs>hm
[11:38]<eezve|wjec>ta
[11:39]<lcs>how does it know that foo.bar(@"blah"""""", "blah") is foo.bar("blah\"\"\"\"\"
[11:39]<lcs>err.
[11:39]<lcs>how does it know that foo.bar(@"blah"""""", "blah") is foo.bar("blah\"\"\"\"\"", "blah") not foo.bar("blah\"\"\"\"\"\", \"blah")?
[11:40]<lcs>or it will give an error then?
[11:43]<cjmgrug>think simple. In a string, we can have escape sequences(for formatting text in console, for example) .. but regex expressions have blackslash characters in them too.. so, we have to explicitly tell the compiler that the regex string doesnt need to be checked for escape sequences. And that is done by preceding the string with an '@' . ie string reg = @"my\regex\str";
[11:44]<sz2yzgrzz>that works with any string in c#
[11:44]<lcs>CodeRun: sure, look at the example i gave
[11:45]<cjmgrug>i dont like the look of that example :p
[11:48]<lcs>i wonder wheter compiler first blindly preprocesses all @string into normal ones, and then looks for errors, or takes many combinations of possible @string expand, and chooses the one that does not produce the error (i'm at work, i don't have access to compiler)
[11:54]<lcs>damn, i had terrible problem waking up today
[11:55]<lcs>when the alarm clock started ringing i didnt know what is going on, after few minutes i've realized that its monday and i should goto work ;p
[11:55]<sz2yzgrzz>i don't understand your compiler statement/question
[11:55]<sz2yzgrzz>i slept on the fung wah bus and now I cannot go to sleep
[11:56]<lcs>sabiancra: look, @"something"" is expanded into "something\"", right?
[11:56]<sz2yzgrzz>no
[11:56]<lcs>no?
[11:57]<lcs>"Quote: \"" is the same as @"Quote: """
[11:57]<lcs>oh, there are two ""
[11:57]<sz2yzgrzz> @"something"""
[11:57]<sz2yzgrzz>would be
[11:57]<sz2yzgrzz>something"
[11:57]<lcs>so then it wont make problem :)
[11:57]<sz2yzgrzz>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_2_4_4_5.asp
[11:58]<lcs>damn, i am too sleepy
[11:58]<wgzmgr>anybody know anything about the IDE itself
[11:58]<wgzmgr>mine has decided to be lame.
[11:58]<lcs>i didn't notice double " :)
[12:02]<sz2yzgrzz>the IDE?
[12:02]<sz2yzgrzz>which IDE
[12:02]<sz2yzgrzz>VS?
[12:02]<rdyvv>is there a way to create a socket other than socket = tcpListener.AcceptSocket() ?
[12:02]<lcs>amitt: yes
[12:03]<vxznrmw>TcpListener is just a wrapper
[12:03]<vxznrmw>for the socket class
[12:03]<vxznrmw>System.Net.Sockets.Socket
[12:07]<rdyvv>i have: socketForClient = tcpListener.AcceptSocket(); how can i check if there is already a connection before i try to connect so i wont try to connect if there is already a connection
[12:25]<lyzxvxzddnz>greetings
[12:25]<lyzxvxzddnz>yo werdna
[12:26]<rdyvv>what is socketInformation?
[12:28]<sdnffdxdlld>SpikeLite msdn2 socketinformation
[12:28]<slycnlyvn>smellyhippy, SocketInformation Structure (System.Net.Sockets): http://msdn2.microsoft.com/en-us/library/system.net.sockets.socketinformation.aspx
[12:28]<wgzmgr>amitt, I'd imagine it's information about a socket.
[12:29]<rdyvv>i just want to create a socket so i can check if its connected. what information do i need to send?
[12:31]<sz2yzgrzz>amitt, there is no real reliable way of checking if a socket is ready
[12:31]<sz2yzgrzz>best way is just to catch and handle an exception
[12:32]<sz2yzgrzz>see, even if you checked the socket, the state could change between the time you check and the time you read/write from/to the socket
[12:36]<rdyvv>so if i have a situation where i want to check if there is a conenction active before i connect, handling the exception is the answer?
[12:36]<rdyvv>and whats wrong with this?
[12:36]<rdyvv>SocketInformation socketInformation = new SocketInformation();
[12:36]<rdyvv> Socket socketForClient = new Socket(socketInformation);
[12:37]<mrryffr>I'm not a C# dev, by any means
[12:38]<mrryffr>but AFAIK, in most languages, you can't use the same name for the object as the class
[12:38]<rdyvv>is not the sAME
[12:38]<mrryffr>oh, dif case for the s
[12:38]<mrryffr>nvm then
[12:39]<lcs>but you can have object with the same name as namespace
[12:39]<lcs>eg
[12:39]<lcs>foo f = new foo.foo();
[12:39]<sz2yzgrzz>you can do that but why are you not using TcpClient
[12:40]<rdyvv>i want to expirience with sockets
[12:40]<sz2yzgrzz>then just use sockets
[12:40]<sz2yzgrzz>don't use a wrapper
[12:40]<rdyvv>im trying to understand whats to proper way to check if a connection is present before trying to connect with sockets
[12:41]<rdyvv>its not if (socket == null) and also not if (socket.Connected)
[12:42]<sz2yzgrzz>Socket.Poll







