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.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-31
[21:21]<svlnvnz>GoatCheez: i've checkd Screen.Active... but nothink like
[21:23]<svlnvnz>use the win32 api
[21:23]<gjrvcxnne>i'm trying GetForegroundWindow right now
[21:24]<svlnvnz>yes it is
[21:24]<fjggvzjg>how to make a connection string to connect to oracle 10g express on my own computer from C#?
[21:26]<gjrvcxnne>well, it sorta works lol
[21:26]<gjrvcxnne>i can't get the window to get the blue title bar lol
[21:27]<gjrvcxnne>got it ;-P
[21:27]<gjrvcxnne>aw fark
[21:27]<svlnvnz>lonetron: the tnsnames.ora file could be your problem
[21:27]<gjrvcxnne>it stopped working outside the debugger
[21:28]<fjggvzjg>what problem?
[21:28]<svlnvnz>lonetron: if u are using oracle drivers and not ms native
[21:28]<svlnvnz>lonetron: any :)
[21:29]<gjrvcxnne>screw it... works good enough n e way lol
[21:30]<svlnvnz>lonetron: http://www.connectionstrings.com
[21:30]<svlnvnz>lol
[21:30]<svlnvnz>internet
[21:37]<svlnvnz>.net for symbian?
[21:37]<vr2drg>there is a field Math.E what does it stands for, I can't figure it out ?
[21:38]<svlnvnz>tabman: tooltips
[21:40]<svlnvnz>tabman: my tooltip say: natural logarithmic base, specified by the constant, e
[21:40]<vr2drg>whats a tooltip ?
[21:40]<vr2drg>yeah its the constant e but how do I use it in code ?
[21:41]<vr2drg>as in when I write e2 in my normal calculator i get 7.38.....
[21:41]<vr2drg>how do I acheive the same result with Math.e
[21:41]<nnzjpfrr>FFS WHAT IS WRONG WITH MY SERVER?!?
[21:41]<nnzjpfrr>it was stable for weeks and now it crashes for the third time in 2 hours...
[21:41]<svlnvnz>Math.E
[21:41]<svlnvnz>2.7182818284590451
[21:42]<svlnvnz>Math.Pow(Math.E,2)
[21:42]<svlnvnz>7.3890560989306495
[21:43]<vr2drg>ok Thanks
[21:44]<svlnvnz>mah
[21:44]<svlnvnz>zeroflag: hackers around? check the logs :)
[21:44]<pz2>zeroflag: you've been hax0rezfdfsfomg!@!@123
[21:44]<nnzjpfrr>me? oO
[21:45]<svlnvnz>by 4l1t3H4oR
[21:45]<nnzjpfrr>when was this?
[21:46]<gjrvcxnne>holup, what's the malfunction now?
[21:46]<svlnvnz>at elitehaxor o'clock
[21:59]<rrd2uppnw>im a little confused
[21:59]<rrd2uppnw>interfaces dont actually have any logic, correct ?
[21:59]<y-gz>nope the don't have any logic
[22:00]<rrd2uppnw>how come i do a IDataReader read = database.DataReader(DbCommand)... and then do things like read[column] ?
[22:00]<y-gz>hm how can I explain it best
[22:00]<rrd2uppnw>ive been doing that not thinking about what i was doing.. but it works
[22:00]<y-gz>do you know abstract classes?
[22:00]<rrd2uppnw>familiar.. yes
[22:00]<y-gz>so
[22:01]<rrd2uppnw>abstract class is basically an interface w/ logic, right?
[22:01]<y-gz>no the idea is different imho
[22:01]<y-gz>a show and a car can implement an interface IProduct
[22:01]<y-gz>so I know both are IProducts
[22:01]<rrd2uppnw>ok
[22:02]<y-gz>but then there will be an abstract class Shoe and derived: BigShoe, SmallShoe
[22:02]<y-gz>that is Shoe definies behaciour for a Show object
[22:02]<y-gz>*Show
[22:02]<y-gz>*Shoe
[22:02]<y-gz>clear now?
[22:02]<rrd2uppnw>lol
[22:03]<y-gz>so if a Pig implements an IProduct I can use it as such without knowing what else it can do
[22:03]<rrd2uppnw>right
[22:04]<y-gz>IProduct product = myPig as IProduct
[22:04]<y-gz>:)
[22:04]<rrd2uppnw>but that doesnt make sense
[22:04]<rrd2uppnw>to me
[22:04]<rrd2uppnw>:-]
[22:04]<y-gz>well I am open for discussions :))
[22:04]<svlnvnz>IProduct product = (IProduct)myPig
[22:04]<y-gz>what doesn't make sense for you?
[22:04]<y-gz>stpeter: there is a slight difference
[22:05]<svlnvnz>isn't the same?
[22:05]<y-gz>if myPig doesn't implement IProduct your's will throw an expecption
[22:05]<rrd2uppnw>no.. because how can i do product.property and get a return value if interfaces dont have logic
[22:05]<y-gz>where as mine will set product to null
[22:05]<svlnvnz>i-nZ: ah clear
[22:05]<y-gz>jaybuffe1: you get an instance of a class that implements that interface and use the interface to call the implemented methods
[22:06]<y-gz>an interface ISomething { ...} itself is just behaviour definition
[22:06]<y-gz>then class something : ISomething {...} is the implementation of that behaviour
[22:06]<rrd2uppnw>right
[22:06]<svlnvnz>jaybuffe1: the logic is "redirected" to the instance object that u are actualli using , the Pig :)
[22:07]<rrd2uppnw>so in your example, IProduct product = myPig as IProduct; what is myPig before this line
[22:08]<y-gz>class myPig : IProduct { ... }
[22:08]<y-gz>in a shop a pig would be product
[22:08]<y-gz>I don't care if it is blue or black
[22:08]<y-gz>it is a product :)
[22:08]<y-gz>so I want to know about it's product properties (price, instock etc)
[22:09]<rrd2uppnw>so whats the diff between IProduct myPig = myPig as IProduct and myPig product = new myPig(); ?
[22:09]<y-gz>you must first have an instance
[22:09]<y-gz>myPig product = new myPig();
[22:09]<y-gz>IProduct myPig = myPig as IProduct;
[22:09]<y-gz>you are just casting
[22:09]<y-gz>and then you can have a method
[22:10]<rrd2uppnw>so your essentially stripping off all the additional methods that myPig adds to IProduct ?
[22:10]<y-gz>public void Sell (int quantity, IProduct product) { .... }
[22:10]<rrd2uppnw>would you need to cast product to IProduct in order to pass it to your method ?
[22:10]<y-gz>and you can do: myPig product = new myPig(); Sell (69, (IProduct) myPig);
[22:11]<y-gz>I would cast it for clarity
[22:11]<rrd2uppnw>i thought u could just do Sell(69,product)







