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.22 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-11
Pages: < Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Next >
[17:01]<pfrcnnus>Is there a way to unset a variable in c#?
[17:01]<mjzymygo>flakzeus: what?
[17:01]<mjzymygo>Staz: no...
[17:02]<svzz[wjzc]>okay thank you
[17:02]<mjzymygo>StaZ: np
[17:02]<wupp9>how can I append two arrays of the same type to one array?
[17:02]<wupp9>I have two byte[4], one byte[2] and one byte[1] and need one byte[11]
[17:03]<mjzymygo>rikkus: strangely enough no...
[17:04]<svzz[wjzc]>oh here's another one, just a curiosity, can i rename an event of an inherited object or remove it ex. : class MyBindingSource : BindingSource { public event EventHandler AfterPositionChanged { add { this.PositionChanged += value; } remove {this.PositionChanged -= value; } } <- i'd like the PositionChanged event NOT to appear in MyBindingSource... or have it renamed to AfterPositionChanged
[17:05]<zyccus>Wulf4: Array.Copy
[17:07]<rwyfcygs>https://www.doc.ic.ac.uk/~sue/475/unmain.html
[17:07]<mjzymygo> ^^^ seen a better one than that somewhere...
[17:08]<mjzymygo>fuck... can't find it
[17:09]<zyccus>If you have a car in the UK, check this out: http://www.e-database.co.uk/ <- login allens01, durham
[17:09]<mjzymygo>^^^ why?
[17:09]<zyccus>because it's interesting
[17:09]<mjzymygo>why that name specifically
[17:09]<rwyfcygs>I thought of a web-app idea .. crapdriver.com
[17:10]<rwyfcygs>IF you see someone who is a crap driver, insert their number plate into the DB
[17:10]<rwyfcygs>Just couldn't think of a way to make it pay money
[17:10]<zyccus>awilkins: how would you deal with spamming of the database?
[17:10]<mjzymygo>awilkins: found it... http://mindprod.com/jgloss/unmain.html
[17:11]<rwyfcygs>That is such fucking shit
[17:12]<rwyfcygs>It has my wifes car over the limit in Cambridge 5 days ago
[17:12]<zyccus>awilkins: check the photo
[17:13]<rwyfcygs>Hmm
[17:13]<zyccus>look like her car?
[17:13]<rwyfcygs>How amusing
[17:13]<zyccus>I knew it'd get at least one person
[17:13]<rwyfcygs>My wife hasn't been in cambridge for 8 years
[17:13]<mjzymygo>anyway...
[17:13]<mjzymygo>awilkins: http://mindprod.com/jgloss/unmain.html
[17:16]<rwyfcygs>Same essay, I think that one's a lot newer though
[17:18]<mjzymygo>awilkins: you may be right looking at it
[17:20]<mjzymygo>I am thinking of writing all my identifiers in Klingon in the future to really psych people out ;)
[17:20]<mjzymygo>http://www.kli.org/
[17:21]<mjzymygo>^^^ are people *really* this sad?
[17:22]<awjzdd>Moridin8: LOL
[17:23]<ljzvrwnw>when using events, += adds a handler to a given event, allowing you to have multiple handlers for one event, right?
[17:23]<mjzymygo>the lack of response on aforementions comment leads me to believe this room is full of trekkies
[17:23]<awjzdd>Moridin8: what a horrible link you've given us.
[17:23]<mjzymygo>portahex: yes
[17:23]<mjzymygo>jwormy: yeh... it's so sad it's funny
[17:24]<ljzvrwnw>Moridin8, so what's the correct procedure to make a given handler the *only* handler, and stop bothering with previously registered ones?
[17:24]<mjzymygo>portahex: is the event fully in your control?
[17:24]<zyccus>Moridin8: you're the one with the goblins+elves nick
[17:25]<mjzymygo>Moridin is the name of a human dopey
[17:25]<awjzdd>Moridin8: i refuse to look farther than what i saw of teh webpage...
[17:25]<ljzvrwnw>Moridin8, it's a clicky button being clicked event
[17:25]<rwyfcygs>Just use an = instead of a +=
[17:26]<mjzymygo>portahex: then create a pattern that wraps the event up and ensures only one item, or go for the '=' assignment
[17:26]<mjzymygo>you could also wrap the event using add{}remove{} syntax (similar to get{}set{})
[17:28]<ljzvrwnw>[Task:File=/home/jms/osctool2r2/GTK2/MainWindow.cs, Line=69, Column=4, Type=Error, Description=The event `Gtk.Button.Clicked' can only appear on the left hand side of += or -= (except when used from within the type `Gtk.Button')(CS0070)
[17:28]<ljzvrwnw>looks like i'd need a wrapper :/
[17:35]<mj-c><portahex>: looks like everybody uses C# in Linux :-)
[17:35]<al->what's the best approach to supporting multiple databases without needing to have lots of seperate code, for example support oracl, sql server and mysql?
[17:35]<mj-c>use microsoft DAL pattern block
[17:35]<mjzymygo>or write you own
[17:36]<mj-c>it's assembly, just reference it, but it's bloated
[17:36]<mjzymygo>very bloated
[17:36]<mj-c>:-) who cares? it works for any possible changes and super-ubertested
[17:36]<mjzymygo>=) yeh.
[17:37]<mj-c>me too, by the way. I stick with my own libs (bad habit)
[17:37]<mj-c>at least for DAL
[17:38]<mjzymygo>it's a good habit I think because it forces you to learn how to do it for yourself, this gives you knowledge of how things work.
[17:38]<mjzymygo>I'll use the M$ block if I have time issues tho, but I have found teams that use it make the most dumb mistakes
[17:38]<mjzymygo>having re-usable code is great
[17:39]<mj-c>but you have just one brain, and DAL contains 1000 of very high paid guys, and it's better to eyeball this code. The same result and much faster
[17:39]<mjzymygo>but many of the pattern blocks also fall into abuse usage... case in point for recently discussed example: the Microsoft.VisualBasic.dll used as default by VB.NET
[17:39]<mj-c>I mean MS's
[17:39]<al->so you're suggesting i make my own interface and underlying objects to access the databases instead of using dal?
[17:39]<ljzvrwnw>rar, i found somewhere i could sneak in a -= without it breaking. crisis averted
[17:39]<mj-c>it depends on the project
[17:40]<mjzymygo>jp: I'm saying it depends on a few things.
[17:40]<mj-c>if you need to store couple values in database, why using DAL?
[17:40]<rwyfcygs>You could use Hibernate
[17:40]<rwyfcygs>Or stick to SQL-92 syntax
[17:40]<mjzymygo>size of the project and experience of the developer(s)
[17:40]<al->ah well, it's way more than a couple. :)
[17:40]<mj-c>it is what I usually do (Hibernate)
[17:41]<mjzymygo>If the developers are all relative n00b's on a large project, then using the M$ pattern DAL is a good idea.
[17:41]<al->the whole business runs off of these databases but i was told to find the best way to handle multiple databases and oracle, sqlserver and mysql where the ones specifically noted
[17:41]<mjzymygo>then the M$ block is the best idea for your circumstances I think. if time is a factor
[17:41]<zyccus>"awilkins Or stick to SQL-92 syntax" hahahaha
[17:41]<mj-c>it's nothing to do with noobs. it's about the best practice. Some errors are detected after years and years. If only you don't use NUnit very extensively
[17:42]<al->time is sort of a factor, but not as much as making sure it works. i'm gonna look in dal and writing our own objects and an interface to them
[17:42]<rwyfcygs>:-)
[17:42]<al->thanks for the information and time guys, i appreciate it
[17:42]<mj-c>you can refactor the block from MS
[17:42]<zyccus>do-k: I gree
[17:42]<zyccus>agree*
[17:43]<mjzymygo>jp-: http://msdn.microsoft.com/library/?url=/library/en-us/dnpag2/html/EntLib2.asp
[17:45]<`d0>Good Morning
[17:46]<mjzymygo>morning...
[17:48]<`d0>Do I need to sleep more?
[17:48]<`d0>hrmm
[17:50]<mjzymygo>>_O
[17:50]<mjzymygo>I hate the smell of smoke...
[17:50]<mj-c>don't sleep, coding is fun







