cvs: presentations /slides/scripting animated_elephant.gif c-sharp-small.png c-sharp.png core http http.py iMen.jpg intro.xml moreinfo.xml onion.jpg
perl.command.xml perl.example.xml perl.xml php.example.xml php.guestbook.xml php.xml python-small.jpg python.example.xml python.jpg python.xml
python.yeller.xml python.yeller1.xml request.php tst tst.c yeller.tar.gz

From: Date: Sun, 20 Jul 2003 15:16:28 +0000
Subject: cvs: presentations /slides/scripting animated_elephant.gif c-sharp-small.png c-sharp.png core http http.py iMen.jpg intro.xml moreinfo.xml onion.jpg
perl.command.xml perl.example.xml perl.xml php.example.xml php.guestbook.xml php.xml python-small.jpg python.example.xml python.jpg python.xml
python.yeller.xml python.yeller1.xml request.php tst tst.c yeller.tar.gz
Groups: php.pres 
Request: Send a blank email to pres+get-810@lists.php.net to get a copy of this message
sterling Sun Jul 20 11:16:28 2003 EDT Added files: /presentations/slides/scripting animated_elephant.gif c-sharp-small.png c-sharp.png core http iMen.jpg onion.jpg python-small.jpg python.jpg python.yeller.xml python.yeller1.xml tst tst.c yeller.tar.gz Modified files: /presentations/slides/scripting http.py intro.xml moreinfo.xml perl.command.xml perl.example.xml perl.xml php.example.xml php.guestbook.xml php.xml python.example.xml python.xml request.php Log: Add/modify some slides from my Miraflores presentation

Index: presentations/slides/scripting/http.py diff -u presentations/slides/scripting/http.py:1.1 presentations/slides/scripting/http.py:1.2 --- presentations/slides/scripting/http.py:1.1 Tue Jul 2 03:46:09 2002 +++ presentations/slides/scripting/http.py Sun Jul 20 11:16:28 2003 @@ -1,5 +1,3 @@ -#!/usr/bin/python - import urllib import sys Index: presentations/slides/scripting/intro.xml diff -u presentations/slides/scripting/intro.xml:1.1 presentations/slides/scripting/intro.xml:1.2 --- presentations/slides/scripting/intro.xml:1.1 Mon Jul 1 05:16:36 2002 +++ presentations/slides/scripting/intro.xml Sun Jul 20 11:16:28 2003 @@ -1,4 +1,5 @@ <slide title="Introduction"> +<image filename="iMen.jpg" align="right" marginright="1.0em"/> <list title="What Is a Scripting Language?"> <bullet>Pragmatic approach to a Problem</bullet> <bullet>High level language</bullet> Index: presentations/slides/scripting/moreinfo.xml diff -u presentations/slides/scripting/moreinfo.xml:1.2 presentations/slides/scripting/moreinfo.xml:1.3 --- presentations/slides/scripting/moreinfo.xml:1.2 Sun Nov 24 23:18:48 2002 +++ presentations/slides/scripting/moreinfo.xml Sun Jul 20 11:16:28 2003 @@ -1,6 +1,6 @@ -<slide title="More Information"> +<slide title="Thank You!"> <blurb title="Sites" fontsize="3em"/> -<link leader="This Presentation: " fontsize="2em" marginleft="3em" href="http://talks.php.net/show/scripting"/> +<link leader="This Presentation: " fontsize="2em" marginleft="3em" href="http://talks.php.net/show/scripting-v2"/> <link leader="Perl: " fontsize="2em" marginleft="3em" href="http://www.perl.com/"/> <link leader="Python: " fontsize="2em" marginleft="3em" href="http://www.python.org/"/> <link leader="PHP: " fontsize="2em" marginleft="3em" href="http://www.php.net/"/> Index: presentations/slides/scripting/perl.command.xml diff -u presentations/slides/scripting/perl.command.xml:1.1 presentations/slides/scripting/perl.command.xml:1.2 --- presentations/slides/scripting/perl.command.xml:1.1 Mon Jul 1 12:08:50 2002 +++ presentations/slides/scripting/perl.command.xml Sun Jul 20 11:16:28 2003 @@ -1,8 +1,10 @@ <slide title="Command Line Perl"> +<image filename="onion.jpg" align="right" marginright="1.0em"/> <blurb> Perl is very good at one line programs to finish complicated tasks: </blurb> +<break lines="3"/> <example fontsize="1.2em"> <![CDATA[# Taken from a message sent by Tom Christianson to # comp.lang.perl.misc Index: presentations/slides/scripting/perl.example.xml diff -u presentations/slides/scripting/perl.example.xml:1.6 presentations/slides/scripting/perl.example.xml:1.7 --- presentations/slides/scripting/perl.example.xml:1.6 Sun Aug 18 17:11:46 2002 +++ presentations/slides/scripting/perl.example.xml Sun Jul 20 11:16:28 2003 @@ -1,5 +1,5 @@ <slide title="Perl Example"> - +<image filename="onion.jpg" marginright="1.0em" align="right"/> <blurb> An example program that downloads a webpage. </blurb> Index: presentations/slides/scripting/perl.xml diff -u presentations/slides/scripting/perl.xml:1.1 presentations/slides/scripting/perl.xml:1.2 --- presentations/slides/scripting/perl.xml:1.1 Mon Jul 1 11:21:36 2002 +++ presentations/slides/scripting/perl.xml Sun Jul 20 11:16:28 2003 @@ -1,4 +1,5 @@ <slide title="Perl"> +<image filename="onion.jpg" marginright="1.0em" align="right"/> <blurb> Perl, or Practical Extraction and Report Language, is an excellent language for text processing, and system/network management. Index: presentations/slides/scripting/php.example.xml diff -u presentations/slides/scripting/php.example.xml:1.2 presentations/slides/scripting/php.example.xml:1.3 --- presentations/slides/scripting/php.example.xml:1.2 Sun Aug 18 17:11:46 2002 +++ presentations/slides/scripting/php.example.xml Sun Jul 20 11:16:28 2003 @@ -1,11 +1,10 @@ <slide title="PHP Example"> - +<image filename="animated_elephant.gif" align="right" marginright="1.0em"/> <blurb> An example program that downloads a webpage. </blurb> <example - fontsize="1.2em" type="php" filename="request.php"/> Index: presentations/slides/scripting/php.guestbook.xml diff -u presentations/slides/scripting/php.guestbook.xml:1.3 presentations/slides/scripting/php.guestbook.xml:1.4 --- presentations/slides/scripting/php.guestbook.xml:1.3 Sun Aug 18 17:11:46 2002 +++ presentations/slides/scripting/php.guestbook.xml Sun Jul 20 11:16:28 2003 @@ -1,4 +1,5 @@ <slide title="PHP Guestbook"> +<image filename="animated_elephant.gif" align="right" marginright="1.0em"/> <blurb> A Simple Guestbook written in PHP, to show you how powerful the language is at creating web applications. Index: presentations/slides/scripting/php.xml diff -u presentations/slides/scripting/php.xml:1.1 presentations/slides/scripting/php.xml:1.2 --- presentations/slides/scripting/php.xml:1.1 Tue Jul 2 03:46:09 2002 +++ presentations/slides/scripting/php.xml Sun Jul 20 11:16:28 2003 @@ -1,4 +1,5 @@ <slide title="PHP"> +<image filename="animated_elephant.gif" align="right" marginright="1.0em"/> <blurb> PHP is a scripting language specifically designed to help developers solve web problems, it works by embedding sections of code within HTML Index: presentations/slides/scripting/python.example.xml diff -u presentations/slides/scripting/python.example.xml:1.2 presentations/slides/scripting/python.example.xml:1.3 --- presentations/slides/scripting/python.example.xml:1.2 Sun Aug 18 17:11:46 2002 +++ presentations/slides/scripting/python.example.xml Sun Jul 20 11:16:28 2003 @@ -1,10 +1,11 @@ <slide title="Python Example"> +<image filename="python-small.jpg" align="right" marginright="1.0em"/> <blurb> We'll download a URL with Python and print the results. </blurb> +<break lines="3"/> <example - fontsize="1.2em" type="python" filename="http.py"/> </slide> Index: presentations/slides/scripting/python.xml diff -u presentations/slides/scripting/python.xml:1.2 presentations/slides/scripting/python.xml:1.3 --- presentations/slides/scripting/python.xml:1.2 Tue Jul 2 05:14:13 2002 +++ presentations/slides/scripting/python.xml Sun Jul 20 11:16:28 2003 @@ -1,23 +1,24 @@ <slide title="Python"> +<image filename="python.jpg" align="right" marginright="1.0em"/> <blurb> -Python is a heavily object oriented scripting language, that features -oddities such as indent based scope. +Python is a heavily object oriented scripting language. </blurb> <list title="Python Advantages" fontsize="2.5em"> -<bullet>Heavy Object Orientation (Good Object Orientation)</bullet> -<bullet>CS 'Correct'</bullet> +<bullet>Thousand year language</bullet> +<bullet>Very small core functionality</bullet> +<bullet>Very good for prototyping</bullet> +<bullet>Object Orientation done right</bullet> <bullet>Built-in Support for CS Datastructures</bullet> <bullet>Rich C API</bullet> <bullet>Excellent for Mathematical Work</bullet> <bullet>Indent based scope encourages neat programming</bullet> <bullet>Guido named it after Monty Python</bullet> </list> - <list title="Python Disadvantages" fontsize="2.5em"> <bullet>Heavy Object Orientation</bullet> <bullet>Deviates heavily from more standard languages</bullet> -<bullet>Its wierd</bullet> +<bullet>Its weird</bullet> </list> </slide> Index: presentations/slides/scripting/request.php diff -u presentations/slides/scripting/request.php:1.1 presentations/slides/scripting/request.php:1.2 --- presentations/slides/scripting/request.php:1.1 Tue Jul 2 03:46:09 2002 +++ presentations/slides/scripting/request.php Sun Jul 20 11:16:28 2003 @@ -1,22 +1,13 @@ -#!/usr/bin/php4 <?php if ($argc < 2) { die ("You must specify a URL\n"); } - -$port = 80; -if ($argc > 2) { - $port = $argv[2]; -} - $url = $argv[1]; - if (!preg_match ("@^\S+\://@", $url)) { die ("You must specify a URL identifier\n"); } -/* Later versions of php can use file_get_contents ($url) */ -print implode ("", file($url)); +print file_get_contents($url); ?> Index: presentations/slides/scripting/python.yeller.xml +++ presentations/slides/scripting/python.yeller.xml <slide title="Webservices with Python"> <image filename="python-small.jpg" align="right" marginright="1.0em"/> <blurb> %Yeller%, an undetectable service stealer. </blurb> <example fontsize="1.5em" type="python" title="Client" filename="yeller/yb_client.py"/> </slide> Index: presentations/slides/scripting/python.yeller1.xml +++ presentations/slides/scripting/python.yeller1.xml <slide title="Webservices with Python"> <image filename="python-small.jpg" align="right" marginright="1.0em"/> <blurb> %Yeller%, an undetectable service stealer. </blurb> <example type="python" fontsize="1.2" title="Server" filename="yeller/yellowbook.py"/> </slide> Index: presentations/slides/scripting/tst.c +++ presentations/slides/scripting/tst.c #include <stdlib.h> #include <stdio.h> int main(int argc, char **argv) { memcpy((char *) 0, 10, 2); return 0; }
« previous php.pres (#810) next »