compare

Compare Validator - Validation remains when text is changed

Hello all. I have come unstuck with a simple compare validation. I have the following code <asp:TextBox ID="tbxHowMany" runat="server" style="z-index: 1; left: 310px; top: 385px; position: absolute; text-align: center;" Width="75px"></asp:TextBox> <asp:CompareValidator ID="CompareValidator1" runat="se...

Detecting duplicate binaries in the same directory (Windows)

Hello! I have about 30 files in a directory varying from 64KB to 4MB that are BIN files. I need to find if there is duplicate files in there... Many files have the same size. I would like to find if there are binary identical files in there. Anyone know a way to do this? I'm under Windows XP Pro. Thanks! ...

How to compare JARs in Araxis Merge?

I'm using Araxis Merge to try and compare two java archive files. I've done it in Beyond Compare but have recently switched to a mac. Right now Araxis treats the jars like files and i just see a lot of binary/hex stuff, I'd like to see which classes have differences and to treat the jar like a folder. Any ideas? ...

From an image, how do I determine the shade?

Hi All, For a database app I'm trying to determine the average shade of a section of photo, against a colour scale. Being a novice I'm finding this very difficult to explain so I've created a simple diagram showing exactly what I'm trying to achieve. http://www.knockyoursocksoff.com/shade/ If anybody has the time to give me some ...

Ruby: Is a string in a list of values

Newbie Ruby question: I'm currently writing: if mystring == "valueA" or mystring == "ValueB" or mystring == "ValueC" is there a neater way of doing this? ...

comparing csv files

I want to write a shell script to compare two .csv files. First one contains filename,path the second .csv file contains filename,paht,target. Now, I want to compare the two .csv files and output the target name where the file from the first .csv exists in the second .csv file. Ex. a.csv build.xml,/home/build/NUOP/project1 eesX.ja...

Are there any disadvantages of using PHP compared to html?

I have a few pages out (not too many though) and I was just thinking that I might want to change all of the pages to php instead of html. I am planning on using php in the future, I am just not quite ready yet to make it my full-time language. I know anythign you can do with html pages, you can do with php pages, but I just wanted to kno...

Java sort strings in codepoint (UTF-32) order

Other than to convert to UTF-8 bytes, or write a compare function that iterates and compares, is there some method I'm missing in JDK 1.6 that compares two strings in full Unicode codepoint order instead of in UCS-2 codepoint order? I appreciate that this is not a hard thing to code. I was puzzled, however, that 1.6 has the various 'cod...

SQL Server Conditional Comparing

I have two tables: CREATE TABLE #HOURS (DAY INTEGER, HOUR INTEGER) CREATE TABLE #PERSONS (DAY INTEGER, HOUR INTEGER, Name NVARCHAR(50)) GO INSERT #HOURS VALUES (1, 5) INSERT #HOURS VALUES (1, 6) INSERT #HOURS VALUES (1, 8) INSERT #HOURS VALUES (1, 10) INSERT #HOURS VALUES (1, 14) INSERT #HOURS VALUES (1, 15) INSERT #HOURS VALUES (1...

MonoTouch Comparing Strings

I have an app which lists many languages. In the app I compare language names. When I compare language names with no accents it works and the compare is true. When I compare languages with accents, it doesn't think they are equal. In this case they are NOT equal (but should be). Language = "Español"; MonoTouch.Foundation.NSString s =...

How to compare two objects (the calling object and the parameter) in a class?

Hello, I am writing a "Date" class for an assignment and I am having trouble doing one the of the functions. This is the header file for the class. class Date { public: Date(); // Constructor without parameters Date(int m, int d, int y); // Constructor with parameters. // accessors int GetMonth(); ...

php question... how to check if something is between two values?

I know I'm missing something easy here... I've been trying different operators, but haven't been able to figure this out... How do I go about checking to see if the current date is between two other dates? So, if I have a from date of 2/2/2010 and a to date of 2/10/2010, how can I return TRUE if the current date (2/4/2010) falls betwe...

What is the difference between platform and tool?

The question is telling everything Reason why I ask: Maven is more of a platform than a tool, while you could consider Maven an alternative to Ant, you are comparing apples to oranges. "Maven" includes more than just a build tool. What the heck does this mean? ...

How to compare the files returned from SVN diff with the concatenated files in ANT

I am trying to create an ANT build script which will detect which files were changed during the development (by diff SVN command) and output the list of files which are built from these changed files. I would like to check all the Concat tasks within the build file and compare the filelists within them with the diff changed files list c...

php mysql compare two columns return mismatches

I have two columns in different product tables. tblproduct1.partno is an old product list tblproduct2.partno2 is a new one Both partno columns should have identical model numbers but they don't. When executing the below query, I get about 300 model numbers that don't match when comparing counts from both tables. tblproduct2 has 1955...

String comparison in .Net: "+" vs "-"

I always assumed that .Net compares strings lexicographically, according to the current culture. But there is something strange when one of the strings ends on '-': "+".CompareTo("-") Returns: 1 "+1".CompareTo("-1") Returns: -1 I get it an all cultures I tried, including the invariant one. Can anyone explain what is going on, and how...

Java Compare Addresses

Hi, Does anyone know a library to compare addresses in Java ? Something that would give equality on addresses, written in different ways. For example, it should recognize that "22 Acacia Avenue" and "22 acacia av." is the same address. Of course, this can escalate a lot, that's why i'm asking. Thanks in advance. ...

Comparing an NSDate to [NSDate date]

I am trying to force a user to select a date in the future with a date picker. I obviously used the compare: method, however, when I do the following code, even if it's the same date as [NSDate date], it tells the executes the if statement. Here is my code: if ([datePicker.date compare:[NSDate date]] == NSOrderedAscending) // If the...

Program to synchronize data and schema in two SQL server 2005 database

Hi all. I need a software that let me compare and synchronize two database on two different server. I found this, and was great until i deploy the site and put the database online. Now I can't connect to remote server. The standard port of SQL server is opened to my IP. Anyone use it? Do I miss something? Does anyone know a better soft...

How to Copy format from remote CVS to local file eclipse ?

Dear All, I am new to eclipse. I checked in java file from remote CVS.then I modify the file then I compare with latest from head. the comparison highlight of the file even parts I didn't change. How to Copy format from remote CVS to local file eclipse ? any ideas ? thanks in advance,,,, ...