I do not understand the Terminal!

I have searched through many help topics online and nothing really helps! It is nothing like the normal CLI on Windows. How do I do ping, ipconfig, etc? Thank you!

The CLI shares very little in common with Windows besides the name. Mac OS X is forked from something called BSD, which itself derived from UNIX. As a result, Mac OS X's CLI is most similar to UNIX. A good starting resource would be OSXFAQ's Learning Center.

Similar Messages

  • My flash reads the xml, but does not understand the tag php....

    my flash reads the xml, but does not understand the tag php. I want to read my xml dynamically, please help me.
    code:
    stop();
    function randomOrder(targetArray)
        var _loc2 = targetArray.length;
        var _loc3 = [];
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            _loc3[_loc1] = _loc1;
        } // end of for
        var _loc4 = [];
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            _loc4[_loc1] = _loc3.splice(Math.floor(Math.random() * _loc3.length), 1);
        } // end of for
        var _loc5 = [];
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            _loc5[_loc1] = targetArray[_loc4[_loc1]];
        } // end of for
        return (_loc5);
    } // End of the function
    var randomNUM = "?n=" + random(9999);
    _root.lan = 1;
    var homehead;
    var homelink;
    var homelinkwindow;
    var homebg;
    var homeflash;
    var lamp = Array();
    var promo = Array();
    var promobottom = Array();
    var headimg = Array();
    f_xmlwork2 = new XML();
    f_xmlwork2.ignoreWhite=true;
    f_xmlwork2.load("banner.php");
    f_xmlwork2.onLoad = function(sucess){
        if (sucess){
             trace ("XML loaded!");
             f_xmlItemx2 = parseInt(this.firstChild.childNodes[0].firstChild);
             f_totalx2 = f_xmlItemx2.length;
            trace(f_totalx2);
             var _loc12 =0;
             // declarar a imagem de fundo
             homebg = this.firstChild.childNodes[0].firstChild.nodeValue;
             f_headimg = this.childNodes[1];
                 for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++_loc2)    {
    juju = f_headimg.childNodes[_loc2];
    jj = headimg.push({headimg: f_headimg.childNodes[_loc2].attributes.headimg, bgimg: f_headimg.childNodes[_loc2].attributes.bgimg, msgimg: f_headimg.childNodes[_loc2].attributes.msgimg, leftthrow: f_headimg.childNodes[_loc2].attributes.leftthrow, rightthrow: f_headimg.childNodes[_loc2].attributes.rightthrow});
                 //end for
    allpromo = this.childNodes[2];
    jjpromo = allpromo.childNodes;
    for (var _loc2 = 0; _loc2 < allpromo.childNodes.length; ++_loc2)
    trace (jjpromo[_loc2].attributes.title);
    jj = promo.push({img: jjpromo[_loc2].attributes.img, title: jjpromo[_loc2].attributes.title, url: jjpromo[_loc2].attributes.url, window: jjpromo[_loc2].attributes.window, info: jjpromo[_loc2].childNodes[0].nodeValue});
        // end of for
        allpromobottom = this.childNodes[3];
        jjpromobottom = allpromobottom.childNodes;
        for (var _loc2 = 0; _loc2 < allpromobottom.childNodes.length; ++_loc2)
            trace (jjpromo[_loc2].attributes.title);
            jj = promobottom.push({url: jjpromobottom[_loc2].attributes.url, window: jjpromobottom[_loc2].attributes.window, info: jjpromobottom[_loc2].childNodes[0].nodeValue});
        } // end of for
         if (f_xmlwork2.loaded == true)
            headimg = randomOrder(headimg);
            for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++_loc2)
                trace (headimg[_loc2].headimg);
            } // end of for
            play ();
        } // end if
    trace(f_xmlwork2);
    stop();
    PHP code:
    <?
    $link=  mysql_connect("localhost","rnpac_eco","123");
    mysql_select_db("rnpac");
    $dir="banner/";
    $dir1="produtos/img_pro/";
    $dir2="universo/actividades/";
    $sql = 'SELECT tbl_produto.id_produto, tbl_produto.produto, tbl_produto.legenda, tbl_produto.detalhe, tbl_produto.preco, tbl_produto.produto_cat_id, tbl_detalhe_produto.proprietario, tbl_detalhe_produto.local, tbl_detalhe_produto.qualidade, tbl_detalhe_produto.alcool, tbl_detalhe_produto.acidez, tbl_detalhe_produto.ph, tbl_detalhe_produto.informacao, tbl_detalhe_produto.gestor, tbl_detalhe_produto.condicionamento, tbl_detalhe_produto.detalhe_t, tbl_detalhe_produto.interesse, tbl_detalhe_produto.transporte, tbl_detalhe_produto.produto_id, tbl_imagem_produto.id_imagem, tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6
    FROM tbl_cat_produto, tbl_produto, tbl_detalhe_produto, tbl_imagem_produto WHERE tbl_produto.id_produto = tbl_detalhe_produto.produto_id AND tbl_produto.id_produto = tbl_imagem_produto.produto_id ORDER BY RAND()';
    $resultado = mysql_query($sql)
    or die ("Não foi possível realizar a consulta.");
    $row1=mysql_fetch_array($resultado);
    $sql = "SELECT  tbl_sub_universo.id_subuniverso, tbl_sub_universo.subuniverso, tbl_sub_universo.universo_id, tbl_actividade.id_actividade, tbl_actividade.entidade, tbl_actividade.legenda, tbl_actividade.subuniverso_id, tbl_actividade.det, tbl_actividade.preco, tbl_actividade.data, tbl_detalhe_actividade.actividade_id, tbl_detalhe_actividade.periodo, tbl_detalhe_actividade.descricao, tbl_detalhe_actividade.programa, tbl_detalhe_actividade.informacoes, tbl_detalhe_actividade.actividades, tbl_detalhe_actividade.localizacao, tbl_detalhe_actividade.locais, tbl_detalhe_actividade.servicos, tbl_imagem_produto.id_imagem, tbl_imagem_produto.imagem1,tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6, tbl_imagem_produto.actividade_id FROM  tbl_sub_universo, tbl_actividade, tbl_detalhe_actividade, tbl_imagem_produto WHERE tbl_actividade.id_actividade =tbl_imagem_produto.actividade_id AND tbl_actividade.id_actividade =tbl_detalhe_actividade.actividade_id ORDER BY RAND()";
    $resultado = mysql_query($sql)
    or die ("Não foi possível realizar a consulta.");
    $row2=mysql_fetch_array($resultado);
    $query='SELECT * FROM tbl_banner ORDER BY RAND()';
    $resultado = mysql_query($query);
    echo' <?xml version=\"1.0\"?>
    <home_left_headline>
    <bgimg>'.$dir2.''.$row1['imagem1'].'</bgimg>
    </home_left_headline>
    <home_flash>';
    while($row = mysql_fetch_array($resultado)) {
    echo'<swf headimg="" bgimg="" msgimg="" leftthrow="" rightthrow=""></swf>';
    echo'</home_flash>';
    echo'<promotop>
    <promo img="" title="" url="" ><![CDATA[]]></promo>
    <promo img="" title="" url="" ><![CDATA[]]></promo>
    </promotop>';
    mysql_close($link);

    i have two files banner.php, for testing my flash banner.
    This one works:
    -------------------------------| banner.php |---------------------------------------------
    <?xml version="1.0"?>
    <content>
    <settings>
    <menu X='160'/>
    </settings>
    <nav>
    <main Name='HOME' Link='home.swf'/>
    <main Name='EMPRESA' Link='home.swf' >
    <sub Name='HISTORIA' Link='content.swf' toLoad='content/contentrosa.xml'/>
    <sub Name='OBJECTIVO' Link='content.swf' toLoad='content/contentrosa2.xml'/>
    </main></nav>
    </content>
    -------------------------------|end  banner.php |---------------------------------------------
    this other does not work:
    -------------------------------| banner.php |---------------------------------------------
    <?php
    echo"<?xml version="1.0"?>
    <content>
    <settings>
    <menu X='160'/>
    </settings>
    <nav>
    <main Name='HOME' Link='home.swf'/>
    <main Name='EMPRESA' Link='home.swf' >
    <sub Name='HISTORIA' Link='content.swf' toLoad='content/contentrosa.xml'/>
    <sub Name='OBJECTIVO' Link='content.swf' toLoad='content/contentrosa2.xml'/>
    </main></nav>
    </content>";
    ?>
    -------------------------------|end  banner.php |---------------------------------------------
    Why? What is wrong? why does my flash does not understand the tag php
    Message was edited by: armandix

  • "could not read the file because the plug-in could not understand the file."

    "could not read the file because the plug-in could not understand the file."
    I keep getting this error when trying to open some of my illustrator files. Usually after trying 5 or 6 time it will mysteriously open without a problem. I've reinstalled Illustrator and that didn't work. I've uninstalled and reinstalled CS3 and that didn't work.
    Why does it sometimes open and sometimes not???
    I've lost I don't know how many hours screwing around with this and REALLY pissing me off!!!
    AURGH!

    I think this has something to do with the PNG plugin.

  • My 5S is starting to scramble my calls so you can not understand the party you are speaking with, does anyone know why?

    My 5S is starting to "scramble" my calls so you can not understand the party on the other end.

    Basics from the manual are restart, reset, restore
    Have you tried all of these?

  • Every time apple sends an update for my Itunes it goes wrong. last time this happened I got someone to fix it for me. I am very techno phobic and do not understand the on line instructions for uninstalling and reenstalling.Please help in simple English.

    when ever Apple sends an update to my pc, it knackers up my itunes. The last time this happened I got someone to fix the problem for me, I am very techno phobic and do not understand the uninstalling and reinstalling. It comes up error MSVCR80. Please can someone help in simple English , as the technical jargon just goes over my head.
    much Thanks

    The last time this happened I got someone to fix the problem for me, I am very techno phobic and do not understand the uninstalling and reinstalling.
    I think you should get a friend or family member who knows a bit more about computers to fix this for you.
    They should try the following instructions.
    Uninstall your existing copy of iTunes. Delete any copies of the iTunesSetup.exe (or iTunes64Setup.exe) installer files from your downloads areas for your web browsers and download a fresh copy of the iTunes installer from the Apple website:
    http://www.apple.com/itunes/download/
    (The current build of the 11.1.4.62 installer was changed a few days ago, which fixed the bulk of the reports of MSVCR80.dll/R6034/APSDaemon.exe/Error-7/AMDS-could-not-start trouble ... but the build number on the installer was not changed. So we're trying to make sure you do the reinstall using a "new good" 11.1.4.62 installer instead of an "old bad".)
    Does the install with the new copy of the installer go through properly? If so, does that clear up the error message?
    If you still have the same error messages cropping up, then try the procedures from the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • I have a windows 7 operating system on my laptop and it keeps saying I have installed itunes wrong?? i have done this activity three times now and do not understand the error? what di I have to do to fix the problem?

    i have a windows 7 operating system on my laptop and it keeps saying I have installed itunes wrong?? i have done this activity three times now and do not understand the error? what di I have to do to fix the problem?

    What's the precise text of the error message, please? (There's a few different ones I can think of that you might be getting.)

  • Hello, sent me the email canceling my account creative cloud, and I did not cancel the account, I do not understand the reason for the cancellation was because term option than 1 year and not yet completed.

    Hello, sent me the email canceling my account creative cloud, and I did not cancel the account, I do not understand the reason for the cancellation was because term option than 1 year and not yet completed.

    There is payment related issue, I have send you a personal message, please respond as requested.
    I shall raise a request to the digital river store from where it was purchased.
    I am from the Customer care Team.
    Regards
    Rajshree

  • Not Understanding the filter in Explain Plan - filter(NULL IS NOT NULL)

    Hi All,
    Request your help in understanding the below scenario. (I am not aware of teh application and table details. Just trying to help my friend)
    SQL> conn
    Enter user-name: [email protected]
    Enter password:
    Connected.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    --Checking the count in PO_LINES
    SQL> select count(*) from po_lines;
      COUNT(*)
             0
    --PO_LINES is a synonym
    SQL> select object_type,owner from dba_objects where object_name = 'PO_LINES';
    OBJECT_TYPE         OWNER
    SYNONYM             APPS
    --The synonym is pointing to PO.PO_LINES_ALL
    SQL> select * from user_synonyms where synonym_name = 'PO_LINES';
    SYNONYM_NAME                   TABLE_OWNER                    TABLE_NAME                     DB_LINK
    PO_LINES                       PO                             PO_LINES_ALL
    --But when counting PO.PO_LINES_ALL I am getting different result
    SQL> select count(*) c from po.po_lines_all;
             C
          8828
    --Explain plan of teh original query is
    SQL> explain plan for
      2  select
      3  * from po_lines;
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id  | Operation          | Name         | Rows  | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT   |              |     1 |   252 |     0   (0)|
    |*  1 |  FILTER            |              |       |       |            |
    |   2 |   TABLE ACCESS FULL| PO_LINES_ALL |  8796 |  2164K|   106   (4)|
    Predicate Information (identified by operation id):
       1 - filter(NULL IS NOT NULL)
    --Now the object PO.PO_LINES_ALL is TABLE, not an mview.
    SQL> select object_type,owner from dba_objects where object_name = 'PO_LINES_ALL';
    OBJECT_TYPE         OWNER
    TABLE               POSeek your help in understanding what is happening here.
    Thanks in Advance,
    jeneesh

    Next time, prefix with APPS. when you show us the explain plan:
    SQL> explain plan for
      2  select
      3  * from apps.po_lines;  -- added the prefix of owner.Just like you prefixed with PO. when you showed us the query on PO_LINES_ALL. It ensures that you are using the synonym which you showed us.
    Btw. PO_LINES_ALL, could still be a VIEW given your overview of the situation.
    Anyway a filter "NULL IS NOT NULL" is indicative that the optimizer performed something called semantic query optimization (SQO).
    SQO is the process of deducing new predicates based upon a) existing predicates in your query (which there is none), b) added predicates to your query (eg. by a VPD policy function), and c) declared constraints on the tables invovled in your query.
    A typical example of when a "NOT is NOT NULL" predicate will show up is when for instance in the EMP table there is a declared constraint on EMPNO like this:
    check(EMPNO > 0)And your query would hold a predicate that is inconsistent with the constraint, for instance like this:
    select *
    from EMP
    where EMPNO <= 0Oracle will deduce that EMPNO cannot be both greater than zero (constraint) as well as smaller than or equal to zero (your query predicate), and will transform the query into:
    select *
    from EMP
    where EMPNO <= 0
      and NULL is NOT NULLThus preventing accessing the EMP table all together, and immediately returning this query with no data found.
    Edited by: Toon Koppelaars on Mar 15, 2010 7:17 AM

  • Do not understand the icons in Iphone Camera 5s .....any instruction manual or anything

    I really do not understand most of the icons in the camera mode. Stuff such as HDR,
    B.  how to take just a single picture without the burst mode activating
    C,  Having taken a burst mode of say three pictures how to view them all when viewing photo gallery. When I CLICK onto a picture which says burst mode and for e.g 3 pictures above it how to open that picture and see the 3 burst mode ones

    Page 77 and following addresses those questions: http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

  • Could not understand the Explode option in "Copy/Merge Forecast" program

    Hi All,
    These are the part of period dates of the organization calendar.
    5/26/2011     6/27/2011
    6/27/2011     7/25/2011
    7/25/2011     8/22/2011
    We are trying to copy a forecast from another forecast from the same organization. The forecast consists only end items. We are trying to explode the forecast values from end item forecast to new forecast. I could not understand how the explosion of the forecast happens.
    Scenario 1:
    When the start date of the Copy/Merge forecast was entered as 26th July 2011. I see all the items of exploded forecast starting from 27 June 2011.
    Scenario 2:
    When the start date of the Copy/Merge forecast was entered as 30th June 2011. I see all the items of exploded forecast starting from 26 May 2011.
    I would like to understand on what basis the forecast explosion happens, does it considers any of the lead times such as manufacturing lead time, cumulative manufacturing lead time and offset the forecast backwards ?
    We are expecting the forecast date to appear post start date given during the submission of program, since the explode option is set as Yes, we are seeing past due forecast for exploded items, request your help here in understanding the forecast explosion during copy/merge forecast program.
    Thanks,
    Vignesh

    Hi Sandeep,
    The calendar dates are:
    1/24/2011     2/21/2011
    2/21/2011     3/28/2011
    3/28/2011     4/25/2011
    4/25/2011     5/26/2011
    5/26/2011     6/27/2011
    6/27/2011     7/25/2011
    7/25/2011     8/22/2011
    8/22/2011     9/26/2011
    9/26/2011     10/24/2011
    10/24/2011     11/21/2011
    11/21/2011     12/27/2011
    12/27/2011     1/23/2012
    Issue is when the start date is entered as 30th June 2011. When the forecast explosion happens, the exploded forecast date starts from 26th May 2011. Which becomes a past due forecast. We would like to understand why the exploded items goes to periods in the past. Some forecasts go back two periods. We are not able to find the pattern and it is not following the leadtime defined.
    I am not sure of the business reason for the forecast explosion to be done here instead in ASCP/MRP plan.
    Thanks,
    Vignesh

  • I do not understand the password manager.

    Help me understand this business of PW managers and the manner in which FF stores its passwords under a Master PW.
    Currently I use the extension Lastpass to store my passwords. The advantages are: 1) each PW is unique and strong (about forty of them which I could never remember otherwise); 2) the PW are stored on "their" servers in encrypted form so even if their servers were hacked, the PW would still be protected at least until they regained control of their servers AND LP does not have the master PW so even they cannot read my PW; 3) my PW are synced to my other devices (ipad, laptop) by my simply installing LP and logging into it with my master PW; 4) my PW are easily changed and on a regular basis since LP makes this process so easy.
    The only disadvantage to date is that in IE LP forces me to have an extra toolbar in order to work whereas in FF or Chrome it is a simple button that adds to my taskbar.
    Now... some still argue that having one's passwords stored on a server rather than one's own computer is putting them at risk. I will add that my banking and amazon pw are NOT stored anywhere but are in my mind. Still... I can partially see their argument against LP and Roboform managers.
    NOW... compare the above to Firefox. As I understand it, the passwords are stored on my own computer in encrypted form and under a master password... correct? Would they easily sync with my other devices? Would they be considered safer from hacking than they are currently on LP or Roboform? What are the advantages to letting FF do this rather than an extension like LP?

    Hi
    Gratuitous arp is used when a host wants to inform the switch that the mac-address has changed eg.
    You have a cluster which has redundant connections and an IP to mac-address mapping. If the active NIC fails the IP address is moved across to the standby NIC but the standby NIC has a different mac-address. So the cluster sends out a gratuitous arp which informs the switch of the new IP to mac-address mapping.
    The reason you might not want to allow gratuitous arp is that you might not want your switch updating it's arp table based on annoucements from devices on the LAN as you could very easily spoof mac-addresses and corrupt the arp cache.
    HTH
    Jon

  • Why is tabbed Finder useful? I do not understand the purpose

    I have used the Mac for many years, but do not understand why having tabs in the Finder is useful- can anyone explain why this is a big deal? The color tags also don't seem like it adds much, but I can at least understand the organizational logic.
    Why would someone open multiple Finder windows anyway?

    Fads, my friend, fads.  Someone at Apple wanted to get on the "tab" bandwagon and now they're trying to put tabs everywhere.  Even where it makes no sense at all and only complicates the user interface...
    Same thing with tags:  some people (Evernote, among others, is notable for refusing to allow more than two hierarchical levels) can't organize their documents in a hierarchical way.  Using nested folders, etc.
    They invented this "new" approach where you keep everything at the same hierarchical level, but add a (or several) flag to an item (file, folder) to make it a member of a "group".
    Same thing with the "look" of OS X.  There was the 3D epoch where the designers tended to make things stand out (icons, for example).  Now, we're entering the "flat look" epoch...
    Fads have a tendency to come and go.  In a while, we'll go on to something else, dreamed up be the latest "designer" to work on something...
    Bah...

  • I do not understand the compiler error message

    The code below is supposed to get multiple integer inputs from the console, place them on an array, and check for the NumberFormatException. When I compile it, it is giving an error message that I do not understand.
         A console program that accepts integer input from the user and throws a NumberFormatException if the entry is not an integer.
         Created on: August 20, 2003
    import javax.swing.*;
    import java.util.*;
    public class ArgstoNumbers2
         public static void main(String[] args)
              //Prompt user for input
              System.out.print("Enter a number: ");
              //Create and array to accept the user's input
              int [] integerArgs;
              //Fill array with users input
              while(true)
                   try
                        integerArgs = getInt();
                        break;
                   //Verfy that the input is an integer
                   catch (NumberFormatException e)
                        System.out.println("Not a number. Please enter a number.");
                        System.exit(1);
         //Start of the getInt() method
         public static int getInt()
              String numberString;
              int intVal = 0;
              boolean endChar = false;
              while(!endChar)
                   try
                        numberString = getString();
                        intVal = Integer.parseInt(numberString);
                        endChar = true;
                   catch (NumberFormatException e)
                        System.out.println("Not a number. Please enter a number.");
                        System.exit(1);
              return intVal;
         //End of the getInt() method
         //Start of the getString() method
         public static String getString()
              int aChar = -1;
              String consoleChars = "";
              boolean endChar = false;
                   while(!endChar)
                        try
                             aChar = System.in.read();
                             if ((aChar == 10) || (aChar == 13)) endChar = true;
                             else consoleChars = consoleChars + (char)aChar;
                        catch (Exception e)
                             System.out.println(e.getMessage());
                             System.exit(0);
              return consoleChars;
         //End of the getString() method

    Hi,
    A possible problem would be at line
    integerArgs = getInt();
    since here you would get an incompatible types error since 'integerArgs' is an array and 'getInt()' returns a primitive int value.
    This needs to be changed and then am sure your code should compile.
    Hope the above helps.
    John Morrison
    PS: As paul was saying, putting in the error message would be a faster way to get an answer since most developers on the forum would be hard pressed for time and may not be able to actually try out your code.

  • I do not understand the change to my monthly billi...

    This quarters bill was about £120 following a credit from the previous month of roughly £17. My phone usage is lower than ever with only a £1 worth of phone calls since the 23rd of December yet at the same time I have been asked to pay £192 this quarter. This will leave me with a credit of about £70 yet at the same time I was informed in December by BT staff that I would only be paying £44 a month. I have phoned bt and the telesales staff seem to be suggesting that I need to generate a credit on my account that is equivalent to the bill when it is issued. I do not understand this at all. When I agreed to a Monthly payment plan I was informed that all I would have to do was pay the debit owing every quarter and not have to seek to pay more to create a situation where my account is constantly in credit. Admittedly my patience is dwindling as I cannot understand why this is the case yet at the same time I have had staff refuse to clarify things for me. 

    Without details of how your bill is made up it's not possible to give precise advice, but problems of this nature often arise from a misunderstanding of how MPP works. That's not surprising since the call centre agents regularly seem to give inadequate or misleading advice.
    The monthly payment is calculated on the basis of any outstanding debit plus forward charges for the next quarter. It's not absolutely clear how BT arrive at the actual figure, but it's based on 6-monthly reviews. Here's a hypothetical calculation:
    Basic charges including line rental £40; approximate extras (eg call charges) £5; outstanding debit on last bill £30. Monthly payment will be (£40 + £5) x 6 = £270 + £30 = £300 ÷ 6 = £50. The effect is to recover the debit over the 6 months, resulting in a balance of roughly zero. Then the monthly payment can be adjusted again to align with the actual expected monthly cost.
    When my account fell behind due to one-off charges for new services, I adjsted the monthly payment myself in MyBT to bring the next bill to about zero. Then I adjusted it again to equal basic charges plus a bit for extras. The result has been that each of my bills since have been a pound or two either side of zero.
    Hope that helps. If you're still in doubt can you post the essential figures?
    You can click the white star next to this message if you think it was helpful.

  • Not understanding the String matches (regular Expression)

    Everytime I search I do not find any examples of java String's matches function.
    I am reading an input file and just want to print if it matches the pattern
    /thisdirectory/source_code/*.cc
    I even tried to test by doing
    if( line.matches("[a-z]") ){
    System.out.println("IT MATCHES");
    Which should just test if there is any letter a to z, which there is in the file but it never comes back as true that it fines a to z in the line.

    I totally understand what you are going through, maybe someone could shed some light on my problem as well.
    In my code the getText() method is pulling the text from a form being filled out. I am checking for validation of fields: But the problem is that my code wont compile with matches method inside these lines of code.:
    else if ( !firstTextField.getText().matches( "[A-Z][a-zA-Z]*" ) )
              JOptionPane.showMessageDialog(this, "Invalid First Name");
              else if(!lastTextField.getText().matches("[A-Z][a-zA-Z]*" ) )
                        JOptionPane.showMessageDialog(this, "Invalid Last Name");
              else if(!addressTextField.getText().matches("\\d+\\s+([a-zA-Z]+\\s[a-zA-Z]+") )
                        JOptionPane.showMessageDialog(this, "Invalid Address");
              else if(!cityTextField.getText().matches("[a-zA-Z]+|[a-zA-Z]+\\s[a-zA-Z]+") )
                        JOptionPane.showMessageDialog(this, "Invalid City");
              else if(!stateTextField.getText().matches("[a-zA-Z]+|[a-zA-Z]+\\s[a-zA-Z]+") )
                        JOptionPane.showMessageDialog(this, "Invalid State");
              else if(!zipTextField.getText().matches("\\d{5}") )
                        JOptionPane.showMessageDialog(this, "Invalid ZipCode");
              else if(!phoneTextField.getText().matches("[1-9\\d{2}-[1-9]\\d{2}-\\d{4}") )
                        JOptionPane.showMessageDialog(this, "Invalid Phone number. Please enter phone number in format 1-111-111-1111");
    The error I am receiving is:
    The method matches(String) is undefined for the type String.
    What gives?

Maybe you are looking for