Comparing very similar but different strings ...

Hi
I have two strings that are supposed to be equals and I want know if the string are:
a) equals
b) almost equals
c) completely different
Example pairs maybe: "Syncopation" & "Sincopation"; "Mike & Rich" & "Rich & Mike"
Is such a library anywhere or maybe a algorithm to write it myself?

http://jakarta.apache.org/commons/codec/apidocs/org/apache/commons/codec/language/Soundex.html
http://www.devarticles.com/c/a/Development-Cycles/Tame-the-Beast-by-Matching-Similar-Strings/3/

Similar Messages

  • 10.4.6 Won't reboot - similar but different problem from others

    I'll pile on here. I envy those of you who were able to safe boot. Mine freezes @ grey apple with no spinning gear icon. I archive/installed (used the combo update) (repaired permissions beforehand) and we're now well past 20 minutes of grey apple and no sounds of spinning HDs inside. Am absolutely baffled. I'm fortunate enough to have a second internal drive with a fully functional 10.4.5 system on it so I'm not hooped that way but would sure love to solve this problem.Any ideas.

    Try to troubleshoot just the bad internal with no external attached using this article:
    http://docs.info.apple.com/article.html?artnum=106464
    I know it says 10.3.9 and earlier, however many have used it to successfully resolve similar boot issues in 10.4 and above.

  • App works differently when connected to two very similar databases

    Hi,
    I have a simple oracle forms application that runs oracle reports. I also have two very similar datasbes one is for a test envrionment and the other is for a conversion environment. I have been connecting to the test one from the start but recently have tried connecting to the conversion environment.
    Some of the reports return blank results from the conversion environment that returned values in the test environment. when I run the queries from the reports in the conversion envronment in SQLPLUS they return the same values as the test environment. Does anyone know why this might be happening?
    Gerald

    I ran this report from the reports builder application.
    the report only gets two parameters passed to it. I ran it connecting to database one and database two for exatly the same report. Database one works fine but database two says that there is a problem with the paramaters passed to the report.
    Is it something with the system parameters and how they are getting passed to the report, is there something that I need to set up on database two regarding the reports server setup?

  • Equalizing photos with similar content but different exposures

    PSE7
    Greetings,
    I asked this in the Elements forum with no resoultion.  If it can be done I may have to go out and buy the full photoshop.
    Background:
    I have a group of photos that are very similar.  They are posed graduation photos where the camera and background do not move.  Only the subject , who wear very similar robes, changes.  The exposure of my D-70 with a bounced flash wound up being eratic with some good subject expressions being captured under existing light conditions and dramatically underexposed because the flash didn't fire (took the pixs too fast and the flash didn't recharge fast enough).
    The question:
    Is there a way in photoshop to take a group of very similar photos that vary in exposure, color tone, etc.,
    then select one master photo from the group that has the exposure, color tone, etc. that I want,
    and then batch process all the photographs so that all of the photos are changed to match the exposure, color tone, etc. of the master photo I picked???
    Another way of saying it, How do I make the common background of each photos above identical in one step (or as few as I can)???
    Thanks..

    don't know about Elements but in Photoshop i suppose that you could maybe use Image->Adjustments->Match Color in an action but it's a fake so don't expect miracles from it. Another way would be to just open them all in Camera Raw and apply the Auto setting to them but that won't correct the images based on a base image

  • I have a very similar problem (5506) in that I changed my appleID loginid and now none of my home shares work. All itunes have been re-authorized/authenticated with the new appleID string. Yet I still receive this error. I too am looking for suggestions.

    I have a very similar problem in that I changed my appleID loginid and now none of my home shares work (5506) . All itunes have been re-authorized/authenticated with the new appleID string. Yet I still receive this error. I too am looking for suggestions.

    If you no longer have the computer(s) you want to deauthorise,
    Log in to iTunes,  go to "view your account info" on the itunes store,  deauthorise all five, (Please Note: this can only be done Once every 12 months)  and then re-authorize your current Computer(s) one at a time.
    Authorise / Deauthorise About
    http://support.apple.com/kb/HT1420

  • How to Identify the Same Characters in 2 Different Strings

    Hi All,
    I am requiring a suggestion on how to identify the same characters in 2 different Strings, for example:
    String str1 = "hello";
    String str2 = "llheo";
    Both Strings contain the same characters, but in a different order, so what would be the best technique to verify t that both Strings indeed contain the same characters?
    I was personally thinking along the lines of using the class, java.util.regex.Pattern?
    Any thoughts would me much appreciated. Thanks

    I would instead sort the characters, and then compare
    the sorted data.
    I'm fealing generous
        private static boolean anagram(String left, String right)
            if (left.length() != right.length())
                return false;
            char[] leftChars = left.toCharArray();
            char[] rightChars = right.toCharArray();
            Arrays.sort(leftChars);
            Arrays.sort(rightChars);
            return Arrays.equals(leftChars, rightChars);
        }

  • "Same" report but different selection

    CRXi
    SQL2005+
    I'm working on a report that works fine but the selection for the output needs updating or maybe I need 2 more reports....
    Tables are:
    USER TABLE (has all the application's user information)
        TableKeyID for THIS table
        Application_UserID
        Lastname
        Firstname
    MANAGER TABLE (has all the application's manager information.  This is essentially a detailed subset of the User table.  Any row in the Manager table will also have a row in the User table but not vice-versa!)
        TableKeyID for THIS table
        Application_UserID (same as User Application_UserID}
        User_Initials
    OPPORTUNITY TABLE (contains relevant information on any sales opportunity)
        TableKeyID for THIS table
        Application_UserID for person who is working on the Opportunity.  Note: This can one of many and it can be different for ANY opportunity.
    JOB TABLE (contains relevant information for the potential job)
        TableKeyID for THIS table
        Job # (contains User_Initials in positions 2-4 of a field)
    Links: Not sure how to do this with this situation IF it's different than the correctly working report which prints out data by User Lastname+Firstname.  This report, though correct, doesn't always have the output 'together' by Job # and/or User since any sales person can close an opportunity.  (Maybe think inside vs outside rep or assistant to senior rep here).
    A) Report #1: Possibly, read the User table alphabetically and then provide Groups in a report that ONLY selects for the User_Initials for each group.  (either Group 1 or some Group under 1 that filters by the person's initials)
    That is, say there are three (3) sales reps with User_Initials of ABC, DEF, GHI respectively but there are twenty (20) users (rows/records) in the User table.  My thinking is that I need to read the User table sorted by last name, firstname and then ONLY select the appropriate Job #s that contain their respective initials.
    I can do the User table reading and sorting by lastname, firstname but I don't know how to restrict EACH group which will be the sales reps initials for THAT group.  I currently get, say, five (5) rep-sets of output with proper User lastname, firstname sorting but the Job #s don't necessarily match the User lastname, firstname that I'm working with because an opportunity can be closed by anyone.  Once the opportunity is closed I assign a Job # which includes the initials in positions 2-4 of the Job #.
    B) Report #2: Second report is VERY similar to the first but I need to select by the opportunity assigned manager (OpptyManagerID) field.  Again, possibly read the User table alphabetically and then provide Groups in a report that ONLY selects for the OpptyManagerID field.  Output is the same set of fields as in Report #1 but the selection is different.
    My current Groups are:
    User table
    Job #
    OpptyManagerID
    {4th group not related, I think!}
    HTH...
    Thanks
    Edited by: total1 on Sep 25, 2011 10:58 PM

    We are doing something similar with multiple reports that have the same footprint, however we are handling the data extraction via an Oracle Stored Procedure. We have a set of parameters that we store in a table and access via 3 parameters entered into the Crystal. One (or more depending) of the parameters controls any logic decisions we need to handle data selection.
    Let me know if this helps or you need a little more information/help.
    Greg

  • Comparing two numbers with different formats

    Dear Java developers
    I am trying to compare two numbers but they have different formats. long x = 8981261369, Object obj = "8,981,261,369".
    I am trying to see if this two values are equal which is the case in the example above except one has a thousand separator but not sure how to do that.
    How can I lose the thousand separator and just compare them as two long values.
    Your input will be much appreciated
    Thanks

    iu433 wrote:
    I need a generic way of doing this. Because sometimes the Object does not have a thousand separator. Can i use some kind of NumberFormat to do this.You'll need to know what formats the string (not the number--as already mentioned, numbers don't have formats) can have, and then try them one by one.
    Of course, there can be some ambiguity. Does "123,456" represent one hundred twenty three thousand four hundred fifty six, or is that comma a decimal separator, and it represents one hundred twenty three and four hundred fifty six thousandths?
    The point is, you have to have a clear definition of what formats are allowed and how to determine which one it is. There's no magic way for Java to do that for you.

  • HT3819 How do I share my itunes library with my mother on the same computer, but different accounts?

    How do I share my itunes library with my mother on the same computer, but different accounts?
    My mother and I share a desktop computer (apple) and we have seperate itunes accounts. How do we share accounts?

    iTunes Home Sharing now works between users on same computer - https://discussions.apple.com/thread/3865597
    You could set up two completely separate libraries and share music via Home Sharing.
    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189
    Chris CA's instructions on sharing one iTunes music library between multiple user accounts - https://discussions.apple.com/message/8974074 - Multiple users using a single library file - similar post at: https://discussions.apple.com/thread/3753008
    Suggestion by Turingtest for multiple users and one library - http://discussions.apple.com/message/9117622 - use smart playlists and tags to isolate groupings.
    Discussions on using purchases from multiple AppleIDs in one iTunes library - https://discussions.apple.com/message/19543804

  • I own a 13-inch MacBook Pro and for the past day, my wifi on my laptop says I only have two bars of connection and is running very slow,but all of my other devices such as my iPhone and iPad are connecting perfectly to the wifi. How can I fix this? Thanks

    I own a 13-inch MacBook Pro and for the past day, my wifi on my laptop says I only have two bars of connection and is running very slow,but all of my other devices such as my iPhone and iPad are connecting perfectly to the wifi. How can I fix this? I have tried to shut my laptop off and let it rest and I have also re-started my wifi router three different times. Someone please help me with this problem so I can begin to use my laptop again as I take it to school and use it for class.
    Thanks so much!

    FCP, and all software on OSX, has a few different "preference" files (the extension is .plist), which store all your user settings. Each time you resize a window, change a setting, anything, this file is re-written. Kinda easy to see how they would become corrupt every now and then.
    -Close FCP
    -Navigate to User>Library>Preferences and delete com.apple.FinalCutPro.plist
    -Navigate to User>Library>Preferences>Final Cut Pro User Data and delete Final Cut Pro 5.0 Prefs
    -Empty your trash
    Relaunch FCP and see if that worked.
    Download FCP Rescue to make this process easier in the future. When you have FCP running really smooth, open FCP Rescue and create a backup of your preference files. If it starts acting wanky, just run FCP Rescue and Restore your backup preferences. Works really slick, and it's free.
    EDIT: Or use the really simple explaination that X posted as I was typing.

  • Two methods with same name but different return type?

    Can I have two methods with same name but different return type in Java? I used to do this in C++ (method overloading or function overloading)
    Here is my code:
    import java.io.*;
    public class Test{
    public static void main(String ar[]){
    try{          
    //I give an invalid file name to throw IO error.
    File file = new File("c:/invalid file name becasue of spaces");
    FileWriter writer = new FileWriter(file ,true);
    writer.write("Test");
    writer.close();     
    } catch (IOException IOe){
         System.out.println("Failure");
    //call first method - displays stack trace on screen
         showerr(NPe);
    //call second method - returns stack trace as string
            String msg = showerr(NPe);
            System.out.println(msg);
    } // end of main
    public static void showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         String stackTrace = sw.toString();
         System.out.println("Null Ptr\n" +  stackTrace );
    }//end of first showerr
    public static String showerr(Exception e){
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
         e.printStackTrace(pw);
         try{
         pw.close();
         sw.close();
         catch (IOException IOe){
         IOe.printStackTrace();     
         return sw.toString();
    }//end of second showerr
    } // end of class
    [\code]

    Overloading is when you have multiple methods that have the same name and the same return type but take different parameters. See example
    public class Overloader {
         public String buildError(Exception e){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( e.getClass().getName() )
                   .append( " : " )
                   .append( e.getMessage() ) ;
              return buffer.toString() ;
         public String buildError(String msg){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( msg ) ;
              return buffer.toString() ;
         public String buildErrors(int errCount){
              java.util.Date now = new java.util.Date() ;
              java.text.DateFormat format = java.text.DateFormat.getInstance() ;
              StringBuffer buffer = new StringBuffer() ;
              buffer.append(format.format(now))
                   .append( " : " )
                   .append( "There have been " )
                   .append( errCount )
                   .append( " errors encountered.")  ;
              return buffer.toString() ;
    }Make sense ???
    Regards,

  • PL/SQL-find out extra rows present in  table by comparing 2 similar tables

    Hi, can any one give me an idea to find out the extra rows present in table by comparing 2 similar tables using pl/sql.
    REQUIREMENT::i am working on the upgrade environment.my previous database has some tables and having data.Now functional folks are adding some new data to the existing tables for the upgrade database.I need to identify that new rows which are added by them.
    for this , i created name table with 2 columns n,n1 which contains the table names.
    Table Name:Name
    columns:n n1
    a ax
    b bx
    c cx
    a,b c........are the table names which are in the previous database environment.(approx >1500 tables)These tables having data.
    ax,bx,cx..........table names which are in the upgrade environment contains the extra data which is added by the functional folks.
    a&ax,b&bx.................(approx 1500 tables) are having same structure except some of them.
    Now i want to write a pl/sql program that reads both table names a&ax from name table and then by comparing the rows of a&ax ,i need to find out the extra rows present in the ax table to store that in different place.
    Example:
    a table
    id name
    1 co
    2 wi
    3 il
    ax table
    id name
    1 co
    2 wi
    3 il
    4 va
    5 ca
    Here i need to find out the difference b/n the 2 tables ,the extra rows id 4,5 and place it some where.

    this is just for demo, is this you mean?
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT empno,ename,e.DEPTNO emp_deptno, d.deptno dept_deptno,d.DNAME
      2  FROM EMP e full outer join DEPT d
      3* on d.DEPTNO= e.DEPTNO
    SQL> /
         EMPNO ENAME      EMP_DEPTNO DEPT_DEPTNO DNAME
          7934 MILLER             10          10 ACCOUNTING
          7839 KING               10          10 ACCOUNTING
          7782 CLARK              10          10 ACCOUNTING
        snipp........
          7521 WARD               30          30 SALES
          7499 ALLEN              30          30 SALES
          156 1
    12 1
    40 OPERATIONS
    90 LOGISTIC
    18 rows selected.
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT empno,ename,e.DEPTNO emp_deptno, d.deptno dept_deptno,d.DNAME
      2  FROM EMP e left outer join DEPT d
      3* on d.DEPTNO= e.DEPTNO
    SQL> /
         EMPNO ENAME      EMP_DEPTNO DEPT_DEPTNO DNAME
          7934 MILLER             10          10 ACCOUNTING
          7839 KING               10          10 ACCOUNTING
          7782 CLARK              10          10 ACCOUNTING
          7902 FORD               20          20 RESEARCH
        snipp..................
          7654 MARTIN             30          30 SALES
          7521 WARD               30          30 SALES
          7499 ALLEN              30          30 SALES
           156 1
    12 1
    16 rows selected.
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT empno,ename,e.DEPTNO emp_deptno, d.deptno dept_deptno,d.DNAME
      2  FROM EMP e[b] right outer join  DEPT d
      3* on d.DEPTNO= e.DEPTNO
    SQL> /
         EMPNO ENAME      EMP_DEPTNO DEPT_DEPTNO DNAME
          7369 SMITH              20          20 RESEARCH
          7499 ALLEN              30          30 SALES
          7521 WARD               30          30 SALES
          7566 JONES              20          20 RESEARCH
          snipp......................
          7902 FORD               20          20 RESEARCH
          7934 MILLER             10          10 ACCOUNTING
                                             40 OPERATIONS
    90 LOGISTIC
    16 rows selected.

  • How to compare two database on different servers

    hi,
    I want to compare two database on different servers in oracle.first i want to ckechk thier structures and then data.i m using oracle 10.2.0.plz help me out
    Thanks in advance

    In terms of structures, there are various tools out there that can do this, such as TOAD which can do a database compare.
    In terms of data comparisons, that will depend on what sort of results you are expecting to see. I'm sure some tools will do it for you, but it can be just as easy to write your own comparison using a database link from one database to the other.

  • Want to compare same object in different systems

    hi all,
    i want to compare same object in different systems
    example:
    same transfer rule in BID to be compared with the one in BIT/BIP
    in these kind of cases, pls help me on how to do the comparison.
    as i have to do some enhancement in BID and release that changes to BIT/P. but while manually checking i might also miss out any important changes which might create issues.
    pls suggest.

    Could you please use the below table for comparision.
    Cubes      RSDCUBE
    DSO's (to identify DSOu2019s based on time stamp field)     RSODSO
    Multiproviders     RSDCUBEMULTI
    Infosets     RSQISET
    Trasnformations      RSTRAN
    DTP's     RSBKDTP, RSBKDTPSTAT
    Trasnfer strcuture     RSTS
    Infopackages     RSLDPIO
    Update Rules     RSUPDINFO
    Aggregates     RSDAGGDIR/RSDAGGDIR
    Process Chians     RSPCCHAIN
    OHD's     
    data sources status      ROOSOURCE,RSDS
    Regards,
    Saveen Kumar

  • Numeric Row Height Value Fixed but Different

    Hi Everyone,
    On my front panel, I have a 1D array (column) of Numerics next to a 1D array (column) of strings. I need them to line up. I believe that the row height for numerics is not changeable, but for strings you can change it.
    Here is my problem, on different PCs I have found that the numeric row heights have different fixed values. On my development PC (LabVIEW 2011, 32 bit), the row height is 22 pixels. On all other test PCs (also LabVIEW 2011, 32 bit) the row height is 20 pixels. I need the arrays to line up on all PCs, but it looks different.
    Does anyone have any suggestions on how I can fix this issue?
    Solved!
    Go to Solution.

    "Get Text rect.vi"will tell you how big the bounding rectangle is for text rendered using the font you choose while also concidering "Bold" etc.
    Using that function should give you a way of dtermining how large the text ends-up being and then you JUST* have to sett all of the proeprties to match.
    Ben
    * yes, the word "JUST" is a four letter word in my book as well.
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • AR Aging Report

    Hi, THe current aging report gives the status as on date for the "as of date" parameter in AR aging report. We are looking for a report which should provide the status as on date on that date . e.g. if a customer having balance $100 as on 31st March

  • ORA-06508 cannot create excel file

    Hi, I have forms 6i and windows 7. We have few forms which should create excel files but all of them fail with ORA-06508 and it happens only on my PC. Other colleagues don't have any problem with it. Forms path on my PC is the same as ones on other P

  • ImageReady and Dreamweaver together?

    I have built pages in ImageReady (with roll-overs). Can they easily be worked with in Dreamweaver? And a bonus question - How can I set a web page to display at a fixed, specific pixel dimension with no browser navigation options? Thanks. I'm re-work

  • 2 Macs running OS 10.4 are printing 2 copies of a single doc.

    I'm not much a Mac person so I need some assistance. There are 2 Macs that print to a new Sharp MX350N copier and when each prints, they are getting 2 copies of a single page doc. The copier tech said it was a Mac issue. I have deleted the printer (i

  • Web Gallery & iWeb

    Does anyone know why I can not insert a published web gallery from Aperture. Only the web gallery from iPhoto seem to be available in iWeb not the ones I made in Aperture. I can see them on my .mac website, go to them etc... just can't seem to get th