MJ Ray writes:
Isn't the version got by "apt-get install php4 php4-pgsql" good enough for
you? reply - package php4-pgsql has no installation candidate
apt-get install task-debian-devel task-devel-common task-c-dev
reply - 8 million dependencies that aren't going to be installed.
apt-get source php4 cd <directory it unpacked to> grep Depend debian/control apt-get install <any bits it needs that you haven't got> debuild binary dpkg -i <package it just made that you want>
reply - debian/control No such file or directory. Not sure where i go wrong, but every time I try installing anything this happens, and I finally give up in a temper. It happened with rpm last week, postgresql7 last week, - oh, i did manage apache, wow. I must be making life much more complicated than it really is here. I can see a bcc package on the debain site, no cc.
David freeman writes:
Why PHP?
reply - firstly, it was mentioned in a casual kind of a manner on irc that in order to build web pages one had to learn php (i thought it was by you, actually!). secondly, it has now been recommended by my bro' as a neat simple solution to manipualting info in a web page. Thirdly, i don't speak c and can't write shell scripts, and were I to learn i'd probably have an even worse job trying to compile the c compiler! Out of the frying pan into the fire. Thanks, Jenny.
--- Jenny_Hopkins@toby-churchill.com wrote:
MJ Ray writes:
Isn't the version got by "apt-get install php4 php4-pgsql" good
enough for you? reply - package php4-pgsql has no installation candidate
apt-get install task-debian-devel task-devel-common task-c-dev
reply - 8 million dependencies that aren't going to be installed.
apt-get source php4 cd <directory it unpacked to> grep Depend debian/control apt-get install <any bits it needs that you haven't got> debuild binary dpkg -i <package it just made that you want>
reply - debian/control No such file or directory. Not sure where i go wrong, but every time I try installing anything this happens, and I finally give up in a temper. It happened with rpm last week, postgresql7 last week, - oh, i did manage apache, wow. I must be making life much more complicated than it really is here. I can see a bcc package on the debain site, no cc.
This is why I stopped using package managers, they never worked, and compiling it was easier.
David freeman writes:
Why PHP?
reply - firstly, it was mentioned in a casual kind of a manner on irc that in order to build web pages one had to learn php (i thought it was by you, actually!).
No, it was Jo. If you want to learn web stuff learn HTML and then think about active stuff. I personally don't like PHP as it is a pain to configure.
secondly, it has now been recommended by my bro' as a neat simple solution to manipualting info in a web page. Thirdly, i don't speak c and can't write shell scripts, and were I to learn i'd probably have an even worse job trying to compile the c compiler! Out of the frying pan into the fire.
I still think taking a copy of K&R and reading it cover to cover would be a good move. Most languages are very similiar, they all have sequence selection and interation, and C is quite easy to learn. What would people consider as an alternative to PHP?
as for the compiler compiling,
make bootstrap-lean
Thanks
D
Thanks, Jenny.
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
David Freeman wrote:
reply - firstly, it was mentioned in a casual kind of a manner on irc that in order to build web pages one had to learn php (i thought it was by you, actually!).
No, it was Jo. If you want to learn web stuff learn HTML and then think about active stuff. I personally don't like PHP as it is a pain to configure.
Hmm, I'm sure I wouldn't have advised leaping straight into PHP if you didn't already know HTML!
I like PHP for many reasons, but you can still build a cracking good (albeit static) site with good ol' ornery HTML, you know :)
Jo
on Mon, Jul 02, 2001 at 08:07:03AM -0700, David Freeman scribbled:
secondly, it has now been recommended by my bro' as a neat simple solution to manipualting info in a web page. Thirdly, i don't speak c and can't write shell scripts, and were I to learn i'd probably have an even worse job trying to compile the c compiler! Out of the frying pan into the fire.
I still think taking a copy of K&R and reading it cover to cover would be a good move. Most languages are very similiar, they all have sequence selection and interation, and C is quite easy to learn. What would people consider as an alternative to PHP?
perl. c is quite "bad" for cgi things, since you spend half your time messing about allocating space for various strings, arrays and misc data. higher level languages tend to be more suited. to get perl working with apache, you only need execcgi and #!/usr/bin/perl afaik. although you can speed up with mod_perl. additionally, perl syntax is a mix of sh/c/awk/sed/etc. php database stuff tends to be easily replaced with perl's DBI.
--- xsprite@bigfoot.com wrote:
on Mon, Jul 02, 2001 at 08:07:03AM -0700, David Freeman scribbled:
perl. c is quite "bad" for cgi things, since you spend half your time messing about allocating space for various strings, arrays and misc data. higher level languages tend to be more suited. to get perl working with apache, you only need execcgi and #!/usr/bin/perl afaik. although you can speed up with mod_perl. additionally, perl syntax is a mix of sh/c/awk/sed/etc. php database stuff tends to be easily replaced with perl's DBI.
Perl is a write only language. I looked into it and it made no sense what so ever. If you want a weird language like this use LISP. almost everything perl does can be done with sed and awk.
I'm sure
#!/usr/bin/perl
()**(%*&"$*("$%*()"&$"kjhdkjh)()))$!"*(�!&�!()*&*(~@~@{{}?>?>?>)(*)(*�!�!�)
\x00
/* might just work with perl */
:o)
Thanks
D
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
on Mon, Jul 02, 2001 at 09:18:33AM -0700, David Freeman scribbled:
Perl is a write only language. I looked into it and it made no sense what so ever.
really.. http://www.perlmonks.org/index.pl?node=Perl%20Poetry
almost everything perl does can be done with sed and awk.
(/-l\s*([^-]+)/) && do { my $orig_chain = $2; my $chain = join(',', map {$_ if (!/^$/);} split(/ /, $2));
$chain =~ s/(?<![^,])0(?![^,])/*/g; s/$orig_chain/$chain /g; };
is quite hard to do with sed/awk (afaics)..
--- xsprite@bigfoot.com wrote:
on Mon, Jul 02, 2001 at 09:18:33AM -0700, David Freeman scribbled:
Perl is a write only language. I looked into it and it made no
sense
what so ever.
really.. http://www.perlmonks.org/index.pl?node=Perl%20Poetry
Sad. Poetry for and about computers.
almost everything perl does can be done with sed and awk.
(/-l\s*([^-]+)/) && do { my $orig_chain = $2; my $chain = join(',', map {$_ if (!/^$/);} split(/ /, $2));
$chain =~ s/(?<![^,])0(?![^,])/*/g; s/$orig_chain/$chain /g;
};
the first line is a classic example of why its write only code, WTF does the (/-l\s*([^-]+)/) mean?
is quite hard to do with sed/awk (afaics)..
Its hard enough to read let alone know what its does.
Thanks
D
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
on Mon, Jul 02, 2001 at 01:20:05PM -0700, David Freeman scribbled:
(/-l\s*([^-]+)/) && do { my $orig_chain = $1; my $chain = join(',', map {$_ if (!/^$/);} split(/ /, $1));
$chain =~ s/(?<![^,])0(?![^,])/*/g; s/$orig_chain/$chain /g;
};
the first line is a classic example of why its write only code, WTF does the (/-l\s*([^-]+)/) mean?
First line is valid in sed, if you change it to /-l *([^-]{1,})/.
If you ommit the lhs, perl uses $_. So (/-l\s*([^-]+)/) is effectively ($_ =~ /-l\s*([^-]+)/) which, if it matches, evaluates and returns true. Since && requires both sides to be true, then only if it matches is the do {} executed. Yes, it could all be rewritten as: if ($_ =~ /-l\s*([^-]+)/) { ... } but i prefer the other way.
/-l\s*([^-]+)/: 0) Match -l followed by zero or more space characters. 1) Add everything between ( and ) to the pattern buffer $1 where [^-]+ is one or more non dash character.
Arguably one of the neatest parts of perl is it's inherent regexes although if you don't know perlre(1) well it can be confusing.
This code basically converts the string "-m -l 0 blah b0df 0 blah 0 -t" to "-m -l *,blah,b0df,*,blah,* -t" (this is for getting mixmaster remailer chains 2.9beta23 to work with mutt..)
David Freeman wrote:
[...]
Perl is a write only language. I looked into it and it made no sense what so ever. If you want a weird language like this use LISP. almost everything perl does can be done with sed and awk.
Hi, I guess that it just goes to show that some people love chocolate and others vanilla - just as well they make both :)
After using Fortran, Cobol, SCL (Algol), Basic, Pascal, C, and all the ghastly sed/awk variants, Perl came as a breeze of sanity. I don't go down all the back lanes but usually I type something in and it does what I thought it was going to. Perhaps it is me but Algol and Perl suit my little brain - or else it is because Larry Wall and I are the same age and made the same experiments in our youths :)
I'm sure
#!/usr/bin/perl
()**(%*&"$*("$%*()"&$"kjhdkjh)()))$!"*(£!&£!()*&*(~@~@{{}?>?>?>)(*)(*£!£!£)
\x00
/* might just work with perl */
No it doesn't - but try this:
perl -e 'print map chop, sort split shift, reverse shift ' 'j_' 'e._jP;_jr/_je=_jk{_jn*_j &_j :_j @_jr}_ja)_js$_j ~_jh]_jt,_jo+_jJ"_jr>_ju#_jt%_jl?_ja^_jc`_jh-_je|' -rjk-
OR
perl -e '$_="\012534`!./4(%2`\cp%2,`(!#+%2j";s/./""\c$&""/gees;print'
I guess that any language is open to abuse/inventation but only perl makes poetry a possibility.
Regards, Dermot