Begginer Question

Hello all,
Just need some assistance to make one thing to work.
I need to create one simple animation that will be in the
beginning of the website, kinda promotional thing, and then go to
another flash (main flash).
I do the animation for about 30 seconds and i need when it's
over, to go immediately to the main flash or url.
Can you guys help me on this?
Bst Rgrds
JR

hmmm i'm not sure i understnad what u wants exactly. but if
you wanna play like an intro and then go to another whole different
page, you can put in the last frame of the animation this code:
getURL("
http://ww........","_self ")
_self means that it opens in the same window.
But if you wanna load another flash in the same place and the
same size of the intro, you can use the loadMovie() function

Similar Messages

  • Simple begginer Questions???

    Hi
    i have three questions,
    first any one know how to create page counter??
    second i have numeric tables when all of the cells are used i want another page ( same one ) to show up.
    third in the same page there are two numeric feilds the first for the total of the tabel on the page and the another will be for the pages total?
    Maj

    Hi
    i have three questions,
    first any one know how to create page counter??
    second i have numeric tables when all of the cells are used i want another page ( same one ) to show up.
    third in the same page there are two numeric feilds the first for the total of the tabel on the page and the another will be for the pages total?
    Maj

  • EJB begginer question

    Hello,
    I have been reading a little about EJB's and I have seen some EJB examples defining the class atributes inside and other examples using helper classes. I do not understand yet when it is better to use one or the other. Of course I see that an ejb uses more resources. Which is the best way of programming ejb's? Does anybody knows about a good book for learning step by step?
    Thanks in advance

    U can read this book
    " Enterprise JavaBeans 3rd Edition" by Richard Monson-Haefel
    Publication - O'Reilly.
    Its worth reading. It covers all the basic concepts of EJB and other stuff

  • Slow motion no sound

    when i put a video in the sequence it's playing slow motion and without sound.. like frame after frame, slowly..
    i'm sure i'ts a begginer question but i really need help fast!

    I have no idea what you mean by "it is playing slow motion without sound".
    I'm guessing you're trying to play the video in the timeline by pressing the space bar. That's a rokie mistake. You must do a ram preview. Use the Preview Panel or select Composition>Preview>Ram preview. AE will render a ram preview and, if audio is turned on in the Preview Panel, you'll get audio. The preview will only play until you run out of ram.
    AE is a compositing app. It's not for editing, it's for making cool shots and on occasion sequences.

  • Subtotal by attribute

    Hi Gurus,
    Here'a a begginer question related to subtotals:
    I cannot make a subtotal based on an attribute wich is not 1:1 with the dimension key.
    What do you suggest to do next ?
    Thanks,
    Markus

    Suman,
    Even I succeded to display the attribute in the first row, the subtotal follows the partner_key logic (you mentioned this in a post earlier)  - I mean it groups according to the values found in partner_key , not like attribute fiscal_code.
    By disabiling I meant I've suppresed the key and text display.
    Next step is to provide two columns containig partner ID and partner description  wich was already provided as an attribute in the first column ..
    Thanks for your fast response and sorry not providing all the picture   ,
    M

  • Anything wrogn with this dispatchEvent?

    Looks like a begginer question bu
    t i really don't know wat am i doing wrong. Used to work a lot with eventDispatchers but now it seams not working.
    File 1:
    private function init():void{
         dispatchEvent(new Event("myEvent_eventDispatcher", true, true))
    File2:
    private function init():void{
         addEventListener("myEvent_eventDispatcher", myEvent_eventHandler);
    private function myEvent_eventHandler(e:Event):void{
         Alert.show("Event dispatched");
    Don't know why but the eventListner is not callong the myEvent_eventHandler function. I know that cause i debug the applicaciont with a breakpoint by the function.

    Well... If these are two different files then they are two different components right?
    Your addEventListener call is listening for an event on 'File2'. If you wish to listen for the myEvent event on a specific instance you need:
       myFile1.addEventListener(...), where myFile1 is the instance of the component you want to listen to.
    If you are wanting to just capture 'myEvent' on the DOM, they what you have there is fine, just look up the interface for addEventListener and pass 'true' for 'useCapture'.
    Lastly if you are expecting 'myEvent' to "bubble" up the DOM, then make sure both your File1 instance and File2 are actively on the display list, and that File 2 is somehow an ancestor to File1 in the DOM.
    Hope that helps,
    Corey

  • Questions, Extreme begginer - Why wont this work.

    /* My Java Program
    Failing To Compile 2009 - CurrentDate()
    /* Importing */
    import java.util.Scanner;
    import acm.graphics.*;
    import acm.program.*;
    class run {
         public static void main(String args[]){
         //Variables
         Scanner ninjatext = new Scanner(System.in);
         Scanner Clarinet_Request = new Scanner(System.in);
         System.out.println(ninjatext.nextLine());
         double pye, var1, ans;
         String yodawg;
         var1 = 2;
         pye = 3.14;
         yodawg ="I heard you like saxaphones  ";
         ans = var1/pye;
              System.out.println("Hello Cruel World?");
              System.out.print(yodawg);
              System.out.print("So i bought you ");
              System.out.print(ans);
              System.out.println(" Saxxes");
              System.out.println("So How many Clarinets Would you like????");
              System.out.println("Enter Number::");
              System.out.println("So " + Clarinet_Request.nextLine() + " Is how many clarinets You would like? Cool");
         /*Please end up working*/
         // Declaring Variables Semi-Randomly Works, Right?
         String test1 = "Ok i hope this works";
         int test2 = 10;
         double test3 = 4.9;
         int test4 = test2/test3; //Random Weird Awnser right???
         System.out.println(test2 + "Divided by" + test3 + "Is Equal To" + test4);
         /* This all should work, at least in theory.... But it wont right? */
         /** What have i gotten myself into? Oh well it sounds like it should work */
         Console console = System.console();
         String username = console.readLine("Lets Do This?: ");
         if (/* String? */username == "yes" || "Yes" || "YES"){
              testingthiscrap LeroyJenkins = new testingthiscrap
              LeroyJenkins.LetsDoThis()
         /* Guaranteed to not work */
    public class testingthiscrap extends GraphicsProgram {
         /** Runs the program */
         public void LetsDoThis() {
              GRect rect = new GRect(100, 50, 100, 100 / PHI);
              rect.setFilled(true);
              rect.setColor(Color.RED);
              add(rect);
              GOval oval = new GOval(150, 50 + 50 / PHI, 100, 100 / PHI);
              oval.setFilled(true);
              oval.setColor(Color.GREEN);
              add(oval);
    /** Constant representing the golden ratio */
         public static final double PHI = 1.618;
    /* Standard Java entry point */
    /* This method can be eliminated in most Java environments */
         public static void main(String[] args) {
              new FeltBoard().start(args);
         }//If anything i just typed i now feel heroic.
         // public static void
         Ok, sorry if the titles not good enough but i am a php programmer between begginer and intermediate but who wants to know java so i can say write a applet or something that can run from the desktop directly, also i wanted to lean OO and it in php confuses me infinately so i decided in the context of knowing nothing i might pick it up better thus java.
    So most of what im doing is confusing to me so i just tried to type some code (Well the first 20 maybe lines i compiled and tested but after that i couldnt test so i just ran with it. Today i tried to compile and poof, nothing.
    Any clues what im doing wrong and what i should do instead?
    BTW this stuff feels weird, i feel like to take imput it should have a html form or something. I dunno.
    also i dont even seem to have these acm packages im trying to import, any clue why?

    jman888 wrote:
    Ok, sorry if the titles not good enough but i am a php programmer between begginer and intermediate but who wants to know java so i can say write a applet or something that can run from the desktop directly, also i wanted to lean OO and it in php confuses me infinately so i decided in the context of knowing nothing i might pick it up better thus java. Ok?
    So most of what im doing is confusing to me so i just tried to type some code (Well the first 20 maybe lines i compiled and tested but after that i couldnt test so i just ran with it. Today i tried to compile and poof, nothing.I assume you got a compile time error, if so next time you post a question incorporate this piece of information.
    Any clues what im doing wrong and what i should do instead?I can take a stab at your code.
    BTW this stuff feels weird, i feel like to take imput it should have a html form or something. I dunno.One step at a time
    String yodawg;
    yodawg ="I heard you like saxaphones  ";This is not an error but plain weird IMHO, if you are declaring a variable then initializing it, you might as well do it all on one line.
    if (/* String? */username == "yes" || "Yes" || "YES"){
      testingthiscrap LeroyJenkins = new testingthiscrap
      LeroyJenkins.LetsDoThis()
    }This code will not compile and should produce one of possible many compiler errors. The condition inside the if statement requires each condition to be independent of one another. e.g. (username == "yes" || username = "Yes" || username == "YES").
    This also represents one of the most common errors presented to new comers. Equivalence of Objects such as Strings are compared using a method .equals() and not the term "==". The latter actually compares two Strings by the address stored in memory.
    class runBy convention all Class names begin with a capital letter
    Also it appears that the class run contains main method and an inner class in which itself contains a main method. I will conclude right here that you are biting off far more then you can chew. Start with the basics, e.g. Google for Java tutorials and start from "hello world" then make your way from there. Tackle one problem at a time and learn the concepts of the tutorial which will hopefully stay with you, as these fundamental concepts will be your foundation to development using the Java language.
    Mel
    Edited by: Melanie_Green, apparently CODE tags don't like me tonight

  • Begginer Flex Apps for browser Questions:

    Begginer Flex Apps for browser Questions:
    To change Dim in Flex App I must change file in address bar of browser, in other words create another page?
    Usually Flex Web sites come in only one file or many [upper 10?]?
    Scrolled Area in Flex how called [I mean like XHTML DIV Scrolled area?
    I book Flex 4: vol. I , Tranning from the Source, from Adobe press, covered:
    Scrolled Areas
    email components
    publish to live server
    if not, then all these covered in vol.II?

    to change the dimension of your flash window inside the browser you can use javascript... or you can have your flash-element in full size of the browser window and handle the resizing flash-intern, so you do not need an extra page for that. Just take a look at the HTML-Code and ask again if you are not that skilled with HTML/JavaScript.
    usual you have only one SWF.
    You can use the spark Scroller (see http://blog.flexexamples.com/2009/05/01/creating-a-scrolling-spark-panel-container-in-flex -gumbo/ for example)
    Sorry, I don't know, but I can give you some hints:
    for scrolling you can use Scroller
    I don't know, what you mean by e-mail but you can use javascript to create a "mailto:"-link (see http://flexonblog.wordpress.com/2007/12/18/mailing-in-flex-using-javascript-function-mailt o/ )
    the easiest way to deploy you just have to copy your swf and html-files from your flex-project to a web-server.

  • Begginer`s question . i think

    Okey .. so i'm new with java but i need to find out something ..
    i'm using a java application for my mobile, a notepad to be exact.
    For it to store notes it uses a .rms file ( from what i've seen is a db of somekind ).
    I was wondering if there is a application or something to see all the entries of this .rms file from the pc and to edit them.
    Is this possible ?
    Thank you.

    Yes. About that.
    What is the reason that it's phone dependent ?
    I've seen a lot of similarities in .rms files with different records:
    The begging is the same:
    midp-rms   [?     :??wI"?9*{??????   and i think after there some variabiles that are in some connection with the file size and the number of the records
    and the separator from recordings is:
          ?       ( where ^ is variabile )
    So .. i repet my question: What is the reason that rms files are phone dependent ?

  • Beggining SQL Question Package Question

    After creating this bit of code for c_Pi
    SQL> create or replace package MATH_CONSTANTS is
    c_Pi constant number := 3.14159265; end MATH_CONSTANTS;
    Create an unnamed block of code which prompts the user for a single numeric parameter, v_radius. This module should calculate the area of a circle using a radius equal to the inputted value along with c_Pi from the MATH_CONSTANTS package and subsequently display this information in a meaningful manner to the user.
    Essentially how would I be able to take the user input and put it in a manner meaningful to the user (i.e. show it in a DBMS_OUTPUT.PUT_LINE(V_radius))
    Also
    For this following code, will it work and if not how should it be changed around?
    Create or Replace Package OCTOBER12LAB As
    procedure CONVERT(convID IN NUMBER, Measure IN NUMBER); end OCTOBER12LAB;
    Create or Replace Package Body OCTOBER12LAB As
    Procedure convert(convID IN NUMBER, Measure IN NUMBER) Is
    V_Output Varchar2(50);
    Begin
    If convID = 1 Then
    V_Output := FeetToYards(Measure);
    elsIf convID = 2 Then
    V_Output := YardsToFeet(Measure);
    End If;
    DBMS_OUTPUT.PUT_LINE(V_Output);
    End convert;
    Function FeetToYards(Measure IN NUMBER) return varchar2 Is
    V_Total NUMBER(30,10); V_Output Varchar2(50);
    Begin V_Total := Measure/3; V_Output := Measure || ' Feet equals ' || V_Total || ' Yards'; Return V_Output; End FeetToYards;
    Function YardsToFeet(Measure IN NUMBER) return varchar2 Is
    V_Total NUMBER(30,10); V_Output Varchar2(50);
    Begin V_Total := Measure * 3; V_Output := Measure || ' Yard(s) equals ' || V_Total || ' Feet'; Return V_Output; End YardsToFeet;
    End OCTOBER12LAB;
    Begin
    OCTOBER12LAB.convert(1,3);
    OCTOBER12LAB.convert(2,2);
    OCTOBER12LAB.convert(1,5); End;
    Thanks in advance for your help.

    Hi
    Welcome to the forum!
    966784 wrote:
    After creating this bit of code for c_Pi
    SQL> create or replace package MATH_CONSTANTS is
    c_Pi constant number := 3.14159265; end MATH_CONSTANTS;
    Create an unnamed block of code which prompts the user for a single numeric parameter, v_radius. This module should calculate the area of a circle using a radius equal to the inputted value along with c_Pi from the MATH_CONSTANTS package and subsequently display this information in a meaningful manner to the user.
    Essentially how would I be able to take the user input and put it in a manner meaningful to the user (i.e. show it in a DBMS_OUTPUT.PUT_LINE(V_radius))If this is a homework assignment, ask your teacher for clarification of what this means.
    PL/SQL has no mechanism for promting the user and getting keyboard input. You'll have to do that through your front end. If you're using SQL*Plus, you can use the SQL*Plus ACCEPT command to prompt the user, get input and store it in a substitution variable.
    Also
    For this following code, will it work Try it and see.
    and if not how should it be changed around?
    Create or Replace Package OCTOBER12LAB As
    procedure CONVERT(convID IN NUMBER, Measure IN NUMBER); end OCTOBER12LAB;
    Create or Replace Package Body OCTOBER12LAB As
    Procedure convert(convID IN NUMBER, Measure IN NUMBER) Is
    V_Output Varchar2(50);
    Begin
    If convID = 1 Then
    V_Output := FeetToYards(Measure);
    elsIf convID = 2 Then
    V_Output := YardsToFeet(Measure);
    End If;
    DBMS_OUTPUT.PUT_LINE(V_Output);
    End convert;
    Function FeetToYards(Measure IN NUMBER) return varchar2 Is
    V_Total NUMBER(30,10); V_Output Varchar2(50);
    Begin V_Total := Measure/3; V_Output := Measure || ' Feet equals ' || V_Total || ' Yards'; Return V_Output; End FeetToYards;
    Function YardsToFeet(Measure IN NUMBER) return varchar2 Is
    V_Total NUMBER(30,10); V_Output Varchar2(50);
    Begin V_Total := Measure * 3; V_Output := Measure || ' Yard(s) equals ' || V_Total || ' Feet'; Return V_Output; End YardsToFeet;
    End OCTOBER12LAB;Never write, let alone post, unfomatted code.
    Which do you think is easier to read and understand? The package spec you posted above, or the version below? Which do you think will result in fewer bugs? If there are bugs, which do you think will be help you find them better? Which do you think will encourage people on this form to read and understand your questions?
    Create or Replace Package Body OCTOBER12LAB As
    Procedure convert ( convID     IN   NUMBER
                  , Measure    IN   NUMBER
    Is
        V_Output Varchar2(50);
    Begin
        If convID = 1 Then
            V_Output := FeetToYards (Measure);
        elsIf convID = 2 Then
            V_Output := YardsToFeet (Measure);
        End If;
        DBMS_OUTPUT.PUT_LINE(V_Output);
    End convert;
    Function FeetToYards ( Measure   IN    NUMBER)
    return       varchar2
    Is
        V_Total     NUMBER (30, 10);
        V_Output     Varchar2 (50);
    Begin
        V_Total := Measure / 3;
        V_Output := Measure || ' Feet equals '
                            || V_Total
                   || ' Yards';
        Return V_Output;
    End FeetToYar;
    Function YardsToFeet ( Measure    IN    NUMBER)
    return       varchar2
    Is
        V_Total     NUMBER (30, 10);
        V_Output     Varchar2 (50);
    Begin
        V_Total := Measure * 3;
        V_Output := Measure || ' Yard(s) equals '
                            || V_Total
                   || ' Feet';
        Return V_Output;
    End YardsFeet;
    End OCTOBER12LAB;The difference between what you posted and what I posted is merely whitespace; I didn't change your code at all except for adding spaces and newlines.
    Indent your code to show the extent of structural statements, like BEGIN and IF, and also to make long expressions (such as the multi-part || operations) easier to read and debug.
    Noramlly, all functions are included in the package spec. If you didn't want users calling a function directly (say, for security reasons) then you include the function in the package body only. Is there any reason not to include these functions in the package spec?
    When using dbms_output, remember to SET SERVEROUTPUT ON.
    Begin
    OCTOBER12LAB.convert(1,3);
    OCTOBER12LAB.convert(2,2);
    OCTOBER12LAB.convert(1,5); End;
    Thanks in advance for your help.Edited by: Frank Kulash on Oct 21, 2012 6:54 PM

  • A question about /usr/include/sys/select.h header file

    good day! i hope i can get some help about this and i would be very grateful if my question will be answered. i have a question regarding the select.h header file that we include in our programs when we use the select(3C) function.
    * Select uses bit masks of file descriptors in longs.
    * These macros manipulate such bit fields.
    * FD_SETSIZE may be defined by the user, but the
    * default here should be >= NOFILE (param.h).
    29 #ifndef FD_SETSIZE
    30 #define FD_SETSIZE 1024
    31 #endif
    its says here in the header file that the value of FD_SETSIZE may be defined by the user and i need to know how. i've already tried declaring a constant at the beggining of the program but it didn't work...
    example:
    #undef FD_SETSIZE
    #define FD_SETSIZE 2048
    the FD_SET macro generates an error if a value larger than 1024 is passed from in the first argument. i need to increase its value in order for me to wait for more than 1024 socket descriptors on select function. how can i increase or modify its value? thanks in advance...

    AFAIK, the only way to change the FD_SETSIZE value is by building your own version of the libc.a and linking it statically to your executable. Not good at all IMHO.
    The sources of Solaris 8 contain the implementation of select(3C) with both standard and 'large' (64K) FD_SETSIZE.
    AFAIK, 64-bit version of the libc.so contains the 64K-descriptors version of the select(3C), so you may consider building your application with -xarch=v9 flag to get 64-bit application...
    As for poll(2) - there is a manual page (man -s 2 poll) and some notes in the Answerbook. poll(2) is the actual system call that is used by select(3C), which is an interface function, so there is no functional difference between these two.
    There is a potential problem with portability of your code if you are using poll(), but it looks like you have no choice... sorry about it...

  • A questions about /usr/include/sys/select.h header file

    good day! i hope i can get some help about this and i would be very grateful if my question will be answered. i have a question regarding the select.h header file that we include in our programs when we use the select(3C) function.
    * Select uses bit masks of file descriptors in longs.
    * These macros manipulate such bit fields.
    * FD_SETSIZE may be defined by the user, but the
    * default here should be >= NOFILE (param.h).
    29 #ifndef FD_SETSIZE
    30 #define FD_SETSIZE 1024
    31 #endif
    its says here in the header file that the value of FD_SETSIZE may be defined by the user and i need to know how. i've already tried declaring a constant at the beggining of the program but it didn't work...
    example:
    #undef FD_SETSIZE
    #define FD_SETSIZE 2048
    the FD_SET macro generates an error if a value larger than 1024 is passed from in the first argument. i need to increase its value in order for me to wait for more than 1024 socket descriptors on select function. how can i increase or modify its value? thanks in advance...

    AFAIK, the only way to change the FD_SETSIZE value is by building your own version of the libc.a and linking it statically to your executable. Not good at all IMHO.
    The sources of Solaris 8 contain the implementation of select(3C) with both standard and 'large' (64K) FD_SETSIZE.
    AFAIK, 64-bit version of the libc.so contains the 64K-descriptors version of the select(3C), so you may consider building your application with -xarch=v9 flag to get 64-bit application...
    As for poll(2) - there is a manual page (man -s 2 poll) and some notes in the Answerbook. poll(2) is the actual system call that is used by select(3C), which is an interface function, so there is no functional difference between these two.
    There is a potential problem with portability of your code if you are using poll(), but it looks like you have no choice... sorry about it...

  • Question on Delta Init Loads

    Hi All,
    I have a basic question on Delta Inits. I am a beginner in BW and would truly appreciate any input.
    At my company, we currently are doing delta loads on the cube 0RT_C35 (Material Movements). They did the Delta Inits prior to that.
    Now if we were to add new fields to the cube and need to populate data to the new fields from the beggining, how do I go about doing it..?
    Should I delete the Delta Init requests and redo the Delta Inits..? What will happen to the Delta loads that are running daily then..?
    Can someone please give me the steps that I need to follow in a sequence.
    Like I said, it might be a basic question..but I am not familiar with this process.
    Appreciate your help.

    Thank You very much Ravi.
    I will not be doing it today based on the priority of the tasks..but this is something I will have to do eventually in the next 1-2 weeks. I will definitely let you know how it goes.
    So once the mapping and everything is in place and is ready to be loaded, bascially I need to delete data from the datatarget, put the delta job on hold, reinit the delta requests and then I should be able to do the delta jobs again right..?
    Thank You so much.
    The other issue is that there are probably 25 Delta inits that they did based on the number range for the Material Nbr. But they have only 1 delta. So does the delta job cover the data for all the Delta Init requests..?
    I am assigning full points to you for being such a great help. I will let you know when I actually end up doing this.
    I will assign the remaining points when I close the request.
    Thanks again

  • [SOLVED]Questions about a shell program and about shell: files, regexp

    Hello, I'm writing this little program in shell:
    #!/bin/bash
    # Synopsis:
    # Read from an inputfile each line, which has the following format:
    # lllnn nnnnnnnnnnnnllll STRING lnnnlll n nnnn nnnnnnnnn nnnnnnnnnnnnnnnnnnnn ll ll
    # where:
    # n is a <positive int>
    # l is a <char> (no special chars)
    # the last set of ll ll could be:
    # - NV
    # - PV
    # Ex:
    # AVO01 000060229651AVON FOOD OF ARKHAM C A S060GER 0 1110 000000022 00031433680006534689 NV PV
    # The program should check, for each line of the file, the following:
    # I) If the nn of character lllnn (beggining the line) is numeric,
    # this is, <int>
    # II) If the character ll ll is NV (just one set of ll) then
    # copy that line in an outputfile, and add one to a counter.
    # III) If the character ll ll is NP (just one set of ll) then
    # copy that line in an outputfile, and add one to a counter.
    # NOTICE: could be just one ll. Ex: [...] NV [...]
    # [...] PV [...]
    # or both Ex: [...] NV PV [...]
    # Execution (after generating the executable):
    # ./ inputfile outputfileNOM outputfilePGP
    # Check the number of arguments that could be passed.
    if [[ ${#@} != 3 ]]; then
    echo "Error...must be: myShellprogram <inputfile> <outputfileNOM> <outputfilePGP>\n"
    exit
    fi
    #Inputfile: is in position 1 on the ARGS
    inputfile=$1
    #OutputfileNOM: is in position 2 on the ARGS
    outputfileNOM=$2
    #OutputfilePGP: is in position 3 on the ARGS
    outputfilePGP=$3
    #Main variables. Change if needed.
    # Flags the could appear in the <inputfile>
    # ATTENTION!!!: notice that there is a white space
    # before the characters, this is important when using
    # the regular expression in the conditional:
    # if [[ $line =~ $NOM ]]; then [...]
    # If the white space is NOT there it would match things like:
    # ABCNV ... which is wrong!!
    NOM=" NV"
    PGP=" PV"
    #Counters of ocurrences
    countNOM=0;
    countPGP=0;
    #Check if the files exists and have the write/read permissions
    if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
    #Read all the lines of the file.
    while read -r line
    do
    code=${line:3:2} #Store the code (the nnn) of the "llnnn" char set of the inputfile
    #Check if the code is numeric
    if [[ $code =~ ^[0-9]+$ ]] ; then
    #Check if the actual line has the NOM flag
    if [[ $line =~ $NOM ]]; then
    echo "$line" >> "$outputfileNOM"
    (( ++countNOM ))
    fi
    #Check if the actual line has the PGP flag
    if [[ $line =~ $PGP ]]; then
    echo "$line" >> "$outputfilePGP"
    (( ++countPGP ))
    fi
    else
    echo "$code is not numeric"
    exit
    fi
    done < "$inputfile"
    echo "COUN NON $countNOM"
    echo "COUN PGP $countPGP"
    else
    echo "FILE: $inputfile does not exist or does not have read permissions"
    echo "FILE: $outputfileNOM does not exist or does not have write permissions"
    echo "FILE: $outputfilePGP does not exist or does not have write permissions"
    fi
    I have some questions:
    I) When I do:
    if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
    else
    echo "FILE: $inputfile does not exist or does not have read permissions"
    echo "FILE: $outputfileNOM does not exist or does not have write permissions"
    echo "FILE: $outputfilePGP does not exist or does not have write permissions"
    fi
    I would like to print the things on the else, accordingly, this is, print the right message. Ex: if "$outputfileNOM" did not have the write permission, just print that error. BUT, I don't want to put a lot of if/else, Ex:
    if [[ -r $inputfile ]]; then
    if [[-w $outputfileNOM ]] then
    else
    For the READ permission, and the other for the WRITE
    Is there a way to do it, without using a nesting approach, and that maintains the readability. 
    II) About the:
    if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]
    is OK if I use the flag "-x" instead of -r or -w. I don;t have a clear definition of what is the meaning of:
    -x FILE
    FILE exists and execute (or search) permission is granted
    III) Notice the ATTENTION label in my code. I notice that there are some possibilities, for ex: having white spaces before, after or before or after. I'm believing in the consistency of the input files, but if they change, it will explode. What could I do in this case? Is there an elegant way to manage it? (exceptions?)
    Thank you very much!
    EDIT: corrected what rockin turtle wrote bellow about the format. Thank you.
    Last edited by gromlok (2011-10-09 18:39:03)

    I) Regarding your if statement, you could do something like this:
    estr='FILE: %s does not exist or does not have %s permissions.\n'
    [ -r $inputfile ] || ( printf "$estr" "$inputfile" "read" && exit 1 )
    [ -w $outputfileNOM ] || ( printf "$estr" "$outputfileNOM" "write" && exit 1 )
    [ -w $outputfilePGP ] || ( printf "$estr" "$outputfilePGP" "write" && exit 1 )
    II)The -r/-w/-x mean that the file has the read/write/execute bit set. Do a
    $ man chmod
    for details.
    III) You should be able to do
    if [[ "$line" =~ .*\<NV\> ]]; then
    echo "..."
    (( countNOM++ ))
    fi
    but that didn't work for me when I tried it.  I don't know if this is a bug in bash, or (more likely) something that I am doing wrong.
    Regardless, I would write your script like this:
    #!/bin/bash
    file=$(egrep '^[A-Z]..[0-9]{2}' "$1")
    grep '\<NV\>' <<< "$file" > "$2"
    grep '\<PV\>' <<< "$file" > "$3"
    echo 'Count NON:' $(wc -l < "$2")
    echo 'Count PGP:' $(wc -l < "$3")
    Note: In reading your script, your comments imply that each line of the input file starts with 'llnnn' but the example line you gave starts with 'lllnn'.  That is, there are 3 letters (AVO) followed by 2 numbers (01). The above script assumes that lines start with 'lllnn'

  • 2 questions - one about Frame Rates, the other about Rendering

    These are two areas I need to learn more about.
    Any answers to my 2 specific questions below would be appreciated, but also, I need to gain a deeper understanding of these 2 areas, so if you have any recommendations on how/where to learn more, I'd appreciate that, as well.
    1. I'm trying to copy a tape from an older 8mm Sony Handycam to my Canon XL-1 mini-DV, in order to be able to import the footage into FCP, however, it comes out all messed up, skipping and jumping in a way that makes me think the frame rate of the two cameras is not in sync. I don't know of a way to change, or even to confirm, the frame rate of either one of these cameras and have found nothing online. Yet, I was able to successfully copy a tape a few years ago, with the same equipment I'm using now, so I'm thinking maybe the frame rate was changed on one of these??? I don't know.
    2. I've never really understood rendering - why some clips require it while others do not. The latest example was with footage from my Canon and a different (newer) Sony DCR-SR68. Because the format of this Sony is wider than that of the Canon, I shot it knowing that I'd be cropping off some of the left and right of the frame. So, in FCP, when I click and drag the corner of the wireframe in the canvas to make the Sony footage fill the square, it needs to be rendered in the Timeline. However, if I do the same with the Canon footage, it does not require rendering. I'm trying to understand why. If it makes a difference, the Canon footage was imported directly from the camera, whereas the Sony footage needed to be first imported into iMovie and saved as an MPEG before being imported into FCP.
    Thanks a lot.
    J

    Hi Mr. Chappell,
    Many older tapes have sat on shelves etc. for many years, It is
    a good idea to,
    First make sure your 8mm is mechanically sound, throw in a blank or
    unimportant tape and make sure it will play etc. without causing any
    phisical damage to the tape.
    Then put in a tape to transfer and Fast forward to the end and then rewind
    to the begginning, this will re-pack/tension the tape.
    then play the tape back briefly while looking thru the viewfinder or monitoring
    with a tv, hopefully all looks well.
    then connect and transfer to the mini-dv (best to use a tbc, but should work
    without)then playback the DV tape briefly, again, with either viewfinder or TV,
    if all looks good you should have no problems unless they are related
    to capture settings (they should match the DV cameras video and audio sampling
    rate, check for 32K).
    Hope this helps,
    J>H<L

Maybe you are looking for

  • I ave old iphone what are my options?

    See topic...I have an older 4 GB iPhone which I want to give to my wife. I want to purchase a new 3G for myself (tee hee) can I go ahead and get the new iphone at the $299 price? I'd have to check but I don't think I'm eligible for an upgrade at this

  • Series of 8 characters appearing under my mouse pointer

    i have a mac... mid 2007. no problems with it ever in the last 7 years. today...about 2 hours ago...i started to see a weird series of 8 strange unidentifiable characters appearing under my mouse pointer on my screen... it just moves right along trai

  • Oracle 9i JavaRE problem

    Hi, I am trying to install Oracle 9i but when it comes to Java Runtime Environment, it asks me path for it. I have JRE and J2SE installed in my Computer. What else do i need to proceed this installation? Thanks

  • DTW Update Problem

    Hi there, i got a confusing error while updating / inserting BP Contacts. I upload a couple of contact records, the dtw engine responses that everything is fine, but if i look in B1 into the record nothing has changed. The Update / Insert tick in DTW

  • LinkedButtom in Matrix in 6.5

    Is that possible. I know it's possible in 2004, but what about 6.5. Best Regards Christian Juhl Petersen Interconnect IT A/S