I just run into an anoying little bug with SimpleDateFormat......

Try run this code:
Filename: Foo.java
import java.util.*;
import java.text.*;
public class Foo {
  public static void main(String args[]) {
    DateFormat df = new SimpleDateFormat("dd.MM.yyyy");
    Date date = null;
    try {
      date = df.parse("31.12.2002");
    } catch (Exception e) {
      e.printStackTrace();
    System.out.println("Date initiated: "+date.toString());
    df = new SimpleDateFormat("yyyy-ww");
    System.out.println("Week expected is 2003-01");
    System.out.println("Rendered week : "+df.format(date));
End of file
Output from code:
H:\>java Foo
Date initiated: Tue Dec 31 00:00:00 CET 2002
Week expected is 2003-01
Rendered week : 2002-01
Anyone know any workaround to get the expected result?
I am sitting on a DW project that has met this anoying little bug, and I have posted this to the bug parade aswell, but I have no time to wait for a new release of the JDK :) Hope you can help
My os:
Windows 2000 SP 2
My JDK version (cannot use 1.4):
java version "1.3.1_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
Java HotSpot(TM) Client VM (build 1.3.1_04-b02, mixed mode)
Any help is appreciated.

As Sun says, calculations using Date are ok for computers. but if you need to do things that people want to do with dates, use Calendar/GregorianCalendar. Here's a couple of examples
import java.util.*;
import java.text.*;
public class Calendar2 {
    public static void main(String[] args) {
        Calendar cal = Calendar.getInstance(); // today as Calendar obj;
        cal.add(cal.MONTH, 6);
        // change to Date object for better format control;
        Date sixMonthsFromNow = cal.getTime();
        // create custom format;
        DateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
        // apply format and print;
        System.out.println(sdf.format(sixMonthsFromNow));
import java.util.*;
public class Calendar1 {
    public static void main(String[] args) {
        Calendar cal = Calendar.getInstance();
        for( int n = 0; n < 7; n++ ) {
                System.out.println(cal.get(cal.DATE) + "/" + (cal.get(cal.MONTH) + 1) + "/" + cal.get(cal.YEAR));
                cal.add(cal.DATE, 1);
}

Similar Messages

  • Hello, I would just like to report the little problem with the apple store. When I try to download an app it loads for about 2 seconds and then it stops downloading! I don't know what's wrong

    Hi, when I try to download an application the app stores downloads it for about 2 seconds and then it stops downloading it! I don't know what's wrong?

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... (But can take Longer..)
    Release the Buttons...
    If no joy...Reset all settings
    Settings > General > Reset > Reset all Settings.
    This will return all iDevice settings to factory defaults... you will not lose any data.... But you will have to re-enter all of the device settings.

  • E71 Firmware Bug with USB Mass Storage.

    Hi,
    Just got a e71, it has the latest firmware, it's mostly good except for this bug.
    If you install a new theme on a memory card and then attempt to use the USB for mass storage it will always lock the card no matter how you disconnect from the USB, it always reports Memory card in use.
    What is supposed to happen is the phone is supposed to switch to a theme on the phone memory and unload the theme on the card, it does indeed switch themes, but does not unload the theme on the card, so the only way to free the card is to reboot the phone.
    If anyone from Nokia is looking at this forum, you guys need to fix these little bugs with the firmware.  A update to the OS the E71x is using would be nice by the way.  I paid a lot of money for this unlocked phone and expect it to be rock solid.

    I had this problem with the memory card. All you do is set the USB connection to PC suit and not Mass Storage. If it's in PC suit mode you don't loose the memory card and it always let you access it. I never bother with mass storage anymore. Also set to don't ask if you want. I ahve no issues since I di this and am using the 200 firmware.
    To transfer files to the card I go into my computer, double click the picture of the nokia E71 and then double click the memory card and access it that way. Hope this helps as it's a pain installing everything on the phone.
    Just another quick tip if you download the themes through your phone like me once installed and after a re-start something may try and install and fail once your phone starts up. It will do this everytime you re-start your phone. To fix the issue you have to browse the memory card with 'view hidden folders' selected in Windows and delete certain sis files from a certain folder. I can't remember off the top of my head but it explains it in another post in this forum. I can't take the credit for it.
    Ben 

  • Imovie '09 v8.0.5 bugs with speed change and titles

    OK so here is what I'm experiencing.
    I take a clip and change the speed. Then I add transition from the previous clip to this one and all of a sudden I cannot play the video again. I can't delete the slowed down clip even. I can play video that is in the events library, but not that in my project. When I do mouse over the beginning of my video and play I can hear the sound but it is like it is far off in the distance and the video is just solid gray. I have run into many other similar bugs when changing the speed of a clip but could always delete the clip, quit, relaunch, and try again. With this problem I added a transition and can't even delete the clip. Apple please address this issue. Thanks!

    I am having the exact same issue. Change the speed of a clip in the project, then the ongoing video screen no longer displays the project correctly (but does display when playing clips from the library). This happened recently as I've made several older projects on iMovie 09 using multiple speeds. Perhaps a bug with the 8.0.5 update.

  • Bug with block diagram labels in 2013

    I just reported a minor but interesting bug with the block diagram free labels in LabVIEW 2013.  If you attach a free label to a structure of any kind using the gluph in the bottom right corner of the comment then resize the structure in the direction of the comment it causes the entire block diagram to resize in that direction.
    Kelly Bersch
    Certified LabVIEW Developer
    Kudos are always welcome

    kbbersch wrote:
    I would disagree that the behavior is expected.  If the comment is not immediately next to the structure, but is a distance away, the block diagram does not resize if the comment is not attached to the structure but it does resize when the comment is attached.  I would expect the attachment arrow to simply get shorter unless the structure is resized so large that the comment has to move so as not to interfere.
    Expected behavior?  Nobody expects the Spanish Inquisition.
    I am afraid the problem here does lie with your expectations.  When you resize a structure and the new space is occupied by anything other than wires then LV will use "Make Space" to create room.  Make space obeys neither the laws of man or nature, it simply gets the job done with all  the subtlety of a steamroller.  I believe if there is something preventing Make Space from doing its job then NI engineers are automatically dispatched to your office with sledgehammers to fix the problem.
    I do, however, share your wish for a world where you do not expect LV to wreak untold havoc on your BD when attempting to make space or "clean up".  Here they should probably treat the connecting arrow more like a wire and less like a rigid object.  I'd say bug myself.

  • I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    Unfortunately, Safari cannot be updated past 5.1.10 on a Mac running v10.6.8.
    So, the options are to upgrade to a newer OS X or use Firefox or  Chrome.
    Be aware, Apple no longer support Snow Leopard v10.6 >  www.ibtimes.com/apple-kills-snow-leopard-os-x-106-no-longer-receives-security-u pdates-1558393
    See if your Mac can run v10.9 Mavericks >  OS X Mavericks: System Requirements
    If so, you can download and install Mavericks for free from the App Store.
    Read prior to upgrading >   Upgrading to 10.7 and above, don't forget Rosetta! | Apple Support Communities

  • I would like to put Dreamweaver 8 on a new computer.  There is no "deactivate" function and the technical support person I chatted with recommended I come here.  Can I just use the serial number again?  How can I deactive?  Has anyone else run into this?

      There is no "deactivate" function and the technical support person I chatted with recommended I come here.  Can I just use the serial number again?  How can I deactive?  Has anyone else run into this?  How can I get Dreamweaver 8, which is no longer being activated by Adobe, on a new computer?  Is it even worth doing or do I need to get a new version.  What are the killer features I'm missing?

    If you manage to get it installed on your current OS, don't forget to install the 8.02 update.
    Adobe - Dreamweaver Support Center : Updaters
    Nancy O.

  • Hi there i have just moved into a new pad and the internet is running on a proxy server how do i get my ATV2 to work ?

    Hi there i have just moved into a new pad and the internet is running on a proxy server how do i get my ATV2 to work ?

    Bladerider900 wrote:
    Thanks ...
    You're Welcome.

  • Illustrator Shape Builder Tool:  After the latest CC update, the tool alters shapes once edited instead of just removing/adding the desired shape.  Anyone else run into this and/or have any fixes?

    I am using a PC and installed the latest update of all the CC programs I use (AI, PS, AE, etc.) and within Illustrator I've noticed the Shape Builder Tool doesn't behave exactly as it did in the past. (And not in a good way.)
    Previous versions allowed me to edit/add/remove shapes from one another without issue (leaving all shape paths as they were before the editing while making the desired alterations), but the newest behavior seems to alter existing paths once shapes are merged/deleted making the tool almost non-usable. 
    Not sure if there's a check box I'm missing or what, but have done some brief research on the problem and haven't found anything helpful.  If anyone has run into this issue and/or knows a way to correct it, I would greatly appreciate it
    Thanks!

    Please show a screenshot before and after.

  • Tables running into each other on FF but ok in IE.  help please

    Need some help fixing my tables.  the top table is running into the bottom one in Firefox.  here is site - http://greenpwwhh.com/bi_weekly_mortgage.html
    code is
    <!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"><!-- InstanceBegin template="/Templates/financial_calculators.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>GreenP - Wealth, Wisdom, Health &amp; Happiness</title>
    <script language='Javascript'>
    //DO NOT REMOVE THIS COPYWRITE INFO!
    //Bi-Weekly Mortgage Calculator
    //By Daniel C. Peterson
    //Web Winder Website Services, 1997-2009  All Rights Reserved.
    //Distribution, editing or reselling of this script is strictyly prohibited
    //without expressed written permission from Daniel C. Peterson.
    //For commercial grade (professional) versions of this and many other
    //calculators, visit http://www.webwinder.com.
    function computeForm(form) {
        var pmt1 = form.payment.value;
        var pmt2 = form.payment.value / 2;
        var prin1 = form.principal.value;
        var prin2 = form.principal.value;
        var intPort1 = 0;
        var intPort2 = 0;
        var prinPort1 = 0;
        var prinPort2 = 0;
        var accumInt1 = 0;
        var accumPrin1 = 0;
        var accumInt2 = 0;
        var accumPrin2 = 0;
        var i = form.intRate.value;
        if (i > 1.0) {
            i = i / 100.0;
            form.intRate.value = i;
        var i1  = i  / 12;
        var i2 = i / 26;
        var count1 = 0;
        var count2 = 0;
        while(prin1 > 0) {
            intPort1 = prin1 * i1;
            prinPort1 = pmt1 - intPort1;
            prin1 = prin1 - prinPort1;
            accumPrin1 = accumPrin1 + prinPort1;
            accumInt1 = accumInt1 + intPort1;
            count1 = count1 + 1;
         if(count1 > 600) {
            break;
            } else {
            continue;
    if(count1 > 600) {
    alert("Using your entered terms you will never pay off this amount.  Please either lower the principal amount, lower the interest rate, or increase the payment amount.;")
            form.origInt.value = "";
            form.biwkInt.value = "";
            form.intSave.value = "";
            form.time.value = "";
            } else {
        form.origInt.value = "$" + parseInt(accumInt1,10);
        while(prin2 > 0) {
            intPort2 = prin2 * i2;
            prinPort2 = pmt2 - intPort2;
            prin2 = prin2 - prinPort2;
            accumPrin2 = accumPrin2 + prinPort2;
            accumInt2 = accumInt2 + intPort2;
            count2 = count2 + 1;
            if(count1 > 600) {break; } else {continue; }
        form.biwkInt.value = "$" + parseInt(accumInt2,10);
        form.intSave.value = "$" + parseInt(accumInt1 - accumInt2,10);
        form.time.value = "In essence, what you are really doing is adding a 13th payment to your annual number of payments, and splitting it up between 26 bi-weekly payments. Which in your case means that by coughing up and extra $" + parseInt(pmt1 / 26,10) + " every two weeks you will pay off your mortgage in " + parseInt(count2 /26*12,10) + " months instead of the current " + count1 + " months, and save $" + parseInt(accumInt1 - accumInt2) + " in mortgage interest in the process.  Now I ask you, is there anything else you would rather spend your $" + parseInt(accumInt1 - accumInt2) + " on besides interest?";
    function clearForm(form)
        form.principal.value = "";
        form.payment.value = "";
        form.intRate.value = "";
        form.intSave.value = "";
        form.origInt.value = "";
        form.biwkInt.value = "";
        form.time.value = "";
    </script>
    <!-- InstanceEndEditable -->
    <link href="main_page.css" rel="stylesheet" type="text/css" />
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .thrColFixHdr #sidebar1 { width: 180px; }
    .thrColFixHdr #sidebar2 { width: 190px; }
    </style>
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
    .thrColFixHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    <body class="thrColFixHdr">
    <div id="container">
      <div id="header">
        <div id="headerLogo"><img src="greenP_logo.gif" width="298" height="114" alt="logo" /></div>
        <div id="headerAd">Oh my gosh!! 100 customers just passed your register? Click here to get them</div>
        <h1> </h1>
        <!-- end #header -->
      </div>
      <div id="nav">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="index.html" class="thrColFixHdr">Home</a></li>
          <li><a href="#" class="thrColFixHdr">Wisdom</a></li>
          <li><a href="wealth.html" class="thrColFixHdr">Wealth</a></li>
          <li><a href="health.html" class="thrColFixHdr">Health</a></li>
          <li><a href="#" class="thrColFixHdr">Happiness</a></li>
          <li><a href="#" class="thrColFixHdr">Opportunities</a></li>
          <li><a href="#" class="thrColFixHdr MenuBarItemSubmenu">Stress Release</a>
            <ul>
              <li><a href="crossword_main_page.html">Crossword</a></li>
              <li><a href="jigsaw_things.html">Jigsaw</a></li>
            </ul>
          </li>
    <li><a href="#" class="thrColFixHdr">Achieved!</a></li>
          <li><a href="#" class="thrColFixHdr">Videos</a></li>
    <li><a href="membership.html" class="thrColFixHdr">Members</a></li>
          <li><a href="about_us.html" class="thrColFixHdr">About us</a></li>
        </ul>
      </div>
      <div id="search">
    <form name="fbsearch" method="get" action="http://ss662.fusionbot.com/b/q" style="margin:0;">
      <div align="left"><font size="2" face="arial"><a href="http://www.fusionbot.com" target="_blank">Site Search</a>:</font>
        <input type="text" name="keys" size="15">
        <input type="submit" value="GO">
        </div>
        <input type="hidden" name="sn" value="160516902">
    </form>
      </div>
      <div id="nav2"><a href="http://pub27.bravenet.com/chat/show.php?usernum=2253679465&cpv=2"><img src="_image/Chat-with-friends-&amp;-network.gif" width="173" height="25" alt="chat" /></a><a href="http://pub27.bravenet.com/calendar/show.php?usernum=2253679465"><img src="_image/calendar_button.gif" width="173" height="25" alt="calendar" /></a><a href="http://pub27.bravenet.com/postcard/post.php?usernum=2253679465"><img src="_image/Send-Some-Love-Today.gif" width="173" height="25" alt="send some love" /></a><a href="comments.html"><img src="_image/Your-comments-please.gif" width="173" height="25" alt="your comments" /></a></div>
      <div id="chat">
        <!-- Start Bravenet.com Service Code -->
        <div align="center"></div>
        <!-- End Bravenet.com Service Code -->
      </div>
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
      <p> </p>
      <div id="financialCalculatorTitles">
    <table width="670" border="1">
          <tr>
            <th scope="col"><a href="bi_weekly_mortgage.html">Cut your mortgage</a></th>
            <th scope="col"><a href="mortgage_refinance.html">Mortgage Refinance</a></th>
            <th scope="col"><a href="life_savings.html">Life Savings</a></th>
            <th scope="col"><a href="credit_cardmin_payment.html">Pay off your Credit Card </a></th>
            <th scope="col"><a href="car_cost_comparison.html">Compare Car Cost</a></th>
            <th scope="col"><a href="debt investment.html">Invest in your debt</a></th>
          </tr>
        </table>
      </div>
      <div id="financial_caqlculatorLeft">
        <p>Content for  id "financial_caqlculatorLeft" Goes Here</p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
      </div>
      <!-- InstanceBeginEditable name="calculators" -->
      <form method="post">
    <table BORDER="1" CELLSPACING="0" CELLPADDING="4">
    <tr>
    <td align="center" COLSPAN="2">
    <font face='arial'><big><strong>Bi-Weekly Mortgage Calculator</strong></big></font>
    </td>
    </tr>
    <tr>
    <td COLSPAN="2">
    <font face='arial'><small>This calculator will show you how much you will
    save if you make 1/2 of your mortgage payment every two weeks instead of making a full
    mortgage payment once a month. In effect, you will be making one extra mortgage payment
    per year--without hardly noticing the additional cash outflow. But, as your about to
    discover, you will certainly notice the increased cash flow that will occur when you pay
    your mortgage off way ahead of schedule!</small></font>
    </td>
    </tr>
    <tr>
    <td><font face='arial'><small>Enter the principal balance of your mortgage </small></font><br>
    <font face='tahoma,arial'><small><small>(call your mortgage lender and ask
    for the current payoff amount)</small></small></font>:</td>
    <td><input TYPE="text" NAME="principal" SIZE="15"></td>
    </tr>
    <tr>
    <td><font face='arial'><small>Enter the amount of your monthly mortgage payment:</small></font><br>
    <font face='tahoma,arial'><small><small>(principal and interest portion only)</small></small></font>:</td>
    <td><input TYPE="text" NAME="payment" SIZE="15"></td>
    </tr>
    <tr>
    <td><font face='arial'><small>Enter the your mortgage's current interest rate:</small></font></td>
    <td><input TYPE="text" NAME="intRate" SIZE="15"></td>
    </tr>
    <tr>
    <td align="center" colspan="2"><input TYPE="button" VALUE="Compute" onClick="computeForm(this.form)"> <input TYPE="reset" VALUE="Reset" onClick="clearForm(this.form)"></td>
    </tr>
    <tr>
    <td><font face='arial'><small>This is how much interest you will pay under your current monthly payment plan:</small></font></td>
    <td><input TYPE="text" NAME="origInt" SIZE="15"></td>
    </tr>
    <tr>
    <td><font face='arial'><small>This is how much interest you will pay if you switch to a bi-weekly mortgage
    payment plan:</small></font></td>
    <td><input TYPE="text" NAME="biwkInt" SIZE="15"></td>
    </tr>
    <tr>
    <td><font face='arial'><small>Bi-weekly Mortgage Interest Savings:</small></font></td>
    <td><input TYPE="text" NAME="intSave" SIZE="15"></td>
    </tr>
    <tr>
    <td align="center" COLSPAN="2"><textarea COLS="60" ROWS="6" name="time" wrap="virtual"></textarea></td>
    </tr>
    <tr>
    <td align="center" COLSPAN="2"><font face='tahoma,arial'><small><small>Copyright © 1997-2009<i> <a href='http://www.webwinder.com'>Web Winder Site Traffic Magnets</a></i>. All rights reserved.</small></small></font></td>
    </tr>
    </table>
    </form>
      <div id="financialCalculatorMain">
        <p> </p>
      </div>
      <!-- InstanceEndEditable -->
      <div id="financialCalculatorFooterAd">ADVERTISEMENT</div>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script><br class="clearfloat" />
      <div id="footer">
        <p>Copyright &copy; GreenP. All rights reserved. No reproduction of any kind without written permission</p>
        <!-- end #footer -->
      </div>
      <!-- end #container -->
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    <!-- InstanceEnd --></html>
    Thanks

    In that case, you'll need to fix those code errors on your DWT (Template) file.
    Now would be a good time to learn basic X/HTML code.  If you don't learn to recognize errors in Code View, matching doc type with code, proper syntax, etc... your problems will only escalate.
    Start here:
    http://www.w3schools.com/XHTML/xhtml_html.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • CSS divs running into each other 4x3 screens but not widescreen

    I am trying to develop a site:
    http://www.poweredupgamers.com.
    Everything looks great on a widescreen monitor, but when I view it
    on older 4x3 monitors the divs run into each other and the spacing
    gets all messed up. This occurs regardless of the resolution the
    monitors are using.
    I thought by setting up margins with % (5% left margin for
    left div, etc.) that the divs would change in size to fill the
    pages regardless of the resolution the monitor is set at. The divs
    do seem to adjust for the resolution, but the monitor format
    appears to be a different issue. Do I need to set fixed div
    positions or widths to fix this issue? If so, how do I set them to
    ensure the page is filled properly (as little blank space as
    possible) regardless of the monitor's resolution?
    Does it have anything to do with fixed sizes for certain
    images inside divs sizes based on % margins?
    Thanks very much for any help!

    Resolution is not the critical issue. Browser viewport width
    is. To make
    your decision you need to have some ideas about the following
    issues -
    1. What is the primary target demographic for this site?
    2. What are the browsing habits of that demographic? Do they
    normally have
    their browser window maximized on the screen?
    3. If they usually have their browser maximized, what is the
    typical screen
    width?
    4. If they usually do NOT have their browser maximized, what
    is the MINIMUM
    screen width in that demographic.
    5. How do I want to build the page?
    a. Fixed width and left aligned?
    b. Fixed width and centering?
    c. Flexible to fill whatever width from left to right?
    d. Flexible (within limits) and left aligned?
    e. Flexible (within limits) and centering?
    As you can see, this decision is probably much more complex
    than you
    thought, and will require that you know quite a bit about
    your intended
    target visitor and their browsing habits.
    If you elect to go with 5a, or 5b, then your decision would
    be - 'what is
    the mimimum browser width I want to support without
    horizontal scrolling?'.
    Once you have determined that minimum supported width, all of
    your decisions
    are made. That's how wide you want your page to be.
    If you elect to go with 5c, then you just build your page
    within a flexible
    container (the simplest example - although an obsolet one -
    would be to use
    a 100% width table to hold the entire page). Be aware that
    pages with
    limited text content can look VERY sparse and empty on wide
    viewports when
    built in this way.
    If you elect to go with 5d, or 5e, then you would add this
    sophistication to
    your decision matrix -
    'what is the greatest width I want to allow the page and its
    contents to
    become?'
    In this case, you would use the CSS styles - 'min-width' and
    'max-width' on
    the primary page container. Just so you'll know, although
    these styles are
    well supported *now*, earlier versions of IE (and some other
    browsers) will
    not support them so reliably.
    So - which is it? 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "juxtafras" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am trying to develop a site:
    http://www.poweredupgamers.com.
    Everything
    > looks great on a widescreen monitor, but when I view it
    on older 4x3
    > monitors
    > the divs run into each other and the spacing gets all
    messed up. This
    > occurs
    > regardless of the resolution the monitors are using.
    >
    > I thought by setting up margins with % (5% left margin
    for left div, etc.)
    > that the divs would change in size to fill the pages
    regardless of the
    > resolution the monitor is set at. The divs do seem to
    adjust for the
    > resolution, but the monitor format appears to be a
    different issue. Do I
    > need
    > to set fixed div positions or widths to fix this issue?
    If so, how do I
    > set
    > them to ensure the page is filled properly (as little
    blank space as
    > possible)
    > regardless of the monitor's resolution?
    >
    > Does it have anything to do with fixed sizes for certain
    images inside
    > divs
    > sizes based on % margins?
    >
    > Thanks very much for any help!
    >

  • IMac G5 won't boot and fan just runs

    I have an older iMac G5 that has always been a little flakey...it would just shut off for no reason intermittently.  For the most part, I could deal with that as this is no longer my primary Mac, but when I did the last iOS update, my external TimeMachine drive started getting errors - won't write because the drive was read only and now, when I turn on the computer, it won't boot...the fan just runs loudly.
    I researched this and tried the following:
    Reset the SMU - didn't resolve
    Unplugged everything and rebooted - didn't resolve
    So I have a couple questions since I'm ready to toss this computerI have a current Time Machine backup, but don't have a machine to restore to
    Is there a way for me to get at the Time Machine backup (I think I can just plug it into another Mac)?
    How can I get my iPhoto, iTunes, iMovie, etc. files off the backup and is there a way to import them into my existing applications on my MacBook Pro?
    Any help would be VERY much appreciated!! 

    You may have the old exchange/repair program power supply capacitor issue on your iMac.  You might be able to find another on my FAQ*:
    http://www.macmaps.com/usedrefurbished.html
    Note, recovering to an Intel Mac directly from Time Machine may not be practical because of various issues with compatibility.

  • IPod keeps running into errors when syncing

    I recently bought a classic from a friend (don't know if it's older classic or new-wave one) and whenever I connect it to my computer a message pops up saying there's an error with my device. When I try to sync, it loads anywhere from a couple to a couple hundred songs, then stops, often converting the music just put on into the "other" category rather than recognizing it as music. I've restored it countless times, tried using a different computer (that is also on a different operating system), checked for iTunes and iPod updates alike, enabled and disable disk use, and nothing seems to be helping. Is this iPod just toast, or is anyone else experiencing this?

    Ok- I have found a few things. If you have XP make sure that you are running the SP2. You can do that by running automatic updates or by going to Start->Windows update on the scroll menu and install the latest Windows updates. If you do auto updates you should be cool. If you are running on anything less than XP or Vista (like 2000)- you are out of luck. You will need to upgrade to XP or Vista.
    2nd option: http://docs.info.apple.com/article.html?artnum=304996
    3rd option: One guy said he tried downloading Winamp 5.5, transferred all of his songs then for fun wanted to sync to iTunes to see what it would do. Low and behold it worked for him.
    So far, I've done the 1st 2 and I am syncing now.....Seems there are some bugs with these. Hopefully in another update or 2 it will all be resolved.
    AHHHH!!!! I just got error -53!!!!
    I am officially discouraged. Apple for the love of God, please help and give hope. I would like for this to work. It's bad enough it will not work with the Philips DVD player without the AV cables. HELP!!!!!!!!!!

  • My macbook pro won't turn on. it just stays stuck on a white screen with a little circle spinning around and around when you power it on.

    my macbook pro won't turn on. it just stays stuck on a white screen with a little circle spinning around and around when you power it on. i don't know how to get it to progress past this loading page.

    Resetting your Mac's PRAM and NVRAM
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
    Reinstalling Mavericks, Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion, Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    If you are not using Lion, Mountain Lion, or Mavericks then use the following procedure:
    Resetting your Mac's PRAM and NVRAM
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
    Reinstall OS X without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • If for some reason u have the icon in your task bar (the one with 2 arrows pointing in a circle) just go into mobile me pref...click sync...and uncheck box show status in menu bar.  My question is, I do not have this option. How do I get the sync to stop

    "if for some reason u have the icon in your task bar (the one with 2 arrows pointing in a circle) just go into mobile me pref...click sync...and uncheck box show status in menu bar."
    I do not have the option box to "show status in menu bar"
    I tried the free for a little while Mobile me, and didn't use it, so cancled. I cannot get the sync status roundabout arrows out of my status bar. AND, they keep trying to sync.
    Another issue related with this is that during the time that I tried out Mobile me, I had my ical alarm set to go off every 2 hours. NOW my computer has an ical  pop-up every 2 hours. I cannot find how to stop it.
    Another issue, Yahoo is trying to sync with my computer and I have no idea why or where that one came from.
    Can anyone out there help me please. 

    "if for some reason u have the icon in your task bar (the one with 2 arrows pointing in a circle) just go into mobile me pref...click sync...and uncheck box show status in menu bar."
    I do not have the option box to "show status in menu bar"
    I tried the free for a little while Mobile me, and didn't use it, so cancled. I cannot get the sync status roundabout arrows out of my status bar. AND, they keep trying to sync.
    Another issue related with this is that during the time that I tried out Mobile me, I had my ical alarm set to go off every 2 hours. NOW my computer has an ical  pop-up every 2 hours. I cannot find how to stop it.
    Another issue, Yahoo is trying to sync with my computer and I have no idea why or where that one came from.
    Can anyone out there help me please. 

Maybe you are looking for

  • Horrible colors in Safari 2.0.4

    Along with the new Mac Pro came Safari 2.0.4, and a surprise that I could do without. The images on my photo-site - www.Peermann.com - are way too contrasty and saturated when viewed in Safari 2.0.4; almost as bad as in ancient versions of Internet E

  • Empty LOV on webi

    Hi there, I created an OLAP universe on bw query, and created a webi on that universe.  LOVs of all variables are empty, while executing on BEx web anlyzer, variable value candidates are not empty.  Any insight? The env is BOE XI 3.1 SP2 + BW 7.0018

  • Static vs Non static

    Hi, I was just not clear as to how does the compiler handle Static members. As far as fields are concerned if they are declared static, they are created on the HEAP and are shared by all the class instances. However, what i want to know is what happe

  • After Effects CS6: Cache and Reload Footage Problem

    After Effects CS6: Cache and Reload Footage Problem I am having trouble getting my footage to update in an AE project.  In an existing project, there is an image sequence in a composition.  I have saved and closed AE, modified the footage (same dimen

  • Firefox is saving passwords, but not saving them to my Keychain (Mac). Why?

    My web passwords are usually saved both in Firefox and the Mac Keychain Manager. Recently I've noticed that there are many passwords saved in Firefox but not in Keychain Manager. Why is this, and does the problem lie in Firefox or Keychain Manager.