Is there a way to reference a variable name by the value of a String?

I realize my title may not be expressing the question accurately so...
In perl I can do this:
$varname = "nIterations";
${$varname} = 27;
which is the same thing as
$nIterations = 27;
Is there a way to do this in Java?
eg I want something like
String varname = new String( "nIterations" );
How can I refer to a variable programmatically from the value of the varname string, or is there not a way to do this?
Thanks!
-Andy

Thank you, I'm very new to java and am not sure I am seeing the big picture. I searched the forums and found this example:
Map textFieldMap = new HashMap();
textFieldMap.put("1", new JTextField());
textFieldMap.put("2", new JTextField());
JTextField textField = (JTextField)textFieldMap.get("1");
textField.setText("some value"); // text field associated with "1"
What I am confused with is how those textfields correspond to the 48+ textfields I have already placed on my applet canvas. I understand the example above as far as using the map to access specific textfields, but I am not sure how those textfields will match up to the ones I have ( which are named right now S11 , S12, ..., S116, ..., S31, S32, .., S316
I am sure I am missing something.
Thank you
-Andy

Similar Messages

  • Creating a variable whose name is the value of a String

    Hi guys
    i want to create java variables dynamically whose name is the
    value of String .
    Such as
    String str="object";
    now i want to ceate a variable of
    type int whose name will be "object".
    in what manner i can do this.

    i want to create java variables dynamically whose
    name is the
    value of String .
    Such as
    String str="object";
    now i want to ceate a variable of
    type int whose name will be "object".
    in what manner i can do this.
    You can't. The best you can do is create a Java source file and compile it on the fly.
    Could you tell us why you want to do this? I have no doubt at all that you are working with a bad design, and maybe we could help you fix it.

  • Is there a way to pass archive file name to the command-line control?

    Hi there,
    I have been researching the flash media live encoder laterly. But still cannot find confirmed anwsers on the following questions:
    1. Is there a way to pass an archive file name to the command-line control when starting an encoder?
    2. Can the username/password to the Flash Media Server be saved in the profile? If not, is there any otherway to provide(GUI mode) them automatically,
        like as variables to a script?
    Thanks a lot in advance.
    Helen

    1. The only way to inform the command-line encoder about the archive file name is to save the FMLE session profile with the file name. The node for saving the file name is <output><file><path>C:\sample.flv</output></file></path>. The easier way to update the xml profile is to use "Save Profile" option of the GUI mode. If you want to programmatically update the file name, read the profile and update the node before launching the encoder. I hope this answers your question.
    2. No. Credentials can't be saved in the profile. The only way to provide them programmatically is to use /ap and /ab commands for the command-line encoder. For GUI mode, there is no programmable option. But still you can try capturing keystrokes.

  • Is there a way to reference a private variable from one class in another?

    My first class starts off by declaring variables like so:
    class tStudent {
      // declare student name, id, grades 1 & 2, and gpa
      private String fname, lname, g1, g2;
      private int id;
      private double gpa;
      // define a constructor for a new student
      tStudent () {fname=lname=g1=g2=null; id=-1; gpa=0.0;}
      // define methods for manipulating the data members.
      // readStudent: reads information for just one student
    public void read (Scanner input) {
          fname = input.next();
          lname = input.next();
          id = input.nextInt();
          g1 = input.next();
          g2 = input.next();
    }And the second class:// tStudentList: for a list of students
    class tStudentList {
      private int nStudents;
      private tStudent[] list;
      // constructor for creating student list
      tStudentList() {
          list = new tStudent[36];
          for (int i=0; i < 36; i++) list=new tStudent();
    // read the individual students into the student list
    public void read(Scanner scan) {
    nStudents=0;
    while (scan.hasNext()) {list[nStudents++].read(scan);}
    // display the list of all students - fname, lname, id, g1, g2 and gpa
    // with an appropriate header so the output matches my sample //output
    public void print() {
    Is there a way to reference the variables in the first class to use in the second? Specifically in the last section of code where I am going to print the list.

    Not without resorting to reflection hackery. If the fields are private (and are supposed to be), then that means "don't allow access to these to outsiders of this class" by design.
    So if you really meant them to be accessible, then don't use private, or provide public accessors for them.

  • Is there any way to copy S.Variables via Maxl or Essbase

    Guyz,
    Is there any way to copy S.Variables from one App to another app via Maxl or Essbase.
    Cheers
    Cnee

    you can copy substitution variables between different Essbase servers through Admin console.
    At first you should be able to add both the essbase servers in the admin console.
    Then you can copy the subst variables from one essbase server to other.
    in subst variable window -> select copy -> select server, app, db -> select subst variable to be copied -> you can tick overwrite existing variables option if needed -> click OK.
    the other way is to collect the subst variable information through maxl & then write maxl scripts to create the subst variables on the other server.
    - Krish

  • Is there a way to hide some reports based on the selected values in prompt.

    Hi Experts,
    Is there a way to hide some reports based on the selected values in prompt.
    For ex. if a year is selected in the prompt then the report should display year wise report.
    If a year and half year both are selected in the drop down from prompt section then 2 reports should come.. One for year wise and another for half year wise.Kindly look into this.
    Regards
    Ashish

    Hi,
    Use presentation values in prompts for year,half,qtr and month.Example- For year-y is presentation variable in the same way for halfyear-h,qtr-q and month-m.
    create four intermediate reports.Example-Report r1 with only year column,r2 with only halfyear column,r3 with qtr column and r4 with month column.
    Make column in each report(r1,r2,r3,r4) is equal to their presentation variables(y,h,q,m).
    Use four sections.
    Section1-Place report that should come when only year.
    section2-Place report that should come for year and halfyear.
    Section3-Place report that should come for year,halfyear and qtr.
    Section4-Place report that should come for year,halfyear,qtr and month.
    Apply guided navigation for each section selecting guided navigation-
    For section1-
    properties->Guided navigation->check this Reference Source Request(Yes)->select report r1(year)->check this Show Section(if request returns row)
    In the same way do for remaining section2(select r2),section3(select r3) and section4(select r4)
    Thanks,
    Srikanth
    http://bintelligencegroup.wordpress.com/

  • RE: Is there a way to have 2 network cards on the samemachine

    Sean,
    I mean I am always connecting to the nodemgr of the 2nd environment
    successfully. Only when I run the client part of the application that I know
    is up, I get a response from the Name Server that it is actually the first
    IP address.
    I checked again. I defenitely have FORTE_NS_ADDRESS set to IP:5004, in my
    case, and not the hostname. I don't have FORTE_LOCATIONS set any where. the
    NS_ADDRESS for env2 has only 1 IP address associated with it. My Forte
    Control Panel on the client, and hence the NS address has only one entry.
    I tried going into escript like you said, and the name service still thinks
    it is IP1.
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    -----Original Message-----
    From: Sean Brown [SMTP:[email protected]]
    Sent: Monday, June 22, 1998 1:31 PM
    To: Venkat Kodumudi; 'Sean Brown'
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same
    machine
    Hmmmm? That is a little odd! Let me rehash what I think you are saying.
    You now have two environments each with their own name service with
    FORTE_NS_ADDRESS set to a different IP:Port combination. For example you
    are doing the steps:
    FORTE_NS_ADDRESS=255.255.255.1:5000
    start the nodemgr for env 1
    FORTE_NS_ADDRESS=255.255.255.2:5000
    start the nodemgr for env 2
    Now when you start a client you are always getting the address for env 1
    back from the nodemgr. I assume you actually mean the name service? Or, do
    you mean you are always connecting to the nodemgr & name service for env
    1?
    If the first scenario is the case and you are connecting to the nodemgr
    for
    env 2 but getting back IP's for services listening on the card for env 1 I
    would ask you what you are setting the FORTE_LOCATIONS value to before you
    start each service. If you are not setting it or are using the host name
    it
    will register using the IP for the primary network card associated with
    the
    machine name and I am again assuming that this is env 1. You need to set
    the FORTE_LOCATIONS variable to 255.255.255.2:0 (based on the steps above)
    before starting your services.
    If the second scenario is the case I would have you check what the
    FORTE_NS_ADDRESS is set to before you start up the client. Once again it
    must be the IP:Port combination not host:port combination if you want to
    get
    anything other than the primary card.
    I would also suggest that you do the following. After everything is up
    and
    running execute the following commands:
    escript -fns "ip for env1":port
    findsub nameservice
    showpart
    What you should see is everything currently registered under the name
    service. It will have the name and any "locations" (IP and port) that it
    is
    registered as listening on. I would look for the nodemgr and see where it
    has advertised itself. I would then look for any services you expect to
    be
    registered there and also verify where the have advertised themselves. If
    there are multiple locations listed for any one service, the client will
    use
    the first one in the list.
    Do the same for env 2.
    Sean
    -----Original Message-----
    From: Venkat Kodumudi [mailto:[email protected]]
    Sent: Monday, June 22, 1998 9:57 AM
    To: 'Sean Brown'
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same machine
    I am giving the actual IP address. and not the host name. That is why I
    don't understand what is going on.
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    -----Original Message-----
    From: Sean Brown [SMTP:[email protected]]
    Sent: Monday, June 22, 1998 10:53 AM
    To: Venkat Kodumudi; 'Sean Brown'
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same
    machine
    Hello Venkat,
    I probably should have mentioned this before. Your are correct. Forteis
    doing a host lookup if you are providing a name for examplemachine1:5000.
    You can bypass the host lookup by using the actual ip dot addressinstead
    for example 255.255.255.255:5000. This way you are taking the name
    service
    out od the picture and Forte will use the address provided.
    Sean
    -----Original Message-----
    From: Venkat Kodumudi [mailto:[email protected]]
    Sent: Monday, June 22, 1998 9:27 AM
    To: 'Sean Brown'
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same machine
    My requirement is that my second card serves as best case performance
    testing piece. This eliminates the network completely. We went one step
    ahead and created a new enviromnent for the second card. Whatever I do,
    the
    nodemgr is returning back the IP address of the first card, even thoughmy
    FORTE_NS_ADDRESS does not have the first card in the picture any where.
    I think Forte is doing a host look up and returning the first IP address
    it
    finds, as opposed to returning the IP address specified in theenvironment
    variable FORTE_NS_ADDRESS. Is there a way to trick it?
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    -----Original Message-----
    From: Sean Brown [SMTP:[email protected]]
    Sent: Thursday, June 18, 1998 9:54 AM
    To: Venkat Kodumudi
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same
    machine
    OK, you ran into one of the issues. That is, if both addresses areknown
    to
    the client that is trying to contact the partition it will always usethe
    first address in FORTE_LOCATIONS. This is because FORTE_LOCATIONS was
    designed more as a failover mechanism. So it will always try the
    first
    address in the list and if it succeeds, there is no reason to move onto
    the
    second.
    Now, the second issue is that there is currently a problem with theclient
    failover to the secondary address in FORTE_LOCATIONS. If the firstentry
    fails it is supposed to retry on the second entry. Instead, it
    retries
    the
    first entry again. I know that Forte knows about this but I do nothave
    a
    bug number on it.
    With that said, lets look at a possible solution for you. If the real
    objective here is to have a back up network card available for fail
    over
    on
    the same machine, or use one card to advertise outside your firewalland
    one
    to use inside, then you will have to contact Forte to determine whenthe
    failover problem will be fixed. But, if the objective is to loadbalance
    across the network cards you could have the environment manager listenon
    both ports and then alternate your server partitions across both
    cards.
    For
    example:
    set FORTE_NS_ADDRESS=card1:5000;card2:5000 and then start up the
    environment
    manager
    set FORTE_LOCATIONS=card1:0 (the 0 in the port causes the OS to pick a
    port)
    and start partition one
    set FORTE_LOCATIONS=card2:0 and start partition two
    and so on....
    In this scenario the environment manager will be listening on bothcards
    but
    each server will be listening on only one of the two cards. So if a
    request
    comes in for partition1 it will go through card one and if it is for
    partition two it will go through card two. You could assign your
    partitions
    to cards based on expected load.
    Well, I am done. I hope this helps!
    Sean
    -----Original Message-----
    From: Venkat Kodumudi [mailto:[email protected]]
    Sent: Thursday, June 18, 1998 8:06 AM
    To: 'Sean Brown'; 'John Jamison'
    Cc: [email protected]; Jose Suriol
    Subject: RE: Is there a way to have 2 network cards on the samemachine
    Sean,
    Thanks for your reply. I tried the approach. I was not very specificin
    my
    question. I do need the ability for server applications to listen and
    server
    on both the network cards.
    I was succesfully able to make the nodemgr listen on both the cardsand
    actually serve requests coming in from both the cards. But, followingyour
    advise, I took a cautious step with FORTE_LOCATIONS. Here is what I
    noticed.
    I have an application that has 6 partitions in total. I used
    FORTE_LOCATION
    to make it listen on 1. Both the cards. 2. Swapped the IP addresses
    for
    both
    cards for this application. 3. One card that I want it to listen on. I
    tried
    all approaches by exporting the locations variable for just this
    application. The nodemgr recieves a request from this pc connected onthe
    second card to talk to one of the partitions. The node mgr responds
    with
    a
    proxy - with the ip address and socket number of the first card. The
    FORTE_NS_ADDRESS variable looks like this:
    IP1:5002;IP2:5002.
    Is it possible atall to resolve my problem, without having a seperate
    environment?
    Thanks
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    -----Original Message-----
    From: Sean Brown [SMTP:[email protected]]
    Sent: Wednesday, June 17, 1998 10:42 AM
    To: 'John Jamison'; Venkat Kodumudi
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the
    same
    machine
    Venkat,
    Actually, it is possible for Forte to listen on more than one IP andport
    combination. The first reply to your message was correct. If you
    set
    the
    FORTE_NS_ADDRESS to contain multiple entries before starting the
    name
    service, it will advertise on both. For Forte servers you use the
    FORTE_LOCATIONS env variable to get it to advertise on multipleip:port
    combinations.
    We were doing something very similar with another customer I was at
    to
    get
    around a firewall. I will warn you that there are some issues with
    FORTE_LOCATIONS that may keep that portion from working. However,
    from
    reading your note, it appears that all you need is for the nameservice
    to
    advertise and listen on multiple ports and that works fine. I justtested
    it again for sanity sake and it worked. I ran my test on NT using
    Forte
    3G2.
    Sean
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of John Jamison
    Sent: Tuesday, June 16, 1998 4:51 PM
    To: Venkat Kodumudi
    Cc: [email protected]
    Subject: Re: Is there a way to have 2 network cards on the samemachine
    Venkat,
    Technically yes this is possible, though not in Forte. A nameserver
    can
    only listen on one port.
    To implement this scheme you will have to write a proxy service (insome
    language
    including perhaps forte) which listens on the well-known port on the
    second card, reads requests, then forwards them to the realnameservice
    (wkp on the first card), and forwards replies back. This is not
    trivial, but some firewall toolkit vendors supply stub code to write
    application specific proxies.
    -J
    Venkat Kodumudi wrote:
    Folks,
    Here is what we would like to do:
    We want to have 2 network cards on a unix box - which means I have
    2
    ip
    addresses, and the connection between the two is the unix box and
    only
    the
    unix box. I have a pc connected to the 2nd network card and I want
    it
    to
    connect to the nameserver that is listening on a well known port
    on
    the
    first network card. We don't want to turn IP forwarding between
    the
    two
    cards. We want Forte to address both cards to talk to clients, in
    one
    environment.
    Can this be done? If so how?
    Thanks in advance.
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    >>>>
    John Jamison [email protected]
    Vice President and Chief Technology Officer
    Sage IT Partners, Inc.
    Voice: 415 392-7243 x 306
    Fax: 415 391-3899
    Internet Enabled Business Change
    <a href=
    "http://www.sageit.com">http://www.sageit.com</a>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>

    Hello Venkat,
    I probably should have mentioned this before. Your are correct. Forte is
    doing a host lookup if you are providing a name for example machine1:5000.
    You can bypass the host lookup by using the actual ip dot address instead
    for example 255.255.255.255:5000. This way you are taking the name service
    out od the picture and Forte will use the address provided.
    Sean
    -----Original Message-----
    From: Venkat Kodumudi [mailto:[email protected]]
    Sent: Monday, June 22, 1998 9:27 AM
    To: 'Sean Brown'
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same machine
    My requirement is that my second card serves as best case performance
    testing piece. This eliminates the network completely. We went one step
    ahead and created a new enviromnent for the second card. Whatever I do, the
    nodemgr is returning back the IP address of the first card, even though my
    FORTE_NS_ADDRESS does not have the first card in the picture any where.
    I think Forte is doing a host look up and returning the first IP address it
    finds, as opposed to returning the IP address specified in the environment
    variable FORTE_NS_ADDRESS. Is there a way to trick it?
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    -----Original Message-----
    From: Sean Brown [SMTP:[email protected]]
    Sent: Thursday, June 18, 1998 9:54 AM
    To: Venkat Kodumudi
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same
    machine
    OK, you ran into one of the issues. That is, if both addresses are known
    to
    the client that is trying to contact the partition it will always use the
    first address in FORTE_LOCATIONS. This is because FORTE_LOCATIONS was
    designed more as a failover mechanism. So it will always try the first
    address in the list and if it succeeds, there is no reason to move on to
    the
    second.
    Now, the second issue is that there is currently a problem with the client
    failover to the secondary address in FORTE_LOCATIONS. If the first entry
    fails it is supposed to retry on the second entry. Instead, it retries
    the
    first entry again. I know that Forte knows about this but I do not have a
    bug number on it.
    With that said, lets look at a possible solution for you. If the real
    objective here is to have a back up network card available for fail over
    on
    the same machine, or use one card to advertise outside your firewall and
    one
    to use inside, then you will have to contact Forte to determine when the
    failover problem will be fixed. But, if the objective is to load balance
    across the network cards you could have the environment manager listen on
    both ports and then alternate your server partitions across both cards.
    For
    example:
    set FORTE_NS_ADDRESS=card1:5000;card2:5000 and then start up the
    environment
    manager
    set FORTE_LOCATIONS=card1:0 (the 0 in the port causes the OS to pick a
    port)
    and start partition one
    set FORTE_LOCATIONS=card2:0 and start partition two
    and so on....
    In this scenario the environment manager will be listening on both cards
    but
    each server will be listening on only one of the two cards. So if a
    request
    comes in for partition1 it will go through card one and if it is for
    partition two it will go through card two. You could assign your
    partitions
    to cards based on expected load.
    Well, I am done. I hope this helps!
    Sean
    -----Original Message-----
    From: Venkat Kodumudi [mailto:[email protected]]
    Sent: Thursday, June 18, 1998 8:06 AM
    To: 'Sean Brown'; 'John Jamison'
    Cc: [email protected]; Jose Suriol
    Subject: RE: Is there a way to have 2 network cards on the same machine
    Sean,
    Thanks for your reply. I tried the approach. I was not very specific in
    my
    question. I do need the ability for server applications to listen and
    server
    on both the network cards.
    I was succesfully able to make the nodemgr listen on both the cards and
    actually serve requests coming in from both the cards. But, following your
    advise, I took a cautious step with FORTE_LOCATIONS. Here is what I
    noticed.
    I have an application that has 6 partitions in total. I used
    FORTE_LOCATION
    to make it listen on 1. Both the cards. 2. Swapped the IP addresses for
    both
    cards for this application. 3. One card that I want it to listen on. I
    tried
    all approaches by exporting the locations variable for just this
    application. The nodemgr recieves a request from this pc connected on the
    second card to talk to one of the partitions. The node mgr responds with a
    proxy - with the ip address and socket number of the first card. The
    FORTE_NS_ADDRESS variable looks like this:
    IP1:5002;IP2:5002.
    Is it possible atall to resolve my problem, without having a seperate
    environment?
    Thanks
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    -----Original Message-----
    From: Sean Brown [SMTP:[email protected]]
    Sent: Wednesday, June 17, 1998 10:42 AM
    To: 'John Jamison'; Venkat Kodumudi
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same
    machine
    Venkat,
    Actually, it is possible for Forte to listen on more than one IP andport
    combination. The first reply to your message was correct. If you setthe
    FORTE_NS_ADDRESS to contain multiple entries before starting the name
    service, it will advertise on both. For Forte servers you use the
    FORTE_LOCATIONS env variable to get it to advertise on multiple ip:port
    combinations.
    We were doing something very similar with another customer I was at toget
    around a firewall. I will warn you that there are some issues with
    FORTE_LOCATIONS that may keep that portion from working. However, from
    reading your note, it appears that all you need is for the name serviceto
    advertise and listen on multiple ports and that works fine. I justtested
    it again for sanity sake and it worked. I ran my test on NT using Forte
    3G2.
    Sean
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of John Jamison
    Sent: Tuesday, June 16, 1998 4:51 PM
    To: Venkat Kodumudi
    Cc: [email protected]
    Subject: Re: Is there a way to have 2 network cards on the same machine
    Venkat,
    Technically yes this is possible, though not in Forte. A name server
    can
    only listen on one port.
    To implement this scheme you will have to write a proxy service (in some
    language
    including perhaps forte) which listens on the well-known port on the
    second card, reads requests, then forwards them to the real nameservice
    (wkp on the first card), and forwards replies back. This is not
    trivial, but some firewall toolkit vendors supply stub code to write
    application specific proxies.
    -J
    Venkat Kodumudi wrote:
    Folks,
    Here is what we would like to do:
    We want to have 2 network cards on a unix box - which means I have 2ip
    addresses, and the connection between the two is the unix box and onlythe
    unix box. I have a pc connected to the 2nd network card and I want it
    to
    connect to the nameserver that is listening on a well known port onthe
    first network card. We don't want to turn IP forwarding between thetwo
    cards. We want Forte to address both cards to talk to clients, in one
    environment.
    Can this be done? If so how?
    Thanks in advance.
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    >>
    John Jamison [email protected]
    Vice President and Chief Technology Officer
    Sage IT Partners, Inc.
    Voice: 415 392-7243 x 306
    Fax: 415 391-3899
    Internet Enabled Business Change
    <a href="http://www.sageit.com">http://www.sageit.com</a>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>

  • Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?

    Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?
    A little background info. I use Captivate 7 and currently have over 100 projects that I maintain on a quarterly basis. I publish using the SWF format and upload the swf/htm files to a server where they are then accessed from a few locations (within our online documentation, in our software product, on two different websites). Many of the projects are linked so some will be viewed as a series and others viewed as a standalone video. Each video uses the same template and includes an intro and end slide. Now my organization wants to implement a new intro to all videos (those I publish and those from several groups across the organization). My current intros provide overview material for the specific video so the new intro, which is an animation with audio in mp4 format, would need to be placed at the start of each project. The issue is, the intro adds 9 seconds to every video and in many cases doesn’t add any value (say, if a user accesses the video from within our product or views the videos as a series). I’ve talked it over with my boss and we want to try to add the intro only to videos accessed from site X, not any other location. So now to my question. Is there a way to play an external mp4 file (intro) only when the published project is accessed from a specific site, therefore eliminating the need to update each project? Maybe there's a way to add a parameter or variable to the URL or the html code?
    Thanks in advance for your suggestions. Please let me know if you need additional information.

    AimeeLove,
    I have a solution for you.  You may have to modify the code a little bit based on how long the timeline animation is for your clock.  I based mine on 3 seconds to complete a minute hand sweep around the clock.
    Milliseconds for each point on the clock:
    12 = 0
    1 = 250
    2 = 500
    3 = 750
    4 = 1000
    5 = 1250
    6 = 1500
    7 = 1750
    8 = 2000
    9 = 2250
    10 = 2500
    11 = 2750
    In the mouseover section for 12 o' clock, put this code...
    myVar = setInterval(function(){
         var pos = sym.getPosition();
         if (pos > 0 && pos < 50){
              sym.stop(0);
              clearInterval(myVar);
    },10);
    When you point to the time, the setInterval method loops every 100th of a second and checks the current position of the timeline.  When the timeline reaches the range between 0 and 50 milliseconds (almost impossible to hit 1 specific point), the timeline will stop at 0.  Also, the clearInterval will be fired to stop the loop.
    In the mouseout section, put this...
    sym.play();
    clearInterval(myVar);
    It start the clock again, and it also clears the loop in case you mouseout before you reach the range.
    Make sure that myVar is a global variable so you can clear it from the mouseout section.
    Repeat this for each point on the clock.  To avoid potential conflicts, you may want to use my12, my1, my2, etc. instead of myVar.  I put the milliseconds at the top that you would use as the beginning of the range.  50 milliseconds should be enough to catch it.  So, for 5 o' clock, you would make your range between 1250 and 1300.
    Let me know if you have any questions.  Thanks!
    Fred

  • Is there a way to have 2 network cards on the samemachine

    Folks,
    Here is what we would like to do:
    We want to have 2 network cards on a unix box - which means I have 2 ip
    addresses, and the connection between the two is the unix box and only the
    unix box. I have a pc connected to the 2nd network card and I want it to
    connect to the nameserver that is listening on a well known port on the
    first network card. We don't want to turn IP forwarding between the two
    cards. We want Forte to address both cards to talk to clients, in one
    environment.
    Can this be done? If so how?
    Thanks in advance.
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hmmmm? That is a little odd! Let me rehash what I think you are saying.
    You now have two environments each with their own name service with
    FORTE_NS_ADDRESS set to a different IP:Port combination. For example you
    are doing the steps:
    FORTE_NS_ADDRESS=255.255.255.1:5000
    start the nodemgr for env 1
    FORTE_NS_ADDRESS=255.255.255.2:5000
    start the nodemgr for env 2
    Now when you start a client you are always getting the address for env 1
    back from the nodemgr. I assume you actually mean the name service? Or, do
    you mean you are always connecting to the nodemgr & name service for env 1?
    If the first scenario is the case and you are connecting to the nodemgr for
    env 2 but getting back IP's for services listening on the card for env 1 I
    would ask you what you are setting the FORTE_LOCATIONS value to before you
    start each service. If you are not setting it or are using the host name it
    will register using the IP for the primary network card associated with the
    machine name and I am again assuming that this is env 1. You need to set
    the FORTE_LOCATIONS variable to 255.255.255.2:0 (based on the steps above)
    before starting your services.
    If the second scenario is the case I would have you check what the
    FORTE_NS_ADDRESS is set to before you start up the client. Once again it
    must be the IP:Port combination not host:port combination if you want to get
    anything other than the primary card.
    I would also suggest that you do the following. After everything is up and
    running execute the following commands:
    escript -fns "ip for env1":port
    findsub nameservice
    showpart
    What you should see is everything currently registered under the name
    service. It will have the name and any "locations" (IP and port) that it is
    registered as listening on. I would look for the nodemgr and see where it
    has advertised itself. I would then look for any services you expect to be
    registered there and also verify where the have advertised themselves. If
    there are multiple locations listed for any one service, the client will use
    the first one in the list.
    Do the same for env 2.
    Sean
    -----Original Message-----
    From: Venkat Kodumudi [mailto:[email protected]]
    Sent: Monday, June 22, 1998 9:57 AM
    To: 'Sean Brown'
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same machine
    I am giving the actual IP address. and not the host name. That is why I
    don't understand what is going on.
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    -----Original Message-----
    From: Sean Brown [SMTP:[email protected]]
    Sent: Monday, June 22, 1998 10:53 AM
    To: Venkat Kodumudi; 'Sean Brown'
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same
    machine
    Hello Venkat,
    I probably should have mentioned this before. Your are correct. Forte is
    doing a host lookup if you are providing a name for example machine1:5000.
    You can bypass the host lookup by using the actual ip dot address instead
    for example 255.255.255.255:5000. This way you are taking the name
    service
    out od the picture and Forte will use the address provided.
    Sean
    -----Original Message-----
    From: Venkat Kodumudi [mailto:[email protected]]
    Sent: Monday, June 22, 1998 9:27 AM
    To: 'Sean Brown'
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same machine
    My requirement is that my second card serves as best case performance
    testing piece. This eliminates the network completely. We went one step
    ahead and created a new enviromnent for the second card. Whatever I do,
    the
    nodemgr is returning back the IP address of the first card, even though my
    FORTE_NS_ADDRESS does not have the first card in the picture any where.
    I think Forte is doing a host look up and returning the first IP address
    it
    finds, as opposed to returning the IP address specified in the environment
    variable FORTE_NS_ADDRESS. Is there a way to trick it?
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    -----Original Message-----
    From: Sean Brown [SMTP:[email protected]]
    Sent: Thursday, June 18, 1998 9:54 AM
    To: Venkat Kodumudi
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same
    machine
    OK, you ran into one of the issues. That is, if both addresses areknown
    to
    the client that is trying to contact the partition it will always usethe
    first address in FORTE_LOCATIONS. This is because FORTE_LOCATIONS was
    designed more as a failover mechanism. So it will always try the first
    address in the list and if it succeeds, there is no reason to move on to
    the
    second.
    Now, the second issue is that there is currently a problem with theclient
    failover to the secondary address in FORTE_LOCATIONS. If the firstentry
    fails it is supposed to retry on the second entry. Instead, it retries
    the
    first entry again. I know that Forte knows about this but I do not havea
    bug number on it.
    With that said, lets look at a possible solution for you. If the real
    objective here is to have a back up network card available for fail over
    on
    the same machine, or use one card to advertise outside your firewall and
    one
    to use inside, then you will have to contact Forte to determine when the
    failover problem will be fixed. But, if the objective is to loadbalance
    across the network cards you could have the environment manager listenon
    both ports and then alternate your server partitions across both cards.
    For
    example:
    set FORTE_NS_ADDRESS=card1:5000;card2:5000 and then start up the
    environment
    manager
    set FORTE_LOCATIONS=card1:0 (the 0 in the port causes the OS to pick a
    port)
    and start partition one
    set FORTE_LOCATIONS=card2:0 and start partition two
    and so on....
    In this scenario the environment manager will be listening on both cards
    but
    each server will be listening on only one of the two cards. So if a
    request
    comes in for partition1 it will go through card one and if it is for
    partition two it will go through card two. You could assign your
    partitions
    to cards based on expected load.
    Well, I am done. I hope this helps!
    Sean
    -----Original Message-----
    From: Venkat Kodumudi [mailto:[email protected]]
    Sent: Thursday, June 18, 1998 8:06 AM
    To: 'Sean Brown'; 'John Jamison'
    Cc: [email protected]; Jose Suriol
    Subject: RE: Is there a way to have 2 network cards on the same machine
    Sean,
    Thanks for your reply. I tried the approach. I was not very specific in
    my
    question. I do need the ability for server applications to listen and
    server
    on both the network cards.
    I was succesfully able to make the nodemgr listen on both the cards and
    actually serve requests coming in from both the cards. But, followingyour
    advise, I took a cautious step with FORTE_LOCATIONS. Here is what I
    noticed.
    I have an application that has 6 partitions in total. I used
    FORTE_LOCATION
    to make it listen on 1. Both the cards. 2. Swapped the IP addresses for
    both
    cards for this application. 3. One card that I want it to listen on. I
    tried
    all approaches by exporting the locations variable for just this
    application. The nodemgr recieves a request from this pc connected onthe
    second card to talk to one of the partitions. The node mgr responds witha
    proxy - with the ip address and socket number of the first card. The
    FORTE_NS_ADDRESS variable looks like this:
    IP1:5002;IP2:5002.
    Is it possible atall to resolve my problem, without having a seperate
    environment?
    Thanks
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    -----Original Message-----
    From: Sean Brown [SMTP:[email protected]]
    Sent: Wednesday, June 17, 1998 10:42 AM
    To: 'John Jamison'; Venkat Kodumudi
    Cc: [email protected]
    Subject: RE: Is there a way to have 2 network cards on the same
    machine
    Venkat,
    Actually, it is possible for Forte to listen on more than one IP andport
    combination. The first reply to your message was correct. If you setthe
    FORTE_NS_ADDRESS to contain multiple entries before starting the name
    service, it will advertise on both. For Forte servers you use the
    FORTE_LOCATIONS env variable to get it to advertise on multiple
    ip:port
    combinations.
    We were doing something very similar with another customer I was at toget
    around a firewall. I will warn you that there are some issues with
    FORTE_LOCATIONS that may keep that portion from working. However,
    from
    reading your note, it appears that all you need is for the nameservice
    to
    advertise and listen on multiple ports and that works fine. I justtested
    it again for sanity sake and it worked. I ran my test on NT using
    Forte
    3G2.
    Sean
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of John Jamison
    Sent: Tuesday, June 16, 1998 4:51 PM
    To: Venkat Kodumudi
    Cc: [email protected]
    Subject: Re: Is there a way to have 2 network cards on the samemachine
    Venkat,
    Technically yes this is possible, though not in Forte. A nameserver
    can
    only listen on one port.
    To implement this scheme you will have to write a proxy service (insome
    language
    including perhaps forte) which listens on the well-known port on the
    second card, reads requests, then forwards them to the realnameservice
    (wkp on the first card), and forwards replies back. This is not
    trivial, but some firewall toolkit vendors supply stub code to write
    application specific proxies.
    -J
    Venkat Kodumudi wrote:
    Folks,
    Here is what we would like to do:
    We want to have 2 network cards on a unix box - which means I have 2
    ip
    addresses, and the connection between the two is the unix box and
    only
    the
    unix box. I have a pc connected to the 2nd network card and I want
    it
    to
    connect to the nameserver that is listening on a well known port onthe
    first network card. We don't want to turn IP forwarding between thetwo
    cards. We want Forte to address both cards to talk to clients, in
    one
    environment.
    Can this be done? If so how?
    Thanks in advance.
    Venkat Kodumudi
    Price Waterhouse LLP
    Internet: [email protected]
    Internet2: [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    >>>
    John Jamison [email protected]
    Vice President and Chief Technology Officer
    Sage IT Partners, Inc.
    Voice: 415 392-7243 x 306
    Fax: 415 391-3899
    Internet Enabled Business Change
    <a href=
    "http://www.sageit.com">http://www.sageit.com</a>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>

  • Is there any way to delete a page listing on the top of the IWeb site. I created a page which has links to the other pages, so I don't need all of them listed on top...

    Is there any way to delete a page listing on the top of the IWeb site. I created a page which has links to the other pages, so I don't need all of them listed on top...

    Better ask in the iWeb forum.
    Answer : inspector > first icon from the left > uncheck 'Display navigation menu'
    For future reference, also look at the other icons.

  • Is there a way to display only duplicates and not the original?

    i know that there is a button to "display duplicates" but that displays both duplicates and the original. i just want to go through and delete everything that i dont need. i have like 40 gbs of duplicates and need some space on my comp. is there a way to do this without going through the duplicates list and deleting things one by one?

    How would you define the duplicate?
    I use the same feature, but many times songs that appear to be duplicates really are not. For example, I might have the same artist doing the song on the original album, on a compilation of greatest hits, on a live disc, and perhaps even on another compilation mixed in with other artists. Which is the duplicate?
    Also you might find that some duplicate songs from the same artist have slightly different names, and they won't show up on the "show duplicates" list.
    I like to keep some duplicates, because one day I might want to play by artist, and another day I might want to play some of my "decade" collections. I decided it was easier to have duplicate songs than try to manage playlists that reference the same song.
    What I have started doing to identify duplicates, and it works well for me, is I make a temporary playlist and put everything by an individual artist into that playlist. I sort by song title. That puts all of the songs that have the same name together, but by artist, and I go through and selectively check / uncheck the songs I want to sync to my iPod or not. I don't try to do my entire library at once, since it's fairly large (in my case). Maybe a process like that would work for you.

  • Is there a way of putting firefox bookmarks folder on the dock

    Is there a way of putting firefox bookmarks folder on the dock. not just one bookmark. i have done that. but i want all of them in stack or something.. similar to how windows did it in the start menu. its annoying that you have to open firefox first to access your links.
    i got my first imac yesterday and loving it!!! albeit the text is a bit small but i have found the zoom!
    thanks in advance

    Perhaps you don't know how to bring icons into the Firefox  Toolbar. You can put many things up there, including Bookmarks. You can also remove an icon or rearrange the order of icons.
    From View>Toolbars>Customize
    Here is the Bookmarks icon (next to the History icon) from which you can open all your bookmarks directly. And if you can remember a keyword, it will find that one, or any others that come up with that keyword. It's really quite convenient to use and will stay updated with any new bookmarks that are added.
    This is showing the Bookmarks open, which can be closed by clickng on the small x.

  • Is there a way to create a collection based on the "previous import"?

    is there a way to create a collection based on the "previous import"? that would make it easy to mobile sync the last import to my ipad, and do further picking/rejecting while away from my laptop.

    well, yes, of course i could do it that way. i guess i wasn't specific enough. is there a way to create a smart collection, with the photos in the "previous import" as members of the smart collection.  earlier i mentioned about using this smart collection to mobile sync with my ipad, to do further flagging.
    so my intention, use a smart collection to mobile sync with my ipad, and the smart collection to include the photos from my previous import.
    i guess another way to ask the question, is there a way to create a smart collection, by using some rule or condition in the smart collection, to automatically include previous import photos.
    the documentation says that "previous import" is a collection, even though it shows up in the catalogue side bar section. but i see no way to choose that collection when making a smart collection.
    jd

  • Is there a way to create a flipping book with the flipping 5k adobe software?

    Am I the only one pissed with the f adobe products?
    Is there a way to create a flipping book with the flipping 5k adobe software? Is it Flash, etc?
    Thanks

    Maybe a forum search on "Windows registry" would turn up some useful things. You're not the first to ask this. You might save yourself and everyone else some time if you'd simply do that.

  • Is there a way to open a new window from the "Go" menu in Mavericks?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?
    First, as others have already stated.....make sure the checkbox is deselected for "open folders in tabs instead of windows" in Finder Preferences.
    If you're like me and don't like tabs very much, there is a way to make folders always open in windows with a simple click (I'm using Mavericks 10.9.5).  Go to a root folder (for example, the Documents Folder), open it, and select View > Hide Toolbar, then all folders within that root folder will open in a new window.
    As an alternative method, any folder can be opened in a new window by holding down either Command Key while clicking the folder. But sooner or later you will forget to hold down that key, and then clicking on a folder will open in a tab (which will automatically resize the window and cause much aggravation).
    The Hide Toolbar trick will also work with any folder present on the Desktop. It will make all folders inside that folder open in new windows.
    To make the Applications Folder open in a new window when opening it from the menu bar at the top of the screen, you will have to open the main hard drive folder and use the Hide Toolbar trick. This will cause all folders inside it to open in new windows.
    Hope this helps.

Maybe you are looking for