Unexpect line performanc​e
I have two problems here:
1. When I use make a 2D curve, it looks like the connect the last point of my data the the first point, the slash form time 1s to time 0s isn't my expect.(Please see the figure attached)
2.When I want to use 2 Y Axis, I can't change the begin\end of Y axis to make the two Y Axis align well, I want to know what I need to do?
Attachments:
error.PNG 15 KB
Hi ws.horton,
The first Y axis on DIAdem plots must stretch from 0% to 100% vertically. All subsequent Y axes can be configured at will to cover, say, 0% to 45% or 55% to 100%. Please try creating 2 additional Y axes and assigning the first of your curves to axis 2 and the second of your curves to axis 3.
Let us know if you still have trouble with this,
Brad Turpin
DIAdem Product Support Engineer
Similar Messages
-
Unexpected line breaks in output of a sql query
Hi,
I have a query which looks like:
set pages 0
set feed off
set newp 0
set lines 350
select LPAD(SUBSTR(COLUMN1,1,23),23),LPAD(SUBSTR(COLUMN2,1,42),42), SUBSTR(TO_CHAR(START_TIME,'HH24:MI:SS'),1,8),SUBSTR(TO_CHAR(END_TIME,'HH24:MI:SS'),1,8)
FROM TABLE1;
When executed using SQL*Plus this query puts a line break after each column and hence I get a record on several rows on the screen.
But the last two columns are printed on the same line. I suspect the LPAD is causing some problem.
I have two databases. It works perfectly on one and not on the other.
Is there a oracle parameter due to which the result is affected?
T&R,
BRKTry this:
set pages 0 feed off newp 0 lines 350 trims on
select LPAD(SUBSTR(COLUMN1,1,23),23)
, LPAD(SUBSTR(COLUMN2,1,42),42)
, TO_CHAR(START_TIME,'HH24:MI:SS')
, TO_CHAR(END_TIME,'HH24:MI:SS')
FROM TABLE1; -
Unexpected line weight changes
I was copy dragging a 0.5 pt line with the direct selection tool. Thought it looked a bit strange and sure, the copy's weight was now 1 pt.
Did I accidentally hit on a key combination that I didn't know about?
I held down Option and Shift and just dragged to make the copy.steve fairbairn wrote:
Why are you using the direct select tool rather than the select tool?
Merely because it is impossible to get an accurate snap with the select tool.
With the select tool only the bounding box (or container of the line) snaps.
I want the line itself to centre on the guide/grid line. Of course it can be done numerically, but t'other way's quicker.
You mentioned this before, I think, in a previous thread. As before, I will say that I hve no trouble snapping the center of the path, though I do need to zoom in, using the regular selection tool. What version are you using?
Is this still the rules in the catalog we discussed in the other thread? I thought you were going to use paragraph rules and position them as part of the style?
Some other thoughts. First, set the default stoke to be the same as the ones you are copying. That will solve the weight problem using the direct select tool. Second, if paragraph rules won't work, consider whether step and repeat would do it. You can make as many copies as you like and space them with absolute precision. -
Terminal generates so extra lines every time I use a pipe ? Any Ideas ?
I am trying to extract my Public IP using bash, and have figured out several ways to do this, but I am having some unexpected lines in the result.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 105 100 105 0 0 195 0 --:--:-- --:--:-- --:--:-- 0
Anybody have any idea how to get rid of the extra lines ?
I recently re-installed the OS on my machine, and switched over to bash. Ever since then every time I issue a command that contains a pipe, I am getting some extraneous lines before the result.
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](09:56PM) -> [username] ~ $ curl http://checkip.dyndns.org/
<html><head><title>Current IP Check</title></head><body>Current IP Address: 45.xxx.46.204</body></html>
Comment : Need to get rid of everything except "45.xxx.46.204"
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](11:03PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | tr '' '\012' | grep '\.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 105 100 105 0 0 611 0 --:--:-- --:--:-- --:--:-- 0
45.xxx.46.204
Comment : OK. This returns the correct value but it inserted 3 additional lines prior to the result.
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](09:56PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | tr '<[:alpha:]:/>' ' '
" 45.xxx.46.204 "
Comment : This inserts replaces the unwanted characters with spaces, if I try to replace using '' the empty space, then "45.xxx.46.204" dissapears. It seems like a bug to me that you cannot replace a character with an empty value.
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](09:57PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | tr '<[:alpha:]:/>' ' ' | sed -e 's/ //g'
45.xxx.46.204
Comment : OK. But requires an extra step...
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](09:57PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | tr '<[:alpha:]:/>' ' ' | sed -e 's/ //g' > ~/Desktop/IP_Address.txt ; open ~/Desktop/IP_Address.txt
Comment : This works fine, sends the correct result to a file. The three extra lines remain with the terminal and do not go to the output file
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](11:21PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | sed -e 's/<[^>]*>//g'
Current IP CheckCurrent IP Address: 45.xxx.46.204
Comment : This uses sed instead of tr, but I still have to get rid of "Current IP CheckCurrent IP Address: "
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](11:22PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | sed -e 's/<[^>]*>//g' -e 's/[a-zA-Z :\r\n]*//g'
45.xxx.46.204
Comment : OK. This returns the correct value but it inserted 3 additional lines.
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](10:37PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | sed -e 's/<[^>]*>//g' -e 's/[a-zA-Z :\r\n]*//g' > ~/Desktop/IP_Address.txt ; open ~/Desktop/IP_Address.txt ;
Comment : This works fine, sends the correct result to a file.
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](10:43PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g'
45.xxx.46.204
Comment : OK. This appears to be the easiest way to do this...
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](10:44PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' > ~/Desktop/IP_Address.txt ; open ~/Desktop/IP_Address.txt ;
Comment :
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](11:41PM) -> [username] ~ $ ifconfig | grep broadcast
inet 192.168.1.102 netmask 0xffff0000 broadcast 192.168.255.255
inet 192.168.1.153 netmask 0xffffff00 broadcast 192.168.1.255
Comment : Now for the Private Addresses, and the netmask...
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](11:46PM) -> [username] ~ $ ifconfig | grep broadcast | awk '{print $2 }'
192.168.1.102
192.168.1.153
Comment : Now for the Private Addresses...
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](11:49PM) -> [username] ~ $ curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' ; ifconfig | grep broadcast | awk '{print $2 }'
45.xxx.46.204
192.168.1.102
192.168.1.153
Comment : Here are the Public & Private Addresses
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.14.05](11:50PM) -> [username] ~ $ \
curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' ; \
ifconfig | grep broadcast | awk '{print $2 }'
45.xxx.46.204
192.168.1.102
192.168.1.153
Comment : This is a slightly different way to enter one command on each line
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.15.05](12:08AM) -> [username] ~ $ \
curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' > ~/Desktop/IP_Address.txt ; \
ifconfig | grep broadcast | awk '{print $2 }' >> ~/Desktop/IP_Address.txt ; \
open ~/Desktop/IP_Address.txt ;
Comment : The Public & Private Addresses are sent to a file, and the file is opened
-- ---------+---------+---------+---------+---------+---------+---------+---------
[2007.15.05](12:08AM) -> [username] ~ $ \
curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' \
~/Desktop/IP_Address.txt ; \
ifconfig | grep broadcast | awk '{print $2 }' \
~/Desktop/IP_Address.txt ; \
open ~/Desktop/IP_Address.txt ;
Comment : This is a slightly different way to view the commands
-- ---------+---------+---------+---------+---------+---------+---------+---------
#!/bin/bash
# ip.sh
testfile=/Applications/BBEdit.app/
if [ -d $testfile ] ;
then
# THE NEXT LINE GENERATES AN ERROR -> line 10: : command not found
echo ${testfile} exists!
fi
curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' > ~/Desktop/IP_Address.txt
ifconfig | grep broadcast | awk '{print $2 }' >> ~/Desktop/IP_Address.txt
if [ -d /Applications/BBEdit.app ]; then
open -a /Applications/BBEdit.app ~/Desktop/IP_Address.txt
else
open ~/Desktop/IP_Address.txt
fi
-- ---------+---------+---------+---------+---------+---------+---------+---------
-- ---------+---------+---------+---------+---------+---------+---------+---------
SUMMARY : [PUBLIC & PRIVATE ADDRESS]
-- ---------+---------+---------+---------+---------+---------+---------+---------
curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' ; ifconfig | grep broadcast | awk '{print $2 }'
-- ---------+---------+---------+---------+---------+---------+---------+---------
SUMMARY : [PUBLIC ADDRESS] THESE ALL WORK FINE
-- ---------+---------+---------+---------+---------+---------+---------+---------
curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g'
curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' > ~/Desktop/IP_Address.txt ; open ~/Desktop/IP_Address.txt ;
curl http://checkip.dyndns.org/ | sed -e 's/<[^>]*>//g' -e 's/[a-zA-Z :\r\n]*//g'
curl http://checkip.dyndns.org/ | sed -e 's/<[^>]*>//g' -e 's/[a-zA-Z :\r\n]*//g' > ~/Desktop/IP_Address.txt ; open ~/Desktop/IP_Address.txt ;
curl http://checkip.dyndns.org/ | tr '' '\n' | grep '\.'
curl http://checkip.dyndns.org/ | tr '' '\012' | grep '\.'
curl http://checkip.dyndns.org/ | tr '' '\012' | grep '\.' > ~/Desktop/IP_Address.txt ; open ~/Desktop/IP_Address.txt ;
curl http://checkip.dyndns.org/ | tr '<[:alpha:]:/>' ' ' | sed -e 's/ //g'
curl http://checkip.dyndns.org/ | tr '<[:alpha:]:/>' ' ' | sed -e 's/ //g' > ~/Desktop/IP_Address.txt ; open ~/Desktop/IP_Address.txt
-- ---------+---------+---------+---------+---------+---------+---------+---------
SUMMARY : [PRIVATE ADDRESS] THIS WORKS FINE
-- ---------+---------+---------+---------+---------+---------+---------+---------
ifconfig | grep broadcast | awk '{print $2 }'
-- ---------+---------+---------+---------+---------+---------+---------+---------
SUMMARY : [PUBLIC & PRIVATE ADDRESS] THESE WORK FINE
-- ---------+---------+---------+---------+---------+---------+---------+---------
curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' ; ifconfig | grep broadcast | awk '{print $2 }'
COPY CONTENT BETWEEN THE DASHED LINES AND PASTE IN THE TERMINAL
curl http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' \
~/Desktop/IP_Address.txt ; \
ifconfig | grep broadcast | awk '{print $2 }' \
~/Desktop/IP_Address.txt ; \
open ~/Desktop/IP_Address.txt ;
PROBLEM : I HAVE NO CLUE HOW TO GET RID OF THE THREE LINES:
They were displayed by the terminal everytime I used a pipe, but I removed them for the sake of clarity
Best Regards,
Bill Hernandez
Plano, TexasThank You Very Much for enlightening me to the "-s" flag, that solved the problem...
[2007.15.05](06:16PM) -> [username] ~ $ curl -s http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g'
45.xxx.46.204
( 1 ) Sure enough I was missing the "-s" flag, I kept thinking it was something to do with the pipes because if I just entered
[2007.15.05](06:21PM) -> [username] ~ $ curl http://checkip.dyndns.org
<html><head><title>Current IP Check</title></head><body>Current IP Address: 45.xxx.46.204</body></html>
( 2 ) It did not add the extra lines. They only appeared when I added a pipe. How bizarre...
( 3 ) Once I looked at the man pages the "-s" became more obvious. It is still odd...
[2007.15.05](06:21PM) -> [username] ~ $ man curl
-s/--silent
Silent mode. Don't show progress meter or error messages. Makes Curl mute.
If this option is used twice, the second will again disable mute.
THIS SOLVES THE PROBLEM :
[2007.15.05](06:21PM) -> [username] ~ $ \
curl -s http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' ; ifconfig | grep broadcast | awk '{print $2 }'
ANYWAY HERE'S THE FINAL SCRIPT...
-- ---------+---------+---------+---------+---------+---------+---------+---------
#!/bin/bash
# ScriptName : myip
# Author : Bill Hernandez
# Location : Plano, Texas
# Modified : Tuesday, May 15, 2007 (6:32 PM)
curl -s http://checkip.dyndns.org/ | sed -e 's/[^0-9\.]*//g' > ~/Desktop/IP_Address.txt
ifconfig | grep broadcast | awk '{print $2 }' >> ~/Desktop/IP_Address.txt
if [ -d /Applications/BBEdit.app ]; then
open -a /Applications/BBEdit.app ~/Desktop/IP_Address.txt
else
open ~/Desktop/IP_Address.txt
fi
-- ---------+---------+---------+---------+---------+---------+---------+---------
Best Regards,
Bill Hernandez
Plano, texas -
Place Excel file and keep accurate formatting
In my organization, InDesign is used for creating several rather comprehensive price lists (500 pages and more ...).
Needless to say, each price list contains a lot of tables. Currently we
create tables in Excel,
save it as pdf file and
place the pdf in InDesign
Of course, that's cumbersome (no Edit Original command --> each modification in the original table restarts the above mentioned process) - that gives us a hard time dealing with hundreds of tables...
It would be ideal to place Excel files directly - but after hours of trial & error I'm still not able to insert a table AND keep the accurate Excel-formatting. There are always some smaller or bigger deviations (unexpected line breaks, overset content, wrong line-styles, colors etc.)
What I did:
Enabled "Create Links When Placing Text and Spreadsheet Files" in the File Handling Preferences
Enabled "Import Options" when placing the Excel file
Choosed "Formatted Table"
It seems that some older xls files are more likely to raise problems. Newly-created xlsx files are fine most of the time (saving xls to xlsx doesn't make a difference though).
What are your experiences on importing excel files? Thanks for any hint!
Regards,
FlorianThanks, Willi.
The reason why we currently place our tables as PDF is, that we want to avoid any additional setup in InDesign. In fact we use InDesign "merely" to place & arrange all objects like tables, images, text etc. properly. There is no editing or formatting of content done in InDesign (Excel-spreadsheets are well-designed anyway) - I think otherwise our loads of price lists for different countries wouldn't be manageable at the moment ...
I'm just looking for a way to keep the advantage of placing PDFs (retain accurate form) and eliminate the disadvantages (additional step of saving each spreadsheet as PDF and lack of the "Edit Original" option).
Any ideas are appreciated!
Florian -
App Engine XMLP Report with PeopleTools 8.5
Hi All,
I have an issue with creating an XMLP report in App Engine using PeopleTools 8.5 / PSFT HCM 9.1. As Rowsets, XMLDoc objects are now depreciated as a datasource, I am using XML File as the datasource type.
In my code, I create an XMLDoc object populate an XML file I put on the app server to be used as the datasource. I have taken this XML file output and loaded it into the template builder within Word without any problem, so by that I trust that the XML is well-formed. I have also created the appropriate datasource, report definition for the report within the PIA.
My problem comes up when I try to run the report through System Process Requests. I run it as an XML Publisher process type and it gives me the following output. The error makes it appear like my XML is not formed correctly, but if that was the case, would it load into the template builder? If anyone can provide any insight into this problem, would be greatly appreciated. Below is snippets.
XML output file I use for the datasource:
<?xml version="1.0"?>
<root>
<employee>
<under_500>
<empl_num>
<![CDATA[115]]>
</empl_num>
<empl_pct>
<![CDATA[87.79]]>
</empl_pct>
<surv_num>
<![CDATA[16]]>
</surv_num>
<surv_pct>
<![CDATA[12.21]]>
</surv_pct>
<all_num>
<![CDATA[131]]>
</all_num>
<all_pct>
<![CDATA[1.49]]>
</all_pct>
</under_500>
</employee>
</root>Stdout file:
[081710_155732658][oracle.apps.xdo.common.xml.XSLT10gR1][UNEXPECTED] <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
[081710_155732659][oracle.apps.xdo.template.FOProcessor][EXCEPTION] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at com.peoplesoft.pt.xmlpublisher.PTFOProcessor.generateOutput(PTFOProcessor.java:88)
Caused by: org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:343)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
... 12 more
081710_172859989][oracle.apps.xdo.template.FOProcessor][ERROR] End Memory: max=63MB, total=13MB, free=2MB
Error generating report output: (235,2309) PSXP_RPTDEFNMANAGER.ReportDefn.OnExecute Name:ProcessReport PCPC:59808 Statement:1291
Called from:TEST83.MAIN.GBL.default.1900-01-01.Gen_Rpt.OnExecute Statement:193
Process 5805 ABENDED at Step TEST83.MAIN.Gen_Rpt (PeopleCode) -- RC = 24 (108,524)
Process %s ABENDED at Step %s.%s.%s (Action %s) -- RC = %s
PSAESRV completed service request at 17.29.00 2010-08-17
PeopleTools(8.50.11) AE SQL/PeopleCode Trace - 2010-08-17Trace file:
Line Time Elapsed Trace Data...
-------- -------- ------- ------------->
161 17.28.59 5487.402000 PCodeWTL(3/3): xdo.cfg path: D:\Apps\psoft\DEV1NAM\appserv\xdo.cfg
162 17.28.59 0.008000 PCodeWTL(3/3): Using Output Directory:D:\apps\psoft\DEV1NAM\appserv\prcs\DEV1NAM\files\XMLP\73148205-aa46-11df-8375-a29d367ea3a0\RptInst
163 17.28.59 0.000000 PCodeWTL(3/3): XML Publisher ProcessReport Job Start: 2010-08-17-17.28.59.000000
164 17.28.59 0.000000 PCodeWTL(3/3): Report Definition Name: TEST83
165 17.28.59 0.000000 PCodeWTL(3/3): Template ID:
166 17.28.59 0.000000 PCodeWTL(3/3): Language CD: ENG
167 17.28.59 0.000000 PCodeWTL(3/3): As of date: 2010-08-17
168 17.28.59 0.000000 PCodeWTL(3/3): Output format: PDF
169 17.28.59 0.000000 PCodeWTL(3/3): Actual output format: 2
170 17.28.59 0.006000 PCodeWTL(3/3): Actual template ID: TEST83_1
171 17.28.59 0.000000 PCodeWTL(3/3): Actual template date: 2010-08-11
172 17.28.59 0.001000 PCodeWTL(3/3): Actual Language Code: ENG
173 17.28.59 0.001000 PCodeWTL(3/3): TMPLFILE: D:\apps\psoft\DEV1NAM\appserv\prcs\DEV1NAM\files\XMLP\73148205-aa46-11df-8375-a29d367ea3a0\TEST83_1.xsl
174 17.28.59 0.000000 PCodeWTL(3/3): RTFFILE: D:\apps\psoft\DEV1NAM\appserv\prcs\DEV1NAM\files\XMLP\73148205-aa46-11df-8375-a29d367ea3a0\TEST83.rtf
175 17.28.59 0.014000 PCodeWTL(3/3): XSL template: D:\apps\psoft\DEV1NAM\appserv\prcs\DEV1NAM\files\XMLP\73148205-aa46-11df-8375-a29d367ea3a0\TEST83_1.xsl
176 17.28.59 0.000000 PCodeWTL(3/3): Xliff File:
177 17.28.59 0.008000 PCodeWTL(1/3): xmlpublisher PTFOProcessor.generateOutput error. XSL file:D:\apps\psoft\DEV1NAM\appserv\prcs\DEV1NAM\files\XMLP\73148205-aa46-11df-8375-a29d367ea3a0\TEST83_1.xsl Data file:D:\Temp\xmlOut.xml Xliff file: Output file:D:\apps\psoft\DEV1NAM\appserv\prcs\DEV1NAM\files\XMLP\73148205-aa46-11df-8375-a29d367ea3a0\RptInst\TEST83.pdf Format:2
XDOException:nullIf anyone could provide any help, would be greatly appreciated. Thanks!
JaredJared,
I'm facing EXACTLY the same issue as you have posted above.
The issue is at the statement (in PeopleCode) : &ReportDef.ProcessReport(&sTemplateId, %Language_User, %Date, &sOutputFormat);
And the trace is exactly the same as you have posted above. Were you able to resolve this issue?
Any help would be appreciated!
Thanks
Saad Umair -
Help with my Flash Builder code.
Hello,
I am getting two errors, well four but three are the same. 1083 && 1084.
here is my code, can someone look over it and tell me what I am doing wrong. I am fairley new to Flash Builder so please no harassement.
//Check The Login
var userName: String= "requestofone";
var passWord: String= "robots96";
if (userName == "requestofone" && passWord == "robots96"){
trace("Welcome requestofone")
}else{ (userName != "requestofone")
trace("User not found. Try again.")
}else if{ (passWord != "robots96")
trace("Password does not match our records.");
//Tire Pressure
var frontTires:Array = ['43', '43'];
var rearTires:Array = ['45', '45'];
if (frontTires:Array != uint: 43 && rearTires:Array != uint: 45){
trace("Get Your Tires Checked Out")
}else{ (frontTires:Array == uint: 43) && (rearTires:Array == uint:45)
trace("Tires pass the spec")}
Description
Location
1083: Syntax error: else is unexpected.
line 48
1084: Syntax error: expecting rightparen before colon.
line 56
1084: Syntax error: expecting rightparen before colon.
line 58
1084: Syntax error: expecting rightparen before colon.
line 58
I have been trying to figure this out for a while now. Please help.Not to be nasty or "harass", but you need to go back and learn the syntax. Each line of code should end with a semicolon, and I'm also not sure what you are trying to accomplish with your "else{(userName != "requestofone")". Are you trying to do a conditional test? If so you need to use an "else if". That said, the "else if" you do use is incorrect. The parens should come out side the curly braces like you did for the initial "if" condition, and the "else if" needs to come before your final "else" since that is where the flow will go when no previous condition is met.
Example:
if (a == b){
trace("do something");
else if (b == c){
trace("do something different");
else{
trace("do some default thing");
I hope this helps. -
Weird pixel behavior @ the bottom of the screen
A black line then a transparent line, building a shadow at the bottom of the screen. I researched for that and maybe i thought that it could be dead pixels, but i think it's not, because i guess dead pixels are red, green or blue.
have you guys seen this before?
PS i didn't restore it yet. Would it fix it?Hi xlipe,
Thanks for visiting Apple Support Communities.
If you are seeing unexpected lines on your iPhone 5 screen, try these steps first:
Display image issues
This can include bright or dark pixels, lines in video, or sections of video missing.
Try turning iPhone off and then on again.
Verify the issue is not content related, by viewing different content.
From:
iPhone: Hardware troubleshooting
http://support.apple.com/kb/TS2802
If the lines do not go away, I would recommend backing up and restoring your iPhone.
First, use the steps in this article to back up the device to iCloud or using iTunes:
iOS: Back up and restore your iOS device with iCloud or iTunes
http://support.apple.com/kb/HT1766
After the back up is complete, restore the device using the steps found here:
iTunes: Restoring iOS software
http://support.apple.com/kb/HT1414
Best,
Jeremy -
TS4268 emoticons show up as symbols in iMessage
In iMessage i can send emoticons but when people send them to me they show up as symbols.
Hello TCCCC,
Thank you for the details of the emoji issue you are experiencing on your iPhone 5s. If you are recieving a square or unexpected symbol, it may be that the sender is using another carrier or has a different version of iOS on their device. I recommend reviewing the following article for more information:
Symptoms
When using emoji in messages, mail, or other text fields, you may occasionally encounter the following:
Emoji may not display as expected or match the sent emoji.
Instead of emoji, the other device may display squares, equal signs, or question marks.
Unexpected line breaks may appear before or after the emoji.
You may be unable to reply to email messages that contain emoji or other unexpected characters. You may need to remove these to reply to the email.
Resolution
If any of the above issues occur, try to resend without using emoji.
Emoji does not appear correctly on the receiving device
Certain emoji characters may not display correctly on iOS devices, OS X, or on non-iOS mobile phones. When sent to these devices, the emoji characters may appear as blank space or boxes. This can occur when sending content with emoji to:
An iOS device on another carrier's network
A non-iOS device on your carrier's network or another carrier's network
When using Mail for OS X v10.7 or later (earlier versions of OS X do not support emoji)
See this article for more information.
You can find the full article here:
iOS: Troubleshooting emoji issues
http://support.apple.com/kb/ts2450
Thank you for using Apple Support Communities.
Best,
Sheila M. -
Gcov shows red even though debugger is reaching this particular statement
Hi,
My Eclipse IDE contains Eclipse Kepler version, MinGW compiler, binutils-2.25, GDB.
If you see the screenshot1, gcov hits are 0 at line no. 634, but line 636 has 16 hits.
Line 636 can have "n" no. of hits only when line 634 is executed.
As a proof you see in the Screenshot2 that line 32 is been called 16 times only from the function that is showing a red line at 634.
Is it bug in gcov?
If not how to interpret this red line?
I came across a case, where one of the statement in my C code was red and debugger was not able to reach, which a developer can come to conclusion that
there something logically wrong with the code.
But in this case where Debugger is able to reach this line 634 but still shown red by gcov tool, how to interpret this? As a proof Screenshot3 is been attached.
Any help would be greatly appreciable!
Regards,
Rashmi ThimmaiahHello,
please check the Gcov-manual:
https://gcc.gnu.org/onlinedocs/gcc/Gcov.html
About inline function:
Quote:Inlineable functions can create unexpected line counts. Line counts are shown for the source code of the inlineable function, but what is shown depends on where the function is inlined, or if it is not inlined at all.
For measurement you could change the function (remove the inline) .
Also disable any compiler optimization:
Quote:if you want to prove that every single line in your program was executed, you should not compile with optimization
regards -
i have a one year old ibook g4 and they first day i got it ive had problems with the screen.
its hard to describe but it shakes up and down so that the whole view liek shifts down and there is a blank grey area at the top of the screen. it will start one day and continue for a couple weeks and then just disappear and then happen again for a couple weeks.
ive brought my computer in twice and both times they said they have replaced the broken parts but im still having the same problem. i dont know what they are doing with it...
the problem is worse when it is not plugged in and just running off of the battery, and happens a lot when you move the screen.
can anyone help me pllleeeasseeee??? :'(There is a Repair Extension Program for iBook Logic Board.
http://www.apple.com/support/ibook/faq/
Symptoms:
* Scrambled or distorted video
* Appearance of unexpected lines on the screen
* Intermittent video image
* Video freeze
* Computer starts up to blank screen
Call Apple. Don't let them escape from it.
Martin -
Ironport C150 system corrupted
Help me !
We have new Ironport C150 and i update it. First update goes ok, but second update no. After updating i rebooted system, but web based management not work and when i started terminal connection comes this information:
AsyncOS 5.1 for IronPort C150
Welcome to the IronPort C150 Messaging Gateway(tm) Appliance
Traceback (most recent call last):
File "pycbox_main.py", line 180, in ?
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 103, in _impo
rt_hook
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 192, in _impo
rt_top_module
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 219, in impor
t_top
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 274, in _impo
rt_one
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 304, in _proc
ess_result
File "./cli/cli.py", line 34, in ?
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 103, in _impo
rt_hook
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 192, in _impo
rt_top_module
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 219, in impor
t_top
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 274, in _impo
rt_one
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 304, in _proc
ess_result
File "./cli/cdict_cli.py", line 9, in ?
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 103, in _impo
rt_hook
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 192, in _impo
rt_top_module
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 219, in impor
t_top
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 274, in _impo
rt_one
File "/usr/build/godspeed/stackless/Python/Lib/imputil.py", line 304, in _proc
ess_result
File "./cli/cli.py", line 30552, in ?
File "./config/config_access.py", line 982, in get_cluster_section_dict
File "./config/config_access.py", line 750, in load_definitions
config_access.ConfigError: Definition file /usr/godspeed/config/hermes.reporting
/def.cfg is corrupt. Unexpected line format: 'alert_thresholds:li'
It looks like the system is corrupted. How i can start Ironport for "factory settings"... as same that it was when i bougt it.
Thanks for helpHad a few customers that have had this same problem. Something to do with the database/config getting corrupted because the unit was power cycled before the update was complete.
The way we fixed it was to get Ironport engineers to log in via a tunnel and revert the system to the previous image.
System came back up; got the customer to upgrade the unit via the CLI so they could check the status of the upgrade and give it plenty of time to reboot and come back up. -
Polycom phones with CUCM registration issues
I have Polycom IP5000 phones running UC software 4.1.1 which do not stay registered with CUCM 9.1 for more than couple of seconds, I created digest user with username matching the DN of the phone, the phone registers for few seconds but then unregisters and stays unregistered for long period of time. Does anyone have a good guide or tips on how to make these phones work?
Polycom logs are not very helpful as all I see is this:
000118.316|so |*|03|Network initialized. Starting network tasks.
000118.316|ice |5|03|Network ICE stack failed to initialize in 5000 ms
000118.316|log |*|03|Install file upload callback for 'so'
000118.346|sip |*|03|Sip Register Usr:01026002 Dsp:01026002 Auth:'01026002' Inx:0
000118.354|sip |*|03|Fast Boot Measurement Point: Ready for Call, uptime: 78.354 sec.
000118.356|app1 |4|03|[AppHybridC::procCfgParamChange] unexpected line index=(-1)
000118.440|app1 |*|03|Ctx [0] Registered [true]
000119.820|cfg |4|03|Prov|Download of master configuration file failed
000119.820|cfg |4|03|Prov|Trying to boot from existing configuration
000120.798|cfg |*|03|Prov|Finished updating configuration
0630094436|cfg |4|03|Prov|Download of master configuration file failed
0630094436|cfg |4|03|Prov|Trying to boot from existing configuration
0630094436|cfg |*|03|Prov|Finished updating configuration
0630094436|log |4|03|UtilLogC::uploadFifoLog: upload error. protocol 0 result = -1
0630094436|log |4|03|UtilLogC::uploadFifoLog: upload error. protocol 0 result = -1
0630094436|log |4|03|UtilLogC: Upload succeeded. (ConsecutiveFailures 1 Total 1 MsgSendErr 0)
0630094438|utilm|4|03|uBLFCompressed: File /ffs0/local/local-directory_xml.zzz does not exist or is empty
0630094441|utilm|4|03|uBLFCompressed: File /ffs0/local/local-directory_xml.zzz does not exist or is empty
Chris000119.820|cfg |4|03|Prov|Download of master configuration file failed
it looks like you do not have configuration file for this phone
check is it in default device profiles? -
Apparent problem parsing message headers
I'd like to know if anyone has run into this issue. I noticed in a friend's reply to one of my messages, that there was the raw source from another e-mail message that should have been in my inbox. In other words, mail combined both the message from my friend and the other message and they both were in my outgoing reply (I quote messages by default when replying.)
What I think is happening is that there is an unexpected line in the message header that mail is not parsing properly, so it runs two messages together. The problematic message was an announcement from the iTunes store that the latest episode of "Heroes" was available for download.
Here is the start of a header Mail didn't have a problem with:
Received: from psmtp.com (exprod5mx138.postini.com [64.18.0.93])
by paul.gloryworks.com (8.9.1b+Sun/8.9.3) with SMTP id RAA28654
Now the problem header:
From [email protected] Tue Nov 7 09:44 PST 2006
Received: from psmtp.com (exprod5mx143.postini.com [64.18.0.98])
by paul.gloryworks.com (8.9.1b+Sun/8.9.3) with SMTP id JAA24507
Note the extra line at the beginning, "From donotreply..." That seems to be the problem. I've seen this happen with one other message today that had the same "extra" line at the top of the message header.
So, can the Mail developers be made aware of this? I've actually seen this happen in Netscape mail before. Is there a way to split those messages and get the two separate messages back once they have been downloaded from the POP server, or am I stuck with the combined messages?
Thanks for any insight that anyone can offer!! If someone can make the Mail developers aware of this issue, that would be great.Hi there SRQdoc!
I definitely don't like error messages and I'm sorry you're receiving this one! This particular error message occurs when the VZW Apps has a glitch while updating.
We're working with Samsung to prevent this from happening in the future but there is a way to correct it now.
To clear out the corruption I would first recommend ensuring all of your personal information is backed up. Your contacts generally save to gmail/backup assistant. Your media is usually on your SD Card but you can also transfer it to your computer. You can redownload your applications by visiting google.com/play and choosing My Android Apps.
Once you've ensured all of your info is safe and sound I would recommend a Hard Reset of your phone. You can find the steps here:
http://support.verizonwireless.com/clc/devices/knowledge_base.html?id=41381
Keep us posted!
Thanks,
MelissaM_VZW
Follow us on Twitter @vzwsupport -
Hi,
I have a SP that executes a query and writes the output to a OS file. If I execute this from toad or any tool there is a field VARCHAR2(500) which is readable and looks OK.
However, when this is written into a file or the .txt generated imported into anything all the lines are broken
Example:
0|1;30/11/10|01/01/01;E;2|PRUEBA|R;98|0;PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA
PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA
PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA
;832734;0;C;01/01/01|0|0;0;-;-;-;-|-|-|-|-;7|PRUEBA PRUEBA PRUEBA PRUEBA |7|0;1|PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA |1|3;0|-|-|-;0|-|-|-
0|1;30/11/10|01/01/01;E;Importing the file into e.g. excel using ; as a separator will make this data to be present in 4-5 rows instead of one.
How can I fix this? I have set a maximum lenght of line well above the top value when I do UTL_FILE.FOPEN so this is not the problem.
Thank you in advance.Can you post the UTL_FILE code you're using to open the file and write the data? Have you opened the file in a hex editor to confirm that the unexpected line breaks exist in the file before you run the import process and that these aren't artifacts of whatever import process you're running? Have you DUMP'd the data from the VARCHAR2(500) variable to confirm that there are no line breaks in the data?
Justin
Maybe you are looking for
-
CONSOLIDATION BETWEEN TWO COMPANY CODES
hello! plz help me to make a doc n configuration in: CONSOLIDATION BETWEEN TWO COMPANY CODES in version 6.00 mail id: [email protected] regards sirisha
-
Dynamic images? Help greatly Appriciated!
I've searched the web for quite a while now, and cannot find a definate answer to my problem. I'm trying to dynamically load about 10 images into their own movie clips, all of which will be on the screen at the same time. It needs to be dynamic becau
-
HP 5510 Photosmart Printer - will not print in color
Just installed brand new HP color ink for Cyan, Magenta, and Yellow cartridges in my HP 5510 Photosmart Printer. Printer will only print in black . After doing Print Quality Report, it still only prints in black. Also, tried cleaning print head. St
-
Turning on thumbnails in layers palette
I accidently turned off thumbnails in the layer palette and now have graphics only. How do I get my thumbnails back? Don
-
CS3 under 10.6.7 gives Access Privileges error
Alright. Here's the error message: So we encountered this problem on a teacher's iMac (20" early 2008 models w/ ATi graphics running 10.6.7) last week. I have encountered this before and normally, the steps outlined on this Adobe KB article for deali