« first day (339 days earlier)      last day (4623 days later) » 

2:57 AM
@yas4891 haha how was it?
 
 
1 hour later…
4:24 AM
@CBarlow It was awesome. pretty crowded and loud. I won't even mention prices. But great fun nonetheless :)
 
 
2 hours later…
5:58 AM
...
 
@yas4891 But, it isn't even october yet... Are they just warming up?
 
6:16 AM
@christianstuder Oktoberfest always starts in september
 
7:02 AM
@yas4891 And then you're hung over into october?
 
@christianstuder you bet on it :)
 
 
2 hours later…
9:16 AM
2
Q: MEF: load a plugin from a different plugin

KobbenIs it possible to load a plugin from a another different plugin

how does loading a plugin from within a plugin work?
 
Any resources on making custom widgets in Gtk #?
 
9:36 AM
@aateeque not having too much experience with MEF; however you should generally load all plugins from withhin your main application and then have a communication channel between plugins
but then again you've already received answers
 
10:21 AM
@username @christianstuder @CBarlow does any of you know of a framework that lets you easily track usage data of your application?
 
10:36 AM
can't think of any
can you give a few examples
I mean, what kind of data?
p.s. Hello! =)
 
10:53 AM
@username hi.
like the Firefox / Mozilla crash report
 
11:14 AM
hello all
 
@Ashes hi
 
@yas4891 do u know EF ?
and mvc telerik controls?
 
nope
 
11:59 AM
@yas4891 Glad you had fun. =) When you say usage data... you wanna track how many installations there are out there / how often they are used?
 
@CBarlow I'd go beyond that. I guess it would be cool to know how people use your application
 
@yas4891 So actual usage statistics within the confines of your application... that's a tall order. =) Would it need to be reported automatically?
is it a winforms app?
 
@CBarlow: whats up with you and that dinosaur? :P
 
@Patrick He just likes being here. He's a big fan of C#.
 
@CBarlow: Oh, of course. :)
 
12:04 PM
haha
 
@CBarlow I know that this is rather complex. Still it could be an interesting piece of data. I mean: It might be good to know what people are doing with your application
 
@yas4891 I mean... doesn't seem like it would be too bad... Probably need to ask the user if they would like to upload anonymous user statistics. The challenge I think is making your stats secure enough that they can't be manipulated by evil forces out there (Legion of Doom style) and, of course, you'll have to have some sort of server to accept the statistics... Actually that does sound pretty complicated lol
 
I'm currently building this error reporting tool. And I wondered whether I should build that additional information in there
 
@yas4891 I don't know of any existing frameworks either, it could be because "user statistics" is kind of individual per application. A browser and a calculator gets used differently, and thus has different statistics.
 
@Patrick oh so true. Yet this is quite cumbersome to implement and it would be cool, if one could be spared the hassle
 
12:11 PM
@yas4891 Eclipse does this too: Anonymous usage statistics. If you're building an error logger, you can also log arbitrary events...
 
@christianstuder I know about Eclipse. I could have a look into their source on how they actually do this
@christianstuder interesting point. thanks!
 
@yas4891 It's a generalisation. (Hmm, Eclipse might use log4j, as far as I know it's pretty much standard for Java applications.)
 
@christianstuder I'm not building a logging framework or something. I just write some (hopefully) easy to use classes that will generate an automatic error reports when the application goes down
 
Ah, of course, log4j also exists for .NET: csharp-source.net/open-source/logging
 
@yas4891 are you using C#?
 
12:15 PM
plus I wonder what should be in there.
Currently I'm adding all logfiles I can get my fingers on, plus system specific data
@Patrick yes.
 
I wrote an error reporting tool, it just sends the exception traces though. The thing I am missing is the "path" to the error, as in what did the user do up until the error
 
@christianstuder I'm already using log4net (through a facade of my own).
 
I'm more interested on how you get the logs back from the user, you've build anything there yet?
 
Joel suggests that you won't need much more than the StackTrace (fogcreek.com/fogbugz/docs/30/UsingFogBUGZtoGetCrashRep.html)
@christianstuder nope. My customer currently does not run my application on a computer that is connected to the web
ATM it is based on a user with a USB stick
 
@yas4891 I remember having to listen to some different events in both application and assembly.. There are some static events for uncaught exceptions
@yas4891 interesting problem..
 
12:33 PM
@Patrick that has been solved, too
there is a framework for this. Costs 499$ a shot
so you have error / status reporting
+35$ /month subscription for automatic reports through their servers
 
But how do you solve it if you don't have an internet connection?
 
I currently let my users write the report to an USB stick and they manually send me an email
 
Ok
 
I just want to release that component on CodeProjects and thus I am refactoring it
 
1:18 PM
not sure if this was mentioned, but Gibraltar is supposed to be a great solution for this (have not used it myself)
also, hello all
 
1:30 PM
@akmad hello. GIBRALTAR was the component I was refering to
 
@yas4891: @akmad: @christianstuder: @all: hi
@yas4891: @akmad: @christianstuder: @all: may i know how can i hide a datagrid column in compact framework
 
@yas4891 after looking at the prices that was my guess
 
@yas4891: @akmad: @christianstuder: @all: can any one help me
 
@MithunMadhav sorry, don't know
i'd guess something like control.Columns["Whatever"].Visible = false
 
@akmad: ok. thanks for the response. there is no control.Columns property
 
1:41 PM
did you do you due google diligence?
 
@akmad you've got any experience with GIBRALTAR ?
 
nope, but the feature-set looks great and it would have filled a need that we had a while ago
so we looked into buying it but eventually decided against it
 
why so?
 
we were cheap
heh
 
@MithunMadhav look at the bottom of this page msdn.microsoft.com/en-us/library/…
 
1:49 PM
@username: looking..
 
@akmad :-)
@akmad I just don't see how tracking memory consumption would help me find bugs
 
depends if you consider performance issues a bug
we didn't (though likely should have)
for us it just came down to how much value the tool provided versus the cost
 
as Jeff Atwoods wrote: "Performance is a Feature"
 
i forget what the cost was back then though
 
@username: thanks
 
1:53 PM
I could see it being helpful if you had a widely distributed WinForm (or WPF I'd guess) application
 
yeah. When you can divide the costs by a a high number of sold licenses of your softare
 
dealing with the kind of issues you see running on a multitude of PCs would be greatly helped by being able to remotely collect that info
yeah
 
that's the really cool thing about software. Selling another copy comes at virtually no cost at all
hmm.. can I convert this to a LINQ ?
 
 
1 hour later…
3:16 PM
should be possible... something like listOfDirs.SelectMany(dir => dir.GetFiles("*.txt")).Select(file => doSomething(file))
 
It looks good even without Linq
but if you will get UnauthorizedAccessException or IOException in dir.GetFiles then you will not be able to do anything with other files
 
 
3 hours later…
6:25 PM
@username Hmm. I wanted to make it more concise
 
yeah, you could do a single for loop with: foreach (var f in listOfDirs.SelectMany (d => d.GetFiles("*.txt")) { doSomethingToFile (f); }
since the Select in the version from @JörgReichardt won't actually execute until the enumerable is iterated with a call to ToArray () or ToList ()
 
7:08 PM
Exception handling is for the weak and timid
5
 
@yas4891 haha
that's awesome, have a star
 
7:31 PM
@akmad LOL. Thanks :)
is anyone of you on a x86 machine? @akmad @CBarlow
 
nope, running x64 here
 
@yas4891 i am
 
@CBarlow do you know what happens when you try to run an x64 assembly on your machine?
BadImageFormatException just tested it
 
7:46 PM
note that you can specify x86, x64, or Any CPU
Any CPU won't be tied to a specific platform, it'll run as x64 on a x64 machine and x86 on a x86 machine
 
@akmad yap. I knew this. Thanks anyways
 
coolio
 
I was just testing the thing with the x86 vs x64 registry in windows
with Environment. GetFolderPath() giving the 'wrong' path
seems like there's that ugly, but working hack
just create a x64 process and call the function there, than Console.WriteLine() and read it back in
 
would that issue still appear if you were running as x64 on x64?
 
no
at least not in my very minimalistic test app
 
7:53 PM
so wouldn't building the app for "Any CPU" fix the issue?
 
it would, if I could :)
 
you are not allowed to change that?
 
technically not possible. :-/ I'm making calls to an x86 C-DLL
 
ahhh
that really sucks
just curious, how do you determine if you are running on a x64 machine at run time?
 
you'll bang your head
Environment.Is64BitOperatingSystem, Environment.Is64BitProcess
 
7:56 PM
ha! at least they made it easy
 
yes. But that is a pretty interesting corner case
 
8:13 PM
So. I guess I've updated that Question/Answer for the last time
and I won't implement it into my product. How sad is that ?
 
heh... all that work just for the good of us all
 
it was way too interesting to not dig into it
 
9:00 PM
I have had trouble running AnyCPU applications on x64
but if i set it to x86 it's fine
 

« first day (339 days earlier)      last day (4623 days later) »