Top 5 index

hi , i hv use oracle 10g database control , i hv findout top 5 index , but how
can findout , i hv also try ASH or AWR but their is no result, pls tell me anyybody how can find out top 5 indexes

Is this do you want ?
SQL> select *
  2  from (select segment_name, PARTITION_NAME, bytes/1024/1024 IndexSizeMb, segment_type
  3        from   dba_segments
  4        where  segment_type like 'INDEX%'
  5        order by bytes desc)
  6* where rownum <=5
SQL> /
SEGMENT_NAME            PARTITION_NAME                 INDEXSIZEMB SEGMENT_TYPE            
PS_GP_GL_DATA                                                 3640 INDEX                   
PS_GP_RSLT_ACUM         SYS_SUBP647                           2175 INDEX SUBPARTITION      
PSAGP_GL_DATA                                                 2140 INDEX                   
PS_GP_RSLT_ACUM         SYS_SUBP665                           2025 INDEX SUBPARTITION      
PS_GP_RSLT_ACUM         SYS_SUBP626                           1825 INDEX SUBPARTITION       Nicolas.

Similar Messages

  • How to remove value from a vector (from its top index 0)

    HI Friends
    A basic question. In my code i am adding values in vector (v). Now i want to remove the values from the top of the vector (from index 0) and move them in an variable temp. How can i do it. I know there is a method remove in vector. but i am not sure how to use it.Can anybody show me how to do this?
    here is my peice of code
       public void result (){
            int temp1,temp2;
            for(int i=0; i<=  3000;i++){
               v.removeElement(i);
           }Thanks alot in advance

    Well, i'm Not sure what ur problem is...?!?
    Do U mean to say,
    You need to just remove the 0'th element from a Vector & store THAT in a element called temp..?!?
    Plz. have a look at the Vector class API in (for Java 1.4)
    http://java.sun.com/j2se/1.4.2/docs/api/
    There's a remove( ) which takes the index of the element to be removed...
    In ur case, u could say, for example
    Object temp = myVector.remove(0);or more appropriately,
    SomeType temp;
    temp = (SomeType)myVector.remove(0);--fritz                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Data Collection to Word Report array indexing

    Hi guys,
    Just need a bit of help deciding if I am measuring what i'm supposed to be. I'm trying to write the code for an automated collection of results, before i get the equipment to do it.
    Basically, I will have 3 voltages going into analog inputs and one digital input going into my DAQ.
    Two of the analog inputs need a single voltage recorded every minute for a hour. (at the minute i think my code samples one voltage every half second for 5 seconds, but i can easily change the timings of the loop) 
    Does the array indexing i'm using seperate the voltages read from each channel -  ie does the top index array (index 0) read the voltage from aI0? 
    By enabling indexing at the edge of the for loop i think i'm passing the single voltage (from each channel) read every loop iteration into the report graph, am i?
    Any help would be most appreciated
    Thanks,
    Christian
    p.s. This thread contains the whole problem i am trying to solve: http://forums.ni.com/t5/LabVIEW/Multiple-analog-inputs-performing-different-tasks/m-p/1163471#M50845...
    p.s. I realise i have posted this question in another thread already, but i did that by mistake!
    "If anyone needs me, I'll be in the Angry Dome!"
    Attachments:
    DAQ to report.vi ‏183 KB

    Hi,
    The task description is very confusing.
    - Why you use update mode Delete All? -- Why not delete uploaded data or Overwrite? -- incoming data are already discriminating by the cons unit, where is overlapping?
    - Why you need to add a new characteristic to the selection of target like company? You have a ConsUnit, an Investee unit etc. Why a new char?

  • Index entries disappear in chm output

    Product: TCS 1 (FM8 ver 0p277 + RH7 ver 7.03.001)
    All my text and index markers are created in FM and then imported into RH7. This works well, but the problem occurs when the FM index has a format similar to the following example:
    Commands: for standard users
    Commands: for super users
    where Commands is the top index marker, which doesn't have a link in its own right.
    Although the import is OK and the entries appear in the RH index list, the Commands entry has a cross-reference property. The problem occurs when the chm or html files are created. The Commands entry disappears and its sub-entries become sub-entries to the previous index top entry with a proper link.
    I have found a work around for this problem, to go thro' my RH index list and clear the Cross-reference check mark in the Index Keyword Properties box. Unfortunately, this is labour intensive.
    Does anyone have a solution? Is there some import setting that automatically does what I have to do manually?

    Product: TCS 1 (FM8 ver 0p277 + RH7 ver 7.03.001)
    All my text and index markers are created in FM and then imported into RH7. This works well, but the problem occurs when the FM index has a format similar to the following example:
    Commands: for standard users
    Commands: for super users
    where Commands is the top index marker, which doesn't have a link in its own right.
    Although the import is OK and the entries appear in the RH index list, the Commands entry has a cross-reference property. The problem occurs when the chm or html files are created. The Commands entry disappears and its sub-entries become sub-entries to the previous index top entry with a proper link.
    I have found a work around for this problem, to go thro' my RH index list and clear the Cross-reference check mark in the Index Keyword Properties box. Unfortunately, this is labour intensive.
    Does anyone have a solution? Is there some import setting that automatically does what I have to do manually?

  • Custom graphics in java.awt.ScrollPane

    Hi all,
    I have to draw a custom created image in a scroll pane. As the image is very large I want to display it in a scroll pane. As parts of the image may change within seconds, and drawing the whole image is very time consuming (several seconds) I want to draw only the part of the image that is currently visible to the user.
    My idea: creating a new class that extends from java.awt.ScrollPane, overwrite the paint(Graphics) method and do the drawings inside. Unfortunately, it does not work. The background of the scoll pane is blue, but it does not show the red box (the current viewport is not shown in red).
    Below please find the source code that I am using:
    package graphics;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.ScrollPane;
    import java.awt.event.AdjustmentEvent;
    public class CMyComponent extends ScrollPane {
         /** <p>Listener to force a component to repaint when a scroll bar changes its
          * position.</p>
         private final class ScrollBarAdjustmentListener implements java.awt.event.AdjustmentListener {
              /** <p>The component to force to repaint.</p> */
              private final Component m_Target;
              /** <p>Default constructor.</p>
               * @param Target The component to force to repaint.
              private ScrollBarAdjustmentListener(Component Target) { m_Target = Target; }
              /** <p>Forces to component to repaint upon adjustment of the scroll bar.</p>
               *  @see java.awt.event.AdjustmentListener#adjustmentValueChanged(java.awt.event.AdjustmentEvent)
              public void adjustmentValueChanged(AdjustmentEvent e) { m_Target.paint(m_Target.getGraphics()); }
         public CMyComponent() {
              // Ensure that the component repaints upon changing of the scroll bars
              ScrollBarAdjustmentListener sbal = new ScrollBarAdjustmentListener(this);
              getHAdjustable().addAdjustmentListener(sbal);
              getVAdjustable().addAdjustmentListener(sbal);
         public void paint(Graphics g) {
              setBackground(Color.BLUE);
              g.setColor(Color.RED);
              g.fillRect(getScrollPosition().x, getScrollPosition().y, getViewportSize().width, getViewportSize().height);
         public final static void main(String[] args) {
              java.awt.Frame f = new java.awt.Frame();
              f.add(new CMyComponent());
              f.pack();
              f.setVisible(true);
    }

    Dear all,
    I used the last days and tried several things. I think now I have a quite good working solution (just one bug remains) and it is very performant. To give others a chance to see what I have done I post the source code of the main class (a canvas drawing and implementing scrolling) here. As soon as the sourceforge project is accepted, I will publish the whole sources at there. Enjoy. And if you have some idea for my last bug in getElementAtPixel(Point), then please tell me.
    package internetrail.graphics.hexgrid;
    import java.awt.Canvas;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.Point;
    import java.awt.Polygon;
    import java.awt.event.ComponentEvent;
    import java.awt.event.ComponentListener;
    import java.awt.geom.Area;
    import java.awt.image.BufferedImage;
    import java.util.WeakHashMap;
    import java.util.Map;
    /** <p>Hex grid view.</p>
    * <p>Visualizes a {@link IHexGridModel}.</p>
    * @version 0.1, 03.06.2006
    * @author Bjoern Wuest, Germany
    public final class CHexGridView extends Canvas implements ComponentListener, IHexGridElementListener {
         /** <p>Serial version unique identifier.</p> */
         private static final long serialVersionUID = -965902826101261530L;
         /** <p>Instance-constant parameter for the width of a hex grid element.</p> */
         public final int CONST_Width;
         /** <p>Instance-constant parameter for 1/4 of the width of a hex grid element.</p> */
         public final int CONST_Width1fourth;
         /** <p>Instance-constant parameter for 3/4 of the width of a hex grid element.</p> */
         public final int CONST_Width3fourth;
         /** <p>Instance-constant parameter for 1.5 times of the width of a hex grid element.</p> */
         public final int CONST_Width1dot5;
         /** <p>Instance-constant parameter for 4 times of the width of a hex grid element.</p> */
         public final int CONST_Widthquad;
         /** <p>Instance-constant parameter for the height of a hex grid element.</p> */
         public final int CONST_Height;
         /** <p>Instance-constant parameter for 1/2 of the height of a hex grid element.</p> */
         public final int CONST_Heighthalf;
         /** <p>Instance-constant parameter for the double height of a hex grid element.</p> */
         public final int CONST_Heightdouble;
         /** <p>The steepness of a side of the hex grid element (calculated for the upper left arc).</p> */
         public final double CONST_Steepness;
         /** <p>The model of this hex grid </p> */
         private final IHexGridModel m_Model;
         /** <p>A cache for already created images of the hex map.</p> */
         private final Map<Point, Image> m_Cache = new WeakHashMap<Point, Image>();
         /** <p>The graphical area to draw the selection ring around a hex element.</p> */
         private final Area m_SelectionRing;
         /** <p>The image of the selection ring around a hex element.</p> */
         private final BufferedImage m_SelectionRingImage;
         /** <p>The current position of the hex grid in pixels (top left visible corner).</p> */
         private Point m_ScrollPosition = new Point(0, 0);
         /** <p>Flag to define if a grid is shown ({@code true}) or not ({@code false}).</p> */
         private boolean m_ShowGrid = true;
         /** <p>Flag to define if the selected hex grid element should be highlighted ({@code true}) or not ({@code false}).</p> */
         private boolean m_ShowSelected = true;
         /** <p>The offset of hex grid elements shown on the screen, measured in hex grid elements.</p> */
         private Point m_CurrentOffset = new Point(0, 0);
         /** <p>The offset of the image shown on the screen, measured in pixels.</p> */
         private Point m_PixelOffset = new Point(0, 0);
         /** <p>The index of the currently selected hex grid element.</p> */
         private Point m_CurrentSelected = new Point(0, 0);
         /** <p>The width of a buffered pre-calculated image in pixel.</p> */
         private int m_ImageWidth;
         /** <p>The height of a buffered pre-calculated image in pixel.</p> */
         private int m_ImageHeight;
         /** <p>The maximum number of columns of hex grid elements to be shown at once on the screen.</p> */
         private int m_MaxColumn;
         /** <p>The maximum number of rows of hex grid elements to be shown at once on the screen.</p> */
         private int m_MaxRow;
         /** <p>Create a new hex grid view.</p>
          * <p>The hex grid view is bound to a {@link IHexGridModel} and registers at
          * that model to listen for {@link IHexGridElement} updates.</p>
          * @param Model The model backing this view.
         public CHexGridView(IHexGridModel Model) {
              // Set the model
              m_Model = Model;
              CONST_Width = m_Model.getElementsWidth();
              CONST_Height = m_Model.getElementsHeight();
              CONST_Width1fourth = CONST_Width/4;
              CONST_Width3fourth = CONST_Width*3/4;
              CONST_Width1dot5 = CONST_Width*3/2;
              CONST_Heighthalf = CONST_Height/2;
              CONST_Widthquad = CONST_Width*4;
              CONST_Heightdouble = CONST_Height*2;
              CONST_Steepness = (double)CONST_Heighthalf / CONST_Width1fourth;
              m_ImageWidth = getSize().width+CONST_Widthquad;
              m_ImageHeight = getSize().height+CONST_Heightdouble;
              m_MaxColumn = m_ImageWidth / CONST_Width3fourth;
              m_MaxRow = m_ImageHeight / CONST_Height;
              // Register this canvas for various notifications
              m_Model.addElementListener(this);
              addComponentListener(this);
              // Create the selection ring to highlight hex grid elements
              m_SelectionRing = new Area(new Polygon(new int[]{-1, CONST_Width1fourth-1, CONST_Width3fourth+1, CONST_Width+1, CONST_Width3fourth+1, CONST_Width1fourth-1}, new int[]{CONST_Heighthalf, -1, -1, CONST_Heighthalf, CONST_Height+1, CONST_Height+1}, 6));
              m_SelectionRing.subtract(new Area(new Polygon(new int[]{2, CONST_Width1fourth+2, CONST_Width3fourth-2, CONST_Width-2, CONST_Width3fourth-2, CONST_Width1fourth+2}, new int[]{CONST_Heighthalf, 2, 2, CONST_Heighthalf, CONST_Height-2, CONST_Height-2}, 6)));
              m_SelectionRingImage = new BufferedImage(CONST_Width, CONST_Height, BufferedImage.TYPE_INT_ARGB);
              Graphics2D g = m_SelectionRingImage.createGraphics();
              g.setColor(Color.WHITE);
              g.fill(m_SelectionRing);
         @Override public synchronized void paint(Graphics g2) {
              // Caculate the offset of indexes to show
              int offsetX = 2 * (m_ScrollPosition.x / CONST_Width1dot5) - 2;
              int offsetY = (int)(Math.ceil(m_ScrollPosition.y / CONST_Height) - 1);
              m_CurrentOffset = new Point(offsetX, offsetY);
              // Check if the image is in the cache
              Image drawing = m_Cache.get(m_CurrentOffset);
              if (drawing == null) {
                   // The image is not cached, so draw it
                   drawing = new BufferedImage(m_ImageWidth, m_ImageHeight, BufferedImage.TYPE_INT_ARGB);
                   Graphics2D g = ((BufferedImage)drawing).createGraphics();
                   // Draw background
                   g.setColor(Color.BLACK);
                   g.fillRect(0, 0, m_ImageWidth, m_ImageHeight);
                   // Draw the hex grid
                   for (int column = 0; column <= m_MaxColumn; column += 2) {
                        for (int row = 0; row <= m_MaxRow; row++) {
                             // Draw even column
                             IHexGridElement element = m_Model.getElementAt(offsetX + column, offsetY + row);
                             if (element != null) { g.drawImage(element.getImage(m_ShowGrid), (int)(column*(CONST_Width3fourth-0.5)), CONST_Height*row, null); }
                             // Draw odd column
                             element = m_Model.getElementAt(offsetX + column+1, offsetY + row);
                             if (element!= null) { g.drawImage(element.getImage(m_ShowGrid), (int)(column*(CONST_Width3fourth-0.5)+CONST_Width3fourth), CONST_Heighthalf*(row*2+1), null); }
                   // Put the image into the cache
                   m_Cache.put(m_CurrentOffset, drawing);
              // Calculate the position of the image to show
              offsetX = CONST_Width1dot5 + (m_ScrollPosition.x % CONST_Width1dot5);
              offsetY = CONST_Height + (m_ScrollPosition.y % CONST_Height);
              m_PixelOffset = new Point(offsetX, offsetY);
              g2.drawImage(drawing, -offsetX, -offsetY, null);
              // If the selected element should he highlighted, then do so
              if (m_ShowSelected) {
                   // Check if the selected element is on screen
                   if (isElementOnScreen(m_CurrentSelected)) {
                        // Correct vertical offset for odd columns
                        if ((m_CurrentSelected.x % 2 == 1)) { offsetY -= CONST_Heighthalf; }
                        // Draw the selection circle
                        g2.drawImage(m_SelectionRingImage, (m_CurrentSelected.x - m_CurrentOffset.x) * CONST_Width3fourth - offsetX - ((m_CurrentSelected.x + 1) / 2), (m_CurrentSelected.y - m_CurrentOffset.y) * CONST_Height - offsetY, null);
         @Override public synchronized void update(Graphics g) { paint(g); }
         public synchronized void componentResized(ComponentEvent e) {
              // Upon resizing of the component, adjust several pre-calculated values
              m_ImageWidth = getSize().width+CONST_Widthquad;
              m_ImageHeight = getSize().height+CONST_Heightdouble;
              m_MaxColumn = m_ImageWidth / CONST_Width3fourth;
              m_MaxRow = m_ImageHeight / CONST_Height;
              // And flush the cache
              m_Cache.clear();
         public void componentMoved(ComponentEvent e) { /* do nothing */ }
         public void componentShown(ComponentEvent e) { /* do nothing */ }
         public void componentHidden(ComponentEvent e) { /* do nothing */ }
         public synchronized void elementUpdated(IHexGridElement Element) {
              // Clear cache where the element may be contained at
              for (Point p : m_Cache.keySet()) { if (isElementInScope(Element.getIndex(), p, new Point(p.x + m_MaxColumn, p.y + m_MaxRow))) { m_Cache.remove(p); } }
              // Update the currently shown image if the update element is shown, too
              if (isElementOnScreen(Element.getIndex())) { repaint(); }
         /** <p>Returns the model visualized by this grid view.</p>
          * @return The model visualized by this grid view.
         public IHexGridModel getModel() { return m_Model; }
         /** <p>Returns the current selected hex grid element.</p>
          * @return The current selected hex grid element.
         public IHexGridElement getSelected() { return m_Model.getElementAt(m_CurrentSelected.x, m_CurrentSelected.y); }
         /** <p>Sets the current selected hex grid element by its index.</p>
          * <p>If the selected hex grid element should be highlighted and is currently
          * shown on the screen, then this method will {@link #repaint() redraw} this
          * component automatically.</p>
          * @param Index The index of the hex grid element to become the selected one.
          * @throws IllegalArgumentException If the index refers to a non-existing hex
          * grid element.
         public synchronized void setSelected(Point Index) throws IllegalArgumentException {
              // Check that the index is valid
              if ((Index.x < 0) || (Index.y < 0) || (Index.x > m_Model.getXElements()) || (Index.y > m_Model.getYElements())) { throw new IllegalArgumentException("There is no hex grid element with such index."); }
              m_CurrentSelected = Index;
              // If the element is on screen and should be highlighted, then repaint
              if (m_ShowSelected && isElementOnScreen(m_CurrentSelected)) { repaint(); }
         /** <p>Moves the visible elements to the left by the number of pixels.</p>
          * <p>To move the visible elements to the left by one hex grid element, pass
          * {@link #CONST_Width3fourth} as the parameter. The component will
          * automatically {@link #repaint()}.</p>
          * @param Pixels The number of pixels to move to the left.
          * @return The number of pixels moved to the left. This is always between 0
          * and {@code abs(Pixels)}.
         public synchronized int moveLeft(int Pixels) {
              int delta = m_ScrollPosition.x - Math.max(0, m_ScrollPosition.x - Math.max(0, Pixels));
              if (delta != 0) {
                   m_ScrollPosition.x -= delta;
                   repaint();
              return delta;
         /** <p>Moves the visible elements up by the number of pixels.</p>
          * <p>To move the visible elements up by one hex grid element, pass {@link
          * #CONST_Height} as the parameter. The component will automatically {@link
          * #repaint()}.</p>
          * @param Pixels The number of pixels to move up.
          * @return The number of pixels moved up. This is always between 0 and {@code
          * abs(Pixels)}.
         public synchronized int moveUp(int Pixels) {
              int delta = m_ScrollPosition.y - Math.max(0, m_ScrollPosition.y - Math.max(0, Pixels));
              if (delta != 0) {
                   m_ScrollPosition.y -= delta;
                   repaint();
              return delta;
         /** <p>Moves the visible elements to the right by the number of pixels.</p>
          * <p>To move the visible elements to the right by one hex grid element, pass
          * {@link #CONST_Width3fourth} as the parameter. The component will
          * automatically {@link #repaint()}.</p>
          * @param Pixels The number of pixels to move to the right.
          * @return The number of pixels moved to the right. This is always between 0
          * and {@code abs(Pixels)}.
         public synchronized int moveRight(int Pixels) {
              int delta = Math.min(m_Model.getXElements() * CONST_Width3fourth + CONST_Width1fourth - getSize().width, m_ScrollPosition.x + Math.max(0, Pixels)) - m_ScrollPosition.x;
              if (delta != 0) {
                   m_ScrollPosition.x += delta;
                   repaint();
              return delta;
         /** <p>Moves the visible elements down by the number of pixels.</p>
          * <p>To move the visible elements down by one hex grid element, pass {@link
          * #CONST_Height} as the parameter. The component will automatically {@link
          * #repaint()}.</p>
          * @param Pixels The number of pixels to move down.
          * @return The number of pixels moved down. This is always between 0 and
          * {@code abs(Pixels)}.
         public synchronized int moveDown(int Pixels) {
              int delta = Math.min(m_Model.getYElements() * CONST_Height + CONST_Heighthalf - getSize().height, m_ScrollPosition.y + Math.max(0, Pixels)) - m_ScrollPosition.y;
              if (delta != 0) {
                   m_ScrollPosition.y += delta;
                   repaint();
              return delta;
         /** <p>Checks if the hex grid element of the given index is currently
          * displayed on the screen (even just one pixel).</p>
          * <p>The intention of this method is to check if a {@link #repaint()} is
          * necessary or not.</p>
          * @param ElementIndex The index of the element to check.
          * @return {@code true} if the hex grid element of the given index is
          * displayed on the screen, {@code false} if not.
         public synchronized boolean isElementOnScreen(Point ElementIndex) { return isElementInScope(ElementIndex, m_CurrentOffset, new Point(m_CurrentOffset.x + m_MaxColumn, m_CurrentOffset.y + m_MaxRow)); }
         /** <p>Checks if the hex grid element of the given index is within the given
          * indexes.</p>
          * <p>The intention of this method is to check if a {@link #repaint()} is
          * necessary or not.</p>
          * @param ElementIndex The index of the element to check.
          * @param ReferenceIndexLeftTop The left top index of the area to check.
          * @param ReferenceIndexRightBottom The right bottom index of the area to check.
          * @return {@code true} if the hex grid element of the given index is within
          * the given area, {@code false} if not.
         public synchronized boolean isElementInScope(Point ElementIndex, Point ReferenceIndexLeftTop, Point ReferenceIndexRightBottom) { if ((ElementIndex.x >= ReferenceIndexLeftTop.x) && (ElementIndex.x <= ReferenceIndexRightBottom.x) && (ElementIndex.y >= ReferenceIndexLeftTop.y) && (ElementIndex.y <= (ReferenceIndexRightBottom.y))) { return true; } else { return false; } }
         /** <p>Return the {@link IHexGridElement hex grid element} shown at the given
          * pixel on the screen.</p>
          * <p><b>Remark: There seems to be a bug in retrieving the proper element,
          * propably caused by rounding errors and unprecise pixel calculations.</p>
          * @param P The pixel on the screen.
          * @return The {@link IHexGridElement hex grid element} shown at the pixel.
         public synchronized IHexGridElement getElementAtPixel(Point P) {
              // @FIXME Here seems to be some bugs remaining
              int dummy = 0; // Variable for warning to indicate that there is something to do :)
              // Calculate the pixel on the image, not on the screen
              int px = P.x + m_PixelOffset.x;
              int py = P.y + m_PixelOffset.y;
              // Determine the x-index of the column (is maybe decreased by one)
              int x = px / CONST_Width3fourth + m_CurrentOffset.x;
              // If the column is odd, then shift the y-pixel by half element height
              if ((x % 2) == 1) { py -= CONST_Heighthalf; }
              // Determine the y-index of the row (is maybe decreased by one)
              int y = py / CONST_Height + m_CurrentOffset.y;
              // Normative coordinates to a single element
              px -= (x - m_CurrentOffset.x) * CONST_Width3fourth;
              py -= (y - m_CurrentOffset.y) * CONST_Height;
              // Check if the normative pixel is in the first quarter of a column
              if (px < CONST_Width1fourth) {
                   // Adjustments to the index may be necessary
                   if (py < CONST_Heighthalf) {
                        // We are in the upper half of a hex-element
                        double ty = CONST_Heighthalf - CONST_Steepness * px;
                        if (py < ty) { x--; }
                   } else {
                        // We are in the lower half of a hex-element
                        double ty = CONST_Heighthalf + CONST_Steepness * px;
                        if (py > ty) {
                             x--;
                             y++;
              return m_Model.getElementAt(x, y);
    }Ah, just to give you some idea: I use this component to visualize a hex grid map with more than 1 million grid elements. And it works, really fast, and requires less than 10 MByte of memory.

  • Performance of query in report..

    Hi All,
    We have the below SQL which is taking 6-8 hrs to execute. Of which 'analysis_results_details' is huge table with 329 million records, its "IOT - TOP" [index oraganised] table.
    Can you please suggest some idea how to improve the performance of the query... Apologies if the format is correct tried my best
    DB details :- 10g (10.1.0.5.0) - 64 bit.
    SELECT   CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'
                   THEN 'UK/Ireland'
                ELSE ctr.region
             END AS region_name,
             t.reinsurance_treatment_desc AS reinsurance_treatment,
             CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'
                   THEN 'UK Runoff'
                ELSE rlc.country_code
             END AS country_code,       
             ars.currency_code, rln.management_line_of_business AS aog_line,
             rln.reserving_class, rln.reserving_line, rln.reserving_line_id,
            CASE
                WHEN UPPER (a.NAME) NOT LIKE 'PCSUMM%'
                   THEN ''
                ELSE CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUMM1 %'
                   THEN 'Attritional'
                WHEN UPPER (a.NAME) LIKE 'PCSUMM2 %'
                   THEN 'Large Loss'
                WHEN UPPER (a.NAME) LIKE 'PCSUMM4 %'
                   THEN 'Total'
                ELSE 'Cat'
             END
             END AS claim_type,
            CASE
                WHEN MOD (ard.exposure_period, 100) IN (1, 2, 3)
                   THEN TO_DATE
                          (TO_CHAR (TRUNC (ard.exposure_period / 100)) || '0101',
                           'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (4, 5, 6)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0401',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (7, 8, 9)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0701',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (10, 11, 12)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '1001',
                                 'yyyymmdd'
             END AS origin_date,
            CASE
                WHEN MOD (ard.evaluation_period, 100) IN
                                                   (1, 2, 3)
                   THEN TO_DATE
                          (TO_CHAR (TRUNC (ard.evaluation_period / 100)) || '0331',
                           'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (4, 5, 6)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0630',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (7, 8, 9)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0930',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (10, 11, 12)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '1231',
                                 'yyyymmdd'
             END AS development_date,
             SUM (DECODE (ars.data_type_id, 1, NVL (ard.VALUE, 0), 0)
                 ) AS earned_premium,
             SUM (DECODE (ars.data_type_id, 12, NVL (ard.VALUE, 0), 0)
                 ) AS paid_losses_and_alae,
             SUM (DECODE (ars.data_type_id, 27, NVL (ard.VALUE, 0), 0)
                 ) AS total_incurred_losses_inc_alae,
             SUM (DECODE (ars.data_type_id, 6, NVL (ard.VALUE, 0), 0)
                 ) AS paid_loss_total,
             SUM (DECODE (ars.data_type_id, 9, NVL (ard.VALUE, 0), 0)
                 ) AS alae_total,
             SUM (DECODE (ars.data_type_id, 13, NVL (ard.VALUE, 0), 0)
                 ) AS case_os_total,
             SUM (DECODE (ars.data_type_id, 3, NVL (ard.VALUE, 0), 0)
                 ) AS written_premium,                       
             SUM (DECODE (ars.data_type_id, 33, NVL (ard.VALUE, 0), 0)
                 ) AS total_claim_counts,                 
             SUM (DECODE (ars.data_type_id, 31, NVL (ard.VALUE, 0), 0)
                 ) AS open_claim_counts,                 
             SUM (DECODE (ars.data_type_id, 32, NVL (ard.VALUE, 0), 0)
                 ) AS closed_claim_counts,               
             SUM (DECODE (ars.data_type_id, 21, NVL (ard.VALUE, 0), 0)
                 ) AS total_case_inc_loss,                     
             SYSDATE AS export_date
        FROM res_line_country rlc,
             res_line_names rln,
             risk_history.analysis_results_criteria arc,
             (SELECT   al.analysis_id,
                       MAX (al.lob_type_id) AS lob_type_id
                  FROM analysis_lobs al
              GROUP BY analysis_id) al_types,
             analyses a,
             treatments t,
             risk_history.analysis_lobs al,
             analysis_results_summary ars,
             analysis_results_details ard,
             countries_to_regions ctr,
                      --Created Seperate Table to materialize the inline view - VM
             country_to_bu_map ctbm
       WHERE rlc.lob_value = rln.lob_value
         AND rlc.lob_value = arc.lob_value
         AND al_types.lob_type_id = rln.lob_type_id
         AND a.analysis_id = al_types.analysis_id
         AND a.analysis_id = arc.analysis_id
         AND a.analysis_id = t.analysis_id
         AND al.analysis_id = arc.analysis_id
         AND arc.lob_value = al.lob_value
         AND arc.analysis_criteria_id = ars.analysis_criteria_id
         AND ars.analysis_results_id = ard.analysis_results_id
         AND ctr.country_code = rlc.country_code
         AND ctbm.business_unit = arc.business_unit
         AND rlc.country_code = ctbm.country_code
         AND a.run_frequency !=2
         AND ars.is_non_zero_triangle = 'Y'   
         AND ars.data_type_id IN (1, 12, 27, 6, 9, 13, 3, 33, 31, 32, 21)
         AND NOT UPPER (a.NAME) LIKE 'PCSUMM88%'
         AND arc.lob_value NOT IN  ('ALL', 'SEL') -- get data only for the actual reserving lines
         AND al_types.lob_type_id IN (2, 4)
         AND arc.management_unit != 'SEL'
         AND arc.business_unit NOT IN  ('ALL', 'SEL')
         AND arc.rcc = 'ALL'                    
    GROUP BY CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'
                   THEN 'UK/Ireland'
                ELSE ctr.region
             END,
             t.reinsurance_treatment_desc,
             CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'
                   THEN 'UK Runoff'
                ELSE rlc.country_code
             END,
             ars.currency_code,
             rln.management_line_of_business,
             rln.reserving_class,
             rln.reserving_line,
             rln.reserving_line_id,
             CASE
                WHEN UPPER (a.NAME) NOT LIKE 'PCSUMM%'
                   THEN ''
                ELSE CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUMM1 %'
                   THEN 'Attritional'
                WHEN UPPER (a.NAME) LIKE 'PCSUMM2 %'
                   THEN 'Large Loss'
                WHEN UPPER (a.NAME) LIKE 'PCSUMM4 %'
                   THEN 'Total'
                ELSE 'Cat'
             END
             END,
             CASE
                WHEN MOD (ard.exposure_period, 100) IN (1, 2, 3)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0101',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (4, 5, 6)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0401',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (7, 8, 9)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0701',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (10, 11, 12)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '1001',
                                 'yyyymmdd'
             END,                                             
             CASE
                WHEN MOD (ard.evaluation_period, 100) IN (1, 2, 3)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0331',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (4, 5, 6)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0630',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (7, 8, 9)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0930',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (10, 11, 12)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '1231',
                                 'yyyymmdd') END,SYSDATE
      HAVING (   SUM (DECODE (ars.data_type_id, 1, NVL (ard.VALUE, 0), 0)) <> 0
              OR SUM (DECODE (ars.data_type_id, 12, NVL (ard.VALUE, 0), 0)) <>0
              OR SUM (DECODE (ars.data_type_id, 27, NVL (ard.VALUE, 0), 0)) <>0
              OR SUM (DECODE (ars.data_type_id, 6, NVL (ard.VALUE, 0), 0)) <> 0
              OR SUM (DECODE (ars.data_type_id, 9, NVL (ard.VALUE, 0), 0)) <> 0
              OR SUM (DECODE (ars.data_type_id, 13, NVL (ard.VALUE, 0), 0)) <> 0
              OR SUM (DECODE (ars.data_type_id, 3, NVL (ard.VALUE, 0), 0)) <>0
              OR SUM (DECODE (ars.data_type_id, 33, NVL (ard.VALUE, 0), 0)) <>0
              OR SUM (DECODE (ars.data_type_id, 31, NVL (ard.VALUE, 0), 0)) <>0
              OR SUM (DECODE (ars.data_type_id, 32, NVL (ard.VALUE, 0), 0)) <>0
              OR SUM (DECODE (ars.data_type_id, 21, NVL (ard.VALUE, 0), 0)) <> 0 )
    Below is the EXPLAIN PLAN for it
    PLAN_TABLE_OUTPUT
    Plan hash value: 771711397
    | Id  | Operation                                | Name                         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                         |                              |     1 |   256 |   356   (5)| 00:00:03 |
    |*  1 |  FILTER                                  |                              |       |       |            |          |
    |   2 |   SORT GROUP BY                          |                              |     1 |   256 |   356   (5)| 00:00:03 |
    |   3 |    NESTED LOOPS                          |                              |     1 |   256 |   355   (4)| 00:00:03 |
    |   4 |     NESTED LOOPS                         |                              |     1 |   234 |   355   (4)| 00:00:03 |
    |   5 |      NESTED LOOPS                        |                              |     1 |   217 |   355   (4)| 00:00:03 |
    |   6 |       NESTED LOOPS                       |                              |     2 |   318 |   355   (5)| 00:00:03 |
    |   7 |        NESTED LOOPS                      |                              |     1 |   139 |   142  (10)| 00:00:02 |
    |   8 |         NESTED LOOPS                     |                              |     1 |   131 |   142  (10)| 00:00:02 |
    |   9 |          NESTED LOOPS                    |                              |     1 |   121 |   141  (10)| 00:00:02 |
    |* 10 |           HASH JOIN                      |                              |     1 |   111 |   140  (10)| 00:00:02 |
    |* 11 |            TABLE ACCESS BY INDEX ROWID   | ANALYSES                     |     1 |    43 |     0   (0)| 00:00:01 |
    |  12 |             NESTED LOOPS                 |                              |     1 |    94 |   115   (8)| 00:00:01 |
    |  13 |              NESTED LOOPS                |                              |     1 |    51 |   115   (8)| 00:00:01 |
    |* 14 |               TABLE ACCESS FULL          | ANALYSIS_RESULTS_SUMMARY     |     1 |    22 |   114   (8)| 00:00:01 |
    |* 15 |               TABLE ACCESS BY INDEX ROWID| ANALYSIS_RESULTS_CRITERIA    |     1 |    29 |     1   (0)| 00:00:01 |
    |* 16 |                INDEX UNIQUE SCAN         | ANALYSIS_RESULTS_CRITERIA_PK |     1 |       |     0   (0)| 00:00:01 |
    |* 17 |              INDEX RANGE SCAN            | ANALYSES_PK                  |     1 |       |     0   (0)| 00:00:01 |
    |  18 |            VIEW                          |                              |    14 |   238 |    24  (13)| 00:00:01 |
    |* 19 |             FILTER                       |                              |       |       |            |          |
    |  20 |              SORT GROUP BY               |                              |    14 |    98 |    24  (13)| 00:00:01 |
    |  21 |               TABLE ACCESS FULL          | ANALYSIS_LOBS                | 22909 |   156K|    21   (0)| 00:00:01 |
    |* 22 |           INDEX RANGE SCAN               | ANALYSIS_LOBS_PK             |     1 |    10 |     1   (0)| 00:00:01 |
    |* 23 |          INDEX FULL SCAN                 | COUNTRY_TO_BU_MAP_PK         |     1 |    10 |     1   (0)| 00:00:01 |
    |* 24 |         INDEX UNIQUE SCAN                | RES_LINE_COUNTRY_PK          |     1 |     8 |     0   (0)| 00:00:01 |
    |* 25 |        INDEX RANGE SCAN                  | ANALYSIS_RESULTS_DETAILS_PK  | 59280 |  1157K|   213   (1)| 00:00:02 |
    |* 26 |       TABLE ACCESS BY INDEX ROWID        | RES_LINE_NAMES               |     1 |    58 |     1   (0)| 00:00:01 |
    |* 27 |        INDEX UNIQUE SCAN                 | RES_LINE_NAME_PK             |     1 |       |     0   (0)| 00:00:01 |
    |  28 |      TABLE ACCESS BY INDEX ROWID         | COUNTRIES_TO_REGIONS         |     1 |    17 |     0   (0)| 00:00:01 |
    |* 29 |       INDEX UNIQUE SCAN                  | COUNTRIES_TO_REG_PK          |     1 |       |     0   (0)| 00:00:01 |
    |  30 |     TABLE ACCESS BY INDEX ROWID          | TREATMENTS                   |     1 |    22 |     0   (0)| 00:00:01 |
    |* 31 |      INDEX UNIQUE SCAN                   | PK_ANALYSIS_ID               |     1 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter(SUM(DECODE("ARS"."DATA_TYPE_ID",1,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",12,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",27,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",6,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",9,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",13,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",3,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",33,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",31,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",32,NVL("ARD"."VALUE",0),0))<>0 OR
                  SUM(DECODE("ARS"."DATA_TYPE_ID",21,NVL("ARD"."VALUE",0),0))<>0)
      10 - access("A"."ANALYSIS_ID"="AL_TYPES"."ANALYSIS_ID")
      11 - filter("A"."RUN_FREQUENCY"<>2 AND UPPER("A"."NAME") NOT LIKE 'PCSUMM88%')
      14 - filter("ARS"."IS_NON_ZERO_TRIANGLE"='Y' AND ("ARS"."DATA_TYPE_ID"=1 OR "ARS"."DATA_TYPE_ID"=3 OR
                  "ARS"."DATA_TYPE_ID"=6 OR "ARS"."DATA_TYPE_ID"=9 OR "ARS"."DATA_TYPE_ID"=12 OR "ARS"."DATA_TYPE_ID"=13 OR
                  "ARS"."DATA_TYPE_ID"=21 OR "ARS"."DATA_TYPE_ID"=27 OR "ARS"."DATA_TYPE_ID"=31 OR "ARS"."DATA_TYPE_ID"=32 OR
                  "ARS"."DATA_TYPE_ID"=33))
      15 - filter("ARC"."BUSINESS_UNIT"<>'ALL' AND "ARC"."BUSINESS_UNIT"<>'SEL' AND "ARC"."LOB_VALUE"<>'SEL' AND
                  "ARC"."MANAGEMENT_UNIT"<>'SEL' AND "ARC"."LOB_VALUE"<>'ALL' AND "ARC"."RCC"='ALL')
      16 - access("ARC"."ANALYSIS_CRITERIA_ID"="ARS"."ANALYSIS_CRITERIA_ID")
      17 - access("A"."ANALYSIS_ID"="ARC"."ANALYSIS_ID")
      19 - filter(MAX("AL"."LOB_TYPE_ID")=2 OR MAX("AL"."LOB_TYPE_ID")=4)
      22 - access("AL"."ANALYSIS_ID"="ARC"."ANALYSIS_ID" AND "ARC"."LOB_VALUE"="AL"."LOB_VALUE")
           filter("AL"."LOB_VALUE"<>'ALL' AND "AL"."LOB_VALUE"<>'SEL' AND "ARC"."LOB_VALUE"="AL"."LOB_VALUE")
      23 - access("CTBM"."BUSINESS_UNIT"="ARC"."BUSINESS_UNIT")
           filter("CTBM"."BUSINESS_UNIT"<>'ALL' AND "CTBM"."BUSINESS_UNIT"<>'SEL' AND
                  "CTBM"."BUSINESS_UNIT"="ARC"."BUSINESS_UNIT")
      24 - access("RLC"."LOB_VALUE"="ARC"."LOB_VALUE" AND "RLC"."COUNTRY_CODE"="CTBM"."COUNTRY_CODE")
           filter("RLC"."LOB_VALUE"<>'ALL' AND "RLC"."LOB_VALUE"<>'SEL')
      25 - access("ARS"."ANALYSIS_RESULTS_ID"="ARD"."ANALYSIS_RESULTS_ID")
      26 - filter((TO_NUMBER("RLN"."LOB_TYPE_ID")=4 OR TO_NUMBER("RLN"."LOB_TYPE_ID")=2) AND
                  "AL_TYPES"."LOB_TYPE_ID"=TO_NUMBER("RLN"."LOB_TYPE_ID"))
      27 - access("RLN"."LOB_VALUE"=TO_NUMBER("RLC"."LOB_VALUE"))
      29 - access("CTR"."COUNTRY_CODE"="RLC"."COUNTRY_CODE")
      31 - access("A"."ANALYSIS_ID"="T"."ANALYSIS_ID")Regards,
    Sundeep K
    Edited by: kangula on Jan 21, 2011 4:34 PM
    Edited by: kangula on Jan 21, 2011 4:36 PM

    Hi Boneist,
    I have checked query and it doesnt change much... execution time is same.
    Hi Charles,
    I have tried using the hint /*+ GATHER_PLAN_STATISTICS */ as below, the query is still executing. Its taking more than 4 hrs... Is there any other way i can get these..
    set serveroutput off
    SELECT  /*+ GATHER_PLAN_STATISTICS */ CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'
                   THEN 'UK/Ireland'
                ELSE ctr.region
             END AS region_name,
             t.reinsurance_treatment_desc AS reinsurance_treatment,
             CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'Will let u know if i get these. In mean time have added new where clause [highlighted below] in query and it took 35 mins to execute. Please find it below along with plan.
    explain plan for
    SELECT  CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'
                   THEN 'UK/Ireland'
                ELSE ctr.region
             END AS region_name,
             t.reinsurance_treatment_desc AS reinsurance_treatment,
             CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'
                   THEN 'UK Runoff'
                ELSE rlc.country_code
             END AS country_code,       
             ars.currency_code, rln.management_line_of_business AS aog_line,
             rln.reserving_class, rln.reserving_line, rln.reserving_line_id,
            CASE
                WHEN UPPER (a.NAME) NOT LIKE 'PCSUMM%'
                   THEN ''
                ELSE CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUMM1 %'
                   THEN 'Attritional'
                WHEN UPPER (a.NAME) LIKE 'PCSUMM2 %'
                   THEN 'Large Loss'
                WHEN UPPER (a.NAME) LIKE 'PCSUMM4 %'
                   THEN 'Total'
                ELSE 'Cat'
             END
             END AS claim_type,
            CASE
                WHEN MOD (ard.exposure_period, 100) IN (1, 2, 3)
                   THEN TO_DATE
                          (TO_CHAR (TRUNC (ard.exposure_period / 100)) || '0101',
                           'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (4, 5, 6)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0401',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (7, 8, 9)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0701',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (10, 11, 12)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '1001',
                                 'yyyymmdd'
             END AS origin_date,
            CASE
                WHEN MOD (ard.evaluation_period, 100) IN
                                                   (1, 2, 3)
                   THEN TO_DATE
                          (TO_CHAR (TRUNC (ard.evaluation_period / 100)) || '0331',
                           'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (4, 5, 6)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0630',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (7, 8, 9)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0930',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (10, 11, 12)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '1231',
                                 'yyyymmdd'
             END AS development_date,
             SUM (DECODE (ars.data_type_id, 1, NVL (ard.VALUE, 0), 0)
                 ) AS earned_premium,
             SUM (DECODE (ars.data_type_id, 12, NVL (ard.VALUE, 0), 0)
                 ) AS paid_losses_and_alae,
             SUM (DECODE (ars.data_type_id, 27, NVL (ard.VALUE, 0), 0)
                 ) AS total_incurred_losses_inc_alae,
             SUM (DECODE (ars.data_type_id, 6, NVL (ard.VALUE, 0), 0)
                 ) AS paid_loss_total,
             SUM (DECODE (ars.data_type_id, 9, NVL (ard.VALUE, 0), 0)
                 ) AS alae_total,
             SUM (DECODE (ars.data_type_id, 13, NVL (ard.VALUE, 0), 0)
                 ) AS case_os_total,
             SUM (DECODE (ars.data_type_id, 3, NVL (ard.VALUE, 0), 0)
                 ) AS written_premium,                       
             SUM (DECODE (ars.data_type_id, 33, NVL (ard.VALUE, 0), 0)
                 ) AS total_claim_counts,                 
             SUM (DECODE (ars.data_type_id, 31, NVL (ard.VALUE, 0), 0)
                 ) AS open_claim_counts,                 
             SUM (DECODE (ars.data_type_id, 32, NVL (ard.VALUE, 0), 0)
                 ) AS closed_claim_counts,               
             SUM (DECODE (ars.data_type_id, 21, NVL (ard.VALUE, 0), 0)
                 ) AS total_case_inc_loss,                     
             SYSDATE AS export_date
        FROM res_line_country rlc,
             res_line_names rln,
             risk_history.analysis_results_criteria arc,
             (SELECT   al.analysis_id,
                       MAX (al.lob_type_id) AS lob_type_id
                  FROM analysis_lobs al
              GROUP BY analysis_id) al_types,
             analyses a,
             treatments t,
             risk_history.analysis_lobs al,
             analysis_results_summary ars,
             analysis_results_details ard,
             countries_to_regions ctr,
                      --Created Seperate Table to materialize the inline view - VM
             country_to_bu_map ctbm
       WHERE rlc.lob_value = rln.lob_value
         AND rlc.lob_value = arc.lob_value
         AND al_types.lob_type_id = rln.lob_type_id
         AND a.analysis_id = al_types.analysis_id
         AND a.analysis_id = arc.analysis_id
         AND a.analysis_id = t.analysis_id
         AND al.analysis_id = arc.analysis_id
         AND arc.lob_value = al.lob_value
         AND arc.analysis_criteria_id = ars.analysis_criteria_id
         AND ars.analysis_results_id = ard.analysis_results_id
         AND ctr.country_code = rlc.country_code
         AND ctbm.business_unit = arc.business_unit
         AND rlc.country_code = ctbm.country_code
         AND a.run_frequency !=2
         AND ars.is_non_zero_triangle = 'Y'   
         AND ars.data_type_id IN (1, 12, 27, 6, 9, 13, 3, 33, 31, 32, 21)
         AND NOT UPPER (a.NAME) LIKE 'PCSUMM88%'
         AND arc.lob_value NOT IN  ('ALL', 'SEL') -- get data only for the actual reserving lines
         AND al_types.lob_type_id IN (2, 4)
         AND arc.management_unit != 'SEL'
         AND arc.business_unit NOT IN  ('ALL', 'SEL')
         AND arc.rcc = 'ALL' 
         +*AND ard.VALUE <>0*+         
    GROUP BY CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'
                   THEN 'UK/Ireland'
                ELSE ctr.region
             END,
             t.reinsurance_treatment_desc,
             CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUM%UK%RUNOFF%'
                   THEN 'UK Runoff'
                ELSE rlc.country_code
             END,
             ars.currency_code,
             rln.management_line_of_business,
             rln.reserving_class,
             rln.reserving_line,
             rln.reserving_line_id,
             CASE
                WHEN UPPER (a.NAME) NOT LIKE 'PCSUMM%'
                   THEN ''
                ELSE CASE
                WHEN UPPER (a.NAME) LIKE 'PCSUMM1 %'
                   THEN 'Attritional'
                WHEN UPPER (a.NAME) LIKE 'PCSUMM2 %'
                   THEN 'Large Loss'
                WHEN UPPER (a.NAME) LIKE 'PCSUMM4 %'
                   THEN 'Total'
                ELSE 'Cat'
             END
             END,
             CASE
                WHEN MOD (ard.exposure_period, 100) IN (1, 2, 3)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0101',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (4, 5, 6)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0401',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (7, 8, 9)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '0701',
                                 'yyyymmdd'
                WHEN MOD (ard.exposure_period, 100) IN (10, 11, 12)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.exposure_period / 100))
                                 || '1001',
                                 'yyyymmdd'
             END,
             CASE
                WHEN MOD (ard.evaluation_period, 100) IN (1, 2, 3)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0331',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (4, 5, 6)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0630',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (7, 8, 9)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '0930',
                                 'yyyymmdd'
                WHEN MOD (ard.evaluation_period, 100) IN (10, 11, 12)
                   THEN TO_DATE (   TO_CHAR (TRUNC (ard.evaluation_period / 100))
                                 || '1231',
                                 'yyyymmdd') END,SYSDATE
    HAVING   (SUM (DECODE (ars.data_type_id, 1, NVL (ard.VALUE, 0), 
                                          12, NVL (ard.VALUE, 0),
                                          27, NVL (ard.VALUE, 0),
                                           6, NVL (ard.VALUE, 0),
                                           9, NVL (ard.VALUE, 0),
                                          13, NVL (ard.VALUE, 0),
                                           3, NVL (ard.VALUE, 0),
                                          33, NVL (ard.VALUE, 0),
                                          31, NVL (ard.VALUE, 0),
                                          32, NVL (ard.VALUE, 0),
                                          21, NVL (ard.VALUE, 0), 0)) != 0 );
    select * from table (dbms_xplan.DISPLAY)
    PLAN_TABLE_OUTPUT
    Plan hash value: 2043043506
    | Id  | Operation                                | Name                         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                         |                              |     1 |   256 |   355   (5)| 00:00:03 |
    |*  1 |  FILTER                                  |                              |       |       |            |          |
    |   2 |   SORT GROUP BY                          |                              |     1 |   256 |   355   (5)| 00:00:03 |
    |   3 |    NESTED LOOPS                          |                              |     1 |   256 |   354   (4)| 00:00:03 |
    |   4 |     NESTED LOOPS                         |                              |     1 |   198 |   354   (5)| 00:00:03 |
    |   5 |      NESTED LOOPS                        |                              |     1 |   188 |   354   (5)| 00:00:03 |
    |   6 |       NESTED LOOPS                       |                              |     1 |   166 |   354   (5)| 00:00:03 |
    |   7 |        NESTED LOOPS                      |                              |     1 |   149 |   354   (5)| 00:00:03 |
    |   8 |         NESTED LOOPS                     |                              |     1 |   129 |   141  (10)| 00:00:02 |
    |   9 |          NESTED LOOPS                    |                              |     1 |   121 |   141  (10)| 00:00:02 |
    |* 10 |           HASH JOIN                      |                              |     1 |   111 |   140  (10)| 00:00:02 |
    |* 11 |            TABLE ACCESS BY INDEX ROWID   | ANALYSES                     |     1 |    43 |     0   (0)| 00:00:01 |
    |  12 |             NESTED LOOPS                 |                              |     1 |    94 |   115   (8)| 00:00:01 |
    |  13 |              NESTED LOOPS                |                              |     1 |    51 |   115   (8)| 00:00:01 |
    |* 14 |               TABLE ACCESS FULL          | ANALYSIS_RESULTS_SUMMARY     |     1 |    22 |   114   (8)| 00:00:01 |
    |* 15 |               TABLE ACCESS BY INDEX ROWID| ANALYSIS_RESULTS_CRITERIA    |     1 |    29 |     1   (0)| 00:00:01 |
    |* 16 |                INDEX UNIQUE SCAN         | ANALYSIS_RESULTS_CRITERIA_PK |     1 |       |     0   (0)| 00:00:01 |
    |* 17 |              INDEX RANGE SCAN            | ANALYSES_PK                  |     1 |       |     0   (0)| 00:00:01 |
    |  18 |            VIEW                          |                              |    14 |   238 |    24  (13)| 00:00:01 |
    |* 19 |             FILTER                       |                              |       |       |            |          |
    |  20 |              SORT GROUP BY               |                              |    14 |    98 |    24  (13)| 00:00:01 |
    |  21 |               TABLE ACCESS FULL          | ANALYSIS_LOBS                | 22909 |   156K|    21   (0)| 00:00:01 |
    |* 22 |           INDEX FULL SCAN                | COUNTRY_TO_BU_MAP_PK         |     1 |    10 |     1   (0)| 00:00:01 |
    |* 23 |          INDEX UNIQUE SCAN               | RES_LINE_COUNTRY_PK          |     1 |     8 |     0   (0)| 00:00:01 |
    |* 24 |         INDEX RANGE SCAN                 | ANALYSIS_RESULTS_DETAILS_PK  |  2964 | 59280 |   213   (1)| 00:00:02 |
    |  25 |        TABLE ACCESS BY INDEX ROWID       | COUNTRIES_TO_REGIONS         |     1 |    17 |     0   (0)| 00:00:01 |
    |* 26 |         INDEX UNIQUE SCAN                | COUNTRIES_TO_REG_PK          |     1 |       |     0   (0)| 00:00:01 |
    |  27 |       TABLE ACCESS BY INDEX ROWID        | TREATMENTS                   |     1 |    22 |     0   (0)| 00:00:01 |
    |* 28 |        INDEX UNIQUE SCAN                 | PK_ANALYSIS_ID               |     1 |       |     0   (0)| 00:00:01 |
    |* 29 |      INDEX RANGE SCAN                    | ANALYSIS_LOBS_PK             |     1 |    10 |     1   (0)| 00:00:01 |
    |* 30 |     TABLE ACCESS BY INDEX ROWID          | RES_LINE_NAMES               |     1 |    58 |     1   (0)| 00:00:01 |
    |* 31 |      INDEX UNIQUE SCAN                   | RES_LINE_NAME_PK             |     1 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter(SUM(DECODE("ARS"."DATA_TYPE_ID",1,NVL("ARD"."VALUE",0),12,NVL("ARD"."VALUE",0),27,NVL("ARD"."VALUE"
                  ,0),6,NVL("ARD"."VALUE",0),9,NVL("ARD"."VALUE",0),13,NVL("ARD"."VALUE",0),3,NVL("ARD"."VALUE",0),33,NVL("ARD"."VA
                  LUE",0),31,NVL("ARD"."VALUE",0),32,NVL("ARD"."VALUE",0),21,NVL("ARD"."VALUE",0),0))<>0)
      10 - access("A"."ANALYSIS_ID"="AL_TYPES"."ANALYSIS_ID")
      11 - filter("A"."RUN_FREQUENCY"<>2 AND UPPER("A"."NAME") NOT LIKE 'PCSUMM88%')
      14 - filter("ARS"."IS_NON_ZERO_TRIANGLE"='Y' AND ("ARS"."DATA_TYPE_ID"=1 OR "ARS"."DATA_TYPE_ID"=3 OR
                  "ARS"."DATA_TYPE_ID"=6 OR "ARS"."DATA_TYPE_ID"=9 OR "ARS"."DATA_TYPE_ID"=12 OR "ARS"."DATA_TYPE_ID"=13 OR
                  "ARS"."DATA_TYPE_ID"=21 OR "ARS"."DATA_TYPE_ID"=27 OR "ARS"."DATA_TYPE_ID"=31 OR "ARS"."DATA_TYPE_ID"=32 OR
                  "ARS"."DATA_TYPE_ID"=33))
      15 - filter("ARC"."BUSINESS_UNIT"<>'ALL' AND "ARC"."BUSINESS_UNIT"<>'SEL' AND "ARC"."LOB_VALUE"<>'SEL' AND
                  "ARC"."MANAGEMENT_UNIT"<>'SEL' AND "ARC"."LOB_VALUE"<>'ALL' AND "ARC"."RCC"='ALL')
      16 - access("ARC"."ANALYSIS_CRITERIA_ID"="ARS"."ANALYSIS_CRITERIA_ID")
      17 - access("A"."ANALYSIS_ID"="ARC"."ANALYSIS_ID")
      19 - filter(MAX("AL"."LOB_TYPE_ID")=2 OR MAX("AL"."LOB_TYPE_ID")=4)
      22 - access("CTBM"."BUSINESS_UNIT"="ARC"."BUSINESS_UNIT")
           filter("CTBM"."BUSINESS_UNIT"<>'ALL' AND "CTBM"."BUSINESS_UNIT"<>'SEL' AND
                  "CTBM"."BUSINESS_UNIT"="ARC"."BUSINESS_UNIT")
      23 - access("RLC"."LOB_VALUE"="ARC"."LOB_VALUE" AND "RLC"."COUNTRY_CODE"="CTBM"."COUNTRY_CODE")
           filter("RLC"."LOB_VALUE"<>'ALL' AND "RLC"."LOB_VALUE"<>'SEL')
      24 - access("ARS"."ANALYSIS_RESULTS_ID"="ARD"."ANALYSIS_RESULTS_ID")
           filter("ARD"."VALUE"<>0)
      26 - access("CTR"."COUNTRY_CODE"="RLC"."COUNTRY_CODE")
      28 - access("A"."ANALYSIS_ID"="T"."ANALYSIS_ID")
      29 - access("AL"."ANALYSIS_ID"="ARC"."ANALYSIS_ID" AND "ARC"."LOB_VALUE"="AL"."LOB_VALUE")
           filter("AL"."LOB_VALUE"<>'ALL' AND "AL"."LOB_VALUE"<>'SEL' AND "ARC"."LOB_VALUE"="AL"."LOB_VALUE")
      30 - filter((TO_NUMBER("RLN"."LOB_TYPE_ID")=4 OR TO_NUMBER("RLN"."LOB_TYPE_ID")=2) AND
                  "AL_TYPES"."LOB_TYPE_ID"=TO_NUMBER("RLN"."LOB_TYPE_ID"))
      31 - access("RLN"."LOB_VALUE"=TO_NUMBER("RLC"."LOB_VALUE"))Kindly let me know how to go forward with this.
    Regards,
    Sunny

  • Problems creating a sticky footer

    Hi,
    I'm trying to create a website in Dreamweaver using a template that I purchased but I am having problems fixing a footer to the bottom of the page,
    At the moment the content footer that I have created (which is a table) changes positon from page to page depending on the content.
    The template comes with 2 x CSS style sheets  and 1 x JS coded page which I know I need to amend in order for the footer to remain fixed to the bottom of each page.
    The trouble is my CSS and JS are not up to much. I have inserted the code from the HTML, CSS & JS below.
    If anyone can help me out it would be fantastic as I'm really at a loss!
    The HTML of my main webpage is as follows:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <!-- saved from url=(0023)http://www.contoso.com/ -->
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link href="layout.css" rel="stylesheet" type="text/css" />
    <script src="maxheight.js" type="text/javascript"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    <body  id="page1" onload="new ElementMaxHeight(); ;MM_preloadImages('images/facebook2.gif','images/linkedin2.gif','images/twitter2.gif')">
    <div id="header">
        <div class="main">
         <div class="flash">
           <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="980" height="137">
             <param name="movie" value="flash/menu_v8.swf" />
             <param name="quality" value="high" />
             <param name="wmode" value="transparent" />
             <param name="swfversion" value="8.0.35.0" />
             <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
             <param name="expressinstall" value="Scripts/expressInstall.swf" />
             <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
             <!--[if !IE]>-->
             <object type="application/x-shockwave-flash" data="flash/menu_v8.swf" width="980" height="137">
               <!--<![endif]-->
               <param name="quality" value="high" />
               <param name="wmode" value="transparent" />
               <param name="swfversion" value="8.0.35.0" />
               <param name="expressinstall" value="Scripts/expressInstall.swf" />
               <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
               <div>
                 <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                 <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" id="Image2" /></a></p>
               </div>
               <!--[if !IE]>-->
             </object>
             <!--<![endif]-->
           </object>
         </div>
           <div class="flash1">
             <object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="587" height="389">
               <param name="movie" value="flash/header_v8.swf" />
               <param name="quality" value="high" />
               <param name="wmode" value="transparent" />
               <param name="swfversion" value="8.0.35.0" />
               <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
               <param name="expressinstall" value="Scripts/expressInstall.swf" />
               <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
               <!--[if !IE]>-->
               <object type="application/x-shockwave-flash" data="flash/header_v8.swf" width="587" height="389">
                 <!--<![endif]-->
                 <param name="quality" value="high" />
                 <param name="wmode" value="transparent" />
                 <param name="swfversion" value="8.0.35.0" />
                 <param name="expressinstall" value="Scripts/expressInstall.swf" />
                 <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                 <div>
                   <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                   <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" id="Image3" /></a></p>
                 </div>
                 <!--[if !IE]>-->
               </object>
               <!--<![endif]-->
             </object>
           </div>
            <div class="indent1">
             <div class="container1">
               <p>Welcome to ACL International.<br />
                     Through our offices in the UK and Portugal we supply the<br />
                     very latest in energy saving technologies with our main<br />
                     focus being on lighting. ACL have been active in the lighting<br />
                  industry for over 10 years and have built up strong relationships with some of the world's leading lighting manufacturers.</p>
               <p> </p>
               <p>Welcome to ACL International.<br />
    Through our offices in the UK and Portugal we supply the<br />
    very latest in energy saving technologies with our main<br />
    focus being on lighting. ACL have been active in the lighting<br />
    industry for over 10 years and have built up strong relationships with some of the world's leading lighting manufacturers.</p>
              </div>
          </div>
        </div>
    </div>
    <div id="content">
        <div class="main">
            <div class="indent-main">
                <div class="container bg">
                    <div class="container bg1">
                        <div class="container bg2">
                            <div class="col-1 bg-1">
                             <div class="indent-col">
                                 <img alt="" src="images/1page_title1.gif" class="title" /><br />
                                    <p>An easy and affordable<br />
                                  way to change existing<br />
                                  lighting to an energy<br />
                                  saving alternative...</p>
                                    <div class="container"><a href="#" class="link-1"><em><b>read more</b></em></a></div>
                                </div>
                            </div>
                            <div class="col-1 bg-2">
                             <div class="indent-col">
                                 <img alt="" src="images/1page_title2.gif" class="title" /><br />
                                    <p>A more natural,<br />
                                    environmentally<br />
                                    friendly light<br />
                                    source...  </p>
                                    <div class="container"><a href="#" class="link-1"><em><b>read more</b></em></a></div>
                                </div>
                            </div>
                            <div class="col-1 bg-3">
                             <div class="indent-col">
                                 <img alt="" src="images/1page_title3.gif" class="title" /><br />
                                    <p>Up to 80% energy <br />
                                  saving with an<br />
                                  extremely long<br />
                                  lifetime... </p>
                                    <div class="container"><a href="#" class="link-1"><em><b>read more</b></em></a></div>
                                </div>
                            </div>
                            <div class="col-1 bg-4">
                             <div class="indent-col">
                                 <img alt="" src="images/1page_title4.gif" class="title" /><br />
                                    <p>Low glare,<br />
                                    creating a more<br />
                                    comfortable<br />
                                    environment... </p>
                                    <div class="container"><a href="#" class="link-1"><em><b>read more</b></em></a></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="footer">
        <div class="main">
            <div class="indent-footer">
              <table width="929" border="0">
                <tr>
                  <td width="869">ACLI  &copy; 2012  <a href="index-5.html">Privacy Policy</a></td>
                  <td><img src="images/followus.gif" alt="" width="73" height="20" /></td>
                  <td width="20"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('facebook','','images/facebook2.gif',1)"><img src="images/facebook.gif" width="20" height="20" border="0" id="facebook" /></a></td>
                  <td width="20"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('linkedin','','images/linkedin2.gif',1)"><img src="images/linkedin.gif" width="25" height="20" border="0" id="linkedin" /></a></td>
                  <td width="20"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('twitter','','images/twitter2.gif',1)"><img src="images/twitter.gif" width="27" height="20" border="0" id="twitter" /></a></td>
                </tr>
              </table>
            </div>
        </div>
    </div>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    swfobject.registerObject("FlashID2");
    </script>
    </body>
    </html>
    The CSS of the layout is as follows:
    .col-1, .col-2, .col-3, .col-4, .col-5{ float:left}
    /*======= width =======*/
    .main{margin:0 auto; text-align:left; width:929px; }
    /*======= header =======*/
    #header {height:339px;  background:url(images/bg.jpg) }
    #page1 #header {height:526px;}
    /*======= index.html =======*/
    #page1 #content .col-1{ width:231px; margin-right:1px}
    #page1 #content .bg{ background:url(images/tail.gif) repeat-y 231px top }
    #page1 #content .bg1{ background:url(images/tail.gif) repeat-y 463px top }
    #page1 #content .bg2{ background:url(images/tail.gif) repeat-y 695px top }
    /*======= index-1.html =======*/
    #page2 #content .col-1{ width:339px; margin-right:0}
    #page2 #content .col-2{ width:590px}
    #page2 #content .col-3{ width:154px; margin-right:32px}
    #page2 #content .col-4{ width:158px; margin-right:30px}
    #page2 #content .col-5{ width:155px; margin-right:0}
    /*======= index-2.html =======*/
    #page3 #content .col-1{ width:590px; margin-right:0}
    #page3 #content .col-2{ width:339px}
    #page3 #content .col-3{ width:188px; margin-right:0}
    #page3 #content .col-4{ width:155px; margin-right:0}
    /*======= index-3.html =======*/
    #page4 #content .col-1{ width:339px; margin-right:0}
    #page4 #content .col-2{ width:590px}
    #page4 #content .col-3{ width:95px; margin-right:2px; text-align:right; line-height:1em; padding-top:3px}
    #page4 #content .col-4{ width:188px; margin-right:0}
    /*======= index-4.html =======*/
    #page5 #content .col-1{ width:590px; margin-right:0}
    #page5 #content .col-2{ width:339px}
    #page5 #content .col-3{ width:95px; margin-right:2px; text-align:right; line-height:1em; padding-top:3px}
    #page5 #content .col-4{ width:188px; margin-right:0}
    /*======= footer =======*/
    #footer { height:110px; }
    The CSS of the style is as follows:
    /* CSS Document */
    * { margin:0; padding:0;}
    html, body { height:100%; }
    body {font-size:100%; line-height:1.125em;}
    html, input, textarea {
    font-family: "Century Gothic";
    color:#646464;
    .alignMiddle{ vertical-align:middle}
    .alignCenter{ text-align: center}
    .container1{ width:100%}
    object { vertical-align:top; outline:none}
    .clear { clear:both;}
    .fleft{ float:left}
    .fright{ float:right}
    div.container { overflow:hidden; width: 100%;}
    a img{ border:0}
    img{ vertical-align:top;  }
    a{color:#000000; text-decoration:underline; outline:none}
    a:hover{text-decoration:none}
    .link{color:#000000; background:url(images/marker.gif) top left no-repeat; padding-left:20px; background-position:0 5px; text-decoration:none; font-size:.916em  }
    .link:hover{text-decoration:underline }
    .button{color:#fff; font-size:.916em; line-height:20px ; padding:2px 8px 8px 6px; text-decoration:none;  }
    .button:hover{color:#000; background:url(images/button.gif) top left no-repeat; padding:2px 8px 8px 6px; text-decoration:none; line-height:20px ;  }
    .current{color:#000; background:url(images/button.gif) top left no-repeat; padding:2px 8px 8px 6px; text-decoration:none; line-height:20px ;  }
    ul{margin:0; padding:0; list-style:none;}
    ul li a{color:#646464; text-decoration: underline; line-height:1.66em}
    ul li a:hover { text-decoration:none; }
    .ul1 li{background:url(images/marker.gif) top left no-repeat; background-position:0 5px; margin:0; padding-left:10px; }
    .ul1 li a{color:#646464; text-decoration:none ; line-height:1.5em}
    .ul1 li a:hover { text-decoration:underline; }
    .ul li{background:url(images/tail-1.gif) repeat-x bottom; margin:0; padding-left:0; }
    .ul li span{color:#646464; float:right; background:url(images/tail-2.gif) repeat-x bottom;}
    .ul li a{color:#646464; text-decoration: underline; line-height:1.66em;  background:url(images/tail-2.gif) repeat-x bottom;}
    .ul li a:hover { text-decoration:none; }
    .link-1 { display:block; float:left; background:url(images/link_bg.gif) left top repeat-x; color:#ffffff; text-decoration:none; }
    .link-1 em { display:block; background:url(images/link_left.gif) no-repeat left top;}
    .link-1  b { display:block; background:url(images/link_right.gif) no-repeat right top; padding:0 5px 3px 7px; font-weight:normal; font-style:normal;}
    .link-1:hover{ text-decoration:none; color:#627311}
    .link-2 { display:block; float:left; background:url(images/link_bg.gif) left top repeat-x; color:#ffffff; text-decoration:none; }
    .link-2 em { display:block; background:url(images/link_left.gif) no-repeat left top;}
    .link-2  b { display:block; background:url(images/link_right.gif) no-repeat right top; padding:0 15px 3px 17px; font-weight:normal; font-style:normal;}
    .link-2:hover{ text-decoration:none; color:#627311}
    /*header*/
    #header {font-size:0.75em; color:#646464 }
    #header .logo{ margin:19px 0 9px 0 }
    #header .indent{margin:30px 0 0 755px; position:absolute; width:175px; color:#625a49}
    #page1 #header .indent1{padding:40px 0 0 565px}
    #header .indent1{padding:22px 0 0 0px}
    #header .indent2{padding:11px 0 0 397px}
    #header .img-left{ float:left; margin:0 31px 0 0}
    #header .img-indent{ margin:0 24px 0 0}
    #header .img-indent1{ margin:0 23px 0 0;}
    #header .title{  margin-bottom:11px}
    #header a{ color:#625a49; text-decoration:none}
    #header a:hover{text-decoration: underline}
    .flash{ margin:0 -27px 0 -25px; position:relative}
    .flash1{ margin:0 0 0 -25px; position: absolute}
    #page1 .bg-1{
    background-image: url(images/1page_img1.jpg);
    background-repeat: no-repeat;
    background-position: right bottom;
    #page1 .bg-2{ background:url(images/1page_img2.jpg) no-repeat bottom right}
    #page1 .bg-3{ background:url(images/1page_img3.jpg) no-repeat bottom right}
    #page1 .bg-4{ background:url(images/1page_img4.jpg) no-repeat bottom right}
    .bg-5{ background:url(images/bg-1.gif) repeat-x top #e5e5e5; width:100%}
    .bg-6{ background:url(images/bg-2.gif) repeat-x top #fff; width:100%}
    /*content*/
    #content{ font-size:0.75em; width:100%; text-align:left; background:url(images/bg_cont.gif) repeat-x top #fff}
    #content .indent-main{padding:11px 0 0 0}
    #content .indent-main1{padding:3px 0 0 0}
    #content .indent-col{padding:14px 0 28px 20px}
    #content .indent-col1{padding:32px 14px 24px 15px}
    #content .indent-col2{padding:32px 28px 0 28px}
    #content .title{  margin-bottom:8px}
    #content .img-left{ float:left; margin:0 20px 16px 0}
    #content .img-right{ float:right; margin:0 0 0 10px}
    #content .img-indent{ margin:0 0 16px 0}
    #content p{ margin:0 0 17px 0}
    #content .p{ margin:0}
    #content .p1{ margin:0 0 17px 0}
    #content h4{color:#8b870e; font-size:1em; margin-bottom:13px;  }
    #content .tail{ background:url(images/tail2.gif) repeat-x bottom; padding-bottom:26px; margin-bottom:21px}
    .txt{ color:#8e9c2e; font-weight:normal}
    .txt a{ color:#8e9c2e; }
    #content .indent{padding:15px 0 0 0}
    /*box*/
    .box{ background:#fcfcfc; width:100%;}
    .box .indent-box{ padding:11px 18px 11px 20px; }
    .box .indent-box1{ padding:11px 10px 11px 10px; }
    /*footer*/
    #footer { color:#5a5a5a; text-transform:uppercase; font-size:0.6875em ; }
    #footer .indent-footer{ padding:37px 0 0 0; background:url(images/bot.gif) repeat-x top;}
    #footer a {color:#5a5a5a; text-decoration:underline} 
    #footer a:hover {  text-decoration:none}
    .jamp{ width:69px;}
    .jamp1{ width:64px;}
    .jamp2{ width:58px;}
    .jamp3{ width:52px;}
    select{font-size:12px; color:#646464; height:19px; font-family: Arial, Helvetica, sans-serif;}
    .indent-2{ position:relative; padding-right:20px; float:left}
    .h{ height:29px}
    .block-contact span{ float:right; margin-right:50px}
    input{
    width:183px; height:17px;
    font-size:1em;
    color:#646464;
    padding-left:5px;
    textarea{
    width:183px; height:57px;
    font-size:1em;
    color:#646464;
    padding-left:5px;
    margin-bottom:11px;
    overflow:auto}
    .textarea{
    width:183px; height:142px;
    font-size:1em;
    color:#646464;
    padding-left:5px;
    margin-bottom:11px;
    overflow:auto}
    The JS page is as follows:
    var ElementMaxHeight = function() {
      this.initialize.apply(this, arguments);
    ElementMaxHeight.prototype = {
      initialize: function(className) {
        this.elements = document.getElementsByClassName(className || 'maxheight');   
        this.textElement = document.createElement('span');
        this.textElement.appendChild(document.createTextNode('A'));
        this.textElement.style.display = 'block';
        this.textElement.style.position = 'absolute';
        this.textElement.style.fontSize = '1em';
        this.textElement.style.top = '-1000px';
        this.textElement.style.left = '-1000px';
        document.body.appendChild(this.textElement);
        this.textElementHeight = document.getDimensions(this.textElement).height;
        var __object = this;
        var __checkFontSize = this.checkFontSize;
        this.checkFontSizeInterval = window.setInterval(function() {return __checkFontSize.apply(__object)}, 500);
        this.expand();
        // Refresh elements height onResize event
        var __expand = this.expand;
        if (window.addEventListener) {
          window.addEventListener('resize', function(event) {return __expand.apply(__object, [( event || window.event)])}, false);
        } else if (window.attachEvent) {
          window.attachEvent('onresize', function(event) {return __expand.apply(__object, [( event || window.event)])});
      expand: function() {
        this.reset();
       for (var i = 0; i < this.elements.length; i++) {  
          this.elements[i].style.height = document.getDimensions(this.elements[i].parentNode).height + 'px';
      reset: function() {
        for (var i = 0; i < this.elements.length; i++) {   
          this.elements[i].style.height = 'auto';
      checkFontSize: function() {
       var height = document.getDimensions(this.textElement).height;
       if(this.textElementHeight != height) {
        this.textElementHeight = height;
        this.expand();
    if (!!document.evaluate) {
      document._getElementsByXPath = function(expression, parentElement) {
        var results = [];
        var query = document.evaluate(expression, parentElement || document,
          null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
        for (var i = 0, length = query.snapshotLength; i < length; i++)
          results.push(query.snapshotItem(i));
        return results;
    document.getElementsByClassName = function(className, parentElement) {
      if (!!document.evaluate) {
        var q = ".//*[contains(concat(' ', @class, ' '), ' " + className + " ')]";
        return document._getElementsByXPath(q, parentElement);
      } else {
        var children = (parentElement || document.body).getElementsByTagName('*');
        var elements = [], child;
        for (var i = 0, length = children.length; i < length; i++) {
          child = children[i];
          if (child.className.length != 0 &&
              (child.className == className ||
               child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)")))) {     
            elements.push(child);
        return elements;
    document.getDimensions = function (element) {
      var display = element.style.display;
      if (display != 'none' && display != null) { // Safari bug
        return {width: element.offsetWidth, height: element.offsetHeight};
      return {width: originalWidth, height: originalHeight};

    A sticky footer is position:fixed and therefor always visible in the bottom of browser viewports -- even when users scroll up or down the page.
    Sticky Footer Demo:
    http://alt-web.com/DEMOS/CSS2-Sticky-Footer.shtml
    I believe what you're trying to achieve is 100% height on long & short pages.  Try this:
    <!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=iso-8859-1" />
    <title>100% height page layout</title>
    <style type="text/css">
    /**==========================
    100% height layout
    ===========================*/
    html,body {
    margin:0;
    padding:0;
    height:100%; /* needed for container min-height */
    background:gray;
    font-family:arial,sans-serif;
    font-size:small;
    color:#666;
    zoom: 1;
    #container {
    position:relative; /* needed for footer positioning*/
    margin:0 auto; /* center, not in IE5 */
    width:1000px;
    background:#FF9999;
    height:auto !important; /* real browsers */
    height:100%; /* IE6: treated as min-height*/
    min-height:100%; /* real browsers */
    #header {
    padding:1em;
    background:#ddd;
    min-height: 95px;
    border-bottom:6px double gray;
    #content {
    padding:1em 1em 5em; /* bottom padding for footer */
    #footer {
    position:absolute;
    width:100%;
    bottom:0; /* stick to bottom */
    background:#ddd;
    min-height: 95px;
    border-top:6px double gray;
    #footer p {padding:1em}
    </style>
    </head>
    <body>
    <div id="container">
    <div id="header">
    <p>here is the header</p>
    </div>
    <div id="content">
    <p>Here is the content</p>
    </div>
    <div id="footer">
    <p>Here is the footer</p>
    </div>
    <!--end container --></div>
    </body>
    </html>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • I can't connect to MySQL database from The JSP Standard Tag Library

    Hi All !
    I have a problem, please help me anybody !
    I don't connect to MySQL database from jsp page using JSTL tag but from servlet all work correctly. I set my path and put �mysql-connector-java-3.1.13-bin.jar� in ENVIRONMENT WinXP(classpath=C:\Java\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-3.1.13-bin.jar) and in War project folder �WEB-INF/lib� and in [TomcatServer]\common\lib.
    I have in folder�WEB-INF/lib� following files:
    antlr.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    mysql-connector-java-3.1.13-bin.jar
    standard.jar
    struts.jar
    I'm using:
    NetBeans 5.5 Build200610171010 (bundled Tomcat 5.5.17)
    Ent.Pack 20061020 Visual Wb Pack 061103
    OS WinXP SP2
    Java 1.5.0_10
    MySQL 5.0.18-nt
    1:<%@page contentType="text/html"%>
    2:<%@page pageEncoding="UTF-8"%>
    8: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    9: <%@taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
    10:
    11: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    12: "http://www.w3.org/TR/html4/loose.dtd">
    13:
    14: <sql:setDataSource var="ds"
    15: driver="com.mysql.jdbc.Driver"
    16: url="jdbc:mysql://localhost:3306/test"
    17: user="root"
    18: password="xxxx"/>
    19:
    20:
    21:<sql:query sql="select name, age from People" var="res"
    22: dataSource="${ds}"/>
    I have received report on mistake when entered code at the top:
    �/index.jsp [21;0] According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions�
    I used instead of (dataSource="${ds}")->(dataSource="ds") but this did not work.
    After build and run I have received
    =========================================START=================================
    HTTP Status 500
    type Exception report:
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
    org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
    org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    =======================================END================================
    Error: "According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions" - but according to documentation such parameter possible.
    BUT WHEN JOINING With DATABASE FROM SERVLET ALL WORK FINE.
    I read this doc - [http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html], this applicable if I Tomcat Admin, but i'am not Admin
    I simply user, i.e. I want to place its database on virtual host (Tomcat+(JSP-JSTL)+MySQL).
    There is idea how can resolve this problem
    Thank you in advance ;)

    For all how have similar problem.
    Decision instead of these ways
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it is necessary to indicate these
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

  • Problem with loading Danish dictionaries files.

    Hi,
    I want use Danish spell check for my project and when my app start load
    spell check files I get exception. Files are here http://www.stavekontrolden.dk/main/top/index.php.
    Please tell me is thare any way to use Danish spell check in flex application?
    And alos I can't find Finnish spell check that I could use with flex.
    Is flex support Finnish spell check ?? If no will flex support it?
    Error decription:
    Main Thread (Suspended: Error: null cannot be parsed to a squiggly dictionary)
    Thanks,
    Vladimir

    As Ned said the problem might be with the file structure on the server. Other problems may be with spelling. You computer may not be case sensitive to the names of the .swf files that you are loading, but your server might. So, on your computer when you are testing, second.swf is the same as Second.swf, or even second.SWF. But, on the server each of these variations is seen as a different file. Another problem is that when you are loading files from the same computer in testing, those files are close and so they load very quickly from your computer. When the files have to travel from the server, there will likely be a measurable period of time before the file is ready to be shown. This is particularly problematic with video that is embedded into an .swf. The whole file will need to be downloaded and uncompressed before it is available to play. If you stream the video as an external file, you can shorten the wait considerably.

  • Dropped table

    Hi,
    I am using Oracle 10g
    A table is dropped in database and I am able to recover that table from Recycle bin.
    Can I know the information that 1) Who dropped that table and 2) when table was dropped.
    How can I get these information without using Log Miner.
    Regards,

    hello
    dba_recyclebin
    OWNER Name of the original owner of the object
    OBJECT_NAME New name of the object
    ORIGINAL_NAME Original name of the object
    OPERATION Operation carried out on the object:
    DROP - Object was dropped
    TRUNCATE - Object was truncated
    TYPE Type of the object:
    TABLE
    NORMAL INDEX
    BITMAP INDEX
    NESTED TABLE
    LOB
    LOB INDEX
    DOMAIN INDEX
    IOT TOP INDEX
    IOT OVERFLOW SEGMENT
    IOT MAPPING TABLE
    TRIGGER
    CONSTRAINT
    Table Partition
    Table Composite Partition
    Index Partition
    Index Composite Partition
    LOB Partition
    LOB Composite Partition
    TS_NAME Name of the tablespace to which the object belongs
    CREATETIME Timestamp for the creation of the object
    DROPTIME Timestamp for the dropping of the object
    DROPSCN System change number (SCN) of the transaction which moved the object to the recycle bin
    PARTITION_NAME Name of the partition which was dropped
    CAN_UNDROP Indicates whether the object can be undropped (YES) or not (NO)
    CAN_PURGE Indicates whether the object can be purged (YES) or not (NO)
    RELATED Object number of the parent object
    SPACE Number of blocks used by the object
    regards
    zekeriya besiroglu
    http://zekeriyabesiroglu.blogspot.com
    http://www.oracleforum.info

  • Enlarging an image

    Hi guys.  So I have my image gallery practically sorted.  The final thing I wanted to do is when one of my thumbnails was clicked, for the screen to darken and that image enlarge into the center.  I have to code to do this, but I am having difficulties implementing it.  My images are added to a container here
    private function populateItems():void {
                for(var i:int = 0; i < Math.min(COLS * ROWS, data.picture.length()); i++) {
                    var item:ModelsItem = new ModelsItem();
                    item.data = data.picture[i];
                    item.x = PADDING_LEFT + (i % COLS) * (ModelsItem.ITEM_WIDTH + GAP_HORIZONTAL);
                    item.y = PADDING_TOP + Math.floor(i / COLS) * (ModelsItem.ITEM_HEIGHT + GAP_VERTICAL);
                    item.addEventListener(MouseEvent.CLICK, modelClicked);
                    itemsHolder.addChild(item);
                    sp.source = itemsHolder;
                    items.push(item);
                sp.verticalScrollPolicy = "on";
                sp.horizontalScrollPolicy = "off";
                sp.update();
    ModelsItem is a class I have, itemsHolder is a MovieClip, sp is a ScrollPane.  This basically adds my images into their own containers, and then into a scrollpane.  Now on the MouseEvent, I call modelClicked.  I wont show the whole of this method as it is large, but it is complaining about
    setChildIndex(e.target.parent as Sprite, (numChildren - 1));
    I know its complaining as I am not using a Sprite, and the error is ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.  I have tried changing this to MovieClip, ScrollPane, ModelsItem, and I always get that error or a TypeError: Error #2007: Parameter child must be non-null.
    Is there anyway to get pass this error?
    I can show the whole function if required.
    Many thanks
    Nick

    What object are you trying to set the child index to the top?  If your listener is assigned to the ModelsItem and the ModelsItem is just one of many children of the itemsHolder, then your line appears to be trying to make the itemsHolder move atop anything else.  I would think that you want the ModelsItem to be brought to the top, not the parent that holds all of them.
    If the parent is truly what you want to adjust the index for, what do you trace for e.currentTarget.parent?
    One other thing to consider is to use addChild instead of setChildIndex if the intent is to move an object above all others.  addChild does that without alot of extra code to try to deal with, and if you ask what some others often do... addChild is not adding a new child to the display.  It is taking the object you target and adding it as a child to the top index of the display list of whatever object is in the addChild's scope.

  • How to set printer default to Tray

    Just purchased an Epson WorkForce 845 all-in-One. The printer has two paper trays. Paper tray #1 can be adjusted for paper size and envelopes. Tray #2 can only handle 8.5x11 inch paper. I would like to set the print default via ethernet to use tray #2, with a separate saved setting to use tray #1 for envelopes. After trying to do this via the Print & Scan System Preference in conjunction with a print dialog in Pages, the printer sent back an error message to the Epson WorkForce 845 printer status window.  I eventually deleted the printer from the printer list in the System Preference and reinstalled it. Everything prints normally if each print job is set up each time in the application print dialog. That means reloading paper or envelopes after each type of print job. The solution is probably pretty simple, but so far, has eluded me. Any thoughts?
    2011 iMac 20.5 inch using OS 10.7.3 with 12 MB Ram via ethernet.

    I just got this printer (Workforce 845) and had similar frustrations with the unit as it defaults to print tray 1.   This is the only tray that will hold 4x6 photo paper, so everything, including the test page, printed onto the photopaper.
    I am running on a mac runing Lion 10.7.X
    I  tried many things including contacting epson and they said "On a Mac, you are unable to change the printer's default settings."
    The trick is to use the printer pop up (accessed when printing) by selecting the drop down in the middle of the screen that, on my mac, shows that app's name that is running.  Select the "print settings' line and set the tray to cartridge 2, then save this as the default by going to the printer 'presets' drop down (second from the top) and select'save current settings as Preset...".   It's really pretty simple, but I wasted a lot of time trying all the other options, so I thought I would try to save others the hassel.
    This can be seen in the user manual under: http://files.support.epson.com/htmldocs/wf845_/wf845_ug/index.html
    Additional info:
    Access to the printer can be gained from your browser by going to URL: http://epsonbb82c2.local./PRESENTATION/HTML/TOP/INDEX.HTML?
    but this didn't help to configure the trays, but it does allow for a firmware update that I decided to try.
    Epson's late response to Lion drivers (you must download these from the Web and they warn against using the CD drivers that come with the printer if you run Lion) and there poorly implimented  mac s/w drivers tainted my first impressions for this product.
    Epson: Hire a Mac programmer and improve your firmware!

  • Query on Stack

    Could someone show me where I am going wrong in my incomplete answers to the following questions:
    Question:
    Software for a Web search engine requires the use of a class Stacker which just implements the functionality of a Stack associated with the methods empty(), peek(), pop(), and push(); it should not implement any of the functionality of the Vector class which Stack inherits from.
    (i) What variables would you use in this class? Before answering this part of the question we would advise you to read the remainder of the question.
    My answer:
    //instance variables
    private int count;//number of objects in the Stacker
    private int maxSize;//maximum size of Stacker
    private int top;//index of top of the Stack
    private Object obj;
    static variable;
    private static final int noOfStackers; //maximum number of Stacker objects allowed to be created
    Question:
    Write down code for the four methods detailed above, their functionality is described below:
    (ii) empty() � returns true if the Stacker is empty and false otherwise.
    My Answer:
    public boolean empty(){
    return count= =0;
    Question:
    (iii) peek() � returns with the top object of the Stacker; this top object is not removed
    My answer:
    public Object peek(){
    return Object obj;
    Question:
    (iv) pop() � removes the top object from the Stacker and returns it
    My answer:
    public Object pop(Object removedObj){
    int i=top;
    int j=top-1;
    i=j;
    count--;
    return removedObj;
    Question:
    (v) push() � places and object in the Stacker
    My answer:
    public void push(Object addedObject){
    top=addedObject;
    count++;
    Question
    (vi) In addition to this the class should contain a constructor Stacker which has two int arguments. The first argument gives the maximum size of the Stacker and the second argument gives the maximum number of Stackers that may be created by a program.
    My answer:
    public Stacker(int max, int nos) {
    maxSize=max;
    noOfStackers =nos;
    if (nos> noOfStackers)
    Question:
    (vii) Finally the class should contain a method setMaxStacks which has a single int argument which is the maximum number of Stackers that can be created
    If the stack size is exceeded a StackOverflowException should be thrown; if a program creates more Stack objects than is allowed a TooMany StackersException is thrown
    Do not write any code which caters for errors
    My answer:
    public void setMaxStacks(int maxNoStackers) throws StackOverFlowException, throws tooManyStackersException {
    noOfStackers=maxNoStackers;
    }

    (i) What variables would you use in this class?You need to store more than the top object, which is all you currently store. I would suggest that instead of obj you have private Object[] stack. Now, building with the base of the stack at array offset 0, you don't need top because it's always the case that top == count - 1. Nor do you need maxSize, because maxSize == stack.length. And since there is a method setMaxStacks, noOfStackers should not be final. Also you need a static variable to count the number of Stackers which have been instantiated so far - e.g. private static int stackersInstantiated.
    // Tidied up a bit
    public boolean empty(){
    return (count == 0);
    }Correct.
    peek() will need to look at the last defined element of the array stack, so peek() just returns stack[count - 1].
    pop() is the same as peek, except that it decrements count. For tidiness' sake, you should remove the object from the stack. So public Object pop()
        Object popped = peek();
        stack[count - 1] = null;
        count--;
        return popped;
    } A sensible spec would tell you to throw an exception if there is nothing to pop (and ditto for peek), but the one given doesn't. Unless that's what it means by
    Do not write any code which caters for errorsLeft as an exercise for the reader.
    The push method has to throw an exception if the stack size is exceeded. So public void push(Object obj) throws StackOverFlowException
        if (count == stack.length)
            throw new StackOverFlowException();
        stack[count++] = obj;
    } Next, the constructor. This has two arguments and can throw a TooManyStackersException. The spec really breaks down into gibberish here. public Stacker (int maxSize, int newNoOfStackers) throws TooManyStackersException
        noOfStackers = newNoOfStackers; // I think this is the appropriate thing to do.  As I say, the spec is gibberish.
        if (stackersInstantiated >= noOfStackers)
            throw new TooManyStackersException();
        stack = new Object[maxSize];
        count = 0;
    } Finally, the trivial setMaxStacks. public void setMaxStacks(int newNoOfStackers)
        noOfStackers = newNoOfStackers;

  • Need help with an array function

    I'm using the array index function and i would like to be able to control what elements go out on it.  For example, if i wanted only the first element to go out, i don't want the second element to send out zero.  Is there any way i can control what elements leave the array index function.  I also don't understand what the index inputs do on that function either.  If anyone has any advice on the application or can modify it in any way, please help.
    Attachments:
    Array and for loop.vi ‏1190 KB

    The index inputs determine what elements are retrieved. For example of you would wire a 10 and a 20 to your two index inputs, you would bet element #10 and element #20 of your array. You can resize it to get any desired number of elements.
    If you don't wire the index inputs, you'll get the first two elements.
    If you only wire the top index input (e.g a 10), you'll get element #10 and #11.
    LabVIEW Champion . Do more with less code and in less time .

  • Iweb 06 site not working in iweb 08

    When i open a website created in iweb06 in iweb08, modify the website and then publish it to a folder and then using Transmit to publish it to my host address, the website can not be found. If i create a new website in iweb 08 it works fine. How do i get my old iweb06 websites to work with iweb08. Please somebody help me as my website has been down for a number of days now because of this.

    ...and it turns out that this new version of iweb doesn´t handle Icelandic letters in the top index of my website
    This definitely needs reporting as a bug - I don't know about iWeb08 but in iWeb06 there is the option to leave feedback from within the iWeb menu. Obviously it's not gonna effect many of us, but it sounds like you are going backwards with regards to useability at the moment.
    FlatE
    Message was edited by: Flat Eric
    Message was edited by: Flat Eric

  • Slideshow on photopage not working

    I've noticed today that the show slideshow button (and the other two at the top - Index and Subscribe - have stopped working.
    Looking in Safari activity I see that http://a772.g.akamai.net/global/nav/styles/nav.css is a bad request.
    Anyone else getting this? Has a server gone down or file moved?
    Adam

    Looks like your Media folder is missing:
    http://www.getliff.net/GetliffFamily/Media/canvas_subscribe01.png

Maybe you are looking for

  • Made a slide show and cannot get my music to play on it?

    I made a new slide show on my Macbook Pro iphoto (running iphoto '11-- 9.4.2) and I clicked down at the bottom to add my music to the slide show.. I can see how to direct it to my itunes library. I chose an album. Clicked "choose." But then when I pl

  • HELP!  My Inbox, Sent, Junk & trash mail folders are completely empty.

    Please can someone help me with this ... all my mail messages have vanished - apart from the archive mailboxes where I store messages from 2009.. 08.. 07 etc. So that's my Inbox, Sent & Trash all empty. Is there a way I can get these back please? Che

  • Can't Compile Digikam

    I'm trying to compile Digikam beta for KDE 4.1. This is the error I'm getting when I run "cmake ." [vg@vg-arch digikam-0.10.0-beta1]$ cmake . -- Found Qt-Version 4.4.0 (using /usr/bin/qmake) CMake Error at /usr/share/apps/cmake/modules/FindX11.cmake:

  • UME authorizations for Identity Management

    HI: In order to set up access to allow users to access RAR, I have been placed in GROUP: Administrators in the UME.  This provides me the access to go to the Identity Management area and administer users.  However, it also allows me acces to EVERYTHI

  • Cisco Security Manager 4.2 Service Pack 2

    Hi everyone, I have Windows 2008 32-bits on a Dell 2950 with dual CPU quad cores, 16GB of RAM and 500GB of diskspace.  I am installing Cisco CSM version 4.4 service pack 2 on this system.  The performance is very poor.  I am only managing about three