Creating same-name directories, different cases
I'm trying to set up two directories with basically the same name but different cases:
domain.com/DirectoryName
domain.com/directoryname
Just because I know someone will type it in the second way assuming it will work, since the typical user does not know urls can be case-sensitive. The first directory will just redirect to the second.
My problem is that Dreamweaver won't allow me to create the two directories because it considers them to be the same (and is giving me the "folder already exists" error), regardless of the cases. Does anyone know how to work around this?
I don't follow. Physical directories never can have the same name inside the same parent directory on Windows or Mac, so it's nothing related to DW. They can on Unix systems, but that's a whole different matter and in your case an exclusive one of the server configuration. This needs to be done with aliases, symbolic links, resource mapping or URI forwarding on the server, not on how you design your webpage locally. A browser URL is just a virtual directory/ path and not immediately related to the actual physical structure and because of that, it's the server's responsibility to either convert the characters or not.
Mylenium
Similar Messages
-
How to create directories with same name in different schemas
I have two schemas on the same database.
I am trying to create directories with same name, but different paths in both the schemas.
When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
Is there any solution to create directories with same name, but different path in two different schemas on the same database.
Thanks,
Sridhar.Hi,
>>When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
If you have removed the REPLACE clause of your create statement, then you would see that is not possible.
SYSTEM> connect scott/tiger
Connected.
SCOTT> create directory mydir as '/tmp';
Directory created.
SCOTT> connect legatti/pwd
Connected.
LEGATTI> create directory mydir as '/tmp';
create directory mydir as '/tmp'
ERROR at line 1:
ORA-00955: name is already used by an existing object
LEGATTI> select owner,object_name,object_type,created
2 from dba_objects where object_name='MYDIR';
OWNER OBJECT_NAME OBJECT_TYPE CREATED
SYS MYDIR DIRECTORY 19/12/2007Cheers
Legatti -
We have a requirement where in we have multiple solaris servers and each solaris server has a directory with the same name.
The files in these directories will be different.
These same name directories on multiple severs has to be mounted to a single directory on another sever.
We are planning to use NFS, but it seems we can not mount multiple directories with same name on different severs to a single mount point using NFS, and we need to create multiple mount points.
Is there any way we can achieve this so that all the directories can be mounted to a single mount point?You can try to mount all these mount points via NFS in one additional server and then export this new tree again via NFS to all your servers.
No sure if this works. If this works, then you will have in this case just an additional level in the tree. -
I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?
In iTunes(on a Mac or PC) just tap on 'Albums' rather than 'Artists' and you'll see them all together.
You may find that there are songs mislabelled. In which case right tap on the Album or Artist and tap 'Get Info', then change to the correct name and the songs will join the rest of the songs for that Artist or Album.
Then resync with your iPhone and all will be well. -
Query parameters with the same name and different values
According to HTTP, multiple query or post parameters with the
same name and different values are permitted. They are transfered
over the wire in the following format -
name1=val1&name1=val2&name1=val3
The problem is that I can't see anyway of assigning multiple
parameters with the same name and different values to the request
object of mx.rpc.http.HTTPService. I have tried using the
flash.utils.Dictionary object as it does strict key comparison but
that doesn't work too. I have tried setting an array of values to a
property of the request object but that sends the request to the
server in the following format -
name1=val1,val2,val3
The java servlet engines throw exceptions when they see this.
Any help would be greatly appreciated.If you're not on 8.1.4 move there. 8.1.3 had limitations in the wsrp
release.
wrote:
I have an html select box that contains several values, and multiple
selection is enabled. When my code runs as a remote portlet, the
following is showing up in the soap monitor when I select multiple
values and submit the form:
<urn:interactionParams>
<urn:portletStateChange>cloneBeforeWrite</urn:portletStateChange>
<urn:interactionState>_action=addEmployeesToGroup</urn:interactionState>
<urn:formParameters
name="P62005wlw-select_key:{actionForm.selectedEmployees}OldValue">
<urn:value>true</urn:value>
</urn:formParameters>
<urn:formParameters
name="P62005wlw-select_key:{actionForm.selectedEmployees}">
<urn:value>beatest1</urn:value>
</urn:formParameters>
In this case, I selected beatest1 and beatest2, but only beatest1 comes
through to the remote portlet. Is this a known bug, and, if so, is
there a patch or workaround available?
Thanks in advance,
Andy -
Concatenate tables with same name from different servers - CR2013
Hello,
I need some help. I need data from 2 tables with the same name on different SQL servers thru an ODBC connection. When I try to get the data by adding both to my datasource I get data from one or the other. I have considered creating a view, but not sure how to handle this. Thanks.Hi,
Linked Servers are pretty simple and straightforward, just do a search for the procedure.
I do have an additional comment, though. Depending on what tables you're gathering, I've found noticeable differences in performance when I use a connector to a DB on Server Instance "A" linked to "B" versus Server Instance B linked to A. I haven't determined the circumstances affecting one over the other.
If I'm not happy with speed using a connector A, I try switching to B. I like to use as much SQL code as possible, but you can't get around the connector still being a factor.
Matt -
How do i find the app ibooks on a Mac to download? Is it the same name or different now?
How do i find the app ibooks on a Mac to download? Is it the same name or different now?
There is no app for reading iBooks on a Mac!
-
Importing files with same name but different extensions
Hope I will be clear enough.
Lets say that instead of sending a file from Lightroom to an external editor, I open it directly in Photoshop.
When I'm done, I save the edited photo using the same name but in a different file format : IMG_1333.cr2 > IMG_1333.psd or IMG_1333.tif, and selecting the same folder location.
Then, I come back into Lightroom and synchronise the folder.
Why is the knew version of the picture not showing up beside the original file, despite the different extension ?
I notice that the different extensions ( .psd or .tif ) are recorded in the sidecar files field in the Metadata panel.
Of course, everything works fine if the file name is modified ( or just by selecting the "copy" option in Photoshop's "save as" dialog box ). Lightroom synchronise dialog shows the new photo to import.
So, why is Lightroom not making a difference between files with the same name but different format extensions ?
Thanks for any hint :-)
Gilles.Gilles-
I think your problem is likely that you have the option to stack the copy with the original turned on. First, right-click on one of these photos and go to the stacking menu. If Unstack is not grayed out then you have a stack -- select Unstack to reveal all copies.
To change the automatic stacking of edited copies from Photoshop, when you next choose to edit a file, in the bottom left corner of the dialog is the check box for unstacking. Clear it, and that choice should "stick" until you change it again.
Hope this helps!
Tony -
Two methods with same name but different return type?
Can I have two methods with same name but different return type in Java? I used to do this in C++ (method overloading or function overloading)
Here is my code:
import java.io.*;
public class Test{
public static void main(String ar[]){
try{
//I give an invalid file name to throw IO error.
File file = new File("c:/invalid file name becasue of spaces");
FileWriter writer = new FileWriter(file ,true);
writer.write("Test");
writer.close();
} catch (IOException IOe){
System.out.println("Failure");
//call first method - displays stack trace on screen
showerr(NPe);
//call second method - returns stack trace as string
String msg = showerr(NPe);
System.out.println(msg);
} // end of main
public static void showerr(Exception e){
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
try{
pw.close();
sw.close();
catch (IOException IOe){
IOe.printStackTrace();
String stackTrace = sw.toString();
System.out.println("Null Ptr\n" + stackTrace );
}//end of first showerr
public static String showerr(Exception e){
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
try{
pw.close();
sw.close();
catch (IOException IOe){
IOe.printStackTrace();
return sw.toString();
}//end of second showerr
} // end of class
[\code]Overloading is when you have multiple methods that have the same name and the same return type but take different parameters. See example
public class Overloader {
public String buildError(Exception e){
java.util.Date now = new java.util.Date() ;
java.text.DateFormat format = java.text.DateFormat.getInstance() ;
StringBuffer buffer = new StringBuffer() ;
buffer.append(format.format(now))
.append( " : " )
.append( e.getClass().getName() )
.append( " : " )
.append( e.getMessage() ) ;
return buffer.toString() ;
public String buildError(String msg){
java.util.Date now = new java.util.Date() ;
java.text.DateFormat format = java.text.DateFormat.getInstance() ;
StringBuffer buffer = new StringBuffer() ;
buffer.append(format.format(now))
.append( " : " )
.append( msg ) ;
return buffer.toString() ;
public String buildErrors(int errCount){
java.util.Date now = new java.util.Date() ;
java.text.DateFormat format = java.text.DateFormat.getInstance() ;
StringBuffer buffer = new StringBuffer() ;
buffer.append(format.format(now))
.append( " : " )
.append( "There have been " )
.append( errCount )
.append( " errors encountered.") ;
return buffer.toString() ;
}Make sense ???
Regards, -
Vis that reside in different location but have a same name und different funktion
Can i use in LabView 5.01 Vis that reside in different location but have a same name und different funktion?
How? I don´t wand to rename the VIs.Sorry, you can't have homonymous VIs simultaneously in memory. You'll have to rename one of them.
LabVIEW, C'est LabVIEW -
Find Same Name in Different Departments
Hi All,
M Really New In this field..
Considering emp and Dept table in Scott schema
How can I find same name in different departments like
ename department
================
smith 10
smith 20
smith 30
Thanks,And what does have to do with apex? Please post this to the sql pl/sql support forum
Thank you,
Tony Miller
Ruckersville, VA -
How to check-in multiple files with same name having different revision num
Hi
Can anyone please tell me, how to check-in multiple files with the same name with different revision number using RIDC API.
For eg:
First I will check-in a file(TestFile.txt) into a content server with revision number 1 using RIDC API in ADF application. Then after some time, will modify the same file(TestFile.txt) and check-in again. I tried to check-in same file multiple times, however first time its checking-in correctly into server showing revision as 1, while checking-in same file again, its not giving any errror message, and also its not reflecting in server. Only one file(TestFile.txt) is reflecting in server.
How to implement this functinality using RIDC API? Any suggestions would be helpful.
Regards
Raj
Edited by: 887680 on Mar 6, 2013 10:48 AMHi Srinath
Thanks for your response. Its not cloning, its like check-in file first, then check-out the file and do some editing and then again upload the same file with different revision number using RIDC. I got the solution now.
Regards
Raj -
Applescript: Create a Folder from Files of Same Name but different Extension
Hi guys,
Racking my brain for the past 2 hours trying to figure out how to properly use Applescript but alas to no avail.
My problem is as follows.
xxxxxxx.extension1
xxxxxxx.extension2
yyyyyyy.extension1
yyyyyyy.extension2
zzzzzzz.extension1
zzzzzzz.extension2
I've been trying to create an applescript that takes files of same name and create a folder with the name of those files grabbed.
So ultimately it would look like
xxxxxxx/
xxxxxxx.extension1
xxxxxxx.extension2
yyyyyyy/
yyyyyyy.extension1
yyyyyyy.extension2
zzzzzzz/
zzzzzzz.extension1
zzzzzzz.extension2
Can some more more adept at this than me provide with a solution? It would be great if I could use by just selecting the folder that contains all these files.
Also can anyone suggest an beginner's book on Applescript? I'm a bit or an order freak and Im sure applescripting could help me automate a lot of repetitive tasks Im currently doing.
Thanks!This will do what you need.
set source to (((path to desktop folder) as text) & "Test") as alias
tell application "System Events"
set fnames to (name of every file of source)
end tell
set AppleScript's text item delimiters to "."
repeat with fname in fnames
try
set folderName to text item 1 of fname
if folderName is not "" then
tell application "Finder"
if not (exists (folder folderName of source)) then
make new folder at source with properties {name:folderName}
end if
move file fname of folder source to folder folderName of source
end tell
end if
end try
end repeat
(the code formatting here really s*?ks. select all the text in the box and right click and select services make new AppleScript to get it into the editor)
It's not very polished so be careful, setup some test folders and make sure it does what you want before using it on your live data.
You need to set the
set source to
line to the path of the folder where the files are. You can do that as an absolute path ie "Macintosh HD:Users:etc" or using the path to as in the example.
It is also not very efficient and there are many different ways to attack this problem. If this is a one time thing this will be fine. If it will be an ongoing situation you might want to describe exactly what is happening and other ways to solve the problem might be possible.
As for learning AppleScript start with the Apple Development Site, especially AppleScript Language Guide.
There are lots of sites out there with good info MacScripter being one of the better ones.
Book wise I really like Learn AppleScript by Apress. Its good as both a tutorial and reference and has a good intro to AppleScript Objective-C (a way Apple ahs setup to allow AppleScripts to access pure objective-c code and the OS X GUI).
good luck -
Managing dbs with same names on different hosts in GC 10.2.0.3
I saw this post: Ideas needed - monitoring same DBName in manual standby
But my issue is we have an environment that keeps the same db names for production, development, uat etc... Dbs are 10.2.0.3 on Solaris 10. GC is 10.2.0.3 on windows.
e.g. i have a cluster database HRMS, running on two nodes. On another server, i have a standalone instance HRMS and Grid Control was able to detect it. Weird, it looked like it didn't care about the same name here (may be there is a difference between a database instance and a cluster instance). However, if i were to discover another target on another node, it will complain saying there is another instance. I have used the workaround to manually add it as say HRMS_hostname. All is good.
I'm curious though as to how when you create a standby database using GC, it creates a different unique name. (DB_UNIQUE_NAME). The latter seems to be the solution in having dbs with the same name in GC with different db_unique_name parameter. However, this parameter is not modifiable.
Comments anyone?
Thanks.Try this and rediscover the database in GC and see what you get.
C:\>sqlplus /nolog
SQL*Plus: Release 10.2.0.2.0 - Production on Thu Oct 25 10:34:56 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 130023424 bytes
Fixed Size 1288148 bytes
Variable Size 88082476 bytes
Database Buffers 37748736 bytes
Redo Buffers 2904064 bytes
Database mounted.
SQL> show parameters unique
NAME TYPE VALUE
db_unique_name string testdb
SQL> alter system set db_unique_name=testdbq scope=spfile;
System altered.
SQL> startup force
ORACLE instance started.
Total System Global Area 130023424 bytes
Fixed Size 1288148 bytes
Variable Size 88082476 bytes
Database Buffers 37748736 bytes
Redo Buffers 2904064 bytes
Database mounted.
Database opened.
SQL> show parameters unique
NAME TYPE VALUE
db_unique_name string TESTDBQ
SQL>
Note: I used startup force to restart my test database quickly. Do not do it on your database. Do a shutdown immediate followed by startup -
How do I call methods with the same name from different classes
I have a user class which needs to make calls to methods with the same name but to ojects of a different type.
My User class will create an object of type MyDAO or of type RemoteDAO.
The RemoteDAO class is simply a wrapper class around a MyDAO object type to allow a MyDAO object to be accessed remotely. Note the interface MyInterface which MyDAO must implement cannot throw RemoteExceptions.
Problem is I have ended up with 2 identical User classes which only differ in the type of object they make calls to, method names and functionality are identical.
Is there any way I can get around this problem?
Thanks ... J
My classes are defined as followes
interface MyInterface{
//Does not and CANNOT declare to throw any exceptions
public String sayHello();
class MyDAO implements MyInterface{
public String sayHello(){
return ("Hello from DAO");
interface RemoteDAO extends java.rmi.Remote{
public String sayHello() throws java.rmi.RemoteException;
class RemoteDAOImpl extends UnicastRemoteObject implements RemoteDAO{
MyDAO dao = new MyDAO();
public String sayHello() throws java.rmi.RemoteException{
return dao.sayHello();
class User{
//MyDAO dao = new MyDAO();
//OR
RemoteDAO dao = new RemoteDAO();
public void callDAO(){
try{
System.out.println( dao.sayHello() );
catch( Exception e ){
}>
That's only a good idea if the semantics of sayHello
as defined in MyInterface suggest that a
RemoteException could occur. If not, then you're
designing the interface to suit the way the
implementing classes will be written, which smells.
:-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.
Maybe you are looking for
-
Final price of the Sales Order calculation on payment term
Hi, Out Business requirement as follows. 1) one ZNAP pricing condition will be maintained by the monthly wise by business for pricing. this is a statistical condition only checking at sales order level only. this condition will check with Final pri
-
Help need my mac pro for school..it has Grey screen..spinning wheel... I think I have mountain lion OS X....I have done I think almost every suggestion I've seen in discussion boards. Boot in recovery repaired disk...ok...repair disk permission...al
-
"wdp" folder missing under the bin folder
Hi All, I have no clue whats going on. I have been successfully developing my WD application and deploying it on the server.But recenetly i added a few Value Nodes and value attributes to the Component Controller and tried to deploy the application b
-
I just transferred "all movies" to "My Passport" hard drive. Several images of the same clips appear. Is each image a valid clip? Why do I have so many?
-
NAC 4.8 web agent with WSUS checking
Hi, In some cases we would like to use the NAC 4.8 Web agent to check the WindowsUpdate related things. We have a managed WSUS server, the ckeck working well with native win32 clients, but when we try connect with web agent, the report show the foll