f



ActiveState vs. "C:\Program Files\" and "C:\Progra~1\"

note:  this post started off as a question, but turned into a blog and
eventually became an answer.  I just hate to have anyone else go
through all this nonsense, so I figured I'd post it as an example of
"when in doubt, google it out".


I successfully installed ActiveState 5.8.8 (after uninstalling
5.6.something) on an XP laptop.  I installed it to "C:\Program FIles
\Activestate.com\Perl".  After the install, I changed the "Program
files" part of the ActiveState dirs in my PATH env var from long DOS
format to 8.3 format:
 "C:\Program Files\ActiveState.com\Perl\site\bin"
   to
 "C:\Progra~1\ActiveState.com\Perl\site\bin"
and
 "C:\Program Files\ActiveState.com\Perl\bin"
   to
 "C:\Progra~1\ActiveState.com\Perl\bin"

Now, when I attempt to build a CPAN module (BitTorrent), I get:
<pre>
C:\blah... \BitTorrent>perl makefile.pl
Have C:\Progra~1\ActiveState.com\Perl\lib\Config.pm expected C:
\Program Files\ActiveState.com\Perl\lib\Config.pm
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [lib]
Config says: [MSWin32-x86-multi-thread]
This may or may not cause problems. Please check your installation of
perl
if you have problems building this extension.
Writing Makefile for BitTorrent
</pre>


It *looks* like Perl is just unhappy about the directory rename.  I
changed the PATH back to the original install dir and the new message
is:

C:\blahblah...\BitTorrent>perl -c Makefile.PL
Makefile.PL syntax OK

C:\blahblah...\BitTorrent>perl  Makefile.PL
Unable to find a perl 5 (by these names:
C:\Program Files\ActiveState.com\Perl\bin\perl.exe
perl.exe perl5.exe perl5.8.8.exe miniperl.exe, in these dirs:
 .
 c:\Program Files\rubyforge.org\ruby\bin
c:\usr\local\wbin
C:\Program Files\ActiveState.com\Perl\site\bin
C:\Program Files\ActiveState.com\Perl\bin
C:\WINDOWS\system32 C:\WINDOWS
C:\WINDOWS\System32\Wbem
c:\progra~1\utils
C:\Progra~1\apachefriends.org\xampp\MySQL\bin
C:\Program Files\Perforce
C:\Program Files\QuickTime\QTSystem\
C:\PVCS\NT
c:\progra~1\vslick\win
C:\Progra~1\nmap \bin
C:\Progra~1\airsnort\bin
C:\progra
..... etc....

So that fixed the one problem, and brough up another.  I dug up this
suggestion:
http://aspn.activestate.com/ASPN/Mail/Message/activeperl/556006
and added the PERL line to the Makefile.pl
That allowed the Makefile to be generated without errors, but running
it had problems:
C:\blahblah...\Convert-Bencode-1.03>nmake -f Makefile

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'C:\Program'
Stop.


I modified all instances of "Program files" in the Makefile to
"Progra~1" and the makefile worked ("test" and "install").  I think
the next step is to uninstall 5.8.8 and re-install it but specifying
an install dir of "C:\Progra~1\...etc".  I guess this new-fangled
"Windows" operating system with the pesky ASCII "space" char in files
and paths is just too much for some people to understand.

0
4/15/2007 6:50:12 AM
comp.lang.perl.misc 33233 articles. 1 followers. brian (1246) is leader. Post Follow

10 Replies
815 Views

Similar Articles

[PageSpeed] 3

"pt" <mnemotronic@gmail.com> wrote in message 
news:1176619812.713068.276460@y80g2000hsf.googlegroups.com...
> note:  this post started off as a question, but turned into a blog and
> eventually became an answer.  I just hate to have anyone else go
> through all this nonsense, so I figured I'd post it as an example of
> "when in doubt, google it out".
>
>
> I successfully installed ActiveState 5.8.8 (after uninstalling
> 5.6.something) on an XP laptop.  I installed it to "C:\Program FIles
> \Activestate.com\Perl".

The advice usually offered is to simply not install perl into any directory 
containing white space. (There's no need to place perl in any particular 
location.)
You're free, of course, to ignore that advice - in which case you can come 
up against the issues you have encountered. But if you installed ActivePerl 
into, eg, C:\Perl (so that the path to the perl executable is simply 
C:\Perl\bin) things should work fine.

> After the install, I changed the "Program
> files" part of the ActiveState dirs in my PATH env var from long DOS
> format to 8.3 format:
> "C:\Program Files\ActiveState.com\Perl\site\bin"
>   to
> "C:\Progra~1\ActiveState.com\Perl\site\bin"

Does that location actually exist ? I've never known ActivePerl to create a 
perl\site\bin folder.

> and
> "C:\Program Files\ActiveState.com\Perl\bin"
>   to
> "C:\Progra~1\ActiveState.com\Perl\bin"
>
> Now, when I attempt to build a CPAN module (BitTorrent), I get:
> <pre>
> C:\blah... \BitTorrent>perl makefile.pl
> Have C:\Progra~1\ActiveState.com\Perl\lib\Config.pm expected C:
> \Program Files\ActiveState.com\Perl\lib\Config.pm
> Your perl and your Config.pm seem to have different ideas about the
> architecture they are running on.
> Perl thinks: [lib]
> Config says: [MSWin32-x86-multi-thread]
> This may or may not cause problems. Please check your installation of
> perl
> if you have problems building this extension.
> Writing Makefile for BitTorrent
> </pre>
>
>
> It *looks* like Perl is just unhappy about the directory rename.  I
> changed the PATH back to the original install dir and the new message
> is:
>
> C:\blahblah...\BitTorrent>perl -c Makefile.PL
> Makefile.PL syntax OK
>
> C:\blahblah...\BitTorrent>perl  Makefile.PL
> Unable to find a perl 5 (by these names:
> C:\Program Files\ActiveState.com\Perl\bin\perl.exe
> perl.exe perl5.exe perl5.8.8.exe miniperl.exe, in these dirs:
> .
> c:\Program Files\rubyforge.org\ruby\bin
> c:\usr\local\wbin
> C:\Program Files\ActiveState.com\Perl\site\bin
> C:\Program Files\ActiveState.com\Perl\bin
> C:\WINDOWS\system32 C:\WINDOWS
> C:\WINDOWS\System32\Wbem
> c:\progra~1\utils
> C:\Progra~1\apachefriends.org\xampp\MySQL\bin
> C:\Program Files\Perforce
> C:\Program Files\QuickTime\QTSystem\
> C:\PVCS\NT
> c:\progra~1\vslick\win
> C:\Progra~1\nmap \bin
> C:\Progra~1\airsnort\bin
> C:\progra
> .... etc....
>
> So that fixed the one problem, and brough up another.  I dug up this
> suggestion:
> http://aspn.activestate.com/ASPN/Mail/Message/activeperl/556006
> and added the PERL line to the Makefile.pl

It has been a long time since I've seen the need to apply that fix .... 
probably more than 2 years.
Are you using the latest build (820) of ActivePerl :

perl -e "print $ActivePerl::VERSION"

> That allowed the Makefile to be generated without errors, but running
> it had problems:
> C:\blahblah...\Convert-Bencode-1.03>nmake -f Makefile
>
> Microsoft (R) Program Maintenance Utility   Version 1.50
> Copyright (c) Microsoft Corp 1988-94. All rights reserved.
>
> NMAKE : fatal error U1073: don't know how to make 'C:\Program'
> Stop.
>

That's a fairly old version of nmake. There are problems with it, though I'm 
not sure that this is one of those problems.
More recent versions of nmake are freely available from Microsoft, but I 
don't have a link. You should try to get a more recent version.
(If that's your real email address, you might find a more recent version 
turns up in your inbox.)

>
> I modified all instances of "Program files" in the Makefile to
> "Progra~1" and the makefile worked ("test" and "install").  I think
> the next step is to uninstall 5.8.8 and re-install it but specifying
> an install dir of "C:\Progra~1\...etc".  I guess this new-fangled
> "Windows" operating system with the pesky ASCII "space" char in files
> and paths is just too much for some people to understand.
>

My understanding is that the "space" shouldn't be posing much of a problem 
these days - but I still recommend avoiding directories with spaces, just to 
be safe.

You might consider to switching to 'dmake' and the MinGW compiler - both of 
which are freely available and work fine with ActivePerl.

Then again ... you could alternatively install Strawberry Perl ( 
http://vanillaperl.com/ )  - which is a Win32 build of perl that already has 
'dmake' and the MinGW compiler bundled with it.

Cheers,
Rob 

0
Sisyphus
4/15/2007 8:09:24 AM
On 14 Apr 2007 23:50:12 -0700, "pt" <mnemotronic@gmail.com> wrote:

>note:  this post started off as a question, but turned into a blog and
>eventually became an answer.  I just hate to have anyone else go
>through all this nonsense, so I figured I'd post it as an example of
>"when in doubt, google it out".
[snip]
>I successfully installed ActiveState 5.8.8 (after uninstalling
>5.6.something) on an XP laptop.  I installed it to "C:\Program FIles
>\Activestate.com\Perl".  After the install, I changed the "Program
>files" part of the ActiveState dirs in my PATH env var from long DOS
>format to 8.3 format:

In <http://perlmonks.org/?node_id=583586> the author describes a way
to obtain what are in fact hard links on a ntfs by means of
"Junctions", that may be useful in your case. (Although that node,
that also deals with module installation, mentions it wrt something
else.)

>an install dir of "C:\Progra~1\...etc".  I guess this new-fangled
>"Windows" operating system with the pesky ASCII "space" char in files
>and paths is just too much for some people to understand.

Well I'm not that much a big fan of sw made in Redmond, but there's
that little thing called backwards compatibility that tends to hinder
progress. All in all if you take that into account, they've done a
good job. Of course UNIX did it better from start. OTOH, it's somewhat
funny how there you can put any byte but two in a filename, and people
tend not to abuse that, whereas they do under Windows.


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
0
Michele
4/15/2007 9:45:29 AM
Sisyphus wrote:
> "pt" <mnemotronic@gmail.com> wrote in message 
> news:1176619812.713068.276460@y80g2000hsf.googlegroups.com...
>> After the install, I changed the "Program
>> files" part of the ActiveState dirs in my PATH env var from long DOS
>> format to 8.3 format:
>> "C:\Program Files\ActiveState.com\Perl\site\bin"
>>   to
>> "C:\Progra~1\ActiveState.com\Perl\site\bin"
> 
> Does that location actually exist ? I've never known ActivePerl to 
> create a perl\site\bin folder.

This was introduced with Build 820 (Jan 2007),
these directories ( /site/bin and /site/lib )
are empty after installation.



Regards

M.
0
Mirco
4/16/2007 8:08:15 AM
"Mirco Wahab" <wahab-mail@gmx.de> wrote in message 
news:evvb8k$ktd$1@mlucom4.urz.uni-halle.de...
> Sisyphus wrote:
>> "pt" <mnemotronic@gmail.com> wrote in message 
>> news:1176619812.713068.276460@y80g2000hsf.googlegroups.com...
>>> After the install, I changed the "Program
>>> files" part of the ActiveState dirs in my PATH env var from long DOS
>>> format to 8.3 format:
>>> "C:\Program Files\ActiveState.com\Perl\site\bin"
>>>   to
>>> "C:\Progra~1\ActiveState.com\Perl\site\bin"
>>
>> Does that location actually exist ? I've never known ActivePerl to create 
>> a perl\site\bin folder.
>
> This was introduced with Build 820 (Jan 2007),
> these directories ( /site/bin and /site/lib )
> are empty after installation.
>

I think the empty site/lib folder started with build 819 (accompanied by a 
change in the order of the @INC directories), but I hadn't heard anything 
about the creation of a site\bin folder. (I have the 32-bit build of 819 and 
the 64-bit build of 820, neither of which contain a site\bin folder.)

Thanks for the info, Mirco.

Cheers,
Rob




0
Sisyphus
4/16/2007 9:52:57 AM
Sisyphus wrote:
> "Mirco Wahab" <wahab-mail@gmx.de> wrote in message 
> news:evvb8k$ktd$1@mlucom4.urz.uni-halle.de...
>> This was introduced with Build 820 (Jan 2007),
>> these directories ( /site/bin and /site/lib )
>> are empty after installation.
>>
> I think the empty site/lib folder started with build 819 (accompanied by 
> a change in the order of the @INC directories), but I hadn't heard 
> anything about the creation of a site\bin folder. (I have the 32-bit 
> build of 819 and the 64-bit build of 820, neither of which contain a 
> site\bin folder.)

Now I downloaded the 820/x64 and /x86 to to satisfy my curiosity ;-)

$ unzip -l ActivePerl-5.8.8.820-MSWin32-x64-274739.zip | grep "site/bin"
         0  01-24-07 01:17   ActivePerl-5.8.8.820-MSWin32-x64-274739/perl/site/bin/

$ unzip -l ActivePerl-5.8.8.820-MSWin32-x86-274739.zip | grep "site/bin"
         0  01-24-07 01:41   ActivePerl-5.8.8.820-MSWin32-x86-274739/perl/site/bin/

Maybe you didn't extract empty diretories?

New with 820/MSI-Installer is also that it puts the
"\perl\site\bin\" together with (and before) "\perl\bin\"
into the windows %PATH.

Regards

M.
0
Mirco
4/16/2007 10:48:20 AM
"Mirco Wahab" <wahab-mail@gmx.de> wrote in message 
news:evvkm3$nn2$1@mlucom4.urz.uni-halle.de...
> Sisyphus wrote:
>> "Mirco Wahab" <wahab-mail@gmx.de> wrote in message 
>> news:evvb8k$ktd$1@mlucom4.urz.uni-halle.de...
>>> This was introduced with Build 820 (Jan 2007),
>>> these directories ( /site/bin and /site/lib )
>>> are empty after installation.
>>>
>> I think the empty site/lib folder started with build 819 (accompanied by 
>> a change in the order of the @INC directories), but I hadn't heard 
>> anything about the creation of a site\bin folder. (I have the 32-bit 
>> build of 819 and the 64-bit build of 820, neither of which contain a 
>> site\bin folder.)
>
> Now I downloaded the 820/x64 and /x86 to to satisfy my curiosity ;-)

Oooh ... you're a sad case ;-)

>
> $ unzip -l ActivePerl-5.8.8.820-MSWin32-x64-274739.zip | grep "site/bin"
>         0  01-24-07 01:17 
> ActivePerl-5.8.8.820-MSWin32-x64-274739/perl/site/bin/
>
> $ unzip -l ActivePerl-5.8.8.820-MSWin32-x86-274739.zip | grep "site/bin"
>         0  01-24-07 01:41 
> ActivePerl-5.8.8.820-MSWin32-x86-274739/perl/site/bin/
>

That looks quite conclusive.

> Maybe you didn't extract empty diretories?

Yes ... I think so.

>
> New with 820/MSI-Installer is also that it puts the
> "\perl\site\bin\" together with (and before) "\perl\bin\"
> into the windows %PATH.
>

I steer clear of the '.msi' version - I only ever grab the '.zip' version.

I would have used the latest evaluation version of WinZip (my copy of which 
has now expired) to extract ActivePerl-5.8.8.820-MSWin32-x86-274739.zip to 
some temp location, then run the 'Installer.bat' to install to the location 
of my choice - making sure that registry and path settings were not 
affected.

I've just now extracted ActivePerl-5.8.8.820-MSWin32-x86-274739.zip using an 
old GnuWin32 version (5.12) of unzip, and again run 'Installer.bat'. This 
time, the site\bin directory *did* get created.

I can only assume that WinZip did something that unzip did not :-)

Cheers,
Rob 

0
Sisyphus
4/16/2007 1:51:46 PM
On Mon, 16 Apr 2007 23:51:46 +1000, "Sisyphus"
<sisyphus1@nomail.afraid.org> wrote:

>I would have used the latest evaluation version of WinZip (my copy of which 
>has now expired) to extract ActivePerl-5.8.8.820-MSWin32-x86-274739.zip to 

You may want to use some freeware or open source archiver instead. For
example I use IZArc when I want a GUI and good old Info-ZIP's native
port to Windows when I don't.


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
0
Michele
4/16/2007 3:57:29 PM
On Apr 15, 12:50 am, "pt" <mnemotro...@gmail.com> wrote:
> note:  this post started off as a question, but turned into a blog and

[snip-tumalu-madarlin]

First off, thanks to all the folks who took the time to wade through
my OP and reply.  A moderate razz to Goggle who lost my previous reply
to this thread.  A few vectored "thank you"s to sisyphus, Mirco, and
M.Dondi.  I used the "junction" utility (
http://www.microsoft.com/technet/sysinternals/FileAndDisk/Junction.mspx
) from SysInternals-now-Microsoft-all-hail-on-bended-knee to create a
"C:\Perl" dir linked to "C:\Program Files\ActiveState.com\Perl".  Then
re-installed Activestate 5.8.8.820 into "C:\Perl".  I could have done
that without the whole "C:\Program Files\ActiveState.com" dir and
link, but I have this personal bias against installing everything
right at the root, even though it it IS like pissing upstream into a
brick wall.  I like the ideas expressed in the Hierarchical File
System Standard ( http://www.pathname.com/fhs/ ), so I'm trying to do
things that way.

I am now much closer to a working solution.  As it turns out, Perl 5.6
vs. 5.8 is NOT the problem (at least, not the current problem).  The
CPAN modules I'm using (BitTorrent , Net::BitTorrent::*) are
problematic.  For example, "BitTorrent-V0.02" actually requires PHP to
be installed.  This isn't well documented (as in "not even hinted
at").  I was a bit surprised at PHP code being part of a CPAN Perl
module, but decided to "go with the flow".  Since undocumented
alternate language requirements are "l'ordre du jour", I've taken it
upon myself to re-write the module to use the Chinese language version
of ALGOL-68, and the Aore dialect of SQL

BTW, for freeware archivers, I suggest 7-Zip (http://www.7-zip.org/).

0
pt
4/19/2007 10:53:08 PM
On 19 Apr 2007 15:53:08 -0700, pt <mnemotronic@gmail.com> wrote:

>that without the whole "C:\Program Files\ActiveState.com" dir and
>link, but I have this personal bias against installing everything
>right at the root, even though it it IS like pissing upstream into a
>brick wall.  I like the ideas expressed in the Hierarchical File

I strongly agree with you. Unfortunately Windows doesn't enforce this.
Yes, typically programs install themselves under "C:\Program Files"
(which incidentally in Italy is fortunately "C:\Programmi", with no
spaces) but that's for GUI based programs. I have nothing agains GUIs,
but I often need CLI based ones too, and then the problem is that the
PATH env variable even nowadays still has a limited lenght, which is a
PITA. Thus one has first or later to resort to tricks of some sort...


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
0
Michele
4/20/2007 9:58:02 AM
FYI:
Install_ActiveState_Perl.cmd:
----- cut here  -----
@Echo off

:: Install ActiveState Perl to "C:\Progra~1\ActiveState.com\Perl"
SetLocal EnableDelayedExpansion EnableExtensions

:: /L*+   ::=	Log everything and append to specified file
::/ForceRestart	::= Require reboot after installation.
::   Probably not required but it IS, after all, only DOS.
Set MsiOpts=/L*+ ActiveStatePerl_5.8.8.820_install_log.txt /
ForceRestart

:: Command : "/Package" or "/i" to install," /Uninstall" or "/x" to
uninstall
Set MsiAction=/Package

:: If user specified a file on the cmd line, use it instead of the one
defined here.
Set MsiPkg=ActivePerl-5.8.8.820-MSWin32-x86-274739.msi
If not /%1/==// (
   If exist %1 set MsiPkg=%1
)

:: note: "Perl\" is automatically appended to the specified
TARGEDIR.
:: NO WHITESPACE CHARS ALLOWED IN THE INSTALL TARGET PATH!!!! REALLY!
:: Why "ActiveState.com" ??  See the Filesystem Hierarchy Standard:
:: http://www.pathname.com/fhs/2.2/
Set MsiParams=TargetDir="C:\PROGRA~1\ActiveState.com"

cd "%cd%"

echo msiexec %MsiOpts% %MsiAction% "%MsiPkg%" %MsiParams%
msiexec %MsiOpts% %MsiAction% "%MsiPkg%" %MsiParams%

----- cut here  -----


0
pt
4/23/2007 5:36:54 AM
Reply:

Similar Artilces:

["a", "b", "c", "d"] to "a, b, c, d"?
I want to process each element of an array, but the last element should be handled special. Here is an example: def p_ary(ary) str = "" ary.each do |elem| str << elem << ", " end str.chomp!(", ") str end so p_ary(["a", "f", "x", "test"]) produces "a, f, x, test". The code works, but isn't there an easier and more general way for this behaviour? martinus On Tue, 06 Apr 2004 04:23:22 -0700, Martin wrote: > I want to process each element of an array, but the last ele...

Short file format: "Progra~1" for "Program Files"
Hello all, From my Windows command prompt, I'm trying to run an .exe which requires an argument for CLASSPATH, along the lines, <%> Foo.exe -CLASSPATH="C:\Program Files\AppFolder\a.jar....." When the length of CLASSPATH's value is quite large, the .exe doesnt work the way it should. To truncate the CLASSPATH length I tried "C:\Progra~1" for "C:\Program Files". It seems to work fine. This exe needs to run on the end-user's PC. My question is, how reliable is it to use "Progra~1" for "Program Files". If the end-user installs some software which changes "Program Files" from Progra~1 to Progra~2, would I run into trouble. Has anyone run into this situation before? Thanks for your time, Prabh Prabh wrote: > This exe needs to run on the end-user's PC. > My question is, how reliable is it to use "Progra~1" for "Program > Files". Not at all. > If the end-user installs some software which changes "Program Files" > from Progra~1 to Progra~2, would I run into trouble. Yes. In fact, hard-coding C:\Program Files is wrong. > Has anyone run into this situation before? Yes, though I've not needed to use a short file name in a long time. You should call SHGetFolderPath or similar, followed by GetShortPathName. Note that a file or directory might not have a short name, in which case you're probably stuck. ...

What does "Standard C", "K&R C" , "ANSI C" mean?
I am just wondering what the following terms usually mean: 1) "Standard C" 2) "K&R C" 3) "ANSI C" I am pretty sure "ANSI C" usually refers to the C89 standard, but what about the other two? What is the "saying" for C99 standard? Thank you On 17 Jan 2005 21:26:42 -0800, "Luke Wu" <LookSkywalker@gmail.com> wrote in comp.lang.c: > I am just wondering what the following terms usually mean: > > 1) "Standard C" The current version of the C language standard. This is now known as "ISO/IEC 9899:19...

why "::", not "."
Why does the method of modules use a dot, and the constants a double colon? e.g. Math::PI and Math.cos -- Posted via http://www.ruby-forum.com/. On Oct 26, 2010, at 01:48 , Oleg Igor wrote: > Why does the method of modules use a dot, and the constants a double > colon? > e.g. > Math::PI and Math.cos For the same reason why inner-classes/modules use double colon, because = they're constants and that's how you look up via constant namespace. Math::PI and ActiveRecord::Base are the same type of lookup... it is = just that Base is a module and PI is a float....

"out" and "in out"
Hi i found the following explaination: In Ada, "in" parameters are similar to C++ const parameters. They are effectively read-only within the scope of the called subprogram. Ada "in out" parameters have a reliable initial value (that passed in from the calling subprogram) and may be modified within the scope of the called procedure. Ada "out" parameters have no reliable initial value, but are expected to be assigned a value within the called procedure. What does "have no reliable initial value" mean when considering the "out" parameter? By chance I created a small program as follows: =========== s : string := "CAT"; procedure modify ( s1 : out string ) is begin s1(2) := 'U'; end modify; ... put ( modify(s) ); =========== now I get as a result "CUT", and i dont understand why i get this result. Doesnt the "out" specify that its initial value isnt passed in via the parameter? But it seems to be passed in the above. In fact the "out" is acting like an "in out". I am a little confused. Could someone shed some light on this? Many thanks! zork "zork" <zork@nospam.com> wrote in message news:4104d5de@dnews.tpgi.com.au... > Hi i found the following explaination: > > In Ada, "in" parameters are similar to C++ const parameters. They are > effectively read-only within the scope of the called subprogram. > Ada "in out&q...

about "++" and "--"
why this program snippet display "8,7,7,8,-7,-8" the program is: main() { int i=8; printf("%d\n%d\n%d\n%d\n%d\n%d\n",++i,--i,i++,i--,-i++,-i--); } > why this program snippet display "8,7,7,8,-7,-8" Ask your compiler-vendor because this result is IMHO implementation-defined. Check this out: http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.15 http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.16 Regards, Irina Marudina fxc123@gmail.com wrote: > why this program snippet display "8,7,7,8,-7,-8&q...

Urgent need """""""""""INFORMATICA DEVELOPER"""""""""""""
Hello Partners, How are you ? Please find the requirements below. Title: Database/ETL Developer Duration: 6 months Location: NY Exp: 7+ Locals preferred Database/ETL requirements (Mandatory) Candidate must have worked with financial instruments, preferably Mutual Funds but, Equities are also ok. PL/SQL - packages, Stored procs, Functions, Aggregate functions, Pipelined Functions Informatica 8.6 - especially complex mappings, complex maplets, complex workflows, transformations Oracle 10g/11g Unix/Linux shell scripting Database/ETL requirements (Optional) Data warehousing experience Threading and job concepts in 10g/11g Cost based Optimizer concepts in 10g/11g Must : Experience with XML files and partitioning concepts in Oracle, Collections, Material Views Note : No phone calls please. : send Resumes to karthik@bhaninfo.com Thanks & Regards Karthik BhanInfo karthik@bhaninfo.com ...

how make /%([0-f]{2})/ -> sprintf( "%c", "\x" "\\1" ) problem : var = "\x27" # work var = 27 ; var = "\x" var ; # doesnt work, for sprintf %c
.... On 27.10.2014 18:32, {xmb} wrote: > ... > What a stupid question! Read http://www.catb.org/esr/faqs/smart-questions.html and Learn or Leave thank you _not_ for your useless text. if u want to help do so, u didnt. On Tue, 28 Oct 2014 07:42:00 -0700, {xmb} wrote: > thank you _not_ for your useless text. if u want to help do so, u didnt. Your question was unintelligible. The people in this group are very willing to help, in my experience. Your question just did not show the proper attitude or mental state to justify spending time answering. ...

"In" "Out" and "Trash"
I just bought a new computer and I re-installed Eudora Light on my new computer. But when I open Eudora, the "In", "Out" and "Trash" links are not on the left side of the screen the way they were on my old computer. How can I get these links back on the left side of the screen? Thank you. On 25 Mar 2007 09:49:22 -0700, "abx" <abfunex@yahoo.com> wrote: >I just bought a new computer and I re-installed Eudora Light on my new >computer. But when I open Eudora, the "In", "Out" and "Trash" links >are ...

help:what is "quirk" in the file "usbaudio.c"
what is "quirk" or what does it mean ,in the file "usbaudio.c" thanks kevin wrote: > what is "quirk" or what does it mean ,in the file "usbaudio.c" It's a workaround for devices that do not follow the USB Audio specification or have other bugs. HTH Clemens ...

dolby "B", "C"
I've got some old cassettes with unique and original recordings that I'de like to move onto computer. They were recorded with Dolby B. Some were recorded with dolby C. I'de like to transfer the tapes to computer and then "decode" the dolby on the wav files after. My understanding is that since dolby is an analog system, it should be simple to emulate it. I already have a feeling that an expander and a low pass filter (whose strength would follow the loudness contour of the audio) might be the way to go. Any thoughts? Just curious, why do you want to do it this w...

Urgent JAVA Requirement in """"""NEW YORK"""""""""
Hello Partners, How are you ? Please find the requirement below. Location : NY Duration : 8 mnths Rate :Open Job description: Java/J2EE Web Service Developer =B7 (4+ years of application development experience in Java/J2EE and Web service technologies. =B7 Experience with spring & Hibernate. =B7 Experience with J2EE Application Server (preferably Web logic). =B7 Preferable Aqua logic DSP Experience =B7 Preferable Sonic ESB Composite Service experience Experience working in UNIX environment. Good working knowledge of Oracle RDBMS and PL/SQL) Note : Please send your updated resume along with contact no to Karthik@bhaninfo.com. Thanks & Regards Karthik BhanInfo karthik@bhaninfo.com # 1572, 7 th Floor Suites, 1 Blue Hill Plaza Pearl River,NY-10965 www.bhaninfo.com ...

strcmp("C", "Java") > 0 == 1
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html ...

Question about "sprintf" "@" "do for"
Hello, this works: A1=3D1 A2=3D2 A3=3D3 i=3D1 vari=3Dsprintf("A%.f",i) print vari,"=3D",@vari i=3Di+1 vari=3Dsprintf("A%.f",i) print vari,"=3D",@vari i=3Di+1 vari=3Dsprintf("A%.f",i) print vari,"=3D",@vari do for [i=3D1:3]{ vari=3Dsprintf("A%.f",i) print vari } But I want to have "print vari,"=3D",@vari" in the loop. But it dosen't=20 work. Why can't I use "print vari,"=3D",@vari" in the loop? Is there a=20 solution for? J=C3=B6rg Jörg ...

Gary Sokolich """"""
"""""""""" http://www.manta.com/c/mmlq5dm/w-gary-sokolich W Gary Sokolich 801 Kings Road Newport Beach, CA 92663-5715 (949) 650-5379 http://www.tbpe.state.tx.us/da/da022808.htm TEXAS BOARD OF PROFESSIONAL ENGINEERS February 28, 2008 Board Meeting Disciplinary Actions W. Gary Sokolich , Newport Beach, California �V File B-29812 - It was alleged that Dr. Sokolich unlawfully offered or attempted to practice engineering in Texas (...) Dr. Sokolich chose to end the proceedings by signing a Consent Order that was accepted by ...

puts "\\".gsub("\\", "\\\\")
Hello, I have a mini-ruby quiz. Guess what this line of code writes to the console, then try it for yourself: puts "\\".gsub("\\", "\\\\") Why is that so? Martin From: martinus [mailto:martin.ankerl@gmail.com]=20 # Hello, I have a mini-ruby quiz. Guess what this line of code writes to # the console, then try it for yourself: # puts "\\".gsub("\\", "\\\\") puts "\\".gsub("\\", "\\\\") \ #=3D> nil # Why is that so? faq. escaping the escape in sub/gsub. search the archives. maybe you want somethin...

Error: Configuration file "C:\Program" is unreadable."
Dear all, Somehow I have to double click a SAS file and open it. But that error message showed up. I have searched the previous posting and followed the instruction to fix the problem. At the same time, I also checked SAS web site and followed their instruction to fix the problem. But after all these efforts, I still got the nasty message. The only thing I haven't tried is to reinstall SAS because there are a lot of procedures to do that. Any idea will be greatly appreciated. Bob Bob, What kind of system are you on? From your example I presume an older version of Windows. If that is the case, you have to see how SAS is called. It sounds like a Window's problem, trying to find 'C:\program files', but not being able to read the long file names. If so, you may have to change that part of the call to 'c:\progra~1'. Art ----- On Wed, 1 Jun 2005 14:32:21 -0700, baoxian_lan@EXCITE.COM wrote: >Dear all, > >Somehow I have to double click a SAS file and open it. But that error >message showed up. I have searched the previous posting and followed >the instruction to fix the problem. At the same time, I also checked >SAS web site and followed their instruction to fix the problem. > >But after all these efforts, I still got the nasty message. > >The only thing I haven't tried is to reinstall SAS because there are a >lot of procedures to do that. > >Any idea will be greatly appreciated. > >Bob ...

DSCL: "/" vs "."
This is no doubt a naive question. I've recently started using dscl. I've followed the examples on the man page by putting "." in the datasource slot (I think that's the right term). A couple of other documents I've looked at use, instead, "/". Tests with 'read' and 'list' (harmless commands), e.g. dscl . -read /Groups/staff & dscl / -read /Groups/staff give exactly the same results. Is it in general true that "dscl . stuff" and "dscl / stuff" are equivalent? Cheers, N. -- Nollaig MacKenzie http://www.amhui...

"=" operator vs. "IS"
Hi. I'm just curious - why is it not possible to use the "=" operator to compare values with NULL? I suspect that the SQL standard specified it that way, but I can't see any ambiguity in an expression like "AND foo.bar = NULL". Is it because NULL does not "equal" any value, and the expression should be read as "foo.bar is unknown"? Or is there something else I'm missing? If it's the "unknown" part, then why can't I use "=" to compare with TRUE or FALSE? cheers, stefan --------------------------...

files "." and ".." from readdir()
Will readdir always return "." and ".." as the _first_ two entries returned if the filesystem has them? I'm just curious if it testing for them can be skipped after the first two have been tested. I've always written my loops around readdir with the tests applied in every case. -- |WARNING: Due to extreme spam, googlegroups.com is blocked. Due to ignorance | | by the abuse department, bellsouth.net is blocked. If you post to | | Usenet from these places, find another Usenet provider ASAP. | | Phil Howard KA9WGN (email for humans: first ...

"eth0" vs. "eth0:1"
Hello, all. After several years running a Linux server here at my home office you'd think I wouldn't be a "newbie," but the fact is that once I get it doing what I need doing, I never really have to think about it much any more. So when I come across a basic problem, sometimes I'm just at a loss what to do, my "knowledge gap" is so wide. I have an AMD Athlon single-processor box. Eventually I plan to use it to route, but I haven't gotten there yet. Meanwhile, I have two Ethernet "adapters," one on the mainboard and one an actual adapter card. For some reason, one day when I was upgrading the system from Red Hat 8 to Red Hat 9, I found I had to fiddle somehow with the network configuration. Not recalling which card was "live," I somehow "created" a "new" device called "eth0:1", which is LIKE the old "eth0" device I used to use, but...er...worse. Now, if the machine reboots, I have to MANUALLY "activate" the ethernet card. The system is blind to the network until I do this. I cannot figure out (a) what I did to screw this up, and (b) how to get things back right again. Any insights would help. No, sorry, I do not. Please tell me more. I have not been able to find the .config files that are used to set such "aliases." Any clues? <fishbowl@conservatory.com> wrote in message news:78FWa.204101$o86.140041@news1.central.cox.net... > In article <5...

"==" is NOT TRUE "==", WHY?
[CODE START] x=5; y=8; if (x + y + 1E-15 == 13) a = 3 else a = 8 end [CODE END] When x + y + 1E-15, the code above returns a = 8. When x + y + 1E-16, the code above returns a = 3. Why? Kindly advise. Thanks. "onemilimeter Chen" <onemm@example.com> wrote in message <g7adrj$5tr$1@fred.mathworks.com>... > [CODE START] > x=5; > y=8; > if (x + y + 1E-15 == 13) > a = 3 > else > a = 8 > end > [CODE END] > > When x + y + 1E-15, the code above returns a = 8. > When x + y + 1E-16, the code above returns a = 3. > > Why? ...

why have both "." and "->" ?
I used to remember why c++ needed both ? Could somebody help me here ? For example class A{ f(); }; A* aa; You could do either "aa->f()" or "(*aa).f()". So why does C++ need both operators. Raj "raj" <rajkumar@hotmail.com> schreef in bericht news:d7fee6d0.0406230748.694b966b@posting.google.com... > I used to remember why c++ needed both ? > Could somebody help me here ? > > For example > > class A{ > f(); > }; > > A* aa; > > You could do either "aa->f()" or "(*aa).f()". So why does C++ need both operators. > > Raj There is a difference I believe that xxxx->yyyy is used if xxxx is a pointer to an object/class and xxxx.yyyyy if xxxx is the object/classs > class A{ > f(); > }; > > A* aa; > > You could do either "aa->f()" or "(*aa).f()". So why does C++ need both operators. IMHO it's simply convenience. Bye, Marco raj wrote: > > You could do either "aa->f()" or "(*aa).f()". So why does C++ need both > operators. The second form involves more typing and requires more effort to read. -- Russell Hanneken eunaarxra@cbobk.pbz Use ROT13 to decode my email address. In message <WOhCc.15115$Wr.8451@newsread1.news.pas.earthlink.net>, Russell Hanneken <me@privacy.net> writes >raj wrote: >> >> You could do either "aa->f()" or "(*aa...

"A" is not equal "A"?
I was trying to convert String Array to String A through cycle and than compare the result with String B but eventhough results were the same it returned false. I'am working in BlueJ 3.1.0 Code is: public boolean Method () { String[] Example = {"a","b","c"}; String A = ""; String B = "abc" for (int i = 0; i<3 ; i++) { A = A + Example[i]; } if (A == B) { return true; } } never got true... I appreciate any suggestions how to solve this Den 08.04.2014 10:06, skrev 245dav@gmail.com:...

Web resources about - ActiveState vs. "C:\Program Files\" and "C:\Progra~1\" - comp.lang.perl.misc

Canada's ActiveState Cuts Cloud Deal With HP
ActiveState, a Vancouver, Canada-based cloud software firm said that it had licensed its platform-as-a-service product, called Stackato, to Hewlett-Packard. ...

ActiveState Private PaaS With Stackato 2.8
Enterprise private-PaaS gets improved LDAP controls and SPDY support

ActiveState Ships Komodo IDE 7.1 With Cloud Debugging
ActiveState has delivered Komodo 7.1, the latest release of its integrated development environment that supports a variety of programming languages ...

HP Unveils Cloud Application Platform Powered by ActiveState
... last 6 months looking for its PaaS partner for a new global OEM licensing agreement finally settling on Vancouver, British Columbia based ActiveState ...

ActiveState - Geekosystem
... after school. Such is the case of 15-year-old Danill Kulchenko , who recently sold his startup cloud-based computing company Phenona to ActiveState ...


ActiveState buys Appsecute for its social devops smarts
ActiveState , the company behind the Stackato enterprise-focused platform as a service (PaaS), is buying Appsecute, a New Zealand-based startup ...

ActiveState Buys Appsecute To Enhance PaaS With Facebook-Style Feed For Developers And IT Pros - TechCrunch ...
ActiveState, a platform-as-a-service provider, has acquired New Zealand-based Appsecute, a company that provides social monitoring tools for ...

PaaS Provider ActiveState And The Paradox Of Aligning With HP And Cloud Foundry
Platform-as-a-Service (PaaS) provider ActiveState recently scored a sweet deal with HP: It is the official PaaS for the entire HP cloud business. ...

HP acquires ActiveState’s Stackato PaaS business
HP today announced that it has agreed to buy the Stackato business from ActiveState . Terms of the deal weren’t disclosed. Stackato is private ...

Resources last updated: 3/29/2016 8:30:35 AM