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-17
[18:03]<zyccus>formatter.Serialize(stream, yourObject);
[18:03]<sdnffdxdlld>1 sec
[18:03]<zyccus>jefis: you don't - NetworkStream will do
[18:04]<sdnffdxdlld>0-12-466051-7
[18:04]<sdnffdxdlld>^^ matt
[18:04]<anpys>as i see, NetworkStream is same Socket, with little more functions
[18:04]<mjzymygo>http://www.amazon.co.uk/gp/product/0124660517/202-0686858-6117443?v=glance&n=266239
[18:04]<mjzymygo>smellyhippy: thanks
[18:04]<sdnffdxdlld>np
[18:05]<zyccus>jefis: not really... it wraps a Stream-like interface around a Socket
[18:06]<zyccus>jefis: Streams are important in .NET
[18:06]<anpys>what advantage NetworkStream againts Socket ?
[18:08]<zyccus>jefis: they're two different things - you can't really say one has an advantage over the other - that's like asking what advantage a Socket has over a String
[18:08]<mjzymygo>jefis: it takes Socket and adds functionality to it
[18:09]<mjzymygo>(see the constructor list)
[18:09]<mjzymygo>saves you having to do stream stuff yourself
[18:09]<anpys>ok thanks, by the way: async some thing, thats way to write code, that doesn't block something, write?
[18:09]<anpys>:)
[18:10]<zyccus>right
[18:10]<anpys>so it's better than sync
[18:10]<zyccus>no, it's just different
[18:10]<mjzymygo>difficult...and more complicated
[18:11]<zyccus>doing things 'synchronously' can make it easier to understand what's happening - so it can be easier to write synchronous code which runs inside a thread than async code which doesn't need threads
[18:11]<mjzymygo>translated: difficult+commplicated == Opened_CanOfWorms
[18:11]<zyccus>of course, most people can't cope with thread synchronisation, so they're screwed either way
[18:11]<mjzymygo>^^^ yeh... seen THAT mistake too often too
[18:12]<anpys>so i can write sync, and use threadings, and it will be something like async, write?
[18:12]<zyccus>jefis: yes, but dealing with async stuff requires this much brain power: <----> while dealing with threads requires this much: <------->
[18:13]<zyccus>at least at the learning stage
[18:13]<mjzymygo>erm... Synch: <---> simple-ASynch: <------> RealAsynch: <-------------------->
[18:13]<mjzymygo>simple = occasional progress bar... maybe a delegate fired
[18:13]<zyccus>real async = complex state machines?
[18:13]<mjzymygo>realAsycnH = anything above that.... ('Real' perhaps not best word)
[18:15]<mjzymygo>rikkus: I mean things get fun when you start to mess with thread context sharing mixed with ThreadStatic based singletons and multiple asynch clients accessing single resources.
[18:15]<gjrvcxnne>are there any digital imaging channels on freenode?
[18:15]<mjzymygo>and worse
[18:15]<zyccus>GoatCheez: you mean pr0n pictures?
[18:15]<gjrvcxnne>naw
[18:15]<gjrvcxnne>not at all
[18:16]<gjrvcxnne>like actual digital imaging.... compression, and discussion of imaging technologies
[18:16]<gjrvcxnne>like hdr images, rle, wavlet, tiff tags, etc...
[18:16]<zyccus>not AFAIK
[18:16]<gjrvcxnne>damn
[18:16]<gjrvcxnne>maybe I should start one
[18:17]<gjrvcxnne>oh, i got that thumbnail viewer thinggy to work...
[18:18]<gjrvcxnne>got a prog that can find all sub-images of an image file... it kicks ass lol
[18:18]<gjrvcxnne>now, I just need to integrate my difference viewer with it, and have it automatically find sub-images that don't match the main image
[18:19]<lyfuym-wjzc>GoatCheez :P
[18:19]<zyccus>one day, I'm going to track down the person who thinks it's a good idea to have the top level of each method (and stored procedure) use a big switch statement on a string parameter to decide what its behaviour should be
[18:19]<gjrvcxnne>then, i'll add web scouring
[18:20]<zyccus>and I'm going to take a switchblade and some string, and alter their behaviour
[18:20]<gjrvcxnne>ouch
[18:20]<lyfuym-wjzc>rikkus wtf did that?
[18:20]<sdnffdxdlld>lol @ todays DailyWTF ... I never use ass as a variable name :P especially not for assemblies ;)
[18:20]<gjrvcxnne>roflmao
[18:20]<gjrvcxnne>roflmao
[18:20]<gjrvcxnne>I ALWAYS use ass
[18:20]<zyccus>Liquid-Work: Rupang Desai
[18:20]<gjrvcxnne>(it was friday's also)
[18:20]<lyfuym-wjzc>omfg
[18:20]<gjrvcxnne>System.Assembly thisAss = GetExecutingAssembly();
[18:20]<gjrvcxnne>lol
[18:20]<lyfuym-wjzc>why would he do such a idiotic thing
[18:21]<gjrvcxnne>who what where
[18:21]<gjrvcxnne>i wanna see
[18:21]<lyfuym-wjzc>hmmmm
[18:21]<lyfuym-wjzc>I am going to be relocating
[18:21]<lyfuym-wjzc>:(
[18:21]<gjrvcxnne>huh?
[18:21]<mjzymygo>I've seen this recently.... comKissMyAss = ... yadda ...
[18:21]<sdnffdxdlld>hehe great minds think alike huh GoatCheez ;)
[18:22]<mjzymygo>late binding to a COM object...
[18:22]<sdnffdxdlld>I've seen someone leave "fucknuts" as a variable name by accidnet ;)
[18:22]<sdnffdxdlld>accident
[18:22]<gjrvcxnne>lol
[18:22]<mjzymygo>yeh...
[18:22]<gjrvcxnne>i thinki accidents in .net are appropriately called accidnets
[18:22]<mjzymygo>that wasn;t by accident though... it was demo code that accidently on purpose got used in prod...
[18:22]<lyfuym-wjzc>oh I have a daily wtf
[18:22]<lyfuym-wjzc>this dude I did contract work for
[18:23]<lyfuym-wjzc>compressed all his html into one line
[18:23]<lyfuym-wjzc>and said he does it because it parses faster
[18:23]<gjrvcxnne>no linebreaks AT ALL?
[18:23]<lyfuym-wjzc>no linebreaks
[18:23]<lyfuym-wjzc>nothing
[18:23]<lyfuym-wjzc>everything on one line
[18:23]<lyfuym-wjzc>I have proof of this
[18:23]<dzmzaivnz>Ouch.
[18:23]<gjrvcxnne>I would love to see the statistical data on the parsing speed for that lol
[18:23]<mjzymygo>Liquid-Work: sounds like a great obfuscation method...
[18:23]<mjzymygo></sarcasm>
[18:24]<dzmzaivnz>I've seen chunks of html like that in the project I'm on at the moment and it's maddenning.
[18:24]<dzmzaivnz>Or some correct spelling thereof.
[18:25]<lyfuym-wjzc>I was sitting there and going wtf
[18:25]<lyfuym-wjzc>and he was like
[18:25]<lyfuym-wjzc>I{ will show you it renders faster
[18:25]<lyfuym-wjzc>I was like "yeah whatever"
[18:26]<zyccus>here's one of the offending 'sub's: http://rafb.net/paste/results/chtmbJ20.html
[18:26]<zyccus>I've xxx'd out everything but the word 'Case'
[18:26]<zyccus>that's quite a short one :|







