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.40 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-08-10
[17:03]<mjzymygo>GoatCheez: *g*... I have a mate pissing around with virtual reality projections, my info was from him.. but I couldn't prove him right directly...
[17:03]<cjmgrug>"I really think that the speadsheet in question is to be deleted immediately after the password update is done." ... sounds familiar?
[17:04]<mjzymygo>the best I could find was that M$ article
[17:04]<pzrrnrvqt0wr>CodeRun: famous last words?
[17:04]<cjmgrug>i guess, GoatCheez isnt dying today, so just last words :p
[17:04]<gjrvcxnne>Moridin8L: they are dead on for GDI, but they are clueless for GDI+
[17:04]<gjrvcxnne>huh?
[17:04]<cjmgrug>oops. famous words**
[17:04]<gjrvcxnne>oph
[17:04]<gjrvcxnne>yeah
[17:04]<gjrvcxnne>lol
[17:05]<gjrvcxnne>why are they famous last words lol
[17:05]<mjzymygo>GoatCheez: can't argu with GDI, but since GDI+ has been around for... 5/6 years, I never thought to consider GDI
[17:06]<mjzymygo>ultramag: SO... sounds like your running out of video memory...
[17:06]<dbq>anybody here using Castle ActiveRecord or has any expreience with it ?
[17:06]<gwaglvyjg>Oh what's that
[17:06]<gjrvcxnne>ultramag: what resolution do you run at?
[17:07]<dbq>blah
[17:07]<mjzymygo>ActiveRecord is ok. Prefer BATS myself ;)
[17:08]<dbq>BATS?
[17:08]<mjzymygo>Business Tiering Tool Set... my own ORM
[17:08]<mjzymygo>releasing a LITE version of it soon
[17:08]<dbq>heh, but thats your own :)
[17:08]<dbq>very nice
[17:08]<dbq>how do i get AR to work with firebird embeeded or sqlite ?
[17:08]<cjmgrug>does it bother you that reverse-string of "BATS" is "STAB" ?
[17:09]<mjzymygo>ActiveRecord last I heard is SQL-Server only
[17:09]<mjzymygo>CodeRun... no ;)
[17:09]<cjmgrug>heh
[17:09]<dbq>is there any persistent object system that works with an embeeded sql ?
[17:10]<mjzymygo>BATSLite works off a provider pattern, so as long as there is a provider appropriate, you can get it to work off any datasource
[17:10]<dbq>and AR seems to work on nhibrenate which says it should work with fb-embeeded/sqlite, but i can't seem to get it to work
[17:10]<mjzymygo>BATSLite will have MS-SQL and a SQLIte provider supplied
[17:11]<zrrry>Moridin8: can you do a npgsql one too? it's a standard IDbConnection :)
[17:11]<mjzymygo>raggi... when it's released you could create your own.
[17:11]<dbq>i'm looking for something that currently works :)
[17:11]<mjzymygo>BATSLite is going to be LGPL
[17:11]<zrrry>k
[17:12]<dbq>Moridin8: do you have any idea where i can find information about that maybe ?
[17:12]<mjzymygo>about what?
[17:12]<dbq>btw, whats the ETA for BATSLite ?
[17:13]<mjzymygo>I'm releasing to alpha end of August
[17:13]<dbq>for making AR work with embeeded server (or nhibernate for that matter)
[17:13]<mjzymygo>DB2: no idea
[17:14]<dbq>k
[17:14]<zrrry>is there a point and click way to add events to a form in vs? or do you generally do that all in code?
[17:14]<azyfm>raggi: In the properties window, there's a button at the top with a lightning bolt
[17:14]<mjzymygo>Firebird NHibernate.Dialect.FirebirdDialect
[17:15]<mjzymygo>SQLite NHibernate.Dialect.SQLiteDialect
[17:15]<mjzymygo>see: http://www.hibernate.org/hib_docs/nhibernate/html/session-configuration.html#configuration-userjdbc
[17:15]<zrrry>bingo, Arild you legend :)
[17:15]<dbq>i get a stupid exception probably about it not finding the drivers...
[17:17]<dbq>Could not create the driver from NHibernate.Driver.SQLiteDataDriver.
[17:17]<dbq>same for FB, etc..
[17:18]<zrrry>lol
[17:18]<svzz[wjzc]>At what size does it begins to have a notable gravity attraction?
[17:18]<svzz[wjzc]>(kidding)
[17:19]<dbq>Moridin8: got any idea on those exceptions ?
[17:19]<zrrry>well the moon is responsible for the tides, ballpark size?
[17:19]<mjzymygo>DB2.... nope... i'm kinda distracted... sorry
[17:20]<dbq>ok
[17:22]<zrrry>this should work for closing a form right: if (e.KeyCode == Keys.Escape)
[17:22]<zrrry> this.Close();
[17:23]<drdyrrr>if thats in a form's instance methods yeah
[17:23]<zrrry>yup
[17:23]<zrrry>hrm
[17:23]<drdyrrr>whats the method?
[17:24]<dbq>can i define an attribute to be allowed only in one of the members in a class ?
[17:28]<gjrvcxnne>raggi: is it not working?
[17:29]<azyfm>raggi: you really don't have to implement that kind of logic yourself
[17:29]<gjrvcxnne>raggi: make sure you have your form able to accept key input
[17:30]<azyfm>if you have a cancel button on the form, set its DialogResult to Cancel, then set the form's CancelButton to that button
[17:30]<azyfm>you get esc-processing for free then
[17:32]<gjrvcxnne>which is more kosher, to check on InvokeRequired from the class that is calling on another object cross-thread, or from the object checking to see if it's method is being called cross-thread
[17:33]<cjmgrug>GoatCheez : what? :p
[17:33]<gjrvcxnne>if (myThread.InvokeRequired()) {myThread.Invoke("function"); }, or in (public void function() {if (InvokeRequired) {this.invoke("realfunction");}
[17:34]<gjrvcxnne>i would thing the first one?
[17:35]<azyfm>I always do it in the control
[17:36]<dbq>is there an NHibrenate or AR irc support channels ?
[17:36]<azyfm>unless I have to generalize things - then I pass an ISynchronizeInvoke to the code that *may* need to call back on the right thread
[17:36]<azyfm>ISynchronizeInvoke is implemented by Control, and contains Invoke, Begin|EndInvoke and InvokeRequierd
[17:37]<gjrvcxnne>i've always done it from the thread that is calling...
[17:37]<gjrvcxnne>(the first one)
[17:37]<azyfm>well, of course, since the point of calling .Invoke is to do something on another thread
[17:37]<gjrvcxnne>saw a dude in here doing it the other way... had never really thought about doing it that was before... was kinda cool.... kinda lets you create an object that is pretty much completely threadsafe
[17:38]<gjrvcxnne>s/was/way
[17:38]<zrrry>Arild: got the dialogresult bit, but the forms cancel button?
[17:38]<azyfm>.Invoke doesn't really have anything to do with thread safety
[17:38]<azyfm>raggi: Form has a property called .CancelButton
[17:39]<azyfm>just set it to your this.cancelButton
[17:39]<zrrry>Arild: i'm just blind, np
[17:39]<azyfm>you can do it in the designer
[17:39]<azyfm>raggi: Same goes for okButton, DialogResult.OK and Form.AcceptButton
[17:40]<gjrvcxnne>Arild: uhhhh how does .Invoke not have anything to do with thread safety?
[17:40]<gjrvcxnne>the description of the method from MSDN: Executes a delegate on the thread that owns the control's underlying window handle.
[17:40]<azyfm>"thread safety" basically goes to protecting shared variables when they're accessed from multiple threads
[17:40]<gjrvcxnne>(for System.Windows.Forms.Control::Invoke)
[17:40]<zrrry>aye, just found that too, god this point and click shit makes life easy
[17:41]<gjrvcxnne>not just variables, but yeah
[17:41]<gjrvcxnne>if you do the latter of what i asked for all public methods and properties, your object will be completely threadsafe







