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.67 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-31
[22:47]<sdnffdxdlld>I often impliment my own stuff but in this instance I've done irc lib stuff before and just wanted to get on with the bot
[22:47]<sdnffdxdlld>meebys lib does everything I want and in a way i like
[22:47]<cjmgrug>i should prolly just go read the bloody RFC's :(
[22:48]<sdnffdxdlld>good place to start ;)
[22:48]<[dam]>usually the best approach for programming a protocol client.. is to use something like Ethereal and capture a real connection of a software.. and use it as a reference..
[22:48]<sdnffdxdlld>yeah ethereal rocks
[22:48]<rrd2uppnw>*cough* jabber *cough*
[22:48]<svlnvnz>wireshark :)
[22:48]<cjmgrug>the same meebey who's sitting there, below meadow ?
[22:48]<sdnffdxdlld>yeah
[22:48]<[dam]>with ethereal I've done a IRC client, a MSNP client.. HTTP and FTP client also..
[22:49]<sdnffdxdlld>i used ethereal alot in remoting debugging
[22:49]<cjmgrug>MSNP ?
[22:49]<[dam]>msn protocol
[22:49]<y-gz>where is this irc lib of meeby
[22:49]<y-gz>smellyhippy: link me
[22:49]<cjmgrug>i thought msn protocol was not documented..
[22:49]<sdnffdxdlld>SpikeLite google smartirc4net
[22:49]<slycnlyvn>Result: <b>SmartIrc4net</b> - C# IRC library : http://smartirc4net.meebey.net/
[22:50]<[dam]>http://www.hypothetic.org/docs/msn/index.php kinda old.. but works..
[22:50]<cjmgrug>oh damn, this is something like sniffing, eh?
[22:50]<sdnffdxdlld>yeah packet sniffing
[22:50]<cjmgrug>i see
[22:51]<[dam]>http://www.hypothetic.org/docs/msn/notification/example_session.php very usefull.. :P
[22:51]<sdnffdxdlld>with alot of common protocols ethereal will detect the protocol and present the data in a logical way for you
[22:51]<cjmgrug>btw, [DcM], is the protocol still the same for Live Messenger too ?
[22:51]<cjmgrug>oh cool
[22:51]<sdnffdxdlld>with everything else you can see everything about the packets
[22:52]<[dam]>don't know.. haven't used my client in months.. but... if there's changes.. they would be minor I presume..
[22:52]<[dam]>gotta go
[22:52]<cjmgrug>cya, thanks man
[22:52]<[dam]>cya
[22:52]<sdnffdxdlld>cya dude :)
[22:53]<cjmgrug>i see, smellyhippy.
[23:04]<rrd2uppnw>how come when u make a type nullable, u lose a lot of functionality ?
[23:04]<sdnffdxdlld>its wrapped inside another object
[23:04]<sdnffdxdlld>there should be a .Value or something
[23:05]<2fdrssnd>how'd you make it nullable... ?
[23:05]<rxrcr>2.0 feature
[23:06]<2fdrssnd>'?'?
[23:06]<rxrcr>int? foo = null;
[23:06]<2fdrssnd>si si
[23:07]<rrd2uppnw>will nullabletype.Value throw an exception if its null
[23:08]<sdnffdxdlld>value types cant be null
[23:08]<sdnffdxdlld>thats they why are wrapped in nullabletype
[23:09]<rrd2uppnw>why cant value types be null
[23:09]<sdnffdxdlld>because they store a value not a reference, a value cant be null but a reference can be
[23:10]<vynvyv>in other words: because
[23:10]<rrd2uppnw>http://www.nomorepasting.com/paste.php?pasteID=66055
[23:11]<2fdrssnd>i hate those paste-bin sites... make me feel stupid for not coming up with the idea first
[23:11]<rrd2uppnw>my quick and dirty so i can get values from db by clumn name
[23:12]<awjzdd>anyone got a handy method to convert '1,000,000' to 'one million' or '45,678' into Fourty-Five Thousand, Six Hundred and Seventy-Eight ?
[23:12]<2fdrssnd>printing checks?
[23:12]<awjzdd>damn right i am ;)
[23:13]<rrd2uppnw>any feedback on my crappy code/better ways of doing it... if not.. im gonna run with it
[23:14]<kjr>go steal the one that comes with your software the MICR folks should have given you
[23:14]<2fdrssnd>i'd help jaybuffe1 ... but i dont really know anything
[23:14]<sdnffdxdlld>jwormy: no but I'm sure there must be example code around
[23:14]<rrd2uppnw>bqmassey: its ok.. either do i
[23:15]<awjzdd>smellyhippy: actually i was just searching google found 1 method that uhh, doesn't work... and um just figured i'd sask here before i ventured into the typing myself.
[23:15]<sdnffdxdlld>yer
[23:15]<svzz[wjzc]>hey guys i really need some help, i'm about to lynch myself...look at that -> http://rafb.net/paste/results/yKWGi432.html that is all the Stored Procedures needed to fill one of my Form, the average times are the times it takes to map 1 Record to 1 object of my ORM and the total is the total time for the number of row... that's incredibly slow
[23:16]<kjr>jwormy: there isn't a cultural string formatter available?
[23:16]<svzz[wjzc]>so do anybody feel like giving me a couple of minute to check if i can optimize this a little bit?
[23:16]<kjr>StaZ[home]: ORM aren't known to be blindingly fast
[23:17]<-- svgvsdyzgjvr__ xr>/dev/null")
[23:17]<sdnffdxdlld>stazpost up the sql
[23:17]<sdnffdxdlld>staz: post up the sql
[23:17]<svzz[wjzc]>smellyhippy the SQL is fine
[23:17]<svzz[wjzc]>it's the mapping technique i'd say...
[23:17]<svzz[wjzc]>gimme a sec
[23:18]<kjr>StaZ[home]: what sort of backing store does the ORM use?
[23:18]<svzz[wjzc]>backing store???
[23:18]<sdnffdxdlld>the db :P
[23:18]<rrd2uppnw>how are your indexes ?
[23:18]<sdnffdxdlld>or file or whatever
[23:18]<svzz[wjzc]>the time you see there is calulated after the Reader has been opened
[23:19]<svzz[wjzc]>so has nothing to do with the SQL
[23:19]<rrd2uppnw>ok
[23:19]<sdnffdxdlld>staz post up the code
[23:20]<svzz[wjzc]>this is the main problematic one, http://rafb.net/paste/results/07PrBV61.html <- the one that takes Total : 12.076093190615 sec. for 5486 records
[23:21]<svzz[wjzc]>f you look at line 28, it iterates the 3 other SProc built before (on my chart)
[23:21]<svzz[wjzc]>3935 records for First FindAll(), 9859 records for second, 4196 records for third, that obviously must be the main problem
[23:22]<sdnffdxdlld>predicates arn't fast
[23:22]<svzz[wjzc]>so i should foreach() it myselft?
[23:22]<sdnffdxdlld>in fact one large numbers they are very slow
[23:22]<sdnffdxdlld>-e
[23:23]<sdnffdxdlld>you could use a Dictionary<T,U> as an index
[23:23]<sdnffdxdlld>that searches uber fast even on large numbers
[23:23]<kjr>should have a lovely constant search time
[23:23]<sdnffdxdlld>yup
[23:23]<svzz[wjzc]>you mean map on Dictionnary instead of List<> ?
[23:23]<sdnffdxdlld>yeah with the ID as the key
[23:24]<sdnffdxdlld>that way you get a tiny search time
[23:24]<svzz[wjzc]>Foreign ID as key you mean
[23:24]<kjr>smellyhippy: the only problem is that resizing a hash can be a lot of work
[23:24]<sdnffdxdlld>uhhh the unique id of the table you want to store
[23:24]<sdnffdxdlld>kog: yeah but it styill gives huge gains over .Find
[23:24]<svzz[wjzc]>smellyhippy how will that help me then? since i won't search by the key
[23:24]<sdnffdxdlld>-y







