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.39 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-09-02
[08:23]<kjr>brb
[08:23]<cjmgrug>what does**
[08:23]<pz2>CodeRun, nothing
[08:23]<cjmgrug>frb : huh?
[08:24]<pz2>it means someone in management thought it was time to release the software
[08:24]<pz2>but it could still be as buggy as raw meat on the 4th of july
[08:24]<cjmgrug>lol
[08:25]<cjmgrug>i thought once they come out of beta, their visible bugs are 99% fixed...
[08:28]<cjmgrug>http://en.wikipedia.org/wiki/Development_stage
[08:28]<cjmgrug>for those who are bored :p
[08:31]<sdyzcnz>thanks AnarkiNet :), works great. ended up with: char[] chars = new char[byteArray.Length]; byteArray.CopyTo(chars, 0); return new string(chars);
[08:33]<zgzzcygnv>my solutions always work.
[08:33]<zgzzcygnv>always.
[08:36]<vufvuzn>Smirker: why do you want to perform such a conversion?
[08:37]<zyjvnz>hey vulture
[08:37]<sdyzcnz>i have multiuse structs defined for transfering data over TCP, sometimes the same message structure is used for sending a filename, a sha hash, etc
[08:38]<zyjvnz>how i didnt that a second time i dont know
[08:39]<vufvuzn>Smirker: so? you realise the "characters" will have to be encoded again when you send them over the TCP byte stream
[08:40]<vufvuzn>if you've used characters that can't be properly enc/decoded youll "lose" data..
[08:40]<vufvuzn>if you want to send binary data over a text stream, encode it properly using something like Base64
[08:40]<sdyzcnz>i've also written a string to byte array function, tested both
[08:41]<vufvuzn>tested them with what?
[08:41]<sdyzcnz>a byte array covering characters 0x00 to 0xFF
[08:41]<vufvuzn>and how do you convert the string to a byte array when youre sending it over TCP? using a StreamWriter or something?
[08:41]<sdyzcnz>using streams, yeah.
[08:42]<vufvuzn>have you tried your test including that StreamWriter usage?
[08:43]<vufvuzn>thats the point at which you might suffer lossage
[08:47]<sdyzcnz>yea. its fine when i get to the stream
[08:49]<sdyzcnz>i have quite a few structs, and inside the structs are members that point to other structs, and a ToStream() function. when i serialise a message, it goes through a writes it all to a stream (using above function, and BitConverter), according to the protocol. when i send it over the network, i write to the sendbuffer using stream.read. it works fine now ;o
[08:54]<cjmgrug>reminds me of c++ days..
[08:55]<jdvgdjgcgd>http://images.google.com/imagelabeler/
[08:59]<cjmgrug>man.. they have such creative thinkers working at google..!
[09:07]<cjmgrug>saturday's are really quiet..
[09:07]<jdvgdjgcgd>google actually licensed this from louis von ahn
[09:07]<jdvgdjgcgd>who gave a speech about it at the google campus
[09:08]<jdvgdjgcgd>he postulated that with just a few thousand taggers a day, google could have their entire image library tagged in a few months
[09:08]<jdvgdjgcgd>the 'game' essentially fools you into donating human labor
[09:08]<jdvgdjgcgd>its brilliance
[09:08]<cjmgrug>how much did he get paid for that brilliant idea?
[09:10]<mrsrmm>one can do better things than that...what is brilliant in it?.... :|
[09:11]<mrsrmm>one can use a google image ripper...and look for fun pix... :D
[09:13]<cjmgrug>Its like getting a chick drunk and *Willing* to have 'fun' with you... here, chick = google, drunk = users and fun = 'tagging the image library'. now how can you say thats not brilliant!!
[09:13]<cjmgrug>not to mention -> free <-
[09:13]<mrsrmm>coz i am not drunk...so i am not falling to it... :D
[09:14]<cjmgrug>this will attract almost the same category of people who like sites like myspace etc..
[09:15]<cjmgrug>in my opinion, atleast.
[09:15]<mrsrmm>:D
[09:15]<pz2>Resistance is futile, You will be googliminated
[09:15]<cjmgrug>heh
[09:16]<pz2>this ad says I'm one click away from getting laid tonight
[09:17]<wyfaj`>your fat, ugly neighbour clicked it
[09:17]<wyfaj`>did you?
[09:17]<cjmgrug>frb, good. Atleast you arent the LUCKY 16,000,000 th person to visit that site..
[09:46]<cjmgrug>http://www.wnd.com/news/article.asp?ARTICLE_ID=51760
[09:46]<cjmgrug>dont click it.
[09:49]<sxyg-rr>anyone know VB.net?
[09:54]<mrsrmm>yeah
[09:58]<pz2-rwrd>Friendship is like peeing your pants, everyone can see it,
[09:58]<pz2-rwrd>But only you can feel the true warmth.
[10:01]<cjmgrug>in summer, ie.
[10:08]<afd>frb-away: lol :D
[10:09]<zgzzcygnv>anyone know anything about sorting algorithms?
[10:09]<cjmgrug>AnarkiNet, question.
[10:09]<sxyg-rr>I Wish relationships was like that
[10:10]<zgzzcygnv>just wondering how multi-criterial sorting algorithms work
[10:10]<sxyg-rr>my ex decides she wants a few weeks by herself and shit
[10:10]<zgzzcygnv>like sorting by artist, then album, then track number, to produce one list
[10:36]<sxyg-rr>w00t I found my D2 key :D
[10:58]<`d0>i hate vb6
[10:59]<sxyg-rr>why is my richTextBox being Transparent?
[10:59]<sxyg-rr>like I open it up and you can see through it
[11:00]<sxyg-rr>and it my form moves severely slow
[11:21]<sxyg-rr>AqD, hey boy
[11:22]<sxyg-rr>anyone here?
[11:22]<afd>hey girl!
[11:22]<sxyg-rr>AqD, you know anything about Encoding.ASCII?
[11:22]<afd>yes?
[11:23]<sxyg-rr>it says Class" System.Text.Encoding" cannot be indexed because it has no default property
[11:23]<sxyg-rr>sw.Write(Encoding.UTF8(richBox.Text))
[11:24]<vufvuzn>AnarkiNet: such a sorting isn't really difficult - std::pair in C++ does it for 2 values, doing it for N isn't a big leap
[11:24]<afd>ah
[11:24]<sxyg-rr>im trying to save the file in ASCII
[11:24]<afd>i didn't know there is Encoding.UTF8((
[11:24]<afd>but you can use GetBytes
[11:24]<afd>or GetString
[11:24]<vufvuzn>AnarkiNet: assuming everything has the same number of fields anyway. If you've got different field sets it gets a bit interesting
[11:24]<afd>bytes <-> string
[11:25]<sxyg-rr>AqD, code --> http://nomorepasting.com/paste.php?pasteID=67996
[11:26]<sxyg-rr>number line 37
[11:27]<afd>Shin-Ra: tried Encoding.UTF8.GetBytes(richBox.Text) ?
[11:27]<sxyg-rr>ok hold on
[11:28]<sxyg-rr>AqD, this is what it prints when I save it
[11:28]<sxyg-rr>System.Byte[]
[11:29]<afd>ah
[11:29]<afd>Shin-Ra: StreamWriter doesn't write bytes? :P
[11:29]<sxyg-rr>lol
[11:29]<afd>you need something that write bytes for different encodings
[11:30]<afd>not to write strings







