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.47 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-31
[13:51]<vxznrv>I pretty much want a list that can only contain the one datatype of the same value
[13:51]<rfffgdrgwq19>any good resources for binary numbers in c# ??
[13:51]<hzzzd>4 threat : use your class which will be containe arraylist
[13:51]<vxznrv>I was thinking of using arrayList with the contains function, but that uses a linear search which is pretty crappy
[13:52]<vxznrv>Harry, so I need to build my own datatype?
[13:52]<hzzzd>4 threat : depends of details of your task
[13:53]<sz2yzgrzz>i remember there being a couple of Set classes running around that people used for that purpose
[13:53]<hzzzd>4 threat : you will containg some data in your arraylist classes
[13:53]<vxznrv>I mean I don't need it to be sorted, but I do need uniqueness
[13:53]<hzzzd>and with container - class will be work with it
[13:53]<hzzzd>you can do it with your stuffes - but uniques in dictionary - hm....
[13:54]<hzzzd>4 threat : by the way effective dictionary - it very non trivial way
[13:54]<vxznrv>Harry, yes but what would be my key?
[13:54]<hzzzd>4 threat : by the way effective dictionary - it very non trivial task
[13:54]<hzzzd>4 threat : hash of word for example
[13:54]<lcs>mhm
[13:55]<vxznrv>Harry, hmmmm, I guess that would provide fast access to the element
[13:55]<hzzzd>when i was the student of 1-st year university - i built dictionary with hash tables....
[13:55]<vxznrv>Harry, alot better then a linear search
[13:55]<lcs>depends on the hash
[13:55]<hzzzd>4 threat : there are lot ways - i have document for it purpose - but it is on russian)))
[13:55]<hzzzd>yes, it `s depends for yor hash
[13:55]<vxznrv>Harry, :(
[13:56]<pzynsv-jp-psy>AqD!
[13:56]<afd>hi Priest-of-Psi!
[13:56]<pzynsv-jp-psy>fuck its cold here
[13:57]<afd>nah it's hot
[13:57]<afd>30C
[13:57]<hzzzd>4 threat : so, find effective hash - algorithm and use it ...
[13:57]<pzynsv-jp-psy>12C here
[13:57]<lcs>26C here
[13:57]<sz2yzgrzz>what do you think of this
[13:57]<sz2yzgrzz>http://www.codeproject.com/csharp/set.asp
[13:57]<hzzzd>27Ñú
[13:57]<lcs>sabiancra: i think that hashtable will be fine
[14:00]<pnfys>sabiancra: it seems fine, but is probably rather expensive for small sets due to the hashtable
[14:00]<pzynsv-jp-psy>anyone here have a ipod?
[14:00]<sz2yzgrzz>yes, why
[14:01]<vxznrv>Harry, thank you!
[14:01]<pzynsv-jp-psy>can I hook a external usb harddrive onto it?
[14:01]<sz2yzgrzz>not that I am aware of
[14:01]<pzynsv-jp-psy>hmmmf
[14:01]<hzzzd>4 threat : nothink, i recondend you if you write serious project read Knuth and Cormen
[14:02]<pzynsv-jp-psy>does it have a usb connector?
[14:02]<sz2yzgrzz>of course
[14:02]<hzzzd>4 Priest-of-Psi : y
[14:02]<sz2yzgrzz>all of this information is available on www.apple.com
[14:02]<sz2yzgrzz>this is programming channel
[14:04]<pzynsv-jp-psy>sabiancra I am fully aware what channel this is as I have been a regular here for nearly 2 years
[14:04]<afd>lol
[14:04]<pzynsv-jp-psy>Harry I want to see if I can use a 160gb usb drive with a ipod
[14:05]<lcs>hehz
[14:05]<pzynsv-jp-psy>AqD I want to do a GTKPod install
[14:05]<sz2yzgrzz>you can use your ipod as a usb drive
[14:05]<pzynsv-jp-psy>and store music on a external drive
[14:05]<sz2yzgrzz>but i haven't seen people connecting other harddrives to the ipod
[14:06]<sz2yzgrzz>AqD, www.rockbox.org
[14:06]<afd>eh?
[14:07]<afd>sabiancra: it doesn't seem to have p2p
[14:07]<sz2yzgrzz>so, write your own app
[14:08]<sz2yzgrzz>since its linux based, port mono over to it and have fun ;)
[14:08]<sz2yzgrzz>it runs great but tagcache, the song db, still sucks hard
[14:29]<hzzzd>4 Priest-of-Psi : you mean use ipod as 160Gb drive or what?
[14:33]<eezve|wjec->i have this line: Regex regex = new Regex(@"^[A: ]+([\d]+[\.]{1}[\d]+)"); yet when i do a MatchCollection and get the matches from the line, it returns "A: 123.4" where i just want to retrieve "123.4", i assumed () where the pattern being captured but the whole string is the match.. any help?
[14:35]<eezve|wjec->the #regex people said the expression is fine for the intended result
[14:44]<sdnffdxdlld>bbiam
[14:54]<rwyfcygs>BLAMBLAMDONKBEYCOCK
[15:03]<svlnvnz>hi
[15:04]<svlnvnz>why a fixed array char[4] differ in size from fixed byte[4]? (the charset is set to ansi where from what i know char = 1 byte)
[15:04]<rwyfcygs>Because char is a unicode char in .NET
[15:05]<svlnvnz>CharSet=CharSet.Ansi in struct layout is not enough ?
[15:08]<svlnvnz>there is some AnsiChar or i should use byte for ansi chars?
[15:08]<nzus`>anyone here used mobile directx?
[15:08]<rwyfcygs>Nope, it's still a unicode char internally.
[15:08]<rwyfcygs>Look at the Encoding class
[15:09]<svlnvnz>awilkins: i'm using inside a struct fot platform invoke
[15:11]<rwyfcygs>Bear with me, I've not really used P/Invoke :-)
[15:12]<svlnvnz>k, well no problem byte works well :)
[15:12]<rwyfcygs>How about BestFitMappingAttribute? That seems to have something to do with ANSI / Unicode issues?
[15:12]<y-gz>SpikeLite: http://mono-project.com/Interop_with_Native_Libraries
[15:12]<y-gz>ergh
[15:12]<y-gz>stpeter: http://mono-project.com/Interop_with_Native_Libraries
[15:13]<svlnvnz>oh thank u :)
[15:15]<svlnvnz>awilkins: no i think is an option to when auto conversion is done from unicode to ansi
[15:17]<y-gz>stpeter: the actual conversion from unicode to ansi is done in the runtime
[15:17]<rwyfcygs>On reading this, it looks like the magic-marshalling only happens on strings, char get's blitted.
[15:17]<y-gz>stpeter: by default UNicode is assumed but in the DllImport you can specify the encoding to be Ansi
[15:20]<svlnvnz>the encoding attributes are appliend only to string type, in structs to define an array of chars to be the same size as in C i need to use byte or sbyte
[15:20]<svlnvnz>thanks to all
[15:22]<svlnvnz>i'm also wondering if there is some support to invoke variable argument functions, but seems there isn't nothing
[15:25]<svlnvnz>int Cfunction_that_get_a_variable_numberof_ints(...) != int Sharpfunction([byvalarray?]params int[])
[15:25]<lcs>stpeter: do you have access to unmanaged code?
[15:26]<svlnvnz>yes a C function in some dll
[15:26]<lcs>do you have access to source code?
[15:26]<svlnvnz>yes but there are a lot of variable argument functions
[15:27]<svlnvnz>the conversion is simple, but requires time
[15:29]<svlnvnz>byvalarray seems the right attribute but is supported only on struct/class fileds
[15:29]<svlnvnz>*fields
[15:31]<svlnvnz>there are *many* variable argument functions to convert
[15:31]<svlnvnz>ehm sorry my english is bad







