common

.NET SOAP Common types

Is there a way when creating web services to specify the types to use? Specifically, I want to be able to use the same type on both the client and server to reduce duplication of code. Over simplified example: public class Name { public string FirstName {get; set;} public string Surname { get; set; } pu...

Dotnetnuke 3.0.12 installing site "Could not load type 'dotnetnuke.common.global'"

I received a dotnetnuke 3.0.12 installation in a zip file and made a web site under c:\inetpub\wwwroot and copied the files. When I access default.aspx, I get the error: Could not load type 'DotNetNuke.Common.Global'. ...

How to find common strings among two very large files?

I have two very large files (and neither of them would fit in memory). Each file has one string (which doesn't have spaces in it and is either 99/100/101 characters long) on each line. Update: The strings are not in any sorted order. Update2: I am working with Java on Windows. Now I want to figure out the best way to find out all the s...

Functionality Scripts

Is it possible to write a program to do things you constantly do on a computer? For example, log into a torrent site and download a .torrent file then start it. Or go through folders and extract any RARed files? Or just do any monotonous thing you do daily on a computer. Just need a kick in the right direction. Thanks, -Pete ...

how to get variable names at runtime?

The use case is this: public void testMethod(String para1, String para2, String para3){ if(para1==null){ System.out.println("para1 cannot be null"); } if(para2)... } As the check null code above, we will be repeating ourselvous on writing the same code to check every parameter. But we cannot really factor out a common...

writelog.cs; error log.txt

I am creating a common class called writelog.cs This is to store the common method to call in all my programs (aspx page) After which, whatever error is produced, it will come out to an error log.txt This is my codes for writelog.cs And i got this error: The name 'Global' does not exist in the current context /// <summary> /// Summary ...

Zend Framework a common file to put functions in that can be accessed from a view

I need to have a place to put some common functions that various view scripts will use such as creating some html by passing it a variable. I know about using helpers, but I want to be able to put many functions inside it not just one helper for each function. Is it a plugin that I need to create? thanks ...

How to manage Tomcat 6 libraries into subfolders under %TOMCAT_HOME%/lib?

I use Tomcat 6.0.20 and JDK 1.6.0.13. How can I load libraries from sub-folders of "%TOMCAT_HOME%/lib/" without taking the .jars out of sub-folders and putting them straight into "%TOMCAT_HOME%/lib/"? The reason I want to do this, is because many apps are going to be sharing lots of libraries. So, for the sakes of organization I want ...

ant common targets are not recognized by eclipse

Hi All, I have added all common targets like (init,clean,getivy etc) in ./common/common.xml and added import file="${basedir}/common/common.xml" in build.xml. When i build the project, its working fine.But, When i open build.xml in eclipse IDE , i see some "Red" marks underneath "targets" which has a dependency targets that are defined...

Find common chars in array of strings, in the right order.

Hello, I spent days working on a function to get common chars in an array of strings, in the right order, to create a wildcard. Here is an example to explain my problem. I made about 3 functions, but I always have a bug when the absolute position of each letter is different. Let's assume "+" is the "wildcard char": Array( 0 => '48ca1...

Leopard Console logs for common files reference

Hi, I am using plugins for one of my Mac OS X(desktop) application. These plugins refer to a common file that contains base class implementation of both the plugins. When the application refers to this common base class, the following message is displayed in the console by the system: " is implemented in both and . One of the two wil...

Will including unnecessary php files slow down website?

The question might prompt some people to say a definitive YES or NO almost immediately, but please read on... I have a simple website where there are 30 php pages (each has some php server side code + HTML/CSS etc...). No complicated hierarchy, nothing. Just 30 pages. I also have a set of purely back-end php files - the ones that have ...

SOAP - Why do I need to query for the original values for an update?

I'm taking over a project and wanted to understand if this is common practice using SOAP. The process that is currently in place I have to query all the values before I do an update cause I need to pass back all the values that are not being updated. Does this sound right? Example Values: fname=phill lname=pafford address=123 main phon...

What would be the safest way to store objects of classes derived from a common interface in a common container?

I'd like to manage a bunch of objects of classes derived from a shared interface class in a common container. To illustrate the problem, let's say I'm building a game which will contain different actors. Let's call the interface IActor and derive Enemy and Civilian from it. Now, the idea is to have my game main loop be able to do thi...

multiple classes with same methods - best pattern

I have a few classes in my current project where validation of Email/Website addresses is necessary. The methods to do that are all the same. I wondered what's the best way to implement this, so I don't need to have these methods copy pasted everywhere? The classes themselves are not necessarily related, they only have those validat...

Is there a name for this type of algorithm?

I have a 2 dimensional array forming a table: [color][number][shape ] ------------------------- [black][10 ][square ] [black][10 ][circle ] [red ][05 ][triangle] [red ][04 ][triangle] [green][11 ][oval ] and what I want to do is group largest common denominators, such that we get: 3 groups group #1: color=bl...

No assemblies found on MoMA

Hi folks, Debian 5.0 32 bit Mono 2.4.2.3 Test Against Mono Version 2.6 After starting MoMA (Mono Migration Analyzer) On "Choosing assemblies to analysis" page I found no assemblies there. Please advise how to load/add assemblies there? TIA B.R. satimis ...

Common elements between two lists not using sets in Python

I want count the same elements of two lists. Lists can have duplicate elements, so I can't convert this to sets and use & operator. a=[2,2,1,1] b=[1,1,3,3] set(a) & set(b) work a & b don't work It is possible to do it withoud set and dictonary? ...

Finding all points common to two circles

In Python, how would one find all integer points common to two circles? For example, imagine a Venn diagram-like intersection of two (equally sized) circles, with center-points (x1,y1) and (x2,y2) and radii r1=r2. Additionally, we already know the two points of intersection of the circles are (xi1,yi1) and (xi2,yi2). How would one gene...

SQL most executed query?

Hi everyone, I have a database in SQL Server 2008, and there are a lot of machines making queries against it. I know there is a SQL Server profiler, but I don't know very well how to use it. Is there any way to know what are the most common queries executed in the database? Through the profiler or not, it doesn't matter. Thank you ver...