Wicked Widget Format / Padding Output Problem
Hi forum, it's been a while.
I'm hoping this is quick and obvious to someone. Basically I'm looking to pad the output of the standard network monitor Wicked widget, and maybe some of the others, for the new Awesome 3 GIT. It is all working fine, just i'd like to stop the numbers moving around my status bar. As a temp fix to stop everything moving i've set the width of the network widget, but is their some Lua formatting that can go in the output string and sort this properly?
Cheers
pablored
Edit.. changed title from Help to Problem, as it could be misread
Last edited by pablored (2008-08-27 20:55:27)
Wow... tries to avoid words such as amazing and awesome... that's great, I will try this when I get home. I note the WIKI is updated too.
I was part way through breaking everything down into individual widgets that had their width set, but that was pretty time consuming and not very elegant. I had thought there might be something I was missing that I could wrap around the dollar variable, format(${eth0 down},'000') etc, but your way is simpler.
My new user understanding:
wicked.register(widget-name, function-name, output-string, interval-in-seconds, properties-name ,{padding-item-1, ... padding-item-n})
I look forward to playing with it later, thanks for your help.
Similar Messages
-
Character output problems.
I'm currently writing a java console program that deals with european currency.
The problem comes when I try something along the lines of the following (the printing of the currency symbol being the important part):
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
public class UnicodeTest {
public static void main(String[] args) {
Locale eu1 = new Locale("en", "GB", "WIN");
DecimalFormatSymbols symbols = new DecimalFormatSymbols(eu1);
DecimalFormat eu = new DecimalFormat(symbols.getCurrencySymbol() + "0.00", symbols);
double number = 3f;
System.out.println(number + " = " + eu.format(number));
}The problem is that this should output 3 = ?3.00. It does on Unix systems but not on Windows,Windows end's up outputting an accented u (? (if this shows up on the forum) instead of the ? sign.
It works in Windows when outputting to a window (i.e. TextArea, etc.) but not to the system console.
Can anyone shed some light on this?Oh dear, those first and last question marks we're supposed to show up as pound signs (uk currency symbol).
-
Delimited output problem at the time of writing in to text file
Hi ,
I am using matrix stayle design for my reports when i am generating reports in delimited format i am getting Delimited output problem(DR.Watson ERROR) at the time of writing in to textfile.Hi,
Try with new desformat delimiteddata which is available with Report 6i patch 11.
Thanks
Oracle Reports Team -
Hi everyone in the forum,
I do not know if i should post this question here, but i think is the best place. Sorry if i were wrong.
just a question because i have no idea how to format the output i need.
I have a REAL or FLOAT and the output restrictions shows that it should be:
1.0000 D-08 if the value is less than 1
1.0000 if the value is [1,9]
1.0000 D+03 is value bigger than 9
and the other problem is whith other variable (type String) which represents integers, e.g, 0.000000 1.0000000 2.000000; and i have to return only 0 1 2 .
Any suggestion about how to format the output?
ThanksDecimalFormat
-
Premiere Elements 12 output problem
I am having problems outputting my project. Different errors messages. One says transcoding error. Another time it says export error. Other times it crashes. And then the program won't even open.
Any suggestions?
bwatson9Steve,
First, thank you for your prompt response. This is the first time I have used Premiere Elements 12. I don't seem to have a manual for the software.
The product was bought with my new computer. I am using windows 8.1 (64-bit) with Intel Core i7-4770 CPU @ 3.40GHz. I have 12 GB of installed RAM. I have 1TB hard drive of which this is the first project I done.
I have checked to make sure that I am getting all Windows and Microsoft Updates. I even manually went to Windows Update and installed the optional updates.
The project is a 20 min. video using mostly photos and 2 small video clips. The project is saved in its own folder.
When I go to the timeline in Expert view I do see an orange-yellow line above the timeline. It runs the whole length of the project.
I understand from reading the FAQ's that each photo cannot be larger than 1000 x 750 pixels. I will check that and reduce their size. Is there anything else that I need to do?
Where can I find a manual?
Thanks,
bwatson9
Date: Sun, 23 Mar 2014 06:31:03 -0700
From: [email protected]
To: [email protected]
Subject: Premiere Elements 12 output problem
Re: Premiere Elements 12 output problem
created by Steve Grisetti in Premiere Elements - View the full discussion
A lot depends on a lot.
What operating system are you using? What processor do you have and how much RAM and how much free space is on your hard drive?
How long is your project? What model of camcorder is your video coming from and what format and resolution is it?
Have you ensured that your project file is saved to its own folder, with no other project files in this folder?
When you add your video to your timeline in Expert view, do you see a yellow-orange line above the clips, along the top of the timeline? This indicates a mismatch between project settings and video specs.
If you are on a Windows computer, have you set up your computer to get both Windows and Microsoft Updates -- and have you manually gone to Windows Update and ensured you have even the optional updates that don't install automatically?
When did you last run Disk Cleanup and Disk Defragmenter?
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6234402#6234402
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6234402#6234402
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6234402#6234402. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Premiere Elements at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
Invalid END header format/no output available for this tool
help me.
I install oracle 9i into windows 2k server with pack3. when configuring the ODCA, when OUI prompt:
invalid END header format&
no output available for this tool.
who can tell me that what is happen?
before this, i had installed this version on windows 2003.Dear All
I have the same problem when installing Oracle9iasR2 on a windows 2000 IBM server
At the database configuration Assistant of the infrastructutre installation I am always getting this strange message Not a ZIP file (End Header Not found).
We have tried a lot off scenarios to install Oracle9iasr2 but the installation always fails at the database creation with the followning message
Not a ZIP file (End Header Not found).
We had also tried to do the installation using a different copy of CD's with no success.
Also the same installation on the same server was succesfull with O/S Win2003.
Then the whole installation fails .
If anyone has ever faced the same problem and had solved it please advice.
Thank you in advance.
Bill -
Help with formatting multiline output into comma delimited ordered output
I have 2 tables:
SQL> desc table_1;
Name Null? Type
===================================
ID NOT NULL NUMBER
DATA1 NOT NULL VARCHAR2(440)
DATA2 NOT NULL VARCHAR2(1024)
SQL> desc table_2;
Name Null? Type
===================================
ID NOT NULL NUMBER
ATTNAME NOT NULL VARCHAR2(255)
ATTVAL VARCHAR2 (4000)
DATA1 NOT NULL CHAR(1)
DATA2 VARCHAR2 (2000)
DATA3 VARCHAR2 (255)
I need to get ATTVAL from where e.g. ATTNAME=att_name1 to ATTNAME=att_name6 from every entry (with its unique ID), and format the output into comma delimited format in e.g. this order:
att_val1,att_val3,att_val6,att_val4,att_val5,att_val6
So e.g. for entry with ID "9812" from the query below, the output I need would be:
187,179,156,134,1436,1809
What I've got so far is as follows:
SQL> SELECT id,attname,attval FROM table_2 WHERE id in (SELECT id from table_1 WHERE data2='xxx')
AND attname in ('att_name1','att_name3','att_name6','att_name4','att_name5','att_name6');
ID ATTNAME ATTVAL
===============================
1970 att_name1 123
1970 att_name2 abc
1970 att_name3 1234
1970 att_name4 def
1970 att_name5 1134
1970 att_name6 ghj
9812 att_name4 134
9812 att_name5 1436
9812 att_name3 156
9812 att_name1 187
9812 att_name2 179
9812 att_name6 1809
77 att_name1 1980
77 att_name5 1867
77 att_name3 174
77 att_name4 1345
77 att_name2 1345
77 att_name6 1345
but I don't know how to format the output comma limited in certain order. (or if this is the best way of getting the data out)
Would someone have idea how this could be done?846954 wrote:
Thanks Frank!
I got much further now :).
I've got Oracle 10g So I used the "SYS_CONNECT_BY_PATH" for my query.
Now I get the output in the format I want, however, it comes out in the order that the attributes are (which is pretty random).The values you posted are in order: 'attval1' < 'attval2' < ...
So I'm using this now(had to use "|" as separator because SYS_CONNECT_BY_PATH would not work with comma due to some of the attval having comma in them ):The values you posted don't contain and commas.
You're hiding what the problem is. It would really help if you posted actual data. It always helps if you post CREATE TABLE and INSERT statements for a little sample data, and the results you want from that data.
Assuming you really have something that has to be in a certain order, and that order is not based on anything in the values themselves, then DECODE might be a good way to do it. Storing the sort value in a table might be even better.
It looks like you were using an Oracle 9 exanple. In Oracle 10, using SYS_CONNECT_BY_PATH is simpler:
SELECT id
, LTRIM ( SYS_CONNECT_BY_PATH (attval, '|')
, '|'
) AS attvals
FROM (
SELECT id
, attval
, ROW_NUMBER () OVER ( PARTITION BY id
ORDER BY DECODE (...)
) AS curr
WHERE id IN (
SELECT id
FROM table_1
WHERE data2 = 'xxx'
AND attname IN ('attname1','attname2','attname3','attname4','attname5','attname6')
WHERE CONNECT_BY_ISLEAF = 1
START WITH curr = 1
CONNECT BY curr = PRIOR curr + 1
AND id = PRIOR id
;You don't need two almost-identical ROW_NUMBERs; one will do just fine. -
Macbook mini DVI to DVI output problems
hi
I've been using a samsung syncmaster 22" with my macbook for about a year now with no problems using the mini DVI to DVI connection
then earlier this week i used a different DVI cable to plug my playstation 3 into the screen, when i plugged the computer DVI cable back into the screen lots of red/pink pixels have taken over the screen and when the desk is nudged red lines flash up
i thought it might be either the DVI cable or the mini DVI to DVI adapter and replaced both to no avail, i have also tested all the cables on other screens/with other computers, and tested the screen with my playstation. Screen and cables all work fine so i think it must be some kind of output problem, but cant work out what it could be seeing as nothing would have happened to the port on the actual computer whilst changing connections on the samsung screen
sorry for the long winded post, really wanna know what the problem is hereHi cbeth,
welcome to macbook forum.
For your friend macbook, try to press F7 back and forth to switch between mirror and expanded mode.
Try to update your macbook hardware firmware and software using software updater and repair permission after that...application/utilities/disk utility/repair permission.
Also reset your PRAM and PMU.
Open your friend system preference / display and try to compare and set yours similar to hers, including resolution, color depth, refresh rate.
Good Luck. -
Mac mini audio output problems
This is similar to a problem that appeared before, but with a different twist.
On 4 July all was well. On 5 July I switched on and there was no "chord" from the Mac. When I collected my mail - no sound from my speakers (which are part of my screen). Logged on to a couple of sites - no sound.
The System Profiler, under the "Audio (Built In)" category, says: "No Built-in Audio." I know that's wrong because it's always worked before and when I plug my headset in it works fine.
When I go to the Sound preferences panel in System Preferences, it finds the headset but if I unplug that it finds nothing.
I tried running the hardware test (by putting in the OS X install disc and holding D during startup.) It couldn't find a problem.
So, as far as I can see, audio output is fine for the USB headset output but not for the others. Is there a simple fix? The nearest Apple store is about 200 miles away and I don't fancy the idea of posting the Mac off.
(And I think it's still under warranty for a couple more weeks.)
Mac mini Mac OS X (10.4.10)hello mini users with the "no audio output" problem
it seems that there are faulty output jacks in the macbook and the mac mini
there are two things you can try:
i tried everything and began thinking about what new software i had installed. it was "macam" which enables you to use older webcams on OSX. i needed that to use my webcam on skype.
macam installs a file called "macam.component"
if you have the same, do this - take that file out of:
(your hard drive)/library/quicktime - macam.component
and just put it on your desktop
restart, then in your sound pref's choose your audio output (if doesn't work restart again)
the first time i took it out, i had my sound back instantly, another time i had to choose audio output in sound prefs. you kind of have to try different things. after you get your sound back, you can put back "macam.component" to use your webcam.
it seems macam causes the problem, the two can not work at the same time.
the second thing: if you dont have "maccam" try plugging and unplugging output jack a few times and restarting until you have sound.
the problem still could be with the OSX 10.4.10 update / quicktime...or maybe even a hardware problem like others with macbooks were saying (with the red light), not sure.
people with macbooks and who have the red light on, say to use a paperclip to turn off the switch inside.
my mini does not have a red light on. i tried using a paperclip but it doesnt work.
hope this helps, beleive me i feel your pain!!!!
what good is a computer without sound?
extremely annoying problem that i hope apple looks into and fixes
-andrew -
Report with PDF format in IExplorer problem
report with PDF format in IExplorer problem
Hi,
when i make the desformat=PDF it gave me error
"file does not start with '%PDF' " in the IExplorer despite i have updated version of Acrobat reader and IE.
I'm using this URL:
http://bss9i.stc.com.sa:7779/reports/rwservlet?destype=SCREEN&desformat=PDF&report=CR1.rdf&userid=webcr/webcr1@cr&p_cr='AP/63'.
Any suggestion is greatly appreciated.
Thanks.
Kamal KhafagyShouldn't destype be CACHE?
-
In previous OTN Forum format we used {code} to format sqlplus output , how to do in this version ?
Click on "Use Advanced Editor".
Highlight your code.
Click on the symbol >>
Select Syntax Highlighting
Select SQL...output looks like below:
select sysdate from dual; -
ICC profile to convert RGB to CMYK, jpeg is ok, png format have a problem
When I use ICC profile to convert RGB to CMYK, jpeg format is ok, but png format have a problem.the color is lossy.
It means, the png file color is shallow than jpeg file after convert.Could anybody help me?
thanks
source code
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
import javax.imageio.ImageTypeSpecifier;
import javax.imageio.ImageWriteParam;
import javax.imageio.ImageWriter;
import javax.imageio.metadata.IIOMetadata;
import javax.imageio.metadata.IIOMetadataNode;
import javax.imageio.stream.ImageOutputStream;
import org.w3c.dom.Node;
import com.sun.image.codec.jpeg.ImageFormatException;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
public class TestImage {
public static void main(String args[]) throws ImageFormatException, IOException{
BufferedImage readImage = null;
try {
readImage = ImageIO.read(new File("C:\\TEST.jpg"));
} catch (Exception e) {
e.printStackTrace();
readImage = null;
readImage = CMYKProfile.getInstance().doChColor(readImage);
writeImage(readImage, "C:\\TEST_after_.jpg", 1.0f);
protected static String getSuffix(String filename) {
int i = filename.lastIndexOf('.');
if(i>0 && i<filename.length()-1) {
return filename.substring(i+1).toLowerCase();
return "";
protected static void writeImage(BufferedImage image, String filename, float quality) {
Iterator writers = ImageIO.getImageWritersBySuffix(getSuffix(filename));
System.out.println("filename�F"+filename);
if (writers.hasNext()) {
ImageWriter writer = (ImageWriter)writers.next();
try {
ImageOutputStream stream
= ImageIO.createImageOutputStream(new File(filename));
writer.setOutput(stream);
ImageWriteParam param = writer.getDefaultWriteParam();
if (param.canWriteCompressed()) {
param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);//NO COMPRESS
param.setCompressionQuality(quality);
} else {
System.out.println("Compression is not supported.");
IIOMetadata metadata = null;
if(getSuffix(filename).equals("png") || getSuffix(filename).equals("PNG")){
ImageTypeSpecifier imageTypeSpecifier = new ImageTypeSpecifier(image);
metadata = writer.getDefaultImageMetadata(imageTypeSpecifier, param);
String sFormat = "javax_imageio_png_1.0";
Node node = metadata.getAsTree(sFormat);
IIOMetadataNode gammaNode = new IIOMetadataNode("gAMA");
String sGamma = "55556";
gammaNode.setAttribute("value", sGamma);
node.appendChild(gammaNode);
metadata.setFromTree(sFormat, node);
writer.write(null, new IIOImage(image, null, metadata), param);
writer.dispose();
return;
} catch (IOException ex) {
ex.printStackTrace();
}Hi,
I am having similar problems. I have read somewhere that png format can not handle CMYK colorspace anyway, which I find odd (and plainly stupid IM(NS)HO) which would mean that converting to RGB and therefore using profiles is mandatory.
May be you should check if the internal format of the png files claims it is RGB or CMYK (using ImageMagick's "identify" command for example).
HTH
JG -
Need Formatted html output from Xalan
We use xalan xslt processor to convert
xml document to html. Everything works
fine, except the output is unformatted html.
(ie. several HTML elements appear on the
same line. Some lines are longer than 1000
characters). This happens inspite of me
specifying the HTML elements in different
lines in the xsl.
I would like to know if there is any way, I can generate formatted html output.
Thankshave u tried
<xsl:output indent="yes"/>
in your stylesheet?
ravi <[email protected]> wrote:
We use xalan xslt processor to convert
xml document to html. Everything works
fine, except the output is unformatted html.
(ie. several HTML elements appear on the
same line. Some lines are longer than 1000
characters). This happens inspite of me
specifying the HTML elements in different
lines in the xsl.
I would like to know if there is any way, I can generate formatted html
output.
Thanks -
Formatting printer output for dotmatrix printer
Hi Experts,
i'm trying to format the output of the EPSON LQ-870 dot matrix printer to print the output in the paper size height 280 mm & width 210 mm.The device type i used for my output device is EPESCP2.For the first page the header and line items are coming correctly.But for the second page onwards, there is some space is coming between each line items.In third page,the header is coming little bit down from the required location.My page size is little bit less than the normal A4 size.How to rectify this?
Points will be rewarded if helpful.......
Thanks in advance.Hello,
I created a condition table '550 - Shipping point/plant'. Then I created an access sequence 'ZSH1' and assigned this condition table 550 to it.
In the output determination procedure, the procedure 'V10000 - Header output' has the condition type PL02 - BOL: Single Delivery assigned to it.
The assignments look like:
Step Counter Cond Type
10 1 LD00 Delivery Note
20 2 PL00 Packing list
30 3 PL01 Planning Slip
40 4 PL02 BOL: Single Delivery
In Assign output procedures, the entry corresponding to delivery type 'LF' is:
Del Type O/P procedure O/P Type
LF Delivery V10000 Header Output LD00Delivery Note
When I try to enter a new condition record using VV21, it does not show up this key combination 'Shipping point/Plant'.
Can someone tell me if I am missing some customization?
Thanks,
Rugmani
Edited by: Rugmani Rajan on Oct 22, 2008 3:06 PM -
Formatting the output (currency with decimals)
hi all,
i want to format the output of the currency field. Right now it displays the exact value like say 23 or 43.5 etc. But my requirement is i need it to display in a standard format as 23.00 , 43.50 , 565.00 etc. i,e if there is no decimals then it should be filled with zero's.
I have gone through some of the threads which speaks of formatting the output if it is a value node. But here i have directly bounded the table to a model node.
Domian level datatype of the field is Currency in R/3. After model import in dictionary it is showing as decimal.
How can i achieve this?I Appreciate if someone can help me on this.
Regards,
G Nidhi,
Go thru this link it might helps you.
column heading -refer to the webdynpro tutorial 34
Change the currency data type char and specify the length.
Thanks,
Lohi.
Maybe you are looking for
-
The following error details show up from Internet Explorer. Thanks in advance for any assistance one can provide. Background, we are a Websphere shop... The version of Websphere is 7.0.0.7. The PeopleSoft application server is Windows 2008 R2. Web
-
I have a Actionscript 2.0 project exported as Flash Player 9. We're using the FLVPlayback component to play external mp4 videos. Most of the mp4 videos are the same size but there are some are varying sizes. The player is currently setup with fixed w
-
Photo stream automatically deleting first photos with each new photo
once the photo stream on my 4s hit 1000 photos it started to delete the beginning of all of them. can i get those back? i dont understand why the new pictures are taking their place
-
Executing a Function in a Stored Procedure to Return Cursor
I have a function named f_CPCRBPBR who base on the following types CREATE Or Replace TYPE RecType_fAC AS OBJECT ( << Structure >>); CREATE Or Replace TYPE Tbl_fAC AS TABLE OF RecType_fAC; Create Or Replace Function f_CPCRBPBR ( i_Vtp Varchar2, i_Mnth
-
Hi, I have tried to restore settings on my Iphone due to problems I was having with the phone cutting out when talking on the phone, now Iphone shows Sim Failure, how can I get back to using my phone? Please help, its a business phone.