Все вопросы

309 993 вопросов

6
голосов
4ответов
38755 просмотров

Determining size of SharePoint sites / site collections

I'm about to start googling but figured I'd start here. We already found a VB script that enumerates SharePoint site collections / sites. It calls stsadm to achieve this and it recursively evaluates each site to get the sub-sites. I would like to know if we can modify that script to get the si...

4
голосов
3ответов
2447 просмотров

python contour for binary 2D matrix

I want to calculate a convex hull around a shape in a binary NxM matrix. The convex hull algorithm expects a list of coordinates, so I take numpy.argwhere(im) to have all shape point coordinates. However, most of those points are not contributing to the convex hull (they lie on the inside of the ...

5
голосов
4ответов
1742 просмотров

Difference in jQuery with XML namespace and xhr.responseXML between Opera and Firefox

Consider this: <!DOCTYPE HTML> <html><head><title>XML-problem</title> <script src="jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $('<p/>').load("text.xml", function(responseText, t...

110
голосов
13ответов
71581 просмотров

How to check if a DateTime occurs today?

Is there a better .net way to check if a DateTime has occured 'today' then the code below? if ( newsStory.WhenAdded.Day == DateTime.Now.Day && newsStory.WhenAdded.Month == DateTime.Now.Month && newsStory.WhenAdded.Year == DateTime.Now.Year ) { // Story happened tod...

3
голосов
1ответов
567 просмотров

Question about modal forms and threads

In the main thread I need to do the following: Create a second thread where I'll show a modal form that will act as an "activity indicator" Start a task (this task MUST be executed from the main thread) Close the modal form created in the second thread. The question is that I don't know how ...

2
голосов
4ответов
411 просмотров

Which licence should I use?

Say that I have made some software (which has both library form and can be used by end-user too). Now before releasing I was thinking under which license can I release it. I have the following concerns that I can think of (any more concerns can be added): Open source I should retain the complet...

11
голосов
4ответов
5315 просмотров

How to map a point onto a warped grid

Say you have a collection of points with coordinates on a Cartesian coordinate system. You want to plot another point, and you know its coordinates in the same Cartesian coordinate system. However, the plot you're drawing on is distorted from the original. Imagine taking the original plane, ...

1
голосов
3ответов
1514 просмотров

Confusion with the problems of inline function

In the problems of inline functions in wikipedia : http://en.wikipedia.org/wiki/Inline_expansion#Problems it says : "# A language specification may allow a program to make additional assumptions about arguments to procedures that it can no longer make after the procedure is inlined." Could some...

20
голосов
1ответов
34839 просмотров

Fire tab keypress event in JavaScript?

I'm trying to simulate an actual tab key press in JavaScript. I don't want to focus on the next element or anything like that, I just want to make it seem like the tab key has been pressed. The reason why is because I am building a form JavaScript class where I want to be able to use the enter k...

1
голосов
2ответов
1590 просмотров

HardwareButton in Windows Mobile 6

I am attempting to utilize a hardware button on my Motorola MC75 to perform the function of a button event that I created on the form. I have attempted to use the WindowsCE.Forms.HardwareButton class, however, I can't seem to get it working. I can't even capture any KeyDown event on the form. ...

0
голосов
2ответов
280 просмотров

Foreign key needs a value from the key's table to match a column in another table

Pardon the excessive amount of code, but I'm not sure if I can explain my question otherwise I have a Django project that I am working on which has the following: class Project(models.Model): name = models.CharField(max_length=100, unique=True) dir = models.CharField(max_length=300, bl...

0
голосов
2ответов
1901 просмотров

Socket programming with PHP

I am connecting to a remote website via sockets. I am expecting a specific string 'XXX' from the remote site. Upon receipt of the string, I want to send back an 'ACK' 200 OK response back to the remote server. This is what I have so far (assume socket successfully opened); $fp is resource (point...

1
голосов
1ответов
103 просмотров

How to share files in a depot

We are using Perforce. In the depot are some projects that have their own main/branches/releases sub folders. There are also some resource files (png, mp3 and so on) that are needed (shared) for some of the different projects. Those don't have the main/branches/structure. Currently they are store...

1
голосов
3ответов
20961 просмотров

How to Send Packets Between Two IP Hosts on Different Subnets?

Host 1: 10.10.0.1 Host 2: 10.10.1.2 Mask is both: 255.255.255.0 How to send a packet from Host 1 to Host 2?

10
голосов
1ответов
4375 просмотров

Duplicated DLL in the "Detected Dependencies" folder

In my solution I have to project using the same references (AxInterop.QTOControlLib.dll, Interop.QTOControlLib.dll and Interop.QTOLibrary.dll). My problem is that in my deployement project, these dependencies appear twice in the "Detected Dependencies" folder, thus lead to several warning like :...

13
голосов
13ответов
70488 просмотров

Cannot find the object "XXX" because it does not exist or you do not have permission

I'm getting the following error when calling a stored procedure: Cannot find the object "XXX" because it does not exist or you do not have permission. I've checked the database and the SP is there with the correct permissions yet I'm still getting the error. Any suggestions?

0
голосов
1ответов
359 просмотров

PersistenceSpecification and Enums

How does one test enum type properties with PersistenceSpecification. I have it mapped like this Map(x => x.AccountStatus).Column("Status").CustomSqlType("int").Not.Nullable(); and I check it like this spec.CheckProperty(o => o.AccountStatus, UserStatus.Disabled) but it fails with ...

4
голосов
1ответов
2686 просмотров

Java and .NET interop on (RSA) signatures

I'm signing some data on a .net-based smartcard and trying to verify that signature in a java environment - but without success. Smartcard (c#): RSACryptoServiceProvider rsaProvider = new RSACryptoServiceProvider(1024); // In a different method, rsaParams.Exponent and rsaParams.Modulus are set ...

0
голосов
3ответов
6765 просмотров

Can I run a Thread multiple times?

this is my Problem : I have a stack of threads , each thread will do its job and then return to the stack at the first time the thread is working well after it finishes the job if I want to pop it from the stack to run again : Exception will appear which said this thread is running or terminated ...

0
голосов
2ответов
190 просмотров

can't understand these xml encoding woes

The following hunk of code (snipped for brevity) generates an xml doc, and spits it out to a file. If I open the file in Visual Studio it appears to be in chinese characters. If I open it in Notepad it looks as expected. If I Console.WriteLine it look correct. I know it's related to encoding, ...

1
голосов
2ответов
154 просмотров

SQL Server Union of a single label header and a boat load of data columns

I have a SELECT * FROM #tmp and it returns 131 records. I wish to prepend this with a label so the result is format=transaction, followed by the rows each containing 131 columns. It is cumbersome to do the following; is there a nicer method? SELECT 'format=transaction', NULL, NULL, NULL, NULL, ...

2
голосов
8ответов
532 просмотров

Please explain this behavior with character arrays/strings in C

I get this when I was trying something (just for understanding). Please explain this behavior: First attempt: void main() { char src[] = "vinay"; int i; // char name[5] = "test"; char *name= "abcde"; printf("%s \n", name); if (*(name+5) == 'abcde 6th char is n...

104
голосов
4ответов
27968 просмотров

nServiceBus vs Mass Transit vs Rhino Service Bus vs other?

Just doing some quick spikes into possibly using a messaging system to process files that are in a nicely decoupled work flow system. What are the pro's and cons that people have found of using each of the above frameworks? What are the advantages of using these versus a hand-rolled MSMQ system ...

7
голосов
6ответов
674 просмотров

What are common java web development practices?

I'd like to learn more about/better understand common java web development practices of development groups that have at least two teams - web designers and web component developers. Particularly, I'm interested in understanding things like: Assuming there is a code repository, do all teams chec...

13
голосов
2ответов
15276 просмотров

Do not understand passing parameters in seam

As I debug my seam application, it dawns on me that I don't really understand how parameter passing works. The following terminology really has me confused. So I am asking this very general question in the hopes of getting a good explanation of what works with what and what certain things are f...

4
голосов
6ответов
1218 просмотров

How can I design a class to receive a delegate having an unknown number of parameters?

I continuously find myself having to write timed windows services that poll outside queues or run timed processes. I consequently have a fairly robust template by which to do this, but I find that every time I write a service to do this, I start with the same template and then write the process ...

1
голосов
3ответов
244 просмотров

How can I SELECT 16 records at random from a range of rows in MySQL?

I want to display a list of 16 of the most popular items in my database, but I want that list to be different every time. So from say, the top 50 downloaded items, choose 16 at random and return that in the result. Is that possible with just one query?

1
голосов
7ответов
23535 просмотров

how to append to a object with innerHTML

Is there a way to add information to a DOM object with .innerHTML without replacing what exists there? For example: document.getElementById('div').innerHTML = 'stuff'; Would return <div id="div">stuff</div> And then a similar call: document.getElementById('div').innerHTML = ' and t...

2
голосов
3ответов
226 просмотров

Casting problems with connected Generic classes

Here's a thinned out version of the classes I have. public abstract class BaseParent { } public abstract class ChildCollectionItem<T> where T : BaseParent { // References a third-party object that acts as the parent to both the collection // items and the collection itself. publi...

7
голосов
5ответов
5056 просмотров

Does Selenium RC support IE8?

Can anyone confirm if Selenium RC server fully supports IE8?