Max Steps Excuted

On CCX 8, I have a script that presents the caller with an option to schedule a callback.  This initates a separate script which request the caller enters a desire number for the call back and to leave a message associated with the call back. (pretty much from the sample repository)  It then waits for an agent to become available.  Currently, it reaches the Max steps Excutable at about 4.5 hours.
Any ideas as to how I can get this not to reach the maximum limit?

What is it doing for 4.5 hours?  And why are your Agents not available for 4.5 hours?\
You have two scripts involved in the 4.5 hours though correct?  The calling and the called scripts?
Called Script Solution
Use the delay step in a separate callback queue script.  There is no documented maximum, and you would realistically only need to set to the max call duration define in CUCM anyway.  Which is 12 hours be default, or 43200 seconds.
This parameter specifies the minutes that a call can remain active before Cisco CallManager clears it. A value of zero disables the timer.       This is a required field.       Default:  720       Minimum:  0       Maximum:  35791       Unit: min
Calling Script Solution
Use the place call hold step in the calling script, so when the agent answers and hears your customized MOH that says, "press any key to listen to the callback message" they can press a key, and the script takes them off hold, then plays the message.  As for the pressing a key part, use a get digit string step with a prompt of DP[43200000], which is a delay for 12 hours.  You have to do it this way since there is an imposed limit on the timeout value you can supply:  8 seconds, and the retries: 5 times, for a total of 48 seconds.
I have never tried this, I just thought it up as I read your post.  So give it a try and report back, that way we can know if it worked or not.

Similar Messages

  • Get current step number and handling max steps exceptions

    We are using IPCC Express Premium 4.0.4 and would like to know:
    1. Is it possible to determine the execution number for the current step? For example, x number of steps have been executed up until a certain point in the script. Possibly via a Set step using Java or a DB Read step?
    2. When the system parameter "Max Number of Executed Steps" limit has been reached the exception "com.cisco.wfframework.obj.WFMaxExecutedStepsExceededException" exists within the CRS Engine MIVR log. This exception does not exist within the available exceptions list in the "On Exception Goto" step. Is there a way that we can intercept this specific exception or will we have to use the "com.cisco.app.ApplicationTaskInactiveException" exception instead?
    We have been experiencing stuck Reserved agents and periodic callers stuck in queues, which has been occurring due to the maximum number of executed steps being exceeded. We have increased our "Max Number of Executed Steps" parameter from 1,000 to 2,500 for the time being and we may need that higher still.
    Our script has a lot going on after every 30secs of hold music....to determine if notification pages/emails need to be sent out to Help Desk staff due to long wait times, or to play updated status prompts only when appropriate....to name a couple. To our knowledge we have made things as efficient as possible (using Sessions) and we will be making a few more tweaks, but nowhere near enough to stay under the default 1,000 limit.
    I asked question # 1 to help us better assess what our step execution counts are for different logic scenarios, rather than manually trying to count the steps within our script. I asked question # 2 so that we can send pages/emails to ourselves if a WFMaxExecutedStepsExceededException exception does occur and include the phone number of the caller who would have ended up not getting through so we can call them back not long after.
    Thank you for any info you can provide!
    Tom

    I'll try and answer the issues in this thread in turn:
    "1. Is it possible to determine the execution number for the current step? For example, x number of steps have been executed up until a certain point in the script. Possibly via a Set step using Java or a DB Read step?
    2. When the system parameter "Max Number of Executed Steps" limit has been reached the exception "com.cisco.wfframework.obj.WFMaxExecutedStepsExceededException" exists within the CRS Engine MIVR log. This exception does not exist within the available exceptions list in the "On Exception Goto" step. Is there a way that we can intercept this specific exception or will we have to use the "com.cisco.app.ApplicationTaskInactiveException" exception instead? "
    ----->Sadly this is not in the On Exception Goto step. Several people have commented on this to Cisco and I would recommend you join the crowd. Talk to your Cisco Account Manager. If you are a partner, submit a well thought out request to [email protected].
    "Our script has a lot going on after every 30secs of hold music....to determine if notification pages/emails need to be sent out to Help Desk staff due to long wait times, or to play updated status prompts only when appropriate....to name a couple. To our knowledge we have made things as efficient as possible (using Sessions) and we will be making a few more tweaks, but nowhere near enough to stay under the default 1,000 limit. "
    ----->You should be using sub flows for this type of work. Sub flows are a separate script and as such, have their own maximum step count each time you call them. Put all of this extra logic into a separate script and call it each iteration through the queued loop.
    "In most of the cases,you should not hit the 1000 step limit unless there's a loop in the script."
    ----->Exceeding this is not recommended by Cisco as it increases the amount of memory being used by each script instance. I would proceed with a great deal of caution.
    "I want to check to see if the caller pressed 1 (to leave a message type functionality) anytime during the queue loop. Not just when a delay expires and a prompt is played. This easily exceeds the default max steps. "
    ----->The common way of doing this is uploading a WAV of your music on hold to the prompt repository and then using a Get Digit String step with the MoH WAV file as the prompt for it. This allows the caller to press it at the IVR is essentially always waiting for a DTMF digit. You can use Match or If statements within the Success branch to determine if they pressed the correct digit.
    "Where I can make the max steps very large ?
    I am using CRA3.5.
    Please help ASAP,
    Thanks"
    ----->Again, not recommended! You can almost certainly break your script into appropriate functional components and use subflows to drastically reduce the likelihood of hitting the maximum.

  • Workflow step not executed...

    Hi,
    In my workflow requirement (for VA01), I want to record the status in a custom table as follows;
    Approver id     date   time    status
    ABC                                     Submitted for approval
    ABC                                     Approved (or) Rejected
    So I have created a step called 'update custom status' after the step that sends email to the approver agent whose details stored in another custom table. Then I associated a task with this step which is bound to a custom class / method which has the logic to write the status to the custom table.
    The issue is I do not see this step excuted. I checked in the log.
    What can be wrong ?
    Workflow steps are as follows;
    1. Read the document's net value and store in a variable.
    2. Read the custom table for agents list to whom the doc has to be sent for approval.
    3. Send email for approval.
    4. update custom status.
    In the graphical view, I can see the update custom status step being called (Green link from previous step to this step) but after that no progress.
    Am I missing passing some values ? Or is this step not giving any results ? Whats happening ?
    Details on this update custom status step are as follows;
    A custom task with terminating event set as _WORKITEM defined. (not synchronous)
    A step of type activity defined and bound to the above task with binding done.. (what values should I pass to record the above needed details.)
    In other words, how can I record the status in my custom table ?
    thnks

    Hi
    I think its a background step. If yes, then make it foreground and debug and see what is the problem. Also check for short dumps and turn on the event trace and see the terminating event is getting triggered.
    Vinoth

  • How can i READ Steps / Revolution

    I'd like to READ the predefined (in MAX) "Steps per Revolution" (depending on the Board ID and Axes). Is this not possible?
    I am using LabView 8.5 with NI-Motion-VIs, where just a LOAD "Steps per Revolution" is available.
    Solved!
    Go to Solution.

    The NI-Motion API doesn't provide an option to read this value. If you want to have complete control about your motion settings in your application, you should consider loading them in your application.
    Kind regards,
    Jochen Klier
    National Instruments

  • Get a Step Count From Inside Your Script

    I've increased my Max Steps to 1500, so that I could do more inside my scripts.  But I would like to be able to know what the current step count is, anyone know of a way of getting this info from inside the script.              

    Hi Bill
    I've never found a way. I usually bump up the step limit, it's a loop prevention mechanism so as long as you are careful with your scripting it shouldn't be an issue to raise it further if you are concerned you might go near the limit.
    Aaron

  • JSpinner min/max limits

    Hi, I have a spinner issue. I have set the min, max, & step size on a SpinnerNumberModel for my spinner. Now I want to turn the spinner textfield red when a user enters a value lower then the min and greater then the max. Various listeners on the spinner, model, textfield, etc aren't registering when the user enters an invalid number, only when there is a valid entry.
    Any ideas would be appreciated! Thanks.

    Found a solution:
    On the JFormattedTextField of the spinner, I added a custom InputVerifier that overwrote the verify() method.
    class SpinnerDataInputVerifier extends InputVerifier {
        protected final UpdateStatusSpinner m_spinner;
        public SpinnerDataInputVerifier(UpdateStatusSpinner spinner)
            m_spinner = spinner;
        public boolean verify(JComponent input)
            boolean isValid = false;
             if (input instanceof JFormattedTextField)
                 JFormattedTextField ftf = (JFormattedTextField)input;
                 AbstractFormatter formatter = ftf.getFormatter();
                 if (formatter != null)
                     String text = ftf.getText();
                     try
                          formatter.stringToValue(text);
                          isValid = true;
                          m_spinner.isUserEditValid(isValid);
                     catch (ParseException pe)
                         ftf.setBackground(Color.red);
                          isValid = false;
                          m_spinner.isUserEditValid(isValid);
              return isValid;
        @Override
        public boolean shouldYieldFocus(JComponent input)
            return verify(input);
        }

  • Script hangs on menu step

    I've got a rather large script, but having trouble with one new section.  We calculate the expected wait time, create a variable for a prompt to play a specific announcement, and offer voicemail (press 1).  If they don't press 1, back on hold, wait X seconds, repeat, etc.
    It loops through just fine about 30 times, but then it hangs on the Menu step.  No prompts, no hold music.  Doing a debug, you see it just stop on the Menu object.  No errors show up in the debug output.
    We shouldn't be hitting the global max steps (it would terminate in that case right?).  Is there some other counter that could be hanging?
    UCCX 8.0(2) SU2.
    Thanks for looking...
    Tom

    We found the problem.  We tried changing the max steps to 2000, and it exhibited the same behavior at the same point.  It would loop through a few times, but always stop at this Menu step (even through it had previously looped through fine).
    So in testing I re-created another UCCX Application, same script.  I couldn't reproduce the problem on this application, but I could on my original.  So I started to focus on the trigger.  Turns out my production trigger had
    Override Media Termination = YES.  That worked fine for all our other applications.  But for this particular one it was causing a problem.  Setting Override Media Termination = NO fixes the problem. 
    I opened a TAC case and they confirmed the expected behavior should be the same either way.  So this may be a defect.  But because we're running an old version they didn't want to investigate a defect without upgrading first -- which is on our radar but not right now.  So the workaround is fine. 

  • How to set numeric filter for JSpinner?

    Hi there,
    I searched the forum but can't find a solution...I'm kind of getting mad!
    Problem is: I have a JSpinner, I must prevent the user to insert any non-numeric value. the accepted input should be in the form <n>.<m>
    where n could be any integer number, m is OPTIONAL and could be a single digit number. Example: 150.2 or 41 or 7.1 etc.
    I set a DocumentFilter on the editor of JSpinner, overriding replace method. Problem is replace method is never called so my filter is not applied and the user is allowed to insert whatever he wants, characters included.
    Here's my code (sorry for the horrible gui, but it's just for some testing.):
    import java.awt.Dimension;
    import java.util.regex.Pattern;
    import javax.swing.JFrame;
    import javax.swing.JSpinner;
    import javax.swing.JTextField;
    import javax.swing.SpinnerNumberModel;
    import javax.swing.JSpinner.NumberEditor;
    import javax.swing.text.AbstractDocument;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.DocumentFilter;
    public class SpinnerTry {
         public final static String REGEX_DOUBLE_NUMBER = "^([0-9]+)(\\.(\\d{1})?)?$";
         private static final Double MIN_PW = 12.0;
         private static final Double MAX_PW = 19.0;
         private static final Double DEFAULT = 15.0;
         private static final Double STEP = 1.00;
         private static final SpinnerNumberModel model = new SpinnerNumberModel(
                   DEFAULT, // initial value
                   MIN_PW, // min
                   MAX_PW, // max
                   STEP);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JSpinner spinner = new JSpinner(model);
              spinner.setPreferredSize(new Dimension(50, 15));
              NumberEditor edit = new NumberEditor(spinner, "#######.#");
              spinner.setEditor(edit);
              JTextField textField = ((JSpinner.DefaultEditor) spinner.getEditor()).getTextField();
              ((AbstractDocument) textField.getDocument()).setDocumentFilter(new MyDocumentFilter());
              frame.getContentPane().add(spinner);
              frame.setSize(new Dimension(200, 200));
              frame.setVisible(true);
         static class MyDocumentFilter extends DocumentFilter {
              public void replace(FilterBypass fb, int offset, int length, String text,
                        AttributeSet attrs) throws BadLocationException {
                   System.out.println("Called replace");
                   String mytext = fb.getDocument().getText(0, offset);
                   mytext += text;
                   if (fb.getDocument().getLength() - 1 > offset) {
                        mytext += fb.getDocument().getText(offset + 1,
                                  fb.getDocument().getLength() - offset);
                   boolean ok = true;
                   ok = Pattern.matches(REGEX_DOUBLE_NUMBER, mytext);
                   if (ok)
                        super.replace(fb, offset, length, text, attrs);
              public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr)
                        throws BadLocationException {
                   if (Pattern.matches(REGEX_DOUBLE_NUMBER, string)) {
                        super.insertString(fb, offset, string, attr);
    }Why replace method is not called when inserting somethig into the spinner text field?
    Thanks a lot in advance.
    Paul
    Edited by: the.paul on Jul 27, 2010 1:11 AM

    I found a solution, got inspiration from [http://forums.sun.com/thread.jspa?forumID=57&threadID=5424330] .
    Code:
    import java.awt.Dimension;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    import java.util.regex.Pattern;
    import javax.swing.JFrame;
    import javax.swing.JSpinner;
    import javax.swing.SpinnerNumberModel;
    import javax.swing.JSpinner.NumberEditor;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.DefaultFormatterFactory;
    import javax.swing.text.DocumentFilter;
    import javax.swing.text.NumberFormatter;
    public class SpinnerTry {
         public final static String REGEX_DOUBLE_NUMBER = "^([0-9]+)(\\.(\\d{1})?)?$";
         private static final Double MIN_PW = 12.0;
         private static final Double MAX_PW = 19.0;
         private static final Double DEFAULT = 15.0;
         private static final Double STEP = 1.00;
         private static final SpinnerNumberModel model = new SpinnerNumberModel(
                   DEFAULT, // initial value
                   MIN_PW, // min
                   MAX_PW, // max
                   STEP);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JSpinner spinner = new JSpinner(model);
              spinner.setPreferredSize(new Dimension(50, 15));
              String decimalFormatPattern = "#######.#";
              NumberEditor edit = new NumberEditor(spinner);
              spinner.setEditor(edit);
              ((NumberEditor) spinner.getEditor()).getTextField().setFormatterFactory(
                    new DefaultFormatterFactory(new MyListFormatter(model, new DecimalFormat(decimalFormatPattern))));
              frame.getContentPane().add(spinner);
              frame.setSize(new Dimension(200, 200));
              frame.setVisible(true);
         static class MyListFormatter extends NumberFormatter {
              private static final long serialVersionUID = -790552903800038787L;
              private final SpinnerNumberModel model;
              private DocumentFilter filter;
              MyListFormatter(SpinnerNumberModel model, NumberFormat format) {
                   super(format);
                   this.model = model;
                   setValueClass(model.getValue().getClass());
              public void setMinimum(Comparable min) {
                   model.setMinimum(min);
              public Comparable getMinimum() {
                   return model.getMinimum();
              public void setMaximum(Comparable max) {
                   model.setMaximum(max);
              public Comparable getMaximum() {
                   return model.getMaximum();
              protected DocumentFilter getDocumentFilter() {
                   if (filter == null) {
                        filter = new MyDocumentFilter();
                   return filter;
         static class MyDocumentFilter extends DocumentFilter {
              public void replace(FilterBypass fb, int offset, int length, String text,
                        AttributeSet attrs) throws BadLocationException {
                   System.out.println("Called replace");
                   String mytext = fb.getDocument().getText(0, offset);
                   mytext += text;
                   if (fb.getDocument().getLength() - 1 > offset) {
                        mytext += fb.getDocument().getText(offset + 1,
                                  fb.getDocument().getLength() - offset);
                   boolean ok = true;
                   ok = Pattern.matches(REGEX_DOUBLE_NUMBER, mytext);
                   if (ok)
                        super.replace(fb, offset, length, text, attrs);
              public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr)
                        throws BadLocationException {
                   if (Pattern.matches(REGEX_DOUBLE_NUMBER, string)) {
                        super.insertString(fb, offset, string, attr);
    }That is: define a custom formatter ; the formatter uses the custom DocumentFilter.
    Hope it is useful for some people out there.
    Regards

  • Script error: Three parameters expected etc

    I currently use director MX 10.1 and Havok and max 5.1. I am
    trying to do the tutorial found here:
    http://www.deansdirectortutorials.com/3D/Havok/
    specifically the one using the "imported Havok" from max 5
    found at bottom.
    I can do the top inserted havok tut just fine using his w3d
    and hke.
    I can even load his completed version of the bottom "Imported
    Havok" and that works fine.
    However when i try to recreate his Imported havok project
    everytime i try to play it i get an error:
    Script error: Three parameters expected
    pHavok.initialize(pSprite.member)
    -2147219485
    I have compared my working script code lines to his completed
    version of the Import havok tutorial and they look the same.
    However i still get this error. Any ideas on whats going on?
    You could easily see if it works for you and let me know if
    it does. It should only take 10 minutes to look and see if its me
    or him if you like.
    I tryed my own import havok test to and got same error
    message when trying to play it.
    thanks

    Dr Vangeldor wrote:
    > I currently use director MX 10.1 and Havok and max 5.1.
    I am trying to do the
    > tutorial found here:
    >
    http://www.deansdirectortutorials.com/3D/Havok/
    Hi,
    The above is my tutorial. Is the problem when you create your
    own hke file? Since
    the creation of the hke part of the tutorial requires a very
    old version of max,
    it's probably not the reccommended way of doing things. Plus,
    Havok has been
    replaced by Aegia in Director 11. Anyway, I'd suggest you
    look at physics
    properties as you defined in Max (steps 7 to 14) to make sure
    you've done it
    correctly for your file. Then, make sure you have the latest
    Havok, which can be
    accessed from a link on the page.
    regards
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.deansdirectortutorials.com/
    http://www.multimediacreative.com.au
    email: [email protected]

  • Jspinner with percent formatting

    Hi, I want to make a jspinner but with percent formatting. Here is the code:
        private void SetUpSpinner() {
            NumberFormat percentEditFormat;
            NumberFormat percentDisplayFormat;
            percentEditFormat = NumberFormat.getNumberInstance();
            percentDisplayFormat = NumberFormat.getPercentInstance();
            NumberFormatter percentEditFormatter =
                    new NumberFormatter(percentEditFormat) {
                public String valueToString(Object o)
                      throws ParseException {
                    Number number = (Number)o;
                    if (number != null) {
                        double d = number.doubleValue() * 100.0;
                        number = new Double(d);
                    return super.valueToString(number);
                public Object stringToValue(String s)
                       throws ParseException {
                    Number number = (Number)super.stringToValue(s);
                    if (number != null) {
                        double d = number.doubleValue() / 100.0;
                        number = new Double(d);
                    return number;
            jformattf = new JFormattedTextField(
                                 new DefaultFormatterFactory(
                                    new NumberFormatter(percentDisplayFormat),
                                    new NumberFormatter(percentDisplayFormat),
                                    percentEditFormatter));
            Integer value = new Integer(10);
            Integer min = new Integer(0);
            Integer max = new Integer(100);
            Integer step = new Integer(1);
            SpinnerNumberModel model = new SpinnerNumberModel(value, min, max, step);
            CommisionSp.setEditor(jformattf);
            CommisionSp.setModel(model);
        }If I comment the CommisionSp.setEditor(jformattf); line, the jspinner works fine but without percent format. But if I add that line.... the increase and decrease button does not work at all although I can edit the jspinner directly and when the jspinner lost the focus, my number will be formatted to be percentage formatting.
    Any solution???
    Thank you.

    is this what you're trying to do?
    import javax.swing.*;
    class Spin extends JFrame
      public Spin()
        super("Spin");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(200,75);
        setLocation(400,300);
        JSpinner spinner = new JSpinner(new SpinnerNumberModel(0,0,1,.01));
        JSpinner.NumberEditor editor = new JSpinner.NumberEditor(spinner,"0%");
        spinner.setEditor(editor);
        JPanel jp = new JPanel();
        jp.add(spinner);
        getContentPane().add(jp);
      public static void main(String[] args) {new Spin().setVisible(true);}
    }

  • UCCX Callback implementation timeout problem

    I am working on an implementation of the "Callback" function for queued callers based on the Cisco sample scripts
    BaseLineAdvQueuing and BaseLineMesageCallback.   The function works correctly.  If my agents are all in Not Ready state and callers select to leave a callback number and message then their "callback" calls are queued successfully.  When an agent is made "Ready" the callback calls are delivered in the correct order and the callbacks are processed successfully.  My problem is that the "Callback" calls time out and disappear from the queue after about 30 minuted.  If an agent becomes ready after 40 minutes there are no calls delivered to them.  I have tracked this via the Real Time Reports which show active sessions for the queued Callback calls.  These disappear from the Real Time Report after 30 mins.   Is there a way to extend this timeout?.
    Regards,
    David

    Have you checked your MIVR logs for the WFMaxExecutedStepsExceededException error?
    The logic in the Advanced Queuing script is such that it loops the Get Digit String step once ever 6 seconds.  Even if I didn't consider all the steps that your callers go through before getting there, this small section will execute 1,000 steps in 50 minutes.  Subtract off your steps above and this could easily be 20 or 30 minutes.
    The Callback script is less likely the culprit as it executes 3 steps every 30 seconds, which is 166 minutes or 2.7 hours.
    My guess is that both of you are hitting the max steps on your main script.  Check your MIVR logs to know for sure.  Post your script and I'll review it.
    Also, what is your UCCX System Parameter for Max Steps set to?
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • [SOLVED] Brightness control over keyboard not working, but it works...

    Hello,
    I recently got a new laptop at work and I put a fresh Arch on it.
    Almost everything works perfectly, but I have one weird issue.
    I can control backlight of my display via ACPI; I wrote a simple script for it:
    pabre@pbr-laptok:~$ cat /usr/local/sbin/brightness.sh
    #!/bin/bash
    DEV=/sys/class/backlight/intel_backlight/brightness
    MAX=`cat /sys/class/backlight/intel_backlight/max_brightness`
    ACT=`cat /sys/class/backlight/intel_backlight/actual_brightness`
    MIN=0
    STEPS=10
    STEP=$((MAX/STEPS))
    if [ $1 == "+" ]; then
    if [ $((ACT+STEP)) -le $MAX ]; then
    echo $((ACT+STEP)) > $DEV
    fi
    elif [ $1 == "-" ]; then
    if [ $((ACT-STEP)) -ge $MIN ]; then
    echo $((ACT-STEP)) > $DEV
    fi
    fi
    exit 0
    I put myself a sudoers entry for it:
    root@pbr-laptok:~# cat /etc/sudoers | grep pabre
    pabre ALL=(ALL) NOPASSWD: /usr/local/sbin/brightness.sh,/usr/bin/pacman -Sy
    And it works like a charm, when run from a terminal:
    pabre@pbr-laptok:~$ sudo /usr/local/sbin/brightness.sh -
    So, my next step was to bind that script to appropriate keys on my keyboard (Fn + UP/DOWN - which are XF86MonBrightnessUp and XF86MonBrightnessDown)
    My window manager is Awesome, so I put to the config:
    awful.key({ }, "XF86MonBrightnessUp", function () awful.util.spawn("sudo /usr/local/sbin/brightness.sh +") end),
    awful.key({ }, "XF86MonBrightnessDown", function () awful.util.spawn("sudo /usr/local/sbin/brightness.sh -") end),
    among others like touchpad toggling, volume control, etc (which are working without issues)
    And now, guess what... Those keys fire that script, change the brightness and after second or less - it comes back to old value! You can see that display blinks (for example gets brighter and moment after - it goes back to previous state).
    I tried to debug it, putting to the script something like:
    if [ $1 == "+" ]; then
    if [ $((ACT+STEP)) -le $MAX ]; then
    echo $((ACT+STEP)) > $DEV
    cat /sys/class/backlight/intel_backlight/actual_brightness >> /tmp/br.log
    sleep 1
    cat /sys/class/backlight/intel_backlight/actual_brightness >> /tmp/br.log
    fi
    And the first entry was that what it was supposed to be, while te other (second after) Was again the old value.
    Does anybody have any idea what "reverts" my changes to the /sys/class/backlight/intel_backlight/brightness and why it works without issues when simply run from a terminal?
    Last edited by PaBre (2014-03-16 17:10:54)

    I think that I've found partial answer.
    When I changed key binds to another keys - it works!
    But even then, when I press XF86MonBrightnessUp or XF86MonBrightnessDown, the brightness level gets reset. And now they are not bind to anything (at last not explicit).
    So it looks that I have to found how to decouple the internal, not working as expected, bind to these keys.

  • Please help with JSpinner problem

    The only way that I know of to get access to the fireStateChanged()
    method is to extend JSpinner because it's a protected method in
    the JSpinner class. However, when I do that and invoke a
    fireStateChanged I get a stack overflow with no other information.
    java.lang.StackOverflowError
    is all I get? Any ideas on what I'm doing wrong and how to fix
    it?
    I don't understand what can go wrong because it just a simple
    extends class as follows:
    setup code:
              Integer value = new Integer(period);
              Integer min = new Integer(3);
              Integer max = new Integer(99);
              Integer step = new Integer(1);
              model = new SpinnerNumberModel(value, min, max, step);
              period = model.getNumber().intValue();
              periodSpinner = new PeriodSpinner(model);
              periodSpinner.addChangeListener(this);class code (inner class):
         private class PeriodSpinner extends JSpinner {
              public PeriodSpinner(SpinnerModel model) {
                   super(model);
              protected void fireStateChanged() {
                   super.fireStateChanged();
         }ChangeListener:
         public void stateChanged(ChangeEvent changeEvent) {
              Object changeEvtSrc = changeEvent.getSource();
              if(changeEvtSrc == (Object)periodSpinner) {
                   period = model.getNumber().intValue();
                   // o next statement cause a stack over flow
                   periodSpinner.fireStateChanged();

    The only way that I know of to get access to the fireStateChanged()
    method is to extend JSpinner because it's a protected method in
    the JSpinner class. However, when I do that and invoke a
    fireStateChanged I get a stack overflow with no other information.
    java.lang.StackOverflowError
    is all I get? Any ideas on what I'm doing wrong and how to fix
    it?
    I don't understand what can go wrong because it just a simple
    extends class as follows:
    setup code:
              Integer value = new Integer(period);
              Integer min = new Integer(3);
              Integer max = new Integer(99);
              Integer step = new Integer(1);
              model = new SpinnerNumberModel(value, min, max, step);
              period = model.getNumber().intValue();
              periodSpinner = new PeriodSpinner(model);
              periodSpinner.addChangeListener(this);class code (inner class):
         private class PeriodSpinner extends JSpinner {
              public PeriodSpinner(SpinnerModel model) {
                   super(model);
              protected void fireStateChanged() {
                   super.fireStateChanged();
         }ChangeListener:
         public void stateChanged(ChangeEvent changeEvent) {
              Object changeEvtSrc = changeEvent.getSource();
              if(changeEvtSrc == (Object)periodSpinner) {
                   period = model.getNumber().intValue();
                   // o next statement cause a stack over flow
                   periodSpinner.fireStateChanged();

  • Time Span?

    I am trying to get the net days for a time span, starting from first step through to the last step. I have a few issues that I have to account for:
    •     The problem is overlap time. Some steps overlap; with their start days coming before the end of the previous step.
    •     There could be gaps from end of 1 step till start of the next.
    I know I could min and max step days or count total days from table but that does not take the overlap into consideration. I have provided an example below.
    CREATE TABLE claims_step_table ( 
    table_id       INTEGER PRIMARY KEY,
    record_id      NUMBER, 
    step_code      VARCHAR2(20 Byte),
    start_date     DATE,
    end_date       DATE,
    days           NUMBER
    truncate table claims_step_table;
    INSERT INTO claims_step_table VALUES (1,  123456,'P96','01-JAN-09','10-JAN-09',10);
    INSERT INTO claims_step_table VALUES (2,  123456,'L61','10-JAN-09','15-JAN-09',5);
    INSERT INTO claims_step_table VALUES (3,  123456,'H45','12-JAN-09','20-JAN-09',8);
    INSERT INTO claims_step_table VALUES (4,  123456,'O87','10-FEB-09','15-FEB-09',5);
    COMMIT;
    P96      |----------- 10 --------|
    L61                              |-----5-----|
    H45                                   |--------8----------|
    O87                                                                      |-----5-----|So the net should be 25 days because there is a 3 day overlap between step L61 and H45. Thanks for your help ahead of time.
    Rich
    GOOD CATCH, my fault record #4 should have been in FEB, cut and paste error.
    Edited by: LostOne on Oct 15, 2009 8:19 AM

    Using the tabibitosan method:
    with    cst as (select 1 table_id, 123456 record_id, 'P96' step_code, to_date('01/01/2009', 'dd/mm/yyyy') start_date, to_date('10/01/2009', 'dd/mm/yyyy') end_date, 9 days from dual union all
                    select 2 table_id, 123456 record_id, 'L61' step_code, to_date('10/01/2009', 'dd/mm/yyyy') start_date, to_date('15/01/2009', 'dd/mm/yyyy') end_date, 5 days from dual union all
                    select 3 table_id, 123456 record_id, 'H45' step_code, to_date('12/01/2009', 'dd/mm/yyyy') start_date, to_date('20/01/2009', 'dd/mm/yyyy') end_date, 8 days from dual union all
                    select 4 table_id, 123456 record_id, 'O87' step_code, to_date('22/01/2009', 'dd/mm/yyyy') start_date, to_date('27/01/2009', 'dd/mm/yyyy') end_date, 5 days from dual union all
                    select 5 table_id, 123457 record_id, 'P96' step_code, to_date('22/02/2009', 'dd/mm/yyyy') start_date, to_date('24/02/2009', 'dd/mm/yyyy') end_date, 2 days from dual union all
                    select 6 table_id, 123457 record_id, 'L61' step_code, to_date('01/01/2009', 'dd/mm/yyyy') start_date, to_date('11/01/2009', 'dd/mm/yyyy') end_date, 10 days from dual union all
                    select 7 table_id, 123455 record_id, 'L61' step_code, to_date('18/01/2009', 'dd/mm/yyyy') start_date, to_date('19/01/2009', 'dd/mm/yyyy') end_date, 5 days from dual union all
                    select 8 table_id, 123457 record_id, 'H45' step_code, to_date('02/01/2009', 'dd/mm/yyyy') start_date, to_date('05/01/2009', 'dd/mm/yyyy') end_date, 5 days from dual union all
                    select 9 table_id, 123455 record_id, 'H45' step_code, to_date('22/01/2009', 'dd/mm/yyyy') start_date, to_date('27/01/2009', 'dd/mm/yyyy') end_date, 5 days from dual),
    -- end of mimicking your data
    tabibitosan as (select table_id,
                           record_id,
                           step_code,
                           start_date,
                           end_date,
                           dense_rank() over (order by start_date, end_date, table_id) -
                             row_number() over (partition by record_id order by start_date, end_date) difference
                    from   cst),
        results as (select record_id,
                           max(end_date) - min(start_date) no_of_days
                    from tabibitosan
                    group by record_id,
                             difference)
    select record_id,
           sum(no_of_days) total_days
    from   results
    group by record_id
    order by record_id;
    RECORD_ID TOTAL_DAYS
        123455          6
        123456         24
        123457         12NB. you had 10 days covering 1st Jan - 10th Jan, but 5 days covering 10th Jan - 15th Jan - this isn't consistent!
    Regardless, you do not need to store the number of days difference in the table - it only encourages errors like that! Just calculate the difference on the fly.

  • UCCX8.5 UCS - MOTD

    I am trying to build a script which will record a message of the day that can be applied by the customer at will.  (promptMOTD.wav)
    I have several prompt recording scripts which were written for 3.5 and have converted then for use in 8.5. I have run the script whilst debugging and can see that the .wav file is saved into the uccx/customer folder however I am having trouble either playing it back to confirm it sound okay and subsequenlty writing that to a folder with the other prompts.
    Can anyone advise on this?  Has anyone a script which can complete this already?
    Regards  Bob

    You do not (and to some degree, should not) use the local disk space for storing recordings.  You should only need to upload the recordings to the Prompt Repository.
    The shortest recording script ever written:
    Variables
    Document r = nullUser u = user[aholloway]
    Script
    StartAcceptAuthenticate User (u, pin = "12345")  Successful    1: r = Recording (p[], 60)      Successful        Upload Prompt (l[], name = "_"+new Date().getTime()+".wav", doc = r)          Successful            Goto 1          Unsuccessful      Unsuccessful  UnsuccessfulEnd
    Provided the authentication, recording, and upload steps are all successful, this script will loop until the max steps is executed, providing a recording tone to signal the beginning of each new recording.  You will press # at the completion of each new recording.  Each new recording will then be named "_.wav" (where timestamp is the number of milliseconds since Jan 1, 1970 @ 12:00am) and then uploaded to the default language folder.
    With the default max steps at 1,000, I estimate this little script can record up to 332 recordings.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

Maybe you are looking for

  • IMac G5 won't start up

    I have an iMac G5 (iSight) 20" that won't start up. Press the power button, the power light comes on, but no startup chord, screen stays black. I can hear a quiet humming sound if I put my ear to the case, either the fan or the hard disk spinning (bu

  • JSF 1.2 - What is the timeline??

    I was just reading the JSR (http://jcp.org/en/jsr/detail?id=252) for JSF 1.2 and am curious when the changed being implemented in that JSR will be made available? What will the version be? 1.5? According to the text in the JSR it does not cover major

  • Itunes is showing accessing itunes store after waiting for 30 minutes also

    itunes is showing accessing itunes store after waiting for 30 minutes also

  • Urgent CSS Help Needed

    Hi guys, I need some serious help, I am making a website for University and am struggling to center the website so that it stays centered on different resolutions and when the window is made smaller. My lecturer gave me the code which is apparently t

  • Is there a way to pair a bluetooth Monster iClarity speaker to my macbook pro?

    I bought a bluetooth speaker called Monster iClarity and it works magically with my iPhone, but I tried pairing it with my macbook, and won't.  Is there a way to get it to work?  Has anyone else tried?  It would so great to this pair to work together