For the warehouse work under progress, we have a single solution with multiple projects in it
OLTP Database Project
Warehouse Database Project
SSIS ETL project
After the SSIS project is built, I want to move the binaries (XML, really) from the Bin folder to "C:\AutomatedTasks\ETL.Warehouse\" and "C:\AutomatedTasks\ETL"
I cannot find the Post-Build events to do that for the SSIS project. Where are they? If they aren't available, how do I achieve this?
A client of mine has a pure HTML website that was built in the dark ages - they want me to find where their users are coming from, how many individual users there are, etc.
They want to know if the site is being used enough for them to invest the money into renovating it.
I am remote from their site and do not have access to their web server.
Is there something like ComScore for small sites that I can go into to check their usage statistics?
What .NET method has this error message: "Object cannot be cast from DBNull to other types"
The stack traces have been stipped from my logs so I'm looking for a starting point.
If I am wrong then please correct me as I am new in this. I have one thread which display image captured from webcam on a windows created using CreateWindowEx() function. Now when i execute my program I can see that my paint code (in WindowProc()) in never reached (called InvalidateRect() from child thread to redraw), checked using breakpoint.
Actually frame capture and display is being done in thread and I think because its in child thread and Window is in Main thread that is why its not able to call paint event.
Can you help me on this
I am developing an application in C# WPF which will have Client-Server architecture (Client will do products sales billing). I am novice in this area and I asked this question to start my development process.
Click here to view question.
So, ultimately I have selected MySQl, WCf & WPF. Now I have one silly question. Do i need to handle DB concurrency explicitly in my application (like 3 clients inserting data same time) or MySQl will handle this without any conflict?
To accomplish my project i thought, I will create a service in WCf which will do DB queries from client application. Do you have any suggestion to improve my application performance.
this is my sample xml.
<Messages>
<Conversation>
<id>Z100</id>
<ReplyToId></ReplyToId>
<Message>Topic</Message>
</Conversation>
<Conversation>
<id>A100</id>
<ReplyToId></ReplyToId>
<Message>This is a test</Message>
</Conversation>
<Conversation>
<id>M100</id>
<ReplyToId>A100</ReplyToId>
<Message>What kind of test</Message>
</Conversation>
<Conversation>
<id>A200</id>
<ReplyToId>M100</ReplyToId>
<Message>Stage 1</Message>
</Conversation>
<Conversation>
<id>M200</id>
<ReplyToId>A200</ReplyToId>
<Message>Test result for </Message>
</Conversation>
</Messages>
How to get the conversation list based on id using linq in C#. Say for example, If i want to get the conversation for id "A100" which has a link to other conversation based on ReplyToid.
I 'm not familiar with VB.NET at all. I need to convert this function to C#. Can anyone please give me a hand?
Public Function GetAppGUID(ByVal sectionId As String) As String
Dim hexString As String = Nothing
Dim i As Integer
Dim guidlen As Integer
guidlen = 16
If sectionId.Length < guidlen Then
sectionId = sectionId & New String(" ".Chars(0), guidlen - sectionId.Length)
End If
For i = 1 To guidlen
hexString = hexString & Hex(Asc(Mid(sectionId, i, 1)))
Next
GetAppGUID = hexString
End Function
I was looking for a way to create a trigger that would insert the same row into two tables with the same values.
For example, a new row is inserted into pushNotificationQueue as soon as that is inserted, I would like that same exact row to be inserted into messages.
I tried this
CREATE TRIGGER add_to_messages
after insert on mbb_pushNotificationQueue
FOR EACH ROW
insert into mbb_messages select * from mbb_pushNotificationQueue
the only problem with that is that it goes through and adds entries that have already been previously added.
I would like to name my css file mystyles.php. All content within will still be css. I'd like to then include this into my index.php page without using the standard HTML <link> tag. Any direction would be appreciated very much.
Given the variable
string ids = Request.QueryString["ids"]; // "1,2,3,4,5";
Is there any way to convert it into a List without doing something like
List<int> myList = new List<int>();
foreach (string id in ids.Split(','))
{
if (int.TryParse(id))
{
myList.Add(Convert.ToInt32(id));
}
}
I'm getting tired of interviewing "expert WinForms developers" who don't know what an event handler is, let alone something 'hard' like "What is an interface?". We even tried recruiting firms, but we still getting junk.
Where do you get good people? Or do you just pick up college recruits and train them yourself?
I have billing application based on C# WPF, Screenshot is here. as you can see there is a datagrid, programmatically binded. this datagrid contains lists of item going to be billed.
So when user reaches "Print memo" part (in stack panel 2) i have to update listed items in stock table and insert entries in sales table and finally print the memo.
I want to know is there any speedy way to so because as user gives print command I have to clear datagrid which holds product lists and start accepting new lists.
if you could provide few code or link, will be really helpful..
thanks.........
Hi,
I have a CSS style using child selectors in an HTML page as follows:
<html>
<head>
<title>MSO Bug</title>
<style type="text/css" media="screen,print">
ol{list-style-type:decimal;}
ol > ol {list-style-type:lower-alpha;}
ol > ol >ol {list-style-type:lower-roman;}
</style>
</head>
<body>
<div>
<ol>
<li><div>level1</div></li>
<ol>
<li><div>level2</div></li>
<ol>
<li><div>level3</div></li>
</ol>
</ol>
</ol>
</div>
</body>
</html>
In Firefox, the CSS works properly - the first list level starts with '1', the second with 'a', and the third with 'i' as expected.
But this doesn't work in IE7/8!
(I'm aware of descendent selectors - for some reason I can't use that here)
hi all,
i am developing one eclipse plugin. now when user click on any file/folder and click icon(added by me) then i have to get that file location.
can you please help me regarding this one.
Thanks in advance.
i have a uibutton. im using two images for UIControlStateNormal and UIControlStateSelected. when i touch down the button it shows the UIControlStateSelected image for a split second. what is the reason?
Can someone please help?
I use Google code’s Moq framework for mocking within my Unit Tests and Unity for Dependency Injection.
In my Test class
private Mock<ICustomerSearchService> CustomerSearchServiceMock = null;
private CustomerService customerService = null;
private void SetupMainData()
{
CustomerSearchServiceMock = new Mock<ICustomerSearchService>();
customerService = new CustomerService ();
// CustomerSearchService is a property in CustomerService and dependency is configuered via Unity
customerService.CustomerSearchService = CustomerSearchServiceMock.Object;
Customer c = new Customer ()
{
ID = "AT"
};
CustomerSearchServiceMock.Setup(s => s.GetCustomer(EqualsCondition)).Returns(c);
}
[TestMethod]
public void GetCustomerData_Test_Method()
{
SetupMainData()
var customer = customerService.GetCustomerData("AT");
}
public static bool EqualsCondition(Customer customer)
{
return customer.ID.Equals("AT");
}
In my Test class CustomerService class
public class CustomerService : ICustomerService
{
[Dependency]
public ICustomerSearchService CustomerSearchService { get; set; }
public IEnumerable<SomeObject> GetCustomerData(string custID)
{
I GET Null for customer ?????}
var customer = CustomerSearchService.GetCustomer (c => c.ID.Equals(custID));
//Do more things
}
}
When I debug the code I can see CustomerSearchService has a proxy object, but the customer returns as null. Any ideas? Or is there something missing here?
Note: ICustomerSearchService I have implemented below method.
Customer GetCustomer(Func<Customer, bool> predicate);
Hi
Both do the same thing. What is the most efficient way to compare two strings?
Equals() or Compare()? Are there any differences?
if (String.Equals(StringA, StringB, StringComparison.OrdinalIgnoreCase))
{
// Your code goes here
}
if (String.Compare(StringA, StringB, true) == 0)
{
// Your code goes here
}
Hi
Is there a better simplified way to write this query. My logic is
if collection contains customer ids and countrycodes, do the query ordey by customer id ascending. If there are no contain id in CustIDs then do the order by customer name. Is there a better way to write this query? I'm not really familiar with complex lambdas.
var custIdResult = (from Customer c in CustomerCollection
where (c.CustomerID.ToLower().Contains(param.ToLower()) &&
(countryCodeFilters.Any(item => item.Equals(c.CountryCode))) )
select c).ToList();
if (custIdResult.Count > 0)
{
return from Customer c in custIdResult
( c.CustomerName.ToLower().Contains(param.ToLower()) &&
countryCodeFilters.Any(item => item.Equals(c.CountryCode)) )
orderby c.CustomerID ascending
select c;
}
else
{
return from Customer c in CustomerCollection
where ( c.CustomerName.ToLower().Contains(param.ToLower()) &&
countryCodeFilters.Any(item => item.Equals(c.CountryCode)) )
orderby c.CustomerName descending
select c;
}
I have to projects in my .net windows forms, in one form(1st Project) i have timer control already running.
On some request i want to start that timer from the form1 of (second project).
If we are creating new object in second project for the 1st project(Which is currently in running thread) we will not be able to start the timer for the current instance.
How can we access the current running instance from my 2nd project.
Please suggest me some method
I'm stumped on a project Euler question, #290. Can anybody point me in the right direction?
i = 0
o = 0
p = 1
while i < 10 ** 18
j = i.to_s.split('').map(&:to_i)
k = j.inject(:+)
l = 137 * i
m = l.to_s.split('').map(&:to_i)
n = m.inject(:+)
if k == n
o += 1
end
if i == (9 * 10 ** p) * (10 ** p)
i += 18
p += 1
o += 1
else
i += 9
end
end
puts o
Hello
I have two histograms.
int Hist1[10] = {1,4,3,5,2,5,4,6,3,2};
int Hist1[10] = {1,4,3,15,12,15,4,6,3,2};
Hist1's distribution is of type multi-modal;
Hist2's distribution is of type uni-modal with single prominent peak.
My questions are
Is there any way that i could determine the type of distribution programmatically?
How to quantify whether these two histograms are similar/dissimilar?
Thanks
Hi,
I have loaded swf using following code,
var loader:Loader = new Loader();
loader.load(new URLRequest("XYZ.swf"));
addChild(loader);
How do I control height and width of this loaded swf.
I tried
var mc = MovieClip(loader.loaderContentInfo.content);
mc.width = 320;
mc.height = 240;
this gives null object error.