I travel a bit and I'm looking for a hosted vcs with good support for Visual Studio. My projects aren't open source so I need security as well. Any recommendations or suggestions? Thanks
I can use this code to get the return address.
string returnAddress = Bus.CurrentMessageContext.ReturnAddress;
But how do i get the "to address" of the message. i.e. the Queue that NServiceBus pulled the message from.
I had a look through the source and it seems Bus.Transport.Address is what i want but there is no get on Transport
Note: I am within the "Handle" method of a message handler.
I need to delete/remove an item in my Iphone application. For that i should make tat item wiggle(shake) when i give long press. And then it should ask for an alert to delete or not???
Can anyone guide me plz??? It ll be more helpful if u help me with a source code
Tanx in advance
I am trying to read dataSource ad Catalog from connectionString in web.config in Silverlight business project. Unfortunately when I used "SqlConnectionStringBuilder", I could not read connectionstring the has "connectionString="metadata=res:///MainDatabase.Main.csdl|res:///MainDatabase.Main.ssdl|......."" where as it work for
"connectionString="Data Source=My-PC\SQL_2008;Initial Catalog =...."".
I could get them using "Split" however, I don't like that solution. Is there any way to get my requirements?
Thanks
I wrote an implementation of the Mandelbrot set in Java using a JComponent but I'm getting strange results when I render it. Besides that everything compiles right. I'm just not for sure what I'm doing wrong with it. Any code review also would be appreciated.
My source is posted on pastebin since it would take up too much room here:
JMandelbrot.java
Mandelbrat.java
I only submit the binary file to Apple. I didn't submit any source code to Apple. Apart from manually check what you used. How Apple check what API you have called? How did Apple know?
My Application Database Without Project and without Source safe, i planned to make my DB to be as project and add it to TFS, but I have no idea how to script the stored procedures, Triggers, Views, Functions, and what is the best practice to Make Update Script for All My stored procedures, Triggers, Views, and Functions to My customers DB.
Hi all,
I'm trying to setup a parallel CMake-based build for my source tree, but when I issue
$ cmake .
$ make -j2
I get a jobserver unavailable: using -j1. Add '+' to parent make rule warning. Does anyone have an idea if it is possible to fix it somehow?
I'm currently working on a Java Application and it's my first Java App. So I created a file Splash.png and placed it into the source folder resourcesof the application.
I already managed it to show the Splash image on startup, with the JVM param -splash:resources/Splash.png, but my question is;
How can I show this splash screen again, but programmatically?
I need this functionality for the About menu item.
Is there a way in TortoiseSVN - without the regular svn client binaries being installed on the system - to detect an orphaned checkout's revision number?
"Orphaned" meaning that the source it was checked out from no longer exists.
<?xml version="1.0"?>
<!-- This module loads an image. -->
<mx:Module width="100%" height="100%"
xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Image source="trinity.gif"/>
</mx:Module>
I have such 10 modules. Is there any Method in Module Class where i can hide and show based on user login.
Is it possible to report all the observers of the 'ready' events. I have a page where something is happening twice, and i'm trying to chase it back to the source.
Hi
I have implemented an 'EqualTo' Validation Attribute, that compares two Properties of an object, during ModelBinding in ASP.NET MVC 2.
The problem I have is not with it not working, because it does work.
The problem is, when I do my request - which is an ajax request - I get back errors to my front-end, where it sets a class on the input fields to indicate invalid input. What it does is iterate through a list of Errors (in a JsonResult), and set a class.
This is all dandy.
But the ValidationAtrribute I am having trouble with is set at a Class-level, i.e., it's not like other ValidationAttributes where you set something like "[Required]" or something like that.
[AttributeUsage(AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
public class EqualToAttribute : ValidationAttribute
{
public String SourceProperty { get; set; }
public String MatchProperty { get; set; }
public EqualToAttribute(string source, string match)
{
SourceProperty = source;
MatchProperty = match;
}
public override Boolean IsValid(Object value)
{
Type objectType = value.GetType();
PropertyInfo[] properties = objectType.GetProperties();
object sourceValue = new object();
object matchValue = new object();
Type sourceType = null;
Type matchType = null;
int counter = 0;
foreach (PropertyInfo propertyInfo in properties)
{
if (propertyInfo.Name == SourceProperty || propertyInfo.Name == MatchProperty)
{
if (counter == 0)
{
sourceValue = propertyInfo.GetValue(value, null);
sourceType = propertyInfo.GetValue(value, null).GetType();
}
if (counter == 1)
{
matchValue = propertyInfo.GetValue(value, null);
matchType = propertyInfo.GetValue(value, null).GetType();
}
counter++;
if (counter == 2)
{
break;
}
}
}
if (sourceType != null && matchType != null)
{
return sourceValue.ToString().Equals(matchValue.ToString());
//return Convert.ChangeType(sourceValue, sourceType) == Convert.ChangeType(matchValue, matchType);
}
return false;
}
private object _typeId = new object();
public override object TypeId
{
get
{
return this._typeId;
}
}
}
Now this code works, except for the fact that the validation process does not return which Property failed. And I simply can't figure out how to make it return one of the two. In reality I don't care which one it returns.. because both are failing..
Do you have an idea how to make it return the/or both Property/Properties that is/are failing.
In the same vein as http://stackoverflow.com/questions/2593399/process-a-set-of-files-from-a-source-directory-to-a-destination-directory-in-pyth I'm wondering if it is possible to create a function that when given a web directory it will list out the files in said directory. Something like...
files[]
for file in urllib.listdir(dir):
if file.isdir:
# handle this as directory
else:
# handle as file
I assume I would need to use the urllib library, but there doesn't seem to be an easy way of doing this, that I've seen at least.
I have deployed successfully the dotnetopenid dll under IIS7 but on my shared hosting service it says:
Compilation Error Description: An
error occurred during the compilation
of a resource required to service this
request. Please review the following
specific error details and modify your
source code appropriately.
Compiler Error Message: CS0246: The
type or namespace name 'DotNetOpenId'
could not be found (are you missing a
using directive or an assembly
reference?)
Why ?
I'm considering optimal open source solution for storing xml documents with further querying on them effectively. Amount of data will be small. As far as I understand native xml databases might form a proper solution for my case. They obviously store xml documents in highly efficient way. It would be great to learn your experience.
Any suggestions on proper solution? Have you got any experience employing xml storage engines in your apps?
Hi,
i always like to real-time edit a web page source in the browser and updated as i type, but firebug really sucks, i can't insert scripts in the current page, some times the changes i type aren't updated at all, Is there any robust firefox/chrome extension for that?
i try to temporarely edit/add code to an existing web page in the internet, not a local one
Thanks
As you might know katmouse enables scrolling over non active windows. Which would be especially great in vs 2010 because now you can take source code windows to other monitors. But of course it does not work. Is there a trick to make WPF receive the right message?
I'm using the post-receive-email script included with git. (Source is here.) It works just fine, but I want each email to be sent from the author of the commits pushed. How do I do it?
My post-receive file currently looks like this, and I want to customize the from-email-address.
#!/bin/sh
export [email protected]
$(dirname $0)/post-receive-email
So for example we have real life photo. how to get (relativly to image dimentions for example) the distance from wall to girls, from girls to trees if all we know ts this picture?
Any papers with algorithms or Open Source programs doing this would be appreciated.
So How to detect how far the object on photo is from another objects on that photo?
I want to show a table with the list of strings which are localized.
The straightforward method would be:
a) Point data source to my ViewController
b) Define an array
c) Allocate the array in my ViewController and init (arrayWithObjects) it with the strings from localized resources (NSLocalizedString)
d) Use this array in UITableViewDataSource delegated methods
Mainly my concern is item b). The construction looks quite heavy and I wonder whether I can somehow specify and load whole list of localized string at once.
Hi,
Has anyone used scipy-cluster for python? I am trying to compile its source code with python 2.6 but I get some irrelevant errors. has someone had the same problem?
hi ,All
i want to use KCalander (which is Open Source on www.code.google.com) in my project but i want to allow select
only one date from awailable dates (means every monday of limited time period/dates awailable for reservations)
what am i want to display only that dates/day in KCalander.
is that possible with the use of UIDatePicker controller.
which one is easy sollution ?
waiting for your reply...
Thanks in advance...
Yakub Moriss
In the scenario below, how can I get references to the variables declared during eval()?
function test() {
eval("var myVariable = 5");
var locals = magic() // TODO What should we do here?
alert(locals["myVariable"]); // returns myVariable
}
Just a note: JavaScript being evaluated comes from a trusted source.