I need to create private members pages for a site I am building
Is it possible to make PRVATE PAGES that on only site members can see?
Hello David,
do you think about something like that: http://hansgd.de/DWTest/AccBlocked/AccBlocked.php
If you have to to take account to "normal" security requirements, so the easiest way in my opinion is to ask your provider for this possibility. (Passwortschutz = Password protection)
So you don't need to struggle by writing the ".htaccess" file of yourself. The advantage is, that the two files (.htaccess and .htpasswd) are created simultaneously and systemconform.
Hans-G.
Similar Messages
-
How can i create member login page for my site???
I want to create login page for members on my site.
Hi,
Please refer to the following link Re: secure account login
Regards,
Aish -
Need to create custom home page for iProcurment.
Hi,
I have an issue in iProcurment.
i have modified the Menu name from "Requisitions" to "My Requisitions" in custom responsibility "XX iProcurment" its a replica of standard iProcurment responsibility.
then i clear the Cache and bounce the middle tire even though the changes are not reflecting. But when i do the same changes in the standard iProcurment responsibility then i am able to see the changes.
Create a main menu XX_ICX_POR_SSP_HOME its a replica of ICX_POR_SSP_HOME then attached to XX iProcurment
Menu: XX_ICX_POR_SSP_HOME
User Menu Name: XX Internet Procurement Home
Menu Type: Standard
Description: Internet Procurement Home
seq Prompt Submenu Function Description
1 iProcurement Home Page POR SSP HOME Internet Procurement Home Page
3 XX iProcurement: Homepage menu
4 EAM Function To Launch IP
5 iProcurement: Function Security
6 iProcurement Preferences Menu Container iProcurement Preferences Menu Container
Sub menu:
XX_ICX_POR_HOMEPAGE_MENU its a replica of ICX_POR_HOMEPAGE_MENU
Menu: XX_ICX_POR_HOMEPAGE_MENU
User Menu Name: XX iProcurement: Homepage menu
Menu Type: Home Page
Description: iProcurement Homepage menu
seq Prompt Submenu Function Description
5 Shop XX iProcurement: Shop Shop tab
10 My Requisitions iProcurement: Requisition Status Requisition Status tab
15 Receiving iProcurement: Receiving Home Page Menu Receiving tab
20 Contractors iProcurement: Contractor Contractor tab
25 iProcurement: Common Functions Common iProcurement Functions
30 iProcurement: Global Menu iProcurement Global Menu
35 ICX_STANDARD_GLOBAL_MENU ICX Standard Global Menu
40 iProcurement iP Product Branding
Hear i am changing the prompt of "Requisitions" to "My Requisitions"
i have modified the function XX_POR_SSP_HOME its a replica of POR_SSP_HOME
x_object=AppsServlet&x_source=menu&x_menuFunction=displayHomePage
OA.jsp?OAFunc=ICX_POR_LAUNCH_IP&OAHP=XX_ICX_POR_HOMEPAGE_MENU&OASF=ICX_POR_LAUNCH_IP&porMode=accessHomePage&OAPB=ICX_POR_IP_BRANDDo you have much experience working with HTML & CSS code?
Does this project need to work well in all devices; not just tablets?
If the answer to both question sis Yes, I recommend Dreamweaver.
If the answer to both question is No, use Muse.
Nancy O. -
Creating Master page for publishing site
Hi,
I am trying to create a master page for publishing site. I have downloaded the "StarterBranding - V1.3" from codeplex, and used the "Starter Publishing". Currently it is not showing logo, search box, top navigation, breadcrumbs.
I have an existing master page which has lot of tags, and I am not sure what they represent. The below code is after the script manager tag in the body section:
<SharePoint:AjaxDelta id="DeltaDelegateControls" runat="server">
<SharePoint:DelegateControl ID="DelegateControl2" runat="server" ControlId="GlobalNavigation" />
<SharePoint:DelegateControl ID="DelegateControl3" ControlId="GlobalSiteLink3" Scope="Farm" runat="server" Visible="false" />
</SharePoint:AjaxDelta>
<div id="TurnOnAccessibility" style="display:none" class="s4-notdlg noindex">
<a id="linkTurnOnAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="<%$Resources:wss,master_turnonaccessibility%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div id="TurnOffAccessibility" style="display:none" class="s4-notdlg noindex">
<a id="linkTurnOffAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="<%$Resources:wss,master_turnoffaccessibility%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div class="s4-notdlg s4-skipribbonshortcut noindex">
<a id="A1" href="javascript:;" onclick="document.getElementById('startNavigation').focus();" class="ms-accessible ms-acc-button" accesskey="<%$Resources:wss,skipribbon_accesskey%>" runat="server">
<SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="<%$Resources:wss,skipRibbonCommandsLink%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div class="s4-notdlg noindex">
<a id="A2" href="javascript:;" onclick="document.getElementById('mainContent').focus();" class="ms-accessible ms-acc-button" runat="server">
<SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" text="<%$Resources:wss,mainContentLink%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div id="TurnOffAnimation" style="display:none;" class="s4-notdlg noindex">
<a id="linkTurnOffAnimation" href="#" class="ms-accessible ms-acc-button" onclick="ToggleAnimationStatus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" text="<%$Resources:wss,master_disableanimation%>" EncodeMethod="HtmlEncode"/></a>
</div>
<div id="TurnOnAnimation" style="display:none;" class="s4-notdlg noindex">
<a id="linkTurnOnAnimation" href="#" class="ms-accessible ms-acc-button" onclick="ToggleAnimationStatus();return false;">
<SharePoint:EncodedLiteral ID="EncodedLiteral6" runat="server" text="<%$Resources:wss,master_enableanimation%>" EncodeMethod="HtmlEncode"/></a>
</div>
<a id="HiddenAnchor" href="javascript:;" style="display:none;"></a>
<div id="suiteBar" class="ms-dialogHidden noindex">
<div id="suiteBarLeft">
<div class="ms-table ms-fullWidth">
<div class="ms-tableRow">
<div class="ms-tableCell ms-verticalAlignMiddle">
<SharePoint:DelegateControl id="ID_SuiteBarBrandingDelegate" ControlId="SuiteBarBrandingDelegate" runat="server"/>
</div>
<SharePoint:AjaxDelta runat="server" id="DeltaSuiteLinks" BlockElement="true" CssClass="ms-core-deltaSuiteLinks">
<div id="suiteLinksBox">
<SharePoint:DelegateControl id="ID_SuiteLinksDelegate" ControlId="SuiteLinksDelegate" runat="server" />
</div>
</SharePoint:AjaxDelta>
</div>
</div>
</div>
<div id="suiteBarRight">
<SharePoint:AjaxDelta runat="server" id="DeltaSuiteBarRight" CssClass="ms-core-deltaSuiteBarRight" BlockElement="true">
<div id="welcomeMenuBox">
<wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false" />
</div>
Are the above tags required in Master page? what is the use of it? I have more tags and will add after knowing the use of it in future threads.
ThanksHi,
According to your description, my understanding is that you want to know about the each tags useful in master page.
In SharePoint 2013 master page, there are some common tags like body tag, head tag and meta tag and some style CSS div tags. For the useful of these tags, I suggest you can refer the articles below:
Understanding HTML master pages in SharePoint 2013
In your custom master page, it will have some custom css tags depend on the display style but it is no required for master pages, if you want to know about what tags is required in master page, you can compare the custom master page with the OOTB master
page.
More information:
Create a minimal master page in SharePoint 2013
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Need to create stupid proof templates for non-designers
Ok folks, I'm new to this forum having come across it in search of a solution to my problem.
I need to create illustrator template files (.ai not .ait) that customers can download and use to create their own artwork for print. I have to create them in every printable paper format from business cards to A3 posters, folding, non-folding yada yada.
Now, previously, we used an .ai file with a guide layer we created. This guide layer had all relevant info, was named accordingly. It was set not to print and locked. As I tend to use print to file, distiller and all, this has always been perfectly adequate to create my pdfs. Of course, this doesn't work the same way when saving a pdf, which is what most people do. However, customers who wish to download the templates are having some difficulty with the concept of 'make sure you delete the guide layer before saving your pdf'.
For the most part, the customers using these files are not illustrator literate. Even though there are clear instructions to 'delete' the guide layer when saving the needed pdfs, they are failing to do so. This means when the .ai (with the non printable layer) is saved to pdf, the guide layer as a hidden object is saved within the pdf. Upon printing at our printing facilities, the guide layer has been printed with disasterous results.
A possible solution we came up with was to use the ruler guides to create the guide layer. For this solution to work though, I need to be able to use different colours for different guides within the same document. Which we can't. We can only change all the guide colours and they are all the same colour.
Another idea would be to outline text indicating various printable and non-printable areas and making them into guides via View>guides>make guides, which works to an extent but looks messy, especially when viewing the full page and again, isn't particularly distinctive, leading back to having different guides in different colours.
I've come across another possible solution involving template layers. Viewing the resulting pdf seems fine and in all purposes it does what we need, except for when reopening the saved (not printed) pdf back in illustrator, the template layer is still there and I need it gone. The same way it would be if the .ai were printed to postscript and sent through distiller.
My ideal solution would be to have to ability to have the different coloured ruler guides in place throughout my document, but as I previously stated, all guides have to be the same colour and that's useless in this instance.
So, has anyone got any bright ideas. Coincidentally I need to create the same templates for both psd and indesign but I'll cross that bridge when I've figured this out.Hey Mike, thanks for the response.
1. Not a chance, if, even when the process is described in great detail in an info pdf, available as info on the website (with screenshot instructions) and mentioned in the .ai file itself, they aren't even deleting the guide layer, then turning off 'Preserve illustrator editing capabilities' is kind of a stretch. Like I said, the folks these templates are to be designed for are not illustrator literate for the most part.
2. Not sure if this would work. I'd have to look into it.
3. Beyond my capabilities. I'll let you know if number 2 works.
One possible solution I've come up with uses the idea of a template layer always on top, with 'DELETE THIS LAYER' and screenshot of layers pallette and clear little red arrows etc. If I can the template layer to always remain on top, with their artwork layer underneath, they would have to toggle hide/unhide to view their artwork, and the reminder to remove the guide layer would be pretty much in their face. That's not a guarantee either though.
Personally, I think what I've been asked to achieve is a pretty hard task and honestly, I'm thinking there are no failsafe options. -
Creating a dynamic page for each record.
So I understand how to grab a single row from a database for use on a dynamic page. Now creating 1,000 pages for each row would be rather tedious even with copy and paste. So can anyone provide me some information on how to do this without creating each page manually?
>See what im saying?
No.
>What you are suggesting wouldn't actually produce a page for that product which can be linked to from other areas of the site.
Yes it would. You create a link to a dynamic page and pass it the id of the item you want to display. So instead of using a link to a static page like this:
<a href="mywidget_01.html">My Widget 101</a>
You would link to a dynamic page like this:
<a href="widgets.php?id=101">My Widget 101</a>
The widgets.php would read the query string and pull the correct data for widget 101 from the database. You could even use url rewriting so the url of the dynamic page for widget 101 would be http://example.com/widget101
>What I need is an easier way to produce 40,000 static pages.
That's crazy. It defeats the whole purpose of dynamic sites. Before you start on this, make sure you fully understand your options. -
How do i create 2 parameter pages for 1 report?
Hi,
I want to make a purchase order report. first: i need a parameter page to ask how many items that you want to order. second, once user enters a number(let's say 5), i want to have anoter parameter page show 5 empty fields that user can enter 5 items' barcode#, once they entered barcodes, the report will show these 5 items info.
my difficulty is how do i create 2 parameter page for 1 report?
thank youmy question
1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
2- how can create manual process to fetch row into specific items in page ( i tray these code
SELECT col1, col2, col3 ....
INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
FROM table
WHERE id = :P_id ) but no data retrieve .
I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
ORA-01403: no data found : Unable to fetch row multiple automated row fetch
On your second question, the manual process should work provided:
P_ID has a value when the process executes. You can do it this way:
i. Make this process as a on-load After/Before header process
ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes) -
I want to Facetime my Ipad from my Iphone but they are both set up with the same Apple id. Do I need to create a new id for one of them in order to facetime with the other?
You should be able to call the iPad using your Apple ID from the iPhone. When calling from iPad use the iPhone's phone number to initiate the call.
-
I know my Apple Id (it isn't ".mac") and password but I can't log on to ichat. I keep getting a message of password not matched. I saw somewhere that my Apple id is the same as my ichat account. Do I need to create a new account for Ichat? I've already reset my Apple id password 3 times in the last 2 days. What am I doing wrong?
Hi,
At one time only Email IDs from Apple (when it was just @Mac.com) were referred to as "Apple IDs"
Other IDs such as to log in to Discussions were know as Discussion IDs
Things like the Online Store and iTunes and Apple realising that people would prefer one ID to have access to Everything tended to move things together.
There can be a variety of combos now
iChat Name
@mac.com before MobileMe
@mac.com post MobileMe
AIM Names
AIM names current
MobileMe (@Me.com)
Style
Email Address valid with the .Mac service prior MobileMe Note 1
Email style Name Valid with AIM
May or may not be an Email address
Can be AIM issued or third party Email address
Valid Email with MobileMe Service
Other Abilities
May also be Currently valid email linked to a MobileMe account
Maybe Valid Apple ID
Is a Valid AIM Screen Name
May Not be a Valid Apple ID (was an option choice at one stage)
Is a Valid AIM Screen Name
May not look like an Email (No @whatever.com) but may be linked to either an AOL email account or AIM one
Current Registration seems to be pushing Email registration (@AIM.com)or asking to use another you currently use.
Trial Accounts are limited to the Trial Period Only as Emails, Valid AIM Screen Names and Apple IDs.
Apple ID
Possibly (likely)
Possibly (depends when Registered)
More currently Yes.
No
No
Yes
Glad I could help.
8:39 PM Thursday; September 15, 2011
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb( 10.6.8)
Mac OS X (10.6.8),
"Limit the Logs to the Bits above Binary Images." No, Seriously -
Need to create a driver class for a program i have made...
hey guys im new to these forums and someone told me that i could get help on here if i get in a bind...my problem is that i need help creating a driver class for a program that i have created and i dont know what to do. i need to know how to do this is because my professor told us after i was 2/3 done my project that we need at least 2 class files for our project, so i need at least 2 class files for it to run... my program is as follows:
p.s might be kinda messy, might need to put it into a text editor
Cipher.java
This program encodes and decodes text strings using a cipher that
can be specified by the user.
import java.io.*;
public class Cipher
public static void printID()
// output program ID
System.out.println ("*********************");
System.out.println ("* Cipher *");
System.out.println ("* *");
System.out.println ("* *");
System.out.println ("* *");
System.out.println ("* CS 181-03 *");
System.out.println ("*********************");
public static void printMenu()
// output menu
System.out.println("\n\n****************************" +
"\n* 1. Set cipher code. *" +
"\n* 2. Encode text. *" +
"\n* 3. Decode coded text. *" +
"\n* 4. Exit the program *" +
"\n****************************");
public static String getText(BufferedReader input, String prompt)
throws IOException
// prompt the user and get their response
System.out.print(prompt);
return input.readLine();
public static int getInteger(BufferedReader input, String prompt)
throws IOException
// prompt and get response from user
String text = getText(input, prompt);
// convert it to an integer
return (new Integer(text).intValue());
public static String encode(String original, int offset)
// declare constants
final int ALPHABET_SIZE = 26; // used to wrap around A-Z
String encoded = ""; // base for string to return
char letter; // letter being processed
// convert message to upper case
original = original.toUpperCase();
// process each character of the message
for (int index = 0; index < original.length(); index++)
// get the letter and determine whether or not to
// add the cipher value
letter = original.charAt(index);
if (letter >='A' && letter <= 'Z')
// is A-Z, so add offset
// determine whether result will be out of A-Z range
if ((letter + offset) > 'Z') // need to wrap around to 'A'
letter = (char)(letter - ALPHABET_SIZE + offset);
else
if ((letter + offset) < 'A') // need to wrap around to 'Z'
letter = (char)(letter + ALPHABET_SIZE + offset);
else
letter = (char) (letter + offset);
// build encoded message string
encoded = encoded + letter;
return encoded;
public static String decode(String original, int offset)
// declare constants
final int ALPHABET_SIZE = 26; // used to wrap around A-Z
String decoded = ""; // base for string to return
char letter; // letter being processed
// make original message upper case
original = original.toUpperCase();
// process each letter of message
for (int index = 0; index < original.length(); index++)
// get letter and determine whether to subtract cipher value
letter = original.charAt(index);
if (letter >= 'A' && letter <= 'Z')
// is A-Z, so subtract cipher value
// determine whether result will be out of A-Z range
if ((letter - offset) < 'A') // wrap around to 'Z'
letter = (char)(letter + ALPHABET_SIZE - offset);
else
if ((letter - offset) > 'Z') // wrap around to 'A'
letter = (char)(letter - ALPHABET_SIZE - offset);
else
letter = (char) (letter - offset);
// build decoded message
decoded = decoded + letter;
return decoded;
// main controls flow throughout the program, presenting a
// menu of options the user.
public static void main (String[] args) throws IOException
// declare constants
final String PROMPT_CHOICE = "Enter your choice: ";
final String PROMPT_VALID = "\nYou must enter a number between 1" +
" and 4 to indicate your selection.\n";
final String PROMPT_CIPHER = "\nEnter the offset value for a caesar " +
"cipher: ";
final String PROMPT_ENCODE = "\nEnter the text to encode: ";
final String PROMPT_DECODE = "\nEnter the text to decode: ";
final String SET_STR = "1"; // selection of 1 at main menu
final String ENCODE_STR = "2"; // selection of 2 at main menu
final String DECODE_STR = "3"; // selection of 3 at main menu
final String EXIT_STR = "4"; // selection of 4 at main menu
final int SET = 1; // menu choice 1
final int ENCODE = 2; // menu choice 2
final int DECODE =3; // menu choice 4
final int EXIT = 4; // menu choice 3
final int ALPHABET_SIZE = 26; // number of elements in alphabet
// declare variables
boolean finished = false; // whether or not to exit program
String text; // input string read from keyboard
int choice; // menu choice selected
int offset = 0; // caesar cipher offset
// declare and instantiate input objects
InputStreamReader reader = new InputStreamReader(System.in);
BufferedReader input = new BufferedReader(reader);
// Display program identification
printID();
// until the user selects the exit option, display the menu
// and respond to the choice
do
// Display menu of options
printMenu();
// Prompt user for an option and read input
text = getText(input, PROMPT_CHOICE);
// While selection is not valid, prompt for correct info
while (!text.equals(SET_STR) && !text.equals(ENCODE_STR) &&
!text.equals(EXIT_STR) && !text.equals(DECODE_STR))
text = getText(input, PROMPT_VALID + PROMPT_CHOICE);
// convert choice to an integer
choice = new Integer(text).intValue();
// respond to the choice selected
switch(choice)
case SET:
// get the cipher value from the user and constrain to
// -25..0..25
offset = getInteger(input, PROMPT_CIPHER);
offset %= ALPHABET_SIZE;
break;
case ENCODE:
// get message to encode from user, and encode it using
// the current cipher value
text = getText(input, PROMPT_ENCODE);
text = encode(text, offset);
System.out.println("Encoded text is: " + text);
break;
case DECODE:
// get message to decode from user, and decode it using
// the current cipher value
text = getText(input, PROMPT_DECODE);
text = decode(text, offset);
System.out.println("Decoded text is: " + text);
break;
case EXIT:
// set exit flag to true
finished = true ;
break;
} // end of switch on choice
} while (!finished); // end of outer do loop
// Thank user
System.out.println("Thank you for using Cipher for all your" +
" code breaking and code making needs.");
}My source in code format...sorry guys :)
Cipher.java
This program encodes and decodes text strings using a cipher that
can be specified by the user.
import java.io.*;
public class Cipher
public static void printID()
// output program ID
System.out.println ("*********************");
System.out.println ("* Cipher *");
System.out.println ("* *");
System.out.println ("* *");
System.out.println ("* *");
System.out.println ("* CS 181-03 *");
System.out.println ("*********************");
public static void printMenu()
// output menu
System.out.println("\n\n****************************" +
"\n* 1. Set cipher code. *" +
"\n* 2. Encode text. *" +
"\n* 3. Decode coded text. *" +
"\n* 4. Exit the program *" +
"\n****************************");
public static String getText(BufferedReader input, String prompt)
throws IOException
// prompt the user and get their response
System.out.print(prompt);
return input.readLine();
public static int getInteger(BufferedReader input, String prompt)
throws IOException
// prompt and get response from user
String text = getText(input, prompt);
// convert it to an integer
return (new Integer(text).intValue());
public static String encode(String original, int offset)
// declare constants
final int ALPHABET_SIZE = 26; // used to wrap around A-Z
String encoded = ""; // base for string to return
char letter; // letter being processed
// convert message to upper case
original = original.toUpperCase();
// process each character of the message
for (int index = 0; index < original.length(); index++)
// get the letter and determine whether or not to
// add the cipher value
letter = original.charAt(index);
if (letter >='A' && letter <= 'Z')
// is A-Z, so add offset
// determine whether result will be out of A-Z range
if ((letter + offset) > 'Z') // need to wrap around to 'A'
letter = (char)(letter - ALPHABET_SIZE + offset);
else
if ((letter + offset) < 'A') // need to wrap around to 'Z'
letter = (char)(letter + ALPHABET_SIZE + offset);
else
letter = (char) (letter + offset);
// build encoded message string
encoded = encoded + letter;
return encoded;
public static String decode(String original, int offset)
// declare constants
final int ALPHABET_SIZE = 26; // used to wrap around A-Z
String decoded = ""; // base for string to return
char letter; // letter being processed
// make original message upper case
original = original.toUpperCase();
// process each letter of message
for (int index = 0; index < original.length(); index++)
// get letter and determine whether to subtract cipher value
letter = original.charAt(index);
if (letter >= 'A' && letter <= 'Z')
// is A-Z, so subtract cipher value
// determine whether result will be out of A-Z range
if ((letter - offset) < 'A') // wrap around to 'Z'
letter = (char)(letter + ALPHABET_SIZE - offset);
else
if ((letter - offset) > 'Z') // wrap around to 'A'
letter = (char)(letter - ALPHABET_SIZE - offset);
else
letter = (char) (letter - offset);
// build decoded message
decoded = decoded + letter;
return decoded;
// main controls flow throughout the program, presenting a
// menu of options the user.
public static void main (String[] args) throws IOException
// declare constants
final String PROMPT_CHOICE = "Enter your choice: ";
final String PROMPT_VALID = "\nYou must enter a number between 1" +
" and 4 to indicate your selection.\n";
final String PROMPT_CIPHER = "\nEnter the offset value for a caesar " +
"cipher: ";
final String PROMPT_ENCODE = "\nEnter the text to encode: ";
final String PROMPT_DECODE = "\nEnter the text to decode: ";
final String SET_STR = "1"; // selection of 1 at main menu
final String ENCODE_STR = "2"; // selection of 2 at main menu
final String DECODE_STR = "3"; // selection of 3 at main menu
final String EXIT_STR = "4"; // selection of 4 at main menu
final int SET = 1; // menu choice 1
final int ENCODE = 2; // menu choice 2
final int DECODE =3; // menu choice 4
final int EXIT = 4; // menu choice 3
final int ALPHABET_SIZE = 26; // number of elements in alphabet
// declare variables
boolean finished = false; // whether or not to exit program
String text; // input string read from keyboard
int choice; // menu choice selected
int offset = 0; // caesar cipher offset
// declare and instantiate input objects
InputStreamReader reader = new InputStreamReader(System.in);
BufferedReader input = new BufferedReader(reader);
// Display program identification
printID();
// until the user selects the exit option, display the menu
// and respond to the choice
do
// Display menu of options
printMenu();
// Prompt user for an option and read input
text = getText(input, PROMPT_CHOICE);
// While selection is not valid, prompt for correct info
while (!text.equals(SET_STR) && !text.equals(ENCODE_STR) &&
!text.equals(EXIT_STR) && !text.equals(DECODE_STR))
text = getText(input, PROMPT_VALID + PROMPT_CHOICE);
// convert choice to an integer
choice = new Integer(text).intValue();
// respond to the choice selected
switch(choice)
case SET:
// get the cipher value from the user and constrain to
// -25..0..25
offset = getInteger(input, PROMPT_CIPHER);
offset %= ALPHABET_SIZE;
break;
case ENCODE:
// get message to encode from user, and encode it using
// the current cipher value
text = getText(input, PROMPT_ENCODE);
text = encode(text, offset);
System.out.println("Encoded text is: " + text);
break;
case DECODE:
// get message to decode from user, and decode it using
// the current cipher value
text = getText(input, PROMPT_DECODE);
text = decode(text, offset);
System.out.println("Decoded text is: " + text);
break;
case EXIT:
// set exit flag to true
finished = true ;
break;
} // end of switch on choice
} while (!finished); // end of outer do loop
// Thank user
System.out.println("Thank you for using Cipher for all your" +
" code breaking and code making needs.");
} -
Need to create a login page to my Adobe Muse site - how do I do that?
Hi all,
I need to create a login page on my Adobe Muse site, as I need to post information that only authorized personnel have acces to. Is that possible. I use Business Catalyst to host my site.
Thanks,Hi Michael,
The Business Catalyst site should be on web Marketing plan.
You can create the secure zone in Business Catalyst and then place the secure zone login form code from Business Catalyst to the page in Muse.
Business Catalyst Help | Add a secure area to your site
Regards,
Gaurav Aggarwal -
HT201317 How do I create a web page for my slideshow?
I created a slideshow. I exported it, so now it is in my iTunes...and where else, I admit I do not know. When I exported it, I didn't understand where I was exporting TO.
Anyway, I know I saw somewhere that I can create a web page for my slideshow that will allow my family to come (by invitation) to view the slideshow.
How do I do this?
Any help will be appreciated since I spent about 12 hours putting this show together and now would like to share it with my family.
Thanks!
peace.That's done with iPhoto in creating a Shared Photo Stream with the video. The slideshow must be in iPhoto. Then follow the steps in this screenshot:
OT -
When creating documents in pages for ePub what dimensions will fit ipad?
when creating documents in pages for ePub what dimensions will fit ipad?
Here you are in a forum dedicated to Pages for OS X.
Most of us don't use Pages for iOS.
Yvan KOENIG (VALLAURIS, France) mercredi 18 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My Box account is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
My iDisk is : http://public.me.com/koenigyvan
For iWork's applications dedicated to iOS, go to :
https://discussions.apple.com/community/app_store/iwork_for_ios -
Hi, both my husband and I have iphones synced to my apple id. It seems that we can't facetime due to this as it's like my email address is calling my email address! Is there anyway to fix this or will we need to create a new id for my husband's phone?
settings - facetime - remove the apple id, on your husband phone.
He should create his own id for imessage and facetime. -
I cannot get pages from iworks to share on Mountain Lion. Do I need a new version of pages for Mountain Lion instead of iworks?
You need Pages 09 (Version 4) to take advantage of Mountain Lion's iCloud features. You don't say what version you have.
Jerry
Maybe you are looking for
-
Can't open files I've saved in Garageband. Lion 10.7.1
I just starting using the Garag Band app that came with my new mac with Lion 10.7.1. I've used Garage Band before but I am getting alot of "Can't open that file" after I create something and save it and try to open it again. I believe my Garage Ban
-
How to use the Compounding Key in BPC10NW like BW info objects?
Hi experts. We are longing the suitable solution in BPC-NW 10.0 to deal with compounding key like BW info objects. We want to define the dimension with compounding key MATERIAL and PLANT, but BPC-NW 10.0 doesn't support it. Therefore we just defined
-
How to delete an iCloud account and turnoff Find my Phone for a email address that does not exist
I have switched my itunes account to a new email address but the iCloud account is still registered to the old email account which I can no longer access. If I go to Settings>iCloud it requests my Apple ID password for the old email account but as th
-
How can I access the "vision info" in an image
Hi, Development Environment: LabVIEW 2012 32-bit (12.0f3) Vision 2012 Description: I would like to get more information regarding the "vision info" in an image. There is a VI called IMAQ Is Vision Info Present 2 - which tells me whether any vision in
-
How do I delete a rental movie that was unable to dowload
How do I delete a rental movie that was unable to download