The following example will compare all files in a directory to input string ($string) and return matching filename. It is not very elegant and efficient way of accomplishing that. For speed purposes I modified for condition to only compare to files that start start with first word of $string.
Problem with this script is following - I h...
hi there
i need to compare two objects but compare a number of their properties in one hit.
this is not for sorting, but instead to confirm whether anything has changed; as one is the old saved instance, and the second is a newly imported instance of the same thing
i assume this is best served by writing a custom comparer. just am a bi...
I want to open two documents in compare mode programatically.
Something like:
Process.Start("winword.exe", string.Format("/n /compare \"Document.docx\" \"Document_V2.docx\""
Is that possible?
...
I wrote this but it only returns exact matchs such as 'Carburetor' not 'Brand X Carburetor'
Any help would be greatly appreciated!
SELECT [Col]
FROM a
WHERE ([Col]) IN
( SELECT [col]
FROM B
)
UNION ALL
SELECT Distinct [col]
FROM B
WHERE ([col]) IN
(
Select [col]
FROM A
)
...
For example I have Assembly1.dll (1.0.0.0) and Assembly1.dll (1.0.0.0), in differents folders and I want to compare differences (if each assembly has the same Classes and each class the same methods, or compare all MSIL code). any APIs for do this?
There are tools, like this http://stackoverflow.com/questions/652432/compare-compiled-net...
I want to a visualize web file compare tool,that can embed into my app,I know there some software like beyond compare,it has done great job,but it on windows & need buy licence,if someone has develop a web version,then it can cross platform,
does some already achieve this?
if it is python - friendly is great appreciated
...
I've been working with web-forms and I want to switch to the MVC pattern based on some facts and other goodies that I see in it. I was going good with MVC review when I came across the latest Dynamic Data (which in past was called Dynamic Data Templates).
Correct me if I'm wrong but I believe in backend both MVC2 & DD use the MVC patter...
Hi all,
I'm dealing with two files, both of which have lines that look like the following:
This is || an example || line .
In one of the files, the above line would appear, whereas the corresponding line in the other file would be identical BUT might have the '||' items in a different position:
This || is an || example || line .
I ...
I am a tester and i need to compare two data sets structure (not table data) in SAS.
I tried to use 'proc compare' but it compares the data. i want to compare dataset/table structure (column name, data type, null constraints etc.)
Can any one pl help.
thanks
...
Hey,
I have to check if a dictionary is the same as it was yesterday, if it has changed.
In PHP I could have serialized an array and compared the resulting strings from yesterday and today. However, I don't know how to do it in Py. I've read a little about Pickle and maybe it could be done with md5 somehow?
So basically I need a way t...
I'm implementing a game. I have a state tree and a set<> based priority queue that sorts the states on their costs. For this I have the < operator implemented as:
struct DereferenceCompareState :
public std::binary_function<State*, State*, bool>
{
bool operator()(const State* lhs, const State* rhs) const
{
verbose6("comparing ...
Hi all,
This particular problem is easy to solve, but I'm not so sure that the solution I'd arrive at would be computationally efficient. So I'm asking the experts!
What would be the best way to go through a large file, collecting stats (for the entire file) on how often two words occur in the same line?
For instance, if the text cont...
at first i have a 2d array storing many numbers and then i used an array of hushtables to store pairs formed by the numbers of each row of the 2d array.
for example in the first row of the 2d array, the numbers are 1 2 3 4 5
then the pairs should be 1,2 1,3 1,4 ,1,5 etc.
the code for generating the pairs and store in hashtable is
H...
Like the title, How to compare text?. For a example, go to textdiff.com.
...
I have 2 variables of type object that needs to be compared using a dynamic operation that is based on an enum:
public enum OperationType
{
None,
EqualTo,
NotEqualTo,
GreaterThan,
GreaterThanOrEqualTo,
LessThan,
LessThanOrEqualTo
}
You can make the assumption that the underlying type of the variab...
i want to compare two date and time with each other and
i want to select records that "StartTime" is greater than now time and the "StartDate" is greater than now date.
but output is not correct.thanks in advance.
my tabale'records are:
StartDate StartTime
-------------------------------
1389/07/11 11:04
1389/06/23 21:17
1389/...
Hello,
I am trying to manage three filehandles via IO::Select in perl. I have 1 input handle, 1 input/output handle, and 1 output handle. Im having a little trouble determining which filehandle is which when processing Select's return arrays of can_read() and can_write();
Example below
Any advice on how to actually compare these two f...
I am writing a very process-intensive function in PHP that needs to be as optimized as it can get for speed, as it can take up to 60 seconds to complete in extreme cases. This is my situation:
I am trying to match an array of people to an XML list of jobs. The array of people have keywords that I have already analyzed, delimited by spac...
Is there a good way to compare the DLLs loaded between two machines running the same app. (And to replicate the process between N other machines, two at a time?)
Background: I am trying to track down a configuration/setup issue. It's the age-old, DLL-hell-type problem where an app will run on one machine but not on another.
I have elim...
I am using both Daitch-Mokotoff soundexing and Damerau-Levenshtein to find out if a user entry and a value in the application are "the same".
Is Levenshtein distance supposed to be used as an absolute value? If I have a 20 letter word, a distance of 4 is not so bad. If the word has 4 letters...
What I am now doing is taking the distanc...