Null Space matrix

Hello,
I have a question regarding Solve Linear Equation.vi.
Given a system of 8 equations with 9 unknown, in a form: AX = Y , A is a 8x9 knwon matrix and X is a 9x1 Vector (unknowns) and Y = 0. I would like to find the null space of this system of equation. We have 9 column vectors each with 8 elements. The column vectors are lineary dependent so there must be a linear combination of them. So I would like to find the X by solving for the null space of the 8x9 matrix of A.
Is the Solve Linear Equation is capable for this purpose?
+++ In God we believe, in Trance we Trust +++
[Hungary]
Solved!
Go to Solution.

Hi D60!
If you double click the Solve Linear Equation.vi, and have a look on the block diagram.
You will see that depending on the type of your matrix, different equitation solving functions are used. You can double click these functions too, to have a look how it works.
I think the easiest way to get the null space of the matrix is the null() function of the Mathsrcipt node: http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmath/msfunc_null/
More information about the Mathscript node: http://www.ni.com/white-paper/7572/en
Please let me know if my suggestion helps.
Best Regards,
Balazs Nagy

Similar Messages

  • Matrix Program - First time using multiple classes

    I'm writing a program right now that takes matrices from an input file specified by the user. The file is in this format.
    #rows #columns
    1 1 1 1 1 1
    1 1 1 1 1 1
    1 1 1 1 1 1
    So in place of #rows I would have a 3, and #columns would be a 6. They are seperated by a space, as are the elements.
    I have two classes, one entitled Proj6 (Yes, it's a school assignment) and one called Matrix. Proj6 chooses the name of the file to use. After the Matrix class creates the two matrices, using loops, Proj6 then asks what I would like to do to these matrices. I must be able to:
    Print the two Matrices
    Add
    Subtract (just in the order of Matrix 1 - Matrix 2)
    Transpose Matrix one.
    Quit the program.
    Here is my Proj6 Class:
    public class Proj6 {
         public static Scanner s;
         public static Scanner f;
         public static void main(String[]args) throws FileNotFoundException {
              System.out.print("Please Enter the filename, complete with extension: ");
              s = new Scanner(System.in);
              f = new Scanner(new File(s.nextLine()));
              String fline = (f.nextLine());
              StringTokenizer st = new StringTokenizer(fline ," ");
              String r = st.nextToken();
              int row = Integer.parseInt(r);
              String c = st.nextToken();
              int col = Integer.parseInt(c);
              Matrix m1 = new Matrix(row,col);
              for (int i = 0; i < row; i++){
                   fline = (f.nextLine());
                   for (int j = 0; j < col; j++){
                        while (st.hasMoreTokens()){
                        String x = st.nextToken();
                        int value = Integer.parseInt(x);                              
                        m1.setElem(i,j,value);     
              f.nextLine();
              fline = (f.nextLine());
              r = st.nextToken();
              row = Integer.parseInt(r);
              c = st.nextToken();
              col = Integer.parseInt(c);
              Matrix m2 = new Matrix(row,col);
              for (int o = 0; o < row; o++){
                   fline = (f.nextLine());
                   for (int j = 0; j < col; j++){
                        while (st.hasMoreTokens()){
                        String x = st.nextToken();
                        int value = Integer.parseInt(x);                              
                        m2.setElem(o,j,value);                    
              System.out.println("Enter (p)rint, (a)dd, (t)ranspose, or (q)uit");
              String a = s.nextLine();
              char action = a.charAt(0);
              if (action == 'p') {
                        String print1 = Matrix.toString(m1);
                        System.out.println("First");
                        System.out.println();
                        System.out.print(print1);
                        String print2 = Matrix.toString(m2);
                        System.out.println("Second");
                        System.out.println();
                        System.out.print(print2);
              else if (action == 'a') {
              else if (action == 't') {
                        Matrix m1t = new Matrix(transpose(m1));
                        Matrix m2t = new Matrix(transpose(m2));
                        String print1 = Matrix.toString(m1t);
              else {
                        System.exit(-1);
    }Here is my "Matrix" class
    import java.util.*;
    public class Matrix {
         public int row;
         public int col;
         public int[][] arr = new int[row][col];
         Matrix (int row, int col) {
              arr = new int[row][col];          
         public void setElem(int row, int col, int value) {
              arr[row][col] = value;
         public String toString (Matrix m){
              return null;
         public Matrix plusMatrix (Matrix m) {
              if (m1.length != m2.length || m1.length[0] != m2.length[0]) {
                   return null;
              Matrix x = new Matrix(m1.length,m1.length[0]);
              int number;
              for (int i = 0; i<m1.length; i ++) {
                   for (int j = 0; j<m1[0].length; j ++) {
                        number = (Integer.parseInt(m1[i][j]) + Integer.parseInt(m2[i][j]));
                        x.setElem(i,j,number);
              return x;
         public Matrix minusMatrix(Matrix m) {
              Matrix x = new Matrix(m1.length, m1.length[0]);
              return x;
         public Matrix transpose (Matrix m) {
              int number;
              Matrix x = new Matrix(m1.length[0],m1.length);
              for (int i = 0; i< m1.length[0]; i ++) {
                   for (int j = 0; j<m1.length; j ++) {
                        number = Integer.parseInt(m1[i][j]);
                        x.setElem(i,j,number);                    
              return x;
    }I'm having two main problems:
    First, my references to "m1" and "m2" in the Matrix class get the cannot be resolved errors. Once I've created the matrices correctly (in theory) why can't I refer to them in Matrix?
    Second, I don't think that I'm creating the matrix quite correctly. I know that Tokenizer is technically obsolete, but I'm more familiar with it than the split method.
    I'm required to use a toString method in Matrix to "Print" the matrices from each function, but I'm not allowed to send it any parameters, or use any print statements in the Matrix class.
    Can you guys catch any errors that I can rectify without necessarily changing my techniques? Or at least provide a thorough explanation for any technique changes?

    My new, updated code is having trouble getting the Matrices inputted correctly
    public class Proj6 {
         public static Scanner s;
         public static Scanner f;
         public static void main(String[]args) throws FileNotFoundException {
              System.out.print("Please Enter the filename, complete with extension: ");
              s = new Scanner(System.in);
              f = new Scanner(new File(s.nextLine()));
              String fline = (f.nextLine());
              StringTokenizer st = new StringTokenizer(fline ," ");
              int row = Integer.parseInt(st.nextToken());
              int col = Integer.parseInt(st.nextToken());
              Matrix m1 = new Matrix(row,col);
              System.out.println(row + "  " + col);
              System.out.print(fline);
              f.nextLine();
              f.nextLine();
              fline = f.nextLine();
              for (int i = 0; i < row; i++){               
                   while (st.hasMoreTokens()) {
                        int value = Integer.parseInt(st.nextToken());
                        System.out.println(value);
                        for (int j = 0; j < col; j++){
                             m1.setElem(i,j,value);     
                   fline = (f.nextLine());
              //System.out.println(toString());
              System.out.println(fline);
              System.out.println("Here begins the second matrix");
              int row2 = Integer.parseInt(st.nextToken());
              int col2 = Integer.parseInt(st.nextToken());
              System.out.print(row2 + "  " + col2);
              Matrix m2 = new Matrix(row2,col2);
              for (int o = 0; o < row2; o++){
                   f.nextLine();
                   while (st.hasMoreTokens()) {
                        int value = Integer.parseInt(st.nextToken());
                        for (int j = 0; j < col2; j++){
                             m2.setElem(o,j,value);                    
              }When I run this code with this matrix file:
    3 5
    8 19 7 15 4
    21 42 9 0 26
    13 7 2 1 16
    4 5
    2 12 6 9 0
    40 22 8 4 17
    3 13 8 29 10
    1 1 1 1 1 I get:
    3 5
    3 52 12 6 9 0
    Here begins the second matrix
    it's not moving through correctly. The f.nextLine()operator, and its relation to the string fline is confusing me.
    Edited by: Ryanman on Apr 7, 2010 9:31 PM

  • How to replace  BLANK or NULL values in rule file

    Hi,
    I have a source file which contains Blank or Null values which i need to replace them with a number "042" .How we can do this in the rule file using "Replace "(Field->Properties).I tried keeping spaces but its failing. I am actually new to essbase please let me know how we can do this.
    Thanks in Advance

    Hi,
    Unfortunately you can't replace blank/null/space values directly. What you need to do is add a text field in your rules file first, then merge the text field with the column containing blank/null/space. Then you can use some creative find and replace to solve this problem.
    For example, I often add a column called "TextCleaner" to my rules files where I suspect b/n/s values. After merging there are 3 possible options for the value.
    1) "TextCleaner" (The original value was null)
    2) "TextCleaner " (The original value was space)
    3) "TextCleanerUSA Region" (The original value was valid data, such as USA Region)
    Now you can use the find and replace as follows
    First, F&R to remove any instance of "TextCleaner" and replace with 042. Be sure to check the "Match Whole Word" button. This swaps null values with 42
    Second, do the same thing but with "TextCleaner ". This swaps any space/blank values with 42.
    Third, replace "TextCleaner" with nothing. Do not check the "Match Whole Word" button. This changes any original valid values back to the original value.

  • Filling matrix with Dummy Data

    I am doing a demo screen for a client and I need to fill a matrix with hard coded data. I followed the sample code and I have the following code but it is not working for me (it throws a matrix-line exists exception):
    // Now get the matrix Item.
    SAPbouiCOM.Item matrixItem  = oForm.Items.Item("v33_Grid");
    theMatrix = (SAPbouiCOM.Matrix) matrixItem.Specific;
    Form.Freeze(true);
    SAPbouiCOM.UserDataSource uds;
    uds = oForm.DataSources.UserDataSources.Add("salesUds",SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 10);
    theMatrix.AddRow(1, theMatrix.RowCount);
    SAPbouiCOM.Column     col      = null;
    // Ready Matrix to populate data
    theMatrix.AutoResizeColumns();
    col = theMatrix.Columns.Item("desc1");
    col.DataBind.SetBound(true, "", "salesUds");
    uds.Value = "Test description";
    // setting the user data source data
    theMatrix.LoadFromDataSource();
    oForm.Freeze(false);
    oForm.Update();     
    I really need to get this working. ANyone got any ideas what I am doing wrong?

    Hi Laura,
    You should use theMatrix.SetLineData() which is the avaiable statement for user matrixes.
    Here is some code that loads a form with a matrix from an XML. This way you can edit form values in the XML, instead of hard coding.
    Dim oXMLDoc1 As Xml.XmlDocument = New Xml.XmlDocument
    oXMLDoc1.Load("C:BaseForm.xml")
    App.LoadBatchActions(oXMLDoc1.InnerXml)
    Dim oForm As SAPbouiCOM.Form = App.Forms.GetForm("ITA0002", 1)
    Dim oMatrix As SAPbouiCOM.Matrix = oForm.Items.Item("5").Specific()
    Dim Informes As SAPbouiCOM.UserDataSource = oForm.DataSources.UserDataSources.Item("Informes")
    Dim ID As SAPbouiCOM.UserDataSource = oForm.DataSources.UserDataSources.Item("ID")
    Dim i As Int16 = 1
    oMatrix.AddRow(ListaInformes.Length)
    For Each Informe As String In NameList
       Informes.ValueEx = Informe
       ID.ValueEx = i.ToString
       oMatrix.SetLineData(i)
       i = i + 1
    Next
    The xml is this one:
    <?xml version="1.0" encoding="UTF-16"?>
    <Application>
         <forms>
              <action type="add">
                   <form AutoManaged="1" BorderStyle="4" FormType="ITA0002" ObjectType="-1" SupportedModes="1" appformnumber="ITA0002" client_height="284" client_width="291" color="0" default_button="1" height="316" left="363" mode="1" pane="1" title="Informes" top="149" type="4" visible="1" width="297">
                        <datasources>
                             <userdatasources>
                                  <action type="add">
                                       <datasource size="254" type="9" uid="Informes"></datasource>
                                  </action>
                                  <action type="add">
                                       <datasource size="10" type="9" uid="ID"></datasource>
                                  </action>
                             </userdatasources>
                        </datasources>
                        <items>
                             <action type="add">
                                  <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="0" from_pane="0" height="19" left="6" linkto="" right_just="1" supp_zeros="0" tab_order="10" text_style="0" to_pane="0" top="260" type="4" uid="1" visible="1" width="65">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="OK"></specific>
                                  </item>
                                  <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="0" from_pane="0" height="19" left="77" linkto="" right_just="1" supp_zeros="0" tab_order="20" text_style="0" to_pane="0" top="260" type="4" uid="2" visible="1" width="65">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Cancelar"></specific>
                                  </item>
                                  <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="20" left="5" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" top="5" type="99" uid="3" visible="1" width="80">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific AffectsFormMode="1" caption="Informes" val_off="0" val_on="1">
                                            <databind alias="Informes" databound="1" table=""></databind>
                                       </specific>
                                  </item>
                                  <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="1" height="224" left="8" linkto="" right_just="0" supp_zeros="0" tab_order="60" text_style="0" to_pane="1" top="28" type="127" uid="5" visible="1" width="276">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific SelectionMode="2" layout="0" titleHeight="0">
                                            <columns>
                                                 <action type="add">
                                                      <column AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" editable="0" font_size="12" forecolor="-1" right_just="0" text_style="0" title="2" type="16" uid="2" val_off="N" val_on="Y" visible="1" width="20">
                                                           <databind alias="ID" databound="1" table=""></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                      <column AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" editable="0" font_size="12" forecolor="-1" right_just="0" text_style="0" title="Nombre" type="16" uid="1" val_off="" val_on="" visible="1" width="255">
                                                           <databind alias="Informes" databound="1" table=""></databind>
                                                           <ExtendedObject></ExtendedObject>
                                                      </column>
                                                 </action>
                                            </columns>
                                       </specific>
                                  </item>
                             </action>
                        </items>
                        <items>
                             <action type="group">
                                  <item uid="3"></item>
                                  <item uid="4"></item>
                             </action>
                        </items>
                        <FormMenu></FormMenu>
                        <DataBrowser></DataBrowser>
                   </form>
              </action>
         </forms>
    </Application>
    Regards,
    Ibai Peñ

  • How to spool the data with out space

    Hi, My version is 10g. I am trying to spool the file. this is my sql file looks like.
    set pagesize 0
    set heading on
    set verify off
    set linesize 32767
    set trimspool on
    set feedback off
    set termout off
    set colsep '~'
    set underline off
    set echo off
    set term off
    sET NEWPAGE 0
    --SET SPACE 0
    SET MARKUP HTML OFF SPOOL OFF
    spool C:\text0728.txt;
    SELECT DISTINCT a.m_name, a_code, a.p_id, a.p_name,
    a.p_type, e._name, e.s_list from mname a,slist e
    where a.p_id=e.p_id;
    spool off;
    my spool file looks like this
    codename~matrix        ~888~nametarget           ~in~todao~~
    codename1~matrix1        ~879~name           ~in~todao~
    If we see matrix value have space *~matrix ~*
    I want the value to spool with out the space i.e *~matrix~*
    What to set for my requirment in sql file?
    Thanks.

    select a.m_name,
             regexp_replace(a_code,'[[:space:]]matrix[[:space:]]','matrix') as a_code,
             a.p_id,
             a.p_name,
             a.p_type,
             e._name, e.s_list *
    from
         mname a,slist e
    where
        a.p_id=e.p_id;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Spaces behavior in 10.5.3

    i noticed that if you click on safari then activate the spaces while safari is opening safari browser will overlap whatever tiles are in spaces. is that normal?

    I tested some more, and it seems all apps are affected and it's a repeatable problem.
    For example, if I click System Preferences on the Apple menu, then quickly move the mouse to an active screen corner (lower left, in my case) to launch Spaces, the System Preferences window will open over top of the Spaces matrix. The screen looks like the image posted earlier in this thread - there's a application window in the middle and all the shrunken Spaces in the background.
    --Joe

  • How to insert text in current Pdf?

    I try to insert text into current pdf i am getting unexepected error
        PDEContent pdeContent;
        AVDoc avDoc = AVAppGetActiveDoc();
        PDDoc pdDoc = AVDocGetPDDoc (avDoc);
        PDPage pdPage = PDDocAcquirePage(pdDoc,AVPageViewGetPageNum(AVDocGetPageView(AVAppGetActiveDoc())));
        pdeContent = PDPageAcquirePDEContent(pdPage, NULL);
        //Create a PDEText object
        PDEText pdeText = PDETextCreate();
      //  Create a DEGraphicState object and set its attributes
        ASFixedMatrix textMatrix;
        //Create an ASFixedMatrix object
        memset(&textMatrix, 0, sizeof(textMatrix)); /* Set the buffer size */
        textMatrix.a = Int16ToFixed(24); /* Set font width and height */
        textMatrix.d = Int16ToFixed(24); /* to 24 point size */
        textMatrix.h = Int16ToFixed(1*72); /* x,y coordinate on page */
        textMatrix.v = Int16ToFixed(2*72); /* in this case, 1" x 2" */
        PDEGraphicState gState;
        PDEColorSpace pdeColorSpace = PDEColorSpaceCreateFromName(ASAtomFromString(colour_space.c_str()));
        memset(&gState, 0, sizeof(PDEGraphicState));
        gState.strokeColorSpec.space = gState.fillColorSpec.space = pdeColorSpace;
        gState.miterLimit = fixedTen;
        gState.flatness = fixedOne;
        gState.lineWidth = fixedOne;
        PDSysFont sysFont;
        PDEFont pdeFont;
        PDEFontAttrs pdeFontAttrs;
        //Set the size of the PDSysFont and set its attributes
        memset(&pdeFontAttrs, 0, sizeof(pdeFontAttrs));
        pdeFontAttrs.name = ASAtomFromString("CourierStd");
        pdeFontAttrs.type = ASAtomFromString("Type1");
        //Get system font
        sysFont = PDFindSysFont(&pdeFontAttrs, sizeof(PDEFontAttrs), 0);
        //Create a font that is used to draw text on a page
        pdeFont = PDEFontCreateFromSysFont(sysFont, kPDEFontDoNotEmbed);
        char *chrNewFilePath = "Doc.pdf";
        ASText  asFilePath =  ASTextFromUnicode(reinterpret_cast <ASUTF16Val *> (chrNewFilePath), kUTF8);
        //Create a character pointer
        char *HelloWorldStr = "Hello There";
        //Create new text run
        PDETextAdd(pdeText, //Text container to add to
                   kPDETextRun, // kPDETextRun
                   0, // in
                   (unsigned char*)HelloWorldStr, // Text to add
                   strlen(HelloWorldStr),// Length of text
                   pdeFont, // Font to apply to text
                   &gState, //Address of PDEGraphicState object
                   sizeof(gState), //Size of graphic state to apply to text
                   NULL,
                   0,
                   &textMatrix, //Transformation matrix for text
                   NULL); //Stroke matrix
        ::free(chrNewFilePath);
        ASFileSys  asFileSys =  ASGetDefaultFileSysForPath(ASAtomFromString( "ASTextPath" ), asFilePath);
        ASPathName asNewPath =  ASFileSysCreatePathName(asFileSys,  ASAtomFromString( "ASTextPath" ), asFilePath, 0);
        PDDocSave(pdDoc, PDSaveFull , asNewPath , asFileSys, NULL, NULL);

    I changed that code to below mention code, when i was run the plugin and after close the acrobat it asking for save, but it doesn't show any text text
    ASFixedRect  cropBox;
        char  errorMsg[256];
        ASInt32  errorCode = 0;
        PDPageGetCropBox  (pdPage, &cropBox);
        // Initialize the font descriptor then create the font reference.
        // Because we're using one of the base 14 Type 1 fonts, we only
        // need to pass a small amount of information to PDEFontCreate().
        PDEFont  pdeFont =  NULL;
        PDEFontAttrs  pdeFontAttrs;
        memset(&pdeFontAttrs, 0,  sizeof (pdeFontAttrs));
        pdeFontAttrs.name  =  ASAtomFromString( "Courier" );
        pdeFontAttrs.type  =  ASAtomFromString( "Type1" );
        DURING
        // Create the font reference.
        pdeFont =  PDEFontCreate(&pdeFontAttrs, sizeof (pdeFontAttrs), 0, 255, 0, 0,  ASAtomNull, 0, 0, 0, 0);
        HANDLER
        ASGetErrorString  (ASGetExceptionErrorCode(), errorMsg, 256);
        AVAlertNote  (errorMsg);
        return   NULL;
        END_HANDLER
        PDEColorSpace  pdeColorSpace =  PDEColorSpaceCreateFromName(ASAtomFromString( "DeviceGray" ));
        PDEGraphicState  gState;
        ASFixedMatrix  textMatrix;
        // The graphics state controls the various style properties of the text
        // including color, weight, and so forth.
        memset (&gState, 0,  sizeof (PDEGraphicState));
        gState.strokeColorSpec.space  = gState.fillColorSpec.space  = pdeColorSpace;
        gState.miterLimit  =  fixedTen;
        gState.flatness  =  fixedOne;
        gState.lineWidth  =  fixedOne;
        // Fill out the text matrix, which determines the point
        // size of the text and where it will is drawn on the page.
        memset (&textMatrix, 0,  sizeof (textMatrix));
        textMatrix.a  =  ASInt16ToFixed(12);
        textMatrix.d  =  ASInt16ToFixed(12);
        textMatrix.h  = cropBox.left  + (cropBox.right  - cropBox.left)/2 -  fixedSeventyTwo;
        textMatrix.v  = cropBox.top  - (cropBox.top  - cropBox.bottom)/2 -  fixedThirtyTwo;
        PDEText   volatile  pdeText =  NULL;
        DURING
        // Create a new PDEText element and add a kPDETextRun object to it.
        pdeText =  PDETextCreate();
        PDETextAdd  (pdeText,  kPDETextRun, 0, (Uns8  *) "This page intentionally blank" , 30,
                     pdeFont, &gState,  sizeof (gState),  NULL, 0, &textMatrix,  NULL);
        // Insert text element into page content.
        PDEContentAddElem  (pdeContent,  kPDEAfterLast, (PDEElement)pdeText);
        // Commit the changes to the PDEContent.
        PDPageSetPDEContent(pdPage, gExtensionID);
        // Advertise that we changed the contents so the viewer redraws the
        // page and other clients can re-acquire the page contents if needed.
        PDPageNotifyContentsDidChange  (pdPage);
        HANDLER
        // Store the error code.
        errorCode = ASGetExceptionErrorCode();
        END_HANDLER
        // Release any objects we may have created or acquired.
        // Note : PDERelease correctly handles NULL, so we don't
        // need to test for valid objects.
        PDERelease  ((PDEObject) pdeColorSpace);
        PDERelease  ((PDEObject) pdeFont);

  • Playlists and the previous/next buttons

    Once again, Encore proves to be difficult to work with. I have a bunch of m4v and matching ac3 files that I want to put into Encore to create a Blu-ray. However, I cannot place them all in a timeline and be done with it. Because of the null space at the beginning and/or end of the ac3 files, Encore insists on rebuilding them (to stereo instead of 5.1).
    One thing I read as a workaround was to use a playlist. I tried that, and set the end action for each timeline to go to the next timeline. Works swell. However, there is no way to go to a previous timeline since each timeline acts like a seperate item on the disc and not as part of a whole movie. Is there a way around this? Is there a way to get items in a playlist to act like a complete movie instead of individual items?
    I know another option is to just have one long ac3 file for the whole movie (as well as one long m4v video file), but this isn't really convenient. I like that Encore will tell me how much space is left on the disc as I drop items into timelines; creating one long video and audio file will leave me guessing at how long the move can be and will involve trial and error. On top of that, I will have to scrub through the whole timeline and manually add chapter marks (this is how I did it on my first project). It is a pain.
    There has to be a way to use multiple ac3 files in Encore for a movie without them getting transcoded while having all the clips act as one complete movie instead of individual items. At least I hope there is a way...

    Thanks for the replay. I guess what I will do is render all my video clips, drop them in Encore, and stop when I get within a couple of gigs of the disc limit. Then in premiere I will put all the clips together and render out the audio, and then drop the one audio file in Encore.
    I know adding chapter markers in Encore is not hard, but it is tedious when you have one long video file and you have to scrub through the whole thing to add them.
    Is there another program that will let me use multiple ac3 files in a timeline and keep them as 5.1?

  • UNICODE --- translate error

    Hi,
    Can anybody with following code. I am converting program to unicode and getting an error 'Null space must be a data type C N D T'. Here is the code.
    DATA       NULL_SPACE(2)        TYPE x VALUE '0020'.
    TRANSLATE BDCDATA-FVAL USING NULL_SPACE.
    Regards,
    venkat.

    Do something like below: -
    data: left_content    type string,
          right_content   type string,
          xcontent   type xstring.
    data: w_longchar(20).
    constants: c_unknown(7) value 'Unknown'.
    xcontent = '0020'.
    data: conv   type ref to cl_abap_conv_in_ce.
    conv = cl_abap_conv_in_ce=>create( input = xcontent ).
    conv->read( importing data = left_content ).
    - Cheers

  • Need help in putting data into 2d array

    My input file :
    1 , 2 , 1
    2 , 2 , 1
    3 , 3 , 1
    4 , 2 , 2
    2 , 3 , 2I'm stuck at:
    while( reader.readLine() != null){
    String Matrix[] = line.split(",");
    }Means I only can read how many lines there. For 2d array, Matrix[i][j], is that when I count the line, the number of count will be the 'i'? How about 'j'? Am I need to count i and j before put the data into 2d array?
    Do correct me if something wrong in:
    while( reader.readLine() != null){
    String Matrix[] = line.split(",");
    } Thank you.

    gtt0402 wrote:
    while( reader.readLine() != null){
    String Matrix[] = line.split(",");
    How about:
    ArrayList<String[]> rows = new ArrayList<String[]>();
    while((line = reader.readLine()) != null) {
        rows.add(line.split(","));
    }After the loop you have a list full of String arrays and you can convert it to a 2D String array if you wish.

  • Missing Parameter Values - I'm not using parameters linking to sub

    I'm developing reports for use in an aspx environment using Visual Studio 2010 and CR 13.
    I have a main report and a subreport. Each report is linked to the database with a view that is connected to a dataset.
    When I place the subreport in the main report I edit the change links option and select identical fields from each report.
    When I run the code with the subreport commented out I get what I expect on the page.
    When I uncomment the subreport I get "Missing parameter values"
    Here's the code that I uncomment for the subreport. I've already checked to ensure that there is data in the dataset.
    mySection = CaseAssignmentRpt.ReportDefinition.Sections("dsCaseOffender")
    mySubObj = mySection.ReportObjects("srCaseOffender")
    mySubRep = mySubObj.OpenSubreport(mySubObj.SubreportName)
    mySubRep.SetDataSource(dsCaseAoffender)
    Do I need to do anything special to my dataset for the two fields to get linked?

    Hi Chris
    Nothing special needed - just making sure that the data is exactly what the report and subreport expect. It is quite typical for this issue to come up if the dataset contains date that is not as expected (e.g.; field formats (including nulls / spaces, etc, missing fields, and so on).
    See if following the dataset troubleshooting wiki will help:
    Troubleshooting Issues with VS .NET Datasets and Crystal Reports - Business Intelligence (BusinessObjects) - SCN Wiki
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Custom Report Template Issue

    Hi,
    I have a Custom Report Template, it is a Named Column(Row) Report that I have created. It seems I can get the look and feel I want on a per row basis. But when I try and convert it to be able to loop through for a specific type, like a break on the first column, it gets all messed up. I was wondering if someone might be able to shed some light for me on this I have tried everything
    Here is the row template
    <table width="100%"  border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">
       <tr  class="Tabledetail">
          <td class="SectionHeading" width="100%" bgcolor="#336699" valign="middle">
             <img src="spacer.gif" width="1" height="1">  <b>#1#</b> 
          </td>
       </tr>
       <tr class="Tabledetail">
          <td>
             <table width="100%"  border="0" cellspacing="1" cellpadding="1" bgcolor=white>
                <tr class="Tabledetail">
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td class=formlabel>
                      #2#
                   </td>
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td colspan=4 class="SectionHeading" bgcolor="#336699" align=middle valign="bottom">
                      <b>Evaluation Trips</b> 
                   </td>
                   <td>
                      <img src="spacer.gif" width="10" height="1">
                   </td>
                   <td colspan=4 class="SectionHeading" bgcolor="#336699" align=middle valign="bottom">
                      <b>All Other Trips</b> 
                   </td>
                </tr>
                <tr class="Tabledetail">
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td  class=formlabel>
                      #3#
                   </td>
                   <td  align=right class=formlabel>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td align=right class=formlabel>
                      #4#
                   </td>
                   <td align=right class=formlabel>
                      #5#
                   </td>
                   <td align=right class=formlabel>
                      #6#
                   </td>
                   <td align=right class=formlabel>
                      #7#
                   </td>
                   <td>
                      <img src="spacer.gif" width="10" height="1">
                   </td>
                   <td align=right class=formlabel>
                      #4#
                   </td>
                   <td align=right class=formlabel>
                      #5#
                   </td>
                   <td align=right class=formlabel>
                      #6#
                   </td>
                   <td align=right class=formlabel>
                      #7#
                   </td>
                </tr>
                <tr class="Tabledetail" width=50%>
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td  class=formlabel>
                      #8#
                   </td>
                   <td class=formlabel>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td align=right>
                      #9#
                   </td>
                   <td  align=right>
                      #10#
                   </td>
                   <td align=right >
                      #11#
                   </td>
                   <td align=right >
                      #12#
                   </td>
                   <td>
                      <img src="spacer.gif" width="10" height="1">
                   </td>
                   <td align=right >
                      #13#
                   </td>
                   <td align=right >
                      #14#
                   </td>
                   <td align=right >
                      #15#
                   </td>
                   <td align=right >
                      #16#
                   </td>
                </tr>
             </table>
          </td>
       </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td><img src="spacer.gif" width="1" height="10"> </td>
    </tr>
    <tr>
    <td>Here is the before rows
    <table cellpadding="0" border="0" cellspacing="0" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#">
      #TOP_PAGINATION#
      <tr>
        <td>
          <table cellpadding="0" border="0" cellspacing="0" summary="" class="report-standard">Here is the after rows
            </table>
        </td>
      </tr>
      #PAGINATION#
    </table>But when I try and pull the upper level html tables out of the row template the format goes to heck. Anyone have any ideas?
    Thanks in advance!

    goochable wrote:
    Thanks for the input! Yeah it is based on a query from a collection as all this data is summations that i am pre-populating.
    Yes this html is probably from 1998 or 1999 I think they told me actually lol
    So there is no way to accomplish what I am trying to do then?
    There is no way I could use a break on first column and modify the header info to get the same sort of look and feel?Still not really clear what you are trying to accomplish, and in my view there are so many problems with the "look and feel" that it's not worth perpetuating.
    Making a lot of assumptions, I've come up with the kind of HTML structure I'd use when marking up this kind of data. I added a page 2 to your example on apex.oracle.com, showing a basic presentation of this structure alongside the original for comparison, and another styled using the default theme L&F.
    <li>Given the requirement to use multi-level headers (and because I prefer to have total control over the HTML), I stayed with a custom report template rather than trying to utilise column breaking with a generic column report template. This also permits use of more advanced table structures than can be supported by standard templates, such as s<tt>colgroup</tt>s to organize the table columns as well as the rows:
    Before Rows
      <table cellpadding="0" border="0" cellspacing="0" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#">
      #TOP_PAGINATION#
      <tr>
        <td>
          <table class="fish">
            <caption>Some fishy summaries</caption>
            <colgroup span="1"></colgroup>
            <colgroup span="4" class="evaluation-trips" align="right"></colgroup>
            <colgroup span="4" class="other-trips" align="right"></colgroup>
    After Rows
          </table>
        </td>
      </tr>
      #PAGINATION#
    </table><li>Rather than separate tables, the report is contained in one HTML table, utilizing the <tt>tbody</tt> element to subdivide this into separate row groups to meet the "break on first column" requirement. This is achieved using conditional row templates, with PL/SQL Expressions based on the values of metadata columns added to the query:
    Row Template 1
    Header rows and first data row for each row group. <tt>scope</tt> attributes are added to multi-column headers for improved accessibility:
      <tbody>
        <tr>
          <th colspan="9" scope="rowgroup">#C1#</th>
        </tr>
        <tr>
          <th></th>
          <th colspan="4" scope="colgroup">Evaluation Trips</th>
          <th colspan="4" scope="colgroup">All Other Trips</th>
        </tr>
        <tr>
          <th>#C2#</th>
          <th>#C4#</th>
          <th>#C5#</th>
          <th>#C6#</th>
          <th>#C7#</th>
          <th>#C4#</th>
          <th>#C5#</th>
          <th>#C6#</th>
          <th>#C7#</th>
        </tr>
        <tr class="#ALT#">
          <td class="desc">#C8#</td>
          <td>#C9#</td>
          <td>#C10#</td>
          <td>#C11#</td>
          <td>#C12#</td>
          <td>#C13#</td>
          <td>#C14#</td>
          <td>#C15#</td>
          <td>#C16#</td>
        </tr>
      #CLOSE_ROW_GROUP#
    Row Template 1 Expression
    This template is used when the row metadata shows that the current row is in a different row group from the previous row:
    #ROW_GROUP# != #PREVIOUS_ROW_GROUP#
    Row Template 2
    This is the "default" template, used for any subsequent data rows in the row group:
        <tr class="#ALT#">
          <td class="desc">#C8#</td>
          <td>#C9#</td>
          <td>#C10#</td>
          <td>#C11#</td>
          <td>#C12#</td>
          <td>#C13#</td>
          <td>#C14#</td>
          <td>#C15#</td>
          <td>#C16#</td>
        </tr>
      #CLOSE_ROW_GROUP#Both templates make use of a <tt>#CLOSE_ROW_GROUP#</tt> column value conditionally generated in the query that returns a <tt>&lt;/tbody&gt;</tt> tag if the current row is the last data row in the row group. (Mixing logic and structure in this way is not good practice, but APEX only allows up to 4 conditional row templates, which is completely insufficient for any moderately complex structure.)
    <li>Several metadata columns (incorporating heavy use of analytic functions) are added to the report query for use in the report template or CSS presentation:
    with fish as (
          select
                    c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16
                      Generate a fixed order for separate report sections/row groups.
                      (This is a guess as the actual requirement is not specified.)
                  , case c1
                      when 'OTC Summary' then 1
                      when 'Retained Catch Summary' then 2
                      when 'Discarded Catch Summary' then 3
                      when 'Discarded Species Composition Summary' then 4
                      when 'Retained Species Composition Summary' then 5
                      when 'Priority Species Biospecimen Summary - Discarded Catch' then 6
                      when 'Other Species Biospecimen Summary - Discarded Catch' then 7
                      when 'Dissection Summary - Discarded Catch' then 8
                    end row_group
                      Calculate row number within row group.
                      Copes with row order in some row groups being determined
                      numerically, while others used standard character semantics.
                  , row_number()
                      over (
                        partition by  c1
                        order by      to_number(regexp_replace(c8, '[^[:digit:]]')) nulls last
                                    , c8) group_rn
                      Calculate number of rows in row group.
                  , count(*)
                      over (
                        partition by c1) group_rows
          from
                  test)
    select
              c1
                Not clear on meaning of "Weight"/"Method" values: assumed this is
                column heading equivalent to "Species".
                Combine both source DB columns into one for HTML heading, dealing
                with various null/space/blank issues...
            , nullif(c2 || ' ', '  ') || c3 c2
            , ' ' c3
            , c4
            , c5
            , c6
            , c7
            , c8
            , c9
            , c10
            , c11
            , c12
            , c13
            , c14
            , c15
            , c16
            , row_group
                Get the rowgroup for the previous row
            , lag(row_group, 1, 0)
                over (
                  order by row_group) previous_row_group
            , group_rn
            , group_rows
                Determine odd/even row number: used for standard or alternate style.
            , mod(group_rn, 2) alt
                Generate a closing element if the row is the last row in the
                row group.
            , case
                when group_rn = group_rows
                then
                  '</tbody>'
                else
              end close_row_group
    from
              fish
    order by
               row_group
             , group_rnThis makes major assumptions about the sort order(s) and break(s) required in the report.
    <li>Finally, the visual presentation is applied using CSS rather than (mainly deprecated) HTML attributes, via an embedded style sheet in the page HTML Header:
    <style type="text/css">
    .fish {
      empty-cells: show;
      border-collapse: collapse;
    .fish tbody tr:first-child th {
      border-top: 1px solid #fff;
      font-weight: bold;
    .fish th,
    .fish td {
      padding: 3px 6px;
    .fish th {
      border-bottom: 1px solid #fff;
      border-left: 1px solid #fff;
      background-color: #275096;
      color: #fff;
      font-weight: 300;
      text-align: left;
    .fish td {
      text-align: right;
      .fish tr.\30  td {
        background-color: #dde;
      .fish td:first-child {
        text-align: left;
    </style>The default theme L&F report adds vertical borders to separate columns and column groups (latter may not be fully effective on IE: I'm not wasting my time on quirks mode fixes for that).
    The resulting report uses 60% less vertical space, and 87% less HTML code[1] than the original. Usability and accessibility are improved by eliminating nested tables and useless table cells and shim images, increasing the contrast between text and background colours, and using alternating row backgrounds for better visual tracking.
    [1] Including whitespace, but neither template is compressed in any way: both are in fully readale format including normal whitespace indentation.

  • JTable in JInternalFrame

    Hi,
    I am having a problem with editing cells in a JTable. I have initially created a table using a custom table model in a JFrame. Everything works as expected.
    Now that I have modified it so that the JFrame becomes a JInternalFrame inside my Desktop I have lost the ability to edit cells.
    I can still select individual cells, however no caret displays and no input from the keyboard is accepted.
    I don't understand why the ability to edit cells is lost whenever the table is in a JInternalFrame.
    Could someone explain or suggest why this would be happening.
    Thanks.

    Hi,
    Thanks for the quick reply.
    I tried them both but it didn't work and Yes everything is set to use a JDesktopPane.
    below is some of the code if that helps
    //This is the AbstractTableModel
    class MatrixTableModel extends AbstractTableModel
      private double[][] data = { {0.0} };
      public int getColumnCount()
        return data.length;
      public int getRowCount()
       return data.length;
       public Object getValueAt(int row, int col)
        return new Double(data[row][col]);     
       public boolean isCellEditable(int row, int col)
         return true;     
       public void setValueAt(Object value, int row, int col)
        double doubleVal;
        try
         doubleVal = new Double(value.toString()).doubleValue();       
         data[row][col] = Math.floor(doubleVal*1000 + .5) /1000;
         fireTableCellUpdated(row,col);
         fireTableCellUpdated(col,row);
        catch (NumberFormatException e)
          JOptionPane.showMessageDialog(null,"Input matrix can only contain real values");
       public void changeData(double A[][])
        data = A;
        mtm.fireTableStructureChanged();
    //The TableColumnModel I use
    TableColumnModel cm = new DefaultTableColumnModel()
    public void addColumn(TableColumn tc)
      tc.setMinWidth(50);
      tc.setMaxWidth(100);    
      seqEditor = new JTextField();     
      seqEditor.setMargin(new Insets(0,0,0,0));
      seqEditor.setHorizontalAlignment(SwingConstants.CENTER);
      seqCellEditor = new DefaultCellEditor(seqEditor);
      seqCellEditor.setClickCountToStart(1);
      tc.setCellEditor(seqCellEditor);
      super.addColumn(tc);
    //each are added as follows
        Matrix = new JTable(mtm);
        Matrix.setColumnModel(cm); The cells look as if they are selected - i.e. the rectangle outline is black when selected.
    I placed a message in the setValueAt method and i know that it is called whenever i select away from a selectd cell.
    Any ideas,
    Thanks

  • Pages run from Local JDEV  is showing the DEV instance login

    Hi,
    When I run the page from my local jdev it is showing me the DEV instance login page.
    Not sure why..I have been using the JDEV for the develpoment of custom application (OA) since last 8 months.
    This is the first time I am getting this problem.
    Please help
    Thanks
    Anna

    Have you renamed your system recently? This happens because the properties file may still have old system name, the problem should be resolved by deleting system folder.Also please make sure that your system name should not have null spaces, i remember this problem with jdev 9i.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How many CS Increments will it take to handle ProRes Correctly

    Two Simpleton-tests with AE 5.5 revealing that AE still hasn't learned a darn thing in regards to the ProRes Codec
    Test 1:
    1) Import ANY Canon 5DMKII into AE CS5.5
    2) Add it to a new Comp
    3) Add that comp to the render queue
    4) Select ProRes 4444 as output codec
    5) Render and compare with your original Canon Footage
    Expected Result in the Quicktime Player 7:
    The ProRes File Should look somewhat like the original.
    It does NOT.
    Actual Result
    Gamma is WRONG
    Color is slighty shifted
    And Noise/banding has been increased significantly.
    Test 2:
    1) Open Apple's Compressor
    2) Import the same Canon File
    3) Setup a 4444 Codec like in AE
    4) Render out
    Expected Result in the Quicktime Player 7:
    The ProRes File Should look somewhat like the original.
    It does.
    Actual Result
    ProRes transcode looks 100% identical to the source
    Test 2 Expanded
    Import the Compressor-created 4444 file into AE and repeat test 1
    Expected Result in the Quicktime Player 7:
    The ProRes File Should look somewhat like the Compressor-Created file.
    It does NOT.
    Actual Result
    Gamma is TOTALLY WRONG
    Color is LESS shifted than when exporting the Canon file directly
    Noise/banding is MORE than the compressor created file but LESS than when exporting the canon file directly...
    I am more or less speechless. I have been reading about this problem on a million blogs. Including adobe's own.
    Since at least since CS3. There have been several invain work-arounds. And now this. CS 5.5 - with the same problem.
    Adobe, how many versions do you need to get it right.
    Perhaps, you could look a little a Apple's technology, as it seems to be much more effective and advanced than yours.

    Hi Rick,
    first things FIRST ;-)
    Thank you very much for taking the time to make that post.
    My color settings in AE are correct. And I am using a color managed workflow -)
    It plays NO PART whether I enable the "Use Legacy Gamma"....
    Your example is correct in BUT it only applies to the realm in which you created it > RGB
    and it does not exhibit temporal H264 artifacts stemming from a YUV 4:2:0 (609 Color Space) Matrix
    You dont exaclty round-trip the way that I was describing a rountrip in my initial post.
    I know that a ramp can reveal certain things but it is a highly virtual comparison and does not really apply to live-worl  footage.
    At least in this case ;-)
    You take RGB-generated grays and then output to ProRes
    I took a YUV-color-realm movie entered into the realm of RGB (AE) and then exported to ProRes
    And THAT is where the problem lies.
    I am uploading the file in question. It is a movie from the 5DMKII.
    That is the source I have been testing with all along.
    It is great in that it has a dark area with quite a bit of noise. THAT noise after AE has encoded it to ProRes will look banded and become worse.
    Not so when encoding with Compressor.
    Besides, and this I cannot wrap my head around, when compressor is compressing the exact same file it is 295MB in size but when doing it with AE it is 413.
    Something wrong there ?
    Anyway, here is the link to the file if you wanna try with that.
    I am uploading a screen shot to show you which area you should look out for.
    And rememeber this is NOT visible when looking at it in AE. you HAVE to rountrip and open the source and the rountripped file in the Quicktime Player.
    Remember, most folks are WATCHING the movies in the quicktime player on OS X... So I would LIKE my files looking identical to the source when watched in the QT player. I dont believe that any consumer out there, just aiming to watch a movie has AE installed so that he can watch the movie in the way I (all AE users) intended it to look.
    Adobe we NEED this to work.
    When/if you do the test - make a real world comparison.
    Open the Original source in AE and out-encode it to PR4444.
    Then open the quicktime player and load up both (PR4444 and ORG source)
    Put them on top of each other and flip back n forth. Huge difference in the area that I have hi-lighted in SS below.
    The noise in the original is very present in the original file in that area...
    When looking at adobes encode the noise has become large square fields(almost) looks a little like banding.
    When using Apple's compressor to rountrip it looks exactly like original.
    Might I add, taking the original file and opening it directly in AME (bypassing AE altogether) will have the same impact on the file
    as when exported directly from AE. So it seems as if adobes Quicktime encoding framework has a bug altogether. I tried all of this with the
    cineform codec as well. When using adobe to encode to cineform it displayed the same artifacts.
    Original Source Footage Download
    Screenshot of area to look for

Maybe you are looking for

  • The sound on my Macbook doesn't work.

    The sound of my MacBook Pro 15" Retina just works at the startup screen. I can control the volume on startup screen but when I login I can't hear any sound from my MacBook even I plug headphones or speakers in.

  • Need to send a email alert in PI 7.1 to user outside the intranet network

    Hi, How can I forward an alert from my alert inbox to a thirdparty user through email? Thirdparty user belongs to different network.

  • U430 power off while on battery

    Hi, I have had my Lenovo U430 touch for about a month now, and have noticed a problem with it. Sometimes when I leave my Lenovo u430 touch alone (with full battery), and sometimes it will just power off without me doing anything. It even happens occa

  • Downloading an epub

    This is the story of my tribulations in attempting to open an epub file: 1 - E-mail epub to myself (on PC or iPod, or whatever) 2 - use GMail app to "open" epub (brought to a white screen) 3 - "open in Safari" option (filetype unsupported) 4 - open m

  • AirPort Express is dead, but under warranty

    My airPort Express Base Station does not work. It does not appear anymore, and is apparantly not sending a signal. I have rest it, and tried to troubleshoot it in every way I can think of. I own others that work fine. It is still under warranty with