IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-04-02 18:00:08
Channels: 41
Logged Lines: 6229042
Size: 1797.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-26
[18:44]<azyfm>And I've mostly used gvim the times I've been forced to use linux :-|
[18:50]<rrd2uppnv>ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref17/html/P_System_Windows_Forms_BindingSource_DataSource.htm shows all bindinglists... my head hurts
[18:51]<azyfm>what do you mean by "all bindinglists"?
[18:55]<-- agzggfsggsgy wrs>Incompetent Operator error")
[19:11]<dy>hi, why is a decimal type good to use for storing monetary values?
[19:11]<azyfm>because it doesn't suffer from the same round-off errors that floating point does
[19:12]<dy>how do they avoid round-off errors?
[19:12]<azyfm>float f = 0.1f; float total = 100 * f;
[19:12]<azyfm>no guarantee that total will be exactly 10
[19:12]<azyfm>1. Bigger precision
[19:12]<azyfm>2. It doesn't use binary floating point
[19:14]<dy>Arild: what does the 'f' in 0.1f mean?
[19:15]<azyfm>float
[19:15]<azyfm>0.1 is a double literal
[19:15]<azyfm>you'd get an error if you did float f = 0.1;
[19:16]<dy>hurmm
[19:16]<dy>MyFortune = Decimal.Add(MyFortune, .01m);
[19:16]<dy>from msdn
[19:16]<dy>what is 'm' then?
[19:16]<azyfm>decimal literal
[19:18]<gu_ggj>i have a Response.Redirect("anotherpage.aspx") ... how can i pass parameters to anotherpage.aspx and do it in a POST method ?
[19:21]<kuggys>eu_neo What will it post?
[19:22]<gu_ggj>name=aaa&age=17... but more than 255 chars
[19:24]<gu_ggj>if i make with Response.Redirect("anotherpage.aspx?name=aa ... ) it's ok ... but i need POST not GET
[19:24]<kuggys>Why do you need to post? I dunno how to change it, I'm just curious
[19:26]<gu_ggj>there is a possibility that the user selects more than a 400 items from a list and their codes will be passed to anotherpage.aspx
[19:26]<kuggys>Buy why post and not get?
[19:27]<gu_ggj>get accepts a limited number of char
[19:28]<gu_ggj>i think 255 max
[19:28]<kuggys>I didn't know that.
[19:41]<mjzymygo>eu_neo... GET accept URL's up to 2k
[19:41]<azyfm>"URLs"
[19:42]<mjzymygo>CORRECTION: eu_neo... GET accepts URLs up to 2k
[19:42]<mjzymygo>;)
[19:43]<gu_ggj>Moridin8: anyways do u know a way to redirect by POST :)
[19:43]<gu_ggj>?
[19:47]<mjzymygo>nope
[20:01]<jggs_2zu>Hi guys! Anyone of you knows if Borland C#Builder supports .Net Framework 2.0? VS2005 designer acts funny all the time
[20:09]<pfrcnnus>Does anyone know of a anti-virus package or project that uses c#? or is it even possible?
[20:10]<nnzjpfrr>theretically it is possible.
[20:10]<nnzjpfrr>but it won't be as "good" as the current anti virus softwares...
[20:10]<nnzjpfrr>they use some mean hacks to intercept viruses.
[20:10]<nnzjpfrr>and C# is just not suitable to hack into windows...
[20:10]<gu_ggj>Request.RequestType="POST";Server.Transfer("anotherpage.aspx?"+queryString,true); --> is the answer for the redirection through post question i've posted earlier
[20:11]<drjbnr>Hello
[20:11]<pfrcnnus>zeroflag, define mean hacks :)
[20:11]<cjmgrug>yea, C# is for the angels, by the devils :p
[20:11]<nnzjpfrr>like intercepting dll calls...
[20:12]<pfrcnnus>ah, i see
[20:12]<mjzymygo>eu_neo... erm duder. Be very careful with Server.transfer. It's best to use Context.Add() for that kinda thing.
[20:12]<mracn>zeroflag: Well, you could technically call c-code from within c#
[20:12]<gu_ggj>Moridin8: what do u mean?
[20:13]<cjmgrug>yes, but it loses the C# purity.. doesnt it?
[20:13]<nnzjpfrr>Macke: but then it wouldn't be a C# project...
[20:13]<mracn>either by using the win api through P/Invoke, or implementing whatever mean hack you want in c, and then calling that through P/Invoke
[20:13]<mracn>sure it would
[20:13]<gu_ggj>why do u say I need to be careful ?
[20:13]<mjzymygo>altering the requesttype then running server transfer does not run your page through the client, it's literally what it says, a transfer made on the server
[20:13]<mjzymygo>for that use the context object
[20:14]<kuggys>Yeah, you just may need a server.Transfer
[20:14]<kuggys>without having to worry about setting the request type
[20:14]<kuggys>server.Transfer() I believe is done completely inside of asp.net, though you should check that
[20:14]<mracn>either way, I'm not sure whatever those mean hacks are, but if they are just using the win api, then you could surely call that functionality from c#
[20:15]<mjzymygo>kunnis... thanks for repeating what I said ...
[20:15]<mracn>even the framework calls "outside" code in certain parts, windows forms come to mind
[20:15]<gu_ggj>Moridin8: you didn't explained yourself ... why do u say it's not ok to use Server.Transfer ?
[20:15]<mjzymygo>Macke... the sort of thing that virus killers do is generally beyond c#, and the hacks sometimes require some intimate fiddling with assembler
[20:16]<mjzymygo>I'm not saying it isn't ok... just that your original requirement of sending data via a post is not fullfilled
[20:16]<gu_ggj>yes it is
[20:16]<cjmgrug>but designing anti-keyloggers is quite possible.. i guess
[20:17]<mjzymygo>no it's not
[20:17]<gu_ggj>i don't see the params in the Address
[20:17]<mjzymygo>because server.transfer does not work through the Common Gateway Interface
[20:17]<mjzymygo>if you don't want to use the CGI posting mechanism, then the server.transfer is fine
[20:17]<drygq>0 = not a bool value
[20:17]<gu_ggj>it's just mypage.aspx and not mypage.aspx?age=12&name=gigi
[20:17]<drygq>but what if !var contains 0?
[20:18]<drygq>(read as in = 0)
[20:18]<gu_ggj>Moridin8: i've just seen that Context is an object lied to a page
[20:19]<gu_ggj>so what were you suggesting with context.add ?
[20:19]<mjzymygo>use the context object to pass data between pages when using server.transfer
[20:21]<gu_ggj>be more specific pls Moridin
[20:22]<gu_ggj>can u feel me a piece of code of your idea
[20:22]<mjzymygo>do: context.add(); then server.transfer... in other page... stuff = context[...]
[20:22]<mjzymygo>not rocket science
[20:23]<mjzymygo>it's general collection usage
[20:23]<gu_ggj>there is no context.add method
[20:23]<gu_ggj>only .addError
[20:23]<gu_ggj>we'll talk tomorow if you'll be online
[20:24]<mjzymygo>hang on..
[20:24]<mjzymygo>give me 5 minutes, let me fire up a solution
[20:24]<gu_ggj>marius_neo@yahoo.com
[20:24]<gu_ggj>my mail address
[20:24]<mjzymygo>no emails...
[20:24]<gu_ggj>i'm loosing the bus
[20:24]<gu_ggj>:)
[20:24]<gu_ggj>losing
[20:25]<gu_ggj>talk to u tomorow







