Help with extending schema for redhat ldap sudo integration.

Hi all,
I've done LDAP administration for a few years, but I'm new to Directory server and I'm a bit stuck. I want to apply a custom schema and allow sudoers in our CentOs (Redhat) Linux servers. They're authenticating correctly, but I can't get sudoers to work. I've followed this documentation to update my schema.
http://kbase.redhat.com/faq/docs/DOC-2057
I'm having issues with the step that creates the SUDOers group as the following.
dn: ou=SUDOers,dc=example,dc=com
objectClass: top
objectClass: organizationalUnit
ou: SUDOers
I want to make administration easy via the Workgroup manager so I don't have to manually add users to this group via ldif files. When I create a sudoers group via the workgroup manager, I get this dn
cn=sudoers,cn=groups,dc=spidertracks,dc=local
As you can see, it's a cn, not an ou. Furthermore, how do I get the defaults in the sudoer's group so that redhat recognizes the setup, but users can be assigned via the workgroup manager?
Thanks,
Todd

Anyways , I've created an LDIF for Active Directory with theses attributes and class objects.
Don't really know if this is needed inside AD or not.
If anyone wants these LDIFs for some reason, drop me a line. Keep in mind that they are a work in progress, so, if you find anything you dont like and would like to change it, please do let me know so I can update my versions aswell.
If anyone got any idea regarding the last questions I posted, please do let me know aswell
Rp

Similar Messages

  • Help with starting point for "proof of concept" integration

    We are a third party application provider and are attempting to figure out how to do a "proof of concept" integration with SAP.  We are not looking for "certification".  Our product does not appear to fit any of the standard certifications for integration and our experience integrating with other systems indicates that no two integration will be identical.
    We are looking to do a simple integration scenario with an SAP system so we have some basic experience doing it, can say 'Yes" when asked if we have done it, and can create a video showing a transaction being done in SAP and our system also updating (and ideally the reverse).
    Our starting point with respect to SAP knowledge is "0".
    Our basic task list (we think) goes something like
    1.  Figure out the version and modules of SAP with which we should be integrating
    2.  Get access to an SAP system (do we rent, is there a developer/evaluation, ...)
    3.  Put some data in the test system (is there a "sample data" set?)
    4.  Figure out the SAP transactions that map to the business process in which we are interested (moving goods in and out of a distribution center/ware house - are there some "standard business process guides")
    5.  Integrate (we are a .NET web based application so we are guessing this means use the ".Net Connector")
    Could anyone point out any resources (white papers, links, people, places to find people,...) that might be a good starting point?
    Thanks,
    John

    Athol,
    We are looking to recieve notifications out of SAP as tractor trailers at a dock are filled as proof on concept.  The actual integration scenarios we do are more complex and do not match well with any of the pre-packaged certification scenarios.  The real world integration scenarios actual vary substantially from customer to customer in terms of the integration points between systems.
    As we have become more marginally knowledgable about SAP, I think we will end up receiving and sending "IDOC" messages from SAP but have no idea what those IDOC messages are or where to start looking for what a "standard" (if there is one) message SAP would generate in reaction to whatever the "trailer is loaded" transaction is.
    To figure out what the transaction is, I assume we need to identify what version of SAP we should be targeting for a simple integration.  Are there any could references on what the commonly integration methods are and to which versions they apply?
    Something like "hey, if you do an integration with a IDOCs in with SAP Netweaver 2004 then that would good proof you could integrate with 90% of the installed SAP base".  Of course, any links explaining what the versions of SAP are and where they are in there lifecycle and what people are actually using would be helpful.
    John

  • HELP HELP HELP with adminstrator password for pavilion dv7 beats audio

    Hi. I need help with  adminstrator password for pavilion dv7 with window 7. I don't remember with is the  adminstrator password for pavilion dv7 beats audio. Is there anyway you can help me with this? once i enter 3 times is gives me this system disabled code: 52464663.  

    Hi
    Try this Key : 43542265 That should fix your issue 
    Hope this helps.
    ***** Click the KUDOS Thumbs UP (Like) on the left to say 'Thanks'*****
    ****Make it easier for other people to find solutions, by marking my answer “Accept as Solution”&"Kudos"if it solves your problem.****
    -VJ
    Although I am an HP Employee, I am speaking for myself and not for HP.

  • Help with Simple Applescript for Midipipe

    Hey all, I'm in desperate need of help with some Applescript for use in a program called Midipipe:
    http://web.mac.com/nicowald/SubtleSoft/MidiPipe.html
    I simply require an Applescript for Midipipe that filters out all OFF notes except for the most recently pressed key, or most recently pressed ON note. So for example, when multiple keys have been pressed, only the most recently pressed key will send an OFF note. I hope that is clear enough, i've had some major issues trying to get this work and my last hope is to hit the forums and find some help .. I've posted on some of the audio forums and i'm hoping someone here knows how to code this.
    Thanks so much!! .. Its for an upcomming show next week so i'm hoping someone can get me in the right direction to solving this.
    -Jes

    I try to help, but you'll need to apply your brain cells to get it working with what I've already explained (three times with what I offer below).  Try something like the following (I am renaming your buttons to ch1,ch2,ch3,ch4,ch5,ch6 so that the same functions can be shared by all buttons...
    // this assigns listeners to all 6 buttons
    for(var i:uint=1; i<7; i++){
              this["ch"+String(i)].addEventListener(MouseEvent.CLICK, fl_ClickToSeekToCuePoint);
    // this processes any one of the 6 btns when they are clicked
    function fl_ClickToSeekToCuePoint_1(event:MouseEvent):void
        var btn = event.currentTarget;
        var cuePointInstance:Object = vid.findCuePoint(btn.name);
        vid.seek(cuePointInstance.time);
       resetButtons();    // this makes all buttons go back to normal
        btn.upState = btn.overState; // this makes the clicked button change states
    function resetButtons():void {
         for(var i:uint=1; i<7; i++){
              this["ch"+String(i)].upState =  this["ch"+String(i)].hitTestState;
    For this to work, your buttons need to have the same artwork in the hit frame as they do in the up frame.

  • I still need help with the Dictionary for my Nokia...

    I still need help with the Dictionary for my Nokia 6680...
    Here's the error message I get when trying to open dictionary...
    "Dictionary word information missing. Install word database."
    Can someone please provide me a link the where I could download this dictionary for free?
    Thanks!
    DON'T HIT KIDS... THEY HAVE GUNS NOW.

    oops, im sorry, i didnt realised i've already submitted it
    DON'T HIT KIDS... THEY HAVE GUNS NOW.

  • Help with if statement for a beginner.

    Hello, I’m new to the dev lark and wondered if someone could point me in the right direction.
    I have the following (working!) app that lets users press a few buttons instead of typing console commands (please do not be too critical of it, it’s my first work prog).
    //DBS File send and Receive app 1.0
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.BorderLayout;
    import java.awt.FlowLayout;
    import java.awt.Font;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import java.applet.Applet;
    public class Buttons extends JFrame
         public Buttons()
              super("DBS 2");          
              JTextArea myText = new JTextArea   ("Welcome to the DBS application." +
                                                           "\n" +
                                                           "\n\n1. If you have received an email informing you that the DBS is ready to dowload please press the \"Receive DBS\" button." +
                                                           "\n" +
                                                           "\n1. Once this has been Received successfully please press the \"Prep File\" button." +
                                                           "\n\n2. Once the files have been moved to their appropriate locations, please do the \"Load\" into PAS." +
                                                           "\n\n3. Once the \"Load\" is complete, do the \"Extract\"." +
                                                           "\n\n4. When the \"Extract\" has taken place please press the \"File Shuffle\" button." +
                                                           "\n\n5. When the files have been shuffled, please press the \"Send DBS\" Button." +
                                                           "\n\nJob done." +
                                                           "\n", 20,50);
              JPanel holdAll = new JPanel();
              JPanel topPanel = new JPanel();
              JPanel bottomPanel = new JPanel();
              JPanel middle1 = new JPanel();
              JPanel middle2 = new JPanel();
              JPanel middle3 = new JPanel();
              topPanel.setLayout(new FlowLayout());
              middle1.setLayout(new FlowLayout());
              middle2.setLayout(new FlowLayout());
              middle3.setLayout(new FlowLayout());
              bottomPanel.setLayout(new FlowLayout());
              myText.setBackground(new java.awt.Color(0, 0, 0));     
              myText.setForeground(new java.awt.Color(255,255,255));
              myText.setFont(new java.awt.Font("Times",0, 16));
              myText.setLineWrap(true);
              myText.setWrapStyleWord(true);
              holdAll.setLayout(new BorderLayout());
              topPanel.setBackground(new java.awt.Color(153, 101, 52));
              bottomPanel.setForeground(new java.awt.Color(153, 0, 52));
              holdAll.add(topPanel, BorderLayout.CENTER);
              topPanel.add(myText, BorderLayout.NORTH);
              setSize(700, 600);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              getContentPane().add(holdAll, BorderLayout.CENTER);
              Container c = getContentPane();
              c.setLayout(new FlowLayout());
              final JButton receiveDBS = new JButton("Receive DBS"); //marked as final as it is called in an Inner Class later
              final JButton filePrep = new JButton("Prep File");
              final JButton fileShuffle = new JButton("File Shuffle");
              final JButton sendDBS = new JButton("Send DBS");
              JButton exitButton = new JButton("Exit");
    //          JLabel statusbar = new JLabel("Text here");
              receiveDBS.setFont(new java.awt.Font("Arial", 0, 25));
              filePrep.setFont(new java.awt.Font("Arial", 0, 25));
              fileShuffle.setFont(new java.awt.Font("Arial", 0, 25));
              sendDBS.setFont(new java.awt.Font("Arial", 0, 25));
              exitButton.setBorderPainted ( false );
              exitButton.setMargin( new Insets ( 10, 10, 10, 10 ));
              exitButton.setToolTipText( "EXIT Button" );
              exitButton.setFont(new java.awt.Font("Arial", 0, 20));
              exitButton.setEnabled(true);  //Set to (false) to disable
              exitButton.setForeground(new java.awt.Color(0, 0, 0));
              exitButton.setHorizontalTextPosition(SwingConstants.CENTER); //Don't know what this does
              exitButton.setBounds(10, 30, 90, 50); //Don't know what this does
              exitButton.setBackground(new java.awt.Color(153, 101, 52));     
              topPanel.add(receiveDBS);
              middle1.add(filePrep);
              middle2.add(exitButton);
              middle3.add(fileShuffle);
              bottomPanel.add(sendDBS);
              receiveDBS.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == receiveDBS);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\ReceiveDBSfile.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              filePrep.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == filePrep);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\filePrep.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              exitButton.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        System.exit(0);
              fileShuffle.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == fileShuffle);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\fileShuffle.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              sendDBS.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == sendDBS);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\sendDBSFile.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              c.add(receiveDBS);
              c.add(filePrep);
              c.add(fileShuffle);
              c.add(sendDBS);
              c.add(exitButton);
    //          c.add(statusbar);
         public static void main(String args[])
              Buttons xyz = new Buttons();
              xyz.setVisible(true);
         }What I would like help with is the following…
    I would like output to either a JLabel or JTextArea to appear if a file appears on the network. Something along these lines…
    If file named nststrace*.* is in \\[network path] then output “Download successful, please proceed.”
    btw I have done my best to search this forum for something similar and had no luck, but I am looking forward to Encephalopathic’s answer as he/she has consistently made me laugh with posted responses (in a good way).
    Thanks in advance, Paul.

    Hospital_Apps_Monkey wrote:
    we're starting to get aquainted, but I think "best friend" could take a while as it is still as hard going as I recall, but I will persevere.Heh, it's not so bad! For example, if I had no idea how to test whether a file exists, I would just scan the big list of classes on the left for names that sound like they might include File operations. Hey look, File! Then I'd look at all of File's methods for something that tests whether it exists or not. Hey, exists! Then if I still couldn't figure out how to use it, I'd do a google search on that particular method.

  • Help with some ACLs for VACL

    I need some help with acls for a vacl. Goal - have the 1.1.1.0/24 subnet only communicate with certain IP.
    So, they cannot get out to anywhere else and no one except that IP can get in.
    Here is what I have so far:
    access-list acl1 permit tcp 1.1.1.0 255.255.255.0 host 1.2.3.4
    access-list acl1 permit tcp host 1.2.3.4 1.1.1.0 255.255.255.0
    access-list acl1 ip 1.1.1.0 255.255.255.0 any log
    access-list acl1 ip deny any any log
    vlan access-map vacl1 1
    match ip address set acl1
    action forward
    exit
    vlan filter vacl1 vlan-list 11
    Will this work as I expect it to?
    Thanks for any help

    Hi,
    I implemented this on my 6509 and it didn't work. I even modified it to look like the following and it didn't work (I could RDP to one of the boxes on that the subnet).
    ip access-list extended rapt_acl
    deny ip any any
    deny tcp any any
    deny udp any any
    vlan access-map rapt_vacl 10
    match ip address set rapt_acl
    action forward
    vlan filter rapt_vacl vlan-list 90
    Any thoughts what I may be missing?

  • Help with Mathscipt and for loop

    I have a code in Mathscript/matlab and I need to output the array out. One option is my first code,the other option is using a for loop, but I am only getting the last ouput out. I need to get the whole output out.
    Any help.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Help with Mathscript_for loop.vi ‏115 KB
    Help with Mathscript_for loop2.vi ‏84 KB

    Here's how it should look like.
    Message Edited by altenbach on 10-30-2008 05:12 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MathscriptInFOR.png ‏15 KB

  • Help with system upgrade for CS6

    Hello. I am hoping you can give me some advice on what to do (or buy) to improve my video editing system.  I am a bit of novice when it comes to the technical/hardware end of things and I’m having some issues with my current system. 
    I working in Adobe CS6 Master Suite on a Windows 7 Ultimate PC.  I mainly use Premiere Pro, After Effects, Photoshop, and Audition.  I create very complete animations and videos with many layers and effects (via Boris & Red Giant).  I also use Skype to record group video calls (with the program Evaer) for a reality T.V. recap show which I also edit with my Adobe suite.  However I have two main problems.
    When I render out a 20 minute premier pro project (with several HD video layers and effects) it takes almost 13 hours.  It seems like this is very long considering my high end components, and set up.  For example I run ONLY my OS off an SSD.  My programs are on another SSD.  The files I use for the video are on another HDD, and I render to another HDD.  I was told by keeping all the aspects on separate hard drives it would speed everything up.  Is that true?  I also am now reading that rendering to a SSD would speed things up.  Should I consider changing my workflow/hard drive set up that way? 
    My other problem is that when I record my Skype group calls of 4 people (with Evaer) to my SSD the audio is always off when I bring it into Premiere.  I don’t know if this is a problem with Evaer, a codec (it records it as H.264/MPEG-4 AVC Codec.  At 1280 X 720 and 30fps), that SSDs auto compress files, or that my system just cant handle it.  Plus Soundblaster & Nvida both seem to active as audio features on my system I don’t know if that effects anything.  Is there any advice any of you have on this issue as well?  Perhaps another program to record skype or group calls?
    Finally… all that aside.  Considering the work I am doing should I just upgrade my system to a better Mobo and graphics card.  I see a lot of people are recommending a dual processor work station.  If so what is a good motherboard, and processor(s) I should get if I build my own workstation?  I have about $4000.00 I could invest in building one if you think would greatly improve my work flow and render times.  I also have a quadro k5000 on the way, and id like to be able to use the memory I have already.
    I realize I am asking a lot of questions.  I would truly appreciate any help, advice or just a point in the right direction.  I have included my current system specs below incase that helps with any of my questions.  If you have any other questions or need more information just let me know.  Thank you again in advance for any help you can provide.
    -Eric
    MOTHERBOARD:
    Gigabyte G1.Assassin  http://www.gigabyte.com/products/product-page.aspx?pid=3752#ov
    PROCESSOR:
    Intel Core i7 X 980
    5 HARD DRIVES:
    (1) SATA II WD (WD15EADS-00P8B0) 3gb Hard Drive @ 1.5TB
    (2) OCZ SATA AGILITY II SSD drives @120GB: http://www.newegg.com/Product/Product.aspx?Item=N82E16820227543
    (2) Hitachi 6gb SATA III drives @2TB: http://www.newegg.com/Product/Product.aspx?Item=N82E16822145473
    3 DVD/CD/BLUERAY DRIVES:
    (1) SATA DVD DRIVE
    (1) SATA BlueRay Drive
    RAM:
    24GIGs of this ram: http://www.newegg.com/Product/Product.aspx?Item=N82E16820145321
    GRAPHICS:
    (1) NVIDIA GeForce GTX 680  http://www.geforce.com/hardware/desktop-gpus/geforce-gtx-680
    SOUND CARD:
    NONE DEDICATED: But Onboard Creative Soundblaster X-Fi Digital Audio Processor (20K2) with X-Fi Xtreme Fidelity™ and EAX® AHD 5.0™ Technologies built into MoBo.
    PLUS: NVIDIA High Definition Audio
    CONTROLLERS:
    Microsoft ISATAP Adapter
    Intel(R) ICH10R SATA AHCI Controller
    Realtek PCI GBE Family Controller
    Marvell 91xx SATA 6G Controller
    Renesas Electronics USB 3.0 Host Controller
    MY HARD DRIVE SETUP:
    *I also have a network server which I use to back up files, and access files across my other systems. 

    Eric,
    I would hardly call the Quadro card an upgrade to a GTX 680!
    Regarding getting more speed from a faster MB / CPU, since you already have a 6-core rig with 24GB of RAM I would think that any gains you would get would not be that dramatic.
    Check out your cpu usage (Task manager) and see how busy your cores are during a test render. I am guessing that the Boris and / or Red Giant effects could be jumping your projects from gaining the full multi-core capabilities of the Adobe software.
    Regards,
    Jim

  • Please help with RMAN dup for RAC db

    Happy Holidays!! All,
    I need help with the following issue:
    Both target and auxiliary databases are:
    Database version is 10.2.0.3 with 2-node RAC db
    Servers are MS 2003
    Oracle Clusterware 10.2.0.3
    Oracle ASM for storage
    I have run the rman dup from RAC to a single instance db for a while. This is the first time I ran from RAC to RAC. This auxiliary db was refreshed before and was up for a while and was managed by server control tool. Now I am trying to refresh it with new backup files from production. I did the following as people suggested:
    1)     shutdown instance in the second node.
    2)     Startup nomount mode in the first node
    3)     Run RMAN dup
    It failed in the same place with slightly different errors. I pasted error messages at the bottom. I already created a TAR with Oracle but would like to know if anybody has any info related to this. Also I have several questions to ask:
    1)     Should I stop all services related to Oracle in node-2
    2)     Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
    3)     Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
    4)     How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
    Thanks a lot for your help and have a great holiday season!!!
    First time run:
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    RMAN-00571: ====================================================
    RMAN-00569: ======= ERROR MESSAGE STACK FOLLOWS ==============
    RMAN-00571: =============================================
    RMAN-03002: failure of Duplicate Db command at 12/21/2009 20:24:47
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-00610: Internal error code
    Second time run:
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    RMAN-00571: ===================================================
    RMAN-00569: ========== ERROR MESSAGE STACK FOLLOWS ==========
    RMAN-00571: ===================================================
    RMAN-03002: failure of Duplicate Db command at 12/22/2009 15:53:27
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-03113: end-of-file on communication channel
    Shirley

    1) Should I stop all services related to Oracle in node-2
    No, you just need to stop the second instance.
    2) Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
    No, you don't need to stop anything. Just have the instance startup nomount.
    3) Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
    You have not shown enough information. Did the restore succeed ? Did the recover succeed ? What was it doing when it failed ?
    4) How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
    Yes, srvctl remove database is all you need. (unless you also want to remove from listener.ora, tnsnames.ora, oratab etc)

  • Need help with calculator project for an assignment...

    Hi all, I please need help with my calculator project that I have to do for an assignment.
    Here is the project's specifications that I need to do"
    """Create a console calculator applicaion that:
    * Takes one command line argument: your name and surname. When the
    program starts, display the date and time with a welcome message for the
    user.
    * Display all the available options to the user. Your calculator must include
    the arithmetic operations as well as at least five scientific operations of the
    Math class.
    -Your program must also have the ability to round a number and
    truncate it.
    -When you multiply by 2, you should not use the '*' operator to perform the
    operation.
    -Your program must also be able to reverse the sign of a number.
    * Include sufficient error checking in your program to ensure that the user
    only enters valid input. Make use of the String; Character, and other
    wrapper classes to help you.
    * Your program must be able to do conversions between decimal, octal and
    hex numbers.
    * Make use of a menu. You should give the user the option to end the
    program when entering a certain option.
    * When the program exits, display a message for the user, stating the
    current time, and calculate and display how long the user used your
    program.
    * Make use of helper classes where possible.
    * Use the SDK to run your program."""
    When the program starts, it asks the user for his/her name and surname. I got the program to ask the user again and again for his/her name and surname
    when he/she doesn't insert anything or just press 'enter', but if the user enters a number for the name and surname part, the program continues.
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??
    Here is the programs code that I've written so far:
    {code}
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class Project {
         private static String nameSurname = "";     
         private static String num1 = null;
         private static String num2 = null;
         private static String choice1 = null;
         private static double answer = 0;
         private static String more;
         public double Add() {
              answer = (Double.parseDouble(num1) + Double.parseDouble(num2));
              return answer;
         public double Subtract() {
              answer = (Double.parseDouble(num1) - Double.parseDouble(num2));
              return answer;
         public double Multiply() {
              answer = (Double.parseDouble(num1) * Double.parseDouble(num2));
              return answer;
         public double Divide() {
              answer = (Double.parseDouble(num1) / Double.parseDouble(num2));
              return answer;
         public double Modulus() {
              answer = (Double.parseDouble(num1) % Double.parseDouble(num2));
              return answer;
         public double maximumValue() {
              answer = (Math.max(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double minimumValue() {
              answer = (Math.min(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double absoluteNumber1() {
              answer = (Math.abs(Double.parseDouble(num1)));
              return answer;
         public double absoluteNumber2() {
              answer = (Math.abs(Double.parseDouble(num2)));
              return answer;
         public double Squareroot1() {
              answer = (Math.sqrt(Double.parseDouble(num1)));
              return answer;
         public double Squareroot2() {
              answer = (Math.sqrt(Double.parseDouble(num2)));
              return answer;
         public static String octalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
    String octal1 = Integer.toOctalString(iNum1);
    return octal1;
         public static String octalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String octal2 = Integer.toOctalString(iNum2);
              return octal2;
         public static String hexadecimalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
              String hex1 = Integer.toHexString(iNum1);
              return hex1;
         public static String hexadecimalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String hex2 = Integer.toHexString(iNum2);
              return hex2;
         public double Round1() {
              answer = Math.round(Double.parseDouble(num1));
              return answer;
         public double Round2() {
              answer = Math.round(Double.parseDouble(num2));
              return answer;
              SimpleDateFormat format1 = new SimpleDateFormat("EEEE, dd MMMM yyyy");
         Date now = new Date();
         SimpleDateFormat format2 = new SimpleDateFormat("hh:mm a");
         static Date timeIn = new Date();
         public static long programRuntime() {
              Date timeInD = timeIn;
              long timeOutD = System.currentTimeMillis();
              long msec = timeOutD - timeInD.getTime();
              float timeHours = msec / 1000;
                   return (long) timeHours;
         DecimalFormat decimals = new DecimalFormat("#0.00");
         public String insertNameAndSurname() throws IOException{
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        while (nameSurname == null || nameSurname.length() == 0) {
                             for (int i = 0; i < nameSurname.length(); i++) {
                             if ((nameSurname.charAt(i) > 'a') && (nameSurname.charAt(i) < 'Z')){
                                       inputCorrect = true;
                        else{
                        inputCorrect = false;
                        break;
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your name and surname: ");
                             nameSurname = inStream.readLine();
                             inputCorrect = true;
                        }catch (IOException ex) {
                             System.out.println("You did not enter your name and surname, " + nameSurname + " is not a name, please enter your name and surname :");
                             inputCorrect = false;
                        System.out.println("\nA warm welcome " + nameSurname + " ,todays date is: " + format1.format(now));
                        System.out.println("and the time is now exactly " + format2.format(timeIn) + ".");
                        return nameSurname;
              public String inputNumber1() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter a number you want to do a calculation with and hit <ENTER>: ");
                             num1 = br.readLine();
                             double number1 = Double.parseDouble(num1);
                             System.out.println("\nThe number you have entered is: " + number1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("\nYou did not enter a valid number: " + "\""+ num1 + "\" is not a number!!");
                             inputCorrect = false;
                        return num1;
         public String calculatorChoice() throws IOException {
              System.out.println("Please select an option of what you would like to do with this number from the menu below and hit <ENTER>: ");
              System.out.println("\n*********************************************");
              System.out.println("---------------------------------------------");
              System.out.println("Please select an option from the list below: ");
              System.out.println("---------------------------------------------");
              System.out.println("1 - Add");
              System.out.println("2 - Subtract");
              System.out.println("3 - Multiply");
              System.out.println("4 - Divide (remainder included)");
              System.out.println("5 - Maximum and minimum value of two numbers");
              System.out.println("6 - Squareroot");
              System.out.println("7 - Absolute value of numbers");
              System.out.println("8 - Octal and Hexadecimal equivalent of numbers");
              System.out.println("9 - Round numbers");
              System.out.println("0 - Exit program");
              System.out.println("**********************************************");
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your option and hit <ENTER>: ");
                             choice1 = inStream.readLine();
                             int c1 = Integer.parseInt(choice1);
                             System.out.println("\nYou have entered choice number: " + c1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid choice number: " + "\""+ choice1 + "\" is not in the list!!");
                             inputCorrect = false;
                        return choice1;
         public String inputNumber2() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br2 = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter another number you want to do the calculation with and hit <ENTER>: ");
                             num2 = br2.readLine();
                             double n2 = Double.parseDouble(num2);
                             System.out.println("\nThe second number you have entered is: " + n2);
                             System.out.println("\nYour numbers are: " + num1 + " and " + num2);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid number: " + "\""+ num2 + "\" is not a number!!");
                             inputCorrect = false;
                        return num2;
         public int Calculator() {
              int choice2 = (int) Double.parseDouble(choice1);
              switch (choice2) {
                        case 1 :
                             Add();
                             System.out.print("The answer of " + num1 + " + " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 2 :
                             Subtract();
                             System.out.print("The answer of " + num1 + " - " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 3 :
                             Multiply();
                             System.out.print("The answer of " + num1 + " * " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 4 :
                             Divide();
                             System.out.print("The answer of " + num1 + " / " + num2 + " is: " + decimals.format(answer));
                             Modulus();
                             System.out.print(" and the remainder is " + decimals.format(answer));
                             break;
                        case 5 :
                             maximumValue();
                             System.out.println("The maximum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             minimumValue();
                             System.out.println("The minimum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 6 :
                             Squareroot1();
                             System.out.println("The squareroot of value " + num1 + " is: " + decimals.format(answer));
                             Squareroot2();
                             System.out.println("The squareroot of value " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 7 :
                             absoluteNumber1();
                             System.out.println("The absolute number of " + num1 + " is: " + decimals.format(answer));
                             absoluteNumber2();
                             System.out.println("The absolute number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 8 :
                             octalEquivalent1();
                             System.out.println("The octal equivalent of " + num1 + " is: " + octalEquivalent1());
                             octalEquivalent2();
                             System.out.println("The octal equivalent of " + num2 + " is: " + octalEquivalent2());
                             hexadecimalEquivalent1();
                             System.out.println("\nThe hexadecimal equivalent of " + num1 + " is: " + hexadecimalEquivalent1());
                             hexadecimalEquivalent2();
                             System.out.println("The hexadecimal equivalent of " + num2 + " is: " + hexadecimalEquivalent2());
                             break;
                        case 9 :
                             Round1();
                             System.out.println("The rounded number of " + num1 + " is: " + decimals.format(answer));
                             Round2();
                             System.out.println("The rounded number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 0 :
                             if (choice2 == 0) {
                                  System.exit(1);
                             break;
                   return choice2;
              public String anotherCalculation() throws IOException {
                   boolean inputCorrect = false;
                   while (inputCorrect == false) {
                             try {                              
                                  BufferedReader br3 = new BufferedReader (new InputStreamReader(System.in));
                                  System.out.print("\nWould you like to do another calculation? Y/N ");
                                  more = br3.readLine();
                                  String s1 = "y";
                                  String s2 = "Y";
                                  if (more.equals(s1) || more.equals(s2)) {
                                       inputCorrect = true;
                                       while (inputCorrect = true){
                                            inputNumber1();
                                            System.out.println("");
                                            calculatorChoice();
                                            System.out.println("");
                                            inputNumber2();
                                            System.out.println("");
                                            Calculator();
                                            System.out.println("");
                                            anotherCalculation();
                                            System.out.println("");
                                            inputCorrect = true;
                                  } else {
                                       System.out.println("\n" + nameSurname + " thank you for using this program, you have used this program for: " + decimals.format(programRuntime()) + " seconds");
                                       System.out.println("the program will now exit, Goodbye.");
                                       System.exit(0);
                             } catch (IOException ex){
                                  System.out.println("You did not enter a valid answer: " + "\""+ more + "\" is not in the list!!");
                                  inputCorrect = false;
              return more;
         public static void main(String[] args) throws IOException {
              Project p1 = new Project();
              p1.insertNameAndSurname();
              System.out.println("");
              p1.inputNumber1();
              System.out.println("");
              p1.calculatorChoice();
              System.out.println("");
              p1.inputNumber2();
              System.out.println("");
              p1.Calculator();
                   System.out.println("");
                   p1.anotherCalculation();
                   System.out.println("");
    {code}
    *Can you please run my code for yourself and have a look at how this program is constructed*
    *and give me ANY feedback on how I can better this code(program) or if I've done anything wrong from your point of view.*
    Your help will be much appreciated.
    Thanks in advance

    Smirre wrote:
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??You cannot restrict the user. It is a sad fact in programming that the worst bug always sits in front of the Computer.
    What you could do is checking the input string for numbers. If it contains numbers, just reprompt for the Name.
    AND you might want to ask yourself why the heck a calculator needs to know the users Name.

  • BIZTALK bts action mapping problem with Message Schemas for the Composite Operation

    Hi,
    I have a message schema made with the composite operation.
    now, I have re-deployed my biztalk project and in the send port for this Oracle composite message the SOAP action header hasn't updated the correct action.
    now I tried several verations for this soap action mapping and this is what I got:
    ><BtsActionMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    >  <Operation Name="Select" Action="http://Microsoft.LobServices.OracleDB/2007/03/CompositeOperation" />
    >  <Operation Name="SQLEXECUTE" Action="http://Microsoft.LobServices.OracleDB/2007/03/CompositeOperation" />
    > </BtsActionMapping>
    Now as you can see the Composite schema has 2 operations one is from an Oracle VIEW and the second one is an Oracle SQL querry.
    please if someone could assist me with this issue?
    Message Schemas for the Composite Operation
    Message Schemas for the Composite Operation

    For Composite Operations you don't use the Action Mapping Xml for both the SQL Server and Oracle bindings.
    The Action for Oracle Composite Operations is:
    http://Microsoft.LobServices.OracleDB/2007/03/CompositeOperation
    by itself.  No Xml or anything.

  • Help with Internet Settings for Blackberry Curve 8520 On Orange Pay-Monthly

    I need help with my internet settings I'm currently on Orange Pay-Monthly and have recently bought a second hand Blackberry Curve 8520 which is unlocked but used to be on 02! I don't have a clue on what to do or where to start all I know is in the top right hand corner where the signal bar is it says GPRS and WIFI ! I don't want WIFI as I don't have a wireless connection and would like to get the settings for my curve so I can browse the internet and go on Facebook etc and BBM!! I've clicked on the internet logo in the menu bar but it just say's hotspot browser.. but wont let me browse!! Some one please help me !! 

    Hey BaByPaW1990,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    You can get your APN settings from your network service provider, also make sure you have a BlackBerry data plan.  
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Need help with xml schema

    i have an xml file:
    <OrderInfo>
        <ItemID></ItemID>
        <ItemPrice></ItemPrice>
        <ItemID></ItemID>
        <ItemPrice></ItemPrice>
        <TotalItem></TotalItem>
        <TotalPrice></TotalPrice>
    </OrderInfo>i know ItemID and ItemPrice should be in an Item element, but I cannot change this format (other application use it).
    I would like to create a schema.
    I'm using the schema to validate the xml document that is being sent to my application.
    The ItemID and ItemPrice occurs in a sequence.
    Both ItemId and ItemPrice can be repeated unbounded (they are in fact a "group")
    TotalItem and TotalPrice occurs only once and at the end of the (ItemID, ItemPrice group)
    i would like a schema for this.
    <xs:element name="OrderInfo">
        <xs:complexType>
            <xs:group name="MyOrder">
                <xs:sequence>
                    <xs:element name="ItemID"  type="xs:positiveinteger"/>
                    <xs:element name="ItemPrice"  type="xs:decimal"/>
                </xs:sequence>
            </xs:group>
            <xs:element name="TotalPrice"  type="xs:decimal"/>
            <xs:element name="TotalItem"  type="xs:decimal"/>
        </xs:complexType>
    </xs:element>help?

    dvohra09 :
    thanx for your help. it seem that i cannot decalre an annonymous "group", which is ok, since i rather have a named group...which i can refer to later
    I have gotten the schema to work (below is the result..so other can use as an eample):
    xml file:
    <OrderInfo>
        <ItemID>1234</ItemID>
        <ItemDescription>Music CD</ItemDescription>
        <ItemPrice>10.99</ItemPrice>
        <ItemID>5678</ItemID>
        <ItemDescription>Star Wars 1 DVD</ItemDescription>
        <ItemPrice>19.99</ItemPrice>
        <TotalItem>2</TotalItem>
        <TotalPrice>30.98</TotalPrice>
    </OrderInfo>schema (xsd) file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xs:element name="OrderInfo" type="orderType">
    <xs:complexType name="orderType>
        <xs:sequence>
            <xsd:group   ref="ItemInfo" minOccurs="1" maxOccurs="unbounded"/>
            <xsd:group   ref="saleInfo" minOccurs="1" maxOccurs="1"/>
        </xs:sequence>
    </xs:complexType>
    <xsd:group name="itemInfo" id="itemInfo">
        <xsd:sequence>
            <xsd:element name="ItemID" type="xsd:integer"/>
            <xsd:element name="ItemDescription" type="xsd:string"/>
            <xsd:element name="ItemPrice" type="xsd:decimal"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="saleInfo" id="saleInfo">
        <xsd:sequence>
            <xsd:element name="TotalItem" type="xsd:integer"/>
            <xsd:element name="TotalPrice" type="xsd:decimal"/>
        </xsd:sequence>
    </xsd:group>
    </xsd:schema>i was haing trouble referencing the group, but found out that the group requires a "name" attribute. What i still don't understand is what the group "id" is used for then?

  • Help With Multiple Schemas In Multiple Environments

    Dear Oracle Forum:
    We have a bit of controversy around the office and I was hoping we could get some expert input to get us on the right track.
    For the purposes of this discussion, we have two machines, development and production. Currently, on each machine, we have one database with multiple schemas, say, one for sales data and another for inventory. The sales data has maybe 200 tables and the inventory has another 50. About 12 times a year, once a month, we have a release and move code from dev to prod. The database is accessed by several hundred Pro*C and Pro*Cobol programs for online transaction processing.
    The problem comes up when we need to have multiple development environments. If I need to work on something for May that requires the customer address field to be 50 characters and somebody else is working on something for July that requires the customer address field to be 100 characters, we can’t both function in the same schema. We have a method of configuring running programs to attach to a given schema/database. Currently, everything connects to the same place. We were told that we should not have the programs running as the owners of the schemas for some reason so we set up additional users. The SALES schema is accessed with the connect string: SALES_USER/[email protected]. (I don’t know where we got dot world from but that is not the current discussion.)
    One of the guys said that we should have 12 copies of the database running, which is kind of painful to think about in my opinion. Oracle is not a lightweight product and there are any number of ancillary processes that would have to be duplicated 12 times.
    My recommendation is that we have 12 schemas each for sales and inventory with 12 users each to access them. We would have something like JAN_SALES_USER, FEB_SALES_USER, etc. Each user would have synonyms set up for each of the tables it is interested in. When my program connects as MAY_SALES_USER, I could select from the customer table and I would get my 50 character address field. When the other user connects as JUL_SALES_USER, he would get his 100 character address field. Both of us would not know anything different.
    Another idea that came up is to have a logon trigger that would set the current schema for that user to the appropriate base schema. When JUL_SALES_USER logs in, the current schema would be set to JUL_SALES, etc. This would simplify things by allowing us to avoid having something like 2400 synonyms to maintain (which could be automated without too much difficulty) but it would complicate things by requiring a trigger.
    There are probably other ways to go about this we have not considered as yet. Any input you can give will be appreciated.
    Regards,
    /Bob Bryan

    Hans Forbrich wrote:
    I'd rather see you with 12 schemas than with 12 databases. Unless you have lots of CPUs to spare ... and lots of cash to pay for those extra CPU licenses.
    Then again, I'd take it one step further and ask to investigate the base design. There should be little reason to change the schema based on time. Indeed, from what little I know of your app, I'd have to ask whether adding a 'date' column and appropriate views or properly coded SQL statements might simplify things. Interesting. If we were to have one big Customer table with views for each month, how would we handle the case where the May people have to see 50 character address and July have to see a 100 character address field. I guess we could have MAY_ADDRESS VARCHAR2(50) and JULY_ADDRESS VARCHAR2(100) and take care to make sure that people connecting as May can only see the May columns, etc. This is simpler than multiple schemas?
    I may have overly simplified things in my effort to get something down that would not require too much explanation. The big thing is that multiple people are doing development and they have to be independent of each other. If we were to drop a column for July, the May people will have trouble compiling if we don’t keep things separate. It is not a case of making the data available. The data in development is something we cook up to allow us to test. The other part is the code we compile now will be released to production one of these times. In production, there is only a need for one database.
    We are moving from another database product where multiple databases are effectively different sets of files. We have lots of disk space so multiple databases were no problem. Oracle is such a powerful product; I can’t believe there is not some way to set up something similar.

Maybe you are looking for