Gap_y setting ignored, conky placed incorrectly

I have a weird problem with my Conky in Openbox. It seems to be drawn in the correct place initially, but then it snaps to the top of the screen, dragging bits of the wallpaper with it. Here is my .conkyrc:
# Use Xft?
use_xft yes
xftfont Bitstream Vera Sans:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 180 0
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color white
own_window_colour white
# Text alignment, other possible values are commented
alignment top_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 50
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
TEXT
SYSTEM ${hr 2}
${font OpenLogos:size=16}B${font} Kernel: ${alignr}${kernel}
CPU: ${cpu cpu}% ${alignr}${cpubar 8,60 cpu}
RAM: $memperc% ${alignr}${membar 8,60}
Uptime: ${alignr}${uptime}
HD ${hr 2}
Home:
${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
NETWORK ${hr 2}
${if_existing /proc/net/route wlan0}
Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 789E2D A7CC5C}
Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}${else}${if_existing /proc/net/route eth0}
Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}
IP: ${alignr}${addr eth0}${endif}${else}${if_existing /proc/net/route eth1}
Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C}
Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup eth1}
Download: ${alignr}${totaldown eth1}${endif}${else}${font PizzaDude Bullets:size=14}4${font} Network Unavailable${endif}
UPDATES ${hr 2}
${execpi 1800 python /home/pasha/.scripts/conky-pkg.py}
WEATHER ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=30}${execi 600 conkyForecast --location=NOXX0050 --datatype=WF}${font}
${voffset -35}${font Weather:size=25}y${font} ${voffset -15}${font Bitstream Vera Sans:size=16}${execi 600 conkyForecast --location=NOXX0050 --datatype=HT}${font}
${voffset 0}${font}Barometer Tendency: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --datatype=BD}
${voffset 0}Humidity: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --datatype=HM}
${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --hideunits --datatype=WS} km/h ${execi 600 conkyForecast --location=NOXX0050 --hideunits --datatype=WD}
${voffset 0}${font}Wind Gusts: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --datatype=WG}
${voffset 0}Daylight: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --datatype=SR} - ${execi 600 conkyForecast --location=NOXX0050 --datatype=SS}
${font Bitstream Vera Sans:size=10}${execi 600 conkyForecast --location=NOXX0050 --datatype=MP}
${voffset -25}${alignr 42}${font MoonPhases:size=18}${execi 600 conkyForecast --location=NOXX0050 --datatype=MF}${font}
${else}${if_existing /proc/net/route eth0}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=30}${execi 600 conkyForecast --location=NOXX0050 --datatype=WF}${font}
${voffset -35}${font Weather:size=25}y${font} ${voffset -15}${font Bitstream Vera Sans:size=16}${execi 600 conkyForecast --location=NOXX0050 --datatype=HT}${font}
${voffset 0}${font}Barometer Tendency: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --datatype=BD}
${voffset 0}Humidity: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --datatype=HM}
${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --hideunits --datatype=WS} km/h ${execi 600 conkyForecast --location=NOXX0050 --hideunits --datatype=WD}
${voffset 0}${font}Wind Gusts: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --datatype=WG}
${voffset 0}Daylight: ${alignr}${execi 600 conkyForecast --location=NOXX0050 --datatype=SR} - ${execi 600 conkyForecast --location=NOXX0050 --datatype=SS}
${font Bitstream Vera Sans:size=10}${execi 600 conkyForecast --location=NOXX0050 --datatype=MP}
${voffset -25}${alignr 42}${font MoonPhases:size=18}${execi 600 conkyForecast --location=NOXX0050 --datatype=MF}${font}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Weather Unavailable
${endif}
And the screenshot is here
Turning off xcompmgr and getting rid of the wallpaper didn't help. The strange thing is that it gets drawn correctly initially (you can see that from the wallpaper weirdness, and also when it's loading it shows a black rectangle where conky would be). The strangest thing is that once in a blue moon it does actually place conky correctly (i.e. if I kill and restart it enough times).
Help appreciated!

jwhendy wrote:
When conky refreshes, I can see the footprint the screen is going to take up before it lays out the text and it's staying at the same size. None of the options above seem to make it increase.
Any suggestions?
maybe try:
max_specials 1024
Could supply a "sample" agenda-export.txt for me to try here?
Just change: names, places etc that are sensitive to protect the guilty so to speak 
Last edited by Sector11 (2011-08-12 22:00:01)

Similar Messages

  • Setting of WorkStatus is incorrect

    Hello all
    I am trying to send data with schedule input.
    When i press "send data" ---> "Validate submission before sending", i get this error: "setting of WorkStatus is incorrect. Please contact your administrator".
    I cheked the "Work Status" in my Appset, nothing seems to be wrong.
    Please advice.
    Best regards,
    Yuval

    Hi Raju
    Im on 7.5 sp9 and having this very same issue and not getting anywhere with SAP support.
    How can you change the work status order. The work status settings screen does not seem to let me change the dimension details.
    Any help would be greatly appreciated.

  • Set "Ignore ownership on this volume" to be on by default

    Hello, I have a MacPro loaded with 10.5 server that I use frequently for backing up customer data via USB or Firewire. The MacPro is in a locked room and is relatively isolated from the network. I am looking for a way to set "Ignore ownership on this volume" to be checked by default for any/all drives I plug into the machine. This would be a huge time save for me. Thank you!

    Hi Alfredo,
    I can't test this at the moment, but I have a theory!
    One would think that setting iTunes to a FW Dive would need to change the Permissions to control Sharing of iTunes content.
    My iTunes was set to another internal drive and had the same Ignore unchecked and owned by system, I unchecked it and changed it back to my boot drive, the Get Info change Me to owner & kept the Ignore checked... setting it back to the other Drive did not change those settings, but I suspect that a Reboot would... how else could Apple control Sharing of songs?

  • HT204053 Our macs were set up with an incorrect Apple ID. Is there any way to change the Apple ID associated with these macs?

    Our macs were set up with an incorrect Apple ID. Is there any way to change the Apple ID associated with these macs? This causes increased frustration during the updating process. After maverick we cannot edit the id being used anymore.

    If you can prove ownership to the Macs, call Apple Care and request the Account Security Team.

  • Pie chart legend showing digit "1" when we set "ignore blank cells"property

    All,
    We have pie chart in Xcelsius 2008 that shows the data with legend value and we have also set the ignore blank cells property to ignore the blank value from column. but once we set this property, it displays the digit "1" in the legend when there is no data.
    we are expecting that nothing should be displayed in pie chart legend when there is no data for the pie chart.
    Thanks,
    Sourabh

    hi Sourabh,
    I could replicate your scenario.
    Workaround is to create a duplicate of this chart. Go to properties of this new chart.
    Go to Appearance ->
    Uncheck
    - Legend
    - Mouse-over values
    - Data Labels
    for this chart.
    Write a logic in excel using 'IF' to verify if your data is empty.
    Use 'Dynamic Visibility' feature to display this chart only when your data is empty.
    Display your original chart if your data is not empty.
    Regards,
    Vamsee

  • [Solved] conky displaying incorrect ram usage

    Conky isn't subtracting the cached memory, is there a subtraction function?
    "${mem} - ${cached}"
    displays:
    "1.11Gib - 770.53Mib"
    Is there anyway to show just the value of the actual ram being used?
    $mem just displays the 1.11gib
    Last edited by playdafunkimuzic (2009-01-16 15:25:12)

    playdafunkimuzic wrote:Is there anyway to show just the value of the actual ram being used?
    Toggle the "no_buffers" setting in your config:
    no_buffers yes
    Last edited by tdy (2009-01-16 06:19:29)

  • Can't set up Sync, get "Incorrect account name or password"

    I am trying to set up Sync for the first time. After putting in an e-mail address and password, entering the "captcha" words, I click "next," and instead of successfully completing the setup, I get a message at the bottom "Sync encountered an error while syncing: Incorrect account name or password. Sync will automatically retry this action." How could these be incorrect when I just created the account?
    I have tried changing the password, deleting the account and restarting the whole process, but it always comes back to the same problem.

    This has to be a system wide issue. I have tried from multiple machines (Mac OS X, Win7 3 different), multiple internet connections. I have tried 4 different email addresses as well.
    I am moving away from chrome now that i found FF has a sync feature (if it works) I give up for now...

  • Bug report: clip marker is placed incorrectly

    (filed)
    Product Version: 7.2.1
    Your operating system: Windows 7
    ******BUG******
    Clip marker in audio clip is placed at incorrect location
    Steps to reproduce bug:
    1. Highlight WAV audio clip in sequence, in this case bottom audio track below one other audio WAV clip and two video/audio tracks
    2. press M at desired marking point, as indicated by playhead
    Results:
    Marker is placed to left (earlier) of the playhead by one frame, and I have seen it to the right (later) by one frame.
    Notes:
    1. Markers were placed correctly in the two of three  audio clips on top of this one in the sequence
    2. the misplaced marker cannot be deleted, although it can be selected.
    Expected results:
    Place the marker at the playhead, not just nearby. Accuracy counts!

    Replying to my own posting. The original example was optimistic.
    In reality, placing markers on my audio clips to help with sync and maintain sync is like watching a blind person play darts... and sometimes the darts stick in places you can't even get them back out of.

  • SG200-08 VLAN-trunk setting ignored after reboot

    Hi all,
    The ports on my SG200-08 are configured as follows:
    Port 1; VLAN 1+4; trunk
    Port 2; VLAN 4; access
    Port3-8; VLAN 1; access
    The config for Port 1 looks as follows: "switchport trunk allowed vlan add 1,4". The problem I want to point out here arises right after rebooting the switch; in the running config, the aforementioned line is now present as "switchport trunk allowed vlan add 4", i.e., VLAN 1 is missing in the trunk. The problem is reproducible every time I reboot the switch. At this moment, I assume it to be a bug in the firmware. This is a problem for me, since the switch's management VLAN is 1 and it gets its IP address (DHCP) over VLAN 1 as well.
    I have attached my startup config to this thread, as well as the running config exported right after reboot. In both of them, I've sanitized the rows on user accounts.
    Does anyone recognize this problem? Any suggestions on how to fix it?

    Hi chrebert,
    Thanks for your answer. You're right in concluding the VLAN 1 is my default VLAN. The problem is that the switch should contact my DHCP server over VLAN 1 and since the traffic on port 1 is not tagged, the traffic DHCP request will never reach my DHCP server. As a consequence, the switch always ends up with its factory default IP address (192.168.1.254) instead of the IP address assigned by the DHCP server. And yes, that's a problem
    So to summarize, when I configure tagged access for VLAN 1 on port 1 and write this to the startup config, it is indeed present in the startup config afterwards. However, the switch ignores this upon reboot, causing VLAN 1 on port 1 to feature untagged access.
    By the way, I completely set up the switch from scratch after restoring the config to factory defaults. It would be great if you could try to reproduce the issue and hopefully come with a fix. In case you need more information, please don't hesitate to contact me.

  • Setting postertype for placed SWF

    HI
    I have a huge indd file with one placed SWF / page. Now I should toggle Play on Pageload checkbox on for every SWF and choose poster from the movie.
    I know that I can do that by selecting SWF files one by one and setting those two things manually, but would it be hard to make a script that would do that? It would be a life saver....
    I found the jacascript parameter MoviePosterTypes.FROM_MOVIE but I dont know how to use it... any help would be greatly appreciated....=)

    Hi Shaun,
    I suppose that Adobe Flash Pro forum guys can help you
    http://forums.adobe.com/community/flash
    Best Regards
    TaikaJim

  • Z87-G45. VCore setting ignored. Set to 1.147V but maxes out at 1.3V!!

    Hi guys, first post here and I couldn't find any similar threads. I'm a complete noob with overclocking, but I had a 4.1GHz overclock on my i5-4670K with 1.147V (1.195V w/ -0.049 offset, adaptive mode) stable for over a year. All other settings were at default.
    I reinstalled windows 3 weeks ago, updated the BIOS from 1.8 to 1.9 and the ME drivers. I didn't touch the overclock settings afterwards due to studies, but when I did try a few days ago, the vcore setting I enter in the BIOS seems to be ignored. Using the same settings as before the reinstall (1.195vcore, -0.049 offset, adaptive mode), it is reported by CPU-Z to be 1.28-1.3V during a Prime95 stresstest.
    Unlikely factors:
    -error in CPU-Z voltage reading = not likely as the temps are about 20 degrees celsius higher than they previously were (70+ previous, 95-99 current)
    -prime95                                 = i used this same program to stresstest the CPU before the reinstall without similar issues
    What I've tried so far:
    - Changing CPU multiplier to 41x vcore to 1.147 without offset = 1.33V reported by CPU-Z (Picture shows these settings)
    - Tried rolling back the BIOS version to 1.8 using MFlash          = no change
    The attached picture shows the settings, but the CPU meter temps are still 80+ as I only ran the test for 5 seconds for fear of overheating.
    I hope there's a solution to this. I don't have much understanding of what controls vcore (bios, OS, ME, etc) so I don't know what else I can do to diagnose and fix this. If anyone could offer any solutions or help, I would appreciate it greatly.
    Thanks for your time!
    EDIT: I only used Command centre to show the voltage setting in the screenshot. BIOS was used to change settings. I might add that command centre has always crashed within half an hour of opening it, and thus I've never relied on it.

    Hi again, just an update on my situation. I've effectively corrected my problem, but my OC settings are still not functioning exactly like before.
    I reinstalled windows (not a system image restore) without installing any of the mobo drivers that liveupdate recommends. I can achieve a stable 4.1GHz OC with 1.168V (reported by CPU-Z). The only error is that my vcore is set to 1.195 (offset -0.049), which used to give a VID of 1.147V, not 1.168V.
    Still, I'm quite happy that at least I can run a stable 4.1GHz overclock at below 1.2V, which didn't work when I started this thread.
    Now the only question left, since I purposely didnt install most mobo drivers, is whether I need to install the Chipset drivers or "management engine" drivers listed on my motherboard's support page? (http://www.msi.com/support/mb/Z87-G45-GAMING.html#down-driver&Win7 64)

  • hr element placed incorrectly on html page

    <HR> element is placed in a row of a grid but it appears above the table on HTML page. JSP code and HTML output is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <jsp:text><![CDATA[
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ]]></jsp:text>
    <f:view>
    <html lang="en-US" xml:lang="en-US">
    <head>
    <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    <title>TestPage Title</title>
    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
    </head>
    <body style="-rave-layout: grid">
    <h:form binding="#{TestPage.form1}" id="form1">
    <h: panelGrid binding="#{TestPage.gridPanel1}" id="gridPanel1" style="left: 0px; top: 0px; position: absolute" width="780">
    <h:outputText binding="#{TestPage.outputText1}" id="outputText1" styleClass="page-header" value="Test page"/>
    <hr width="780"/>
    </h: panelGrid>
    </h:form>
    </body>
    </html>
    </f:view>
    </jsp:root>
    HTML output is as follows:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xml:lang="en-US" lang="en-US"><head><meta http-equiv="Cache-Control" content="no-cache"/><meta http-equiv="Pragma" content="no-cache"/><title>TestPage Title</title><link type="text/css" rel="stylesheet" href="resources/stylesheet.css"/></head><body style="-rave-layout: grid"><form id="form1" method="post" action="/homesoncell/faces/TestPage.jsp" enctype="application/x-www-form-urlencoded">
    <hr width="780"/><table id="form1:gridPanel1" style="left: 0px; top: 0px; position: absolute" width="780">
    <tbody>
    <tr>
    <td><span id="form1:outputText1" class="page-header">Test page</span></td>
    </tr>
    </tbody>
    </table>
    <input type="hidden" name="form1" value="form1" /></form></body></html>

    You cannot safely include HTML tags within all JSF components -- and panelGrid is one such component. This is the reason by the way we disabled the HTML palette in the last moment; it's easy to get into trouble in this area.
    The way to include markup is to include a verbatim tag as a child and then the verbatim tag wraps the html you want to include.
    http://java.sun.com/j2ee/javaserverfaces/1.1/docs/tlddocs/f/verbatim.html
    -- Tor
    http://blogs.sun.com/tor

  • ConsumerFlowLimit set to 0 working incorrectly

    I've got a simple program which creates a queue and sets the consumerFlowLimit on that queue. Then it creates a producer for the queue which loads the queue with 10 messages. The payload of each message is the order it was created in. So the first message is a text message "1", the second message is a text message "2", etc.
    The program then creates two consumers. The first is called "c5" because it reads a single message, prints the message, then sleeps for 5 seconds. The second is named "c1" because it does the same, but sleeps for only one second.
    When I set consumerFlowLimit on the queue to -1 (unlimited) I get what I expect. The 10 messages get randomly "pre-assigned" to the queues, and I get output (something) like this:
    c1 read message: 2 Mon Jul 14 08:37:53 PDT 2008
    c5 read message: 1 Mon Jul 14 08:37:53 PDT 2008
    c1 read message: 5 Mon Jul 14 08:37:54 PDT 2008
    c1 read message: 7 Mon Jul 14 08:37:55 PDT 2008
    c1 read message: 9 Mon Jul 14 08:37:56 PDT 2008
    c5 read message: 3 Mon Jul 14 08:37:58 PDT 2008
    c5 read message: 4 Mon Jul 14 08:38:03 PDT 2008
    c5 read message: 6 Mon Jul 14 08:38:08 PDT 2008
    c5 read message: 8 Mon Jul 14 08:38:13 PDT 2008
    c5 read message: 10 Mon Jul 14 08:38:18 PDT 2008
    What I want, however, is for the messages to be pulled off and printed in order, from 1 to 10. So I don't want the broker pre-assigning any of the messages -- I want the messages assigned to consumers only when they ask for them. So, I set the consumerFlowLimit to 0. But the setting of 0 behaves exactly like it does for the setting of -1. I think this is a bug and want to know if I should enter it as such. I see the same behavior for both the 1.3 and 1.4 brokers.
    I do know that I'm successfully setting consumerFlowLimit, not only because I query and print it after I set it , but because when I set it to 1, it works as expected: only one message gets pre-assigned and output looks like this:
    c5 read message: 1 Mon Jul 14 09:12:32 PDT 2008
    c1 read message: 2 Mon Jul 14 09:12:32 PDT 2008
    c1 read message: 4 Mon Jul 14 09:12:33 PDT 2008
    c1 read message: 5 Mon Jul 14 09:12:34 PDT 2008
    c1 read message: 6 Mon Jul 14 09:12:35 PDT 2008
    c1 read message: 7 Mon Jul 14 09:12:36 PDT 2008
    c5 read message: 3 Mon Jul 14 09:12:37 PDT 2008
    c1 read message: 8 Mon Jul 14 09:12:37 PDT 2008
    c1 read message: 10 Mon Jul 14 09:12:38 PDT 2008
    c5 read message: 9 Mon Jul 14 09:12:42 PDT 2008
    Thanks if you can help.

    Challenge to Sun: Explain why there are no settings that allow this program to finish in 8 seconds every time it runs. 1 producer queues 10 messages. 2 consumers drain the queue. One sleeps 1 second after it dequeues a message, the other sleeps 5 seconds. Two messages should be dequeued at the 0 second marker and the 5 second marker, and one message at other second markers. 10 messages in 8 seconds. Should be easy, but openmq can't do it.
    Command line looks like this once you compile it:
    java -cp build\classes;lib\imqjmx.jar;lib\jms.jar;lib\imq.jar my.example.Flow 1 -1
    The parameters are for the consumerFlowLimit and maxNumActiveConsumers attributes. Set them any way you like. Nothing will get you to 8 seconds consistently.
    package my.example;
    import java.util.Date;
    import javax.jms.Connection;
    import javax.jms.DeliveryMode;
    import javax.jms.Destination;
    import javax.jms.MessageConsumer;
    import javax.jms.MessageProducer;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import javax.management.Attribute;
    import javax.management.MBeanServerConnection;
    import javax.management.ObjectName;
    import javax.management.remote.JMXConnector;
    import com.sun.messaging.AdminConnectionFactory;
    import com.sun.messaging.ConnectionConfiguration;
    import com.sun.messaging.jms.management.server.DestinationAttributes;
    import com.sun.messaging.jms.management.server.DestinationType;
    import com.sun.messaging.jms.management.server.MQObjectName;
    public class Flow {
    private static com.sun.messaging.ConnectionFactory
    connectionFactory = new com.sun.messaging.ConnectionFactory();
    private String brokerName;
    private int brokerPort;
    private long flowLimit;
    private int activeConsumers;
    public Flow(String brokerName, int brokerPort, long flowLimit, int activeConsumers) {
    this.brokerName = brokerName;
    this.brokerPort = brokerPort;
    this.flowLimit = flowLimit;
    this.activeConsumers = activeConsumers;
    public void start() {
    try {
    connectionFactory.setProperty(ConnectionConfiguration.imqAddressList,
    this.brokerName + ":" + this.brokerPort);
    Connection connection = connectionFactory.createConnection();
    connection.start();
    Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
    String queueName = "myQueue";
    Destination myQueue = session.createQueue(queueName);
    MessageProducer producer = session.createProducer(myQueue);
    producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
    AdminConnectionFactory acf = new AdminConnectionFactory();
    JMXConnector jmxc = acf.createConnection("admin", "admin");
    MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();
    ObjectName destConfigName = MQObjectName.createDestinationConfig(DestinationType.QUEUE, queueName);
    Attribute attr = new Attribute(DestinationAttributes.CONSUMER_FLOW_LIMIT, flowLimit);
    mbsc.setAttribute(destConfigName, attr);
    attr = new Attribute(DestinationAttributes.MAX_NUM_ACTIVE_CONSUMERS, activeConsumers);
    mbsc.setAttribute(destConfigName, attr);
    Long longAttrValue = (Long)mbsc.getAttribute(destConfigName, DestinationAttributes.CONSUMER_FLOW_LIMIT);
    Integer attrValue = (Integer)mbsc.getAttribute(destConfigName, DestinationAttributes.MAX_NUM_ACTIVE_CONSUMERS);
    jmxc.close();
    System.out.println( "consumerFlowLimit: " + longAttrValue );
    System.out.println( "maxNumActiveConsumers: " + attrValue);
    // Pre-load the queue with 10 messages numbered from 1 to 10
    for (int i = 1; i <= 10; i++) {
    TextMessage message = session.createTextMessage();
    message.setText(String.valueOf(i));
    producer.send(message);
    System.out.println("");
    // Kick off two consumers
    new Thread(new Consumer("c5", 5)).start();
    new Thread(new Consumer("c1", 1)).start();
    } catch (Exception e) {
    System.out.println( "Exception occurred: " + e);
    public static void main(String[] args) {
    String limit = "1";
    String activeConsumers = "-1";
    if (args.length > 0) {
    limit = args[0];
    if (args.length > 1) {
    activeConsumers = args[1];
    Flow flow = new Flow("localhost", 7676, Long.parseLong(limit), Integer.parseInt(activeConsumers));
    flow.start();
    class Consumer implements Runnable {
    private String name;
    private int sleepSeconds;
    public Consumer(String name, int sleepSeconds) {
    this.name = name;
    this.sleepSeconds = sleepSeconds;
    public void run() {
    try {
    String queueName = "myQueue";
    Connection connection = connectionFactory.createConnection();
    Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
    Destination myQueue = session.createQueue(queueName);
    MessageConsumer consumer = session.createConsumer(myQueue);
    connection.start();
    while (true) {
    TextMessage message = (TextMessage) consumer.receive();
    System.out.println(this.name + " read message: " + message.getText() + "\t" + (new Date()));
    Thread.sleep(sleepSeconds * 1000);
    } catch (Exception e) {
    System.out.println("Exception occurred: " + e);
    }

  • SApScript- Custom Font setting ignored by the system default setting

    I have an issue related SapScript - Font Setting. Whatever Custom setting i am giving to the text written in the text-element of the Page window inside the form through paragraph or charater format e.g.
    Font Family: Times  Font Size - 12   Bold: - on . Is displaying as it is in the page window . But when I test the form for print layout through :- Utilities -> Printing Test.  All my given custom setting is override by the system default setting in the print preview of the form.
    Is there any idea or clue how to solve this isssue?
    I am using the SAP 4.7 EE IDES.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jun 11, 2009 10:32 AM

    Hi pankaj2008_singh,
    the chances that you get an answer for your question in this forum are very little.
    Please post your SAPscript questions in forum ABAP Development -> Form Printing.
    In spite of the name, SAPscript is not a scripting language.
    Regards,
    Karsten

  • Set ignore errors = off

    @a.sql
    select ' # Crocodile' from dual;
    select * from no_table ; ---Table does not exists and script must pause here
    select sysdate from dual;
    Is it possible to pause the script if Error comes while execution.
    Consider table no_table does not exists so script must be paused and prompted... and ask for continue or stop ....
    Is there is any setting regarding this ...
    Thanks & regards,

    How to pause the script if any errors occur ...Nohow. All you can do is instruct SQL*Plus to exit [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1014742]WHENEVER SQLERROR found.

Maybe you are looking for

  • Cinema display does not always wake with MacBookPro Retina

    I have a MBP Retina display and often use Apple 23" Cinema Display, with the rMBP closed, not running both displays. Sometimes the display is slow to come on, but will with a bit of prompting through hitting the esc key (USB keyboard) or my blue toot

  • Error while using groovy

    hi experts am using jdev 11.1.1..5.0 - adfbc- oracledb10g see here what i did, GlAccountClassesVO - it' ah vo GaclAcctType - it ' an attribute of this vo. this vo has two primary key bu,id GlLvlAccountsVO  - it another vo GlalGlasType  - it ' an attr

  • How to use coupon discount in sales order?

    Hi,Experts, I want to add coupon discount in order, do I need some config in order transaction type? Right now, I can't5 find some field to fill in coupon code, even I fill in the product and customer in former coupon. Could someone help me on how to

  • Some InDesign CS5.5 files won't open until force quit and relaunch the application (Mac) ?

    Some InDesign CS5.5 files won't open until force quit and relaunch application (Mac). It seems that this occurs rarely, but once it does it on a file, it happes every time. Any suggestions?

  • Portal server service pack 4

    I have just upgraded our portal server installation with service pack 4 (from a service pack 3 installation). In our configuration, we have ipsgateway running in a machine in the DMZ and two server instances running on the server machine in the intra