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: 1822.58 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-05-25
[15:30]<2uc>wilco: doing it excatly like that.
[15:31]<wyfaj>by making something a mbro you preserve identity etc.... by implementing iseriazable you're not going to get anywhere really in this scenario
[15:31]<mjzymygo>damieng_: http://www.nomorepasting.com/paste.php?pasteID=62738 <-- this shows how I get around your problem
[15:31]<wyfaj>unless you want to reinvent the entire wheel obviously :)
[15:32]<mjzymygo>wilco: if Buk wants to transfer an object by passing it by ref, he needs to serialize it for the server to deserialize so the server can then operate on the object within its own appdomain as if it was in the clients app domain.
[15:32]<wyfaj>no, /he/ doesnt have to serializae it.
[15:32]<wyfaj>serialize
[15:32]<wyfaj>it's all taken care of by the framework if you do it the right way :)
[15:32]<mjzymygo>wilco: so what would be your solution?
[15:33]<mjzymygo>wilco: have you even read Advanced .NET remoting that you advocate?
[15:33]<wyfaj>if you implement mbro you can simply pass your object to a "serverside method"... the framework takes care of creating proxies where appropriate and sending the relevant data
[15:33]<mjzymygo>wilco: your assuming a lot
[15:33]<wyfaj>eh, where am I assuming anything?
[15:33]<mjzymygo>that the .NET framework will operate intelligently on a potentially complex object
[15:34]<wyfaj>I suggest you look into MBRO's then ;)
[15:34]<mjzymygo>you can't assume that any object passed over temoting will auto-serialize into something appropriate
[15:35]<mjzymygo>*remoting
[15:35]<2uc>[Task:File=/u01/workspace/Projects/Poker/pServer/ServerImpl.cs, Line=64, Column=20, Type=Error, Description=Cannot convert from `biorg.poker.lib.IPokerClient' to `System.Predicate<biorg.poker.lib.IPokerClient>'(CS1503: Argument 1)
[15:35]<2uc>guys, whats with this problem when calling .Exists() frmo a list?
[15:36]<wyfaj>buk: do you have a shared library in which your interfaces are defined?
[15:36]<2uc>wilco: yeah
[15:36]<wyfaj>oh system.predicate<t>
[15:37]<wyfaj>Moridin8: http://msdn2.microsoft.com/en-us/library/system.marshalbyrefobject.aspx
[15:38]<wyfaj>then again, feel free to implement iserializable and do all of the serialization by hand... although in that case i would wonder why you wouldnt be using low-level sockets instead
[15:39]<sdnffdxdlld>hmmm since I'm working at home today i guess i should start working and stop playing games hehe
[15:39]<wyfaj>working at home sucks
[15:39]<sdnffdxdlld>depends on your working environment ... I work better with loud music and comfy seats
[15:40]<wyfaj>headphones :)
[15:40]<2uc>headphones are too loud too
[15:40]<2uc>at least when used correctly ;^)
[15:40]<sdnffdxdlld>I'm only aloud a single headphone in at work :/
[15:41]<wyfaj>seriously?
[15:41]<wyfaj>why's that?
[15:41]<sdnffdxdlld>and yer I have to have it right down so that no one else can hear it
[15:41]<sdnffdxdlld>so that people can shout me
[15:41]<wyfaj>heh
[15:42]<wyfaj>well people cant really hear my music when i have headphones on.. i think ive fucked up my ears enough already with music ;)
[15:42]<sdnffdxdlld>the directors are lookingat expanding our locations so that the dev team are in a quiet room but at the moment we share with sales
[15:42]<wyfaj>ouch
[15:42]<wyfaj>nice combination, heh
[15:42]<vjvrfd_fjsv>wilco youre not alone
[15:42]<sdnffdxdlld>yeah ...
[15:42]<vjvrfd_fjsv>smellyhippy i had the same a year ago
[15:42]<vjvrfd_fjsv>death without headphones...
[15:43]<vjvrfd_fjsv>but now i have my own "corner" with a big window, flowers, and quiet people arround
[15:43]<wyfaj>heh sometimes when im listening to my ipod and im in the train or something i can listen to both my music and the music of someone else's mp3 player
[15:43]<wyfaj>most people are so seriously going to fuck up their ears i think with that
[15:43]<sdnffdxdlld>now to find out if the vpn is setup right
[15:44]<vjvrfd_fjsv>what is the problem with it?
[15:44]<vjvrfd_fjsv>and what kind of vpn?
[15:44]<sdnffdxdlld>wilco, its the clubs that fuck my ears rather than headphones ;)
[15:44]<sdnffdxdlld>a virtual private one totaly_lost :P
[15:44]<wyfaj>im not so often in a club :P
[15:45]<sdnffdxdlld>my friends truck has been giving me tinitous recently too hehe, its hard to listen to drum n bass with the bass turned down
[15:47]<2uc>How the hell does that Exists function work? *grrr*
[15:48]<wyfaj>first get it working without remoting
[15:48]<2uc>trying to *g*
[15:53]<2uc>wilco: any help on that, I dont get it
[15:54]<wyfaj>what do you want to do?
[15:55]<2uc>Find out if an object is in a list
[15:55]<2uc>private List<IPokerClient> registeredClients = new List<IPokerClient>();
[15:55]<2uc>Definition of the list
[15:55]<2uc>return registeredClients.Exists(aPokerClient);
[15:55]<2uc>access to it, that doesnt work
[15:56]<2uc>aPokerClient is of the type IPokerClient
[15:56]<wyfaj>um
[15:57]<wyfaj>registeredClients.Exists((Predicate<IPokerClient>)delegate(IPokerClient x) { return (aPokerClient == x); });
[15:57]<wyfaj>something like that
[15:57]<wyfaj>dont worry, looks more complex than it really is
[15:58]<wyfaj>could rewrite it to something more verbose, like: registeredClients.Exists(MyHandler); .... private bool MyHandler(IPokerClient x) { x == this.aPokerClient }
[15:58]<2uc>argh ...
[15:58]<wyfaj>+return
[15:58]<2uc>registeredClients.Contains(aPokerClient); :)
[15:58]<2uc>much easier
[15:58]<wyfaj>:D
[15:59]<wyfaj>yea, Exists lets you do a more specific comparison... for example if you want to compare a certain property, or whatever
[15:59]<2uc>ok
[15:59]<2uc>time for some client hacking on the UI for login
[15:59]<wyfaj>ie. if you want to check if a pokerclient with the name "buk" exists, you could use that, and return something like (x.Name == "buk")
[15:59]<wyfaj>:)
[16:00]<2uc>wilco: right, thanks, I'll come back to you later ;)
[16:01]<2uc>ooops, 3pm already?
[16:01]<wyfaj>that slightly scares me
[16:01]<2uc>the time or my "warning"? ;^)
[16:01]<wyfaj>your warning
[16:01]<wyfaj>as for time, it cant go fast enough, at least not for another month :)
[16:03]<2uc>is a "SplashScreen" a dialog, a window or a widget?
[16:04]<wyfaj>a dialog, and thus a window :)
[16:05]<wyfaj>or actually it doesnt really need to be a dialog
[16:05]<wyfaj>could just use a (topmost=true, formborderstyle=none, etc) window that you close when for example the Application.Idle event is raised
[16:06]<2uc>uhm, I actually already decided against a splashscreen but come up with a loginscreen
[16:06]<2uc>nice picture on top with user/pass field below
[16:07]<wyfaj>in that case a dialog makes more sense
[16:08]<wyfaj>a modal dialog
[16:08]<wyfaj>or i guess dialog implies modal form :)
[16:08]<2uc>which sort of picture is the most easiest to display? png? jpg?
[16:09]<wyfaj>doesnt matter - i usually use png though
[16:11]<vjvrfd_fjsv>er.. anyone knows a good tutorial on reports for forms programming
[16:11]<vjvrfd_fjsv>?
[16:12]<djgsvy>hi







