Start and stop a loop automatica​lly subtractin​g at each iteration

Hi there,
I know that there are some topics about it, but I could not find any solution, especially because I use the version 7.1 and cannot open new version files.
My problem is as follows:
I need to charge a tank from 6 to 10 in the morning, every day during 3 days. The process must start and stop automatically, which means, no bottoms to start or stop. The start and stop conditions come from the hour.
I start with a big loop of 72 iterations, which corresponds to 72 hours.
The tank must start at level 6 every time it starts.
After the start, 1 unit must be subtracted in each iteration. Which means, that at 6 am the tank has level 10, at 7 am level 9 and so on. In the end, at 10 am the tank level is equal to 2.
In the next day, the process must start again and the tank must start at level 6.
Any suggestions? Thanks in advance.
Solved!
Go to Solution.

While this may work it can be improved significantly. This really isn't a state machine. This is basically the same as your flat sequence with the exception of using a While loop with a Case statement to implement each frame.
You should define what your actions are and create a typedefed ENUM naming them. State names of 1 through 24 are meaningless. Not to mention in your code many of the cases are duplicates of others. That would mean that all of those can be one state with logic to determine what action/state comes next. A properly defined state machine would not need the outside For loop. Without knowing your specific needs some examples of reason state names would be the following: Start, Stop, Exit, Error, Initialize, Get Tank Level, Fill Tank, Drain Tank, Idle, etc. Can you see how these are easier to understand than 1 through 24.
There are lots of examples of state machines here. Try a search and take a look at some of them.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Starting and stopping a loop

    I am importing a list of 10,000 emails into memory and then
    comparing them to a database which holds over 400,000 records. It
    doesnt take long for the <cfquery> to time out. I know there
    must be a way to loop thru 20 or so, then stop, then loop thru the
    next 20, etc. I cannot lengthen the timeout so I need to figure out
    a way to process the data in chunks. Thanks.
    <cfhttp method="Get"
    url="
    http://192.168.14.51/matt/email.CSV"
    columns="Email"
    name="importCSV"
    delimiter="#chr(10)##chr(13)#"
    textqualifier="">
    <cfset counter = 0>
    <cfloop index="element" list = "#CFHTTP.FileContent#"
    delimiters="#chr(10)##chr(13)#">
    <cfset counter = counter +1>
    </cfloop>
    <cfset start = 1>
    <cfset end = 20>
    <cfset lastRow = #counter#>
    <cfloop from="#start#" to="#end#" index="loop">
    <cfset ThisEmail =
    listGetAt(cfhttp.filecontent,loop,"#chr(10)##chr(13)#")>
    <CFQUERY NAME = "CheckEmail" DATASOURCE="t">
    SELECT Email
    FROM Subscriber_Info_New
    WHERE Email = '#ThisEmail#'
    </CFQUERY>
    <CFIF CheckEmail.RecordCount EQ 0>
    <CFQUERY NAME="Insert" datasource="t">
    INSERT INTO Subscriber_Info_New
    (Email)
    VALUES (<cfqueryparam cfsqltype="CF_SQL_VARCHAR"
    value="#Trim(ThisEmail)#">)
    </CFQUERY>
    </CFIF>
    </cfloop>

    quote:
    Originally posted by:
    Newsgroup User
    I cannot lengthen the timeout so I need to figure out a way
    to process
    the data in chunks. Thanks.
    Are you sure you can not lengthen the timeout. The
    <cfapplication ...>
    tag allows one to define a specific timeout for a given page,
    as long as
    that is less then the maximum timeout defined in the
    administrator.
    If this is not sufficient for your needs you will need to
    break up your
    process over multiple requests. Just starting and stopping
    the loop in
    a singe request does nothing for reducing the timeout
    threshold of the
    page. You can do this with scheduled tasks, web services,
    and|or the
    <cflocation ...> tag. You will need to pass through
    relevant data about
    what iterations to process, and use some kind of extra
    request storage
    for the results, such as server|application|session scopes,
    databases or
    files.
    Hope that gives you some help.
    Ian
    Sounds like more than I know how to do. I cant change the
    timeout because its set that way on purpose. I think Ill leave this
    alone for now. Thanks.

  • How to start and stop looping

    I'm very new to Flash / action script, so I just need to know where to put both the start loop, and the end loop code (below) in my Flash file to make the waving effect on this flag (link below) start and stop when I need it to, because I'm adding a small amount of flash both before and after it. thanks.....
    loopI = setInterval(loopF,40);
    to start the waving and use:
    clearInterval(loopI);
    to stop the waving.
    function loopF(){
        // move the matrix by speed along x to shift the noise
        shift.translate(speed, 0);
        // drawing in the perlin movie clip,
        // create a rectangle with the perlin noise
        // drawn in it with an offset supplied by the
        // shift matrix
        with (displace_mc.perlin){
            clear();
            beginBitmapFill(noiseBitmap, shift);
            moveTo(0,0);
            lineTo(ramp._width, 0);
            lineTo(ramp._width, ramp._height);
            lineTo(0, ramp._height);
            lineTo(0, 0);
            endFill();
        // draw the displacement movie clip in the
        // displaceBitmap (used in displaceFilter)
        displaceBitmap.draw(displace_mc);
        // apply displaceFilter to the flag
        flag_mc.filters = [displaceFilter];
    updateAfterEvent();
    http://www.senocular.com/flash/source.php?id=0.188

    i told you and it's in your message:
    use:
    loopI = setInterval(loopF,40);
    to start the waving.
    use:
    clearInterval(loopI);
    to stop the waving.
    // do not edit the below code:
    function loopF(){
        // move the matrix by speed along x to shift the noise
        shift.translate(speed, 0);
        // drawing in the perlin movie clip,
        // create a rectangle with the perlin noise
        // drawn in it with an offset supplied by the
        // shift matrix
        with (displace_mc.perlin){
            clear();
            beginBitmapFill(noiseBitmap, shift);
            moveTo(0,0);
            lineTo(ramp._width, 0);
            lineTo(ramp._width, ramp._height);
            lineTo(0, ramp._height);
            lineTo(0, 0);
            endFill();
        // draw the displacement movie clip in the
        // displaceBitmap (used in displaceFilter)
        displaceBitmap.draw(displace_mc);
        // apply displaceFilter to the flag
        flag_mc.filters = [displaceFilter];
    updateAfterEvent();
    http://www.senocular.com/flash/source.php?id=0.188

  • Start and Stop Trigger using PXI-6120 and DigitalSta​rtAndStopT​rigger.vi not working :-(

    Hello,
    I've been trying for a while now to get my PXI unit to capture a waveform between a Start and Stop (Reference) Trigger using the NI example DigitalStartAndStopTrigger.vi downloaded from the NI website. However, whilst the start trigger and stop trigger seem to be working i.e. the VI runs and stops at  the correct times there is never any data read from my DAQmx compatible PXI-6120 card. So I can see the VI is running around the aquisition loop but the Property Node AvailSampPerChan is always returning zero... this has me slightly puzzled. I thought this might just be a driver issue so I've updated my box to the following software versions (see below) and installed the latest drivers e.g. DCDNov07.exe (also from the NI site) but nothing has changed.
    my software as of now.
    Labview 7.1 (with the 7.1.1 upgrade applied)
    Max 4.3.0.49152
    DAQmx 8.6.0f12
    Trad DAQ 7.4.4f7
    before I updated I had the same problem but with the following versions:
    Labview 7.1 (with the 7.1.1 upgrade applied)
    Max 4.2.1.3001
    DAQmx 8.5.0f5
    Trad DAQ 6.9.3f4
    So to cut a long story short I still have the same problem with the triggers... does anybody have any ideas what is going wrong?
    To add insult to injury it the traditional DAQ example ai_start-stop_d-trig.vi was almost working correctly before I did the upgrade. It had the strange behaviour of capturing the AI0 channel but on the wrong edges (e.g. if I set Start on Rise and Stop on Fall it would do the opposite, Start on Fall and Stop on Rise).
    I'm going to leave my box doing a mass compile over night but i'd really like it if someone could suggest a solution or point me in the right direction.
    Many thanks,
    Mike

    Hi Graham
    I'm out of the lab today but I'll try and answer your questions as best I can...
    1) What are the values you have set for Buffer size, Rate, samples per read and post trigger Samples?
    At the moment I have all the values (e.g. sample rate, buffer size etc) unchanged apart from the ones I mentioned in my previous post (see above). I have in the past played around with changing the buffer sizes and rates in the example VI but as this appeared to have no effect on the behaviour I now have them setup as in the download.
    2) Does the program end after the stop trigger is implemented?
    Yep, if I toggle the trigger line high then low I see the program exits the read loop and the VI stops running as expected.
    3) Lastly can you give me the details of triggering method. Are you
    using a digital train of users set digital pulses? how long is the
    program running.I'm using the WriteDigChan.vi to manually toggle the first digital line of the PXI-6733 card which is wired directly to PFI0 of the PXI-6120 card. Generally, I just start the VI running  and then toggle the line high, wait a couple of seconds and then toggle it low.
    To me it all looks like it should be acquiring samples but as I said yesterday it just refuses to fill the buffer with any data (and hence no samples are read).
    Any ideas? and thanks for you help,
    Mike

  • Starting and stopping triggered samples

    The ESX24 Sampler claims to be a plug-in that functions exactly like a sampler should. Previous to Logic Pro 7, I used a SP-606 sampler that had three different ways a sample could be played:
    1. drum - this function played the sample as long as the button (or note) was held down then stopped playing once released
    2- trigger - this started the sample and let it play until the end of the entire audio region
    3- loop - this looped the sample based on the specified start and stop points.
    However under the second function, trigger, you could trigger the sample to start and stop and restart and stop every time you hit the sample button or sent a note.
    Does logic have this function anywhere in the ESX24?
    for instance if i had a 15 second long sample and sent a midi note from a controller to start it...how do i stop it and restart it at will?
    the only functions I see available in Logic are the 'drum' function (where the sample releases and stops as long as you hold down the note) and the trigger function (but in Logic a second trigger does not stop the sample ----
    it triggers a second sample to play again --so that multiple samples are playing simultaneously)
    Any help would be greatly appreciated.

    Start Oracle RAC Database and Listener
    Follow Oracle Database Documentation on starting and stopping Oracle Database
    To ensure Oracle Warehouse Builder Runtime Services
    Log on to the Database machine Platform as the runtime repository owner.
    Run the ORACLE_HOME\owb\rtp\sql\servie_doctor.sql script.
    Note: The runtime repository owner is dwh_ws_owner and it is database user.
    Starting Oracle BI Infrastructure
    •     Login to Oracle BI Server
    •     Navigate to location /home/oracle/..
    •     Execute Script startBI.sh for Starting Oracle BI Services
    If you have to start Services Manually -
    Order of Starting Processes on BI Servers
    •     Oracle Business Intelligence Server
    •     Oracle Business Intelligence Presentation Services
    •     Oracle Business Intelligence Scheduler
    •     Oracle Business Intelligence Cluster Controller
    Use the script in sequence with parameter start
    •     Navigate to location /home/oracle/biserver/OracleBI/server/bin directory
    Example:
    •     ./run-sa.sh start
    •     ./run-saw.sh start
    •     ./run-sch.sh start
    •     ./run-ccs.sh start
    Stopping Oracle BI Infrastructure
    •     Login to Oracle BI Server
    •     Navigate to location /home/oracle/scripts
    •     Execute Script stopBI.sh for Stopping Oracle BI Services
    If you have to stop Services Manually -
    Order of Starting Processes on BI Servers
    •     Oracle Business Intelligence Cluster Controller
    •     Oracle Business Intelligence Server
    •     Oracle Business Intelligence Presentation Services
    •     Oracle Business Intelligence Scheduler
    Use the script in sequence with parameter start
    •     Navigate to location /home/oracle/biserver/OracleBI/setup directory
    Example:
    •     ./run-ccs.sh stop
    •     ./run-sa.sh stop
    •     ./run-saw.sh stop
    •     ./run-sch.sh stop

  • Programmatically starting and stopping my vi at set times

    I have a vi that runs during every production shift, however the running and stopping of this vi is currently manual, requiring a user to start and stop the vi at the appropriate times. I would like a way of programming the vi so that it starts every weekday at 6:55am and stops every weekday at 15:05pm. All my while loops run if engine status is TRUE, so I wondered if starting/stopping the engine appropriately would be sufficient. I will need to reinitialise all my values from the previous day – does this happen automatically by stopping/restarting the engine? I would also like to ignore weekends if possible.
    I have attached the vi that I would like to automatically start and stop. If anyone knows the best way to program this (slightly messy) vi, then I would greatly appreciate the help.
    Thanks to all,
    Stuart
    Attachments:
    HC2 Efficiency Information SW Edit (rev 10).vi ‏1202 KB

    My LV8 is having issues this morning and does not want to open the VI I sent you, so I jsut created the loop that I had added.  It is very simple, but should get you started.  It does not ignore weekends I have not had time to work on that.  You could do something like every time the start time is triggered, increment a counter and when the counter hits 6 (saturday if you start counting on monday), do not start the engine and then when it hits 7 reset the counter.
    Good luck and post back if you have more issues.
    Kenny
    Kenny
    Attachments:
    start stop.vi ‏16 KB

  • Flashing stacked sequence auto start and stop

    Seems like this should be so easy but I'm stumped.
     I want to use some flashing leds while some of my data is plotted but can’t figure out a way to programmatically start and stop a simple flashing stacked sequence.
    thanks for any help.
    Attachments:
    flashing LEDs.vi ‏33 KB
    flashing LEDs.png ‏12 KB

    OK. Then put the flashing in the loop with Stuff 2, which I presume is the one for which you want to show activity. I modified your program to do this. I also eliminated the sequence structure by using dataflow. You can probably get down to one loop by changing to a state machine structure.
    If the flashing rate needs to be a different rate than the Stuff 2 logic, put the slower part into a case structure which only executes one time for every n iterations.
    Lynn
    Attachments:
    flashing LEDs.2.vi ‏16 KB

  • Determine partition range start and stop for a partition

    Hi,
    Using oracle 11.2.0.3
    We are using range interval partitioning and partition sget generated automatically. (range-hash) intervbal 1 month
    Whilst can check table manually and see start and end range of partition is it possible to query data dictionary to see
    the satrt and stop range as wish to have script to automatically rename the system generated partitions based on the range involved e.g if generated partition has max date value
    3062013 waoul want PART_201306
    Thanks

    Thanks for replies.
    Have triied following sql but despite partition keyword in from clause is not using partition pruning.
    Table belwo retailer_transaction date-range partitioned 1 per month.
    If have to explictly use partitiong_date as condition in where clause to get partition pruning.
    Need to ab able to determine what start and stop dates for that month is automatically.
    Checked user_tab_partitions as have sql geneerator can get partition names but doesn't show partition start an dstop ranges.
    How can I achieve this
    sql gneerator starts
      for p in
       ( select U.PARTITION_NAME
         from ALL_tab_partitions u
         where u.table_name = 'RETAILER_TRANSACTION'
         and u.partition_name = 'PART_201001'
       loop
           v_sql := q'[create table rt_sum_]'||p.partition_name||q'[ parallel nologging
    as
    SELECT
    MAX(rt.outlet_id) KEEP (DENSE_RANK FIRST ORDER BY  c.day_dte) as outlet_id,
    MAX(rt.plant_issue_id) KEEP (DENSE_RANK FIRST ORDER BY  c.day_dte) as plant_issue_id,
    MAX(rt.cus_plant_id) KEEP (DENSE_RANK FIRST ORDER BY  c.day_dte) as cus_plant_id,
    MAX(rt.distributor_id) KEEP (DENSE_RANK FIRST ORDER BY  c.day_dte) as distributor_id,
    MAX(rt.publisher_id) KEEP (DENSE_RANK FIRST ORDER BY  c.day_dte) as publisher_id,
    MAX(rt.sas_id) KEEP (DENSE_RANK FIRST ORDER BY  c.day_dte) as sas_id,
    MAX(rt.product_band_id) KEEP (DENSE_RANK FIRST ORDER BY  c.day_dte) as product_band_id,
    MAX(r.mult_id) KEEP (DENSE_RANK FIRST ORDER BY  c.day_dte) as mult_id,
          r.out_num,
           m.plis_issue_num,
           min(rt.currency_id) currency_id, -- to fix cutover prob if mix £ and E then forces to E
           max(rt.currency_convertor_id) currency_convertor_id,
           sum(case when rtrt.TYP_MAIN_SUPPLY_FLAG = 1 then rt.TRANSACTION_QUANTITY ELSE 0 end) main_supply,
           sum(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.TRANSACTION_QUANTITY ELSE 0 end) -
           sum(case when rtrt.TYP_MAIN_SUPPLY_FLAG = 1 then rt.TRANSACTION_QUANTITY ELSE 0 end) extra_supply,
           sum(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.TRANSACTION_QUANTITY ELSE 0 end) SALES,
           sum(case when rtrt.TYP_RETURN_FLAG = 1 then rt.TRANSACTION_QUANTITY ELSE 0 end) RETURNS,
           sum(case when rtrt.TYP_CREDIT_FLAG = 1 then rt.TRANSACTION_QUANTITY ELSE 0 end) CREDITS,
           sum(case when rtrt.TYP_RETURN_FLAG = 1 AND c.day_dte < m.plis_recall_date then rt.TRANSACTION_QUANTITY ELSE 0 end) early_returns,
           sum(case when rtrt.TYP_CRD_MANAGER_CREDIT_FLAG = 1 then rt.TRANSACTION_QUANTITY ELSE 0 end) managers_credit_qty, -- TO CHECK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
          decode(sign(sum(case when rtrt.TYP_CREDIT_FLAG = 1 then rt.TRANSACTION_QUANTITY ELSE 0 end)),1,null,( case when sysdate < max(m.plis_claim_end_date) then 'P' ELSE 'Y' end )) sellout_type, -- null= not soldout, 'P'= potential sellout, 'Y'=Sellout (flag based on claim end date)
    -- retail
    sum(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.retail_value_excl_vat ELSE 0 end) retail_inv_val_excl_vat,
    sum(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.retail_value_vat ELSE 0 end)  retail_inv_val_vat,
    sum(case when rtrt.TYP_RETURN_FLAG = 1 then rt.retail_value_excl_vat ELSE 0 end)  retail_ret_val_excl_vat,
    sum(case when rtrt.TYP_RETURN_FLAG = 1 then rt.retail_value_vat ELSE 0 end)  retail_ret_val_vat,
    sum(case when rtrt.TYP_CREDIT_FLAG = 1 then rt.retail_value_excl_vat ELSE 0 end)  retail_crd_val_excl_vat,
    sum(case when rtrt.TYP_CREDIT_FLAG = 1 then rt.retail_value_vat ELSE 0 end)  retail_crd_val_vat,
    -- trade
    sum(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.trade_value_excl_vat ELSE 0 end)  trade_inv_val_excl_vat,
    sum(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.trade_value_vat ELSE 0 end)  trade_inv_val_vat,
    sum(case when rtrt.TYP_RETURN_FLAG = 1 then rt.trade_value_excl_vat ELSE 0 end)  trade_ret_val_excl_vat,
    sum(case when rtrt.TYP_RETURN_FLAG = 1 then rt.trade_value_vat ELSE 0 end)  trade_ret_val_vat,
    sum(case when rtrt.TYP_CREDIT_FLAG = 1 then rt.trade_value_excl_vat ELSE 0 end)  trade_crd_val_excl_vat,
    sum(case when rtrt.TYP_CREDIT_FLAG = 1 then rt.trade_value_vat ELSE 0 end)  trade_crd_val_vat,
    -- cost
    sum(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.cost_value_excl_vat ELSE 0 end)  cost_inv_val_excl_vat,
    sum(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.cost_value_vat ELSE 0 end)  cost_inv_val_vat,
    sum(case when rtrt.TYP_RETURN_FLAG = 1 then rt.cost_value_excl_vat ELSE 0 end)  cost_ret_val_excl_vat,
    sum(case when rtrt.TYP_RETURN_FLAG = 1 then rt.cost_value_vat ELSE 0 end)  cost_ret_val_vat,
    sum(case when rtrt.TYP_CREDIT_FLAG = 1 then rt.cost_value_excl_vat ELSE 0 end)  cost_crd_val_excl_vat,
    sum(case when rtrt.TYP_CREDIT_FLAG = 1 then rt.cost_value_vat ELSE 0 end)  cost_crd_val_vat,
         min(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.day_id ELSE null end) first_supply_day_id,
         max(case when rtrt.TYP_COPIES_INVOICED_FLAG = 1 then rt.day_id ELSE null end) last_supply_day_id,
         min(case when rtrt.TYP_RETURN_FLAG = 1 then rt.day_id ELSE null end) first_return_day_id,
         max(case when rtrt.TYP_RETURN_FLAG = 1 then rt.day_id ELSE null end) last_return_day_id
    FROM
      dw.MEDIA m,
      dw.RETAILER_TRN_REPORT_TYPE rtrt,
      dw.RETAILER_TRANSACTION partition (]'||p.partition_name||q'[) rt,
      dw.RETAILER r,
    --  dw.WHOLESALER w,
      dw.CALENDAR  c
    WHERE
    --rt.CUS_PLANT_ID=w.DIMENSION_KEY 
    --AND
      rt.OUTLET_ID=r.DIMENSION_KEY 
    AND  rt.PLANT_ISSUE_ID = m.DIMENSION_KEY 
    AND   rtrt.DIMENSION_KEY=rt.REPORTING_TRN_TYPE_ID 
    AND  rt.DAY_ID=c.DIMENSION_KEY 
    --and rt.partitioning_date = m.plis_partitioning_date
    -- and m.PLIS_HANDLED_YEAR = 2013--> 2011
    group by
      r.out_num,
      m.plis_issue_num]';
    EXECUTE IMMEDIATE(V_SQL);
    INSERT INTO RTRN_PART_SUM_AUDIT
    (PARTITION_NAME, DATE_CREATED)
    VALUES(P.PARTITION_NAME, SYSDATE);
    COMMIT;  
       end loop;
      

  • I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    You don't need to upgrade your software.  But if you're struggling with Spry, IMO you should cut your losses and switch to something better for the longrun.
    If you have a budget to work with, I highly recommend Project Seven's Pop-Menu Magic 3.  It's easy to use in DW CS4, 5, 6 or CC.  More importantly, it's bullet proof and works in all devices. 
    Pop-Menu  Magic3 by PVII (commercial DW extension)
    http://www.projectseven.com/products/menusystems/pmm3/index.htm
    If you don't have a budget to work with, you can roll your own menus with jQuery plugins.  A bit more effort on your part, but they perform better than Spry.
    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery MegaMenu2
    DEMO:
    http://www.geektantra.com/projects/jquery-megamenu-2/
    DOWNLOAD:
    http://code.google.com/p/jquery-megamenu/
    Nancy O.

  • Need help getting Tomcat 5.0.28 to start (and stop, eventually)

    Hi!
    I am such a newbie to the Terminal and writing scripts, so please forgive my naiveté. I have successfully installed Tomcat in my /usr/local directory, but I am having trouble creating files to start and stop Tomcat, per the instructions on the following page:
    http://developer.apple.com/internet/java/tomcat1.html
    I've followed the directions but continue to get the following error after I execute ~/bin/start_tomcat.
    -bash: start_tomcat: command not found
    My file contains the following code:
    #!/bin/sh /n
    export CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28 /n
    export JAVA_HOME=/usr /n
    $CATALINA_HOME/bin/startup.sh /n
    If anyone can help me, I would really, really, really appreciate it!
    Thanks!
    PowerBook G4 12"   Mac OS X (10.4.5)  

    Why are there all those "/n" there? Either you or the place you copied from has the wrong slash. But still, it's wronger than that to have them at all: "\n" means a newline (i.e., press "return") not the actual "backslash en" characters. Sometimes people post code with those \n visible: by making it explicit where a line-break should be, one doesn't have as much trouble when a web browser reformats the text and puts line breaks where they don't belong.

  • Report on active sync actions (like starting and stopping the sync)

    Is there a way to report on who stopped or started an active sync? I'm guessing it has to be stored somewhere, but I can't find it.
    Thanks!

    Hi Smit,
    I believe you are talking about FMS AWS instance and you may be using a centos 4.0.2 instance AMI or lower?
    Well ... earlier,  options for stopping a centos AWS image was not available, but recently they are there in place, so I suppose if you use a new centos 4.5.1 AMI then probably you can start stop the aws instance on yuor will. Give ut a shot and let me know.
    Regards,
    Shiraz Anwar
    I again cross-checked and found that you were right, start and stop is not supported there .... an alternative method is to take a snapshots of the runinng instnace and terminate that instance after that, later you can use your snapshot to attach to the EBS volume to run your system again. You may need to use the Elastic IP address, because you wont like your users to update each time you terminate the old instance, and create new instance from snapshot. I have never used it in this way, but this is one of the approach.

  • Music starts and stops during playback of burned DVD

    I really need help with this problem...I made a slideshow and added music from itunes in the program IDVD. Once I burned the DVD the music will start and stop throughout the DVD and not at chapters as I read in other threads - but in random places on the DVD. The DVD sounds like it gets hung up and then starts again. This is my first project using IDVD, so any help would be great.

    Debra,
    Do your project have music purchased from iTunes? If so, that could be the cause of this problem. Music from iTunes is DRM-protected and can cause problems in playback. To take care of this, first burn all of your purchased music to a CD, then reimport in an aiff format. To do this, in iTunes, go to iTunes>Preferences>Advanced>Importing. Look for "Import using", and use the drop-down menu to select AIFF encoder.
    Good luck.

  • In Month View, showing start and stop times for appointments

    Hi, I want to show both the start and stop times for all appointments in my iCal Month view and have not been able to figure out how to do that. Any suggestions? - Dave

    I would also like to know how to do this if possible. I want to print month-view schedules with start and end times for events. Thought I'd bump this up to see if anyone has any ideas.

  • Printing event start and stop times

    In month view, is there any way to have both the start and stop times for an event show when you print the calendar so you can see the duration of an event - thanks.

    You might be able to use this script to reset the start/stop times to zero.  Try with a small selection and see if it works for you.
    http://dougscripts.com/itunes/scripts/ss.php?sp=batchtrimtime

  • Adding Start and Stop characters to a text field???

    "For 1D bar codes, there are two options depending on the type of PDF form you want to use. Forms that you create in Acrobat (acroforms) can be set up to use a bar code font with a standard text field. If you want to include the standard start and stop character (*) and/or a check character, you can use JavaScript to add them. The check character would have to be calculated, but that can be easily done with JavaScript."
    How would i go about doing this. My current PDF form will pull a last name and first name onto the form in a Barcode format, but i need to add in *LNM to the start and another * at the end of the data that was pulled from a SQL data base.  example the pdf has a Text Feild named "borrower1_last_name" and that filed pulls the last name..  So i was thinking there should be an easy script like you said to add in to that feild properties.
    posting here now, becasue no one seems to be able to point me to the correct resourse on the reader forum.

    okay.. so now how do I change the space between the first name and middle inital (and even the last name) in that same field?
    something like this looks like it should work but doesnt seem to do anything.
    str.replace(/ /g, "_");
    // Add an asterisk to the beginning and end of the value
    if (event.value) event.value = "*FNM" + event.value + "*";
    //Replace black spaces with an Underscore
    str.replace(/ /g, "_");

Maybe you are looking for

  • Error while trying to post inbound idoc of message type COND_A

    Hi, I am getting error while trying to post inbound idoc of message type COND_A. If I left Usage & Condition field of segment E1KOMG then 'Table not available' idoc message is coming and if providing value in above fields then dump is coming. How to

  • XML Form Builder - XSL

    Hi, I am modifying the XSL of the application to validate the date field in the form builder. In the save button of the all the applications build through form builder, there are two javascripts .... One is javascript:HrefSubmit under attribute href

  • I accidentally deleted a history link that enables "friends" to be listed in Farmville. How can I get it back?

    I was deleting a link in the history list that enabled a specific gift claim in Farmville when I was installing Firefox 4. It apparently deleted the whole link for gifting and the listing of friends in Farmville and in Dragons of Atlantis. I cannot p

  • Connect to Airdisk from a PC outside my network?

    Title says it all. I can connect just fine to my APE's Airdisk from a PC while inside my network, but not from anywhere else. It just hangs there & finally says its not found. Macs from across the internet connect just fine only using the IP address

  • Unable to edit listener gateway settings

    I am unable to edit listener gateway settings. The response is you do not have enought privilages to perform this operation. I have tried using both dad_admin and sso_admin users both have failed. How should i proceed. Any help would be appreciated.