cvs: presentations / srm-ffm2004.xml wereldveroverend-ffm2004.xml /slides/i18nl10n cyrillic.xml funny-characters.png funny-characters.xml
normalize.xml other-filters.xml other-transliterations.xml title-ffm2004.xml /slides/srm online3.xml

From: Date: Thu, 11 Nov 2004 16:33:05 +0000
Subject: cvs: presentations / srm-ffm2004.xml wereldveroverend-ffm2004.xml /slides/i18nl10n cyrillic.xml funny-characters.png funny-characters.xml
normalize.xml other-filters.xml other-transliterations.xml title-ffm2004.xml /slides/srm online3.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1087@lists.php.net to get a copy of this message
derick Thu Nov 11 11:33:05 2004 EDT Added files: /presentations wereldveroverend-ffm2004.xml /presentations/slides/i18nl10n cyrillic.xml funny-characters.png funny-characters.xml normalize.xml other-filters.xml other-transliterations.xml title-ffm2004.xml /presentations/slides/srm online3.xml Modified files: /presentations srm-ffm2004.xml Log: - Updated slides for the i18nl10n talk with transliteration examples - Added the SRM talk

http://cvs.php.net/diff.php/presentations/srm-ffm2004.xml?r1=1.1&r2=1.2&ty=u Index: presentations/srm-ffm2004.xml diff -u presentations/srm-ffm2004.xml:1.1 presentations/srm-ffm2004.xml:1.2 --- presentations/srm-ffm2004.xml:1.1 Fri Nov 5 11:05:53 2004 +++ presentations/srm-ffm2004.xml Thu Nov 11 11:33:02 2004 @@ -9,23 +9,23 @@ stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>SRM</topic> -<title>Script Running Machine</title> +<title>Enterprise PHP Bananas</title> <event>Intl. PHP Conference</event> <location>Frankfurt, Germany</location> <date>Nov 10, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <slide>slides/ze-xdebug/title.xml</slide> + +<slide>slides/phpperform/extern_srm.xml</slide> +<slide>slides/srm/banana.xml</slide> + <slide>slides/srm/online1.xml</slide> +<slide>slides/srm/online3.xml</slide> <slide>slides/srm/persistant1.xml</slide> <slide>slides/srm/persistant2.xml</slide> <slide>slides/srm/tree1.xml</slide> <slide>slides/srm/tree2.xml</slide> - -<slide>slides/phpperform/extern_srm.xml</slide> -<slide>slides/srm/banana.xml</slide> -<slide>slides/srm/interact.xml</slide> - <slide>slides/srm/srm-tree1.xml</slide> <slide>slides/srm/srm-tree2.xml</slide> @@ -33,6 +33,9 @@ <slide>slides/srm/sourcelayout.xml</slide> <slide>slides/srm/compiling.xml</slide> <slide>slides/srm/configure-and-run.xml</slide> + +<slide>slides/srm/interact.xml</slide> + <slide>slides/srm/moving.xml</slide> <slide>slides/srm/demo-cluster-1.xml</slide> http://cvs.php.net/co.php/presentations/wereldveroverend-ffm2004.xml?r=1.1&p=1 Index: presentations/wereldveroverend-ffm2004.xml +++ presentations/wereldveroverend-ffm2004.xml <?xml version="1.0" encoding="iso-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>Localization and Internationalization</topic> <title>Multi-lingual development</title> <event>Intl. PHP Conference</event> <location>Frankfurt, Germany</location> <date>November 9th, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <url>http://pres.derickrethans.nl/wereldveroverend-ffm2004</url> <slide>slides/i18nl10n/title-ffm2004.xml</slide> <!-- CHARSETS --> <!--<slide>slides/i18nl10n/what-languages.xml</slide>--> <!-- what is the problem actually? --> <slide>slides/i18nl10n/not-ascii.xml</slide> <!-- not everything is ascii --> <slide>slides/i18nl10n/latin.xml</slide> <!-- latin charsets --> <slide>slides/i18nl10n/convert.xml</slide> <!-- converting charsets (single byte) --> <slide>slides/i18nl10n/asian.xml</slide> <!-- asian charsets --> <slide>slides/i18nl10n/unicode.xml</slide> <!-- unicode and ucs2, ucs4 --> <slide>slides/i18nl10n/utf8.xml</slide> <!-- what does utf8 solve? --> <slide>slides/i18nl10n/utf8-encoding.xml</slide> <!-- how does the encoding work? --> <!-- PROBLEMS and SOLUTIONS --> <slide>slides/i18nl10n/mb-problems.xml</slide> <!-- functions with utf8 chars --> <slide>slides/i18nl10n/iconv-solved.xml</slide> <!-- fixed with iconv --> <slide>slides/i18nl10n/iconv-strpos.xml</slide> <!-- iconv* and other functions --> <slide>slides/i18nl10n/pcre-utf8.xml</slide> <!-- regular expressions, /u, mb_regexp */ --> <!-- CONVERSION and OUTPUT --> <slide>slides/i18nl10n/iconv.xml</slide> <!-- iconv --> <slide>slides/i18nl10n/iconv-function.xml</slide> <!-- converting charsets with iconv --> <slide>slides/i18nl10n/iconv-ob-buffer.xml</slide> <!-- iconv ob_buffer --> <slide>slides/i18nl10n/iconv-ob-buffer-multiple.xml</slide> <!-- multiple charsets and iconv conversion --> <slide>slides/i18nl10n/wrong-http-header.xml</slide> <!-- show problem with wrong http header --> <slide>slides/i18nl10n/correct-http-header.xml</slide> <!-- setting http header --> <slide>slides/i18nl10n/iconv-html.xml</slide> <!-- transliteration to html --> <!-- TRANSLITERATION --> <slide>slides/i18nl10n/funny-characters.xml</slide> <!-- æ -> ae --> <slide>slides/i18nl10n/cyrillic.xml</slide> <!-- cyrillic --> <slide>slides/i18nl10n/other-transliterations.xml</slide> <!-- chinese, greek, hebrew, korean --> <slide>slides/i18nl10n/normalize.xml</slide> <!-- curly->normal quotes, punctuation, diacritics --> <slide>slides/i18nl10n/other-filters.xml</slide> <!-- currency signs, copyright --> <!-- LOCALE ISSUES --> <slide>slides/i18nl10n/locales.xml</slide> <slide>slides/i18nl10n/locale-collation.xml</slide> <!-- string collation (ordering) --> <slide>slides/i18nl10n/locale-casing.xml</slide> <!-- strupper/strlower --> <slide>slides/i18nl10n/locale-date.xml</slide> <!-- formatting a date --> <slide>slides/i18nl10n/locale-numeric.xml</slide> <!-- formatting numbers (also arabic numbers?) --> <slide>slides/i18nl10n/locale-money.xml</slide> <!-- formatting money --> <slide>slides/i18nl10n/locale-php.xml</slide> <!-- PHP and locales --> <!-- EXIT --> <slide>slides/i18nl10n/resources.xml</slide> <!-- resources --> </presentation> http://cvs.php.net/co.php/presentations/slides/i18nl10n/cyrillic.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/cyrillic.xml +++ presentations/slides/i18nl10n/cyrillic.xml <?xml version="1.0" encoding="utf8"?> <slide fontsize="6em"> <title>Transliteration</title> <subtitle>Cyrillic Characters</subtitle> <example class="bit_larger" result="1"><![CDATA[<?php $string = <<<END След малко се запътвам съм автобусната спирка, от там на летището, после пак на летището и пак на автобусната спирка и в Пловдив. END; $string = iconv("utf-8", "ucs-2", $string); $res = transliterate($string, array('cyrillic_transliterate')); echo iconv('ucs-2', 'utf-8', $res); ?>]]></example> </slide> <!-- vim: encoding=utf-8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/funny-characters.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/funny-characters.xml +++ presentations/slides/i18nl10n/funny-characters.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide fontsize="6em"> <title>Transliteration</title> <subtitle>"Funny Characters"</subtitle> <image align="center" filename="funny-characters.png" /> <break lines="2"/> <blurb>What we do now:</blurb> <example class="bit_larger" result="0"><![CDATA["Håtveit på 8. plass" to "h_tveit_p_8_plass"]]></example> <break lines="2"/> <blurb>What we want to do:</blurb> <example class="bit_larger" result="0"><![CDATA["Håtveit på 8. plass" to "haatveit_paa_8_plass"]]></example> <break lines="2"/> <blurb>How we do this:</blurb> <example class="bit_larger" encoding="latin1" result="0"><![CDATA[<?php $string = iconv("latin1", "ucs-2", "Håtveit på 8. plass"); $res = transliterate($string, array('normalize_ligature', 'lowercase_latin', 'space_to_underscores')); echo iconv('ucs-2', 'latin1', $res); ?>]]></example> </slide> <!-- vim: encoding=latin1 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/normalize.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/normalize.xml +++ presentations/slides/i18nl10n/normalize.xml <?xml version="1.0" encoding="utf8"?> <slide fontsize="6em"> <title>Normalization</title> <example class="bit_larger" result="1"><![CDATA[<?php $string = <<<END Normalization: This example is called «normalization». It`s used to convert of “curly quotes”, special—hypens and other characters to more ‘ascii’ representations. Removing diacritical marks: Ḁṉṍṱḫḝṙ ḟḯḽṫḛṝ ṙḗḿṍṿẻṩ ḑḭḁḉṟịṫỉḉấḹ ṁẫṙḵṧ. END; $string = iconv("utf-8", "ucs-2", $string); $res = transliterate($string, array( 'normalize_punctuation', 'diacritical_remove')); echo nl2br(iconv('ucs-2', 'utf-8', $res)); ?>]]></example> </slide> <!-- vim: encoding=utf-8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/other-filters.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/other-filters.xml +++ presentations/slides/i18nl10n/other-filters.xml <?xml version="1.0" encoding="utf8"?> <slide fontsize="6em"> <title>Other filters</title> <example class="bit_larger" result="1"><![CDATA[<pre><?php $string = <<<END decompose_currency_signs: € £ Â¥ decompose_special: © ± « » normalize_numbers: ੬.७५ * ൫൮൨൩.૬૫૩ + ㈥㈡ han_transliterate: 乢乡乞乃 uppercase_cyrillic: След малко се запътвам END; $string = iconv("utf-8", "ucs-2", $string); $res = transliterate($string, array( 'decompose_currency_signs', 'decompose_special', 'normalize_numbers', 'han_transliterate', 'uppercase_cyrillic', 'normalize_ligature', 'diacritical_remove')); echo iconv('ucs-2', 'utf-8', $res); ?>]]></example> </slide> <!-- vim: encoding=utf-8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/other-transliterations.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/other-transliterations.xml +++ presentations/slides/i18nl10n/other-transliterations.xml <?xml version="1.0" encoding="utf8"?> <slide fontsize="6em"> <title>Transliteration</title> <subtitle>Chinese, Hebrew and Greek Characters</subtitle> <example class="bit_larger" result="1"><![CDATA[<?php $string = <<<END 美军总攻费卢杰 战况惨烈 מורדים בפלוג'ה משגרים רקטה בניסיון לעצור את הניסיון של כוחות ארה"ב לכבוש את העיר תצלום: אי-פי Υποθέτω πως για τους ενασχολούντες, η είδηση της βάφτισης του linux kernel tree σε 2.6 στις 17 του Δεκέμβρη 2003 είναι ήδη γνωστή. END; $string = iconv("utf-8", "ucs-2", $string); $res = transliterate($string, array( 'han_transliterate', 'hebrew_transliterate', 'greek_transliterate')); echo nl2br(iconv('ucs-2', 'utf-8', $res)); ?>]]></example> </slide> <!-- vim: encoding=utf-8 --> http://cvs.php.net/co.php/presentations/slides/i18nl10n/title-ffm2004.xml?r=1.1&p=1 Index: presentations/slides/i18nl10n/title-ffm2004.xml +++ presentations/slides/i18nl10n/title-ffm2004.xml <slide fontsize="3.5em"> <title>Welcome!</title> <image align="center" filename="multi-langual-development-trans.png" /> <break lines="3"/> <blurb class="event">Intl. PHP Conference</blurb> <break/> <blurb class="event-date">November 9th, 2004. Frankurt, Germany</blurb> <break/> <blurb class="event-presenter">Derick Rethans &amp;lt;&lt;a href="mailto:derick@php.net">derick@php.net&lt;/a>&amp;gt;</blurb> <break/> <blurb class="pres-url-small">&lt;a href="http://pres.derickrethans.nl/wereldveroverend-ffm2004">http://pres.derickrethans.nl/wereldveroverend-ffm2004&lt;/a></blurb> </slide> http://cvs.php.net/co.php/presentations/slides/srm/online3.xml?r=1.1&p=1 Index: presentations/slides/srm/online3.xml +++ presentations/slides/srm/online3.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Users on-line</title> <subtitle>With SRM</subtitle> <blurb fontsize="4em">Script utilizing SRM to count the users 'online': </blurb> <example fontsize="1.25em"><![CDATA[<?php $srm = new SRM ('/var/srm.socket'); $srm->user_active($_COOKIE['PHP_SESSID']); echo $srm->get_active_user_count(); ?>]]></example> <break lines="2"/> <blurb fontsize="4em">Daemon side: </blurb> <example fontsize="1.25em"><![CDATA[<?php $active_users = array(); function user_active($id) { $GLOBALS['active_users'][$id] = time(); } function cleanup_inactive_users() { foreach($GLOBALS['active_users'] as $id => $time) { if ($time < time() - 300) { unset($GLOBALS['active_users'][$id]); } } } function get_active_user_count() { cleanup_inactive_users(); return count($GLOBALS['active_users']); } ?>]]></example> </slide>
« previous php.pres (#1087) next »