Count down timer not run in background

On my 1520, with 8.1, i tried many timer apps and found the timer function failed when running in background. The even happened to the app, SuperTimer, which claimed to have overcame the issue. In Supertimer the countdown lags and even stop at times depending on what other things I am running. Really disappointing. It appears to be an issue wth Windows OS that none of the app programmers could fix.
Disappointed
Solved!
Go to Solution.

Have you allowed the app to run in background in the battery saver settings?

Similar Messages

  • Count down time

    Can someone help me with a count down time.
    in 30 secs or so. It will alarm and stopped.
    can someone show me how to
    1. turn on alarm.
    2. stop alarm (automatically)
    and repeat count down till stop button is pushed.
    i am not too familiar with RUN COMMAND. how would i automatically tell it to stop alarming after it was turned on?
    Solved!
    Go to Solution.
    Attachments:
    Countdown with alarm.zip ‏29 KB

    ben64 wrote:
    Use a state machine architecture
    state 1: countdown (stop pressed T: stop, F: play alarm if countdown finished)
    state 2: play alarm  (stop pressed T: stop, F:countdown)
    state 3: stop
    To play the alarm use Play Sound File.vi from the Graphic and Sound palette (Sound - Output sub-palette). After this vi you can set another countdown for the duration of the alarm and then use the Sound Output Clear.vi to stop the alarm from playing.
    For the countdown you can also used the Elapsed TIme express vi. For the GUI to be responsive never set a large loop time wait, loop every 100ms and check if stop was pressed or time is elapsed.
    Ben64
    for more information see my tag "Grandma"
    Jeff

  • Count down Timer in jsp

    We are developing an Online Examination System. We are using jsp and servlets.
    We need a count down timer which will start as user starts the test. When user refreshes the page during test, timer should continue counting and must not reset the counter. At the end of the test it will submit automatically.
    Does jsp provide built in facility to manage timer?

    Does jsp provide built in facility to manage timer?There is no build in facility to manage timer, but all you have to do is track it at the server end.
    ie - not in javascript.
    Store a timestamp for the user for when they started the test. Either in session, or in a database.
    Then whenever they refresh their page, you look at the current time, the time they started the test and display the appropriate value.
    By all means you can have a javascript countdown on the page, but the authorative time should be on the server.

  • Uninterruptible count down timer!

    Hi
    I'm a newbe in Labview and I have the followning problem: When a event occurs a signal should should "stay high" for at least 30 sec.
    So I need an uninterruptible count down timer! - that is when an event accours (boolean true/false) a count down timer should start! and NOT stop even when the boolean changes!! I have tried different approaches! and I can figure out have to create a count down timer! but NOT one that keeps going when the boolean "changes back"?????  hope you know what I mean?

    SInce you say "for at least 30 sec", the precision does not seem too important and its not worth to spin fast loops.
    You could just grab the current millisecond, then in a leisurly loop check every 500ms or so if the elapsed time exceeeds your timeout.
    You could just set an occurence when the event occurs, then use "wait on occurence" with the desired time wired as timeout. Now just wait until it times out.
    Another possibility would be to use the timeout case of an event structure.
    LabVIEW Champion . Do more with less code and in less time .

  • Convert Spool to PDF and mail for the jobs not run in background.

    Dear All,
    I need to convert the spool job into pdf and mail as attachment for job not run in background.
    I am printing the bills  using the program  SD70AV3A to print the bills in a batch using the SUBMIT.
    But i am not using the spool options since its going to into waiting state in spool...and i need to change the printer properties to G
    to get the printer to print the reports as these jobs run in backgroud....but this solution is not acceptable solution.
    SUBMIT SD70AV3A
             WITH RG_KSCHL-LOW = 'ZRR'
             WITH RG_NACHA-LOW = '1'
             WITH PM_VERMO = '2'
             WITH PM_NSORT = '1'
             WITH RG_VBELN IN range.
    *        TO SAP-SPOOL
    *        SPOOL PARAMETERS print_parameters
    *        WITHOUT SPOOL DYNPRO
    *        VIA JOB name NUMBER number
    *        AND RETURN.
    so how do i get the spool number from the above after the job is submitted....and then convert into pdf and mail
    please suggest some solution. I have searched on net but most the solutions are say to run the job as background job...
    i have also looked into the program RSTXPDFT4 but it asks for the spool id ....how can i get spool id for the job that has been completed.
    please suggest some solution.
    Thanks
    Bhargava.

    Hi,
    Spool to PDF : FM 'CONVERT_ABAPSOOLJOB_2_PDF'
    Table TSP01 to get spool number
    You ,may need to convert OTF to PDF: FM CONVERT_OTF
    and the to binary : FM 'SMCS_XSTRING_TO_BINARY'
    To send mail use class: cl_document _bcs.
    Regards,
    Maria João Rocha

  • Not running in background

    How to check whether the pgm is running in background?
    I have a production Issue :
         A Z-Pgm is not running in background.

    Hello Madhu,
                       Check the background process in T-code SM50 and also you can check the Job log if you are running the program inside the job.
    Thanks,
    Greetson

  • Count Down Timer in Webdynpro

    Hello All,
    I am in need to implement a <b>count down timer</b> for an online application developed in Webdynpro. The count down timer logic is available as a java script file.
    Options tried out till now..
    1. Included the the html file with java script into src/mimes/components
    2. Create a IFrame and provide the src file as the html file.
    Works fine. But ...
    - The problem with this option is when any action happens (eg. a button click), the same refreshes the entire view that makes the timer to start from first.
    Does anybody have any alternative solutions to implement this functionality. Kindly reply.
    Thanks & Regards,
    Venkat.

    Venkat,
    Then it seems the scenario is possible without JS at all.
    1. Bind <b>delay</b> of <b>TimedTrigger</b> to read-only calculated context attribute of type <b>integer</b>, say its name is <i>Timeout</i>.
    2. Define private view controller variable startTime:
    //@@begin others
    private long startTime;
    //@@end
    3. In wdDoInit initialize this variable as:
    startTime = System.currentTimeMillis();
    4. In generated getter for <i>Timeout</i> attribute write the following:
    return Math.max(1, (int) ( ( System.currentTimeMillis() - startTime ) / 1000 - 7200));
    This way TimedTrigger delay will be updated after every client-server request, so even user hit some buttons or links, total delay will be approx. the same. The only way to stop this self-updating timer is to navigate away from view -- answer to questions andl click submit. Otherwise TimedTrigger will fire event.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Count Down Timer By Button Windows Phone 8.1 C#

    I want to click a button and have a textblock count down from for example 1 minute.

    This is a simple sample:
    xaml
    <Page
    x:Class="CountDownApp01.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:CountDownApp01"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Grid>
    <Grid.RowDefinitions >
    <RowDefinition Height="*"/>
    <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="48" x:Name="txt"/>
    <Button Grid.Row="1" Content="start" Click="Button_Click" x:Name="button"/>
    </Grid>
    </Page>
    C#
    namespace CountDownApp01
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
    private DispatcherTimer timer;
    private int basetime;
    public MainPage()
    this.InitializeComponent();
    this.NavigationCacheMode = NavigationCacheMode.Required;
    timer = new DispatcherTimer();
    timer.Interval = new TimeSpan(0, 0, 1);
    timer.Tick += timer_Tick;
    void timer_Tick(object sender, object e)
    basetime = basetime - 1;
    txt.Text = basetime.ToString();
    if (basetime ==0 )
    timer.Stop();
    button.IsEnabled = true;
    protected override void OnNavigatedTo(NavigationEventArgs e)
    private void Button_Click(object sender, RoutedEventArgs e)
    basetime = 60;
    button.IsEnabled = false;
    txt.Text = basetime.ToString();
    timer.Start();
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • [SOLVED]Can Some Processes Not Run In Background

    Hi,
    Can some process just not run in the background? I have an irc bot and I want irssi to continue running even after I exit. I do
    $irssi
    ctrl-z
    bg
    But after bg it says
    [1] irssi &
    [1] irssi STOPPED
    I've also tried sending the kill CONT signal but it just always stops. Is there another way I should do it for this type of process? Thanks!
    Last edited by Prototype (2014-02-09 03:42:08)

    karol wrote:If you're asking how to background irssi, read http://www.hants.lug.org.uk/wiki/LinuxHints/Screen http://tmux.sourceforge.net/
    Is there no way to run irssi in the background (disowned) with just the built in bash commands? My main goal is to have it running (with me logged into servers) when I exit the terminal.
    Last edited by Prototype (2014-02-09 03:26:24)

  • Not running in background mode 'N'

    hi experts,,,,,
    i have a  small issues in my BDC
    where i face problem when running in background
    if i update in 'A' mode its get updated
    whereas in background 'N' mode it doesnt take the changes
    and CHANGES NOT  GETTING REFLECTED/...
    can you pls help me out
    thanks in advance
    Rachel
    piece of my code as follows...
    ============================
    LOOP AT it_final INTO wa_final.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '1000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'RISA0-SERNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '/00'.
        PERFORM bdc_field       USING 'RISA0-MATNR'   wa_final-matnr.
        PERFORM bdc_field       USING 'RISA0-SERNR'   wa_final-sernr_in.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=EQUI'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'ITOB-CHARGE'.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=T\01'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'EQBS-B_LAGER'.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'ITOB-SERGE'.
    if p_unpair is  initial .
        PERFORM bdc_field       USING 'ITOB-HERST'    wa_final-manf.
    *    PERFORM bdc_field       USING 'ITOB-TYPBZ'    wa_final-part.
        PERFORM bdc_field       USING 'ITOB-TYPBZ'    wa_final-model.
        PERFORM bdc_field       USING 'ITOB-MAPAR'    wa_final-part.
        PERFORM bdc_field       USING 'ITOB-SERGE'    wa_final-man_ser.
        PERFORM bdc_field       USING 'ITOB-HERLD'    wa_final-country.
        PERFORM bdc_field       USING 'ITOB-BAUJJ'    wa_final-year.
        PERFORM bdc_field       USING 'ITOB-BAUMM'    wa_final-month.
    else .
        PERFORM bdc_field       USING 'ITOB-SERGE'    ''.
    endif.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=BU'.
        CALL TRANSACTION 'IQ02' USING bdcdat
                               MODE pr_mode UPDATE 'A'
                               MESSAGES INTO it_messtab.
        CLEAR: bdcdat[], bdcdat.
        CLEAR: wa_final, wa_messtab.
      ENDLOOP .
    end-of-selection .

    Hi Rachel..
    While running the BDC in 'A' Mode check the message that come in the status bar. There could be any screen where just becuase u press enter it is going to the next screen. That is because of your intercation.
    But in the case of background this is not hapening and it fails..
    So make sure whether when u run in foreground you are pressing any additional enter which is not in your recording. This could be the only problem why it is not updating in background.
    Another reson could be that you dont have access to back ground jobs. Check that also..
    Regards
    Ansari

  • Count Down Time Zone?

    Hey all, i have come to this fourm a few times and every time
    i posted help i got it and i got the right help to. So here i am
    back again. Now here my problem. i made this count down for a
    certain event. (yes i got help from someone) and it works fine i
    made all the images it works great,,,so i though then i thought id
    experament. So i changed my computers time zone and guess what. The
    Time changed on the count down. Can i make my count down'er', count
    down from a specific time zone so it will count down and be the
    same for everyone? so no matter what time zone you have it will
    ONLY be for a certain type of time zone? Heres my Count down so
    far;
    http://snro.ifastnet.com/wipe.html
    And heres the script i have for my count down. Can someone
    give me a better code, so it will keep my counter the exact same
    just make it count down from only 1 specific Time zone? (AS below)
    quote:
    stop();
    currentDate = new Date();
    thisYear = currentDate.getFullYear();
    // Date( year, month-1, date [, hour [, minute [, second [,
    millisecond]]]])
    eventDate = new Date(thisYear, 9, 28, 12);
    eventMillisecs = eventDate.getTime();
    counter.onEnterFrame = function(){
    currentDate = new Date();
    currentMillisecs = currentDate.getTime();
    this.msecs = eventMillisecs - currentMillisecs;
    if (this.msecs <= 0){
    play();
    return;
    this.secs = Math.floor(this.msecs/1000);
    this.mins = Math.floor(this.secs/60);
    this.hours = Math.floor(this.mins/60);
    this.days = Math.floor(this.hours/24);
    this.msecs = string(this.msecs % 1000);
    this.secs = string(this.secs % 60);
    this.mins = string(this.mins % 60);
    this.hours = string(this.hours % 24);
    this.days = string(this.days);
    while (this.msecs.length < 3) this.msecs = "0" +
    this.msecs;
    if (this.secs.length < 2) this.secs = "0" + this.secs;
    if (this.mins.length < 2) this.mins = "0" + this.mins;
    if (this.hours.length < 2) this.hours = "0" + this.hours;
    while (this.days.length < 3) this.days = "0" + this.days;
    for(movie in this){
    if (this[movie]._parent == this)
    this[movie].evaluateFrameFrom(this);
    MovieClip.prototype.evaluateFrameFrom =
    function(variableClip){
    var nameArray = this._name.split("_");
    var numberSet = variableClip[nameArray[0]];
    var character = number(nameArray[1]);
    var frame = 1 + number(numberSet.charAt(character));
    if (this._currentframe != frame) this.gotoAndStop(frame);
    Thanks!
    Edit** If you can the time zone i need it clocked to is
    (GMT-06:00) Central Time (US & Canada)

    "Pitchsole" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hey all, i have come to this fourm a few times and every
    time i posted
    > help i
    > got it and i got the right help to. So here i am back
    again. Now here my
    > problem. i made this count down for a certain event.
    (yes i got help from
    > someone) and it works fine i made all the images it
    works great,,,so i
    > though
    > then i thought id experament. So i changed my computers
    time zone and
    > guess
    > what. The Time changed on the count down. Can i make my
    count down'er',
    > count
    > down from a specific time zone so it will count down and
    be the same for
    > everyone? so no matter what time zone you have it will
    ONLY be for a
    > certain
    > type of time zone? Heres my Count down so far;
    >
    >
    http://snro.ifastnet.com/wipe.html
    >
    > And heres the script i have for my count down. Can
    someone give me a
    > better
    > code, so it will keep my counter the exact same just
    make it count down
    > from
    > only 1 specific Time zone? (AS below)
    >
    >
    quote:
    stop();
    >
    > currentDate = new Date();
    > thisYear = currentDate.getFullYear();
    >
    > // Date( year, month-1, date [, hour [, minute [, second
    > millisecond]]]])
    > eventDate = new Date(thisYear, 9, 28, 12);
    > eventMillisecs = eventDate.getTime();
    >
    > counter.onEnterFrame = function(){
    > currentDate = new Date();
    > currentMillisecs = currentDate.getTime();
    > this.msecs = eventMillisecs - currentMillisecs;
    > if (this.msecs <= 0){
    > play();
    > return;
    > }
    > this.secs = Math.floor(this.msecs/1000);
    > this.mins = Math.floor(this.secs/60);
    > this.hours = Math.floor(this.mins/60);
    > this.days = Math.floor(this.hours/24);
    > this.msecs = string(this.msecs % 1000);
    > this.secs = string(this.secs % 60);
    > this.mins = string(this.mins % 60);
    > this.hours = string(this.hours % 24);
    > this.days = string(this.days);
    >
    > while (this.msecs.length < 3) this.msecs = "0" +
    this.msecs;
    > if (this.secs.length < 2) this.secs = "0" +
    this.secs;
    > if (this.mins.length < 2) this.mins = "0" +
    this.mins;
    > if (this.hours.length < 2) this.hours = "0" +
    this.hours;
    > while (this.days.length < 3) this.days = "0" +
    this.days;
    >
    > for(movie in this){
    > if (this[movie]._parent == this)
    this[movie].evaluateFrameFrom(this);
    > }
    > };
    >
    > MovieClip.prototype.evaluateFrameFrom =
    function(variableClip){
    > var nameArray = this._name.split("_");
    > var numberSet = variableClip[nameArray[0]];
    > var character = number(nameArray[1]);
    > var frame = 1 + number(numberSet.charAt(character));
    > if (this._currentframe != frame)
    this.gotoAndStop(frame);
    > };
    >
    > Thanks!
    >
    To let you be the one to further experiment I will point you
    in the right
    direction.
    http://www.adobe.com/livedocs/flashlite/2/main/wwhelp/wwhimpl/common/html/wwhelp.htm?conte xt=LiveDocs_Parts&file=00000468.html
    Use GMT as your main reference for everyone, then offeset
    that time to your
    timezone.

  • OpenVPN - up/down scripts not run correctly

    Hi,
    I have a OpenVPN client on my computer which connects to a remote server at startup (launched by systemd). The connection i primarily used to set up a network drive. To make this process as smooth as possible I'm trying to mount with an up script and unmount with an down script. This is my config:
    client
    dev tun
    proto udp
    remote site.xxx 1194
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    ca site.crt
    cert site.crt
    key site.key
    comp-lzo
    verb 3
    reneg-sec 0
    script-security 3
    route-up /etc/openvpn/up.sh
    route-pre-down /etc/openvpn/down.sh
    (last two lines)
    In theory, up.sh should execute when the connection is initialized and the routes are in place. And down.sh should run when the connection is still active just before the routes are removed. This seems to be the case in the log:
    Sat Mar 22 08:37:50 2014 OpenVPN 2.3.2 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Nov 13 2013
    Sat Mar 22 08:37:50 2014 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
    Sat Mar 22 08:37:50 2014 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
    Sat Mar 22 08:37:50 2014 WARNING: file 'site.key' is group or others accessible
    Sat Mar 22 08:37:50 2014 Socket Buffers: R=[212992->131072] S=[212992->131072]
    Sat Mar 22 08:37:50 2014 UDPv4 link local: [undef]
    Sat Mar 22 08:37:50 2014 UDPv4 link remote: [AF_INET]xxx:1194
    Sat Mar 22 08:37:50 2014 TLS: Initial packet from [AF_INET]xxx:1194, sid=cc55bb26 51a6f522
    Sat Mar 22 08:37:50 2014 VERIFY OK: depth=1, C=SE, ST=Stockholm, L=Stockholm, O=xxx, CN=xxx CA, emailAddress=xxx
    Sat Mar 22 08:37:50 2014 VERIFY OK: depth=0, C=SE, ST=Stockholm, L=Stockholm, O=xxx, CN=xxx, emailAddress=xxx
    Sat Mar 22 08:37:50 2014 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
    Sat Mar 22 08:37:50 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
    Sat Mar 22 08:37:50 2014 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
    Sat Mar 22 08:37:50 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
    Sat Mar 22 08:37:50 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
    Sat Mar 22 08:37:50 2014 [xxx] Peer Connection Initiated with [AF_INET]xxx:1194
    Sat Mar 22 08:37:52 2014 SENT CONTROL [xxx]: 'PUSH_REQUEST' (status=1)
    Sat Mar 22 08:37:52 2014 PUSH: Received control message: 'PUSH_REPLY,route xxx 255.255.255.0,route xxx 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig xxx xxx'
    Sat Mar 22 08:37:52 2014 OPTIONS IMPORT: timers and/or timeouts modified
    Sat Mar 22 08:37:52 2014 OPTIONS IMPORT: --ifconfig/up options modified
    Sat Mar 22 08:37:52 2014 OPTIONS IMPORT: route options modified
    Sat Mar 22 08:37:52 2014 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 IFACE=eth0 HWADDR=ec:a8:6b:ff:de:31
    Sat Mar 22 08:37:52 2014 TUN/TAP device tun0 opened
    Sat Mar 22 08:37:52 2014 TUN/TAP TX queue length set to 100
    Sat Mar 22 08:37:52 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
    Sat Mar 22 08:37:52 2014 /usr/bin/ip link set dev tun0 up mtu 1500
    Sat Mar 22 08:37:52 2014 /usr/bin/ip addr add dev tun0 local xxxpeer xxx
    Sat Mar 22 08:37:52 2014 /usr/bin/ip route add xxx via xxx
    Sat Mar 22 08:37:52 2014 /usr/bin/ip route add xxx via xxx
    Mounting network drives...
    mount error(115): Operation now in progress
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    mount error(115): Operation now in progress
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    Sat Mar 22 08:38:12 2014 Initialization Sequence Completed
    ^CSat Mar 22 08:38:18 2014 event_wait : Interrupted system call (code=4)
    Sat Mar 22 08:38:18 2014 /etc/openvpn/down.sh tun0 1500 1542 xxx xxx init
    Unmounting network drives...
    Sat Mar 22 08:40:22 2014 /usr/bin/ip route del xxx
    Sat Mar 22 08:40:22 2014 /usr/bin/ip route del xxx
    Sat Mar 22 08:40:22 2014 Closing TUN/TAP interface
    Sat Mar 22 08:40:22 2014 /usr/bin/ip addr del dev tun0 local xxx peer xxx
    Sat Mar 22 08:40:22 2014 SIGINT[hard,] received, process exiting
    But here's the problem. The up script will not mount because it doesn't seem to be able to reach the network. The routes ARE there (checked via netstat -rn in the up script) but it will not work. It works perfectly if I run the script maually diretly after OpenVPN is done. And the down script (which unmounts the drives) just hangs because the connections seems to be interrupted.
    So, how can make it work so that mount and umount is handled by OpenVPN? Am i missing something?

    Managed to get around the problem using systemd:
    [Unit]
    Description=OpenVPN connection to %i
    [Service]
    Type=forking
    ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i
    ExecStartPost=/root/scripts/mount.sh
    ExecStop=/root/scripts/umount.sh
    [Install]
    WantedBy=multi-user.target
    ...but I think it's cleaner to do it in the openVPN config, so I still like some help there :-)
    Last edited by twarkie (2014-03-22 15:37:49)

  • Count down timer

    I need some help. I have a web site that till tell the blight
    of cats and
    dogs in shelter and rescues that have a short time to live
    before they are
    put down to make room for other stray pets.
    I need a dynamic countdown timer in black with white numbers
    that countdown
    days, hours, and minutes (possibly seconds for dramatic
    effect). Anywhere I
    can find such a movie? I found a bunch of cheesy ones online
    and a bunch
    that do way too much.
    When the rescue or shelter moves the pet to LCP status, they
    will enter a
    date into the database. I need the time to use that as the
    starting point
    and count down till that date and time arrives. I am using
    coldfusion as the
    dev coding for the site.
    Please let me know where I can find such a movie or how much
    it will cost to
    have one done.
    Thanks.

    I did a search on FlashKit for you...take a look at:
    http://www.flashkit.com/search.php?term=countdown+timer&cat=movies&version=--&per=10&field =Description&orderby=Rating&andor=or&page=1&submit=Submit
    Hope this helps ;)

  • Timer not running...

    Please could someone assist me as to why this timer is not running. I've tried using the javax.Timer method and am now using the Thread which implements the Runnable interface.
    public class superMarketRun
         public static void main(String [] args)
              superMarket sm = new superMarket();
              //sm.startSim();
    }The above start initializes the superMarket object which holds the timer. This is a console program.
    import java.awt.event.*;
    public class superMarket implements Runnable
         private Thread      mainThread;
         private final int     DELAY = 20;
         public superMarket()
              System.out.println("Initializing supermarket...");
              // organise the thread
              mainThread = null;
              start();
         public void start()
              System.out.println("Starting sim...");
              // organise the thread
              if(mainThread == null)
                   mainThread = new Thread(this);
         public void stop()
              mainThread = null;
         public void run()
              Thread myThread = Thread.currentThread();
              while(mainThread == myThread)
                   try {
                        System.out.println("debug");
                        mainThread.sleep(DELAY);
                   catch(InterruptedException e){}
    }I really have no clue why it works. The output I get is:
    Initializing supermarket...
    Starting sim...
    Press any key to continue...In other words the thread is not running as the output "debug" is not being shown.
    Any assistance would be greatly appreciated.

    I think you should scrap this code and start over with something that just demonstrates the basics. I have a bad feeling about why you implemented start and stop. I also don't like that you used a Swing component instead of java.util.Timer.
    Compile and run the following.
    public class Test implements Runnable{
      private int delay;
      private boolean stayalive;
      public static void main(String args[])throws Exception{
        Test t = new Test();
        Thread myThread = new Thread(t);
        myThread.start();
        for(int i=0;i<5;i++){
          System.out.println("Hello from main thread!");
          Thread.currentThread().sleep(500);
        System.out.println("Main STOPPING test!");
        t.kill();
        for(int i=0;i<5;i++){
          System.out.println("Hello again from main thread!");
          Thread.currentThread().sleep(500);
        System.out.println("Bye from main thread!");
      public Test(){
        this.delay = 1000;
        this.stayalive = true;
      public void kill(){
        this.stayalive = false;     
      public void run(){
        while(this.stayalive){
          System.out.println("Hello from TEST thread!");          
          try{
            Thread.currentThread().sleep(delay);
          }catch(InterruptedException e){
        System.out.println("Bye from TEST thread!");
    }

  • I ignored a message saying I was the millionth visitor. Was this wise? The message gave a long code, two telephone numbers (one in Paris) and a count-down time limit. It was this that made me suspicious.

    A few days ago I received a message saying I was the millionth visitor and had won a prize which included money and a disneyland visit. I was given a long code, two telephone numbers (one in Paris) and a timed count-down of a few seconds (when I picked up the message). This made me suspicious and I ignored the whole thing. Was this wise?

    Yes, ignoring a message like that was wise.
    Maybe you are interested in a deal on real estate in southern Florida, like about halfway between Naples and Fort Lauderdale just south of I-75?

Maybe you are looking for

  • No connection between iphone 4s and car-adapter

    Hello, Have a question to iphone 4s in connection with my car - adapter for Volkswagen (Adapter-Article.No. 3C005143CD) My phone, updated to 5.1.1 (9B206) and since then is that impossible for bluethoth-connection. Is that correct or anyone to find a

  • Images in Vision Assistant are distorted from a FLIR thermo camera

    I'm trying to view my FLIR A315 in Vision Assistant and MAX (not at the same time), but the images keep coming up distorted.  I can tell there is data being sent, because the histogram shows info and if I mess around with the Attributes I can clear t

  • FM not working

    Hi Friends - I am using FM HR_MAINTAIN_MASTERDATA for creating action one action  in PA40 tcode which covers 0000, 0001 ,00002 and few more but immid after filling 0001 data and save it gives me error 0003 is not created for this employees and come o

  • Oracle 10G Best practice Installation

    Hi all, Somebody will have a document of like doing Oracle 10G tuning in Solaris 10? Thanks

  • Firewall. I'm looking for one that auto-configures my installed progs

    Hello pals. How I've said before, I'm newbie on arch. On other distros, some firewalls bring pré-configurated rules to the 'comon programs', thing that arch doesn't. In a way it's good, but, on "my way" not. I need a program, or a way, that I feel my