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.58 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-05-26
[22:50]<mupmvz>bunch a dots
[22:50]<mupmvz>around the image
[22:57]<lnvnzxu>jc-denton: intrinsic types are represented as value type structs in .NET, with methods
[22:57]<lnvnzxu>so 5.ToString() is valid
[22:59]<aa-mggvjg>but monodevelop does not autocomplete it :D
[22:59]<txnjzd>I know you can do that with value types, are you use you can do it with literals?
[22:59]<aa-mggvjg>but vs
[22:59]<txnjzd>s/use/sure/
[23:00]<lnvnzxu>yes
[23:00]<lnvnzxu>at least in C#, in C++/CLI, you have to tell the compiler the literal is not a native literal
[23:00]<aa-mggvjg>thx
[23:01]<txnjzd>yes, you are right :-)
[23:01]<lnvnzxu>in C++/CLI, it's static_cast<Int32>(5).ToString()
[23:02]<lnvnzxu>as it's ambiguious
[23:02]<aa-mggvjg>http://rafb.net/paste/results/VhmqkH55.html
[23:02]<aa-mggvjg>i get a parse error
[23:03]<lnvnzxu>building with mono?
[23:03]<lnvnzxu>which compiler?
[23:03]<aa-mggvjg>mono
[23:03]<txnjzd>what error, what line? (and why are you not assigning key?)
[23:03]<aa-mggvjg>are generics a c# 2 feauture>
[23:03]<aa-mggvjg>the first
[23:03]<aa-mggvjg>with <T>
[23:03]<lnvnzxu>mcs or gmcs?
[23:03]<aa-mggvjg>mcs
[23:03]<aa-mggvjg>assigning a key?
[23:03]<lnvnzxu>mcs doesn't support generics
[23:03]<aa-mggvjg>i see
[23:03]<aa-mggvjg>what about gmcs?
[23:04]<lnvnzxu>it does
[23:04]<aa-mggvjg>what is gmcs?
[23:04]<aa-mggvjg>.gnu?
[23:04]<txnjzd>generics mcs
[23:04]<lnvnzxu>the mono compiler that supports most 2.0 language features
[23:04]<aa-mggvjg>ah
[23:05]<aa-mggvjg>i did not know
[23:05]<aa-mggvjg>thx
[23:05]<lnvnzxu>no problem
[23:06]<krffnjs>naming convention question: Shall I name an array as singular or as plural?
[23:07]<lnvnzxu>collections in general, i usually name in the plural, FilesCollection files; File[] files;, etc
[23:07]<lnvnzxu>FileCollection, that is
[23:14]<aa-mggvjg> Can I compile my project with gmcs?
[23:14]<aa-mggvjg>Not currently through MonoDevelop. You could use the alias command to set mcs = gmcs, but this is not tested or supported.
[23:14]<aa-mggvjg>humm
[23:14]<aa-mggvjg>d'ouh!
[23:16]<qgg-q007>hey
[23:16]<qgg-q007>i have a question - in a winforms app - what is the best way to connect to a database online?? Via a webservice?
[23:18]<txnjzd>yes
[23:18]<qgg-q007>is there another way?
[23:18]<qgg-q007>like directly with ADO.net ?
[23:19]<fyfuym-syfggag>Theory thats over kill
[23:19]<mupmvz>whats wrong w/ a direct connect
[23:19]<txnjzd>well, you could connect directly to the database, but this has rather large issues
[23:19]<fyfuym-syfggag>you dont need a webservice
[23:19]<qgg-q007>Liquid-Silence: what would you recommend?
[23:19]<txnjzd>(namely people pulling the username and password from your app and using them to do nasty and unexpected things do your database)
[23:20]<fyfuym-syfggag>Theory using parameters
[23:20]<qgg-q007>Theory: Extractly :) (also if it moves)
[23:20]<fyfuym-syfggag>should take care of that
[23:20]<fyfuym-syfggag>I would say write a data access layer
[23:20]<qgg-q007>Liquid-Silence: Thats for SQL Injection
[23:20]<txnjzd>I assume you mean stored procedures :-)
[23:20]<fyfuym-syfggag>that encrypts the data
[23:21]<qgg-q007>Liquid-Silence: I could write a DAL but how does the DAL connect to the DB?
[23:21]<fyfuym-syfggag>directly
[23:21]<fyfuym-syfggag>but
[23:21]<fyfuym-syfggag>encrypt the data
[23:21]<txnjzd>Also, direct connections involve exposing your database to the world at large
[23:22]<txnjzd>that's never been something I'm entirely comfortable with
[23:22]<txnjzd>though admittedly, it is entirely possible this is secure
[23:22]<fyfuym-syfggag>Theory by having a webserver with a sql server is the same crap
[23:22]<qgg-q007>Theory: I think i'm going to go with a DAL connecting to a WS
[23:23]<fyfuym-syfggag>I still say its a waste of time doing web services
[23:23]<qgg-q007>Liquid-Silence: but what if the database moveS?
[23:23]<fyfuym-syfggag>the you have the configutation of the the app to point to the new server
[23:24]<fyfuym-syfggag>configuration even
[23:25]<qgg-q007>Liquid-Silence: but that means redisbuting the app - what if people don't realise?
[23:25]<fyfuym-syfggag>no
[23:25]<fyfuym-syfggag>you could have a administration section
[23:25]<fyfuym-syfggag>where the use can change the database server's ip address
[23:26]<fyfuym-syfggag>then you can send out a email to them
[23:26]<fyfuym-syfggag>to tell them to change the ip address
[23:26]<qgg-q007>web service would solve all that tho :)
[23:27]<fyfuym-syfggag>yes
[23:27]<svzz_wjzc_>hey, if i add controls at run time in my form... do they lie in the Controls Collection in the same order they were added?
[23:27]<kjr>ben-2006: except xml_security extensions are a pain in the ass
[23:27]<txnjzd>to be honest, with the tools available now, webservices are pretty quick to implement
[23:28]<qgg-q007>Kog: Please explain, never heard of them before ;)
[23:28]<fyfuym-syfggag>hi Kog
[23:28]<qgg-q007>and techincally, the WS just needs to be a wrapper around the SPOs
[23:28]<kjr>sup Liquid-Silence
[23:28]<qgg-q007>and do 'some' validation to check for nauty things
[23:29]<svzz_wjzc_>example : this.Controls.Add(MytextBox); this.Controls.Add(MyLabel); this.Controls[0] is MytextBox and this.Controls[1] is MyLabel <- is it the way it works and is it reliable?
[23:29]<kjr>ben-2006: Apache's XML-security package is for encryption of SOAP envelopes
[23:30]<kjr>well, not just SOAP
[23:30]<kjr>I'm sure someone's ported it to .NET... or I'd hope someone has anyway. Wouldn't be too hard to write as long as you had crypto tools, which .NET has heh
[23:30]<txnjzd>how is it different/better than https?
[23:31]<pnfys_>is there any event that is fired after Show()?
[23:31]<kjr>Theory: because part of using PKI is establishment of identity







