Where is this coming from?

Hi Experts,
Can you please let me know what this URL append ?blog=/pub/wlg/ and from where it's being called?
Regards, RN

Hi Raghava,
Not sure where my previous post disappeared
Well, as I stated earlier, I guess you are referring to SCN,   the /pub stands for public and wlg for weblog and /pub/wlg is the location in the KM from where these weblogs are stored and retrived from.Each blog=/pub/wlg/ would be followed by a unique number, like 1234 which indicates the unique file/blog that is stored in KM.
Hope this answers your question.
Cheers!
Sandeep Tudumu

Similar Messages

  • Safari browser version you are running does not support community tool bar. what's that mean and where is it coming from or how do I get rid of it ?

    I keep getting the message "Safari browser version you are useing does not support community tool bar." Where is this coming from and how do I get rid of it ?

    That toolbar/ct plugin causes problems for all who install it!
    Close Safari, then locate and delete the following files and it should be gone:
    /Library/Application Support/Conduit
    /Library/InputManagers/CTLoader
    /Library/Receipts/ctloader.pkg
    /Library/Receipts/<Toolbar name>.pkg
    /Library/Application Support/SIMBL/Plugins/CT2285220.bundle
    /Users/<User name>/Library/Application Support/Conduit
    where / is the root library on your Hard Disk.
    If you are running Snow Leopard you should also look here:
    Library/launchAgents/com.conduit.loader.agent.plist
    Library/Application support/conduit plugins
    Note: Safari does not support any third-party toolbars except those supplied as an extension to Safari via the Extension Gallery.

  • Where in the world is this coming from?

    I've recently been contracted to build an application for my employer. Great. The project is really straight forward and its going along nicely ... all except for this simple bit here.
    I decided to use a new "big & bad" IDE (Netbeans 5.5) seeing as how this was pretty GUI intensive. I don't like to have to sit down and calculate all of those dimensions and placements by hand. So ... am using the IDE.
    Pasted below is the initComponents() method of my program where my JTree (jTree1) is instantiated. It has an empty constructor - and nothing has been added to it ... so I'm curious as to how this is happening:
    The problem:
    I've reviewed the code over and over again. I can't find anywhere where a default dataset is being assigned to the JTree. Anywhere. However, when I go to view my form - I have the following information in the tree:
    JTree
    |
    Colors
    |- blue
    |- violet
    |- red
    |- yellow
    |
    Sports
    |- basketball
    |- soccer
    |- football
    |- hockey
    |
    Food
    |- hotdogs
    |- pizza
    |- ravioli
    |- bananas
    Where in the name of Satan's assshole is this coming from?
        private void initComponents() {
            btnSend = new javax.swing.JButton();
            btnClose = new javax.swing.JButton();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTree1 = new javax.swing.JTree();
            jLabel1 = new javax.swing.JLabel();
            btnDoAssignment = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Homework Utilities");
            btnSend.setText("Send Homework");
            btnClose.setText("Close");
            btnClose.setMaximumSize(new java.awt.Dimension(109, 23));
            btnClose.setMinimumSize(new java.awt.Dimension(109, 23));
            btnClose.setPreferredSize(new java.awt.Dimension(109, 23));
            btnClose.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btnCloseActionPerformed(evt);
            jTree1.setEditable(true);
            jScrollPane1.setViewportView(jTree1);
            jLabel1.setText("Select Homework Assignment:");
            btnDoAssignment.setText("Do Assignment");
            btnDoAssignment.setMaximumSize(new java.awt.Dimension(109, 23));
            btnDoAssignment.setMinimumSize(new java.awt.Dimension(109, 23));
            btnDoAssignment.setPreferredSize(new java.awt.Dimension(109, 23));
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(btnClose, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(btnSend)
                        .add(btnDoAssignment, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(22, 22, 22)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                        .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jLabel1)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                            .add(btnDoAssignment, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(btnSend)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(btnClose, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap())
            pack();
        }Nowhere else in the rest of the entire application is jTree1 even referenced. So, how is this? How is that data in my tree? Best question: how in the funk do I get it out??

    Myeh - I'm not really in any rush. I work from home as a private contractor. I tell you - it is so much more ... relaxed? ... than when I was working for my previous employer. My current employer wants the product finished by June. Thats when they have a big push of students coming in and want the new software ready for them. So, I've got a while - and it definitely wont take me that long to complete. I just figured that there must be something to the fuss about IDEs and how they simplify things. And, tonight, I found that that is a load of horseshit.
    (Just so you know - there is a downside to working for yourself... you get weird requests from people like the following ...)
    I had a guy once ask me to write an application for his son who is obsessed with the television show Alias. He said he wanted a program that did exactly what this Alias program did on the show in a particular episode. When asked if I was familiar with it, I said no. So what does this goofball do? He goes and buys the show on DVD and brings it to me. We watch it - he takes me to the point in the show and says "That! Right there! That's what he wants!!"
    Astonished (and somewhat dumbfounded) I ask him, "You're aware of the fact that I am not going to be capable of writing an application that remotely logs into a secret NSA super-computer via satellite ...... right?" He then proceeded to tell me to make it look like it does. Just make up all sorts of stuff - just as long as it looks the same.
    The worst part .... that wasn't the only request of the type that I've received. (Granted, the others were by kids - usually 14 or 15 that thought that I'd do it for 10 or so bucks.) Because I obviously have time to waste on such things ...

  • Every time I open Mozilla Firefox, there is an annoying sound that won't stop, and it sounds kind of like pac man. I t won't stop, and I have no idea where it is coming from. I have tried everything. Any suggestions on what I should do?

    Every time I open Mozilla Firefox, there is an annoying sound that won't stop, and it sounds kind of like pac man. I t won't stop, and I have no idea where it is coming from. I have tried everything. Any suggestions on what I should do?
    == This happened ==
    Every time Firefox opened
    == I opened firefox today, and it won't stop.

    It's just the Google homepage tribute to Pacman turning 30 today. A playable game starts up automatically, use the arrow keys to move Pacman. It's fun!
    You can get Ms Pacman to appear in that game by clicking the "insert coin" button twice and using the WASD keys to move :)
    You can also just change your homepage to something other than google until tomorrow.

  • ORA-06550: where could this come from?

    Hello!
    I am working on an application and about one week ago when presenting it (of course) I've got this error:
    "ORA-06550: line 1, column 47: PL/SQL: ORA-00972: identifier is too long ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored"
    I've tried to debug it but nothing worked so I decided to re-create the page.
    I did this and today, during the demo.. I've got this AGAIN!
    The application is supposed to manage the meeting rooms bookings in the company I am working for. The error I get is on the Create a new meeting page. On the same page I have many other elements (I hide / show regions while collecting all data from user)
    Please advice,
    Thank you in advance!
    Anca

    Hello!
    Thank you for the answers. This error ate a lot of my time as I didn't know where it was coming from and rebuilt the complex page several times. Last time I checked it after every new element added.
    The error occurred when I was trying to create new "meeting" (an insert to my table).
    As mentioned, on the same page I had several forms but hidden and displayed depending on the workflow moment.
    The problem was caused by one form element supposed to help getting data for another table (participants). Maybe is a database structure issue, but all my tables have the primary key named ID. This is how I've ended up with two form items supposed to link to database column ID. So, I imagined that for the second one I can make the difference by adding the table name in front.. as I would normally do in SQL. Wrong. This is what was causing the issue. Now I use the secondary form with no connection to any column and I add the data via an insert PL / SQL process I wrote.
    It is funny how i find the solution after I ask on the forum, no matter if somebody is helping me or not :)
    Thank you again for the support!
    Have a nice day!
    Anca

  • Hi, I have a Power Book G4 Tiger 10.4.11 and my problem concerns iTunes 9.2.1(5). I have changed my Apple ID and password recently. Since that, I am told when I try to buy something in iTunes Store that my "session has expired". Where does this come from?

    Hi, I have a Power Book G4 Tiger 10.4.11 and my problem concerns iTunes 9.2.1(5). I have changed my Apple ID and password recently. Since that, I am told, only when I try to buy something in iTunes Store, that my "session has expired". Where does this come from? What should I do to solve this problem ? I would greatly appreciate your help. Thank you in advance.

    Hi, I am khonthaï. I solved the problem thanks to JHdeVilliers's post on 4 Dec. 2011: I removed all cookies in Safari and it worked immediately !!!

  • I'm receiving money in my itunes account but my stepdad recently cancelled my allowance. Any idea where it is coming from?

    I'm receiving money in my itunes account but my stepdad recently cancelled my allowance. Any idea where it's coming from?

    It wasn't cancelled.

  • There is a bunch of music in my library under "purchased" that I did not purchase. where does this come from?

    there is a bunch of music in my library under "purchased" that I did not purchase. where does this come from?

    It is possible you accidently added these songs to it. Even though the Purchased playlist is kind of a smart playlist you can still drag and drop songs from your library into it.

  • Can't figure out where NullPointerException is coming from

    I will attach the code I have below. It is almost entirely done but i am getting a NullPointerException that is driving me nuts, and I can't figure out were it is coming from.
    Help is greatly appreciated.
    First code:
    import java.util.Scanner;
    import java.io.*;
    import java.util.Random;
    import java.util.Collection;
    public class DistributionPlagiarist
         public static void main(String[] args) throws IOException
              Scanner keyboard = new Scanner(System.in);
              int keyLength=0, phraseLength=0, numberOfPhrases=0;
              String inputFileName="", keepReadingFromFile="", theFile="";
              FrequencyLibrary text = new DenseFrequencyLibrary();
              if(args.length != 4)
                   System.out.println("The command line arguments you entered do not match what is needed.  Please try again.");
                   System.exit(0);
              for(int count=0; count<args.length; count++)
                   keyLength = Integer.parseInt(args[0]);
                   phraseLength = Integer.parseInt(args[1]);
                   numberOfPhrases = Integer.parseInt(args[2]);
                   inputFileName = args[3];
              if(keyLength < 0)
                   while(keyLength < 0)
                        System.out.print("The length of the key (" + keyLength + ")" + " you entered is less than zero.\nPlease enter another key length: ");
                        keyLength = keyboard.nextInt();
                        System.out.println();
              if(phraseLength < 0)
                   while(phraseLength < 0)
                        System.out.print("The desired length of the phrase (" + phraseLength + ")" + " you entered is less than zero.\nPlease enter another phrase length: ");
                        keyLength = keyboard.nextInt();
                        System.out.println();
              if(numberOfPhrases <= 0)
                   while(numberOfPhrases <= 0)
                        System.out.print("The desired number of phrases (" + keyLength + ")" + " you entered is not applicable.\nPlease choose another number: ");
                        keyLength = keyboard.nextInt();
                        System.out.println();
              File file=new File(inputFileName);
              boolean exists = file.exists();
              if (exists == false)
                   while(exists == false)
                        System.out.println("The file you are searching for does not exist.  Please place it in this programs directory.");
                        System.out.print("Please re-enter the file name: ");
                        inputFileName = keyboard.nextLine();
                        file=new File(inputFileName);
                        exists = file.exists();
              int count=keyLength, start=0, stop=0;
              FileReader freader = new FileReader(inputFileName);
              BufferedReader inputFile = new BufferedReader(freader);
              while(keepReadingFromFile != null)
                   keepReadingFromFile = inputFile.readLine();
                   if(keepReadingFromFile == null)
                        break;
                   else
                        theFile = theFile + keepReadingFromFile;
              while(count < theFile.length())
                   String name = theFile.substring(start, keyLength+stop);
                   char singleCharacter = theFile.charAt(count);
                   text.add(name, singleCharacter);
                   start++;
                   stop++;
                   count++;
              int countNumberOfPhrases=0;
              while(numberOfPhrases > 0)
                   countNumberOfPhrases++;
                   String phrase = randomphrase(text, phraseLength, keyLength);
                   System.out.println("Phrase " + countNumberOfPhrases + ":\n" + phrase);
                   numberOfPhrases--;
         private static String randomphrase(FrequencyLibrary textLibrary, int phraseLengthToMake, int startLength)
              String startString="";
              char characterToAdd=' ';
              startLength++;
              Random generator = new Random();
              int sizeOfLibrary=textLibrary.size()/2, randomInt = generator.nextInt(sizeOfLibrary+1), value=0;
              Collection<String> stringNames = textLibrary.makeStringCollection();
              for(String stringFromCollection : stringNames)
                   if(randomInt == value)
                        startString = stringFromCollection;
                   value++;
              String thePhrase = new String(startString);
              System.out.println("INITIAL START:" + startString + "TTTT");
              int substringStart=1;
              while(startLength < phraseLengthToMake)
                   characterToAdd = textLibrary.randomUniformChoose(startString);
                   thePhrase = thePhrase + characterToAdd;
                   System.out.println("CHARACTER:" + characterToAdd + "TTTT");
                   System.out.println("PHRASE:" + thePhrase + "TTTT");
                   startString = thePhrase.substring(substringStart, thePhrase.length());
                   boolean answer = textLibrary.contains(startString);
                   System.out.println(answer);
                   System.out.println("NEW STRING:" + startString + "TTTT");
                   startLength++;
                   substringStart++;
              return thePhrase;
    }Second code:
    import java.util.Collection;
    import java.util.HashMap;
    public class DenseFrequencyLibrary implements FrequencyLibrary
         private HashMap<String, MultiSetOfChar> bookTitleAndCharacterAndIntegerHashMap = new HashMap<String, MultiSetOfChar>();
         private MultiSetOfChar keyAndValuePairs = new DenseMultiSetOfChar();
          * Creates a new DenseFrequencyLibrary with all the essential things clear;
         DenseFrequencyLibrary()
              bookTitleAndCharacterAndIntegerHashMap.clear();
          * Input the value from the creation of the DensneMultiSetOfChar into a HashMap.  If the key
          * already exists then the value associated with it is updated by one.
          * @param character a char to be used in forming the HashMap
          * @return characterMap
         private HashMap<String, MultiSetOfChar> inputIntoMap(String name, char character)
              if(!bookTitleAndCharacterAndIntegerHashMap.containsKey(name))
                   keyAndValuePairs = new DenseMultiSetOfChar(character);
              else
                   keyAndValuePairs.add(character);
              this.bookTitleAndCharacterAndIntegerHashMap.put(name, keyAndValuePairs); //input character and value
              return bookTitleAndCharacterAndIntegerHashMap; //return the new HashMap
          * Returns the number of books in the library.
          * @return |b|, ie the number of books in b
        public int size()
             int numberOfBooks=bookTitleAndCharacterAndIntegerHashMap.size();
             return numberOfBooks;
         * Searches the library for an occurrence of a given book
         * @param target the name of a book to be searched for in the library
         * @return true if and only if the argument is already a book title in the library.
        public boolean contains(String target)
             boolean bookIsInLibrary=false;
             if(bookTitleAndCharacterAndIntegerHashMap.containsKey(target))
                  bookIsInLibrary = true;
             return bookIsInLibrary;
         * Returns the MultiSetOfChar that represents the occurrences of the individual characters
         * in the text of the book indicated by the argument.
         * @param target
         * @return MultiSetOfChar
        public MultiSetOfChar getFrequencies(String target)
             MultiSetOfChar frequencyMultiSetOfChar = bookTitleAndCharacterAndIntegerHashMap.get(target);
             return frequencyMultiSetOfChar;
         * Modifies the character occurrences associated with name to include one more occurrence of element.
         * @param name string of the name of the book
         * @param element character to add to the specified book
        public void add(String name, char element)
             bookTitleAndCharacterAndIntegerHashMap = inputIntoMap(name, element);
         * Modifies the character occurrences associated with name to include one less occurrence of element.
         * @param name string of the name of the book
         * @param element character to be removed from the specified book
         * @return true if and only if the book is modified.
        public boolean remove(String name, char element)
             boolean characterWasRemovedFromBook=false;
             //if the target character is in the map then remove it
              if(bookTitleAndCharacterAndIntegerHashMap.containsKey(name))
                   MultiSetOfChar keyAndValuePairs = bookTitleAndCharacterAndIntegerHashMap.get(name);
                   keyAndValuePairs.remove(element);
                   characterWasRemovedFromBook = true; //set answer to true because the HashMap was changed
              else //target does not exist in the HashMap
                   characterWasRemovedFromBook = false; //set answer to false because the HashMap was not changed
             return characterWasRemovedFromBook;
         * Returns a random character, chosen from the same distribution as the characters appear in the book.
         * For example, if 5% of the characters in "Alice in Wonderland" are an 'A', then this method should
         * return an 'A' about 5% of the time.
         * @param name string of the name of the book to search through and remove a character
         * @return true if and only if the argument is already a book title in the library.
         public char randomUniformChoose(String name)
            MultiSetOfChar keyAndValuePairs = bookTitleAndCharacterAndIntegerHashMap.get(name);
            char randomCharacter = keyAndValuePairs.randomUniformChoose();
              return randomCharacter; //return the random character pulled out
         public Collection<String> makeStringCollection()
              Collection<String> stringCollection = bookTitleAndCharacterAndIntegerHashMap.keySet();
              return stringCollection;
    }Third code:
    import java.util.HashMap;
    import java.util.Set;
    import java.util.Collection;
    import java.util.Random;
    * DenseMultiSetOfChar implements MultiSetOfChar.
    * @mathmodel b is a finite multiset
    * @mathdef
    *  |b| is the cardinality of b
    *  ||c,b|| is the number of occurrences of element c in b
    * @author Kyle Hiltner
    public class DenseMultiSetOfChar implements MultiSetOfChar
         private char characterInput=' ';
         private HashMap<Character, Integer> characterMap = new HashMap<Character, Integer>();
          * Create a new DenseMultiSetOfChar with zero argument
         DenseMultiSetOfChar()
              characterMap.clear(); //clear static HashMap
          * Create a new DenseMultiSetOfChar with the passed in value.
          * @param newChar character input to be added to the HashMap
         DenseMultiSetOfChar(char newChar)
              this.characterInput = newChar; //set characterInput to the value passed in
              characterMap = inputIntoMap(this.characterInput); //call private procedure to add characterInput to HashMap
          * Input the value from the creation of the DensneMultiSetOfChar into a HashMap.  If the key
          * already exists then the value associated with it is updated by one.
          * @param character a char to be used in forming the HashMap
          * @return characterMap
         private HashMap<Character, Integer> inputIntoMap(char character)
              //if the character is not in the HashMap then add it with the starting value of 1
              if(!characterMap.containsKey(character))
                   characterMap.put(character, 1); //input character and value
              else //character does exist
                   int value = characterMap.get(character); //get the value for the specified key
                   value++; //increase the value so as to show that another character was added
                   characterMap.put(character, value); //place the character and new value in the HashMap
              return characterMap; //return the new HashMap
          * Returns the number of elements in this multiset (ie its cardinality).
          * Note that since multisets can include duplicates, the cardinality may be
          * larger than the number of distinct elements. Also, the total number of
          * items in the multiset is bounded above by Integer.MAX_VALUE.
          * @return |b|, ie the cardinality of b
         public int getCardinality()
              int totalElementsInMap=0;
              Collection<Integer> integerCollection = characterMap.values(); //create a collection for easy iteration
              //iterate through each value in the HashMap and compute the total number of elements in the HashMap
              for(Integer valueFromCollection : integerCollection)
                   totalElementsInMap = totalElementsInMap + valueFromCollection; //compute new value of total values
              return totalElementsInMap; //return the final total value
          * Returns the number of occurrences of a given element in the multiset. A
          * simple identity relating getElementCount and getCardinality is that the
          * sum of getElementCount for each char is equal to the cardinality of the
          * set.
          * @param target
          *            char to be counted in the multiset
          * @return ||target,b||, ie the number of occurrences of target in b
         public int getElementCount(char target)
              int numberOfGivenCharacters=0; //set initial value
              //if the HashMap contains the target character then numberOfGivenCharacters is set to the value
              if(characterMap.containsKey(target))
                   numberOfGivenCharacters = characterMap.get(target); //set numberOfGivenCharacters to the value assigned to the target character
              return numberOfGivenCharacters; //return the value for the target character
          * Returns a set such that every element in the multiset is in the set (but
          * no duplicates). The cardinality of the returned set must be less than or
          * equal to |b|. The cardinality of the two are equal if and only if b
          * contains no duplicate elements.
          * @return a set of Character, s, such that: <br />
          *         (for all (Character)i in s : (char)i in b) and <br />
          *         (for all (char)i in b : (Character)i in s)
         public Set<Character> getElementSet()
              Set<Character> characterSet = characterMap.keySet(); //create a Set from the keys of characters in the HashMap     
              return characterSet; //return the character Set
          * Adds a single element to the multiset. This operation always increases
          * the cardinality of the multiset by 1, assuming that the maximum capacity
          * of Integer.MAX_VALUE has not been reached.
          * @param item
          *            the char to be added to b
          * @requires |b| < Integer.MAX_VALUE
          * @alters b
          * @ensures b = #b union {item}
         public void add(char item)
              characterMap = inputIntoMap(item); //call the private method to add new character (item) to the HashMap
          * Removes the target, if it is present in the multiset. The method returns
          * true if and only if it changes the multiset.
          * @param target
          *            the char to be removed
          * @alters b
          * @ensures (target not in #b) ==> (b = #b) <br />
          *          (target in #b) ==> (b union {target} = #b)
          * @return target in #b
         public boolean remove(char target)
              boolean answer=false; //set initial value to false
              //if the target character is in the map then remove it
              if(characterMap.containsKey(target))
                   int value = characterMap.get(target); //find the value associated with the target character
                   //if the value is 1 call remove from the HashMap and remove key and value
                   if(value == 1)
                        characterMap.remove(target); //remove key and value from the HashMap
                   else //value is greater than 1
                        value--; //decrease value to show removal
                        characterMap.put(target, value); //replace target character with new value back into the HashMap
                   answer = true; //set answer to true because the HashMap was changed
              else //target does not exist in the HashMap
                   answer = false; //set answer to false because the HashMap was not changed
              return answer; //return answer
          * Returns a char chosen randomly based on the contents of the multiset.
          * This operation does not remove the char from the multiset or change the
          * multiset in any way. In particular, the cardinality of the multiset is
          * the same before and after this method.
          * <p>
          * Characters should be returned with a random distribution equal to the
          * distribution of characters in the multiset. That is, for a character that
          * appears N times in a multiset of cardinality M, the probability of that
          * character being returned is N / M. For example, a multiset that contains
          * only the character 'a', possibly many times, would always result in an
          * 'a' being generated. On the other hand, a multiset with an equal number
          * of 'a' and 'b' elements would return an 'a' approximately half the time
          * and a 'b' the other half.
          * @requires |b| >= 1
          * @return char c with probability p, where: <br />
          *         p = ||c,b|| / |b|
         public char randomUniformChoose()
              char randomCharacter=' ';
              Random generator = new Random();
              int totalElementsInMap=0;
              Collection<Integer> integerCollection = characterMap.values(); //create a collection for easy iteration
              //iterate through each value in the HashMap and compute the total number of elements in the HashMap. 
              //Do this in case a remove call was made
              for(Integer valueFromCollection : integerCollection)
                   totalElementsInMap = totalElementsInMap + valueFromCollection; //compute new value of total values
              int randomInt = generator.nextInt(totalElementsInMap+1), lowerValue=0, upperValue=0;
              Collection<Character> keyCollection = characterMap.keySet();
              //iterate through each value in the HashMap and compute the total number of elements in the HashMap
              for(Character keyFromCollection : keyCollection)
                 upperValue = upperValue + characterMap.get(keyFromCollection);
                 if(randomInt == upperValue)
                      randomCharacter = keyFromCollection;
                 if(randomInt >= lowerValue && randomInt <= upperValue)
                      randomCharacter = keyFromCollection;
                 lowerValue = upperValue + 1;
              return randomCharacter; //return the random character pulled out
    }The Error:
    Exception in thread "main" java.lang.NullPointerException
         at DenseFrequencyLibrary.randomUniformChoose(DenseFrequencyLibrary.java:137)
         at DistributionPlagiarist.randomphrase(DistributionPlagiarist.java:146)
         at DistributionPlagiarist.main(DistributionPlagiarist.java:112)I will attempt to explain what this does in as few words as possible. For a breakdown of the lab go urlhttp://www.cse.ohio-state.edu/~paolo/teaching/494MJ/labs/lab8.shtml{url}. If you don't feel like reading that: THe program reads in some command line arguments. From there it reads from the file provided in the command line and creates "keys" from the specified length. From there I need to create a phrase of the specified length. If i am supposed to create more then one then i do. That is pretty much it. I can't figure out where (really why) the NullPointerException error is coming from.
    Help is appreciated!!

    Post the actual error text (copy and paste, don't "interpret" it) here.
    It should include a stack trace which references a line number of the program -
    unless you suppressed the trace, in which case change your error handling
    so that the trace is produced.
    Identify which program line in your post the error is pointing to so that we can match
    the error with your program, since your post doesn't have line numbers..
    Edited by: ChuckBing on Nov 16, 2007 7:19 PM
    Also - posting large amounts of code (as you did) will reduce the chance of anyone helping

  • Page / Tab Title ... where is it coming from, so that I can change it?

    Greetings!
    I'm new to Application Express, and can't find the place where I change the title of a page (or is it part of a tab?). I can change the tab title, but can't seem to find where to change the title that seems to accompany it at the left of the page.
    If I could include a screenshot, I'd be able to show this clearer, so will have to mockup what I mean ... hopefully it will be clear enough....
    Below, I have a page with a single level of tabs - One was originally called "UNPLANNED_OUTAGE" and this was the title of the tab, and the title at the left of the screen. I have changed the tab title to the desired "Outage Summary", but can't find where I can change the title at the left of the screen (currently still "UNPLANNED_OUTAGE"). I want to change it to "Outage Summary" like the tab, or to something else, but can't find in Application Express where this is coming from.
    ......................................................................... | Outage Summary | Tab 2 |
    UNPLANNED_OUTAGE
    Region Title
    Region ... etc ...
    Regards,
    Roger

    Hey Roger
    I am not sure exactly what your question was. However, if I understand correcrly, you want to change the PAGE title (displayed on the typically blue frame of the MS IE window).
    Go to the Page design mode, and in the PAGE region, click on the TITLE link. Edit the title.
    If this is what you were looking for, great. I'll give you another unsolicited advice. Start your page title with a page number, e.g. "Page 651 - Form on Enforcement Action Requests."
    That way, even when the thickest of your users report problems, or have suggestions for improvement, they will be able to tell you which page they are looking at...
    Vojin

  • I hear very soft audio (advertising) in the background - how can I get rid of it? Cannot tel where it is coming from.

    These are commercials that I get very softly in the background - I have checked every tab for hidden ads, cannot find where this is coming from. What gives?

    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox profile folder.
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them if possible).
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • IPad making notification sound even though I disabled them all, where is it coming from?

    Okay so since updating to iOS7, there is something triggering random notifications on my iPad. It's making a two note notification sound. There's no banner or badge or anything that is associated with it. I went into notification center and have literally turned off every single sound notification (but leaving the sound switch on). The iPad still makes the notification sound.
    I was thinking it was coming from the OS itself, but I went and browsed the sounds under Settings->Sounds and couldn't find the one that I'm hearing (although I suppose that doesn't rule anything out).
    Any ideas on where it could be coming from?

    I have an iPhone 5 and an iPad Mini, but I only had the problem on the iPad Mini.  My problem was a little different than yours, but this fix may work for you.
    This is what I posted in another thread:
    I HAVE FIGURED OUT THE FIX FOR THIS! ... (Well it worked for me on my iPad Mini.)
    I saw a post from an apple rep telling a iOS 6 user to turn the side switch on to un-mute the sounds. A no-brainier yes, but it made me wonder if the side switch may have been temporarily "confused" after updating to iOS 7 because it added the new settings screen that swipes up from the bottom of the screen. I was using my side-switch to lock the screen rotation and it was in the "off" (down) position (red visible) and none of my notifications were sounding. So I flipped it up and down a couple times which didn't solve the problem. So logically, I proceeded to what inevitably solved the problem...
    Go to Settings > General / "Use Side Switch To" and select the opposite of what you are currently using. I had mine on Lock Rotation, so I selected Mute. Then flip your switch up and down slowly a couple of times to see that the confirmation on the screen is correct.  You may have to go back to settings again and select the other choice if you originally had Mute selected, I don't know because I originally had Lock Rotation in use.
    Hopefully, this will fix your notification sounds (and the lock sound when you press the power button).  After using this fix, you can set the use of the side switch to your preference and still have all of your notification sounds!

  • Where is spam coming from?

    I have a Photosmart 5520 and very occasionally I have used the eprint option without problems.  I have security set to "Allowed" email addresses only and there are only 2 listed addresses - mine and my daughter's.
    Yesterday I received a series of prints that I hadn't sent and my daughter hadn't sent.  The HP.com website advises going to Print History to ascertain where the prints came from and, if necessary, block the sending address.  Unfortunately, nothing is listed.
    I would be grateful for any advice.
    Many thanks
    This question was solved.
    View Solution.

    Hi RedV68,
    You've definitely got the correct settings for the e-print email (that's how I set mine up at home too). After checking the specs of your printer, it only leaves a few options.
    1. Does your wireless home network/router have a WEP key or WPA password on it? If it's an open network with no security, someone may have been in range of your printer and sent it there.
    2. Is the Wireless Direct feature on? This is a 2nd wireless feature built into your printer, and if it is enabled but without a pin code, it could be accessible as well to other nearby wifi devices such as cellphones. Here's how to shut if off to check that theory - just do the opposite from these steps to shut it off:
    Step one: Turn on HP wireless direct
    Use the following steps to turn on the HP wireless direct feature.
    On the printer control panel, press the Settings icon ( ).
    Touch Wireless , and then touch Wireless Direct . The Wireless Direct Settings menu displays.
    Touch Wireless Direct , and then choose a security option:
    Touch On (No Security) if you do not want to require a passcode to connect, and then touch Yes to continue.
    Touch On (With Security) if you want to use a pre-assigned passcode to connect, and then touch Display Password . Touch OK to continue.
    3. Are there any auto-scheduled Apps setup on the printer that print on their own schedule? If so, you might want to pause or cancel them:
    Cancel or resume delivery of a Scheduled Delivery Print App
    Follow these steps to suspend or resume delivery of a Scheduled Delivery Print App.
    Go to HP Connected , and then log in to your account.
    Click Devices , and then click Settings .
    Click the App that you want to configure, and then click Settings .
    To cancel the App:
    Click Cancel scheduled delivery , and then click Cancel Subscription .
    Hope that helps
    *** If my reply was helpful, please click on the "Kudos Thumbs-Up" on the right, as a way to say "Thanks!".
    If this reply also fixed your issue - please click the "Accept as Solution" button, so that others can find the same answer. ***

  • Extra spacing - can't figure out where it is coming from.

    Hello,
    I am trying to close the gap between the sentence "We can cover your overdrafts in two different ways" and the actual two points.  I can not figure out where all that space is coming from:
    http://www.tellgcu.com/melanie.shefchik
    Thanks,
    Melanie

    The space is there as a result of the default margin/padding on the .mainbody paragraph tag.
    You can either set the margin and padding to zero on the css:
    .mainbody {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10px;
    padding: 0 0 10px 0;
    margin: 0
    However if you have that class applied somewhere else on the page you may want to set some inline css to specifically deal with the issue:
    <p class="mainbody" style="margin: 0; padding: 0 0 10px 0;">Dear Melanie,<br /><br />
    An overdraft occurs when you do not have enough money in your account to cover a transaction, but we pay it
    anyway. We can cover your overdrafts in two different ways:</p>

  • I'm getting large data charges that i don't know where they are coming from.

    Any ideas how to handle this?  I have direct tv.  I suppose it could be coming from there.  Also, could be spam or something.  Anyway of telling??

    tslem,
    I want to make sure we help answer any concerns.  Are these current charges on your bill? Are you receiving data usage alerts?  Provide more details to better assist.
    YareliM_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

Maybe you are looking for

  • Progess bar is not showing until the task is completed

    Hi, when some button press, in button action i am using "progessBar.setVisible(true)" as fist statement then i am processing some XML files. according to above scenario the progress Bar need to visible first then processing XML files later but after

  • Change my Host Name in Solais 10

    Please, when I run smc(Solaris Management Console) I can see in System Information, that my Host Name is unknown. How can I change that?

  • Hard Drive Upgrade = Slow Restart?

    Hey, I just upgraded my hard drive to a 250 GB Verbatim drive I ripped out of an external case, and my girlfriend upgraded to the 320 GB WD hard drive. Both of our computers are restarting SLOWLY and even searching in finder takes longer than previou

  • Trigger business

    Hi everybody I'm kind of stuck in some trigger questions I have a Tenants table and an Apartment table, what i'm trying to achive is that when i'll add a new tenant the column at the Apartment table will update by 1 at the apartment he is live in. th

  • CF application to run SQL 2k JOB?

    Hello All, I would like to build an application to run a MS SQL Job. The Job is located in \\ server \ Management \ SQL Server Agent \ Jobs . II need to connect from an users desktop, have them click a button and run the SQL JOB. Has any one done thi