Count in Answers

Hi,
I have two columns example Project and Chnaged-Date, I want to get the total, count of rows. How can I do it in ANswers, without modifying my database?
Thank you for your time and help.

hi ssk,
David solution is perfect,for another solution you can go through this
http://www.miky-schreiber.com/Blog/PermaLink,guid,e964552b-eb6e-449b-b2c6-42adea2376cd.aspx
Cheers,
KK
Edited by: Kranthi.K on Apr 18, 2011 9:08 PM

Similar Messages

  • CUIC field Answered on CallType vs Skillgroup reports

    Hi,
    Currently i have a UCCE 9.0 environment with CUIC 9.0, some of my reports are not matching and have a lot of diferences on the total number of answered Calls
    For the CallType report which includes the calls for the 4 Pheripheral Skillgroups i have 109 Calls unther the "Answered" field
    For the Peripheral Skillgroup report i have a total of 25 calls for the same 4 Pheripheral Skillgroups.
    The definitions on the CUIC documentation are:
    For the Peripheral Skill Group Historical All Fields report, Answered: The number of calls answered by agents associated with a skill group during the reporting interval. This value is set by the PG. The number of calls answered includes only handled calls and internal calls received. The value is incremented at the time the call is answered. Derived from: Skill_Group_Interval.CallsAnswered
    For the Call Type Historical All Fields report, Answered: The total number of calls of this call type answered by agents in the interval. This field is applicable to both Unified ICM and Unified CCE with the following exception: if the call is answered by an agent on a standard ACD, this field is incremented only if the call was translation routed. Derived from: Call_Type_Interval.CallsAnswered.
    For me there is a lot of difference between them, and for what i can see on the documentation i suppose that those numbers should be very close. I've tried by doing a direct query on the data source and it match with the reports. If this is not an interpretation poblem, what could be wrong?
    Regards,

    Hi Claudio,
    How different are the numbers? If they are out by a lot I would suspect there might be multiple call types you might not be aware of which are routing to the same Skill Group (ie if you have 10 call types all routing to the same skill group and you are only aware of 5 of them then when you add up the calls answered across the 5 call types you might be missing the calls answered from the remaining 5 call types which make up all the calls answered by the skill group).
    Maybe have a look at the Call_Type_SG_Interval which you can use to count calls answered per call type per skill group. This will at least confirm where all the calls are coming from which are hitting that skill group so you can make sure you are counting all the call types.
    Cheers,
    Nathan

  • Not being to add my counter

    Hi all,
    I have a problem with my counter. i initiated a counter which counts how many tries a number is generated and i can succesfully print that count. what i cant do is take that count and add it to itself so i can take an average of how many tires it took. secondly i have java running in my dos command windows under windows 2000 when i do one run it succesfully prints out the random number i genreated but if i do a loop to run it more than once the numbers do not print on screen only the last two does? i'm confused why it would print the first batch and no batch of number completely after that it just prints out the last.
    i have a prgram model to somewhat of this effect
    int counter;
    loop{
    counter = 0;
    genrate numbers;
    count++;
    print count
    print count+ next count <------ thats the step i dot know what i am doing wrong on. I hope my description make senses

    Some thoughts .../* Code generates up to 500 random numbers in a loop and stores the value found in the int 'temp' -
    takes value from incremented 'counter' and gives result when the input number was reached.  (not tested) */
      int theNum = 0;
      int numberOfTries = 499;
      int temp = 0;
      int counter = 0;
    INPUT METHOD FOR THE NUMBER TO BE TESTED = 'TheNum'
       for(int i = 0; i < numberOfTries; i++) {
          counter++;
          Random rndm = new Random();
             int target = 1 + rndm.nextInt(100); // generates numbers 1-100 on each pass
            if (theNum == target) {
               temp = counter;     
        DISPLAY ANSWER: ("Your number "+theNum+" was guessed after "+temp+" Tries");

  • Setting incorrect answers on a customised quiz

    Hi there.
    I'm setting up a customised quiz (not using question slides) and was wondering how you set the correct/incorrect answers. What I've done so far is included all answers in the quiz (via the reporting section), but only set the right answer to "Add to total". This seems to work, as I get the correct scores at the end of the quiz, but when looking at my LMS reports it's counting all answers as "Correct", even when answered incorrectly.
    Any idea if this to do with the Captivate settings or the LMS settings?
    The LMS I'm using is a customised one built for the company I work for using a Joomla template.
    Thanks.

    Hi Lilybiri.
    Thanks for the response. To explain further...
    This is what I'm seeing on my LMS report (this is an example for one question)
    As you can see the result of the question is showing as "correct", but it was actually answered incorrectly. It's a multiple choice question using click boxes. For the correct clickbox I've got these settings:
    The wrong clickboxes have these settings:
    I've also tried unticking the "Include in quiz" box, and only having the "Add to total" box unticked, but my LMS still tells me it was answered correctly when answered incorrectly.
    Any thoughts on why this is happening?

  • Select every nth file from a folder

    Hello:
    I have a file on my computer that has about 2200 word documents and I need to select every 10th file and place it into another folder. I have zero expierence with this stuff, especially since my imac is my first mac ever; I have had it for about 2 months. Any help would be greatly appreciated !
    Thanks

    This script
    set sourceFolder to choose folder with prompt "Select Source Folder"
    set destinationFolder to choose folder with prompt "Select Destination Folder"
    set diag to display dialog "Set skip count" default answer "10"
    set skipCount to (text returned of diag) as integer
    tell application "Finder"
              set theFiles to the files of sourceFolder
              repeat with n from skipCount to (count of theFiles) by skipCount
      duplicate item n of theFiles to folder the destinationFolder
              end repeat
    end tell
    will prompt you for the source and destination folders (the destination folder must exist already) and then prompt for the number of files to skip.
    It will duplicate the selected files from the source to the destination. If you do not want the files to remain in the source folder replace duplicate with move in the script.
    To make the above into a script select all the text in the box then right (control) click the selection, select Services->Make New AppleScript.
    As with all script gotten from the web make sure you test it out on some dummy files first and make sure you have backups of the data you are working on.
    regards
    Note this will start with the file at skipCount and increment from there. That is with the skipCount set to 10 the first file moved is file number 10 then 20, 30, etc.
    Message was edited by: Frank Caggiano

  • Dynamic Height in Graphs does not work properly when the graph is in an list

    Help please,
    I have an report in SQL Server 2008 (SP1) Reporting Services which uses Dynamic Height to dynamically increase the size of the graph for the data. For a single dataset this works great!
    When I place this graph in a list/tablix (to display this graph on each group) things go bad... Only the first graph on every page is resized, all other graphs on the same page are equal in size of the first!
    When I place a pagebreak on the lists property all graphs are drawn fine!! But then I will have a page for every question in my data (which can be a lot!)
    What is going on here? Please help.

    Hi Jerry,
    thanks for your reply, but this does not work. The graphs are now all the same size (the size of the first one that is), and on the same page for that matter...
    It looks like the renderer calculates the value of the dynamic height only once on a page in stead of each graph. That's a bug in my opinion.
    Any suggestions on how to fix this?
    The inner workings of the report are like this: The data contains anwers from a survey by question, so i have a unknown count of answers with each question; I placed a list on my report with a groupingproperty on the question asked. On this list i place a horizontal bar-graph which must grow in height when it is too small. The dynamic height should be calculated like this =70 + (CountDistinct(AnswerValue.Value)*10) & "pt".
    When i place this calculation in a textbox, every item in the group is calculated correctly. Each graph is drawn, but the graphs are sized only to the size of the first graph on the page. When I place a pagebreak after each list-repeat (so i get each question on a seperate page) each graph is drawn correctly! This results however in more than 100 pages with all used for just a few centimeters (think about trees!).
    I'm using SQL 2008 / SSRS2008 with SP1 by the way ( without SP1, the behaviour is the same).
    Any more suggestions are appreciated.
    Danny

  • Soting a vector of objects by an element of an object

    Hi,
    I have been stuck on this part of my program for ages and I really need some help urgently as I need to submit my coursework. I need to create a comparator for the serialnumber of each questionnaire that is stored in a vector. Here is the coding:
    import java.beans.XMLDecoder;
    import java.beans.XMLEncoder;
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Scanner;
    import java.util.Vector;
    class MainInput {
         public static void main(String[] args) throws IOException {
              Scanner scanner = new Scanner(System.in);
              int numberofquestions = 0;
              int rangeno;
              int serialnumber;
              int age;
              int answer;
              int actualquestionno;
              int rangeforquestion;
              char sex;
              String option;
              String postcode;
              int[] allanswers;
              Vector<QuestionnaireFields> loaded = null;
              XMLDecoder decoder = null;
              try {
                   decoder = new XMLDecoder(new BufferedInputStream(
                             new FileInputStream("QuestionnaireData.xml")));
                   loaded = (Vector<QuestionnaireFields>) decoder.readObject();
              } catch (Exception e) {
                   loaded = new Vector<QuestionnaireFields>();
              } finally {
                   if (decoder != null) {
                        decoder.close();
              int[] fixedformat = CheckingStructureSetting.loading();
              if (fixedformat == null) {
                   while (true) {
                        System.out.print("Enter number of questions: ");
                        numberofquestions = scanner.nextInt();
                        if (numberofquestions < 1 | numberofquestions > 10) {
                             System.out
                                       .print("Invalid Range. Choose between 1 and 10: ");
                        } else {
                             break;
                   fixedformat = new int[numberofquestions];
                   for (int count = 0; count < numberofquestions; count++) {
                        while (true) {
                             System.out.print("Enter Range for Question " + (count + 1)+ (": "));
                             rangeno = scanner.nextInt();
                             if (rangeno < 2 | rangeno > 10) {
                                  System.out
                                            .println("Invalid Range. Choose between 2 and 10: ");
                             } else {
                                  fixedformat[count] = rangeno;
                                  break;
                   CheckingStructureSetting.storing(fixedformat);
              allanswers = new int[fixedformat.length];
              do {
                   QuestionnaireFields questionnaireobject = new QuestionnaireFields();
                   System.out.print("Questionnaire Number: ");
                   serialnumber = scanner.nextInt();
                   questionnaireobject.setSerialNumber(serialnumber);
                   System.out.print("Age: ");
                   age = scanner.nextInt();
                   questionnaireobject.setAge(age);
                   System.out.print("Sex <[M] for male, [F] for female>: ");
                   sex = scanner.next().charAt(0);
                   questionnaireobject.setSex(sex);
                   System.out.print("Postcode: ");
                   postcode = scanner.next();
                   questionnaireobject.setPostcode(postcode);
                   for (int count = 0; count < fixedformat.length; count++) {
                        while (true) {
                             System.out.print("Response to Question " + (count + 1) + ": ");
                             answer = scanner.nextInt();
                             if (answer < 1 | answer > fixedformat[count]) {
                                  System.out
                                            .print("Invalid answer! Out of range!! Please enter another answer: ");
                             } else {
                                  allanswers[count] = answer;
                                  break;
                   questionnaireobject.setAnswers(allanswers);
                   loaded.add(questionnaireobject);
                   System.out.print("Do you want to enter another questionnaire? [Y] Yes or [N] No: ");
                   option = scanner.next();
              } while (!option.equalsIgnoreCase("N"));
              XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(
                        new FileOutputStream("QuestionnaireData.xml")));
              encoder.writeObject(loaded);
              encoder.close();
    I have another class to create each questionnaire
    public class QuestionnaireFields{
         private int serialnumber;
         private char sex;
         private int age;
         private String postcode;
         private int[] allanswers;
         public void setSerialNumber(int serialnumber) {
              this.serialnumber = serialnumber;
         public int getSerialNumber() {
              return serialnumber;
         public void setSex(char sex) {
              this.sex = sex;
         public char getSex() {
              return sex;
         public void setAge(int age) {
              this.age = age;
         public int getAge() {
              return age;
         public void setPostcode(String postcode) {
              this.postcode = postcode;
         public String getPostcode() {
              return postcode;
         public void setAnswers(int[] settinganswers) {
              this.allanswers = settinganswers;
         public int[] getAnswers() {
              return allanswers;
    Any help is very much appreciated

    doobybug wrote:
    I tried to use the comparator by using another class like this:
    import java.util.*;
    public class Comparing implements Comparator{
    public int compare(int serialnumber1, int serialnumber2){
    return serialnumber1- serialnumber2;
    Then in another class for the output I was going to do something like this:
    Comparing id = new Comparing ();
    Collections.sort(serialnumber1, serialnumber2);
    for(int i=0; i<serialnumber1; i++){
    System.out.println(serialnumber1.get(i));
    This I was going to take the information from the vector loaded defined in the MainInputThere are many errors here. I suggest you study the tutorial on this:
    http://java.sun.com/docs/books/tutorial/collections/algorithms/index.html

  • Trying to rename files results in "stack overflow"

    I'm trying to make a script to change the names of many files at once. In particular, I have many .tif files that I want to use as frames in an animation. The files are named "frame0001.tif", "frame0002.tif", etc. The problem is that I have seperate folders of frames, and the "0001" etc. count restarts in each folder. I have written the following script to try to add a set number to the count of the files in a particular directory. However, the script results in a stack overflow error. What do I have to do to change the name of a file correctly? Thanks,
    Adrian
    tell application "Finder"
    set the source_folder to (choose folder) as alias
    set file_list to (every file of source_folder whose name starts with "frame")
    set file_count to (count file_list)
    if file_count is 0 then return
    if file_count is 1 then
    set file_list to (file_list as alias) as list
    else
    set file_list to file_list as alias list
    end if
    end tell
    display dialog "Enter number to add to frame count:" default answer "" buttons {"Cancel", "OK"} default button 2
    set the count_add to the text returned of the result
    repeat with i from 1 to the number of items in the file_list
    set this_item to item i of the file_list
    set this_item to this_item as alias
    set this_info to the info for this_item
    set the current_name to the name of this_info
    set AppleScript's text item delimiters to "frame"
    set the current_name to the second text item of the current_name
    set AppleScript's text item delimiters to ".tif"
    set the current_name to the first text item of the current_name
    set AppleScript's text item delimiters to ""
    set the current_num to the current_name as integer
    set the count_num to the count_add as integer
    set the current_num to the (current_num + count_num)
    set the current_name to the current_num as string
    set the string_length to the length of the current_name
    set the zero_count to (4 - the string_length)
    repeat with j from 1 to the zero_count
    set the current_name to "0" & the current_name
    end repeat
    set the current_name to "frame" & current_name & ".tif"
    set the name of this_item to the current_name
    end repeat
    PowerBook G4   Mac OS X (10.4.1)  

    Your code - re-written, and with Cyclosaurus'es noted 'tell app "Finder" ...' suggestion:
    tell application "Finder" to set file_list to (every file of (choose folder) whose name starts with "frame")
    set file_count to (count file_list)
    if (file_count is 0) then
    return
    else if (file_count is 1) then
    set file_list to (file_list as alias) as list
    else if (file_count > 1) then
    tell application "Finder" to set file_list to file_list as alias list
    end if
    tell me to activate
    set count_add to (text returned of (display dialog "Enter number to add to frame count:" default answer "" buttons {"Cancel", "OK"} default button 2)) as integer
    repeat with i in file_list
    tell application "Finder" to set current_name to (displayed name of i)
    set {oAStId, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "frame"}
    set current_name to second text item of current_name
    set AppleScript's text item delimiters to ".tif"
    set current_name to (first text item of current_name)
    set AppleScript's text item delimiters to oAStId
    set current_name to (((current_name as integer) + (count_add)) as string)
    if ((count current_name) = 1) then
    set current_name to "000" & current_name
    else if ((count current_name) = 2) then
    set current_name to "00" & current_name
    else if ((count current_name) = 3) then
    set current_name to "0" & current_name
    end if
    try
    tell application "Finder" to set (name of i) to ("frame" & current_name & ".tif")
    end try
    end repeat
      Mac OS X (10.4.4)  

  • For loop not working & way to include an external file

    Hi everyone, i am new to java and am having some problems with my program.
    I have a for loop but it doesnt work it completely gets ignored and i have
    no idea why it does that.
    IS there a way that i add another option in the menu to open an external file
    which would be similar to this but it would be for cabinBooking. If so how do
    i do that. if opening an external file is impossible then could you please show me an example of how to extend the booking class.
    Any help would be appreciated.
    Thank you very much
    import java.util.Scanner;
    import java.io.*;
    public class Booking{
    Booking(String bId,     String bName,int bNum){
    bookId = bId;
    bookName = bName;
    bookNum     = bNum;
    String bookId;
    String bookName;
    int     bookNum;
    public double calculateBookingPrice(){
    double cost     = bookNum *     genBookingcost;
    return cost;
    double genBookingcost =     80;
    public void     summary(){
         System.out.println();
    System.out.println("Booking Number is: " + bookId + ", ");
    System.out.println("Booking Made for : " + bookName);
    System.out.println("Cost of booking = $" + calculateBookingPrice());
    System.out.println();
    public static void main(String[] args) throws IOException{
    Scanner     keyboard = new Scanner(System.in);
    BufferedReader charInput = new BufferedReader
    (new InputStreamReader (System.in));
    int bookCount = 0;
    char answer;
    Booking[] bookings = new Booking[6];
    do {
         menu();
         System.out.println("book Count = " + bookCount);
         answer = charInput.readLine().charAt(0);
                   if (answer == 'a' || answer == 'A'){
                        System.out.println("Booking     ID : ");
              String idstring     = keyboard.nextLine();
              System.out.println("Booking     Name : ");
              String namestring =     keyboard.nextLine();
              System.out.println("number of people : ");
              int     ppl     = keyboard.nextInt();
              bookings[bookCount] = new Booking(idstring,namestring,ppl);
              bookings[bookCount].summary();
                        bookCount++;
                   }else if (answer == 'b' || answer == 'B'){
                        System.out.println("Enter printing");
                        bookings[0].summary();
                        bookings[1].summary();
                        // this is the loop that it is ignoring GGRRRR!!!
                   for(int i = 0; i >= bookCount; i++){
                        System.out.println("Counter: " + i);
                        bookings.summary();
                   }else if (answer == 'x' || answer == 'X'){
                        System.out.println("Exiting the programme...");
    System.out.println();
    System.exit(0);
    }while (answer != 'x' || answer != 'X');
    public static void menu(){
         System.out.println("********** Main Menu ***********");
              System.out.println(" A. Make General Booking");
              System.out.println(" B. Print Summary");
              System.out.println(" X. Exit program");
              System.out.println("*****************************");
              System.out.println("Select one of the options above");

    in order to extend the Booking class, you can create anew class like this..
    public class CabinBooking extends Booking
       public CabinBooking( /*String bId, String bName,int bNum .. more args or fewer, or none.. */)
        // add new methods or override ones from Booking
    }

  • ORA-24330: internal OCI error on OCIStmtFetch2

    I get an internal OCI error when using:
    OCIStmtFetch2(stmt, errhp,(ub4)1, OCI_FETCH_LAST, 0, OCI_DEFAULT);
    And
    OCIAttrGet (stmt, OCI_HTYPE_STMT, (dvoid *) &numrows, (ub4 *) 0, (ub4) OCI_ATTR_CURRENT_POSITION, errhp);
    return 0 in numrows.
    What might be the problem?
    Is There some other way of finding out how many rows there is in a result set before accually fetching them all and counting?

    Answering my own question:
    My linux kernel option for shared memory was set to low.
    With a larger value in /proc/sys/kernel/shmmax the problem went away.

  • Exponential Base Solver

    Alright, with much fretting I decided to sign up on here to ask some questions. I thought I could do this project on my own, but it seems that I cannot.
    Okay, this is the assignment (it is confusing, but then again my professor is not the best at english - as he continues to mention):
    Write a program that computes the nth root of a number. Given a real number X greater than 1 and less than -1 and given an integer Y, computer the nth root Z such that Z*Z*Z*Z*Z*Z*Z..(Y times)..Z*Z = X, or Z^Y = X (Remember if X is negative Y must be odd.) The user enters values for X and Y and the porgram calculates Z. Compute Z so that when Z is multiplied Y times it will produce an X which is + or - 0.0000001 of the original value of X. You may only use simple arithmetic to do these computations. That is you may only use multiplication, division, addition, and subtraction.
    We are using a class called SavitchIn (which I'm sure some of you are familiar with) for input/output. We are not allowed to use any of the classes in Java that allow for higher math functions. Somehow the prof. wants us to basically create a binary search algorithm, yet we haven't even went over them in the book yet. This project was given out at the point where were learning loops - so that's about as complex as the program can get I suppose (although I've noticed some of the more experienced programmers in our class are using arrays - which isn't what the professor described, yet he's marking them off as finished :-/ ). This is a beginner's programming class mind you, but I think the professor expects us to have had experience with programming. :-/ I've made 7 programs up to this point and have had little trouble.
    I ask for tips and maybe some example code, but that is all. I'd like to be able to figure it out on my own (I'm a newbie mind you). :-) And remember, only simple math and SavitchIn may be used.
    So here's my base code. It isn't the greatest code in the world, or close to being finished - let alone correct, lol. And some of the variable types I put in the code I haven't actually used yet (most of the stuff in this code will probably have to go). I hope the code isn't too confusing:
    public class BinarySearchTest2
         public static void main(String[] args)
              System.out.println("This program will calculate the base when the user gives the input of an answer and an exponent for the base");
              System.out.println( );
              double base, exp, ans = 0, testAns = 0, lBase = 1, mid, uBase, count;
              char answer;
              System.out.print("Please enter a number to be used as an exponent.\nExponent: ");
              exp = SavitchIn.readLineDouble( );
              System.out.println( );
              System.out.print("Please enter a number to be used as an answer.\nAnswer: ");
              ans = SavitchIn.readLineDouble( );
              System.out.println( );
              if ((ans > 1) || (ans < -1) && (exp > 0))
                   if (exp == 1)
                        System.out.println("The base is: " + ans);
                   base = ans/2;
                   for (count = 0; count <= exp - 2; count++)
                        if (exp > 1)
                             testAns = base * base;
                   if (testAns == ans)
                        System.out.println ("The base is: " + base);
    }

    I think you may possibly be deficient in Math rather than programming. Do you know what the Nth root of a number is?
    What you need to do is make an algo that will multiply itself N times and give you a target number, or I believe you said to devide a target number by another N times and success is measured by an acceptable error value (small difference between the result and the number being used as a divisor)
    The problem can be worked very well by using looping stuctures, that is why it has been assigned as such. The people that are using array are probably making lookup tables where say for a value of 2 you would have....
    2 4 8 16 32 64 128 256
    so when you want say the 5th root of 32, you go to the 5th colum and search down until you find 32. Once you find it, then you know you have the 5th root in column 1 of the row you are searching. If you have to find roots numbers that are not perfect powers raised to N, then you have to find a bound (and I suspect that is what the arrays are about if you have to find roots of any numbers). Using the lookup method described you can get a boundary for you upper and lower values (my number is between say 16 and 81 and I need the 4th root of it. You will be bounded by 2 and 3 so then you make you estimations say 2.5, and lets say 50 is my number. You try 2.5^4 and get 39.0625 too low so you increast at half the distance between 2.5 and your upper bound of 3, and come up with 2.75 and so on.
    If this doesn't get you started, then you need to find a different line of work, or read the book, or talk with your prof, or ...

  • Complex View

    I have table of more then 50 thousands record and have answer in that table of 15 questions i want to count it and then after create the matrix report through that view.
    Kindly help me regarding this issue.
    how can i count and answer.
    Thanks

    A_ID     Q_Part     Q_ID     Seccorscode     coursecode     instructor     coursetitle     A
    54698     Part A     1     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54699     Part A     2     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54700     Part B     1     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54701     Part B     2     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54702     Part B     3     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54703     Part B     4     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54704     Part B     5     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54705     Part B     6     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54706     Part B     7     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54707     Part B     8     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54708     Part B     9     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54709     Part B     10     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54710     Part B     11     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54711     Part B     12     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54712     Part B     13     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     3
    54713     Comments     1     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     a
    60077     Part A     1     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     1
    60078     Part A     2     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     1
    60079     Part B     1     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     1
    60080     Part B     2     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     1
    60081     Part B     3     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     0
    60082     Part B     4     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     0
    60083     Part B     5     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     0
    60084     Part B     6     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     1
    60085     Part B     7     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     1
    60086     Part B     8     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     1
    60087     Part B     9     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     2
    60088     Part B     10     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     2
    60089     Part B     11     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     2
    60090     Part B     12     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     2
    60091     Part B     13     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     2
    60092     Comments     1     80809014     FLD241     Aasim Akhtar     LIFE DRAWING     good

  • Apple:  Please fix the "Other" problem with memory space

    It took me 5 tries last night to get TomTom Installed cleanly on the iPhone. Each of the 4 times I tried - I kept getting gigabytes of memory in the "Other" category. The only way to get rid of the "other" memory is to restore the iphone - a 20 minute process in itself.
    While syncing mostly anything to an iphone or ipod - if you make a change in the middle of a longer sync (for a large file) and push the sync button again - the sync starts over and the large file that it was working on becomes orphaned and part of the "Other" memory. Cancelling Syncs also result in this large portion of "Other" memory being taken up by whatever the sync was working on at the time of the cancellation.

    Ted C wrote:
    It took me 5 tries last night to get TomTom Installed cleanly on the iPhone. Each of the 4 times I tried - I kept getting gigabytes of memory in the "Other" category.
    After it happened the first and second time, with the same results, you really did the same thing two more times? Yikes.
    Ever hear of the term "Idiot proof?"
    Leaving aside obvious directions that could be taken...it may be that 'idiot proof' is not the goal here. Say you have a problem like this, and don't know the solution. Maybe you come here, so some devious helper like me can pad his post counts by answering your question (regardless of the fact that the number of posts means absolutely nothing, and I volunteer my time here in any case). But, maybe you go to the Genius Bar for some 'free' help. See that shiny new iPhone 3GS? That slick looking new MacBook Pro? Maybe you suddenly remember you were thinking of a new car charging cable or BT headset for your phone. Bam. A sale is made. All because the valued customer needed help with an idiot-vulnerable product. Just food for thought. <sarcasm>And one more post to add to my post count. Whoopee. I'm going to go celebrate now.</sarcasm>
    Seriously, though, Apple generally does a good job of making user-friendly products. The iPod will be discussed in marketing classes for the next several decades as the poster child for that approach to product development.

  • How to resolve an LDAP injection vulnerability issue?

    In the code below (red text) I'm getting an LDAP injection vulnerability error. I'm having trouble identifying the parameters needed to call the escape routine. The LDAP query string is located in the class EscapeLDAPQueryString. What are the parameters for calling the escape routine. (String escapedString = EscapeLDAPQueryString.escapeQuery();
    What is the escapedString and the (string that needs to be escaped)?
    magnifySearchLogger.trace("filter=" + StringEscapeUtils.replaceCRLF(filter));
    final String modified_group = dnOfGroup;
    magnifySearchLogger.trace("Group=" + dnOfGroup);
    magnifySearchLogger.trace("modified_group=" + modified_group);
    final NamingEnumeration <SearchResult> answer = this.ctx
                                  .search(modified_group, filter, ctls);
    //String results = " Not Found ";
    final int count = countResults(answer);
    return count;
    EscapeLDAPQueryString Class Code
    //String relativeDN = "cn=abc,dn=xyz,ou=abc+\"<>/d=ef";
    //Split String
    String[] stringData = queryString.split(",");
    StringBuilder newLDAPString = new StringBuilder();
    CharSequence charAdded = ",";
    // loop thru each element of the array
    for (int place = 0; place < stringData.length; place++) {
    String keyValuePair = stringData[place];
    int eq = keyValuePair.indexOf('=');
    String distinguishedName = keyValuePair.substring(0,eq+1); 
    String distinguishedValue = keyValuePair.substring(eq+1, keyValuePair.length()); 
    String escapedDistinguishedValue = StringEscapeUtils.escapeDN(distinguishedValue);
    newLDAPString.append(distinguishedName)
      .append(escapedDistinguishedValue);
    if (place < stringData.length - 1)
    newLDAPString.append(charAdded);
    return newLDAPString.toString();

    Hi Tin Knocker,
    Thanks for visiting Apple Support Communities.
    If you've started to hear static or crackling through your iPhone speaker, the troubleshooting steps in this article can help:
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    Cheers,
    Jeremy

  • Controling flow of method

    got a problem with the following code... everytime some one enters something other than an int the code runs on till it finishes, problem is i want it to start at the question it was asking - ie 1, 2, or 3. I can add addition(); in the catch statement but that makes it start from the beginning of the count.. ie question 1. (which is a pain if your doing question 3) can any one help?
    import java.util.*;
    class Math {
        private void addition() {
         Scanner keyboard = new Scanner(System.in);
         int sum = 0, num = 0, count = 0, answer = 0;
         for(num = 0; num < 3; num++) {
             System.out.println("Question " + (num + 1));
             System.out.println("What is the sum of these numbers?");
             int randomAddition = new Random().nextInt(6);
             for(count = 0; count < randomAddition; count++) {
              int rand = new Random().nextInt(11);
              System.out.print(rand + " ");
              sum = sum + rand;
             System.out.println();
             try {
              answer = keyboard.nextInt();
             catch (java.util.InputMismatchException e) {
              System.out.println("Enter a whole number only");
             System.out.println("Your answer is " + answer);
             System.out.println("The correct answer is " + sum);
             System.out.println();
             if(sum == answer) {
              System.out.println("CORRECT ANSWER");
             else {
              System.out.println("Incorrect, try again");
              num--;
             sum = 0;
        public static void main(String[] arg) {
         Math start = new Math();
         start.addition();
    }

    I'm not sure I understand what's going on with the input and the random numbers.
    Here's an idea of how you might accomplish this. It's a bit funny with the do/while, but perhaps you can spend the time figuring it out. Use it as a template for thought:
    import java.util.Scanner;
    import java.util.ArrayList;
    import java.util.List;
    public class IntArrayAdder
       public static final int DEFAULT_ARRAY_LENGTH = 32;
       public static int [] getValues(Scanner scanner, String prompt)
          List values = new ArrayList(DEFAULT_ARRAY_LENGTH);
          try
             do
                System.out.print(prompt);
                int value = scanner.nextInt();
                values.add(new Integer(value));
             } while (scanner.hasNext());
          catch (Exception e)
             System.out.println("end of input");
          int [] valuesAsArray = new int[values.size()];
          for (int i = 0; i < valuesAsArray.length; ++i)
             valuesAsArray[i] = ((Integer)values.get(i)).intValue();
          return valuesAsArray;
       public static int sumArray(int [] values)
          int sum = 0;
          for (int i = 0; i < values.length; ++i)
             sum += values;
    return sum;
    public static void main(String [] args)
    try
    int [] values = getValues(new Scanner(System.in), "input an int: ");
    System.out.println("sum: " + sumArray(values));
    catch (Exception e)
    e.printStackTrace();

Maybe you are looking for

  • How to auto-populate the Contact field from a Custom Object

    Hi, I am working on a project where the Contact record is the main focus. I have setup the Contact record as having a one-to-many relationship with CO4. From the Contact Details page I can click on the New button in the Related Record section for CO4

  • Create MM ERS Invoice based on Head Office-MRRL

    Hello MM Experts, There will be multiple vendors who supply materials.  However, the Invoice should be created only on the Head Office Vendor. This is standard functionality. Supply vendor 1 - Head Office - X Supply vendor 2 - Head Office - X While c

  • RDS 2012 - No Wildcard Certificate

    Hi all, I will be using indivisual certificates per component so I will have a certificate for broker.domain.com, gateway.domain.com and [email protected] These will be used from within the RDS console to deploy the certificates to the componenets. M

  • Display of HTML file titles instead of File Names

    Hello All, I want to display the HTML file titles instead of File names in the Search Results. I've tried to give this command in the 'Visible Properties' in the 'SearchResourceRenderer' as:- Visible Properties: rnd:displayTitle However this is not w

  • Error message of system update with Vantage Tool

    "An error was detected with the package catalog for your system on the System Update Server. Please contact the Support Center." This is what I get when upadte the system using Vantage Tool. My Update System version is 4.03.0012 which is the latest.