Questions on Column Fromatting example.

Hi Tech Gurus,
I am trying to implement "Column Formatting" example from Oracle XML Publisher - User Guide(PartNo: B13817-03) pdf. It is working fine and could able to get similar kind of output.
When all the columns are displayed, the table in output occupies certain amount of size in the page. When I try to hide one column out of three, the width/size of the table is coming down. Size of the table in second output is not big as in the first output.
My requirement is, table size should not vary accordning to the number of columns. The table size should be the same and two columns should share the total table length equally or as per the giving settings.
How I can achieve this.
Need urgent help on this.
Regards,
Chandra.

925896 wrote:
Hi
Interviewer asked me this question.
Why do we need an alias for column and is it improving query performance?
I said
if we select columns with same name from different table, alias is useful but no way related to query performance.
is it correct? Please explain me on alias topicYou are correct, alias is not related to performance..

Similar Messages

  • Db_stat output question (last column value?)

    Hi,
    Searched everywhere, can not find this mentioned anywhere. What are the meanings of the columns in the db_stat -C output, for example:
    Locks grouped by lockers:
    Locker Mode Count Status \--------------- Object \------------
    1 dd= 0 locks held 2 write locks 0 pid/thread 20910/1121282384
    1 READ 1 HELD 840055011:840055011 handle 2
    1 READ 1 HELD 840055011:840055011 handle 0
    4 dd= 0 locks held 0 write locks 0 pid/thread 20910/1121282384
    5 dd= 0 locks held 2 write locks 0 pid/thread 20910/1121282384
    5 READ 1 HELD 840055038:840055038 handle 2
    5 READ 1 HELD 840055038:840055038 handle 0
    I take this to indicate:
    Locker 1 has two READ locks on 840055011, which is an open handle
    Locker 4 had been declared, but is now empty, awaiting its call to duty
    Locker 5 has two READ locks on 840055038, again, an open handle
    The pid and thread information are self-describing I believe.
    My questions are, what would the difference be between the two different READ locks in, say, locker 1, one line ends w/ 2, the other w/ 0. Is this a problem in my code, could I possibly have opened the same handle twice?
    Additionally, I know the database handle is being named 840055011 but is listed as "840055011:840055011", is this expected, or again, might I have an issue. I'm fairly sure this is simply naming and probably arbitrary.
    If there is a source for the db_stat output that I have missed, by all means, please let me know, I've tried my best to RTFM, but couldn't find many M's.
    FYI: transactional environment using the Java binding (not JE)
    Thank you

    Hi,
    brianmckenna wrote:
    Searched everywhere, can not find this mentioned anywhere. What are the meanings of the columns in the db_stat -C output...I think this should answer your questions:
    Deadlock debugging - http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/lock_deaddbg.html
    Thanks,
    Bogdan Coman

  • Interview questions on column alias

    Hi
    Interviewer asked me this question.
    Why do we need an alias for column and is it improving query performance?
    I said
    if we select columns with same name from different table, alias is useful but no way related to query performance.
    is it correct? Please explain me on alias topic

    925896 wrote:
    Hi
    Interviewer asked me this question.
    Why do we need an alias for column and is it improving query performance?
    I said
    if we select columns with same name from different table, alias is useful but no way related to query performance.
    is it correct? Please explain me on alias topicYou are correct, alias is not related to performance..

  • Design Question:  huge column is slowing app, what's best way to speedup?

    Hello All,
    I have a DPL application that is getting a bit heavy due to one column and needs to be tweaked and wanted to ask people's advice on the best practice to speeding it up. I have an entity that is tracking versions of statistical data.
    @Entity
    public class ResourceVersion {
         @PrimaryKey(sequence = "resource_sequence")
         @XmlAttribute
         private Long id; //internal primary key
         private byte[] data; //the field slowing everything down.
         @SecondaryKey(relate=Relationship.MANY_TO_ONE)
         private String resourceId; //externally visible key.
         private String name; //field that's actually needed.
         //2 more fields that aren't relevant to example.
         //some getters and setters.
    The byte[] data field can be several megabytes and is making the application slow as my DAO layer is processing a few megabytes of data and then discarding them for the web layer.
    To abstract the problem:
    * I have a CRUD application with a single entity.
    * My page that lists the entities is getting slow.
    * I have a bean with 6 fields.
    * I need 3 of the fields for the page that's listing the entities. The other 3 are only used by a tiny subset of the application.
    I need to stop retrieving the large data field for pages that don't need it. I need a subset of my bean.
    The way I see it, I have 2 options:
    1. Figure out a way using the DPL to retrieve a subset of the fields. Is it even possible?
    2. Break the bean into 2, one containing the fields needed for listing and one bean that just stores the data.
    My assumption is that I have to break the byte[] field into it's own entity. I thought I'd just quickly post to make sure there's not an easier option.
    Thanks,
    Steven

    Hi Steven,
    You're correct that BDB does not support partial record read/write, and therefore the best solution is to break the large blob out into a separate entity (or even store it in a file).
    See:
    http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html#3
    Partial data is not supported at all for the DPL, but as noted in the FAQ the limited support for it in the base API provides very little performance advantage, if any at all.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Column subsetting example

    The Oracle documention says that column subsetting is possible with the replication. Does anyone have an example ?
    -- Daniel

    I'm just curious-- is there a reason that you're
    using CREATE_SNAPSHOT_REPOBJECT rather than
    CREATE_MVIEW_REPOBJECT? I realize that they do the
    same thing, but the fact that you're referring to an
    old procedure name makes me concerned that you may be
    referring to some older documentation which may be
    doing things in an older and more complicated
    fashion.
    If it's not a multimaster environment, why not just
    create the materialized view on the remote system,
    toss it in a refresh group if necessary, and call it
    a day?
    Can you post the exact SQL you used in your steps?
    The error generally means that some of the
    parameters you specified in one or more of the
    earlier steps are in conflict, so we need to see
    exactly what you're doing.
    JustinJustin, I use CREATE_SNAPSHOT_OBJECT because it's the command generated by the deployment templates. However, rest assured that I use the lastest documentation. Here is a script that reproduces the problem :
    SQL> -- CONFIGURE MASTER SITE
    SQL>
    SQL> CONNECT REPADMIN/REPADMIN@D012
    Connected.
    REPADMIN@D012>
    REPADMIN@D012> CREATE TABLE DEMO (ID NUMBER, COLUMN1 VARCHAR2(30), COL_TO_DROP VARCHAR2(30),
    2      CONSTRAINT PK_DEMO PRIMARY KEY (ID));
    Table created.
    REPADMIN@D012>
    REPADMIN@D012> CREATE MATERIALIZED VIEW LOG ON DEMO;
    Materialized view log created.
    REPADMIN@D012>
    REPADMIN@D012> BEGIN
    2      DBMS_REPCAT.CREATE_MASTER_REPGROUP(gname => 'DEMO_REPGROUP');
    3
    4      DBMS_REPCAT.CREATE_MASTER_REPOBJECT (
    5                gname => 'DEMO_REPGROUP',
    6                type => 'TABLE',
    7                oname => 'DEMO',
    8                sname => 'REPADMIN',
    9                use_existing_object => TRUE,
    10                copy_rows => FALSE);
    11
    12      DBMS_REPCAT.GENERATE_REPLICATION_SUPPORT(
    13                sname => 'REPADMIN',
    14                oname => 'DEMO',
    15                type => 'TABLE',
    16                min_communication => TRUE,
    17                generate_80_compatible => FALSE);
    18
    19      DBMS_REPCAT.RESUME_MASTER_ACTIVITY(gname => 'DEMO_REPGROUP');
    20 END;
    21 /
    PL/SQL procedure successfully completed.
    REPADMIN@D012>
    REPADMIN@D012> -- CONFIGURE MATERIALIZED VIEW SITE
    REPADMIN@D012>
    REPADMIN@D012> CONNECT REPADMIN/*****@XE
    Connecté.
    REPADMIN@XE>
    REPADMIN@XE> CREATE DATABASE LINK D012.WORLD CONNECT TO REPADMIN IDENTIFIED BY REPADMIN USING 'D012.WORLD';
    Database link created.
    REPADMIN@XE>
    REPADMIN@XE> CREATE MATERIALIZED VIEW DEMO_MV
    2      REFRESH FAST WITH PRIMARY KEY FOR UPDATE AS
    3      SELECT ID,COLUMN1 FROM [email protected];
    Materialized view created.
    REPADMIN@XE>
    REPADMIN@XE> execute dbms_repcat.create_snapshot_repgroup(gname=>'DEMO_REPGROUP',gowner=>'"PUBLIC"',master=>'D012.WORLD',propagation_mode=>'SYNCHRONOUS');
    PL/SQL procedure successfully completed.
    REPADMIN@XE> execute dbms_repcat.create_snapshot_repobject(generate_80_compatible => FALSE,type=>'SNAPSHOT',sname=>'REPADMIN',oname=>'"DEMO_MV"',gname=>'DEMO_REPGROUP',gowner=>'"PUBLIC"');
    BEGIN dbms_repcat.create_snapshot_repobject(generate_80_compatible => FALSE,type=>'SNAPSHOT',sname=>'REPADMIN',oname=>'"DEMO_MV"',gname=>'DEMO_REPGROUP',gowner=>'"PUBLIC"'); END;
    ERROR at line 1:
    ORA-23459: flavor must contain "DEMO_MV"."COL_A_DROPPER"
    ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 5920
    ORA-06512: at "SYS.DBMS_REPCAT_SNA", line 82
    ORA-06512: at "SYS.DBMS_REPCAT", line 1332
    ORA-06512: at "SYS.DBMS_REPCAT", line 1307
    ORA-06512: at line 1

  • Question about Java Sound example?

    Hello,
    I found this example AudioPlayer, when searching for an example of how to play .wav files in Java.
    The code seems quite long, and wondered if anyone could advise if this is the best way to play a wav file?
    And could anyone explain if the EXTERNAL_BUFFER_SIZE should allows be set to 128000;
    Thank you
    import java.io.File;
    import java.io.IOException;
    import javax.sound.sampled.AudioFormat;
    import javax.sound.sampled.AudioInputStream;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.DataLine;
    import javax.sound.sampled.LineUnavailableException;
    import javax.sound.sampled.SourceDataLine;
    public class SimpleAudioPlayer
         private static final int     EXTERNAL_BUFFER_SIZE = 128000;
         public static void main(String[] args)
                We check that there is exactely one command-line
                argument.
                If not, we display the usage message and exit.
              if (args.length != 1)
                   printUsageAndExit();
                Now, that we're shure there is an argument, we
                take it as the filename of the soundfile
                we want to play.
              String     strFilename = args[0];
              File     soundFile = new File(strFilename);
                We have to read in the sound file.
              AudioInputStream     audioInputStream = null;
              try
                   audioInputStream = AudioSystem.getAudioInputStream(soundFile);
              catch (Exception e)
                     In case of an exception, we dump the exception
                     including the stack trace to the console output.
                     Then, we exit the program.
                   e.printStackTrace();
                   System.exit(1);
                From the AudioInputStream, i.e. from the sound file,
                we fetch information about the format of the
                audio data.
                These information include the sampling frequency,
                the number of
                channels and the size of the samples.
                These information
                are needed to ask Java Sound for a suitable output line
                for this audio file.
              AudioFormat     audioFormat = audioInputStream.getFormat();
                Asking for a line is a rather tricky thing.
                We have to construct an Info object that specifies
                the desired properties for the line.
                First, we have to say which kind of line we want. The
                possibilities are: SourceDataLine (for playback), Clip
                (for repeated playback)     and TargetDataLine (for
                recording).
                Here, we want to do normal playback, so we ask for
                a SourceDataLine.
                Then, we have to pass an AudioFormat object, so that
                the Line knows which format the data passed to it
                will have.
                Furthermore, we can give Java Sound a hint about how
                big the internal buffer for the line should be. This
                isn't used here, signaling that we
                don't care about the exact size. Java Sound will use
                some default value for the buffer size.
              SourceDataLine     line = null;
              DataLine.Info     info = new DataLine.Info(SourceDataLine.class,
                                                                 audioFormat);
              try
                   line = (SourceDataLine) AudioSystem.getLine(info);
                     The line is there, but it is not yet ready to
                     receive audio data. We have to open the line.
                   line.open(audioFormat);
              catch (LineUnavailableException e)
                   e.printStackTrace();
                   System.exit(1);
              catch (Exception e)
                   e.printStackTrace();
                   System.exit(1);
                Still not enough. The line now can receive data,
                but will not pass them on to the audio output device
                (which means to your sound card). This has to be
                activated.
              line.start();
                Ok, finally the line is prepared. Now comes the real
                job: we have to write data to the line. We do this
                in a loop. First, we read data from the
                AudioInputStream to a buffer. Then, we write from
                this buffer to the Line. This is done until the end
                of the file is reached, which is detected by a
                return value of -1 from the read method of the
                AudioInputStream.
              int     nBytesRead = 0;
              byte[]     abData = new byte[EXTERNAL_BUFFER_SIZE];
              while (nBytesRead != -1)
                   try
                        nBytesRead = audioInputStream.read(abData, 0, abData.length);
                   catch (IOException e)
                        e.printStackTrace();
                   if (nBytesRead >= 0)
                        int     nBytesWritten = line.write(abData, 0, nBytesRead);
                Wait until all data are played.
                This is only necessary because of the bug noted below.
                (If we do not wait, we would interrupt the playback by
                prematurely closing the line and exiting the VM.)
                Thanks to Margie Fitch for bringing me on the right
                path to this solution.
              line.drain();
                All data are played. We can close the shop.
              line.close();
                There is a bug in the jdk1.3/1.4.
                It prevents correct termination of the VM.
                So we have to exit ourselves.
              System.exit(0);
         private static void printUsageAndExit()
              out("SimpleAudioPlayer: usage:");
              out("\tjava SimpleAudioPlayer <soundfile>");
              System.exit(1);
         private static void out(String strMessage)
              System.out.println(strMessage);
    }

    I didnot go thru the code you posted but I know that the following workstry {
            // From file
            AudioInputStream stream = AudioSystem.getAudioInputStream(new File("audiofile"));
            // From URL
            stream = AudioSystem.getAudioInputStream(new URL("http://hostname/audiofile"));
            // At present, ALAW and ULAW encodings must be converted
            // to PCM_SIGNED before it can be played
            AudioFormat format = stream.getFormat();
            if (format.getEncoding() != AudioFormat.Encoding.PCM_SIGNED) {
                format = new AudioFormat(
                        AudioFormat.Encoding.PCM_SIGNED,
                        format.getSampleRate(),
                        format.getSampleSizeInBits()*2,
                        format.getChannels(),
                        format.getFrameSize()*2,
                        format.getFrameRate(),
                        true);        // big endian
                stream = AudioSystem.getAudioInputStream(format, stream);
            // Create the clip
            DataLine.Info info = new DataLine.Info(
                Clip.class, stream.getFormat(), ((int)stream.getFrameLength()*format.getFrameSize()));
            Clip clip = (Clip) AudioSystem.getLine(info);
            // This method does not return until the audio file is completely loaded
            clip.open(stream);
            // Start playing
            clip.start();
        } catch (MalformedURLException e) {
        } catch (IOException e) {
        } catch (LineUnavailableException e) {
        } catch (UnsupportedAudioFileException e) {
        }

  • Question on Passivation / Activation example in Dev Guide

    Adf 11g
    Hello
    I'm loading some values into the session UserData in my application module PrepareSession.
    As I understand things I need to passivate/activate this information.
    However the example in the Fusion Dev Guide on page 39-19 for the passivation
    seems to be missing the caller to super.passivateState.
    Is this correct ?
    Best Regards
    Paul

    Surprisingly, no. The superclass method is basically a no-op. This method isn't involved in passivating the standard transactional and non-transactional state; it's just for custom data. Standard passivation takes place in passivateState(int, byte[], int).

  • CreateView (join) question, deep XML PO example

    I'm trying to create a database view that makes the data from the PO example available via SQL. Recall that the PO example has a deep XML structure (header and POLINES) which is parsed into two objects PO and POLINES. PO is a child of PublicObjects, and I've sucessfully created a view on just it. Now I want to have a view that joins the header to the lines. POLINES object is a child of APPLICATIONOBJECT.
    When I try to setup the JoinQualification, I get
    Exception :oracle.ifs.common.IfsException: IFS-22701: PURCHASEORDERLINEITEM is not an alias or className
    oracle.ifs.common.IfsException: IFS-22701: PURCHASEORDERLINEITEM is not an alias or className
    Well gee, I thought it was.
    Help?

    For anyone else trying to do this... I switched to trying to join to the "Rejection" object. The mistake was that I was trying to join PurchaseOrder to Rejection, without including Rejection in the Search:
    scp.addSearchClass("PURCHASEORDERREJECTION");
    null

  • Question about code corner Example#33: How-to open a Bounded Task Flow in a new Browser Tab

    Hello All,
    I am implementing example #33 in code corner series Oracle ADF Code Corner&lt;/title&gt;&lt;meta name=&quot;Title&quot; content=&quot;Oracle ADF Code Corner&quot;&gt;&lt;me…
    Every thing is going fine, but there is a comment in the java code that I don't understand.
    public void onLaunchForEdit(ActionEvent actionEvent) {    
          //access the ADF binding layer and access the tree binding that
          //populates the table
            BindingContext bctx = BindingContext.getCurrent();
            BindingContainer bindings =
                                   bctx.getCurrentBindingsEntry();   
            //access the tree binding defined in the ADF binding layer
            JUCtrlHierBinding model =
                   (JUCtrlHierBinding) bindings.get("DepartmentsView1");
            //get the current selected row key from the iterator binding
            //referenced from the table binding (tree binding). Of course,
            //I could have used the iterator name directly in the binding
            //lookup, but looking up the tree binding instead allows to
            //change the tree binding iterator dependency to a later point
            //in time without breaking this functionality. Its all about
            //"weak" dependencies that give you flexibility when coding ADF
            String rwKeyString =
                   model.getDCIteratorBinding().getCurrentRowKeyString();
            launchWindow(rwKeyString);
    What does this comment mean?
             //but looking up the tree binding instead allows to
            //change the tree binding iterator dependency to a later point
            //in time without breaking this functionality. Its all about
            //"weak" dependencies that give you flexibility when coding ADF
    Is this a contrast to this line of code?
    JUCtrlHierBinding model =
                   (JUCtrlHierBinding) bindings.get("DepartmentsView1");
    I mean in this line of code we hard coded the tree binding name from the page Def? why getting the tree binding name is a best practice while getting the iterator name is not?

    What does this comment mean?
             //but looking up the tree binding instead allows to 
            //change the tree binding iterator dependency to a later point 
            //in time without breaking this functionality. Its all about 
            //"weak" dependencies that give you flexibility when coding ADF 
    Is this a contrast to this line of code?
    JUCtrlHierBinding model = 
                   (JUCtrlHierBinding) bindings.get("DepartmentsView1"); 
    Yes, it's exactly this line of code the comment is referring to. If you look at the bindings of a page you see three parts: on the left he bindings, in the middle the executables and on the right side the data control. The statement
    JUCtrlHierBinding model = 
                   (JUCtrlHierBinding) bindings.get("DepartmentsView1");
    access the binding, the tree binding to get the data. if you use the iterator which named 'DepartmentsView1Iterator' you are accessing the executable, the iterator itself. The comment now tell you that if you access the data via the tree binding, that you can change the underlying iterator to point to different data. This you can do without the need to change the code in the been, whihc is good as you (or we all) tend to forget that we have code working on the iterator, so changing things in the bindings will break the application.
    Timo

  • Essbase RPD question - 2 columns

    We build an Essbase BSO cube with historical data. Linked it to OBI (nothing special in the RPD done).
    Then we put a filter onto a column: FILTER("FinHist"."FinHist - measure" USING ("Years#1"."Years - Default" = '2006'))
    This works.
    BUT when we add a second column with e.g. FILTER("FinHist"."FinHist - measure" USING ("Years#1"."Years - Default" = '2005'))
    then we get no results at all  - even though both FILTERS alone give a result.
    (we are on OBIEE 11.1.1.6.7 and Essbase 11.1.2.1)

    In Oracle BI you'd typically fix this problem by creating a join between the two datasources using Process Key as the key. Can you do something similar with GRC?

  • Question about JAI posted example?

    Thank you
    I just wondered if I could ask, I found this example JAI code on the web. The code compiles, but in the example said they missed out some lines at the begining, do you these missing lines were to read-in a image?
    import java.awt.*;
    import java.awt.image.*;
    import javax.media.jai.*;
    public class CreateRGBImage{
       public static void main(String[] args){
          int width = 121; int height = 121; // Dimensions of the image
          byte[] data = new byte[width*height*3]; // Image data array.
          int count = 0; // Temporary counter.
          for(int w=0;w<width;w++) // Fill the array with a pattern.
             for(int h=0;h<height;h++){
                data[count+0] = (count % 2 == 0) ? (byte)255: (byte) 0;
                data[count+1] = 0;
                data[count+2] = (count % 2 == 0) ? (byte) 0: (byte)255;
                count += 3;
          // Create a Data Buffer from the values on the single image array.
          DataBufferByte dbuffer = new DataBufferByte(data,width*height*3);
          // Create an pixel interleaved data sample model.
          SampleModel sampleModel = RasterFactory.
          createPixelInterleavedSampleModel(DataBuffer.TYPE_BYTE,
          width,height,3);
          // Create a compatible ColorModel.
          ColorModel colorModel = PlanarImage.createColorModel(sampleModel);
          // Create a WritableRaster.
          Raster raster = RasterFactory.createWritableRaster(sampleModel,dbuffer,
          new Point(0,0));
          // Create a TiledImage using the SampleModel.
          TiledImage tiledImage = new TiledImage(0,0,width,height,0,0,
          sampleModel,colorModel);
          // Set the data of the tiled image to be the raster.
          tiledImage.setData(raster);
          // Save the image on a file.
          JAI.create("filestore",tiledImage,"rgbpattern.tif","TIFF");
    }

    I didnot go thru the code you posted but I know that the following workstry {
            // From file
            AudioInputStream stream = AudioSystem.getAudioInputStream(new File("audiofile"));
            // From URL
            stream = AudioSystem.getAudioInputStream(new URL("http://hostname/audiofile"));
            // At present, ALAW and ULAW encodings must be converted
            // to PCM_SIGNED before it can be played
            AudioFormat format = stream.getFormat();
            if (format.getEncoding() != AudioFormat.Encoding.PCM_SIGNED) {
                format = new AudioFormat(
                        AudioFormat.Encoding.PCM_SIGNED,
                        format.getSampleRate(),
                        format.getSampleSizeInBits()*2,
                        format.getChannels(),
                        format.getFrameSize()*2,
                        format.getFrameRate(),
                        true);        // big endian
                stream = AudioSystem.getAudioInputStream(format, stream);
            // Create the clip
            DataLine.Info info = new DataLine.Info(
                Clip.class, stream.getFormat(), ((int)stream.getFrameLength()*format.getFrameSize()));
            Clip clip = (Clip) AudioSystem.getLine(info);
            // This method does not return until the audio file is completely loaded
            clip.open(stream);
            // Start playing
            clip.start();
        } catch (MalformedURLException e) {
        } catch (IOException e) {
        } catch (LineUnavailableException e) {
        } catch (UnsupportedAudioFileException e) {
        }

  • Question in usrp transmitter example

    In the usrp transmitter example:
    what is the exact packet structure?
    what is the padding samples? and how it differs from padding bits? and what is the fuction of the padding bits?
    what is the function of the blank frame
    thanks in advance

    The packet is structured as follows, in bits:
    The packets are padded because the transmitter and receiver are not sharing any timing information, which means data could potentially be lost.  By adding padding samples, we are able to ensure that when the packet is received, none of the data will be lost at the front and back of the transmitted frame.  Take a look at this thread, which discusses this in more depth.
    If you take a look at the block diagram of the USRP Packet Transmitter VI, you'll see a case structure that determines when to send packets to the receiver.  If the case structure reads the queue of samples to be sent as empty, it will instead send a blank frame matching the size specified in the above snippet.  The blank frame is used as an empty packet to ensure the connection is not lost.  If we were to simply not send any packet, then the receiver might assume that the connection was lost when instead we are simply not sending anything.  By sending an empty packet, the receiver knows the connection is still active, and can wait for a packet of actual data.
    Patrick
    CLA

  • Conky config question - running in multiple columns?

    Is it possible to display conky's output in rows rather than in columns? Example: I want to more or less cut my config in 1/2 and have the temps+ everything under them appear to the right of the CPU usage bit.
    # Swap Usage:$color $swapperc%${color lightgrey}
    # the ${template x x x} command uses /sys/bus/platform/devices
    # for this to work you need both lm-sensors and hddtemp
    # get both from main repos
    # set to yes if you want Conky to be forked in the background
    background no
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    out_to_console no
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 7x12
    #font 6x10
    #font 7x13
    #font 8x13
    #font 7x12
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
    # Use Xft?
    use_xft yes
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=8
    #own_window_transparent no
    #own_window_colour hotpink
    # Text alpha when using Xft
    xftalpha 0.8
    #on_bottom yes
    # Update interval in seconds
    update_interval 2
    # Create own window instead of using desktop (required in nautilus)
    #own_window no
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    # Minimum size of text area
    #minimum_size 250 5
    maximum_width 258
    # Draw shades?
    draw_shades no
    # Draw outlines?
    draw_outline no
    # Draw borders around text
    draw_borders no
    # Stippled borders?
    stippled_borders 10
    # border margins
    border_margin 4
    # border width
    border_width 1
    # Default colors and also border colors
    default_color white
    default_shade_color white
    default_outline_color white
    # Text alignment, other possible values are commented
    #alignment top_left
    #minimum_size 10 10
    #alignment top_right
    alignment bottom_left
    #alignment bottom_right
    # Gap between borders of screen and text
    gap_x 12
    gap_y 37
    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer no
    # Subtract file system buffers from used memory?
    no_buffers yes
    # set to yes if you want all text to be in uppercase
    uppercase no
    TEXT
    ${color #ddaa00}$nodename$color
    $sysname $kernel on $machine
    ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg${color lightgrey}
    RAM Usage:$color $memperc% or $mem of $memmax${color lightgrey}
    $color$stippled_hr${color lightgrey}
    Intel Xeon X3360 @ $color${freq_g} GHz${color lightgrey} (Vcc: ${execi 8 sensors | grep Vcc | cut -c15-19} V)
    ${color black}${cpugraph 000000 5000a0}${color lightgrey}
    ${color lightgrey}Core0:$color ${platform coretemp.0 temp 1} °C${color grey} @$color ${cpu cpu1}% ${alignr}${cpubar cpu1 6,120}
    ${color lightgrey}Core1:$color ${platform coretemp.1 temp 1} °C${color grey} @$color ${cpu cpu2}% ${alignr}${cpubar cpu2 6,120}
    ${color lightgrey}Core2:$color ${platform coretemp.2 temp 1} °C${color grey} @$color ${cpu cpu3}% ${alignr}${cpubar cpu3 6,120}
    ${color lightgrey}Core3:$color ${platform coretemp.3 temp 1} °C${color grey} @$color ${cpu cpu4}% ${alignr}${cpubar cpu4 6,120}${color grey}
    ${color grey} CPU:$color ${platform it87.656 temp 2} °C ${color grey} Fan1:$color ${platform it87.656 fan 1}${color grey} RPM @ $color${execi 8 cat /sys/class/hwmon/hwmon4/device/pwm1}
    $color$stippled_hr${color lightgrey}
    ${color grey} GPU:$color ${execi 8 nvidia-settings -q gpucoretemp | grep nov | cut -c42-43} °C ${color grey} M/B:$color ${platform it87.656 temp 1} °C
    ${color grey} sda:$color ${execi 300 sudo hddtemp /dev/sda | cut -c25-26} °C ${color grey} sdb:$color ${execi 300 sudo hddtemp /dev/sdb | cut -c34-35} °C ${color grey} sdc:$color ${execi 300 sudo hddtemp /dev/sdc | cut -c33-34} °C
    $color$stippled_hr${color lightgrey}
    ${color slate grey} /dev/shm: ${color }${fs_used_perc /dev/shm} % ${fs_bar /dev/shm}
    ${color grey}$stippled_hr${color light grey}
    ${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes
    ${color}Name PID CPU% MEM%
    ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color}Mem usage
    ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

    There are 4 files, so I am running 4 instances of conky.  I will post the files from left to right. 
    background no
    update_interval 1.0
    double_buffer yes
    use_xft no
    xftfont Monospace:size=10
    xftalpha 0.8
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #on_bottom yes
    minimum_size 320 42
    draw_shades no
    draw_outline yes
    draw_borders yes
    draw_graph_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_left
    gap_x 10
    gap_y 875
    #gap_y 10
    no_buffers yes
    TEXT
    Toshibuntu
    ${hr}
    ${color #F09000}Uptime${color #707070}:$color $uptime
    ${color #F09000}Load${color #707070}:$color $loadavg
    ${color #F09000}Battery${color #707070}:${color white} ${execi 15 /usr/bin/bat.pl}% ${color white} ${execibar 15 /usr/bin/bat.pl}
    ${color #F09000}CPU${color #707070}:${color white} ${cpu}% ${freq}MHz ${color #F09000}Temp${color #707070}:$color ${acpitemp} F${color grey}
    ${cpugraph 000000 5000a0}
    ${color #F09000}Memory${color #707070}:${color white} ${memperc}% $mem/$memmax
    ${memgraph 000000 5000a0}
    background no
    update_interval 1.0
    double_buffer yes
    use_xft no
    xftfont Monospace:size=10
    xftalpha 0.8
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #on_bottom yes
    minimum_size 250 42
    draw_shades no
    draw_outline yes
    draw_borders no
    draw_graph_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_left
    gap_x 332
    gap_y 875
    #gap_y 10
    no_buffers yes
    TEXT
    ${color white}Processes
    ${hr}
    ${color}Name PID CPU% MEM%
    ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    ${color}Mem usage
    ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    ${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
    background no
    update_interval 1.0
    double_buffer yes
    use_xft no
    xftfont Monospace:size=10
    xftalpha 0.8
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #on_bottom yes
    minimum_size 275 42
    draw_shades no
    draw_outline yes
    draw_borders no
    draw_graph_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_left
    gap_x 580
    gap_y 875
    #gap_y 10
    no_buffers yes
    TEXT
    Networking
    ${hr}
    ${color #F09000}wlan0${color #707070}:${color white} ${addr wlan0}
    ${color #F09000}Downspeed${color #707070}: ${color white}${downspeed wlan0}k ${color #F09000}Upspeed${color #707070}: ${color white}${upspeed wlan0}k
    ${color black}${downspeedgraph wlan0 30,90 000000 5000a0} $alignr${color black}${upspeedgraph wlan0 30,90 000000 5000a0}
    ${color #F09000}eth0${color #707070}:${color white} ${addr eth0}
    ${color #F09000}Downspeed${color #707070}: ${color white}${downspeed eth0}k ${color #F09000}Upspeed${color #707070}: ${color white}${upspeed eth0}k
    ${color black}${downspeedgraph eth0 30,90 000000 5000a0} $alignr${color black}${upspeedgraph eth0 30,90 000000 5000a0}
    background no
    update_interval 1.0
    double_buffer yes
    use_xft no
    xftfont Monospace:size=10
    xftalpha 0.8
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #on_bottom yes
    minimum_size 415 42
    draw_shades no
    draw_outline yes
    draw_borders yes
    draw_graph_borders no
    stippled_borders 0
    border_margin 0
    border_width 0
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_left
    gap_x 855
    gap_y 875
    #gap_y 10
    no_buffers yes
    TEXT
    ${color white}File Systems
    ${hr}
    ${if_mounted /}${color #F09000}/${color #707070}: $color${fs_used /}/${fs_size /} ${color #F09000}Free${color #707070}: $color${fs_free /} ${fs_bar /}$endif
    ${if_mounted /media/Elements}${color #F09000}Elements${color #707070}: $color${fs_used /media/Elements}/${fs_size /media/Elements} ${color #F09000}Free${color #707070}: $color${fs_free /media/Elements} ${fs_bar /media/Elements}$endif
    ${if_mounted /media/data}${color #F09000}data${color #707070}: $color${fs_used /media/data}/${fs_size /media/data} ${color #F09000}Free${color #707070}: $color${fs_free /media/data} ${fs_bar /media/data}$endif
    ${if_mounted /media/host}${color #F09000}host${color #707070}: $color${fs_used /media/host}/${fs_size /media/host} ${color #F09000}Free${color #707070}: $color${fs_free /media/host} ${fs_bar /media/host}$endif
    ${if_mounted /media/studio}${color #f09000}studio${color #707070}: $color${fs_used /media/studio}/${fs_size /media/studio} ${color #F09000}Free${color #707070}: $color${fs_free /media/studio} ${fs_bar /media/studio}$endif
    ${if_mounted /media/elements}${color #f09000}elements${color #707070}: $color${fs_used /media/elements}/${fs_size /media/elements} ${color #F09000}Free${color #707070}: $color${fs_free /media/elements} ${fs_bar /media/elements}$endif
    ${if_mounted /mnt/ubuntu}${color #F09000}ubuntu${color #707070}: $color${fs_used /mnt/ubuntu}/${fs_size /mnt/ubuntu} ${color #F09000}Free${color #707070}: $color${fs_free /mnt/ubuntu} ${fs_bar /mnt/ubuntu}$endif
    I put the 4 files in my home directory and named them
    .conkyrc
    .conkyrctop
    .conkyrcnet
    .conkyrcfile
    I use the following bash script to start them all
    #!/bin/bash
    conky -c ~/.conkyrc &
    conky -c ~/.conkyrctop &
    conky -c ~/.conkyrcnet &
    conky -c ~/.conkyrcfile &
    Only the script needs to be executable.  Also the files are sized for 1280x1024 so if you use a different resolution you will have to change gap_y values and minimum_size values to accomodate.
    Last edited by empthollow (2010-07-08 19:06:59)

  • XSQL SVG Example questions

    The SVG example provided with the XSQL servlet is excellent and illustrates at least 5 different (and very useful) techniques. Congrats to whoever came up with it.
    This one example shows SVG, named templates, use of xsl:variable, use of xsl_param, use of xsl:with-param, use of xsl:call-template and the apparent use of java classes from a jar file ala java server pages.
    The example also raises several questions:
    1. The example uses two namespace declarations I haven't seen before -
    xmlns:Color="http://www.oracle.com/XSL/Transform/java/java.awt.Color"
    and
    xmlns:Integer="http://www.oracle.com/XSL/Transform/java/java.lang.Integer"
    These appear to be allowing the use of Java classes in some jar file similar to the way Java server pages might do it.
    It this correct? Is this because these two classes were built-in to the XSQL servlet? What other classes can be used? All of them? From any jar file? Is more documentation available?
    2. What does the 'doctype=system="svg-19990812.dtd"' line do? There is no such DTD on my system but the demo works fine. There are references to DTDs with similar names in the FOP samples and in Adobe's samples but the name is slightly different.
    3. Why is the media-type image/svg? The SVG 1.0 spec dated 2 Nov 2000 in section 1.2 says the SVG mime type is "image/svg+xml".
    4. Why is there no namespace declaration for the svg tag or any of the svg related tags? Samples from other vendors seem to always have a declaration.
    Thanks again for a great piece of code.
    null

    Rick,
    You'll find a further-refined, and fully-explained version of the SVG example in Chapter 16 of Building Oracle XML Applications. This chapter covers the use of XSLT extension functions and illustrates how to use Java extension functions with the Oracle XSLT engine.
    [list=1]
    [*]The two namespaces you list are the way that the Oracle XSLT engine allows you to map extension functions in a namespace to methods of a Java class. This example illustrates using two different built-in classes of the JDK, java.awt.Color and java.lang.Integer. These are not specific to (or built-in in any way to the) XSQL processor or the XSLT engine, but are base classes in the JDK. You can use any Java extension functions in your XSLT stylesheets. The only requirement is that you (1) get the namespace correct to assign a namespace to the appropriate fully-qualified classname, and (2) make sure the classes you want to use are in the CLASSPATH.
    [*]The <xsl:output> attribute doctype-system provides a value to be used for the SYSTEM URI of the <!DOCTYPE in the transformed output. The particular value was required by the SVG draft at the time I built the demo. It must be handled by a special entity-resolver built into the SVG Viewer that you're using, which explains why not having on your system as a physical file doesn't stop the demo from working.
    [*]The media-type is image/svg instead of image/svg+xml because the SVG demo was built before the final draft of SVG went out. This value was apparently changed in one of the final drafts. It appears that the Adobe SVG viewer registers itself as the handler for both.
    [*]See http://www.w3.org/TR/SVG/struct.html#NewDocument. The spec appears to allow both unqualified use of <svg> as well as namespace-qualified <svg:svg> when SVG is embedded within another document.
    [list]

  • OO question in LabVIEW example

    Hello,
    I am trying to learn OO and I have a question in the LabVIEW examples.  See the attached image
    What is the protected VI's?  It looks like a collection of VIs with a type def.  Isn't this a class?  Why isn't it a class?  What is going on?
    Thanks

    No image attached.  Which example are you looking at?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Dynamic data in Spry Collapsible Panel

    Hi guys, Am trying to get data from a Data Set into the Spry Collapsible Panel, with little luck. Have tried the following and was wondering if i am doing something wrong? <div spry:region="dsProduct"> <div id="CollapsiblePanel1" class="CollapsiblePa

  • Please Help me sync my IPhone and Ipad to Outlook 2011 calendar

    I am unable to sync my calendar on my iPhone correctly and it will not sync at all on my iPad. I don't want or need to use iCal or iSync (I think) because I am using Exchange 2007 I believe. I can retrieve email, and the calendar loads, but the meeti

  • Itunes wont quit on mac and cannot browse any apps or window

    Hi,. I was just listening to my songs,. Then suddenly when I'm trying to exit my itunes, it won't quit. Everytime I try to restart my computer, my itunes keeps coming back, and I cannot use any of my applications, click any icons or open any windows

  • Catalyst Control Center crashing on start-up

    Every time I start up my laptop Catalyst Control Centre and its subsidiary apps keeps crashing and it shows in taskbar "Error Reporting Icon" eg = MOM.exe eg = Catalyst Control Centre Launcher.exe Even if I try to reload the application manually then

  • Password itself changed ALONE pls help

    Hi, Yesterday evening I used the phone and everything was OK, in the morning i tried to enter the password and phone does not accept it. I know i put good password. I tried many times, for sure more than 20, and every time i see message that i have 5