Problem in near duplicate detection in c#

I have Develop application for near duplicate detection in c#.This application work for strings only but it's not working for pdf files.may be i think
GetSimilarity method can not work properly but error not be raised.
my application code like as:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using iTextSharp.text;
using System.Threading;
using iTextSharp.text.pdf;
using iTextSharp.text.pdf.parser;
using System.Text.RegularExpressions;
using WindowsFormsApplication1.appcode;
namespace WindowsFormsApplication1
public partial class Form1 : Form
string filename;
FileInfo[] data1;
FileInfo[] data2;
string path;
public Form1()
InitializeComponent();
private void button1_Click(object sender, EventArgs e)
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.CheckFileExists = true;
openFileDialog.AddExtension = true;
openFileDialog.Filter = "PDF files (*.pdf)|*.pdf";
DialogResult result = openFileDialog.ShowDialog();
if (result == DialogResult.OK)
filename = Path.GetFileName(openFileDialog.FileName);
path = Path.GetDirectoryName(openFileDialog.FileName);
textBox1.Text = path + "\\" + filename;
private void button2_Click(object sender, EventArgs e)
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.CheckFileExists = true;
openFileDialog.AddExtension = true;
openFileDialog.Filter = "PDF files (*.pdf)|*.pdf";
DialogResult result = openFileDialog.ShowDialog();
if (result == DialogResult.OK)
filename = Path.GetFileName(openFileDialog.FileName);
path = Path.GetDirectoryName(openFileDialog.FileName);
textBox2.Text = path + "\\" + filename;
public static string ExtractTextFromPdf(string filename)
using (PdfReader r = new PdfReader(filename))
StringBuilder text = new StringBuilder();
for (int i = 1; i <= r.NumberOfPages; i++)
text.Append(PdfTextExtractor.GetTextFromPage(r, i));
string first = text.ToString();
return first;
public static string Extract(string filename)
using (PdfReader r = new PdfReader(filename))
StringBuilder text = new StringBuilder();
for (int i = 1; i <= r.NumberOfPages; i++)
text.Append(PdfTextExtractor.GetTextFromPage(r, i));
string second = text.ToString();
return second;
private void button3_Click(object sender, EventArgs e)
StopWordsHandler stopword = new StopWordsHandler();
string s = ExtractTextFromPdf(textBox1.Text);
string s1 = Extract(textBox2.Text);
string[] doc = new string[2]{s,s1 };
TFIDF tfidf = new TFIDF(doc);
float fl = tfidf.GetSimilarity(0,1);
var sformatted = string.Format("Value: {0:P2}.", fl);
StopWordsHandler.cs:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsApplication1.appcode
class StopWordsHandler
public static string[] stopWordsList=new string[] {
"a",
"about",
"above",
"across",
"afore",
"aforesaid",
"after",
"again",
"against",
"agin",
"ago",
"aint",
"albeit",
"all",
"almost",
"alone",
"along",
"alongside",
"already",
"also",
"although",
"always",
"am",
"american",
"amid",
"amidst",
"among",
"amongst",
"an",
"and",
"anent",
"another",
"any",
"anybody",
"anyone",
"anything",
"are",
"aren't",
"around",
"as",
"aslant",
"astride",
"at",
"athwart",
"away",
"b",
"back",
"bar",
"barring",
"be",
"because",
"been",
"before",
"behind",
"being",
"below",
"beneath",
"beside",
"besides",
"best",
"better",
"between",
"betwixt",
"beyond",
"both",
"but",
"by",
"c",
"can",
"cannot",
"can't",
"certain",
"circa",
"close",
"concerning",
"considering",
"cos",
"could",
"couldn't",
"couldst",
"d",
"dare",
"dared",
"daren't",
"dares",
"daring",
"despite",
"did",
"didn't",
"different",
"directly",
"do",
"does",
"doesn't",
"doing",
"done",
"don't",
"dost",
"doth",
"down",
"during",
"durst",
"e",
"each",
"early",
"either",
"em",
"english",
"enough",
"ere",
"even",
"ever",
"every",
"everybody",
"everyone",
"everything",
"except",
"excepting",
"f",
"failing",
"far",
"few",
"first",
"five",
"following",
"for",
"four",
"from",
"g",
"gonna",
"gotta",
"h",
"had",
"hadn't",
"hard",
"has",
"hasn't",
"hast",
"hath",
"have",
"haven't",
"having",
"he",
"he'd",
"he'll",
"her",
"here",
"here's",
"hers",
"herself",
"he's",
"high",
"him",
"himself",
"his",
"home",
"how",
"howbeit",
"however",
"how's",
"i",
"id",
"if",
"ill",
"i'm",
"immediately",
"important",
"in",
"inside",
"instantly",
"into",
"is",
"isn't",
"it",
"it'll",
"it's",
"its",
"itself",
"i've",
"j",
"just",
"k",
"l",
"large",
"last",
"later",
"least",
"left",
"less",
"lest",
"let's",
"like",
"likewise",
"little",
"living",
"long",
"m",
"many",
"may",
"mayn't",
"me",
"mid",
"midst",
"might",
"mightn't",
"mine",
"minus",
"more",
"most",
"much",
"must",
"mustn't",
"my",
"myself",
"n",
"near",
"'neath",
"need",
"needed",
"needing",
"needn't",
"needs",
"neither",
"never",
"nevertheless",
"new",
"next",
"nigh",
"nigher",
"nighest",
"nisi",
"no",
"no-one",
"nobody",
"none",
"nor",
"not",
"nothing",
"notwithstanding",
"now",
"o",
"o'er",
"of",
"off",
"often",
"on",
"once",
"one",
"oneself",
"only",
"onto",
"open",
"or",
"other",
"otherwise",
"ought",
"oughtn't",
"our",
"ours",
"ourselves",
"out",
"outside",
"over",
"own",
"p",
"past",
"pending",
"per",
"perhaps",
"plus",
"possible",
"present",
"probably",
"provided",
"providing",
"public",
"q",
"qua",
"quite",
"r",
"rather",
"re",
"real",
"really",
"respecting",
"right",
"round",
"s",
"same",
"sans",
"save",
"saving",
"second",
"several",
"shall",
"shalt",
"shan't",
"she",
"shed",
"shell",
"she's",
"short",
"should",
"shouldn't",
"since",
"six",
"small",
"so",
"some",
"somebody",
"someone",
"something",
"sometimes",
"soon",
"special",
"still",
"such",
"summat",
"supposing",
"sure",
"t",
"than",
"that",
"that'd",
"that'll",
"that's",
"the",
"thee",
"their",
"theirs",
"their's",
"them",
"themselves",
"then",
"there",
"there's",
"these",
"they",
"they'd",
"they'll",
"they're",
"they've",
"thine",
"this",
"tho",
"those",
"thou",
"though",
"three",
"thro'",
"through",
"throughout",
"thru",
"thyself",
"till",
"to",
"today",
"together",
"too",
"touching",
"toward",
"towards",
"true",
"'twas",
"'tween",
"'twere",
"'twill",
"'twixt",
"two",
"'twould",
"u",
"under",
"underneath",
"unless",
"unlike",
"until",
"unto",
"up",
"upon",
"us",
"used",
"usually",
"v",
"versus",
"very",
"via",
"vice",
"vis-a-vis",
"w",
"wanna",
"wanting",
"was",
"wasn't",
"way",
"we",
"we'd",
"well",
"were",
"weren't",
"wert",
"we've",
"what",
"whatever",
"what'll",
"what's",
"when",
"whencesoever",
"whenever",
"when's",
"whereas",
"where's",
"whether",
"which",
"whichever",
"whichsoever",
"while",
"whilst",
"who",
"who'd",
"whoever",
"whole",
"who'll",
"whom",
"whore",
"who's",
"whose",
"whoso",
"whosoever",
"will",
"with",
"within",
"without",
"wont",
"would",
"wouldn't",
"wouldst",
"x",
"y",
"ye",
"yet",
"you",
"you'd",
"you'll",
"your",
"you're",
"yours",
"yourself",
"yourselves",
"you've",
"z",
private static Hashtable _stopwords=null;
public static object AddElement(IDictionary collection,Object key, object newValue)
object element = collection[key];
collection[key] = newValue;
return element;
public static bool IsStopword(string str)
//int index=Array.BinarySearch(stopWordsList, str)
return _stopwords.ContainsKey(str);
public StopWordsHandler()
if (_stopwords == null)
_stopwords = new Hashtable();
double dummy = 0;
foreach (string word in stopWordsList)
AddElement(_stopwords, word, dummy);
TFIDF.cs:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsApplication1.appcode
class TFIDF
private string[] _docs;
private string[][] _ngramDoc;
private int _numDocs=0;
private int _numTerms=0;
private ArrayList _terms;
private int[][] _termFreq;
private float[][] _termWeight;
private int[] _maxTermFreq;
private int[] _docFreq;
public class TermVector
public static float ComputeCosineSimilarity(float[] vector1, float[] vector2)
if (vector1.Length != vector2.Length)
throw new Exception("DIFER LENGTH");
float denom=(VectorLength(vector1) * VectorLength(vector2));
if (denom == 0F)
return 0F;
else
return (InnerProduct(vector1, vector2) / denom);
public static float InnerProduct(float[] vector1, float[] vector2)
if (vector1.Length != vector2.Length)
throw new Exception("DIFFER LENGTH ARE NOT ALLOWED");
float result=0F;
for (int i=0; i < vector1.Length; i++)
result += vector1[i] * vector2[i];
return result;
public static float VectorLength(float[] vector)
float sum=0.0F;
for (int i=0; i < vector.Length; i++)
sum=sum + (vector[i] * vector[i]);
return (float)Math.Sqrt(sum);
private IDictionary _wordsIndex=new Hashtable() ;
public TFIDF(string[] documents)
_docs=documents;
_numDocs=documents.Length ;
MyInit();
private void GeneratNgramText()
private ArrayList GenerateTerms(string[] docs)
ArrayList uniques=new ArrayList() ;
_ngramDoc=new string[_numDocs][] ;
for (int i=0; i < docs.Length ; i++)
Tokeniser tokenizer=new Tokeniser() ;
string[] words=tokenizer.Partition(docs[i]);
for (int j=0; j < words.Length ; j++)
if (!uniques.Contains(words[j]) )
uniques.Add(words[j]) ;
return uniques;
private static object AddElement(IDictionary collection, object key, object newValue)
object element=collection[key];
collection[key]=newValue;
return element;
private int GetTermIndex(string term)
object index=_wordsIndex[term];
if (index == null) return -1;
return (int) index;
private void MyInit()
_terms=GenerateTerms (_docs );
_numTerms=_terms.Count ;
_maxTermFreq=new int[_numDocs] ;
_docFreq=new int[_numTerms] ;
_termFreq =new int[_numTerms][] ;
_termWeight=new float[_numTerms][] ;
for(int i=0; i < _terms.Count ; i++)
_termWeight[i]=new float[_numDocs] ;
_termFreq[i]=new int[_numDocs] ;
AddElement(_wordsIndex, _terms[i], i);
GenerateTermFrequency ();
GenerateTermWeight();
private float Log(float num)
return (float) Math.Log(num) ;//log2
private void GenerateTermFrequency()
for(int i=0; i < _numDocs ; i++)
string curDoc=_docs[i];
IDictionary freq=GetWordFrequency(curDoc);
IDictionaryEnumerator enums=freq.GetEnumerator() ;
_maxTermFreq[i]=int.MinValue ;
while (enums.MoveNext())
string word=(string)enums.Key;
int wordFreq=(int)enums.Value ;
int termIndex=GetTermIndex(word);
_termFreq [termIndex][i]=wordFreq;
_docFreq[termIndex] ++;
if (wordFreq > _maxTermFreq[i]) _maxTermFreq[i]=wordFreq;
private void GenerateTermWeight()
for(int i=0; i < _numTerms ; i++)
for(int j=0; j < _numDocs ; j++)
_termWeight[i][j]=ComputeTermWeight (i, j);
private float GetTermFrequency(int term, int doc)
int freq=_termFreq [term][doc];
int maxfreq=_maxTermFreq[doc];
return ( (float) freq/(float)maxfreq );
private float GetInverseDocumentFrequency(int term)
int df=_docFreq[term];
return Log((float) (_numDocs) / (float) df );
private float ComputeTermWeight(int term, int doc)
float tf=GetTermFrequency (term, doc);
float idf=GetInverseDocumentFrequency(term);
return tf * idf;
private float[] GetTermVector(int doc)
float[] w=new float[_numTerms] ;
for (int i=0; i < _numTerms; i++)
w[i]=_termWeight[i][doc];
return w;
public float GetSimilarity(int doc_i, int doc_j)
float[] vector1=GetTermVector (doc_i);
float[] vector2=GetTermVector (doc_j);
return TermVector.ComputeCosineSimilarity(vector1, vector2) ;
private IDictionary GetWordFrequency(string input)
//string convertedInput=input.ToLower() ;
Tokeniser tokenizer=new Tokeniser() ;
String[] words=tokenizer.Partition(input);
Array.Sort(words);
String[] distinctWords=GetDistinctWords(words);
IDictionary result=new Hashtable();
for (int i=0; i < distinctWords.Length; i++)
object tmp;
tmp=CountWords(distinctWords[i], words);
result[distinctWords[i]]=tmp;
return result;
private string[] GetDistinctWords(String[] input)
if (input == null)
return new string[0];
else
ArrayList list=new ArrayList() ;
for (int i=0; i < input.Length; i++)
if (!list.Contains(input[i])) // N-GRAM SIMILARITY?
list.Add(input[i]);
return Tokeniser.ArrayListToArray(list) ;
private int CountWords(string word, string[] words)
int itemIdx=Array.BinarySearch(words, word);
if (itemIdx > 0)
while (itemIdx > 0 && words[itemIdx].Equals(word))
itemIdx--;
int count=0;
while (itemIdx < words.Length && itemIdx >= 0)
if (words[itemIdx].Equals(word)) count++;
itemIdx++;
if (itemIdx < words.Length)
if (!words[itemIdx].Equals(word)) break;
return count;
Tokeniser.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace WindowsFormsApplication1.appcode
class Tokeniser
public static string[] ArrayListToArray(ArrayList arraylist)
string[] array = new string[arraylist.Count];
for (int i = 0; i < arraylist.Count; i++) array[i] = (string)arraylist[i];
return array;
public string[] Partition(string input)
Regex r = new Regex("([ \\t{}():;. \n])");
//input = input.ToLower();
String[] tokens = r.Split(input);
ArrayList filter = new ArrayList();
for (int i = 0; i < tokens.Length; i++)
MatchCollection mc = r.Matches(tokens[i]);
if (mc.Count <= 0 && tokens[i].Trim().Length > 0
&& !StopWordsHandler.IsStopword(tokens[i]))
filter.Add(tokens[i]);
return ArrayListToArray(filter);
public Tokeniser()
button3 is compare functionality.in this scope i have to write similarity logic in terms of percentage.
oncle please check the code for similarty b/w the two pdf files.if any probelm please intimate.please help me.
thank u.

Hi
Actually iText is a third party library to create PDF originally written for java. iTextSharp is the C# adaptation of that
library. Question regarding iText are better asked on the iText forum, but this is Microsoft Forum:
http://itextpdf.com/support
Thanks for your understanding.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • I want example application in c# based on the duplicate detection alogrithm

    duplicate detection alogrithm
    Step 1: Consider the Stemmed keywords of the web page.
    Step 2: Based on the starting character i.e. A-Z we here by assumed the hash values should start
    with1-26.
    Step 3: Scan every word from the sample and compare with DB (data base) (initially DB
    Contains NO key values. Once the New keyword is found then generate respective hash
    value. Store that key value in temporary DB.
    Step 4: Repeat the step 3 until all the keywords get completes.
    Step 5: Store all Hash values for a given sample in local DB (i.e. here we used array list)
    Step 6: Repeat step 1 to step 6 for N no. of samples.
    Step 7: Once the selected samples were over then calculate similarity measure on the samples
    hash values which we stored in local DB with respective to webpages in repository.
    Step 8: From similarity measure, we can generate a report on the samples in the score of %
    forms. Pages that are 80% similar are considered to be near duplicates.
    this is my duplicate detection alorithm. i want some example windows application in c# based on alogrithm.

    Yu may want to use a dictionary which has a built in hash table for the key.  See code below for starting point
    List<string> input = new List<string>() { "abc", "abd", "def", "ghi" };
    Dictionary<string, List<string>> dict = input.AsEnumerable()
    .GroupBy(x => x.Substring(0,1), y => y)
    .ToDictionary(x => x.Key, y => y.ToList());
    jdweng

  • Duplicate detection rule by business unit

    Hi there,
    Our CRM is used by multiple business units and they have different requirements for duplicate detection rules. For example, BU A would like to detect exact duplicate on Email Address 1 only, and BU B detects duplicates on Mobile only but allows duplicate
    email address 1.
    I have User 1 in BU A and owns the Email Address 1 duplicate check rule. Then I have User 2 in BU B trying to create a record with duplicate Email Address 1 and the Email Address 1 duplicate check rule fired. The Security role of User 2 allows
    CRUD access to Duplicate Detection Rule at business unit level.
    How do I configure so that only Mobile rule is fired for User 2, and only Email Address 1 rule is fired for User 1?
    Thanks,
    Henri

    Hello Henri,
    OOB duplicate detection is global setting and in case you will use it - the same rules would be used for all users in all BUs. To solve your problem you will have to develop own solution to implement your scenario.
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • TS1538 Hi, I have the problem which iTunes cannot detect my iPhone 4s. I tried the steps you have provided in your troubleshooting, but it won't work for me because the Apple Mobile Devilce is perfectly installed on my windows.

    Hi, I have the problem which iTunes cannot detect my iPhone 4s. I tried the steps you have provided in your troubleshooting, but it won't work for me because the Apple Mobile Devilce is perfectly installed on my windows. However, the driver "Microsoft teredo Tunneling adapter" has a yellow exclamation mark, which i believe means it's not installed correctly or something is wrong with it. This driver is under the Network Adapters (Please see picture below).
    This is what happens when I connect my iPhone 4s to my laptop (Windows 7 Starter 32-bit)
    1. The phone charges it's battery
    2. I can open it in My Computer and import/export media files.
    In iTunes
    3. It start to sync until step 3 then stops.
    4. The iPhone option with an arrow appears beside the iTunes Store, but when the arrow is clicked it disappears.
    I hope you can provide me a solution for this problem.
    Thanks,
    Ralph

    Hi ralphagir,
    Welcome to the Apple Support Communities!
    For your iTunes issue with it not recognizing your iPhone, I would go ahead and suggest deleting iTunes and all of its components from your Windows computer and installing fresh.
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    Remove iTunes and related components from the Control Panel
    Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.
    As far as the arrow button that you click and the iPhone disappears, it sounds like you may be clicking on the eject button. Please take a look at the following article for information on the eject button in iTunes.
    Safely disconnect iPod
    http://support.apple.com/kb/HT1853
    Have a great day,
    Joe

  • I install windows 8 in my macbook pro, the problem is it cannot detect wifi connection and bluetooth

    I install windows 8 in my macbook pro, the problem is it cannot detect wifi connection and bluetooth, because when i click the wireless in settings there are no choices... but when i use the mac os, everything is fine, the wifi, the bluetooth everything is functional, can you help me fix this problem? help will be much appreaciated.. thanks

    How did you install Windows? Did you use Bootcamp Assistant or did you use a virtual machine like Parallels, Fusion, or VirtualBox.
    If you used Bootcamp Assistant, did you download and install the Windows Support software (drivers) in accordance with the Bootcamp instructions?

  • Duplicate Detection Rules

    Is there anyway to create a duplicate detection rule in one entity on two different fields?  From the UI this seems not possible, but it seems like a lacking .. 
    For instance if you wanted to check a new contact against any email in email, email 2 or email 3 - you can only check across each of these fields for matches but you can't cross check them IE email to email 2 as an exact match.
    Please let me know if there is a way to accomplish this using the OOB duplicate detection.

    Hi Gaurav,
    Dont think this is possible OOB especially in Single Entity Duplicate detection rule
    where you check for duplicates in the same entity. You can have if you have
    Cross Entity Duplicate detection rule where you have option to set the base record attribute and matching record attribute.
    You can use plugins to achieve complex duplicate detection rules.
    Refer below link for the sample code:-
    http://parthimscrm.wordpress.com/2013/07/05/duplicate-detection-plugin-crm-2011/
    Hope this Helps!!!
    Thanks,
    Prasad
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • Import duplicate detection not working?

    I've done a lot of searching and can't seem to find the answer. All our photos live on my laptop. My wife's laptop has some of our photos but also a lot of ones for work. I'm trying to give her the complete set of all our photos.
    I did some tests and found the "Import duplicate photo?" dialog box very helpful. So I went through and compared our libraries but there were thousands to compare. So I decided to make a folder on her desktop of all our photos from my computer. My theory was I could simply import all the photos and iPhoto would detect the duplicates and I could choose to not import them. It doesn't seem to work, I did a couple tests and all the duplicates got through.
    I upgraded her iPhoto version to iPhoto '08 (7.1.2) just before doing this process since her old version didn't support the dupe detection. Interestingly when I import a photo in her current version it shows up as the filename without the extension but the existing photos all have the extension. I think this is why they aren't being seen as dupes.
    Any ideas how to remedy this? My fallback will be to use Duplicate Annihilator but that will require copying in everything (thousands of photos) and then sifting. Seems scary and unnecessary.

    iPhoto doesn't display the extension in the Info window at the lower left hand corner or in the Title field. If you use the Photos->Show Photo Info menu option you'll see the full file name. Also do you have the Finder set to display the extensions?
    *Do not import a full library into another library with iPhoto. That imports the thumbnail, modified and original files as new files which is not what you want.*
    What you can do is to use iPhoto Library Manager to merge the two libraries into a new, third library and use its duplication elimination features to cull out the duplicates. If the new library isn't what you want the original two libraries will be untouched.
    Another possibility is to copy the Originals folder from your wife's library to the desktop and import that folder and subfolders into your library. I found that importing from folders on the HD do cull out duplicates successfully. Then you can copy your library to her laptop.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

  • Duplicate Detection Shows Clips That Are Not Dupes !

    Let me admit at the outset that this is not a serious problem, just a curiosity.
    I experimented with the "Show Duplicate Frames" command on a project and had loads of coloured lines appear denoting duplicates.
    The only trouble is that there is not a single duplicate frame used in that project !
    I then created another "test" project by importing a clip and breaking it down into subclips. I dragged them all from the browser to the timeline and then dragged another one that was obviously a duplicate.
    It worked perfectly and the 2 dupes showed up in red.
    So why has the original project got numerous false dupes? Incidentally this "problem" project was captured as 3 clips (from the same tape) which were then split into subclips.
    Any ideas what is going on?

    For detecting dupes, FCP looks at 2 things: the time code and reel number. If you have not changed the reel number from the default 001, and all your tapes start at 00:00:00:00, then you will have several clips with identical time code and reel numbers, which FCP will then assume are the same clips, just digitised at a different time. Not changing the reel number is a _bad habit_ because, if you ever lose your media and have to redigitise, you will be up the proverbial creek, not knowing what reel to put in when the system asks you for "Reel 001". Label your tapes and log your reel numbers!!!
    j0n

  • INTERESTING PROBLEM WITH ITUNES DUPLICATES

    My iMac just recently had a meltdown due to HD failure, and I have a large collection in my iTunes. A little while ago, I thought it would be clever to store my music and the rest that I download into an external hard drive. Then, when the apocalypse finally came, I would be prepared to recover. I knew the day would come. So it came.
    I continued on after the hard drive was repaired, with a fresh Snow Leopard OS (I had regular Leopard before). I decided to do the iTunes restoring last. When I came to it, I decided to do it in segments, in order to prevent freezing (maybe like 300 songs at a time). Near the end of the external drive's files, I came upon the original library that I had before I decided to use an external drive. This was the first thing I had added. When I added it, it took the longest time to load into my library. When it finished, I had, varying from different files, two to three duplicates resulting in over 120 GB of music. How do I get rid of these duplicates without deleting the originals?

    Join the club
    Just take a look at about 50% of the recent forum posts and you'll find people with the same problem as well as some (possible) solutions.
    Note that no one has been able to find a solution that works for everyone. In particular I think the only way you'll be able to play WoW and iTunes at the same time is go back to iTunes 6.0.5.
    Sorry man. Apple doesn't seem to be doing anything about this.

  • Boot message: problem with hard drive detected. Slow loading of windows 7

    Good Day
    I am having a problem with my hard drive, everytime it boots these days it starts with a message: Warning: a problem with the hard drive has been detected, followed by an extremely slow loading of windows. then once in windows it gives me Anothet message
    the messsage says hard drive failure imminent you should back up you data etc.
    My specs are:
    Intel core 2 duo e8400 3.0 ghz
    4 gig ddr3 transcend
    1 tb seagate 7200.12
    giga byte nvidia 9800 gt 1 gig ddr3
    Please help lots of data.

    Another option:
    Take your hard drive out and slave it into another KNOWN WORKING PC.
    Back-up your data immediately. Slow boot usually indicates that the drive is going to die. (Check your warranty!)
    Then, run "chkdsk /r" from the host PC to check the failing drive. (It is good to match OSes if you can.)
    MCSE: 6771498

  • User  exit  needed (Problem related to duplicate batch entry in Migo(GR))

    Dear all,
                  I need a help from you.we facing problem in Goods receipt in MIGO.
    where we want to apply a check on batch which has already been assigned to a raw material in MIGO  .we are using manual
    batch entry .we don't want to make duplicate entry of same batch
    against any material.
    I tried to find out the user exit for that but i have not succeed .
    what is solution to
    avoid duplicate batch entry.

    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    No of Exits:          8
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • Has anyone solved the problem of receiving duplicate e-mails?

    I've posted this previously, but not gotten any satisfactory responses. A mail account I've been using for years is suddenly receiving duplicates. I have about ten mail accounts on my Mail app, and only this one is having this problem. I haven't changed any rules, I don't have a duplicate account. It's a huge pain, because there's so much I have to delete outright whenever I check my mail, plus, I have to do twice as much maintenance to keep down the amount of trash in the application. Anyone have any idea if this is a bug from a recent update? Or what's going on?
    I've got the latest version of the OS X and mail (10.5.7 and 3.6). The account has been many places -- it was on my old G4 that had Tiger, then I got an aluminum Intel Core 2 Extreme iMac with Leopard and migrated everything over from the old system; then Apple had to replace my iMac three times because of power issues. Actually, it originated long before my G4 with Tiger. I've used this account forever. The problem, however, just cropped up spontaneously a few months ago, with no changes on my end. Thanks in advance for any help!

    Have you looked on the web site for that one account to see if there are duplicate messages there? If not check that first. If therre aren't any duplicates there, the problem could be as simple as a corrupted Mail Index, which would be an easy fix. Post back with results.

  • Problems Printing Invoice Duplicate in a network printer

    Good Morning.
    I'm having a problem in a client, printing Invoices.
    Every time I send an invoice to the network printer (HP LaserJet M1522 MFP Series PCL6), in the first page (only in that one) of the duplicate, all the text labels have boxes. But if I send it to the printer directly connected to the pc (HP Laserjet P1505), everything is printed as it should be.
    Can anyone help me with this situation, because the client really want to print the invoices to the network printer. Could this be originated by some kind of error with drivers (because I've checked everything in SAP, an it's OK)?
    Best Regard,
    Marta Silva

    Hi Marta Silva,
    The network printer you are using is one of the worst reputation printer in the market.  You could try different drivers to see if the problem goes away.  Other than that, I don't think there are other solutions.
    Thanks,
    Gordon

  • ICloud not syncing and Contact problems with merging duplicates

    I was having problems with the syncing of my notes app. When I got the iphone 5 I had since using Mountain Lion I had started to make use of the fact that the notes sync across iCloud. Great. Although not for long. Everything was going fine notes were syncing across devices but then spontaneously they stopped syncing for no apparent reason. I then went to look in settings, looked online and all through discussion forums. Switching notes on and off on icloud both on the macbook and on my iphone. Restarting devices etc etc. iCloud itself online was not able to access the notes app. I kept getting error messages that I would submit to apple. Then I finally relqinquished and unhooked the iCloud accounts from the computer and phone. And at the sacrifice of losing albums in my photostream they sprung back to syncing.
    Then the real problem happened. I had selected to keep a copy of my address book in contacts when I unhooked my computer just in case. When everything linked back up again, I then had duplicates in my address book. Not 1 (this can happen just having icloud active) but 5 sets of duplicates, granted I had kept a version from when I unhooked. So I looked around again for how I could quickly and easily get rid of duplicates. Following suggestions online I go into contacts>cards>look for duplicates. I had 1200 or somthing duplicates, so naturally when given the option "would you like to merge the info in these duplicates I click yes. The MacBook starts to chugg away. Its gonna take a while. So I come back later. And before returning to CONTACTS, go to send a message from MESSAGES and I notice that 80% of the threads have no name. I go back to CONTACTS and WHAM 100s of contacts disappeared in the merge never to be retrieived again. You cant restore CONTACTS from Time Machine as it is just mirrors the contacts that you have in present time. Restoring phone doesn't work becasue it just downloads from iCloud after it has restored. TOTALLY RIDICULOUS. I am livid.

    what I mean is - create a complete new contact on your contacts and select a picture for it from your Mac. Then set it as "make this my card"
    Once you have done that - presumably it will sync with iCloud - have a look and the contact should appear on your iPhone too.
    On your iPhone go on Settings>Mail,Contacts,Calendar> Under "Contacts: in "My Info" select That new contact you created on your Mac.
    Let me know if that works.
    -On another note, so what you are saying is, if I take my 15' Macbook Pro in and they have none of the old ones in stock, they just give you a Retina display one! Did you take it to them for the contact issue you were having or something else?

  • IrDA problem PC can't detect 6101 but 6610 is OK

    PC running XP sp1 with USB IrDA adapter.
    Nokia PC Suite is not intalled yet.
    IrDA settings are all default, viz,
    Type is Vishay 6xxxx (default)
    Speed is 400000 (default)
    When I enable IR on my 6610, it connects immediately.
    When I enable IR on the 6101, it does not connect.
    I have been through the speed and IR type configurations for the adapter and have tried combinations of:
    Type: Sigmatel 4000, Sigmatel 4012 and Vishay (6101E perhaps?)
    Speed: 9600, 19200, 115200, 4000000
    On one occasion, the 6101 was detected but the installation appeared to fail. XP said:
    Detected new device Nokia 6101
    Detected Classic Phone
    Detected modem over IrDA (or something like that)
    It never got to:
    New hardware is installed and ready to use.
    I have also reimaged the PC so the 6610 was never present and still the 6101 can not be detected.
    Any suggestions please?

    Thanks for your reply and suggestion. I will try it. Do you suggest to use the latest version, or some older version?
    But, how will installing PC Suite help me if the PC cannot detect the 6101 although it can detect the 6610?
    Do I currently have a pure connectivity problem? How will PC Suite fix it?
    Thanks in advance

Maybe you are looking for

  • IPhone 3G S & Motorola HT820 Stereo Headphones

    I'm trying to get a general feel for anyone who might be using the Bluetooth headphones in the subject line along with their 3G S. I've ordered a set of the headphones off Ebay (and worst-case scenario, if they wind up not being to my liking, I'm onl

  • Script access for loaded SWFs in Flash CS3

    In ActionScript 2 I would do the following: var loader:MovieClipLoader=new MovieClipLoader(); var listener:Object=new Object(); loader.addListener(listener); listener.onLoadInit=function(m:MovieClip) { m.something="12345"; loader.loadClip("foo.swf",p

  • Excise capture in import PO with sub transction Type

    Hi Gurus Can anyone tell me how to make the settings  while capturing Excise Duties for import PO in J1iex sceen. I am unable to get the Sub Transaction type IP when trying to capture excise for import PO. I have made all the config settings for impo

  • How do I download an actual MAP?

    Hi ... When I go to "Download OVI Maps" and select my phone (7230), it says "You're Good To Go" ... Your mobile has Nokia Maps preinstalled.  But while the Map app IS on my phone, there's no actual MAP.  It seems like it thinks I want to install the

  • How to extract a single colum form XML files and load in a table

    Hi below I have a structure of xml files , I just need to extarct <RecordReference>PQPMID:7358</RecordReference> from file and load in to oracle .. Please let me know how to do ..?? file content below HoldingsRecord>      <RecordReference>PQPMID:7358