Question about BGP "remove-private-as"
In Cisco document about BGP "remove-private-as", it says "if the ASpath contains the AS of the peering router (through eBGP), then the AS's will not be stripped".
My question is: when a route is received from the peering router, its AS Path always has the peering router's AS# appended. So the assumption in the document is always true. Then what's the point to even have the assumption?
PLease let me know if I'm incorrect somewhere.
Thanks
Gary
Gary,
Consider this: A -- B -- C
If A has a private AS, all routes it advertises to B will contain that private AS#. If you have configured "remove-private-as" on B, it will strip that private AS# when advertising those routes to C. Now, if B somehow decides to advertise those routes back to A, that's where that statement from the Cisco Document comes in. If B stripped that private AS# from these routes, A will not know that it should drop those routes because it contains its own AS#. That's the kind of situation it is protecting against.
Hope that helps - pls do rate the post if it does
Paresh
Similar Messages
-
Question about adding/removing lyrics
When I add one of my songs, it already has lyrics "attached". The problem is they are wrong and if i try to change/delete them and sync with my iphone, it doesn't sync. Is there anyway i can remove them from the file?
Hi Richk,
Yes, I am using a 64-bit operating system. I am running on windows 7. And as for reported incompatibilities....technically taking a RAM from another laptop and placing it in the laptop should be the same as purchasing a RAM card from ebay or something and putting into the laptop right? -
Question about Removing Permissions from the System Folder with chmod
Hi
I have a question about the removal of permissions from the System folder (and sub directories and files).
Background
Since installing a new HD, clean install of 10.6, application of updates and moving over backed up user directories I have had several issues with permissions.
I have read several threads on this and using disk warrior and other tools I have been able to fix most of the issues.
The Problem
The issue that remains is a permissions check using Disk Utility keeps reporting
ACL found but not expected on "System".
followed by an extensive list of sub directories and all.
Attempts to repair take hours and the same errors are reported.
Found Solutions
I have read about changing and/or completely removing the ACL from the permissions from the System using two different commands:
sudo chmod -R -N ./System/* ( to remove all ACLs)
or
sudo chmod -R -E ./System/* ( to replace all ACLs )
My Question is ( to the UNIX gurus):
What is the difference between the usage with -E and -R and which is the best approach for a Systems directory and (subordinates)?
Many thanks!!OK
So I misread on the your instructions about the PW reset, did it, no harm in that. I did also select the options to reset all the permissions for all the accounts and the ACL issues were not resolved. My bad, I forgot to note that.
You do suggest getting and expert opinion but alas these are rather elusive. In most cases the Apple solutions is to do a complete reinstall... I have found that unless you completely wipe a drive and rebuild everything there are often artifacts left behind. Since I have full and redundant back-ups I would rather explore and hack a little instead of a dull old system reinstall. The irony is the system issue I had was it was the result a reinstall and combo update on a new drive. I recognize the risks of entering the realms of the System folders but I am willing to explore knowing full well that I have a path to recovery.
Thanks again for your insights. I come to the forums looking for insights and ideas but not a lecture... -
Question about when L3 sticky information is removed on CSS
Hi everyone,
I have a question about L3 sticky on CSS.
I understand L3 sticky takes effect on the following situations,
1: until expiring inactive timer
2: until sticty table full
and
3: until the connection disconnect by receiving RST or FIN from client or real server
The "3:" means that CSS maintains sticky connection between specific client IP address
to real server (L3 stickty) when CSS has its information on sticky table.
And CSS has removed it from sticky table if CSS receive RST or FIN even if the inactive timer
abot its connection has not expired.
That is, CSS removed L3 sticky information from sticky table when CSS receive
RST or FIN from client or real server even if inactive timer has not expired and
in this situation, the next new connection from same client IP address is processed with
normal load balancing, in the result, the new connection from same client IP address
forwards other real server.
Is my understanding correct ?
Or CSS maintains L3 sticky information on the sticky table until the situation meets
"1:" or "2:" even if CSS receive RST or FIN ?
Your information would be appreciated.
Thank you in advance.
Best Regards,What point number 3 means is the layer 3 sticky will take effect when a connection disconnect message is received from a client or a real server. This connection disconnect is received in the form of RST or FIN messages from the real server or the client.
-
Question about removing/reinstalling iTunes
I recently bought an external HD because iTunes was swamping my c drive. In migrating my iTunes folders/libraries over today, I obviously corrupted some files or screwed up, because I get error msgs galore and cannot open iTunes from either the new ext drive (H) or the C drive. It asks me if I want to repair or remove iTunes, but when I hit repair, it tells me files are missing and to reinstall.
MY QUESTION: if I remove all existing iTunes apps and reinstall, will I lose my entire iTunes music library? I just downloaded the latest vs of iTunes today, before all this foolishness occurred.
HELP
Video iPod Windows XPLeave iTunes (the program) on your C: drive.
Then put the actual music files on the external drive.
I have never had an iTunes upgrade delete my music files, but of course it is always safest to have a backup.
If you have rated lots of those songs, you might want to search for the iTunes library files and save them.
What are the iTunes library files? -
Questions about a MasterQuize program
Hi, everyone.
I got a in-class case study program like this in the class:
* This class stores/represents a question that has one of two
* answers: True or False.
* <p></p>
* It needs to track the following information:
* <ul>
* <li>Question text</li>
* <li>Correct answer</li>
* <li>The user's answer to the question</li>
* <li>Points value</li>
* <li>Category</li>
* <li>Difficulty rating</li>
* </ul>
// Our question should allow us to do the following:
// - Create question (constructor) -- may be overloaded
// - Print (display) question
// - Check client's answer for correctness
// - Get points value for question (0 or max)
// - Add "No-BS" grading option
// - Getting client's answer
// - Check to see if answered by client
public class TrueFalseQuestion
// Class constants (to simplify changes to common values)
public static final int MIN_DIFFICULTY_LEVEL = 1;
public static final int MAX_DIFFICULTY_LEVEL = 5;
public static final int DEFAULT_DIFFICULTY_LEVEL = 1;
public static final int DEFAULT_POINT_VALUE = 1;
public static final String DEFAULT_CATEGORY_VALUE = "none";
// Class instance variables
private String questionText;
private String correctAnswer;
private String userAnswer;
private int pointsValue;
private String category;
private int difficultyLevel; // TODO: Set a range for difficulty levels
* @param text The literal wording of this question
* @param answer The correct answer for this question
* @param pts The total points available for this question
* @param ctgry Category keyword for this question
* @param level The perceived/intended difficulty level of this question
* <p></p>
* Defines a TrueFalseQuestion object.
public TrueFalseQuestion (String text, String answer, int pts, String ctgry, int level)
// Set starting values for all instance variables
questionText = text.trim();
correctAnswer = answer.trim();
userAnswer = null; // No user answer supplied yet
if (pts >= 1) // We assume that every problem is worth at least 1 point
pointsValue = pts;
else
pointsValue = DEFAULT_POINT_VALUE;
category = ctgry.trim();
if (level >= MIN_DIFFICULTY_LEVEL && level <= MAX_DIFFICULTY_LEVEL) // within range
difficultyLevel = level;
else
difficultyLevel = DEFAULT_DIFFICULTY_LEVEL;
// Simplified (overloaded) constructors
* @param text The literal wording of this question
* @param answer The correct answer for this question
* @param pts The total points available for this question
* <p></p>
* Defines a TrueFalseQuestion with default values for category and difficulty level.
public TrueFalseQuestion (String text, String answer, int pts)
// Call pre-existing constructor with default category and difficulty
this(text, answer, pts, DEFAULT_CATEGORY_VALUE, DEFAULT_DIFFICULTY_LEVEL);
* @param text The literal wording of this question
* @param answer The correct answer for this question
* <p></p>
* Defines a TrueFalseQuestion with the default point value, default category,
* and default difficulty level.
public TrueFalseQuestion (String text, String answer)
// Call pre-existing constructor with default points, category and difficulty
this(text, answer, DEFAULT_POINT_VALUE, DEFAULT_CATEGORY_VALUE,
DEFAULT_DIFFICULTY_LEVEL);
* @param text The literal wording of this question
* @param answer The correct answer for this question
* @param pts The total points available for this question
* @param ctgry Category keyword for this question
* <p></p>
* Defines a TrueFalseQuestion with the default difficulty level.
public TrueFalseQuestion (String text, String answer, int pts, String ctgry)
// Call pre-existing constructor with default points, category and difficulty
this(text, answer, pts, ctgry,
DEFAULT_DIFFICULTY_LEVEL);
* @param text The literal wording of this question
* @param answer The correct answer for this question
* @param ctgry Category keyword for this question
* <p></p>
* Defines a TrueFalseQuestion with the default point value and the default
* difficulty level.
public TrueFalseQuestion (String text, String answer, String ctgry)
// Use default points and difficulty
this(text, answer, DEFAULT_POINT_VALUE, ctgry, DEFAULT_DIFFICULTY_LEVEL);
* @param text The literal wording of this question
* @param answer The correct answer for this question
* @param pts The total points available for this question
* @param level The perceived/intended difficulty level of this question
* <p></p>
* Defines a TrueFalseQuestion with the default value for the question category.
public TrueFalseQuestion (String text, String answer, int pts, int level)
// Use default category
this(text, answer, pts, DEFAULT_CATEGORY_VALUE, level);
// Clients can invoke this method to retrieve the text of the current question.
// We chose to return the text instead of printing it; this allows the client
// to decide how it should be presented (via a GUI, over a network, etc.)
public String getQuestion ()
return questionText;
// This method allows the client to store the user's answer inside the
// TrueFalseQuestion object for easy comparison
public void submitAnswer (String ans)
userAnswer = ans;
// This method reports whether the submitted answer matches the correct answer
public boolean answerIsCorrect(String userAns) // This version does all the work
if (userAns == null) // No response from user (yet)
return false;
else
// Normalize and compare answers
char key = normalize(correctAnswer); // Get 't' or 'f'
char ans = normalize(userAns); // Get 't' or 'f'
return (key == ans);
public boolean answerIsCorrect ()
return answerIsCorrect(userAnswer); // Call previously-defined version
public int getPointsValue()
return pointsValue;
// Return the points awarded for the user's answer. This method does
// NOT support partial credit; answers are either correct or incorrect.
// If the "No-BS" option is selected, blank (unanswered) questions receive
// 1 point automatically; otherwise, the score will be either 0 or the
// question's normal points value.
public int getPointsEarned(boolean useNoBSRule)
System.out.println("useNoBS: " + useNoBSRule + "\tuserAnswer: " + userAnswer + "\tcorrectAnswer: " + correctAnswer);
if (useNoBSRule && (userAnswer == null))
return 1;
else if (userAnswer == null)
return 0; // Without "No-BS", treat blank problems as incorrect
if (answerIsCorrect() == false)
return 0;
else
return pointsValue;
// This method returns true if the user has submitted an answer
// for this question (regardless of whether that answer is correct)
public boolean hasBeenAnswered ()
return (userAnswer != null);
// Private helper method to convert all answers to single lowercase
// letters (in this case, 't' for TRUE and 'f' for FALSE)
private char normalize (String input)
if (input != null)
input = input.trim(); // Remove leading whitespace
input = input.toLowerCase();
return input.charAt(0);
else
return ' ';
import java.util.*;
* This class represents a complete test or quiz.
* Data stored:
* - List of questions
* - Total score earned
* - Total score possible
* - Name/title of test
* - Instructions
* - Category/class assignment
* - Student (test-taker) name
* - Date test is/was taken
* - Time started
* - Time completed
* - Maximum time allotted
* - (List of) Maximum attempts per question
* - List of attempts per question
* - List of difficulty ratings per question
* - Assignment weight
* Methods:
* - Constructor
* - Add question
* - Display question
* - Display test
* - Display instructions
* - Generate random exam
* - Take/administer test
* - Get score
* STUFF TO DO:
* - Add time/date restrictions
* - Add network access restrictions
* - Add other restrictions/allowances?
* @author (your name)
* @version (a version number or a date)
public class Test
// Class constant
public static final int MAX_NUMBER_OF_QUESTIONS = 10;
// Class instance variables
private String testName;
private int scoreEarned; // What the student earned on the exam
private int scorePossible; // Total point values of all questions
private String instructions; // Exam header text
private ArrayList<TrueFalseQuestion> questions; // Create inside constructor
// Methods
public Test (String name, String instr)
testName = name;
scoreEarned = 0;
scorePossible = 0;
instructions = instr;
questions = new ArrayList<TrueFalseQuestion>(); //[MAX_NUMBER_OF_QUESTIONS];
public String getInstructions()
return instructions;
public int getScore()
return scoreEarned;
public void addQuestion (TrueFalseQuestion q)
scorePossible += q.getPointsValue();
questions.add(q); // Automatically append question to end of test
public String displayQuestion (int position)
if (position < questions.size())
return (position+1) + ". " + questions.get(position).getQuestion();
else
return null;
public String displayTest ()
String result = "";
for (int i = 0; i < questions.size(); i++)
result += (i+1) + ". (";
TrueFalseQuestion t = questions.get(i);
result += t.getPointsValue();
result += " points)\n\n" + displayQuestion(i);
result += "\n\n";
return result;
// Get test length (number of questions)
public int length ()
return questions.size();
// Submit answer to a specific question
public boolean answer(int number, String a)
// Question numbers run from 0-(max-1) -- THIS WAS AN OFF-BY-ONE ERROR AT FIRST
if (number >= 0 && number < questions.size())
TrueFalseQuestion t = questions.get(number);
t.submitAnswer(a);
return true; // Question was answered
else
return false; // Unable to answer (nonexistent) question
// Score exam
public void scoreExam (boolean useNoBS)
scoreEarned = 0;
for (int i = 0; i < questions.size(); i++) // For each question in exam
TrueFalseQuestion t = questions.get(i); // get current question
scoreEarned += t.getPointsEarned(useNoBS);
}// Test harness for the Test and *Question classes
import java.util.*;
public class QuizDriver
public static void main(String[] args)
// Create a new Test object
Test exam = new Test("Sample Exam", "Select the correct answer for each question");
setUp(exam);
Scanner sc = new Scanner(System.in);
System.out.println(exam.getInstructions());
// Administer exam
for (int i = 0; i < exam.length(); i++)
// Print out current question
System.out.println(exam.displayQuestion(i));
// Get user answer
System.out.print("Your answer: ");
String ans = sc.nextLine();
if (ans.equals("")) // Handle blank responses for unanswered questions
ans = null;
exam.answer(i, ans);
// Get exam results
exam.scoreExam(true);
System.out.println("Your final score was " + exam.getScore() + " points.");
private static void setUp (Test t)
TrueFalseQuestion x = new TrueFalseQuestion("The sky is blue.", "true", 2);
t.addQuestion(x);
x = new TrueFalseQuestion("The first FORTRAN compiler debuted in 1957", "true", 5);
t.addQuestion(x);
x = new TrueFalseQuestion("Spock was a Vulcan", "false", 3);
t.addQuestion(x);
}This program is far from finishing.
I have many questions about this program, but let me ask this one first:
In the TrueFalseQeustion class, why are there so many constructors? What is the purpose of setting some of the variables to default values?
Thank you very much!!!
Edited by: Terry001 on Apr 16, 2008 10:02 AMnewark wrote:
Stop ignoring the error messages. You seem to think that an error message means you're doing the assignment wrong. It's probably a simple fix. Post the exact error messages, as well as the code that corresponds to them. The error message will tell you exactly what line the problem occurs on, so you know right where to look.Hi,
After some modifications, the program now gives me the result the assignment wants when I run it. But I still have trouble with the MultipleChoiceQuestion class
Here is the complete program
QuizDriver class
// Test harness for the Test and *Question classes
import java.util.*;
public class QuizDriver
public static void main(String[] args)
// Create a new Test object
Test exam = new Test("Sample Exam", "Select the correct answer for each question");
setUp(exam);
Scanner sc = new Scanner(System.in);
System.out.println(exam.getInstructions());
// Administer exam
for (int i = 0; i < exam.length(); i++)
// Print out current question
System.out.println(exam.displayQuestion(i));
// Get user answer
System.out.print("Your answer: ");
String ans = sc.nextLine();
if (ans.equals("")) // Handle blank responses for unanswered questions
ans = null;
exam.answer(i, ans);
// Get exam results
exam.scoreExam(true);
System.out.println("Your final score was " + exam.getScore() + " points.");
private static void setUp (Test t)
Question x;
x = new TrueFalseQuestion("The sky is blue.", "true", 2);
t.addQuestion(x);
x = new TrueFalseQuestion("The first FORTRAN compiler debuted in 1957", "true", 5);
t.addQuestion(x);
x = new TrueFalseQuestion("Spock was a Vulcan", "false", 3);
t.addQuestion(x);
x = new MultipleChoiceQuestion("What is the color of the car\na.Red\nb.Green", "a. Red", 3);
t.addQuestion(x);
x = new MultipleChoiceQuestion("What is the name of this class\na.CSE110\nb.CSE114", "b, CSE114", 3);
t.addQuestion(x);
}Test
public class Test
// Class constant
public static final int MAX_NUMBER_OF_QUESTIONS = 10;
// Class instance variables
private String testName;
private int scoreEarned; // What the student earned on the exam
private int scorePossible; // Total point values of all questions
private String instructions; // Exam header text
private ArrayList<Question> questions; // Create inside constructor
// Methods
public Test (String name, String instr)
testName = name;
scoreEarned = 0;
scorePossible = 0;
instructions = instr;
questions = new ArrayList<Question>(); //[MAX_NUMBER_OF_QUESTIONS];
public String getInstructions()
return instructions;
public int getScore()
return scoreEarned;
public void addQuestion (Question q)
scorePossible += q.getPointsValue();
questions.add(q); // Automatically append question to end of test
public String displayQuestion (int position)
if (position < questions.size())
return (position+1) + ". " + questions.get(position).getQuestion();
else
return null;
public String displayTest ()
String result = "";
for (int i = 0; i < questions.size(); i++)
result += (i+1) + ". (";
Question t = questions.get(i);
result += t.getPointsValue();
result += " points)\n\n" + displayQuestion(i);
result += "\n\n";
return result;
// Get test length (number of questions)
public int length ()
return questions.size();
// Submit answer to a specific question
public boolean answer(int number, String a)
// Question numbers run from 0-(max-1) -- THIS WAS AN OFF-BY-ONE ERROR AT FIRST
if (number >= 0 && number < questions.size())
Question t = questions.get(number);
t.submitAnswer(a);
return true; // Question was answered
else
return false; // Unable to answer (nonexistent) question
// Score exam
public void scoreExam (boolean useNoBS)
scoreEarned = 0;
for (int i = 0; i < questions.size(); i++) // For each question in exam
Question t = questions.get(i); // get current question
scoreEarned += t.getPointsEarned(useNoBS);
}Question
public class Question
// Class constants
public static final int MIN_DIFFICULTY_LEVEL = 1;
public static final int MAX_DIFFICULTY_LEVEL = 5;
public static final int DEFAULT_DIFFICULTY_LEVEL = 1;
public static final int DEFAULT_POINT_VALUE = 1;
public static final String DEFAULT_CATEGORY_VALUE = "none";
// Class instance variables
protected String questionText;
protected String correctAnswer;
protected String userAnswer;
protected int pointsValue;
protected String category;
protected int difficultyLevel; //TODO: set a range for difficulty levels
// Constructors
public Question (String text, String answer, int pts, String ctgry, int level)
questionText = text.trim();
correctAnswer = answer.trim();
userAnswer = null;
if (pts >= 1)
pointsValue = pts;
else
pointsValue = DEFAULT_POINT_VALUE;
category = ctgry.trim();
if (level >= MIN_DIFFICULTY_LEVEL && level <= MAX_DIFFICULTY_LEVEL)
difficultyLevel = level;
else
difficultyLevel = DEFAULT_DIFFICULTY_LEVEL;
// Overloaded (simplied) constructors
public Question (String text, String answer, int pts)
this(text, answer, pts, DEFAULT_CATEGORY_VALUE, DEFAULT_DIFFICULTY_LEVEL);
public Question (String text, String answer, int pts, String ctgry)
this(text, answer, pts, ctgry, DEFAULT_DIFFICULTY_LEVEL);
public Question (String text, String answer, String ctgry)
this(text, answer, DEFAULT_POINT_VALUE, ctgry, DEFAULT_DIFFICULTY_LEVEL);
public Question (String text, String answer, int pts, int level)
this(text, answer, pts, DEFAULT_CATEGORY_VALUE, level);
// Methods
public String getQuestion ()
return questionText;
// Use this method to store user answers
public void submitAnswer (String ans)
userAnswer = ans;
public boolean answerIsCorrect (String userAns)
if (userAns == null)
return false;
else
// Normalize and compare answers
char key = normalize (correctAnswer); //Get the first letter of an answer
char ans = normalize (userAns); //Get the first letter of an answer
return (key == ans);
public boolean answerIsCorrect ()// Why do we need two answerisCorrect() methods?
return answerIsCorrect (userAnswer);
public int getPointsValue ()
return pointsValue;
public int getPointsEarned (boolean userNoBSRule)
System.out.println ("useNoBS: " + userNoBSRule + "\tuseAnswer: " + userAnswer + "\tcorrectAnswer: " + correctAnswer);
if (userNoBSRule && (userAnswer == null))
return 1;
else if (userAnswer == null)
return 0;
if (answerIsCorrect() == false)
return 0;
else
return pointsValue;
public String getCorrectAnswer ()
return correctAnswer;
public boolean hasBeenAnswered ()
return (userAnswer != null);
private char normalize (String input)
if (input != null)
input = input.trim();
input = input.toLowerCase();
return input.charAt(0);
else
return ' ';
TrueFalseQuestion
public class TrueFalseQuestion extends Question
public TrueFalseQuestion (String text, String answer, int pts, String ctgry, int level)
super(text, answer, pts, ctgry, level);
public TrueFalseQuestion (String text, String answer, int pts)
super(text, answer, pts, DEFAULT_CATEGORY_VALUE, DEFAULT_DIFFICULTY_LEVEL);
public TrueFalseQuestion (String text, String answer, int pts, String ctgry)
super(text, answer, pts, ctgry, DEFAULT_DIFFICULTY_LEVEL);
public TrueFalseQuestion (String text, String answer, String ctgry)
super(text, answer, DEFAULT_POINT_VALUE, ctgry, DEFAULT_DIFFICULTY_LEVEL);
public TrueFalseQuestion (String text, String answer, int pts, int level)
super(text, answer, pts, DEFAULT_CATEGORY_VALUE, level);
// Methods
public String[] getPossibleAnswerChoice ()
String[] possibleAnswerChoice = {"true", "false"};
return possibleAnswerChoice;
} MultipleChoiceQuestion
public class MultipleChoiceQuestion extends Question
public MultipleChoiceQuestion (String text, String answer, int pts, String ctgry, int level)
super(text, answer, pts, ctgry, level);
public MultipleChoiceQuestion (String text, String answer, int pts)
super(text, answer, pts, DEFAULT_CATEGORY_VALUE, DEFAULT_DIFFICULTY_LEVEL);
public MultipleChoiceQuestion (String text, String answer, int pts, String ctgry)
super(text, answer, pts, ctgry, DEFAULT_DIFFICULTY_LEVEL);
public MultipleChoiceQuestion (String text, String answer, String ctgry)
super(text, answer, DEFAULT_POINT_VALUE, ctgry, DEFAULT_DIFFICULTY_LEVEL);
public MultipleChoiceQuestion (String text, String answer, int pts, int level)
super(text, answer, pts, DEFAULT_CATEGORY_VALUE, level);
// Methods
String possibleAnswers;
public String getPossibleAnswers ()
return possibleAnswers;
public void addAnswerChoice (String answerChoice)
String ansChoice = answerChoice;
questionText += "\nansChoice";
possibleAnswers = answerChoice;
public void printAnswerChoice ()
System.out.println (questionText);
} I don't understand why the assignment wants me to build a method in the MultpleChoiceQuestion class to store the potential answer choices, I can make the program display the potential answer choices by including them in the questionText as following in the QuizDriver class
Question x;
x = new MultipleChoiceQuestion("What is the color of the car\na.Red\nb.Green", "a. Red", 3);
t.addQuestion(x); I don't know how to allow the client to construct the list of answer choices one at a time(add one potential answer choice by calling the addAsnwerChoices() method once)
Here are a few original sentences of my assignment which describe what I should do with the MultipleChoiceQuestion class
Using TrueFalseQuestion as a model, develop a new MultipleChoiceQuestion class that can be used to represent a problem where the user must select one of several answer choices (e.g., "Select answer (a), (b), (c), or (d)."). This new question type should have all of the same externally-visible functionality as TrueFalseQuestion, except that it must:
maintain a list of potential answer choices
provide a method that allows the client to construct the list of answer choices one at a time (i.e., the client should be able to call an addAnswerChoice() method to pass a new answer option to the MultipleChoiceQuestion.)
display (as part of the question text) the list of answer choices with appropriate letters ("abcd" instead of "0123") I don't understand what these sentences mean.
1. "Maintain a list of potential answer choices"-- this reminds me of the getPossibleAnswerChoice() method in the TrueFalseQuestion class
public String[] getPossibleAnswerChoice ()
String[] possibleAnswerChoice = {"true", "false"};
return possibleAnswerChoice;
}I wonder that if the potential answer choices I have to store in the MultipleChoiceQuestion class are only letters "a", "b", "c", "d", etc, or include the answer text coming after the letters(eg. a.Red, b.Green)
2. "provide a method that allows the client to construct the list of answer choices one at a time". How do I achieve the functionality "one at a time"? Do I need to pass the input of the client (a potential answer choice) to the variable of the method which stores the list of potential answers?
3. "display (as part of the question text) the list of answer choices with appropriate letters". My question here is that: When the client type in one possible answer, should I append it to the variable questionText? (So I use the questionText variable in the methods of the first and second steps)
Thank you very much for your nice help!
Edited by: Terry001 on Apr 21, 2008 8:01 AM -
A question about the option Reset All Settings
Hello, I have a question about the reset all settings function in the IPad. I need to keep all of the installed applications on the device yet I need to remove any log in information and contacts. Is this the correct option or would the Erase All Content and Settings be what I want?
If you read the OP's request, they "need to keep all of the installed applications on the device". Selecting "Erase All Content and Settings" will do just that, erase everything.
Faroff, you can remove accounts in Settings/ Mail, Contacts, Calendar ... that would remove contacts only if the contacts were synced to such an account. If contacts were synced from iTunes, you'd have to un-sync them from iTunes by changing the sync settings. If the contacts were just manually entered and not synced with anything, you have to delete them one by one. However, iOS will remember past usage of a contact, so even if you remove them they may be recalled by you initiating an email or iMessage to something close to what used to be in the Contacts app. The only way to clear that I think is to do a full erase of the iPad.
As for log-in information, go to Settings/ Safari/ Passwords & Autofill, where you can erase passwords and saved credit card info. You can also clear cookies and data in this menu.
You might be better off doing a full erase of the iPad. Why do you not want to remove the apps? You can re-sync them from iTunes or re-download them if necessary. Or did you inherit this device from someone else and you're wanting to keep their apps installed but remove their private information? -
Questions about using Bitlocker without TPM
We currently use Bitlocker to encrypt our Windows 7 computers with TPM. Now we are looking at encrypting some Windows 7 computers without a TPM. I see how to change the group policy setting to allow Bitlocker without a TPM. I have looked at a lot of other
threads and I have a few questions about how the Bitlocker without TPM works.
1) I see a USB drive containing a key is required for Bitlocker configurations without a TPM, say the end user loses this USB drive, what are the recovery options for their computer?
This article seems to indicate that without the USB drive connected, you are unable to even access recovery options http://blogs.technet.com/b/hugofe/archive/2010/10/29/bitlocker-without-tpm.aspx
We have recovery backed up to AD when Bitlocker is enabled, but how could we do this recovery on a computer on computer where it's USB is lost? Would we have to remove the HD itself and attach it to another computer to access?
2) After enabling Bitlocker on a computer without a TPM and using the USB Drive for the key, is there a way to also add a PIN or password protection at bootup?Hi,
Sorry for my dilatory reply,
Configuring a startup key is another method to enable a higher level of security with the TPM. The startup key is a key stored on a USB flash drive, and the USB flash drive must be inserted every time the computer starts. The startup key is used to provide
another factor of authentication in conjunction with TPM authentication. To use a USB flash drive as a startup key, the USB flash drive must be formatted by using the NTFS, FAT, or FAT32 file system.
You must have a startup key to use BitLocker on a non-TPM computer.
From: http://technet.microsoft.com/de-de/library/ee449438(v=ws.10).aspx#BKMK_Key
For more Q&A about BitLocker, you can refer to the link above.
hope this is helpful.
Roger Lu
TechNet Community Support -
A lot of questions about my MacBook Air
I am really new to re-using Apple computers.The last time I used an Apple computer was back in 1987 when the school and my family had Apple IIGS computers. I have been using PC's which reqiure Microsoft. I a lot of have questions (10 questions) about my MacBook Air and I hope you good people can and will help me.
Product: MacBook Air
Operating System: Mac OS X Version 10.7.4
1) I Downloaded MacKeeper because I was fooled. I had a bad feeling just before I Downloaded it and I should have listened to my heart. However, I didn't buy it or fully Install it. It was like a test run and then they wanted me to pay almost $100 for it. Thankfully, I didn't because I read it is Malware. I spoke with an Apple Tech at Apple Care and he helped me get rid of it (or so we think). I don't see it anymore on my computer. I read it can slow down your computer. How can you tell if it's really off of the computer?
2) When I open "Finder" and I see that there are people Sharing my computer with me. I went into AirDrop and it reads, "Other people can see your Mac as (my name) MacBook Air when their computer is nearby." I bought a HotSpot and while it's turned on and I selected it as my WI-FI connection I thought it would get rid of these people, protect what I type, me, my items, computer, etc. But it didn't.
I didn't know that I have to buy a exteral CD and/or DVD Player in order to connect to the brand new Modem and Router in one by NetGear. I am so used to PCs and the CD/DVD Players being built inside.
The people at Apple Store told me that there is an internal modem inside, but I don't know how to find it and what to do then. Should I use a Firewall?, An AntiVirus, AntiMalware, AntiSpyware, etc. Apple Care tech told me I don't need to get an AntiVirus.
3) Is there a new kind of Wireless Modem and Router that doesn't require a CD-ROM?
4) When I travel or fly and I am not close to home I was told by Best Buy and Sprint that I had to buy a mobile HotSpot to use the computer (WI-FI) safely. As I typed, I have one. But it's pretty expensive and only gives me 1 hour and 15 minutes per day to Stream. What can I do to use this computer safely Online when I am out of range from a Modem and Router? What do people do when they travel on airplanes?
5) This compter won't let me use "Raid." I think you have to have a newer version. I hard about Raid on the radio from Leo (can't recall his last name) who's a Tech expert.
6) Should I buy a ZipDrive? Apple Store Tech told me that I didn't need a ZipDrive. I just remember the episode of HBO's "Sex and The City" when Carrie looses everything because her copy crashed. Now, of course, I know that's a fictional show, but with PC's and Microsoft I have lost everything when it crashed, frooze up, etc. I know there's iClouds. I heard about Carbonite, but I have read the Pros and Cons about it. Mostly they are Cons about it. I just don't want to do anything wrong and mess up this computer.
7) Should I buy a new Printer/Copier/Scanner because mine is an HP. It's not new, but it works. I even have a CD-ROM for Macs. What about the new product called, "Neat"?
8) Is there a special product that I should buy to do Online Banking and/or other important stuff?
9) I saw and read about iWork in the Apps Store and it sounds cool. I still have alot of friends and colleagues who still use Microsoft. Is iWork good to use? Should I Download it from the Apple Apps Store or can a buy it at Apple? Is there another Word Processing Program that is great and user friendly and will work with Macs and PCs?
10) Should I Update the OS with OS X Mountian Lion Pro from the Apple Apps Store or buy it at Apple Store?
In advance, I wish to thank you in this Apple Support Communites for your help. Have a safe and happy holiday weekend!1) Here are instructions for removing MacKeeper. Since it mostly consists of manually looking for folders and specific files, if you follow the instructions you either fail to find what you are told to find (because your AppleCare guide gave you complete instructions which you followed) or you'll find some additional files that need to be replaced.
2 & 3) I assume you are looking at the sidebar of a Finder window and seeing Shared and computers under it. Those are computers that you can potentionally share. To do so you'd need an account on their computer and a password. They are not sharing your computer.
AirDrop allows you to create an adhoc network for filesharing and it only functions when you have selected the AirDop item in the SideBar. Actually doing that merely announces to computers in the same network node that your computer is available for a file to be sent to. Even then you have to explicitly allow the file to be downloaded to your computer. Similarly you'd be able to see other computers with AirDrop selected and be able to send them a file - which they'd have to accept.
The only reason your NetGear Router comes with a CD is to install and run their 'easy' step by step configuration program. It can also be done manually with a browser. Read the manual to find the IP address you must enter to access the router's configuration menu. Apple's WiFi routers don't require a CD to install the software because the configuration software is already on your computer.
I do have my firewall turned on. AntiVirus software isn't a bad idea - I use Sophos having tested it for a review for our local User Group and I found I liked it better than ClamAVx which is what I'd been using before. Both are free.
4) I think you were scammed by Sprint and BestBuy. I use hotel, coffee shop, and restaurant WiFi spots and have for years. However, because they can be unsecured, I do not shop online or bank when I'm using them. I also use 1Password and don't reuse passwords so even if a sniffer should grab an account and password that's all it would get - one account.
5) Raid doesn't really make sense with a MacBook Air - a RAID involves 2 or more disks being used as if they were one.
6) Zip drive? No. External hard drive - yes. It isn't a question of if a computer's hard drive will malfunction, it is when. OWC has a nice selection of external drives and the Mac has a built in backup system called TimeMachine. Due to the way TimeMachine works, I've found that your TimeMachine drive should be at least twice as large - and preferably 3-4 times as large as the data you are backing up.
7) if your printer works and it has Mountain Lion drivers, why replace it?
8) Online banking is done with a browser - Use Safari or FireFox
9) If trading files with Windows users is important Mac: Office is your best bet. If not, iWork, Mac:Office, or LibreOffice are all good possibilities.
10) you can only buy Mt Lion via the App Store. -
Re: Questions about Plan structure
Reply-To: "Duncan Kinnear" <[email protected]>
Q. if you have an Employee class with related EmployeeSubordinate and
EmployeeSalaryHistory classes, should these all be in the same plan?
A It is better to have them in the same plan.It depends on the design
you have
Q Why should the Managers be separated from their business classes?
A Managers are usually service objects which might require different
resources.
These managers when deployed might be required by several other
applications.
Seperating them as a different plan will help in just using one
installed partition to be
Used by different applications (refer about Reference Partition)
Q If you have the Database managers separate, what scope does each DB
manager cover?
A It is better to have the DB managers in user scope.
It depends on the numbers of users, u have for the system.
Since u are talking about 100 tables. It's a huge system.
It also depends on the user licenses u have for the backend.
Take care that u use proper load balancing of DB Managers for the
system.
Krishna CVSR
GoldStone Softech Inc
>
Hi there,
We are in the middle of designing the structure of a new system.
I have read/heard that it is best to break down the plans into the
following categories:
Business Classes
Managers/Services
Clients
I have a few questions about this structure:
Should related business classes be grouped together in Plans? E.g. if
you have an Employee class with related EmployeeSubordinate and
EmployeeSalaryHistory classes, should these all be in the same plan?
Why should the Managers be separated from their business classes?
E.g. if there is an EmployeeMgr service which deals with anything to do
with the Employee business class, why separate them in different
plans? If you need the manager to access the class, you will always
need both.
Some of the Forte documentation talks about "Policy" managers and
"Database" managers. How do the functions of these managers differ
for a simple CRUD (Create Read Update Delete) class?
If you have the Database managers separate, what scope does each
DB manager cover? I.e. do you have one for the entire database (over
100 tables in our case), or do you break it down by sub-system?
Thanks in advance for any answers.
Cheers,
Duncan Kinnear,
McCarthy and Associates, Email: [email protected]
PO Box 764, McLean Towers, Phone: +64 6 834 3360
Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
Providing Integrated Software to the Meat Processing Industry for over 10 years
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Reply-To: "Duncan Kinnear" <[email protected]>
Q. if you have an Employee class with related EmployeeSubordinate and
EmployeeSalaryHistory classes, should these all be in the same plan?
A It is better to have them in the same plan.It depends on the design
you have
Q Why should the Managers be separated from their business classes?
A Managers are usually service objects which might require different
resources.
These managers when deployed might be required by several other
applications.
Seperating them as a different plan will help in just using one
installed partition to be
Used by different applications (refer about Reference Partition)
Q If you have the Database managers separate, what scope does each DB
manager cover?
A It is better to have the DB managers in user scope.
It depends on the numbers of users, u have for the system.
Since u are talking about 100 tables. It's a huge system.
It also depends on the user licenses u have for the backend.
Take care that u use proper load balancing of DB Managers for the
system.
Krishna CVSR
GoldStone Softech Inc
>
Hi there,
We are in the middle of designing the structure of a new system.
I have read/heard that it is best to break down the plans into the
following categories:
Business Classes
Managers/Services
Clients
I have a few questions about this structure:
Should related business classes be grouped together in Plans? E.g. if
you have an Employee class with related EmployeeSubordinate and
EmployeeSalaryHistory classes, should these all be in the same plan?
Why should the Managers be separated from their business classes?
E.g. if there is an EmployeeMgr service which deals with anything to do
with the Employee business class, why separate them in different
plans? If you need the manager to access the class, you will always
need both.
Some of the Forte documentation talks about "Policy" managers and
"Database" managers. How do the functions of these managers differ
for a simple CRUD (Create Read Update Delete) class?
If you have the Database managers separate, what scope does each
DB manager cover? I.e. do you have one for the entire database (over
100 tables in our case), or do you break it down by sub-system?
Thanks in advance for any answers.
Cheers,
Duncan Kinnear,
McCarthy and Associates, Email: [email protected]
PO Box 764, McLean Towers, Phone: +64 6 834 3360
Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
Providing Integrated Software to the Meat Processing Industry for over 10 years
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Legality questions about Home Sharing
I have some legality questions about Apple's Home Sharing technology.
As I understand it, you can share (that is, copy it from one computer to another) your music, movies, applications and other iTunes-managed files amongst five computers. The only 'trick' is that each computer must have an iTunes Store account and must be logged in in order for it to work.
My question concerns the copying aspect and the legality of it. For content that was purchased through the iTunes Store I can see how Home Sharing can provide a limitation on content sharing, since all of the machines would need to be connected to Apple's servers in order for the validation process to happen. But what about content that was added to iTunes through other means, e.g., ripping my own CDs or converting my DVDs? These items can still be copied via Home Sharing and as there's no DRM on them there's no way they can be protected against "illegal" or "unauthorized" use.
It was my understanding that if I gave a copy of a song to someone else, that's illegal. Apple's Home Sharing technology seems to facilitate this action. If I rip a CD or DVD into iTunes and someone copies it out, isn't that making an illegal copy? Can I be held liable for distribution of content?
And how far does this extend? If I live in a house with four unrelated people, are they legally (?) allowed to copy music and media amongst each another? Is there a perceived or actual difference between using Home Sharing to copy a movie versus, say, using a USB flash drive? And what if one of them moves out? Am I legally obligated to go through that person's hard drive and remove content that they copied from me before they leave the building?
Does Home Sharing somehow retroactively change the copyright application on a given CD or DVD? Most of my CDs and DVDs contain notices and warnings against distributing copies. Can these warnings now be ignored, or at least amended with "...unless you're using iTunes Home Sharing" at the ends of them?
I am not trying to stir up a hornet's nest here. I'm only trying to better understand the legal issues surrounding Home Sharing and particularly how they relate to unprotected content. It seems very contradictory that the RIAA and MPAA would be fighting so hard against peer-to-peer services like BitTorrent and Gnutella while apparently allowing peer-to-peer services through iTunes Home Sharing.
Furthermore, I also understand that the intention of this system was to allow families who are living together to have common access to all of the "household" music, but my issues aren't about this. I envision, for example, a college dorm building where there's several hundred people living together on the same network subnet, and all of them have Home Sharing enabled and everyone is copying thousands and thousands of songs to/from one another. Is this now legal?
Any insights would be appreciated. Thanks.If I rip a CD or DVD into iTunes and someone copies it out, isn't that making an illegal copy?
RIPping of commercial, encrypted DVDs (most of them) is illegal to begin with. Or rather, breaking the encryption on a DVD is illegal and in order to RIP the DVD, you must break the encryption. SO you have already "broken the law" by having a copy on your computer.
Most of my CDs and DVDs contain notices and warnings against distributing copies.
Most of your DVDs have a notice about even simply making a copy, not only distributing copies.
Much of your post has been cussed and discussed by many, many people (lawyers, corporations, organizations, individuals, etc.) and no one has come (or likely ever will come) to a complete agreement.
Generally, "sharing" in the same house hold amongst family members seems to be okay. Outside the same household/family is almost always not okay.
I envision, for example, a college dorm building where there's several hundred people living together on the same network subnet, and all of them have Home Sharing enabled and everyone is copying thousands and thousands of songs to/from one another. Is this now legal?
No.
This is exactly what Napster was and why they were sued & shut down.
I imagine Apple lawyers have done their homework as well as consulted with the labels to discuss these exact issues.
And it's called "Home Sharing" to indicate that it is not "Dorm Sharing" or "Workplace Sharing", or even simply "Library Sharing"etc. even though it may be possible to use it in other places than the Home.
Users on other computers need to know your iTunes ID and password to enable it Home Sharing. Likely this is how Apple got the lables to be okay with it.
Are you gonna give (and get) dozens/hundreds/thousands/any other users your iTunesID & password?
You can contact Apple Legal here -> http://www.apple.com/legal -
Few questions about icloud!!!
hi guys....i rly find it complicated to deal with this icloud thing i wanna ask a few questions ..so my 1st question is that how to get the camera roll back on my photo stream cuz i thought am saving space and i deleted all the photos in my photo stream how to get that back and if its not possiple is the pics i deleted still on i cloud ?
2nd question about back up..so when i back up through icloud all the pics i have wither it was on the photo stream or not is backed up ?Welcome to Apple Support Communities
Note that Photo Stream does not store photos: any photo in Photo Stream is deleted from iCloud 30 days after being added. Photo Stream is designed to sync your pictures to all your devices. If your photos were removed from Photo Stream and Camera Roll, the only way to get them back is by restoring a backup with those photos.
Your phone backup includes all the photos taken with it (those ones which were stored on Camera Roll), so if you have lost them, you can restore a backup. See -> Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support -
Few questions about recovery on P100-400
Good evening all,
I have a few questions about recovering my laptop...
So, I was thinking if the only way to clean my entire disk is to use the Recovery DVD?
I ask this because I think that the computer becomes too "heavy" with all the applications it came with. So I was wondering if I can format the Hard Drive instead of recover it.
If I format the drive do I loose warranty? Is there any future problem related to genuine software?
It's possible to install Windows XP Pro (and not the actual windows xp media center) with the original Operative system's product key?
Thank you.
Best Regards.Hello
I will try to give you few answers and I hope it will help you.
> So, I was thinking if the only way to clean my entire disk is to use the Recovery DVD?
> I ask this because I think that the computer becomes too "heavy" with all the applications it came with. So I was > wondering if I can format the Hard Drive instead of recover it.
I do not understand what you mean with I can format the Hard Drive instead of recover it but you can do follow: install OS using delivered recovery media and after doing this remove all applications you do not need. After doing this maybe your notebook will not be heavy anymore.
> If I format the drive do I loose warranty?
NO.
> Is there any future problem related to genuine software?
I do not know what you mean exactly
> It's possible to install Windows XP Pro (and not the actual windows xp media center) with the original Operative system's product key?
No. Something like this is not possible. Product key belongs to delivered and preinstalled OS. -
A question about creating packages as local objects in ABAP
Hi,
I have a question about creating packages with SE80. Whenever I create a new package it is assigned a new transport request. After that, I can create new programs inside this package, and each time I can choose whether to assign the new program to a transport request or just save it as a local object (I often do this for test programs that I don't transport and I remove them once my tests have been done).
What I would like to ask is that, is it possible to create a package (and not just programs inside a given package) as a local object? so that every new object created in this package will be considered as a local object?
Thanks in advane,
Kind Regards,
DariyooshThomas Zloch wrote:
Please also check the F1 help for the package field e.g. in SE80, SAP standard is in range A-S and U-X, namespaces start with "/", so you should be save. I am using the T namespace for temporary stuff since a long time and did not have a problem so far.
> Thomas
>
> P.S. this applies to the package name only, of course
Thank you very much for this remark, I checked F1 help for the package field and in fact as you mentioned these ranges are for local objects.
Once again, thank you very much for your help.
Kind Regards,
Dariyoosh -
Question about tranferring data from iPhone 3gs to iPhone 4
I just had a couple quick questions about transferring data from my old phone from my new iPhone 4. The reason i am wondering is because i am worried about whether i will encounter any problems when doing so.
First off i have already sold my phone today, i reset all data and settings from the phone and gave it to my buddy so its gone. I did a full sync and backup yesterday so all the necessary files should be on my computer(windows 7). Now, im basically wondering if i will run into any problems if i restore my iphone 4 from a backup. My 3gs was running 3.1.2 on att. Now i know IDEALLY i would have updated it to iOS 4 before backing it up and used the newest version of itunes, but i did not. Does anyone think this will be a problem for me?
Now with that out of the way, my biggest fear is losing my old data(text messages and notes mainly because i am a pack rat for those type of things) so id like to be SURE that none of my old backups will be deleted in any scenario. The reason i dont just restore it right now is because i want my new phone to be as clutter free as possible. I am going to be putting on here only the apps that i used often and would basically like to transfer over the BARE minimum; texts, notes, and highly used apps... So i guess my main question is can you transfer over only certain things like texts and notes after setting up the phone as a new phone. And if i were to set up the phone as a new phone what would happen to my old backups? Would i be able to selectively restore?
Im afraid that it might not be a possibility to transfer only certain things even though it should be.. i should be able to select a text messages folder and put it on my new phone and be done with it... But anyway i dont want to rant. Can anyone explain to me how this all will work?
ULTIMATE GOAL: Transfer only texts, notes, certain apps(and their data) and NOTHING ELSE.
MOST IMPORTANT THING: Not losing texts and notes. I can deal with putting all the old **** on my new phone and cluttering/slowing it down if i NEED to.
Thank you in advance, sorry for the long post.If the most important thing for you is keeping old text messages, notes, and voicemail, then you'll need to sync the phone from your existing backup. I know of no other way to access those items.
Once you have synced to the new phone, check that you have those items that were important. Then you can reconnect your phone to iTunes, and change the sync settings to remove the apps or other items you no longer want to keep on the phone.
iPhone backups are stored by iTunes; you can see them by opening your iTunes preferences, clicking on "Devices" and then looking in the window. You can delete old backups from here. I don't know how you can open/read the backups though.
I don't expect you'd have any problems syncing from your old phone's backup, but it's definitely an either/or situation. Since you got rid of the old phone already, it's too late to email yourself your notes, or copy the text messages. Your previous backup is your only solution.
Maybe you are looking for
-
Does ALDSP 2.5 supports INOUT cursor??
Hi, We are using ALDSP 2.5 and trying to connect to oracle stored procs. Some of these stored procs have INOUT Cursor, INPUT cursor and associate array types. Does ALDSP 2.5 supports this?? If not please let me know whether other versions support thi
-
JVM takes more RAM than defined in -Xmx param on solaris
Hi all, We have a problem on production installation of our product on Solaris paltfroms: jvm takes more (much more) RAM than defined in -Xmx param and without any OutOfMemory exceptions. (how itt possible at all ?) The only JNI call in application i
-
How to change View Attribute Name?
Is there a way to change the attribute name of a view object that was added from and entity Object? I dont want to change the Entity Attribute Name since i want to use it in diferent view objects with diferent names...
-
Meta tags for search engines needed only to homepage mainly ?
meta tags for search engines needed only to homepage mainly ?
-
I wish to move my music library and playlists from a laptop running windows Vista 32bit to our new PC with windows 8. Has anyone successfully accomplished this? Where can I find detailed instructions?