Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2005

Tip: Looking for answers? Try searching our database.

The one pronoun problem

Thread view: 
Roedy Green - 26 Jun 2005 08:34 GMT
I was using a program called Goldwave to prepare a library of various
frog croaks.  It drove me nearly nuts.  To load the source file I had
to navigate through 7 jumps to get to the correct directory.  I would
process the file clipping it, then I had to navigate though another 7
directories to get to the target directory to save it.  Then back
another seven jumps to get to the directory for another source file.

I know, I could have loaded up more than one at a time, but this is a
general problem, in all computer OSes because the problem is inherited
from the structure of English.

In English there is only one HE pronoun. You can't talk about he1 and
he2.  In windows there is only one current directory. There is not a
source and target directory or a dir1, dir2 and dir3 button every
where available to jump directly to some other common place.

In English you can reassign the meaning of HE at any  without great
fuss.  It should be similarly easy in the OS. You just Right click on
of he the "pronoun" buttons to say -- from now on, this button means
HERE -- this directory, this file, this place in the file, whenever I
left click it, take me here.

This needs to be a function universally supported in the same way in
every application.

I use Slick Edit that lets me roughly approximate this, at least
within the Slick Edit universe.  I have some icons on the top bar I
can assign to macros. The problem is, to reassign the meaning of a
key, I have to compose a new macro, and go through a multikeystroke
sequence to assign the macro to the key.  But from then on I can hop
from place to place with a single click. What is missing is easy way
to assign a PLACE to a button with a single click.

Perhaps as an addition there could be history of places you visited
(not counting the places you just passed through) so you can point and
click to recently visited other spots.

Why am I telling you this.  Perhaps someone might like to write a
simple directory file/browser launcher, copier, deleter, renamer, much
like the old QDOS, that demonstrated the notion, perhaps evolving into
a Magellan-like tool with rapid file viewers.  I would be nice to get
back to as good as it was under DOS.

Signature

Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes

Raymond DeCampo - 26 Jun 2005 17:54 GMT
> I was using a program called Goldwave to prepare a library of various
> frog croaks.  It drove me nearly nuts.  To load the source file I had
[quoted text clipped - 11 lines]
> source and target directory or a dir1, dir2 and dir3 button every
> where available to jump directly to some other common place.

That is not exactly true.  In Windows you actually have a current
directory per drive and you can put this to good use.

E.g., suppose you have an XLST in C:\my\very\log\path\to\xslt and the
XML in P:\another\very\long\path\to\my\xml.  You can do the following at
 a command prompt:

C:\> cd \my\very\log\path\to\xslt
C:\my\very\log\path\to\xslt> P:
P:\> cd \another\very\long\path\to\my\xml
P:\another\very\long\path\to\my\xml> xalan -IN abc.xml -XSL C:xyz.xsl

Well, that's just great Ray, you say, if I have 20 partitions on my hard
drive.  Well, that's where the "subst" command.  The subst command
allows you to define a particular directory as a drive.  E.g., perhaps
before you did the above you did

C:\> subst P: "C:\Documents and Settings\rgreen\My Documents\result"

Then P:\another\very\long\path\to\my\xml is really C:\Documents and
Settings\rgreen\My Documents\result\another\very\long\path\to\my\xml.

A few other commands you may want to investigate: cd /D, pushd, popd,
net use.

> In English you can reassign the meaning of HE at any  without great
> fuss.  It should be similarly easy in the OS. You just Right click on
[quoted text clipped - 22 lines]
> a Magellan-like tool with rapid file viewers.  I would be nice to get
> back to as good as it was under DOS.

HTH,
Ray

Signature

XML is the programmer's duct tape.

Roedy Green - 27 Jun 2005 12:29 GMT
>Well, that's just great Ray, you say, if I have 20 partitions on my hard
>drive.  Well, that's where the "subst" command.  The subst command
>allows you to define a particular directory as a drive.  E.g., perhaps
>before you did the above you did

brilliant. I never thought of using subst in a dynamic way. I will
have great fun with that.

IIRC there is a problem with Windows forgetting SUBST either when you
reboot or perhaps start a fresh command processor.

Signature

Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes

Tim Ward - 27 Jun 2005 12:32 GMT
> IIRC there is a problem with Windows forgetting SUBST either when you
> reboot or perhaps start a fresh command processor.

There are other problems with SUBST. For reasons I haven't tried to research
it seems typical of source code control systems that they can't cope with
sets of files on SUBST "drives".

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk
Roedy Green - 28 Jun 2005 06:41 GMT
>There are other problems with SUBST. For reasons I haven't tried to research
>it seems typical of source code control systems that they can't cope with
>sets of files on SUBST "drives".

the other thing is you cant use .. to get to the real super directory.
This confuses the heck out of my custom web building software that is
building cross links all over when you give it filenames of subtrees
that don't hint at the parent.

Signature

Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes

Raymond DeCampo - 27 Jun 2005 13:48 GMT
>>Well, that's just great Ray, you say, if I have 20 partitions on my hard
>>drive.  Well, that's where the "subst" command.  The subst command
[quoted text clipped - 7 lines]
> IIRC there is a problem with Windows forgetting SUBST either when you
> reboot or perhaps start a fresh command processor.

I routinely use it for my "My Documents" directory and I haven't had any
problems, although there are some gotchas.  The drive *will* be un-subst
once you log out.  To deal with that, just create a batch file that does
the subst commands you want and put a shortcut to it in your Startup folder.

There are some gotchas with subst and mapped drives.  Important things
to remember are:
    1) Drives are global, however, the mappings only live as long as your
current session
    2) If you have scheduled tasks that run when you are not logged in, it
is not enough to run them as yourself to expect the mapped drives to be
there.  Running a scheduled task as yourself is not the same as logging
in and then running the task.

HTH,
Ray

Signature

XML is the programmer's duct tape.

blmblm@myrealbox.com - 03 Jul 2005 10:36 GMT
>> I was using a program called Goldwave to prepare a library of various
>> frog croaks.  It drove me nearly nuts.  To load the source file I had
[quoted text clipped - 9 lines]
>> In English there is only one HE pronoun. You can't talk about he1 and
>> he2.  In windows there is only one current directory.

There's a concept of "current directory" in Windows?  My experience has
been that too many applications don't give me any choice about the
starting point for file-chooser menus; instead they always start at
the same place ("My Computer", or "Personal Documents", or something).
Is there some trick I don't know about that would help ....?

>> There is not a
>> source and target directory or a dir1, dir2 and dir3 button every
>> where available to jump directly to some other common place.
>
>That is not exactly true.  In Windows you actually have a current
>directory per drive and you can put this to good use.

[ snip ]

>A few other commands you may want to investigate: cd /D, pushd, popd,
>net use.

Well!  I thought it was only "real shells" (translation:  Unix-type
shells) that provided this kind of functionality.  Interesting.
Something to remember next time I try to do stuff with Windows.

This probably doesn't help Roedy, but in the Unix CLI world, I suspect
most shells provide a "stack" of recently visited directories and
commands to manipulate them (in bash, pushd and popd are relevant
commands), plus the ability to define and use environment variables
that point to directories -- e.g.,

 [ .... navigate to first directory of interest .... ]
 HERE=`pwd` ; export HERE
 [ .... navigate to second directory of interest .... ]
 THERE=`pwd` ; export THERE

 and then to copy a file from the first to the second directory,
 cp $HERE/file $THERE

>> In English you can reassign the meaning of HE at any  without great
>> fuss.  It should be similarly easy in the OS. You just Right click on
[quoted text clipped - 22 lines]
>> a Magellan-like tool with rapid file viewers.  I would be nice to get
>> back to as good as it was under DOS.

Hear, hear.  Or as good as it is in Unix CLI-land ....  Yeah, I'm
biased.  :-)

| B. L. Massingill
| ObDisclaimer:  I don't speak for my employers; they return the favor.
Andrew Thompson - 03 Jul 2005 11:01 GMT
>>> ..In windows there is only one current directory.
>
> There's a concept of "current directory" in Windows?

System.getProperty("user.dir")

> Is there some trick I don't know about that would help ....?

JFileChooser(File)/FileDialog.setDirectory(File)

HTH

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

blmblm@myrealbox.com - 03 Jul 2005 11:12 GMT
>>>> ..In windows there is only one current directory.
>>
[quoted text clipped - 7 lines]
>
>HTH

Sounds very useful if one is writing Java code to run under Windows,
but I was asking more in reference to using existing applications
(e.g., MS Office).  I'm guessing that some of them do have some notion
of "current directory" that can maybe be changed via a command-line
parameter, but the whole notion of "current directory" seems to be
sort of alien to the GUI way of doing things.  IMO, of course.

| B. L. Massingill
| ObDisclaimer:  I don't speak for my employers; they return the favor.
Raymond DeCampo - 04 Jul 2005 01:04 GMT
>>>>..In windows there is only one current directory.
>>
>>There's a concept of "current directory" in Windows?
>
> System.getProperty("user.dir")

This gives the user's home directory, which is a different concept from
the current directory.  To get the current directory, use new File(".").

>>Is there some trick I don't know about that would help ....?
>
> JFileChooser(File)/FileDialog.setDirectory(File)
>
> HTH

Ray

Signature

XML is the programmer's duct tape.

Raymond DeCampo - 04 Jul 2005 03:53 GMT
>>>>> ..In windows there is only one current directory.
>>>
[quoted text clipped - 4 lines]
> This gives the user's home directory, which is a different concept from
> the current directory.  To get the current directory, use new File(".").

My bad, I did not read the post carefully enough.  I read "user.dir" and
my mind saw "user.home"...my apologies.

>>> Is there some trick I don't know about that would help ....?
>>
[quoted text clipped - 3 lines]
>
> Ray

Ray

Signature

XML is the programmer's duct tape.

christopher@dailycrossword.com - 29 Jun 2005 09:01 GMT
My graphics editing program keeps separate default directories for
save, save as, and save copy as.  Also, if you are opening from
removable media and remove it, the save defaults to your last save
rather than someplace meaningless.

In your case, burn the files to a CD, read them all in and pop out the
CD, save them wherever windows defaults, and move them all after.
-- clh


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.