Search theory ...

Hi all
I'm not asking for source. I write code cos it's fun. But I do need some help with some thinks. This is what I need to do:
Essentially, I want to compare two strings and work out, to a percentage, how similar they are. The behaviour of my application thereafter is based on this percentage - will probably bug the user to retype their input if the % is too small. The idea is to allow a substantial margin for user error - to work out if what they typed was probably something I already have in a list somewhere else.
The question is, how to go about comparing for same-ness.
Initially I thought, convert both strings to the same case and strip the spaces. This makes a better basis for content comparison, as well as introducing a small level of idiot-proofing. This has worked well for me in the past.
Next, I thought maybe count the occurance of each letter - how many a's, how many b's, etc and make a comparison based on that, but that is actually no good, because it's possible to have totally different strings made of the same letters (duh).
So then I went back to scratch: convert to same case, but leave spaces as this allows me to do a word by word comparison. I could see if most of the word

Hi tommeke100
I like what you're saying about the hamming distance. I could definitely implement something like that, and it would work wonders for the word by word comparison.
It falls down though, when you consider that the strings will always consist of multiple words. An extra space or letter in the wrong place, if I understand what you've written correctly, will end up in a MASSIVE hamming distance. So to use the hamming effectively, I'd have to strip the spaces again, which I'm unwilling to do because the hamming distance could be misreported in the case of one spelling error somewhere.
So Hamming is only effective on individual words, but not only strings containing a whole sentence.
Perhaps what I could do is Both: First do the Hamming on the whole string. If I get a zero, it's obviously the same string, move on. Greater than zero, then do the boolean word-by-word compare as well.
Hmmm.
What do you think?
This all supposes that I've correctly understood your Hamming distance approach.
You say HD("azerty", "azarty") = 1.
What does HD("azerty", "ayzert") resolve to?
(obvious I've never heard of Hamming distance, eh?)
Am I totally off track? How does character order affect Hamming distance?
Thanks,
TheFr00n

Similar Messages

  • SharePoint 2010 functioning incorrectly after installing Search Server Express

    Hi,
    and thanks for taking the time to lend a hand and your knowledge. I have a Sharepoint Foundation 2010 site that has went crazy after I tried to install Search Server Express - which FAILED near the end.
    I have checked the logs for the correlation Id provided on the SPF site when it errors.
    03/05/2015 10:02:23.75  w3wp.exe (0x101C)      0x1264 SharePoint Foundation          Runtime                      
     tkau Unexpected System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.SharePoint.ApplicationPages.ListEditPage.SetSectionLinks()     at Microsoft.SharePoint.ApplicationPages.ListEditPage.OnLoad(EventArgs
    e)     at ASP._layouts_listedit_aspx.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) b5f617dc-5d0e-4c5b-92fa-1b7e5a12f2e3
    My issue now is that it appears I will need to remove the SSE install, but from what I can see online this can have a serious impact on the SPF site. I really want a few opinions as to what my best route to take would be on this issue.
    Also, I am wondering what would happen if I run the install again of SSE, would it resolve,
    OR
    is it going to be a matter of detaching the content database and reinstalling SPF2010, and reattaching the content database (P.s. I have a back up of this database of approx. 4Gb from before I ran the install that has ruined the last two days of my life!!!)
    Kind Regards,
    AG06

    Solution...
    Over the weekend I was able to detach the Database, delete the original Web Application on Port 80.
    Reattach the Database to new WebApplication and extended it to my current URL.
    This was brilliant and it required minor config in terms of redeploying some custom solutions and WebParts.
    The result was perfect and it confirms that because SearchServerExpress (which is now working perfectly I may add after a new install which ran without errors) failed to finish its installation.
    P.s. I recommend that if you complete this, you back up almost everything you possibly can (as I did) - better to be safe than to be sorry.
    P.s.s. Before I deleted the original Web Application on port 80, I had tested my theory on a new Web Application on port 400 (any port is fine providing it is not being used). This illustrated to me that it would work - I didn't just go deleting Web Applications
    for the fun of it!
    SOLVED

  • "Search" not working properly. Bug?

    Perhaps it's just me (because no one else seems to have reported on this). I raise it here because I cannot find a bug-report form for Apple. (I'm sure there is noe, I just can't find it...)
    OSX 10.47, G5 dual 2GHz, 4.6GB ram. Not a newbie.
    Although Spotlight sits up there, I traditionally use command-F when I want to find something. Say I have a folder full of images, some of which are duplicates. For example, say I have a folder with, among other things, image-25.jpg and image-25•02.jpg
    In the good old days, (OS 9) it was easy to dispose of dupes. Open the window in list view and you could carefully drag so you selected just the wider-width names that the •02 gives them. Not any more.
    So, to quickly find what could be in theory 100 dupes, I do a search for •02.jpg. None found. Huh?
    Do a new search looking for just 02.jpg. Nothing. Huh?
    Do a new search. This time I copy-and-paste a file name: image-25.jpg. Nothing.
    I shouldn't need to mention that I have set the prefs correctly. I leave "Search For" alone and, instead, turn "Kind" into "Name" then add "Contains". Then I select the partition on which these files are contained.
    I even switched to Spotlight to see if anything is different. It is not.
    I tried a nifty utility I have, SpeedSearchX 2.3b3. But I think it looks only for text content, not file name.
    I tried File Buddy. This time, it works. So what the **** can be wrong with Apple's built-in tools and why does no one else report a problem?

    I gather you have not taken a look in the Spotlight forum:
    http://discussions.apple.com/forum.jspa?forumID=757
    You will find endless complaints about Spotlight and Find not finding files.
    If I do a search on 02.jpg Spotlight returns 499 results, such as 02.jpg, 02step02.jpg, 202.jpg, DSCN00002.jpg, and so on. If I do a Command-F search on my Data drive, with Name:Contains: 02.jpg I get 298 items with a similar variety of names.
    You should try reindexing the drive that is not returning results. Open Spotlight pane in System Prefs, click the Privacy tab, drag the offending volume into the list, wait a few seconds, then delete it from the list. Spotlight should reindex and then find things just fine.
    If it doesn't you can always use EasyFind:
    http://www.devon-technologies.com/download/index.html
    Scroll down to the second batch of goodies. It is free.
    Francine
    Francine
    Schwieder

  • Generic comparator in container search

    I have an application where I'm using a Stack to store heterogeneous objects, some of which might be Comparable. I occasionally have need to search(obj) the stack for some object that might or might not be there. The object might be comparable.
    I have one particular class (which shall remain anonymous) whose comparator, in a wonderful display of software engineering theory, throws an IllegalArgumentException when compared to something it can't compare to, instead of returning false.
    Now it would be nice to be able to just send a Comparator to the search() method (or to any other container's lastIndexOf(), etc.) so that I can do some arbitrarily smart comparison, or arbitrarily stupid one. Why can't I?!?!?!!
    Now in this case, what I've resorted to doing is writing a wrapper class that has a compareTo method that compares class strings first, then catches such silly things if they happen.
    Is there an easier way? Should I submit a feature request for these comparing methods to optionally take a Comparator?
    Thanks,
    Gremio

    Why can't I?!?!?!!Because not all the objects in the stack might be Comparable. Because the search method is designed to look for an object - with identification by equals.
    Is there an easier way? Sure, violate the equals() contract and pass into search an object which returns true when equals is called with any object you're interested in.
    By the way, please tell your software engineering theorist that the API says (s)he should throw ClassCastException.

  • Neen help with date range searches for Table Sources

    Hi all,
    I need help, please. I am trying to satisfy a Level 1 client requirement for the ability to search for records in crawled table sources by a date and/or date range. I have performed the following steps, and did not get accurate results from Advanced searching for date. Please help me understand what I am doing wrong, and/or if there is a way to define a date search attribute without creating a LOV for a date column. (My tables have 500,00 rows.)
    I am using SES 10.1.8.3 on Windows 32.
    My Oracle 10g Spatial Table is called REPORTS and this table has the following columns:
    TRACKNUM Varchar2
    TITLE Varchar2
    SUMMARY CLOB
    SYMBOLCODE Varchar2
    Timestamp Date
    OBSDATE Date
    GEOM SDO_GEOMETRY
    I set up the REPORTS table source in SES, using TRACKNUM as the Primary Key (unique and not null), and SUMMARY as the CONTENT Column. In the Table Column Mappings I defined TITLE as String and TITLE.
    Under Global Settings > Search Attributes I defined a new Search Attribute (type Date) called DATE OCCURRED (DD-MON-YY).
    Went back to REPORTS source previously defined and added a new Table Column Mapping - mapping OBSDATE to the newly defined DATE OCCURRED (DD-MON-YY) search attribute.
    I then modified the Schedule for the REPORTS source Crawler Policy to “Process All Documents”.
    Schedule crawls and indexes entire REPORTS table.
    In SES Advanced Search page, I enter my search keyword, select Specific Source Group as REPORTS, select All Match, and used the pick list to select the DATE OCCURRED (DD-MON-YY) Attribute Name, operator of Greater than equal, and entered the Value 01-JAN-07. Then the second attribute name of DATE_OCCURRED (DD-MON-YY), less than equals, 10-JAN-07.
    Search results gave me 38,000 documents, and the first 25 I looked at had dates NOT within the 01-JAN-07 / 10-JAN-07 range. (e.g. OBSDATE= 24-MAR-07, 22-SEP-), 02-FEB-08, etc.)
    And, none of the results I opened had ANY dates within the SUMMARY CLOB…in case that’s what was being found in the search.
    Can someone help me figure out how to allow my client to search for specific dated records in a db table using a single column for the date? This is a major requirement and they are anxiously awaiting my solution.
    Thanks, in advance….

    raford,
    Thanks very much for your reply. However, from what I've read in the SES Admin Document is that (I think) the date format DD/MM/YYYY pertains only to searches on "file system" sources (e.g. Word, Excel, Powerpoint, PDF, etc.). We have 3 file system sources among our 25 total sources. The remaining 22 sources are all TABLE or DATABASE sources. The DBA here has done a great job getting the data standardized using the typical/default Oracle DATE type format in our TABLE sources (DD-MON-YY). Our tables have anywhere from 1500 rows to 2 million rows.
    I tested your theory that the dates we are entering are being changed to Strings behind the scenes and on the Advanced Page, searched for results using OBSDATE equals 01/02/2007 in an attempt to find data that I know for certain to be in the mapped OBSDATE table column as 01-FEB-07. My result set contained data that had an OBSDATE of 03-MAR-07 and none containing 01-FEB-07.
    Here is the big issue...in order for my client to fulfill his primary mission, one of the top 5 requirements is that he/she be able to find specific table rows that are contain a specific date or range of dates.
    thanks very much!

  • Need help with date range searches for Table Sources in SES

    Hi all,
    I need help, please. I am trying to satisfy a Level 1 client requirement for the ability to search for records in crawled table sources by a date and/or date range. I have performed the following steps, and did not get accurate results from Advanced searching for date. Please help me understand what I am doing wrong, and/or if there is a way to define a date search attribute without creating a LOV for a date column. (My tables have 500,00 rows.)
    I am using SES 10.1.8.3 on Windows 32.
    My Oracle 10g Spatial Table is called REPORTS and this table has the following columns:
    TRACKNUM Varchar2
    TITLE Varchar2
    SUMMARY CLOB
    SYMBOLCODE Varchar2
    Timestamp Date
    OBSDATE Date
    GEOM SDO_GEOMETRY
    I set up the REPORTS table source in SES, using TRACKNUM as the Primary Key (unique and not null), and SUMMARY as the CONTENT Column. In the Table Column Mappings I defined TITLE as String and TITLE.
    Under Global Settings > Search Attributes I defined a new Search Attribute (type Date) called DATE OCCURRED (DD-MON-YY).
    Went back to REPORTS source previously defined and added a new Table Column Mapping - mapping OBSDATE to the newly defined DATE OCCURRED (DD-MON-YY) search attribute.
    I then modified the Schedule for the REPORTS source Crawler Policy to “Process All Documents”.
    Schedule crawls and indexes entire REPORTS table.
    In SES Advanced Search page, I enter my search keyword, select Specific Source Group as REPORTS, select All Match, and used the pick list to select the DATE OCCURRED (DD-MON-YY) Attribute Name, operator of Greater than equal, and entered the Value 01-JAN-07. Then the second attribute name of DATE_OCCURRED (DD-MON-YY), less than equals, 10-JAN-07.
    Search results gave me 38,000 documents, and the first 25 I looked at had dates NOT within the 01-JAN-07 / 10-JAN-07 range. (e.g. OBSDATE= 10-MAR-07, 22-SEP-07, 02-FEB-08, etc.)
    And, none of the results I opened had ANY dates within the SUMMARY CLOB…in case that’s what was being found in the search.
    Can someone help me figure out how to allow my client to search for specific dated records in a db table using a single column for the date? This is a major requirement and they are anxiously awaiting my solution.
    Thanks very much, in advance….

    raford,
    Thanks very much for your reply. However, from what I've read in the SES Admin Document is that (I think) the date format DD/MM/YYYY pertains only to searches on "file system" sources (e.g. Word, Excel, Powerpoint, PDF, etc.). We have 3 file system sources among our 25 total sources. The remaining 22 sources are all TABLE or DATABASE sources. The DBA here has done a great job getting the data standardized using the typical/default Oracle DATE type format in our TABLE sources (DD-MON-YY). Our tables have anywhere from 1500 rows to 2 million rows.
    I tested your theory that the dates we are entering are being changed to Strings behind the scenes and on the Advanced Page, searched for results using OBSDATE equals 01/02/2007 in an attempt to find data that I know for certain to be in the mapped OBSDATE table column as 01-FEB-07. My result set contained data that had an OBSDATE of 03-MAR-07 and none containing 01-FEB-07.
    Here is the big issue...in order for my client to fulfill his primary mission, one of the top 5 requirements is that he/she be able to find specific table rows that are contain a specific date or range of dates.
    thanks very much!

  • The collection you specified does not exists or is not registered with the ColdFusion Search Service.

    While upgrading to CF7 from CF5, I am creating the new collections from Cf Admin. After creating, I indexed it from cf admin and then trying to search for the documents in that collection, and i am getting the following error. This was working yesterday. I have cheched the logs etc and nothing seems helpful in discovering what the issue is.
    Document count is 11,745 and the size is 25,948 kb, which is not too much for a collection. I have tried to restart Cold Fusion Search Services and then ColdFusion Application services, but all in vain.
    Any help on this would be greatly appreciated.
    Detail
    The collection you specified does not exists or is not registered with the ColdFusion Search Service.
    Message
    The collection rc_collectiom does not exist.
    StackTrace
    coldfusion.tagext.search.CollectionDoesNotExistException: The collection rc_collectiom does not exist. at coldfusion.tagext.search.SearchTag.verifyLocale(SearchTag.java:819) at coldfusion.tagext.search.SearchTag.doSearch(SearchTag.java:200) at coldfusion.tagext.search.SearchTag.doStartTag(SearchTag.java:159) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915) at cfeFull2dText2dReDirect2ecfm511389924.runPage(C:\Inetpub\wwwroot\External\FullText\eFull- Text-ReDirect.cfm:43) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915) at cfApplication2ecfc179940445$funcONREQUEST.runFunction(C:\Inetpub\wwwroot\External\Applica tion.cfc:114) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:290) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:254) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:169) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:194) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:146) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:72) at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:178) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:215) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115) at coldfusion.CfmServlet.service(CfmServlet.java:107) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    So at last I figured this out myself and found a temporary resolution for this kind of problem. Majority of the times try creating the Collection through Cfcollection tag and then index it using cfindex tag, rather than performing these operations from the Cold Fusion 7 administrator.
    The only reason I can think of which might have caused the issue is – I have thousands of documents in the collection which I indexed. So while indexing the page gets expired. So I tried again to index it. This time the collection got indexed fairly quickly and I got the response that the collection has been indexed successfully. So for the first time when I tried to index the collection, there might be some piece of code, which did not register the collection properly and hence giving this error.
    When I did the same function using the code, with exactly same set of documents, it did not throw any error, even when I executed it for the first time. So the collection indexed properly.
    I am not claiming that technically this theory is correct, but this seems to be the problem.
    If someone knows technically what has happened at the back, please share it. For the time being, this is the fix – if you experience any problem in creating/indexing collections through cfadmin in CF7, do it thorough code.

  • Searching for strings in a txt file

    I am writing a program based on the six degrees of seperation theory.
    Basically I have been given a (very large) txt file from the imdb with a list of all the films written in it.
    The text in the document is written like this:
    'Tis Autumn: The Search for Jackie Paris (2006)/Paris, Jackie/Moody, James (IV)/Bogdanovich, Peter/Vera, Billy/Ellison, Harlan/Newman, Barry/Whaley, Frank/Murphy, Mark (X)/Tosches, Nick (I)/Moss, Anne Marie
    (Desire) (2006)/Ruggieri, Elio/Micijevic, Irena
    .45 (2006)/Dorff, Stephen/Laresca, Vincent/Eddis, Tim/Bergschneider, Conrad/Campbell, Shawn (II)/Macfadyen, Angus/John, Suresh/Munch, Tony/Tyler, Aisha/Augustson, Nola/Greenhalgh, Dawn/Strange, Sarah/Jovovich, Milla/Hawtrey, Kay
    10 Items or Less (2006)/Ruiz, Hector Atreyu/Torres, Emiliano (II)/Parsons, Jim (II)/Freeman, Morgan (I)/Pallana, Kumar/Cannavale, Bobby/Nam, Leonardo/Hill, Jonah/Vega, Paz/Echols, Jennifer/Dudek, Anne/Berardi, Alexandra
    10 MPH (2006)/Weeks, Hunter/Armstrong, Pat (II)/Caldwell, Josh/Waisman, Alon/Keough, Johnathan F./Weeks, Gannon
    10 Tricks (2006)/Cruz, Raymond/Swetland, Paul/Selznick, Albie/Hennings, Sam/Gleason, Richard/Leake, Damien/Skipp, Beth/Ishibashi, Brittany/Thompson, Lea (I)/Jinaro, Jossara/Brink, Molly
    1001 Nights (2006)/Wright, Jeffrey (I)
    10th & Wolf (2006)/Lee, Tommy (VI)/Renfro, Brad/Ligato, Johnny/De Laurentiis, Igor/Luke Jr., Tony/Mihok, Dash/Garito, Ken/Capodice, John/Dennehy, Brian/Gullion, Jesse/Salvi, Francesco (I)/Cordek, Frank/Marsden, James (I)/Bernard, Aaron/Brennan, Patrick (VII)/O'Rourke, Ben/Gallo, Billy/Heaphy, James/Stragand, Dave/Vellozzi, Sonny/Pistone, Joe (I)/Morse, David (III)/Landis, Pete/Cain, Atticus/Trevelino, Dan/Demme, Larry/Sisto, Frank/Rosenbaum, Paul/Grimaldi, James (I)/Ribisi, Giovanni/Hopper, Dennis/Devon, Tony/Sigismondi, Barry/Kilmer, Val/Marinelli, Sonny/Cacia, Joseph/Rossi, Leo (II)/Tott, Jeffrey/Wawrzyniak, Aaron/Boombotze, Joey/Marie, Corina/Arvie, Michilline/Warren, Lesley Ann/De Laurentiis, Veronica/Moresco, Amanda/Boecker, Margot/Rossi, Rose/Latimore, Meritt/Dunlap, Doreen/Perabo, Piper/Horrell, Nickole/Sonnichsen, Ingrid
    11 Minutes Ago (2006)/Irving, Len/Welzbacher, Craig/Michaels, Ian/Dahl, Evan Lee/Gebert, Bob/Juuso, Jeremy/Hope, Trip/Green-Gaber, Renata/Dawn, Turiya/Reneau, Taryn/M
    Thats just 2 lines!
    what the program will do is take in a name (from a gui) of an actor/actress and find the smallest connection to a famous actor.
    So first things first, my idea of thinking is to search the file for K.E.V.I.N. B.A.C.O.N and all his films, and safe them into an array. Then do another search for films from the actor that the user entered at the gui. then find the shortest possible connection to both stars.
    my code for the search part of the program
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.File;
    import java.io.FileNotFoundException;
    public class FileSearch {
         File aFile = new File("cast.06.txt");     
         FileInputStream inFile = null;
         String actor = "surname, forename"; // the person who will be the centre point e.g. kevin.bacon.
           //get the result of the actor from the gui will go here.
         public void openFilm()
              try
                  inFile = new FileInputStream(aFile);     
              catch(FileNotFoundException e)
                   System.out.println("Error");
    }The problem I have is that I can't work out how to search the txt file for a specific string/s and save them into an array. (I'm not sure if this is the best way to go about it or not at this stage).
    So whats the best way to search for an actor from that file and save the film title and the year of release?
    Hope this makes sense? what I hope the final program will be like is like this http://oracleofbacon.org/

    I went away and looked at regular expressions and this is what I came up with
    public class NameSearch{
         public static void main(String[] args)
              NameSearch ns = new NameSearch();
              ns.runIt();
         public void runIt()
              java.util.Scanner fileScan = null;
              try{
                   fileScan = new java.util.Scanner(new java.io.File("imdb.txt"));
              }catch(java.io.FileNotFoundException e)
                   e.printStackTrace();
                   System.exit(0);
              String token = null;
              String actor = "Surname, Forename";
    //real name will go in actor, left it like that for example
              while(fileScan.hasNext()){
                   token = fileScan.next();
                   Pattern pattern = Pattern.compile(actor);
                   Matcher m = pattern.matcher(token);
                   while(m.find())
                        System.out.println(m.start() + m.end());
    }This by any means not finished, I'm just trying to get to grips with regualr expressions. But when I run the program it doesn't return anything, from what I've tried to work out is it should return actor x amount of times they appear in the file. But when I run it nothing comes back (the actors name is in the text file) so I'm not too sure what I'm doing wrong, any suggestion please

  • In search of drivers for ATI Radeon 7000

    I recently purchased a used ATI Radeon 7000 PCI video card for my G3 beige, OS 9.2.2. This is an older model card with just the single VGA output. This comes up as card name "ATI, Bluestar", and card model "ATI, RV100" under Apple System Profiler so I'm a bit confused about that to start with. However, since ASP recognizes it I guess it seems to work though I haven't plugged my monitor into it yet.
    The problem is the drivers.
    I went to ATI's website to look for drivers to download to get this card working. They have an OS9 updater (ati-retail-9-2-2-jan2005.hqx) that should install a bunch of components. When I run it it only installs a partial set, contrary to what it says it should do. I've seen other postings on Apple Discussions about problems with this installer. ATI seems to make it impossible to contact them other than by telephone which is only open to original purchasers so I can't even tell them there's a problem (much less expect them to do anything about it). A search for Bluestar or RV100 reveals nothing on ATI's website.
    Has anybody gotten this installer to work? Is there some other source for drivers for this card? Can somebody e-mail them to me (I don't think this violates any rules since in theory they are openly down-loadable)?
    Thanks,
    Brian
    G3 beiges:DT, 9.2.2, 120GBide; DT, 9.2.2/OS X.3, 120GBide; MT, 8.6/9.2.2, 128MB,    

    Thanks to all for answering my questions. I decided in the end to just plug my monitor into the card and give it a try despite not haveing the groundwork properly set up. It works so it must be a Mac version of the card. This website (http://www.welovemacs.com/radeon7000vga.html) describes the card, including the model number (but I paid a LOT, LOT less than their price!).
    Yes, the installer does put all kinds of things in the System, but not the promised control panel. It looks like the CP isn't essential to the working of the card so I'm not worrying anymore. I used the Apple monitors control panel to set the resolution a few times but it froze up on me once when setting it to 640x480. After that I pulled a copy of Super Res that I had in storage and have been using that.
    As to the graphics acceleration, it's kind of hard to tell. I tried viewing a mp4 video clip I have with Quicktime 6. Before the card I could maybe watch a minute before my computer would freeze up. Now I can watch maybe 3 minutes before it freezes up, but the video is very jerky, even when compared to the one minute before card installation. I may now be experiencing the limitations of my 266 MHz G3 in terms of decoding mp4, but this doesn't explain why video seemed smoother before, brief though it was before a freeze.
    I then tried a video game. Actually video wasn't too slow with this even with my old configuration. Now things seem to hesitate when the play gets busy and it remids me of when I used to play Crystal Quest on a Mac SE. In this case the card has made things slower.
    With general scrolling I don't really notice a difference. There's still hesitation at times. In all the cases I have mentioned the ATI thing in the menu bar says grahics acceleration is on.
    So in actuality I haven't really noticed any improvement with this card. If anybody has any tips on ways to tune the system to take more advantage of the card I'd welcome them.
    Thanks,
    Brian

  • Full-Text Search has not worked since we upgraded to 2012

    I have a filestream database and table. Our full-text searches have always worked until we upgraded to SQL 2012 in December.  Now, no file that has been uploaded since December is searchable.  What has gone wrong here.  It should have been
    a clean upgrade.  We are not getting any error messages.  We are just not getting any records returned when we search on a word that we know are in the documents we've uploaded since December (for instance, the word 'aluminum'). 
    Filestream is enabled for the instance.
    A full-text catalog exists and contains a full-text index (the same one we've always had).  Full-text indexing is ENABLED.
    I've tried rebuilding the catalog and the index.  I've tried to do a FULL POPULATION on the table.
    We haven't changed our queries nor the way the files are uploaded.
    Nothing works.  I have been a database administrator since the SQL 2005 days and I have never seen anything like this.
    Please help.

    Hi GINGER PIERCE,
    Since the issue regards SQL Server Search. I will help you post the question in the related forums. It is appropriate and more experts will assist you.
    According to your description, in theory , if you can do a full-text search for SQL Server 2008, when upgrading the SQL Server version from 2008 to 2012, the Full text indexing feature should be run well in SQL Server 2012 databases. If not , you can try
    to restore your database from SQL Server 2008 to SQL Server 2012, create an new Full-Text Catalog and Index on the table or view in the database, and then use Full Text Index to search words, phrases and multiple forms of word or phrase via FREETEXT() and
    CANTAINS() with “and” or “or” operators.  check if it is normal that the full-text search feature is enabled in the SQL Server 2012 instance. For more information , see:
    Full Text Search step by step in SQL Server 2012.
    Note:  In SQL Server 2012 SP1 , the server will report that Full Text Search is not supported in this edition of SQL Server when it clearly is. The workaround is to create the initial catalog by using a T-SQL query:
    CREATE FULLTEXT CATALOG  
    In addition, since it is a fileStream database, we need to verify if you do Full Text Searches on documents in FileTables, if yes, you should enable FileStream database for your SQL Server, and enable FileTable options for the database. For more information,
    see:
    Full Text Searches on Documents in FileTables.
    Regards,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Has anyone else noticed that iBooks search does not find all information that should be located for a specific search criteria?

    I am converting a novel to ePub format.  I am currently in the process of adding "end notes" to the book.  Each will have a flag embedded at the proper spot in the various chapters that is coded as "[See End Note xx]" where xx is a one or two digit number.  Each of the flags has those words surrounded by the HTML that links the flag to the proper end note at the back of the book.
    To verify that I have indeed inserted correctly each end note, I copy the book's epub file from my desktop PC to the iPad.  I then do a search in iBooks to locate each occurance of "[See End Note" or just "End Note".  I should see each of these flags listed.  Last night it would list all of them except "[See End Note 28]"!   If I did a search for "28", it would appear.
    I then copied just the flag itself ("[See End Note 28]") without the associated linkage HTML to the back of the document, and placed the copy just in front of the paragraph that contains it. Neither of the two flags were found.
    I then duplicated just the flags for end notes 27 and 29 which the search function had located.  I placed the copies surrounding the copied flag for 29.  The result was as follows in the text of the book:
    [See End Note 27]
    [See End Note 28]
    [See End Note 29]
    Although 27 and 29 were still being shown in their normal places, none of the above three inserted (test) flags was displayed by the search!
    It seemed that the iBooks search goes through part of the book, but cannot take the whole book in one piece.  It then continues, but leaves a gap that is not scanned per the search criteria.  To test that theory, I removed the entire text of several chapters that did not contain any end notes.  I then loaded this modified copy of the book into the iPad.  When I ran a search using "End Note", all of the flags (including the special test flags) were displayed.  The list included the "missing" "[See End Note 28]" that cannot be found if the all of the chapters have their text!
    I shall be calling Apple in a few minutes to again attempt to get the apparent "bug" (aka design or coding flaw) removed such that it does not
    impact the ability of the iPad to be a useful tool.

    Not all movie studio signed up to the agreement with Apple to allow redownloading of movies, only those that did will have their movies available in the purchased section of iTunes.

  • Ranking in RH8 Search

    Is it possible to remove ranking from Search?  If not, can you change Search so that when you search by title instead of by rank that it sorts alphabetically across ALL pages rather than by those appearing on each page?

    No options built in that I am aware of and no workrounds seen. There are posts about changing the column width so in theory you could hide the ranking column but that would not prevent it functioning.
    Take a look at the ZoomSearch article on my site. Would that provide what you want?
    See www.grainge.org for RoboHelp and Authoring tips
    Follow me @petergrainge

  • Problem with hide TOC, Index ans Search

    Hello,
    I want to generate a chm where TOC , Index ans Search are
    hide when I open my chm.
    I don't find a solution to do this.
    I try to find in creating a new "Window", but I doesn't
    operate.
    If someone have a solution, thanks to tell me,
    because I'm going to loose lots of time for that...

    Hi vlavergne,
    In theory you should be able to hide the TOC, Index and
    Search simply by selecting
    Hide Nav Pane on Startup in the Window properties. However,
    after a bit of experimentation it seems that you also have to
    deselect the
    Remember Window Size and Position option.
    Hope this helps
    Anne

  • Widows Search not working with Data Deduplication?

    Hi,
    I noticed that many files were missing when searching for them on my Server 2012 Fileserver.
    After some troubleshooting I noticed that the ones missing, had a Size on Disk of 4KB and the "SparseFile" and "ReparsePoint" (PL) Flags set.
    So it looks like they were processed by the enabled Data Deduplication.
    Am I missing something here or is it really the case that deduplicated files cannot be indexed by windows search?

    BTW! "... and mounted those file hierarcies below. 5 reparse points" so I my case I had consolidated the users Space into 5 overall concepts on 1 volume each. In that way I had already reduced my use of volumes.
    So for now I can add a drive letter to each for trying to make Windows Search work.
    But guess I am going to stumble into the same issue then with Windows Search not supporting resparse points again ....because some of the volumes are deduped.
    Great experience as ever working with file virtualization in the Windows client, i.e. Liberaries. Just wonder why the heck MS did not improove that experience ...
    Right now, with Server 2012, find myself "hacking" again this year 2013 ... to try and make Windows work on some basic issues. All the Flex is starting to go away now ... here comes reality ... NOT WORKING.
    NTFS resparse points, long file names, etc. Great Flex! However in theory only. For real when everything is pulled together and the system receives its more or less complete configuration ... unsupported in Windows. Go hack it.
    Please stop doing just components test ... and do complete flight tests also. More hollistic tests please across constraints! With a focus in each test ... from 0 to a fully configured system.
    How can no support in Windows Search for resparse points in NTFS be a miss during introduction of libraries (Windows 7/2008 R2) and now during introduction of data deduplication (Windows 8/2012) ... during just internal tests at MS? And we all have to use
    libraries (thus a remote Windows Search index on remote shares in a domain setup) ... and now Windows 8 WinRT is even more dependent on libraries? How can that be overlooked - or such a basic thing receive no priority - and just get skipped? How can that happen?

  • ITunes, new computer, search/consolidate all songs?

    I just went from a prehistoric iBook G4 to a lightning-fast MacBook Pro.
    The new computer was a gift, so 'setup assistant' has already been run, and I don't want to reinstall the OS, seeing as my mum added her Mac programs (Word, etc) for which I don't have disks.
    The problem is: my old iBook didn't have memory, so all my stuff is already on an external hard drive. I want to find a way that the new iTunes will read and consolidate all of the existing songs on my external hard drive. I've read forum posts, and in theory there should be a 'search' function, though I have yet to find it on the new OS.
    I backup frequently, so I could use backup disks, but considering that I have 80gig of music this would involve going to the hard drive, deleting the existing music, then re-importing it (I wouldn't have room on my hard drive for the old 80gig + the same old re-imported 80-gig's worth...). Big pain in the tuckus, and counterproductive.
    There must be a way to have iTunes search for and consolidate existing music on a hard drive.
    I seem to remember having this function on the old OS, 'twould be a bummer not to have it on the new one. I already notice that in internet settings 'Use Interference Robustness" has disappeared, meaning I can't connect wirelessly to the internet using the MacBook Pro.
    Not having internet or music will make me beg to have my old iBook-PowerPC back....
    I have also used my MacOS help function with little luck...

    Well you should be able to import songs by clicking on "File" and "import folder" then you can select the source such as your external hard drive. Itunes will then import your music and, if neccesary, convert them to the MP3 format.
    Hope this helps!

Maybe you are looking for