What is the best way to put together a "shortcut" to launch a IronRuby REPL with some .NET assemblies preloaded? I think there is a way to do this in Powershell (via Snapin or Module) and I'm looking for something similar in IronRuby.
...
I've found information about Editor and Detail templates based on object name (i.e. DateTime, MyCustomObject) for use with MVC system. I am just wondering if it was possible for creating templates for use when creating the items in a similar fashion, where the form used for Creating the items is going to be different than the Editing Sc...
My project needs to handle three databases, that means three session factories. The thing is if i do something like this with fluent nhibernate:
.Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()))
the factories would pick up all the mappings, even the ones that correspond to another database
I've seen th...
I looked at this post http://stackoverflow.com/questions/547468/assembly-references-wont-resolve-properly-on-our-build-server but it didn't help the issue.
I am (extremely) new to TFS, and just installed 2010 on a VM. I imported a project and got everything working-ish. I went to create a new build through team explorer, and set it up...
I know that with Network Load Balancing and Failover Clusteringwe can make passive services highly available. But what about active apps?
Example: One of my apps retrieves some content from a external resource in a fixed interval. I have imagined the following scenarios:
Run it in a single machine. Problem: if this instance falls, the...
Hi everyone,
I have say a dozen types T which inherit from EntityObject and IDataObject.
I have generic the following interface
IDataManager<T> where T : EntityObject, IDataObject ...
I have also base class for data managers
BaseDataManager<T> : IDataManager<T> where T : EntityObject, IDataObject ....
And i have particular classes...
I'm trying to port an existing WCF client application to run on Linux under Mono. Right now I'm testing everything out, figuring out what works on Mono and what doesn't.
The client makes a super simple call over basicHttpBinding. It works great, until I enable SSL (that is, specify BasicHttpSecurityMode.Transport in the binding).
Runn...
I need to find a way to determine if the Visible property of a control is set via a property change or if is inheriting it value from its parent. Using the Reflector, I find that the functions this.GetVisibleCore() and this.GetState() are both internal methods so I cannot call them.
The widgets themselves are created dynamically so I d...
This is the bane of my programming existence. After deploying an application, when this error crops up, no amount of debug dump tells you WHAT object was not instantiated. I have the call stack, that's great, it tells me roughly where the object is, but is there any way to get .NET to tell me the actual name of the object?
If you catch ...
Right now I am setting the Linker/Advanced/KeyFile option.
I am getting the "mt.exe : general warning 810100b3: is a strong-name signed assembly and embedding a manifest invalidates the signature. You will need to re-sign this file to make it a valid assembly.".
Reading from the web, it sounds like I have to set the delay signing opti...
I love the "View as HTML" option in GMail when viewing attachments. I would love to be able to use this feature programatically, i.e. check a GMail inbox, read emails, if there are attachments, get the html view and use that content.
I'm looking to do this in C#. Does anyone know if this is possible or if there's another solution to eas...
What NEW features has WCF in .NET Framework 4 vs .NET Framework 3.5? What Is new, what was fixed (in general - I do not want to get into bug fixed numbers=)?
...
Is there a way to bind a property of the listboxitem to one of it's owning listbox? I want it in a template so I believe that rules out ElementName.
...
Hi,
I'm new in using Python. I would like to develop Windows GUI Application using Python. After some research, I found that I have 2 options:-
IronPython + .NET Framework
Python + PyQt
May I know which one is better for Windows Application development? Which option has more features (e.g. database support, etc)?
Other than the .NE...
From time to time I need to run a full build of the entire tool chain for our software on my development machine. To save on power my I've got my dev machine set to go sleep after 20 minutes of inactivity. Building the full tool chain can take up to an hour and I'll often just go to lunch. However, if I forget to disable sleep I can retu...
Hi.
I make pop-up message for my application. this form is on wpf, and in the a thread i check a value and for some result , I show that pop-up to show message.
In the thread when I create pop-up class(type of WPF window class) an error throw by pop-up Contractor. "The calling thread must be STA, because many UI components require this...
I have the following code:
foreach (byte b in bytes)
{
byte inv = byte.MaxValue - b;
// Add the new value to a list....
}
When I do this I get the following error:
Cannot implicitly convert type 'int' to 'byte'.
An explicit conversion exists (are you missing a cast?)
Each part of this statement is a byte. Why does C# want ...
<Button Name="MyButton" Content="Test" FontStyle="Italic" />
In the above XAML definition of a button, the FontStyle property is set to Italic. The designer is somehow able to populate a list for me to choose from when I hit the = sign. How is this achieved?
Before you answer, consider that the FontStyle property is, appropriately eno...
I am using VS 2010 RTM and trying to perform some basic validation on a simple type using MetadataTypeAttribute. When I put the validation attribute on the main class, everything works. However, when I put it on the metadata class, it seems to be ignored. I must be missing something trivial, but I've been stuck on this for a while now.
...
I am using the Signature control in OpenNETCF. It works great for most everything I need.
However, I need a way invert the signature and load it back in.
It has a call to get the "bytes" for the signature (GetSignatureEx()). It returns a byte[] of the signature. This signature can then be loaded back in with LoadSignatureEx().
I ca...