I have a backslash in a webadress.
I have a backslash in a web address. The address can fit on one line, but when there is a backslash in it the address is unnecessarily split up onto two lines. I hid the text field and checked behind it to make there there weren't any objects moving it around.
Remember, though, that that can cause bad linebreaks or oversets later when you edit and the position changes. I suspect the reason it's breaking is the paragraph composer is trying to give you a balanced line ending.
Similar Messages
-
I have a script where the prompt directory is a parameter exposed on the "Application Management" web page.
The way the script is structured is that it expects the directory name to have a backslash at the end of it. Example
In the script the full prompt path is created such as: (all variables are string)
FullPromptFile = DirectoryName\ + Filename.wav
In all the past versions of UCCX that I've worked with (4,7,8,8.5,9.x) I could edit the directory path name, as a parameter, on the AppAdmin web page including the trailing backslash and it would save and work properly.
In UCCX 10.5 when I save it, the backslash is simply removed. The save appears to work correctly but going back to the webpage the backslash at the end of the string (inside the quotes) is simply gone.
Tested in multiple browsers (IE 10 and FF 30) and multiple workstations
See screen captures below.
After the SaveI opened a TAC case on this issue.
Turns out this change was made in UCCX 10.0 and forward.
Prior to 10.0, the backslash was accepted in the web interface for an application parameter.
The fix is to use a forward slash in all file and URL paths.
The interesting part, the script "engine" still works fine with file and directory paths using a backslash in 10.5. Its only the web interface change, under app admin, that is causing the issue.
I agree with TAC's recommendation that all file and URL paths use the forward slash instead of the backslash on the Linux platform. This is the case of using scripts previously developed and that used to work but should have been changed to use the new Linux method.
There was nothing in the release notes about this.
Heads up to all. -
Very simple question.... how to cancel the backslash as an escape method
I am very new to java and I am making a program which involves using backslashes to draw a picture. Unforuntatly, when I try to build the program the backslashes show up as illegal escape characters. I know that when you have a backslash it alters the meaning of the character following it...so what character do I use so the print() doesn't use this as an escape character. Any help would be appreciated...this program is due tomorrow at 2:00 pm
Hardcoding is putting data in your code. This is unavoidable to an extent, but when overused it can make messy, hard-to-maintain code.
For example, one might do this:public int calcSizeOfCoffin(int height) {
return height * 1.2;
}which is fine until you want coffins to be 1.3 times the person's height. It would be slightly better to put "1.2" as a constant in the class at the top of the class definition; at least it's easier to find:private final static double PERSON_TO_COFFIN_RATIO = 1.2;
public int calcSizeOfCoffin(int height) {
return (int) ((double) height) * PERSON_TO_COFFIN_RATIO;
} but better yet it should be in a configuration file.
To appreciate this, consider that calcSizeOfCoffin() may be buried in hundreds of lines of code, so finding that "1.2" could be a real pain.
But anyway, I was just guessing that if you have a lot of backslashes for display, then you might have a lot of hardcoded data, and a different approach, even a different algorithm, may be in order. -
Character '\' is lost when reading a String from a property file.
Hi all,
I have encrypted information inside a property file, but when loading properties in my program, the String object used to store the value is changed by the lost of all �\� characters
# EIS password saved in the property file
password=WPLqQE0DlVF8Sg\=\=
#Value loaded in my String object
WPLqQE0DlVF8Sg==
Why is this happening? I use java.util.Properties java class to store and load my properties, and it is supposed to do it with the same encoding (ISO 8859-1).
Please, can someone explain me why this happened and how to solve it?
Best regards.public static void main(String[] args) throws IOException {
OutputStream props = new FileOutputStream("test.properties");
Properties p = new Properties();
p.put("password", "pass=word#is!dumb");
p.put("user", " I am a Dummy");
p.store(props, "Java forum demo props file");
props.close();
/* Properties file after store
* user=\ I am a Dummy
* password=pass\=word\#is\!dumb
Properties post = new Properties();
post.load(new FileInputStream("test.properties"));
for(Iterator it = post.entrySet().iterator(); it.hasNext();)
System.out.println(it.next());
* After load from test.properties
* user= I am a Dummy
* password=pass=word#is!dumb
}Notice that the special chars are only in the file, not actually in the props. If you think otherwise, I don't know what to say. The \ is a special character that is used to escape other special chars, including itself. You can't create a string in java containing only one backslash, as java assumes the next char is being escaped. when you create a string in Java with one backslash, you have to have 2 backslashes. If you are storing data in the property file using something other than store, than you need to ensure that you are escaping all special charachters that the store method does
~Tim -
Image does not appear in preview
I want to put logos for facebook, twitter, RSS, and Flckr on mainindex page and othher directory pages. The images appear in design but not when I preview in Firefox. instead the alt text appears. How do i get the images, not the text to appear?I do have the backslash in front of the next lower level directories.
It is not online yet. it's stil inthe development phas and I only have an offline version. here is the code for the main index, the one that works
<h3>
<strong><a href="Index.html">FOLLOW</a>: </strong><a href="http://feeds.feedburner.com/AndySmithPhotographyBlog"><img src="Images/feed-icon-28x28.png" alt="RSS feed" width="28" height="28" /></a> <a href="https://twitter.com/astherev"><img src="Images/twitter-bird-white-on-blue-small.jpg" width="29" height="29" alt="twitter account" /></a> <a href="http://www.facebook.com/pages/Andy-Smith-Photography/158899207459937"><img src="Images/f_logo-small.jpg" width="29" height="29" alt="facebook" /></a> <a href="http://www.flickr.com/people/astherev/"><img src="Images/Flickr-red-64-1.png" width="29" height="29" alt="flickr" /></a><a href="http://www.andySmithPhotography.com/wordpress"> BLOG</a></h3>
Here is the link for the next level directory:
<h3 align="center">
<strong><a href="Index.html">FOLLOW</a>: </strong><a href="http://feeds.feedburner.com/AndySmithPhotographyBlog"><img src="/Images/feed-icon-28x28.png" alt="RSS feed" width="28" height="28" /></a> <a href="https://twitter.com/astherev"><img src="/Images/twitter-bird-white-on-blue-small.jpg" width="29" height="29" alt="twitter account" /></a> <a href="http://www.facebook.com/pages/Andy-Smith-Photography/158899207459937"><img src="/Images/f_logo-small.jpg" width="29" height="29" alt="facebook" /></a> <a href="http://www.flickr.com/people/astherev/"><img src="/Images/Flickr-red-64-1.png" width="29" height="29" alt="flickr"/></a><a href="http://www.andySmithPhotography.com/wordpress"> BLOG</a></h3> -
LabVIEW serial command does not appear to complete until I open a Hyperterm.
I can command my device using hyperterm. However, the LabIEW command does not appear to complete. I issue the command in LabVIEW and then open the hyperterm to verify the command was recevied (status query). When I start the hyperterm session (with a carriage return), I get a response from the device stating that it is performing the requested action, and then (after 1-2s) a response stating that the action has completed. I have tried commanding using both the VISA protocol and the basic serial I/O. I have also tried , and as my termination character in LabVIEW.
But are you explicitly sending the termination character from LabVIEW? Just setting the termchar applies only to read operations, not writes.
If you want VISA to send the termchar for you on write operations, set the property "ASRL End Out" to "TermChar".
And if you are appending the termchar manually to the strings you send, make sure your LabVIEW strings have the backslash codes view turned on so you're actually sending the right code (instead of sending an actual backslash code itself across the serial cable).
Dan Mondrik
National Instruments -
Lucreate fails to create boot environment
Hi,
I'm trying to create a boot environment, but the lucreate fails with the following error message:
# lucreate -n solaris10 -m /:/dev/dsk/c0t2d0s0:ufs
Please wait while your system configuration is determined.
Determining what file systems should be in the new BE.
/usr/sbin/lustatus: illegal option -- d
USAGE: lustatus [-l error_log] [-o outfile] ( [-n] "BE_name" )
WARNING: The BE_name should be enclosed in double quotes.
Template entry /:/dev/dsk/c0t2d0s0:ufs skipped.
luconfig: ERROR: Template filesystem definition failed for /, all devices are not applicable..
ERROR: Configuration of BE failed.I have tried the BE_name with and without double quotes but still no luck. I have also checked the target partition and it does contain the "wm" flag:
partition> print
Current partition table (original):
Total disk cylinders available: 33916 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 32969 132.81GB (32970/0/0) 278530560
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 33915 136.62GB (33916/0/0) 286522368
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 swap wu 32970 - 33915 3.81GB (946/0/0) 7991808Does anybody have an idea what causes this issue? I would greatly appreciate any help.
Thanks!
Cindyconrad_user wrote:
I'm trying to use the following command to create a boot environment on c1t1d0s0 (currently the system booted from c1t0d0s0) as you can see below the -m option is not recognized. What am a I doing wrong? Please help?
# lucreate -m /:/c1t1d0s0:ufs \ -m -:/dev/dsk/c1t1d0s1:swap -m /usr:/dev/dsk/c1t1d0s6:ufs -n solaris 10
ERROR: command line argument(s) < -m> not recognized
No, it seems to be saying " -m" (so <space>-m, not -m) is what's not recognized.
In your command line, you have a backslash between ufs and the -m. That's escaping the space in front of the argument. Any reason you've put the backslash there?
Darren -
Converting strings with line feeds to a single line with identifying chars
Hi, I dont want to re invent the wheel if there is something out there that does this already. I want to take some string with multiple
line feeds and convert it to a single line. For example:
"I want this string
to be changed to
a single line"
to this...
"I want this string\r\n to be changed tor\\n a single line"vsekvsek wrote:
OK, Hope this will make better sense. So right now a I have a routine that loads files like below:
"TEST\r\n TEST1\R\n TEST2"It's not clear to me at this point what you mean by that string.
After the initial word TEST, does that string have a backslash character followed by an r followed by another backslash followed by an n? Or does it have a carriage return followed by a line feed. (\r followed by \n)
We format it when loading in a way that it will look like this when queriing from the DB
"TEST
TEST1
TEST2"It doesn't look like anything "when querying from the DB." That part doesn't make any sense.
Either the string has a backslash followed by an r, in which case when you render in in a text editor or on a console it will look like a single line with a visible backslash character followed by an r, or it has a carriage return (\r) in which case it will look like multiple lines when rendered in a text editor or on a console.
Later I re-extract it to a file from the DB and What confuses me is when I inspect the string it looks like this
"TEST\r\n TEST1\R\n TEST2"How are you inspecting it? If it's in a debugger or similar tool, it's not uncommon for it to be showing a carriage return character (\r) as a visible backslash followed by an r, rather than interpreting it and rendering a new line. This is so that you can see exactly what characters are in there, rather than wondering about the specific whitespace.
>
but it extracts to my file like
"TEST
TEST1
TEST2"
So I guess there are some hidden cr's or something messing it up that I need to manipulate but not sure how to apprach it?I still don't know what you're trying to do, or if you even have an actual problem with your data or are simply not understanding what you're seeing. -
Seeking Spry Gallery mouseovered thumbnail identifier/ID
Hi!
I would like to ask my earlier question about the Dynamic
Image Preview extension in a different way. I think my point was
not clear.
Operating in a Spry gallery of thumbnails with my images in
‘images/’ directory, what is the identifier that will
give the name of the thumbnail image being currently mouseovered
and make it possible to go to the images directory and extract the
main image?
Do I write it as
‘images/{Ds_CurrentRowID}{photoname)’ or ‘images/
+ {Ds_RowID}(photoname}’ or what?
Thanks!
MikeHi Don,
Many thanks for your patience!
Latest news:
Good heavens! I put that version up again (
http://www.worldseniorcharityrugby.org/index2.php)
and the third column appears to work for the top image! The images
are too big - I will upload smaller ones.
I see another problem: any ideas why it may not work for the
second or third image? Could it be the numbering in the 'link' part
is replicated by Spry?
I put a version up again - on the page there are 5 images per
record. I am just focusing on the third & fourth of those
images involving {photo3} and {photo4} until I get the answer.
Looking at your site again I think the below is getting a bit
nearer to the answer -
I have put backslashes since it is inside javascript - is
that right?
To put the setCurrentRow before the
'javascript:createPreviewImage ..' would seem to be the best way
but it won't work!
I wonder whether this extension can actually be intregrated
into Spry! I hope it can.
Mike
<div align="center"><a href="Link502072C0"
id="Link502072C0" style="cursor:help"
onmouseover="javascript:createPreviewImage('TSPreviewImagePanelID502072',
DsIndividuals2.setCurrentRow(\'{ds_RowID}\'); '{photo3mes}',
'../images/{photo3}', 'Link502072C0',600,450, true)"; <img
src="<?php echo $objDynamicThumb4->Execute(); ?>" alt=""
name="photo3" height="66" border="0" align="middle" id="photo3"
/></a></div>
</div>
</div></td>
<td width="70"><div>
<div>
<div align="center"><a href="Link502072C0"
id="Link502072C0" style="cursor:help"
onmouseover="DsIndividuals2.setCurrentRow('{ds_RowID}');
javascript:createPreviewImage('TSPreviewImagePanelID502072',
'{photo4mes}', '../images/{photo4}', 'Link502072C0',600,450,
true)"; <img src="<?php echo $objDynamicThumb4->Execute();
?>" alt="" name="photo4" height="66" border="0" align="middle"
id="photo4" /></a></div>
</div> -
Hi,
what is the connection between sed regex rules and java regex rule. Is there an easy way to convert sed to java? or do i have to learn sed?....
ThanksIIRC, Java regex rules are like Perl's (although the syntax for invocation differs a bit), and Perl's are basically a superset of sed's, except there's a difference with parentheses. In Perl/Java, parentheses always group and you have to backslash-quote them to make them interpreted as plain parenthesis characters, whereas in sed, you backslash-quote them to make them be interpreted as grouping indicators.
Why? What problem are you having? -
Does anyone know why I keep gettin an "unknow error" message in pages when I'm trying to export a file to a word doc?
Do you have a backslash / or other Windows illegal character in the name for the file?
Peter -
http://www.benefitsinc.com
Images not appearing on website, site looks fine in safari and ie,
Firefox 11The first to do in cases like this if you've uploaded new files is to reload web page(s) and bypass the cache.
*Press and hold Shift and left-click the Reload button.
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Cmd + Shift + R" (MAC)
You have images on your web page that have a backslash in the URL that Firefox escapes a %5C and that do not work.<br />
You can see those images as grayed in the Tools > Page Info > Media window.
*http://www.benefitsinc.com/images%5Cwb5.jpg
*http://www.benefitsinc.com/images%5CBI-Button1.jpg
*http://www.benefitsinc.com/images%5CBCo-Button1.jpg
*http://www.benefitsinc.com/images%5CBT-Button1.jpg
*http://www.benefitsinc.com/images%5CBP-Button1.jpg
*http://www.benefitsinc.com/images%5CBX-Button1.jpg
*http://www.benefitsinc.com/images%5CBTX-Button.jpg
*http://www.benefitsinc.com/images%5CBHR-Button1.jpg
*http://www.benefitsinc.com/images%5CBTK-Button.jpg -
Impossible string replacement (replace \' by '' )
Hello,
I would like to replave sequence of character \' by '' in a string.
I did a lot of tests but it never worked!
Here is the code I have now
szTemp = szTemp.replaceAll("\\\'""''");
Thanks in advance for your help
Alain.OK, just to make it more clear... :)
In the first string of replaceAll function I have 3 backslash and 1 simple cote and in the second string I have 2 simple cote.
Alain. -
Lucreate -m fails to create boot environment. error: -m not recongnized?
I'm trying to use the following command to create a boot environment on c1t1d0s0 (currently the system booted from c1t0d0s0) as you can see below the -m option is not recognized. What am a I doing wrong? Please help?
# lucreate -m /:/c1t1d0s0:ufs \ -m -:/dev/dsk/c1t1d0s1:swap -m /usr:/dev/dsk/c1t1d0s6:ufs -n solaris 10
ERROR: command line argument(s) < -m> not recognized
Usage: lucreate -n BE_name [ -A BE_description ] [ -c BE_name ]
[ -C ( boot_device | - ) ] [ -f exclude_list-file [ -f ... ] ] [ -I ]
[ -l error_log-file ] [ -M slice_list-file [ -M ... ] ]
[ -m mountPoint:devicePath:fsOptions [ -m ... ] ] [ -o out_file ]
[ -s ( - | source_BE_name ) ] [ -x exclude_dir/file [ -x ... ] ] [ -X ]
[ -y include_dir/file [ -y ... ] ] [ -Y include_list-file [ -Y ... ] ]
[ -z filter_list-file ]conrad_user wrote:
I'm trying to use the following command to create a boot environment on c1t1d0s0 (currently the system booted from c1t0d0s0) as you can see below the -m option is not recognized. What am a I doing wrong? Please help?
# lucreate -m /:/c1t1d0s0:ufs \ -m -:/dev/dsk/c1t1d0s1:swap -m /usr:/dev/dsk/c1t1d0s6:ufs -n solaris 10
ERROR: command line argument(s) < -m> not recognized
No, it seems to be saying " -m" (so <space>-m, not -m) is what's not recognized.
In your command line, you have a backslash between ufs and the -m. That's escaping the space in front of the argument. Any reason you've put the backslash there?
Darren -
I'm using NetBeans IDE 5.5.
package scalar;
* @author UndergroundPassion
public class Main {
/** Creates a new instance of Main */
public Main() {
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
int a[3], b[3], c[3];
int x;
for [i = 0 to 2] {
a[i] = i;
b[i] = 2 � i;
c[i] = 999;
proc row[i = 0 to 2] {
c[i] = a*b[i];
x = c[2];
I keep getting this:
init:
deps-jar:
Compiling 1 source file to G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\build\classes
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:28: ']' expected
int a[3], b[3], c[3];
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:28: not a statement
int a[3], b[3], c[3];
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:28: ';' expected
int a[3], b[3], c[3];
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:28: not a statement
int a[3], b[3], c[3];
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:30: '(' expected
for [i = 0 to 2] {
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:30: illegal start of expression
for [i = 0 to 2] {
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:30: ';' expected
for [i = 0 to 2] {
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:30: not a statement
for [i = 0 to 2] {
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:30: ';' expected
for [i = 0 to 2] {
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:32: illegal character: \8211
b[i] = 2 � i;
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:32: not a statement
b[i] = 2 � i;
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:35: ']' expected
proc row[i = 0 to 2] {
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:35: ';' expected
proc row[i = 0 to 2] {
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:35: not a statement
proc row[i = 0 to 2] {
G:\YR4 SEM2\COM577J2 Concurrent and Distributed Systems\Lectures\Week2\Scalar\src\scalar\Main.java:35: ';' expected
proc row[i = 0 to 2] {
15 errors
BUILD FAILED (total time: 0 seconds)Well, if there are any paths in the code that have a backslash in then, "\", then those are probably a start of your problem: in Java a backslash has to be escaped by using 2 backslashes "\\". So if you are trying to make a path to "C:\myStuff\Source", then in java it would have to be either "C:\\myStuff\\Source" or change the backslash to a forwardslash "C:/myStuff/Source". But in the errors you have there, it's probably something simple like that causing the errors.
Maybe you are looking for
-
I've unsuccefully spend almost three days on the web to find the solution to a particular problem. The configuration I'm running is as follow: - one Airport Express attached to the Orange box to communicate through internet - one printer attached to
-
Got some questions concerning iMovie 8: 1. When I try to trash "rejected clips", a dialogue box says I can't, and that I don't have enough disk space! I did empty the trash, as the instructions said. I am using an external hard drive to hold the sour
-
Attributes for the XI field , when it is posting data to a CLOB field in DB
Hi all.. In my scenario XI is posting data to a database using StoredProcedure, in which one of the fields is of CLOB type and is declared as IN parameter. Now what are the attributes to be used in xi for this field. 1) is it only isInput 2) or both
-
WCF-SQL Adapter Hangs in Active State for hours
I'm at a new client, and doing a simple test with a content-based-routing solution picks up a file, maps it, and is supposed to update a SQL database. The WCF-SQL send port is stuck in the "active" state. No messages in EventLog. If there's an iss
-
Jsp:useBean error.
Under webapps\CustSys\web-inf\classes, I have save my CIS.class file. Is this the rite way to access the java class file : doReport() is a function inside the class file. Inside test2.jsp: <jsp:useBean id="report" scope="application" class="CIS"/> <h