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-08-01
[17:44]<sdnffdxdlld>damieng_: I want a formatter that will colour exactly like in VS2k5, wilcos doesnt colour classes (i've noticed alot dont)
[17:44]<rwyfcygs>One of the uses for this was generating classes from old VB3 UDTs and serializing them to disk flatfiles (which is harder than it looks because the VB3 and VB6 compilers pack them at different byte offsets)
[17:45]<rrd2uppnw>smellyhippy: did you get your blog up ?
[17:46]<sdnffdxdlld>I just went with blogspot for now
[17:46]<rrd2uppnw>smellyhippy: link me
[17:48]<rwyfcygs>Anyway, you don't need to implement ISerializable to mark the class as [Serializable] and get a byte array from it, do you?
[17:49]<sdnffdxdlld>jaybuffe1: I will when i get home this evening
[17:49]<sdnffdxdlld>when I have my code pasting sorted ;)
[17:50]<rrd2uppnw>smellyhippy: ok
[17:54]<gjrvcxnne>bwuhahahahahahah
[17:55]<gjrvcxnne>testing out my l33tness now lol
[17:55]<rwyfcygs>How'd you do it, Goaty?
[17:56]<rrd2uppnw>smellyhippy: how did u know
[17:56]<sdnffdxdlld>;)
[17:56]<sdnffdxdlld>that might not be ready tonight but atleast its around now :P
[17:57]<gjrvcxnne>it's all with marshalling
[17:57]<gjrvcxnne>bah
[17:57]<gjrvcxnne>fuck
[17:57]<rwyfcygs>Urrr
[17:57]<rwyfcygs>Does it have to be an existing format, or can you just go wild?
[17:59]<sdnffdxdlld>hmmmm stupid DTP and its stupid colouring
[18:01]<sdnffdxdlld>I'd like to know how that'd help change the background colour of a collapsed datetimepicker ;)
[18:01]<drdyrrr_>well nobody's told me my blog post about WeakReference<T> is totally fubared yet...
[18:01]<azyfm>Your blog post about WeakReference<T> is totally fubared
[18:01]<rrd2uppnw>damieng_: wheres your blog
[18:02]<drdyrrr_>http://www.damieng.com/blog/
[18:03]<gjrvcxnne>my method was thwarted by StructureToPtr not being able to do value types
[18:04]<drdyrrr_>lol
[18:04]<azyfm>uhm, your RSS feed is invalid or something?
[18:04]<drdyrrr_>thats because a value type is allocated on the stack...
[18:04]<drdyrrr_>you can't pass a pointer round to the stack - thats dangerous!
[18:05]<rwyfcygs>Could you get a pointer to a boxed type?
[18:05]<gjrvcxnne>yeah, i guess that'd work
[18:05]<rwyfcygs>You could presumably pointer the box (which is heap)?
[18:05]<drdyrrr_>Arild, feedvalidator says it's fine.
[18:06]<drdyrrr_>what error you getting?
[18:06]<azyfm>RSS Bandit can't find any feeds
[18:06]<azyfm>whether I give it the page URL or the RSS feed url
[18:06]<rwyfcygs>smellyhippy: After your crack at DTP, I've read the Pantone page on WikiP and decided that they are EVIL
[18:06]<gjrvcxnne>bah lol
[18:06]<rwyfcygs>How else do you get to be a multibillion dollar company selling LITTLE COLOUR CARDS
[18:06]<gjrvcxnne>it also fubars because of sizeof not being able to size as well
[18:06]<gjrvcxnne>bah
[18:07]<cjmgrug>quick question : Anyon know how to modify the Font size of a button's text at runtime ?
[18:07]<cjmgrug>anyone*
[18:08]<gjrvcxnne>button.Font?
[18:09]<cjmgrug>in Button.Font, all properties are only implementing the 'Get' block
[18:10]<azyfm>button.Font = new Font(...)
[18:10]<drdyrrr_>weird
[18:12]<rwyfcygs>Really? I've just looked and it looks like Button gets it's Font property straight from Control?
[18:12]<cjmgrug>thanks Arild..
[18:14]<drdyrrr_>Arild, I just downloaded RSS Bandit and tried it worked fine with http://www.damieng.com/blog/Rss.aspx
[18:14]<rwyfcygs>Or specifically, button.Font = new Font(button.Font.FontFamily, newSize);
[18:14]<drdyrrr_>RSS Bandit 1.3.0.42
[18:14]<azyfm>blah, I think I know what it is
[18:15]<rwyfcygs>Goat, how did you do that binary serialization?
[18:15]<drdyrrr_>Worked fine with just http://www.damieng.com/blog/ too
[18:16]<gjrvcxnne>man, you all SUCK HARDCORE
[18:16]<gunzyffrvravycs>I have a question about datagridview can I ask it here?
[18:16]<gjrvcxnne>http://www.c-sharpcorner.com/Language/serializingObjectsinCS.asp
[18:16]<gjrvcxnne>works like a friggin CHAMP
[18:16]<azyfm>got it now, damieng_
[18:17]<gjrvcxnne>no implementing interfaces, just plain works
[18:17]<gjrvcxnne>and it's 8 lines ... 4 to serialize, 4 to read
[18:17]<gjrvcxnne>wait, 5 to read, my bad
[18:17]<gunzyffrvravycs>lol
[18:17]<sdnffdxdlld>buwahahahahaha you will bend to my will
[18:18]<gjrvcxnne>it works so bloody well i'm like dumbfounded
[18:18]<gjrvcxnne>it's SOOOOOOOOOOOOOOOOOOOOO simple
[18:18]<gjrvcxnne>like WTF
[18:18]<rwyfcygs>Well duh
[18:19]<rwyfcygs>Didn't I say above that you didn't have to implement ISerializable to mark it as [Serializable]?
[18:20]<azyfm>ISerializable is only for when you need more exact control over the serialization process
[18:21]<gjrvcxnne>just saying that no one suggested using a binary formatter, and everyone suggested i do something to all of the classes I use
[18:21]<drdyrrr_>arild, :)
[18:21]<gjrvcxnne>damieng_: it'll be easier to add serialisation support to your own objects than trying to write your own binary serialization system
[18:22]<gjrvcxnne> damieng_: if it was easy to store a class to disk in binary form with no changes to the class don't you think .net would do that instead of serialization?
[18:22]<drdyrrr_>GoatCheez, yeah mark them as serializable
[18:22]<gjrvcxnne> awilkins: Just implemented IPersistible on everything ; originally it was for XML, but I worked out you could attach multiple serialization engines to it
[18:22]<gjrvcxnne>no, don't
[18:22]<gjrvcxnne>i didn't do ANYTHING to my classes
[18:22]<gjrvcxnne>well, all is said and done now tho lol
[18:22]<gjrvcxnne>and i'm uberhappy
[18:23]<rwyfcygs>I think we were confused by that stuff being on page one of the Serialization documentation in MSDN..... :-P
[18:23]<gjrvcxnne>lol
[18:23]<rwyfcygs>Must've assumed that you' already decided it was unsuitable :-)
[18:24]<drdyrrr_>in general you don't have to do much. I've mostly worked with IXmlSerializable.
[18:24]<rwyfcygs>I've poked around in there more than average because of the aforementioned need to support a legacy apps crusty old binary flatfiles.
[18:25]<gjrvcxnne>u shoulda seen the unmanaged mess i was GOING to use lol
[18:25]<gjrvcxnne>(didn't even work for value types)
[18:25]<rwyfcygs>sizeof can be a bitch like that
[18:25]<gjrvcxnne>yeah... stupid soab... why doesn't it work like the C macro damn thing
[18:26]<rwyfcygs>I recall mostly doing that sort of thing with switch
[18:26]<gjrvcxnne>ir really cannot believe how little code i needed... it's messed up lol
[18:27]<rwyfcygs>You should see how much code is *inside* the library
[18:27]<rwyfcygs>The sheer number of classes and interfaces involved scares the bejessus out of me.
[18:27]<gjrvcxnne>behehe
[18:27]<gjrvcxnne>some things are rather retarded though...
[18:28]<rrd2uppnw>im confused by idatareader and idatarecord
[18:28]<gjrvcxnne>like I have issues with the TreeView control... it sucks hardcore...







