DC + Floor - input

Hello everybody,
soon will move to new location its a 30-story building with 6 switches on each floor, datacenter finalized on 15th floor.
2960-x series access switches for floors is gonna be considered, all 6 switches will be stacked.
N7K to be core X 2
N5K and 2K - Servers
4500-x to be distribution sw X 2
5580 DC firewall X 2
Palo Alto considered as Internet Edge Firewall - have more application control then cisco asa-cx
redundant WAN Routers
redundant VPN Routers
redundant Load Balancers
redundant Proxy devices
redundant SSL VPN boxes - options are Juniper or F5
Total 10 cabinets for Systems and Application
Total 2 cabinets for Storage
What are the best practises to consider/install for
number of fiber optic cable to be pulled till DC from each floor
to avoid messing with cables what is ideal for patching all floors fibers
how many network racks to consider for above boq all devices are redundant
recomended to install top of rack switch for systems and application racks
placement of N7K , N5K and redundant devices in same or different rack
appreciate feedback on
network cabinet brands
copper, fiber type/brand to consider
other passive units i.e patch pannel copper/fiber
thanks to all experts up-hand
cheers
Samuel

Hi guys, thanks for your replies. Sorry for my late reply as i was out a couple of days.
Thank Gige, as i mentioned i'm not looking to implement a closed loop control for my application as i only need to drive the motor in a controlled fashion. The objective is to run the motor at full mode, turn CW and CCW and that's it. The only thing is to control the ramp up current or voltage across the motor during the initial start-up.
Hi Analogkid, it uses a Mabuchi RS555 motor http://www.mabuchi-motor.co.jp/cgi-bin/catalog/e_catalog.cgi?CAT_ID=rs_555pcvc with an quadrature encoder attached to the shaft. It works in a servo motor fashion but it's not exactly a servo motor itself. My application is just to find a driver so that i can control the voltage and current to the motor during startup.
Thanks Brian, i'll check out Minarik. But 1 thing, when they say speed control for motors are they refering to current control? Because if i remembered correctly the speed of the motor is proportional to the current correct? If that's the case, if i want to prevent from frying my motor by applying the line voltage (48V) directly across the motor i should be looking for speed control drivers?
Message Edited by ATMA on 08-21-2007 11:11 PM

Similar Messages

  • Help using multiple if else statements & manual dynamic xml data input to trigger a goto and play.

    Below is code that has a timer countdown that reads off of the computer. Below in bold is code to read "if it reaches the date, go to and play frame (2).
    timer.removeEventListener(TimerEvent.TIMER, updateTime);
      timer.stop();
      gotoAndPlay(2);
    Below is code that is manual input-   I had set up a dynamic txt field in flash named it : raffle_tix_remain When loaded on to the host I can manulally update the xml code and the change will take effect.
    raffle_tix_remain.text = root.loaderInfo.parameters.raffle_tix_remain;
    My question:  Since the raffle_tix_remain is a manual input from a user to xml  Is there a way to tell flash once it refreshes and "raffle_ tix_ remain"  goes to (0) zero gotoAndPlay(2); and let it play like a "sold out" sign
    i guess that would be a  if else statement. 
    Code Below-----------------
    stop();
    var year:Number = 2011;
    var month:Number = 12;
    var day:Number = 30;
    var finalDate:Date = new Date(year,month-1,day);
    var timer:Timer = new Timer(100);
    timer.addEventListener(TimerEvent.TIMER, updateTime);
    timer.start();
    function updateTime(e:TimerEvent):void{
              var now:Date = new Date();
              var remainTime:Number = finalDate.getTime() - now.getTime();
              if (remainTime >0) {
                        var secs:Number = Math.floor(remainTime/1000);
                        var mins:Number = Math.floor(secs/60);
                        var hours:Number = Math.floor(mins/60);
                        var days:Number = Math.floor(hours/24);
                        var secsText:String = (secs%60).toString();
                        var minsText:String = (mins%60).toString();
                        var hoursText:String = (hours%24).toString();
                        var daysText:String = days.toString();
                        if (secsText.length < 2) {secsText = "0" + secsText;}
                        if (minsText.length < 2) {minsText = "0" + minsText;}
                        if (hoursText.length < 2) {hoursText = "0" + hoursText;}
                        if (daysText.length < 2) {daysText = "0" + daysText;}
                        day_txt.text = daysText;
                        hour_txt.text = hoursText;
                        min_txt.text = minsText;
                        sec_txt.text = secsText;
              else {
                        timer.removeEventListener(TimerEvent.TIMER, updateTime);
                        timer.stop();
                        gotoAndPlay(2);

    stop();
    var year:Number = 2011;
    var month:Number = 12;
    var day:Number = 30;
    var finalDate:Date = new Date(year,month-1,day);
      var now:Date = new Date();
    var timer:Timer = new Timer(1000);
    timer.addEventListener(TimerEvent.TIMER, updateTime);
    timer.start();
    function updateTime(e:TimerEvent):void{
             var remainTime:Number = finalDate.getTime() - now.getTime()-e.currentCount;
              if (remainTime >0 || raffle_tix_remain==0) {
                        var secs:Number = Math.floor(remainTime/1000);
                        var mins:Number = Math.floor(secs/60);
                        var hours:Number = Math.floor(mins/60);
                        var days:Number = Math.floor(hours/24);
                        var secsText:String = (secs%60).toString();
                        var minsText:String = (mins%60).toString();
                        var hoursText:String = (hours%24).toString();
                        var daysText:String = days.toString();
                        if (secsText.length < 2) {secsText = "0" + secsText;}
                        if (minsText.length < 2) {minsText = "0" + minsText;}
                        if (hoursText.length < 2) {hoursText = "0" + hoursText;}
                        if (daysText.length < 2) {daysText = "0" + daysText;}
                        day_txt.text = daysText;
                        hour_txt.text = hoursText;
                        min_txt.text = minsText;
                        sec_txt.text = secsText;
              else {
                        timer.removeEventListener(TimerEvent.TIMER, updateTime);
                        timer.stop();
                        gotoAndPlay(2);

  • Floor plan manager in WD ABAP

    Hi All,
    Can you please tell me how to use Floor plan manager in WD ABAP.
    Thanks in advance.
    Sonia

    Hi Neha Agarwal,
    I have a webdynpro leave request application which is in Floor Plan Manager in Java webdynpro.
    My leave request java WD application has 4 different functional steps like view-> edit->review-> complete.
    User completes the steps one by one...and for that there are 4 screens--and user moves from one screen to another after completing each step.
    Now I made the changes in the edit view which has the duration field which needs to be filled with half of the work schedule allocated to the employee per day if they chose half day leave in the application.
    As per the requirement duration field populated the data(half of the work schedule allocated to the employee per day ) but when I hit review button,navigation goes to the next screen duration field has the value of full work schedule (say 8 hours)which suppose to be half of the workschedule .(say 4 hours).
    any clues ?what will be the root cause of this problem..............
    Higher points will be rewarded for the useful inputs.............
    Thanks in Advance,
    Dharani

  • Timer before return to the input page

    Summary:
    I have a working page. User inputs their details. Clicks on Submit. Writes to the database table. Goes off to this acknowledgement page.
    I want to pause the page (the acknowledgement page) for awhile before returning to the form again.
    Question:
    At the moment, after the Submit, the acknowledge page display and the session ends there. I need to redirect it back to the user input form. Please advice. How will I achieve this, What code to include? Where to include the piece of code? Thank you.
    Source Code:
    <?php require_once('Connections/dbAttendance.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) {
      $insertSQL = sprintf("INSERT INTO attendlist (Windowsid, title, firstname, surname, extension, mobile, jobrole, course, cpg, mgrname, room) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['textfield'], "text"),
                           GetSQLValueString($_POST['select'], "text"),
                           GetSQLValueString($_POST['textfield2'], "text"),
                           GetSQLValueString($_POST['textfield3'], "text"),
                           GetSQLValueString($_POST['textfield4'], "text"),
                           GetSQLValueString($_POST['textfield5'], "text"),
                           GetSQLValueString($_POST['select5'], "text"),
                           GetSQLValueString($_POST['select2'], "text"),
                           GetSQLValueString($_POST['select4'], "text"),
                           GetSQLValueString($_POST['textfield7'], "text"),
                           GetSQLValueString($_POST['select3'], "text"));
      mysql_select_db($database_dbAttendance, $dbAttendance);
      $Result1 = mysql_query($insertSQL, $dbAttendance) or die(mysql_error());
      $insertGoTo = "Thankyou.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_dbAttendance, $dbAttendance);
    $query_rsAttendance = "SELECT * FROM attendlist";
    $rsAttendance = mysql_query($query_rsAttendance, $dbAttendance) or die(mysql_error());
    $row_rsAttendance = mysql_fetch_assoc($rsAttendance);
    $totalRows_rsAttendance = mysql_num_rows($rsAttendance);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Delegate Register</title>
    <link href="Registerpage.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
    </head>
    <?php
    $date = date(“format”, $timestamp);
    ?>
    <body>
    <div class="container">
      <div class="header"><img src="Cerner At Imperial2.jpg" width="960" height="150" alt="" /><!-- end .header --></div>
      <div class="content">
        <h3>Register: <?php echo "Date  - ".date("d/m/Y - H:ia")?></h3>
        <form action="<?php echo $editFormAction; ?>" method="post" name="form">
          <table width="780" border="0">
            <tr>
              <td><div align="right">User ID *</div></td>
              <td><span id="sprytextfield1">
                <input name="textfield" type="text" id="textfield" tabindex="1" size="18" maxlength="10" />
              <span class="textfieldRequiredMsg">A value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Title *</div></td>
              <td><span id="spryselect1">
                <select name="select" id="select" tabindex="2">
                  <option value="0">Select</option>
                  <option value="1">Ms</option>
                  <option value="2">Mrs</option>
                  <option value="3">Mdm</option>
                  <option value="4">Dr</option>
                  <option value="5">Mr</option>
                  <option value="6">Prof</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">First name*</div></td>
              <td><span id="sprytextfield2">
                <input name="textfield2" type="text" id="textfield2" tabindex="3" size="30" maxlength="30" />
              <span class="textfieldRequiredMsg">A value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Surname *</div></td>
              <td><span id="sprytextfield3">
                <input name="textfield3" type="text" id="textfield3" tabindex="4" size="30" maxlength="30" />
              <span class="textfieldRequiredMsg">A value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Contact / Bleep *</div></td>
              <td><span id="sprytextfield4">
                <input name="textfield4" type="text" id="textfield4" tabindex="5" size="30" maxlength="30" />
              <span class="textfieldRequiredMsg">A value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Mobile no: (optional)</div></td>
              <td><input name="textfield5" type="text" id="textfield5" tabindex="6" size="20" maxlength="20" /></td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Job Role *</div></td>
              <td><span id="spryselect5">
                <select name="select5" id="select5" tabindex="7">
                  <option value="0">Select </option>
                  <option value="1">Doctor</option>
                  <option value="2">Nurse IP</option>
                  <option value="3">Nurse OP</option>
                  <option value="4">Midwife</option>
                  <option value="5">Booking Clerk</option>
                  <option value="6">Medical Secretary</option>
                  <option value="7">OP Receptionist</option>
                  <option value="9">CNS/NP</option>
                  <option value="10">Tester</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Manager's Name *</div></td>
              <td><span id="sprytextfield5">
                <input name="textfield7" type="text" id="textfield7" tabindex="8" size="30" maxlength="30" />
              <span class="textfieldRequiredMsg">A value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Course *</div></td>
              <td><span id="spryselect2">
                <select name="select2" id="select2" tabindex="9">
                  <option value="0">Select</option>
                  <option value="1">Demo</option>
                  <option value="2">Doctors</option>
                  <option value="9">CNS/NP</option>
                  <option value="3">Nurse IP</option>
                  <option value="4">Nurse OP</option>
                  <option value="5">Midwife</option>
                  <option value="6">Booking Clerk</option>
                  <option value="7">Medical Secretary</option>
                  <option value="8">OP Receptionist</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Location *</div></td>
              <td><span id="spryselect3">
                <select name="select3" id="select3" tabindex="10">
                  <option value="0">Select </option>
                  <option value="1">CHX 12 Floor Rm 1</option>
                  <option value="2">CHX 12 Floor Rm 2</option>
                  <option value="3">CHX 10 West </option>
                  <option value="4">HH N207 </option>
                  <option value="5">HH W12 Conference</option>
                  <option value="6">SMH Rm a</option>
                  <option value="7">SMH Rm b</option>
                  <option value="8">SMH Ming Wing Rm 5</option>
                  <option value="9">SMH Ming Wing Rm 3</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">CPG *</div></td>
              <td><span id="spryselect4">
                <select name="select4" id="select4" tabindex="11">
                  <option value="0">Select </option>
                  <option value="1">CPG 1 - Medicine</option>
                  <option value="2">CPG 2 - Surgery and Cancer</option>
                  <option value="3">CPG 3 - Specialist Services </option>
                  <option value="4">CPG 4 - Circulatory Services and Renal Medicine</option>
                  <option value="5">CPG 5 - Womens and Children</option>
                  <option value="6">CPG 6 - Clinical and Investigative Sciences</option>
                  <option value="7">CPG 7 - Private Patients</option>
                  <option value="8">Others</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td><input name="button" type="submit" id="button" value="Submit" /></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="center">*Mandatory fields </div></td>
              <td> </td>
              <td> </td>
            </tr>
          </table>
          <input type="hidden" name="MM_insert" value="form" />
        </form>
    <!-- end .content --></div>
      <div class="footer">
    <p align="center">
        <a href="http://validator.w3.org/check?uri=referer"><img
          src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
          <p align="center"> Cerner@Imperial ICT Training Team </p>
    </p>
      <!-- end .footer --></div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {validateOn:["change", "blur"]});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur", "change"]});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["blur", "change"]});
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "none", {validateOn:["blur", "change"]});
    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {validateOn:["change", "blur"]});
    var spryselect3 = new Spry.Widget.ValidationSelect("spryselect3", {validateOn:["change", "blur"]});
    var spryselect4 = new Spry.Widget.ValidationSelect("spryselect4", {validateOn:["change", "blur"]});
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur", "change"]});
    var spryselect5 = new Spry.Widget.ValidationSelect("spryselect5", {validateOn:["blur", "change"]});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsAttendance);
    ?>

    Eugene
    The forums are displayed in an iframe. Therefore, if you wanted to simply refresh the forums to the exact page that you have navigated to, you should right-click on the content area of SDN (the forums page) and choose the refresh option. This will refresh this window and should keep your place marker. If you refresh the URL in the browser window then this will refresh the entire SDN page and will take you to the entry point of the forums.
    I hope this helps
    D

  • Input Value long enough for date format ,Error in executing parallel query

    Hi,
    My Table: ANML( ID, STATUS,B_DATE,B_MONTH,B_YEAR, DEATH_DATE)
    status 1 for alive and 2 for dead.
    i wrote a view to get age.
    as
    create or relace view view1 as
    select top."ID",top."STATUS",top."DOB",top."DEATH_DATE",top."ANML_AGE",top."DAYSDIFF",
    CASE
    WHEN anml_age < 1
    THEN 'D'
    ELSE 'M'
    END age_unit,
    CASE
    WHEN anml_age < 1
    THEN TO_CHAR (daysdiff || ' Day(s)')
    WHEN anml_age < 12
    THEN TO_CHAR (anml_age || ' Month(s)')
    WHEN MOD (anml_age, 12) = 0
    THEN TO_CHAR (ROUND (anml_age / 12, 0) || ' Year(s) '
    ELSE TO_CHAR ( ROUND (anml_age / 12, 0)
    || ' Year(s) '
    || MOD (anml_age, 12)
    || ' Month(s)'
    END age_string
    from
    (SELECT a.*,
    CASE WHEN status IN ( 1)
    THEN FLOOR(MONTHS_BETWEEN(TRUNC(SYSDATE),dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(MONTHS_BETWEEN(death_date,dob))
    END anml_age,
    CASE WHEN status IN (1)
    THEN FLOOR(TRUNC(SYSDATE)-TRUNC(dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(TRUNC(death_date) - TRUNC(dob))
    END daysdiff
    from (
    SELECTanml.id, status,
    TO_DATE ( DECODE (b_date,
    NULL, 1,
    b_date
    || '-'
    || DECODE (b_month,
    NULL, 1,
    b_month
    || '-'
    || b_year,
    'dd-mm-yyyy'
    ) DOB,
    death_date
    FROM anml
    WHERE b_year IS NOT NULL
    ) a) top
    when i tried to fetch all values from view its working fine.
    But when i tried to fetch values based on condition like as follows,
    select * from view1 where anml_age > 20 and anml_age<30
    I am getting error like:
    Input Value long enough for date format and Error in executing parallel query
    Please tell me wht is wrong.

    Here is your formatted code
    create or relace view view1 as
    select top."ID",top."STATUS",top."DOB",top."DEATH_DATE",top."ANML_AGE",top."DAYSDIFF",
    CASE
    WHEN anml_age < 1
    THEN 'D'
    ELSE 'M'
    END age_unit,
    CASE
    WHEN anml_age < 1
    THEN TO_CHAR (daysdiff || ' Day(s)')
    WHEN anml_age < 12
    THEN TO_CHAR (anml_age || ' Month(s)')
    WHEN MOD (anml_age, 12) = 0
    THEN TO_CHAR (ROUND (anml_age / 12, 0) || ' Year(s) '
    ELSE TO_CHAR ( ROUND (anml_age / 12, 0)
    || ' Year(s) '
    || MOD (anml_age, 12)
    || ' Month(s)'
    END age_string
    from
    (SELECT a.*,
    CASE WHEN status IN ( 1)
    THEN FLOOR(MONTHS_BETWEEN(TRUNC(SYSDATE),dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(MONTHS_BETWEEN(death_date,dob))
    END anml_age,
    CASE WHEN status IN (1)
    THEN FLOOR(TRUNC(SYSDATE)-TRUNC(dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(TRUNC(death_date) - TRUNC(dob))
    END daysdiff
    from (
    SELECTanml.id, status,
    TO_DATE ( DECODE (b_date,
    NULL, 1,
    b_date
    || '-'
    || DECODE (b_month,
    NULL, 1,
    b_month
    || '-'
    || b_year,
    'dd-mm-yyyy'
    ) DOB,
    death_date
    FROM anml
    WHERE b_year IS NOT NULL
    ) a) top

  • Script to map default printer based on user input

    Hello everyone,
    Complete scripting noob here but I managed to cludge together a vb script (from various sources) that will remove all current printers and then add printers based on group membership.  It can also add a default printer and if they have a local printer
    make that default.  All that works just fine, my problem is that we have very large floors with many printer clusters.  Group membership for printers is by floor and I do not have the option to further define this (Also GPO is not an option as getting
    our network group to deploy anything takes years so we need to go this route).
    What I would need is something graphical (like an HTA) that when run it prompts the user to input which floor they are on, then it asks them which of the print clusters (on the floor they specified) is closest to them.  It would then install all the
    printers on the floor and make the default printer one from the print cluster they indicated (unless they have a local printer).  I hope this make sense. 
    I think I have most of the pieces laid out but I don't know how to get the user prompts/GUI and then perform the correct mappings.  Thank you in advanced!

    I agree with Bill. Using the correct method will be best.  You network people will be more than happy to tell you what is set up and how to use it.  You just need to ask your manager to get you in contact with them for a little parley.
    If you are really insisting on a script then look in the repository.  There are dozens of scripts that you can use and modify.
    You should try to see this as a challenge to bring modern technology to your company.  Approaching this kind of thing as a global IT challenge will usually get the attention of IT and they will usually take it seriously.  You will likely learn
    many things about the IT resources your company has.
    ¯\_(ツ)_/¯
    I'm sorry if I wasn't clear but I'm not asking anyone to write the script for me, as I said I have most of the parts working.  My issue is getting the user input and getting the script to take the action I need it to (I can map the printers based on
    AD group membership I really just need to prompt the user to select which one they want as default).  My thoughts were to wrap a GUI around it but it's not needed.
    I agree that GPO is the way to go but in State Government it takes an act of Congress to get anything done in the mean time I'm trying to get things done with the means available to me.

  • Generating Input XML

    Hi,
    I have a schema and a xsl file.Is there any way to generate the input xml file using the same?
    find my sample xsl file below :
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!-- � 2004-2005 Pantero Corporation. All rights reserved. -->
    <!-- Exporting Pantero maps to XSLT file:                  -->
    <!-- Source Type: com.cingular.ngLimitedXmlSchemaDataSource.Contact -->
    <!-- Target Type: com.cingular.cingularCommon.Contact -->
    <xsl:stylesheet version="1.1"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" encoding="UTF-8"/>
         <xsl:template match="/Contact">
                   <xsl:element name="Contact" namespace="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd">
                   <xsl:element name="BusinessPhone" namespace="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd">
                             <xsl:value-of select="./businessPhone"/>
                   </xsl:element>
                   <xsl:element name="City" namespace="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd">
                             <xsl:value-of select="./city"/>
                   </xsl:element>
                   <xsl:element name="ContactType" namespace="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd">
                             <xsl:value-of select="./contactType"/>
                   </xsl:element>
                   <xsl:element name="EntityName" namespace="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd">
                             <xsl:value-of select="./name"/>
                   </xsl:element>
                   <xsl:element name="StateAbbreviation" namespace="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd">
                             <xsl:value-of select="./state"/>
                   </xsl:element>
              <xsl:comment> concatWithDelimiter(AddressLineOne, AddressLineTwo, ", ") TO StreetAddress1 </xsl:comment>
                   <xsl:element name="TollFreePhone" namespace="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd">
                             <xsl:value-of select="./tollFreePhone"/>
                   </xsl:element>
                   <xsl:element name="Zip" namespace="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd">
                             <xsl:value-of select="./zip"/>
                   </xsl:element>
                   </xsl:element>
         </xsl:template>
    </xsl:stylesheet>here is the xsd :
    i am using CONTACT in this xsd....
    <?xml version="1.0" encoding="utf-8"?>
    <!--  CONFIDENTIAL LICENSED MATERIAL
          � 2004-2005 Pantero Corporation. All rights reserved.     -->
    <!-- Exporter Configuration Options:
         Include all the packages in the selected schema.
         Complex Types Only - false               
         Include Required Rules - true               
         Include Reverse Relationships - false     
         Export with Weak Typing - false-->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd"
    targetNamespace="http://www.CingularCommonXmlSchema.com/CingularCommonXmlSchema.xsd">
    <!-- Type name: com.cingular.cingularCommonXmlSchema.Battery-->
       <xs:element name="Battery" type="tns:Battery"/>
       <xs:complexType name="Battery">
          <xs:sequence>
             <xs:element name="HoursAtFullCapacity" minOccurs="0" type="xs:int"/>
             <xs:element name="InstallationDate" minOccurs="0" type="xs:date"/>
             <xs:element name="Manufacturer" minOccurs="0" type="xs:string"/>
             <xs:element name="Model" minOccurs="0" type="xs:string"/>
             <xs:element name="NumberOfBatteries" minOccurs="0" type="xs:int"/>
             <xs:element name="NumberOfCells" minOccurs="0" type="xs:int"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.Contact-->
       <xs:element name="Contact" type="tns:Contact"/>
       <xs:complexType name="Contact">
          <xs:sequence>
             <xs:element name="BusinessPhone" minOccurs="0" type="xs:string"/>
             <xs:element name="City" minOccurs="0" type="xs:string"/>
             <xs:element name="ContactType" minOccurs="0" type="xs:string"/>
             <xs:element name="EntityName" minOccurs="0" type="xs:string"/>
             <xs:element name="StateAbbreviation" minOccurs="0" type="xs:string"/>
             <xs:element name="StreetAddress1" minOccurs="0" type="xs:string"/>
             <xs:element name="TollFreePhone" minOccurs="0" type="xs:string"/>
             <xs:element name="Zip" minOccurs="0" type="xs:string"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.Generator-->
       <xs:element name="Generator" type="tns:Generator"/>
       <xs:complexType name="Generator">
          <xs:sequence>
             <xs:element name="Manufacturer" minOccurs="0" type="xs:string"/>
             <xs:element name="Rating" minOccurs="0" type="xs:string"/>
             <xs:element name="Receptacle" minOccurs="0" type="xs:string"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.GetContactByKeyRequest-->
       <xs:element name="GetContactByKeyRequest" type="tns:GetContactByKeyRequest"/>
       <xs:complexType name="GetContactByKeyRequest">
          <xs:sequence>
             <xs:element name="contactId" minOccurs="0" type="xs:string"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.GetContactByKeyResponse-->
       <xs:element name="GetContactByKeyResponse" type="tns:GetContactByKeyResponse"/>
       <xs:complexType name="GetContactByKeyResponse">
          <xs:sequence>
             <xs:element name="Contact" type="tns:Contact" minOccurs="0"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.Location-->
       <xs:element name="Location" type="tns:Location"/>
       <xs:complexType name="Location">
          <xs:sequence>
             <xs:element name="AlarmResponsibility" minOccurs="0" type="xs:string"/>
             <xs:element name="CellSiteId" minOccurs="0" type="xs:int"/>
             <xs:element name="City" minOccurs="0" type="xs:string"/>
             <xs:element name="CLLI" minOccurs="0" type="xs:string"/>
             <xs:element name="ConstructionDate" minOccurs="0" type="xs:date"/>
             <xs:element name="Country" minOccurs="0" type="xs:string"/>
             <xs:element name="County" minOccurs="0" type="xs:string"/>
             <xs:element name="CTSEntryId" minOccurs="0" type="xs:string"/>
             <xs:element name="CTSLocationId" minOccurs="0" type="xs:string"/>
             <xs:element name="Directions" minOccurs="0" type="xs:string"/>
             <xs:element name="FCCASRNumber" minOccurs="0" type="xs:string"/>
             <xs:element name="FinancialLocation" minOccurs="0" type="xs:string"/>
             <xs:element name="Floor" minOccurs="0" type="xs:string"/>
             <xs:element name="Height" minOccurs="0" type="xs:int"/>
             <xs:element name="IsActive" minOccurs="0" type="xs:int"/>
             <xs:element name="IsCingularOwned" minOccurs="0" type="xs:int"/>
             <xs:element name="IsLighted" minOccurs="0" type="xs:int"/>
             <xs:element name="Latitude" minOccurs="0" type="xs:double"/>
             <xs:element name="LocationId" minOccurs="0" type="xs:int"/>
             <xs:element name="LocationType" minOccurs="0" type="xs:string"/>
             <xs:element name="Longitude" minOccurs="0" type="xs:double"/>
             <xs:element name="MeanHeightAboveSeaLevel" minOccurs="0" type="xs:int"/>
             <xs:element name="MorphologyType" minOccurs="0" type="xs:string"/>
             <xs:element name="PhoneNumber" minOccurs="0" type="xs:string"/>
             <xs:element name="Room" minOccurs="0" type="xs:string"/>
             <xs:element name="SiteAccessDescription" minOccurs="0" type="xs:string"/>
             <xs:element name="StateAbbreviation" minOccurs="0" type="xs:string"/>
             <xs:element name="StreetAddress1" minOccurs="0" type="xs:string"/>
             <xs:element name="StreetAddress2" minOccurs="0" type="xs:string"/>
             <xs:element name="SubleaseRights" minOccurs="0" type="xs:int"/>
             <xs:element name="UsId" minOccurs="0" type="xs:string"/>
             <xs:element name="XNGAltSiteId" minOccurs="0" type="xs:string"/>
             <xs:element name="Zip" minOccurs="0" type="xs:string"/>
             <xs:element name="ZipPLUS4" minOccurs="0" type="xs:string"/>
             <xs:element name="Contact" type="tns:Contact" minOccurs="0" maxOccurs="unbounded"/>
             <xs:element name="Market" type="tns:Market" minOccurs="0"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.Market-->
       <xs:element name="Market" type="tns:Market"/>
       <xs:complexType name="Market">
          <xs:sequence>
             <xs:element name="Market" minOccurs="0" type="xs:string"/>
             <xs:element name="MarketCluster" minOccurs="0" type="xs:string"/>
             <xs:element name="Region" minOccurs="0" type="xs:string"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.Project-->
       <xs:element name="Project" type="tns:Project"/>
       <xs:complexType name="Project">
          <xs:sequence>
             <xs:element name="M145ActualDate" minOccurs="0" type="xs:date"/>
             <xs:element name="M145ForecastDate" minOccurs="0" type="xs:date"/>
             <xs:element name="M150ActualDate" minOccurs="0" type="xs:date"/>
             <xs:element name="M150ForecastDate" minOccurs="0" type="xs:date"/>
             <xs:element name="M80ActualDate" minOccurs="0" type="xs:date"/>
             <xs:element name="M80ForecastDate" minOccurs="0" type="xs:date"/>
             <xs:element name="ProjectNumber" minOccurs="0" type="xs:string"/>
             <xs:element name="SearchringName" minOccurs="0" type="xs:string"/>
             <xs:element name="Location" type="tns:Location" minOccurs="0"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.RBS-->
       <xs:element name="RBS" type="tns:RBS"/>
       <xs:complexType name="RBS">
          <xs:sequence>
             <xs:element name="AffectedManagedObject" minOccurs="0" type="xs:string"/>
             <xs:element name="CTSSiteId" minOccurs="0" type="xs:string"/>
             <xs:element name="BaseStationType" minOccurs="0" type="xs:string"/>
             <xs:element name="BeastBSCName" minOccurs="0" type="xs:string"/>
             <xs:element name="BeastCellId" minOccurs="0" type="xs:string"/>
             <xs:element name="CellNetwork" minOccurs="0" type="xs:string"/>
             <xs:element name="CLLI3" minOccurs="0" type="xs:string"/>
             <xs:element name="CTSCellId" minOccurs="0" type="xs:string"/>
             <xs:element name="CTSSwitchName" minOccurs="0" type="xs:string"/>
             <xs:element name="DisasterRecoveryType" minOccurs="0" type="xs:string"/>
             <xs:element name="EquipmentType" minOccurs="0" type="xs:string"/>
             <xs:element name="Frequency" minOccurs="0" type="xs:string"/>
             <xs:element name="IntegrationActualCompletionDate" minOccurs="0" type="xs:date"/>
             <xs:element name="IntegrationDirectionType" minOccurs="0" type="xs:string"/>
             <xs:element name="IntegrationPlannedCompletionDate" minOccurs="0" type="xs:date"/>
             <xs:element name="IntegrationStartDate" minOccurs="0" type="xs:date"/>
             <xs:element name="IsActive" minOccurs="0" type="xs:int"/>
             <xs:element name="Name" minOccurs="0" type="xs:string"/>
             <xs:element name="OffAirDate" minOccurs="0" type="xs:date"/>
             <xs:element name="OnAirPublicDate" minOccurs="0" type="xs:date"/>
             <xs:element name="OPSDistrict" minOccurs="0" type="xs:string"/>
             <xs:element name="OPSZone" minOccurs="0" type="xs:string"/>
             <xs:element name="PromisSiteId" minOccurs="0" type="xs:string"/>
             <xs:element name="RBSId" minOccurs="0" type="xs:int"/>
             <xs:element name="RFDistrict" minOccurs="0" type="xs:string"/>
             <xs:element name="SiteType" minOccurs="0" type="xs:string"/>
             <xs:element name="TechnologyDefinitionType" minOccurs="0" type="xs:string"/>
             <xs:element name="TechnologyType" minOccurs="0" type="xs:string"/>
             <xs:element name="TeleserviceType" minOccurs="0" type="xs:string"/>
             <xs:element name="UsId" minOccurs="0" type="xs:string"/>
             <xs:element name="Vendor" minOccurs="0" type="xs:string"/>
             <xs:element name="Location" type="tns:Location" minOccurs="0"/>
             <xs:element name="Market" type="tns:Market" minOccurs="0"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.Sector-->
       <xs:element name="Sector" type="tns:Sector"/>
       <xs:complexType name="Sector">
          <xs:sequence>
             <xs:element name="AntennaAverageCellRadius" minOccurs="0" type="xs:double"/>
             <xs:element name="AntennaBeamWidth" minOccurs="0" type="xs:double"/>
             <xs:element name="AntennaBearing" minOccurs="0" type="xs:double"/>
             <xs:element name="AntennaEffectiveRadiatedPower" minOccurs="0" type="xs:double"/>
             <xs:element name="AntennaEffectiveRadiatedPowerUOM" minOccurs="0" type="xs:string"/>
             <xs:element name="AntennaForwardPower" minOccurs="0" type="xs:double"/>
             <xs:element name="AntennaRadiationCenter" minOccurs="0" type="xs:double"/>
             <xs:element name="AntennaTiltDegrees" minOccurs="0" type="xs:int"/>
             <xs:element name="AntennaTiltType" minOccurs="0" type="xs:string"/>
             <xs:element name="AntennaType" minOccurs="0" type="xs:string"/>
             <xs:element name="CellId" minOccurs="0" type="xs:string"/>
             <xs:element name="HardSector" minOccurs="0" type="xs:string"/>
             <xs:element name="IsActive" minOccurs="0" type="xs:int"/>
             <xs:element name="LocationAreaCode" minOccurs="0" type="xs:string"/>
             <xs:element name="OnAirDate" minOccurs="0" type="xs:date"/>
             <xs:element name="ParentId" minOccurs="0" type="xs:int"/>
             <xs:element name="ParentName" minOccurs="0" type="xs:string"/>
             <xs:element name="RBSId" minOccurs="0" type="xs:int"/>
             <xs:element name="RBSSId" minOccurs="0" type="xs:int"/>
             <xs:element name="SoftSector" minOccurs="0" type="xs:string"/>
             <xs:element name="UseId" minOccurs="0" type="xs:string"/>
             <xs:element name="Project" type="tns:Project" minOccurs="0"/>
             <xs:element name="RBS" type="tns:RBS" minOccurs="0"/>
          </xs:sequence>
       </xs:complexType>
    <!-- Type name: com.cingular.cingularCommonXmlSchema.Tank-->
       <xs:element name="Tank" type="tns:Tank"/>
       <xs:complexType name="Tank">
          <xs:sequence>
             <xs:element name="TotalStorageCapacity" minOccurs="0" type="xs:double"/>
          </xs:sequence>
       </xs:complexType>
    </xs:schema>Thanks
    Vivek

    Madhu,
    You may:
    1. Generate XML Document manually with DOM API
    2. Use some complex lib like implementation of <a href="http://java.sun.com/webservices/jaxb/">JAXB</a> with ad-hoc control over format.
    3. Use some simple library like <a href="http://xstream.codehaus.org/">XStream</a> with minimal format control.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Leave request application in Floor plan manager?

    Hi Gurus,
    I have a webdynpro leave request application which is in Floor Plan Manager in Java webdynpro.
    My leave request java WD application has 4 different functional steps like view-> edit->review-> complete.
    User completes the steps one by one...and for that there are 4 screens--and user moves from one screen to another after completing each step.
    Now I made the changes in the edit view which has the duration field which needs to be filled with half of the work schedule allocated to the employee per day if they chose half day leave in the application.
    As per the requirement duration field populated the data(half of the work schedule allocated to the employee per day ) but when I hit review button,navigation goes to the next screen duration field has the value of full work schedule (say 8 hours)which suppose to be half of the workschedule .(say 4 hours).
    any clues ?what will be the root cause of this problem..............
    Higher points will be rewarded for the useful inputs.............
    Thanks in Advance,
    Dharani

    Hi,,
    check the minimum duration for the particular leave type in SPRO->Personnel Management->Time Management->Time Data Recording and adminsitration->Absences->Absence Catalog->Define absence types
    double click here, u shd be getting the absence type details. check if any minimum duration is set here.
    also, chek the work shcdule assigned to the e ployee in infotype 7
    As far, as i understand, for half-day leave, you dont have to do any chenges in the webdynpro application. This purely depends on your time config.
    Please consult the time/HR consultant in this matter
    Thanks and Regards
    Reshma

  • Floor model LG tv with no audio?

    so I recently bought a floor model lg 55lb6300 TV from best buy, however when I got it home and hooked it up, I found out that it had no sound. I immediately started trying to mess with the menu and found out that I didn't have access to it. I can't turn the sound up with the normal functions button, or even get to any sort of menu with it either. I noticed that when I changed the channel it always says store model in the top left corner. So I'm assuming it's like a function that best buy has for their tvs so that people can't try to mess with them. Would anyone know how I could possibly get to a menu just using the built in functions? I can't seem to get to any of the smart tv functions or anything. The only options I get are to turn the tv off or to change the input.

    Hello roberto0o-
    If you are having any further issues with this, I would recommend contacting the store where you made the purchase for more assistance as well.  They can at least tell you if they put any particular settings on the TV while it was on display.
    Otherwise, I hope you enjoy the new TV!
    Thanks for posting,

  • Change digital input to frequency

    Has anyone figured out an easy/slick way to convert a digital input into a frequency/Rate?
    I've got this prox switch out on the plant floor that monitors whenever a part goes by. A part goes by at regular intervals, except that once in a while a part may not be there (removed from product stream for QA reasons). Ok, so I want to know (on average, say in the last 2 minutes) what is the rate in parts per hour.
    I guess I kind of want an Derivative Object that will accept a digital input (logical) instead of numeric.
    I am currently using a POT as the input to a Derivative Object (updating in 2 minutes, and a time unit of 1 hour), and Incrementing the Pot with the Digital Input from the PLC. However this only works until the POT max's out, then I automaticly reset the pot to zero, and start incrementing again.
    I just figure it should be "cleaner" than this solution. Any ideas?
    Rich Anderson
    Automation Controls Engineer
    Anamax Group

    Hi,
    Instead of using a Pot that is updated by the Digital input, you could use a counter. On that one you don't need to specify a max and you can make it have a reset programmatically.
    That should be easier and better to use.
    Ricardo S.

  • Does the iPad allow for mutli-channel input for Music Recording Apps?

    I know there are a few apps out now that have 8 track recorders but I've never used them. I plan on using garageband for iPad since I'm 'seasoned' with it and looks alot nicer than Amplitube. The question is, If I use the camera kit for it's USB, will it accept USB Interfaces w/2+ inputs or USB Mixer?

    I'm not a concert muscian. However, I've used my iPad for piano music. It worked fine for me. I believe the app I used is called Etude. However, I don't recall if you can import your own music into that program or not.
    The other issue I can see is that the iPad is, compared to sheet music, rather heavy. It's fine on the music stand of a piano. It would probably be okay on one of the music stands I used to use when I played in an orchestra (they were black metal). I think, though, that it wouldn't be trustworthy on a folding music stand. If sheet music falls to the floor, you just pick it up. If an iPad falls down, it might break.
    Best of luck.

  • Configuration of OTC Derivaties - with interest rates -CAPS-Floor - LBIOR.

    Hi guys,
    Please help me in sloving this issue,
    i have a requirement to configure OTC derivaties deals where in should create a contract with interest rates (CAPS & Floor prices).
    Can some one please throw some light on how the end-end transaction flows.
    My understanding is that a OTC -derivate contract can be created with either a Floor or CAP interest rate in TO01 and then
    settle the contract in TO04  - Post the deal in TBB1. Don't know what next.
    My Questions are
    what is next cycle process after we settle the deal and post the same in TBB1.
    how we do adjustments to interest rates - dont know how to use transaction code TPM80.
    how the treasury end user will do the valuation on the contracts every 3 months. what is the transaction used to do the valuation.
    Can some please let us know the transaction cycle flow of this.
    Awaiting your response.
    Regards
    karunakar

    Hi Ravi,
    Thank you very much for providing the information - this is very much help
    i have now fixed all the configuration issues , However am bit confiused the end- end transaction flow.
    Can you please provide us your inputs for the transaction flow.
    1.Creation of contract - TO01.
    2. Interest Rate adjustments - TI01 or TJ05        ( when should the user exactly will do this. i,e if i have created a contract with a  time period of 1 year and with a frequency of 3month LBIOR 3 - so will User run this transaction code at the end of 3rd month? Can you please share some knowledge on this.
    3. Do TBB1 - This is to post the deal to accounting ( i.e  imean to say this will create accouting entries).
    4.Valatuion TPM1 - did not understand what it exactly do's.
    Can you just please share the how the cycle runs for the following contract.
    A contract is created wth CAP -Pur-5% with an amount 1000$ with an time frame of 1 year and with a frequency of 3months.
    and will get matured after one year.
    Desprately awaiting your response.
    Karunakar.

  • Floor function

    I am using Livecycle to build a autocalculated form.  One of the fields that I am using is an output from Floor formula as used in excel.  Eg : Field A = input intiger. Field B = Floor(A*30%,1200). that is  -> if A=110000
    , then B=(110000*30%,1200). Output is 32400. 
    How can I get the same output in livecyle as there is no option for 'significance' field in the floor formula that livecycle uses.

    There are LiveCycle  forums bu this forum is for forms developed with Acrobat form tools.
    You could add code to perform the rounding.
    LiveCycle ES3 FormCalc Reference

  • Strange input errors, please help

    ok, Ive been following a tutorial located here. I just got to section 2.4 and the tutorial says that it would be easier to allow input with his program. So I downloaded his program, compiled it, cheked to make sure that the compiled TextIO.class was in the right place. (BTW, Im running NetBeans IDE 4.0 beta 2). This is my program...:
    public class helloworld2 {
        // a prog to display hello world
        public static void main(String[] args) {
            double hellonumber;
            double hellonumber2;
            int userImput; //imput tut. the number imputed
            int square; //imput tut. userimput squared
            hellonumber = 7777;
            hellonumber2 = 6666;
            System.out.println("Hello World"); // how to print words
            System.out.print(hellonumber); // variable use....duh
            System.out.println(" Is the number of the day");
            System.out.print(hellonumber2); // and again
            System.out.println(" Is the other number of the day");
            System.out.print("The square root of the number of the day is ");
            System.out.println(Math.sqrt(7777)); // square root
            System.out.print("Wow! The amount of letters in this sentance is ");
            System.out.println("Wow! The amount of letters in this sentance is".length()); //this is used to count letters, punctuation, and spaces in the aforementioned sentance
            System.out.println("cat".toUpperCase()); //makes aforementioned sentance in all caps
            System.out.println("CAT".toLowerCase()); // same as above but opposite
            //begin imput tut.
            System.out.print("Please type a number: ");
            userImput = TextIO.getInt();
            square = userImput * userImput;
            System.out.print("The square of that number is ");
            System.out.println(square);
    }       //doneThis is the program I got off of the tutorial site, it is supposed to make input easier, but instead gets errors
    The file defines a class TextIO, which provides a simple interface
    to Java's standard console input and output. This class defines
    several static methods for reading and writing
    values of various type.
    This class will only work with standard, interactive applications.
    When it is used in such an application, System.out and System.in
    should not be used directly, since the TextIO class thinks it has
    exclusive control of System.out and System.in. (Actually, using
    System.out will probably not cause any problems, but don't use
    System.in.)
    To use this class in your program, simply include the compiled class
    file TextIO.class in the same directory with the class file for your
    main program. (If you are using a development environment such as
    CodeWarrior or Visual J++, you can include the source file,
    TextIO.java in your project.) You can then use all the public static methods
    from the TextIO class in your program. (In your programs, the names
    of the methods must be prefaced with "TextIO." For example, you should
    use the name TextIO.getln() rather than simply getln().)
    (This class is for use with my on-line introductory java textbook,
    which is available at http://math.hws.edu/eck/cs124/notes/index.html.)
    Written by: David Eck
    Department of Mathematics and Computer Science
    Hobart and William Smith Colleges
    Geneva, NY 14456
    Email: [email protected]
    WWW: http://math.hws.edu/eck/
    July 16, 1998
    Modified February, 2000; getChar() now skips blanks and CR's, and getAnyChar()
    can be used to read the next char even if it's a blank or CR.
    import java.io.*;
    public class TextIO {
    // *************************** I/O Methods *********************************
    // Methods for writing the primitive types, plus type String,
    // to the console, with no extra spaces.
    // Note that the real-number data types, float
    // and double, a rounded version is output that will
    // use at most 10 or 11 characters. If you want to
    // output a real number with full accuracy, use
    // "TextIO.put(String.valueOf(x))", for example.
    public static void put(int x) { put(x,0); } // Note: also handles byte and short!
    public static void put(long x) { put(x,0); }
    public static void put(double x) { put(x,0); } // Also handles float.
    public static void put(char x) { put(x,0); }
    public static void put(boolean x) { put(x,0); }
    public static void put(String x) { put(x,0); }
    // Methods for writing the primitive types, plus type String,
    // to the console,followed by a carriage return, with
    // no extra spaces.
    public static void putln(int x) { put(x,0); newLine(); } // Note: also handles byte and short!
    public static void putln(long x) { put(x,0); newLine(); }
    public static void putln(double x) { put(x,0); newLine(); } // Also handles float.
    public static void putln(char x) { put(x,0); newLine(); }
    public static void putln(boolean x) { put(x,0); newLine(); }
    public static void putln(String x) { put(x,0); newLine(); }
    // Methods for writing the primitive types, plus type String,
    // to the console, with a minimum field width of w,
    // and followed by a carriage return.
    // If output value is less than w characters, it is padded
    // with extra spaces in front of the value.
    public static void putln(int x, int w) { put(x,w); newLine(); } // Note: also handles byte and short!
    public static void putln(long x, int w) { put(x,w); newLine(); }
    public static void putln(double x, int w) { put(x,w); newLine(); } // Also handles float.
    public static void putln(char x, int w) { put(x,w); newLine(); }
    public static void putln(boolean x, int w) { put(x,w); newLine(); }
    public static void putln(String x, int w) { put(x,w); newLine(); }
    // Method for outputting a carriage return
    public static void putln() { newLine(); }
    // Methods for writing the primitive types, plus type String,
    // to the console, with minimum field width w.
    public static void put(int x, int w) { dumpString(String.valueOf(x), w); } // Note: also handles byte and short!
    public static void put(long x, int w) { dumpString(String.valueOf(x), w); }
    public static void put(double x, int w) { dumpString(realToString(x), w); } // Also handles float.
    public static void put(char x, int w) { dumpString(String.valueOf(x), w); }
    public static void put(boolean x, int w) { dumpString(String.valueOf(x), w); }
    public static void put(String x, int w) { dumpString(x, w); }
    // Methods for reading in the primitive types, plus "words" and "lines".
    // The "getln..." methods discard any extra input, up to and including
    // the next carriage return.
    // A "word" read by getlnWord() is any sequence of non-blank characters.
    // A "line" read by getlnString() or getln() is everything up to next CR;
    // the carriage return is not part of the returned value, but it is
    // read and discarded.
    // Note that all input methods except getAnyChar(), peek(), the ones for lines
    // skip past any blanks and carriage returns to find a non-blank value.
    // getln() can return an empty string; getChar() and getlnChar() can
    // return a space or a linefeed ('\n') character.
    // peek() allows you to look at the next character in input, without
    // removing it from the input stream. (Note that using this
    // routine might force the user to enter a line, in order to
    // check what the next character is.)
    // Acceptable boolean values are the "words": true, false, t, f, yes,
    // no, y, n, 0, or 1; uppercase letters are OK.
    // None of these can produce an error; if an error is found in input,
    // the user is forced to re-enter.
    // Available input routines are:
    // getByte() getlnByte() getShort() getlnShort()
    // getInt() getlnInt() getLong() getlnLong()
    // getFloat() getlnFloat() getDouble() getlnDouble()
    // getChar() getlnChar() peek() getAnyChar()
    // getWord() getlnWord() getln() getString() getlnString()
    // (getlnString is the same as getln and is only provided for consistency.)
    public static byte getlnByte() { byte x=getByte(); emptyBuffer(); return x; }
    public static short getlnShort() { short x=getShort(); emptyBuffer(); return x; }
    public static int getlnInt() { int x=getInt(); emptyBuffer(); return x; }
    public static long getlnLong() { long x=getLong(); emptyBuffer(); return x; }
    public static float getlnFloat() { float x=getFloat(); emptyBuffer(); return x; }
    public static double getlnDouble() { double x=getDouble(); emptyBuffer(); return x; }
    public static char getlnChar() { char x=getChar(); emptyBuffer(); return x; }
    public static boolean getlnBoolean() { boolean x=getBoolean(); emptyBuffer(); return x; }
    public static String getlnWord() { String x=getWord(); emptyBuffer(); return x; }
    public static String getlnString() { return getln(); } // same as getln()
    public static String getln() {
    StringBuffer s = new StringBuffer(100);
    char ch = readChar();
    while (ch != '\n') {
    s.append(ch);
    ch = readChar();
    return s.toString();
    public static byte getByte() { return (byte)readInteger(-128L,127L); }
    public static short getShort() { return (short)readInteger(-32768L,32767L); }
    public static int getInt() { return (int)readInteger((long)Integer.MIN_VALUE, (long)Integer.MAX_VALUE); }
    public static long getLong() { return readInteger(Long.MIN_VALUE, Long.MAX_VALUE); }
    public static char getAnyChar(){ return readChar(); }
    public static char peek() { return lookChar(); }
    public static char getChar() { // skip spaces & cr's, then return next char
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n')
    dumpString("? ",0);
    ch = lookChar();
    return readChar();
    public static float getFloat() {
    float x = 0.0F;
    while (true) {
    String str = readRealString();
    if (str.equals("")) {
    errorMessage("Illegal floating point input.",
    "Real number in the range " + Float.MIN_VALUE + " to " + Float.MAX_VALUE);
    else {
    Float f = null;
    try { f = Float.valueOf(str); }
    catch (NumberFormatException e) {
    errorMessage("Illegal floating point input.",
    "Real number in the range " + Float.MIN_VALUE + " to " + Float.MAX_VALUE);
    continue;
    if (f.isInfinite()) {
    errorMessage("Floating point input outside of legal range.",
    "Real number in the range " + Float.MIN_VALUE + " to " + Float.MAX_VALUE);
    continue;
    x = f.floatValue();
    break;
    return x;
    public static double getDouble() {
    double x = 0.0;
    while (true) {
    String str = readRealString();
    if (str.equals("")) {
    errorMessage("Illegal floating point input",
    "Real number in the range " + Double.MIN_VALUE + " to " + Double.MAX_VALUE);
    else {
    Double f = null;
    try { f = Double.valueOf(str); }
    catch (NumberFormatException e) {
    errorMessage("Illegal floating point input",
    "Real number in the range " + Double.MIN_VALUE + " to " + Double.MAX_VALUE);
    continue;
    if (f.isInfinite()) {
    errorMessage("Floating point input outside of legal range.",
    "Real number in the range " + Double.MIN_VALUE + " to " + Double.MAX_VALUE);
    continue;
    x = f.doubleValue();
    break;
    return x;
    public static String getWord() {
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n')
    dumpString("? ",0);
    ch = lookChar();
    StringBuffer str = new StringBuffer(50);
    while (ch != ' ' && ch != '\n') {
    str.append(readChar());
    ch = lookChar();
    return str.toString();
    public static boolean getBoolean() {
    boolean ans = false;
    while (true) {
    String s = getWord();
    if ( s.equalsIgnoreCase("true") || s.equalsIgnoreCase("t") ||
    s.equalsIgnoreCase("yes") || s.equalsIgnoreCase("y") ||
    s.equals("1") ) {
    ans = true;
    break;
    else if ( s.equalsIgnoreCase("false") || s.equalsIgnoreCase("f") ||
    s.equalsIgnoreCase("no") || s.equalsIgnoreCase("n") ||
    s.equals("0") ) {
    ans = false;
    break;
    else
    errorMessage("Illegal boolean input value.",
    "one of: true, false, t, f, yes, no, y, n, 0, or 1");
    return ans;
    // ***************** Everything beyond this point is private *******************
    // ********************** Utility routines for input/output ********************
    private static InputStream in = System.in; // rename standard input stream
    private static PrintStream out = System.out; // rename standard output stream
    private static String buffer = null; // one line read from input
    private static int pos = 0; // position of next char in input line that has
    // not yet been processed
    private static String readRealString() { // read chars from input following syntax of real numbers
    StringBuffer s=new StringBuffer(50);
    char ch=lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n')
    dumpString("? ",0);
    ch = lookChar();
    if (ch == '-' || ch == '+') {
    s.append(readChar());
    ch = lookChar();
    while (ch == ' ') {
    readChar();
    ch = lookChar();
    while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    if (ch == '.') {
    s.append(readChar());
    ch = lookChar();
    while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    if (ch == 'E' || ch == 'e') {
    s.append(readChar());
    ch = lookChar();
    if (ch == '-' || ch == '+') {
    s.append(readChar());
    ch = lookChar();
    while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    return s.toString();
    private static long readInteger(long min, long max) { // read long integer, limited to specified range
    long x=0;
    while (true) {
    StringBuffer s=new StringBuffer(34);
    char ch=lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n')
    dumpString("? ",0);
    ch = lookChar();
    if (ch == '-' || ch == '+') {
    s.append(readChar());
    ch = lookChar();
    while (ch == ' ') {
    readChar();
    ch = lookChar();
    while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    if (s.equals("")){
    errorMessage("Illegal integer input.",
    "Integer in the range " + min + " to " + max);
    else {
    String str = s.toString();
    try {
    x = Long.parseLong(str);
    catch (NumberFormatException e) {
    errorMessage("Illegal integer input.",
    "Integer in the range " + min + " to " + max);
    continue;
    if (x < min || x > max) {
    errorMessage("Integer input outside of legal range.",
    "Integer in the range " + min + " to " + max);
    continue;
    break;
    return x;
    private static String realToString(double x) {
    // Goal is to get a reasonable representation of x in at most
    // 10 characters, or 11 characters if x is negative.
    if (Double.isNaN(x))
    return "undefined";
    if (Double.isInfinite(x))
    if (x < 0)
    return "-INF";
    else
    return "INF";
    if (Math.abs(x) <= 5000000000.0 && Math.rint(x) == x)
    return String.valueOf( (long)x );
    String s = String.valueOf(x);
    if (s.length() <= 10)
    return s;
    boolean neg = false;
    if (x < 0) {
    neg = true;
    x = -x;
    s = String.valueOf(x);
    if (x >= 0.00005 && x <= 50000000 && (s.indexOf('E') == -1 && s.indexOf('e') == -1)) { // trim x to 10 chars max
    s = round(s,10);
    s = trimZeros(s);
    else if (x > 1) { // construct exponential form with positive exponent
    long power = (long)Math.floor(Math.log(x)/Math.log(10));
    String exp = "E" + power;
    int numlength = 10 - exp.length();
    x = x / Math.pow(10,power);
    s = String.valueOf(x);
    s = round(s,numlength);
    s = trimZeros(s);
    s += exp;
    else { // constuct exponential form
    long power = (long)Math.ceil(-Math.log(x)/Math.log(10));
    String exp = "E-" + power;
    int numlength = 10 - exp.length();
    x = x * Math.pow(10,power);
    s = String.valueOf(x);
    s = round(s,numlength);
    s = trimZeros(s);
    s += exp;
    if (neg)
    return "-" + s;
    else
    return s;
    private static String trimZeros(String num) { // used by realToString
    if (num.indexOf('.') >= 0 && num.charAt(num.length() - 1) == '0') {
    int i = num.length() - 1;
    while (num.charAt(i) == '0')
    i--;
    if (num.charAt(i) == '.')
    num = num.substring(0,i);
    else
    num = num.substring(0,i+1);
    return num;
    private static String round(String num, int length) { // used by realToString
    if (num.indexOf('.') < 0)
    return num;
    if (num.length() <= length)
    return num;
    if (num.charAt(length) >= '5' && num.charAt(length) != '.') {
    char[] temp = new char[length+1];
    int ct = length;
    boolean rounding = true;
    for (int i = length-1; i >= 0; i--) {
    temp[ct] = num.charAt(i);
    if (rounding && temp[ct] != '.') {
    if (temp[ct] < '9') {
    temp[ct]++;
    rounding = false;
    else
    temp[ct] = '0';
    ct--;
    if (rounding) {
    temp[ct] = '1';
    ct--;
    // ct is -1 or 0
    return new String(temp,ct+1,length-ct);
    else
    return num.substring(0,length);
    private static void dumpString(String str, int w) { // output string to console
    for (int i=str.length(); i<w; i++)
    out.print(' ');
    for (int i=0; i<str.length(); i++)
    if ((int)str.charAt(i) >= 0x20 && (int)str.charAt(i) != 0x7F) // no control chars or delete
    out.print(str.charAt(i));
    else if (str.charAt(i) == '\n' || str.charAt(i) == '\r')
    newLine();
    private static void errorMessage(String message, String expecting) {
    // inform user of error and force user to re-enter.
    newLine();
    dumpString(" *** Error in input: " + message + "\n", 0);
    dumpString(" *** Expecting: " + expecting + "\n", 0);
    dumpString(" *** Discarding Input: ", 0);
    if (lookChar() == '\n')
    dumpString("(end-of-line)\n\n",0);
    else {
    while (lookChar() != '\n')
    out.print(readChar());
    dumpString("\n\n",0);
    dumpString("Please re-enter: ", 0);
    readChar(); // discard the end-of-line character
    private static char lookChar() { // return next character from input
    if (buffer == null || pos > buffer.length())
    fillBuffer();
    if (pos == buffer.length())
    return '\n';
    return buffer.charAt(pos);
    private static char readChar() { // return and discard next character from input
    char ch = lookChar();
    pos++;
    return ch;
    private static void newLine() { // output a CR to console
    out.println();
    out.flush();
    private static boolean possibleLinefeedPending = false;
    private static void fillBuffer() { // Wait for user to type a line and press return,
    // and put the typed line into the buffer.
    StringBuffer b = new StringBuffer();
    out.flush();
    try {
    int ch = in.read();
    if (ch == '\n' && possibleLinefeedPending)
    ch = in.read();
    possibleLinefeedPending = false;
    while (ch != -1 && ch != '\n' && ch != '\r') {
    b.append((char)ch);
    ch = in.read();
    possibleLinefeedPending = (ch == '\r');
    if (ch == -1) {
    System.out.println("\n*** Found an end-of-file while trying to read from standard input!");
    System.out.println("*** Maybe your Java system doesn't implement standard input?");
    System.out.println("*** Program will be terminated.\n");
    throw new RuntimeException("End-of-file on standard input.");
    catch (IOException e) {
    System.out.println("Unexpected system error on input.");
    System.out.println("Terminating program.");
    System.exit(1);
    buffer = b.toString();
    pos = 0;
    private static void emptyBuffer() { // discard the rest of the current line of input
    buffer = null;
    } // end of class TextIOI know that it is a mouthful, but I go it off the tutorial site. When it didnt work, I persued finding another input program. I found one on this forum:
    import java.io.*;
    public class MyInput {
      /**Read a string from the keyboard*/
      public static String readString()
        BufferedReader br
          = new BufferedReader(new InputStreamReader(System.in), 1);
        // Declare and initialize the string
        String string = " ";
        // Get the string from the keyboard
        try
          string = br.readLine();
        catch (IOException ex)
          System.out.println(ex);
        // Return the string obtained from the keyboard
        return string;
      /**Read an int value from the keyboard*/
      public static int readInt()
        return Integer.parseInt(readString());
      /**Read a double value from the keyboard*/
      public static double readDouble()
        return Double.parseDouble(readString());
    }and made a new small program to test it:
    public class Driver
         public static void main ( String[] args)
              System.out.println("Enter a number");
              int number = MyInput.readInt();
              System.out.println("number entered "+ number);
              System.out.println("Enter another number");
              number = MyInput.readInt();
              System.out.println("number entered "+ number);
    the output:
    init:
    deps-jar:
    compile-single:
    run-single:
    Enter a number
    Exception in thread "main" java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Integer.java:415)
    at java.lang.Integer.parseInt(Integer.java:497)
    at MyInput.readInt(MyInput.java:32)
    at Driver.main(Driver.java:6)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)
    I REALLY appreciate your help. Im a n00b by definition, but would really like to get into the java community. I have minimal C++ knowledge. anyway, Thanks for looking over all of this n00bish garbage.

    Exception in thread "main" java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Integer.java:415)
    at java.lang.Integer.parseInt(Integer.java:497)
    at MyInput.readInt(MyInput.java:32)This tells you that there was a NumberFormatException and that the value which was not a number was "null". You can guess what NumberFormatException means, or if you can't possibly imagine then you can look it up in the API documentation.
    It also tells you that it was caused by line 32 of your MyInputClass (the last line of the stack trace) and that you were calling Integer.parseInt in that line (the line just above that).
    Your thousand lines of code are all very well but I don't know which one of them is line 32. Your text editor should be able to tell you that. Find out why that line of code is passing null to Integer.parseInt.

  • How do the limits in cal exec for vertical sensitivity of a 5911 relate to the vertical sensitivity spec (noise referred to input) in the 5911 user manual?

    One of our 5911's came back from calibration and it failed 'Vertical Sensitivity" at...
    Range = 20V
    Sample Rate = 2.5MS/s
    Reading: 145.119 dBfs/sqrt(Hz)
    High Limit: 152.000 dBfs/sqrt(Hz)
    and...
    Range = 0.2V
    Sample Rate = 1MS/s
    Reading: 113.859 dBfs/sqrt(Hz)
    High Limit: 128 dBfs/sqrt(Hz)
    How do these limits relate to the "Vertical Sensitivity" (Input Ranges) on page A-3 on the NI PCI-5911 User Manual?  http://www.ni.com/pdf/manuals/322150e.pdf  For 20V the user manual spec is 174 dBfs/sqrt(Hz) and for 0.2V is  the same 128 dBfs/sqrt(Hz).  
    How might this impact previous error calculations?
    Thanks,
    Darrow

    Hi Darrow,
    First I will link to the Manual Calibration Procedure and Specifications for this board for reference.
    There are a couple of sources of noise on this module that need to be taken into account. One shown in the vertical sensitivity table which you have already referenced.  This is amplifier noise density which is dependent on gain settings.  The second is ADC noise density.  This is dependent on sampling rate.  These values can be found in the Dynamic Range section of the Specifications.
    The two noise sources are uncorrelated, and depending on your combination of sample rate and range, one will typically dominate and can be used as an estimate.  Otherwise you can obtain the RMS total through the root sum of squares method.  This total is what is used in the calibration tests.
    There is a VI that has been set up for calculating the noise-floor of the 5911.  You can find it here if you wish to see an illustration of the calculation (check out the block diagram).
    If your module is failing calibration for any reason, you cannot rely on it meeting the accuracy specifications. This specific type of failure will impact the dynamic range/noise floor of the board.  Likely tens of dB that you have lost given the measurements you report.  Small signal measurements will definitely be affected.  I recommend repair or replacement to ensure the quality of future measurements.
    Jennifer O.

Maybe you are looking for

  • F4IF_INT_TABLE_VALUE_REQUEST and first selection of mult

    Hi All,    I am using F4IF_INT_TABLE_VALUE_REQUEST and it works well, except for the first time.This is a regular report type program.     o If one item/line is selected the first time, nothing is returned to the screen fields.     o If more than one

  • Is it possible to display the sequence context browser using the TS API ?

    Hi, I would like to display a sequence context browser in a custom step developped in CVI to allow operator to choose the local or global who receive a data. I tried tu use the Browse Expression Dialog but i didn't find the way to limit this UI as a

  • Is it possible to have 2 trans with the same tcode but different langs

    Dear forum members, I would like to know if it is possible to have in the TSTCT table u2013 two entries with the same TCODE value but different SPRAS value (the language field) Thanks for your help, Roy

  • ITunes LPs not working

    Hi. I recently bought four Metallica albums (Ride the Lightning, Master of Puppets, ...And Justice for All, and Metallica). All four came with the digital booklets. At the time I bought these albums I still had an older version of iTunes (9 or someth

  • Two types of queries in one report

    Hello, Does anyone know if it is possible in reports builder to query from two different systems, DB2 - jdbc and oracle - sql and then join the data based off a related field from each query. Then use this joined data to build a report? Please let me