<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: images</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Cache static media files with nginx</title>
        <link>http://www.posteet.com/view/2021</link>
        <description>
        <![CDATA[<pre>if ($request_uri ~* &quot;\.(ico|css|js|gif|jpe?g|png)\?[0-9]+$&quot;) {
  access_log off;
  expires 31d;
  break;
}
# Matching URLs
http://domain.com/stylesheets/blog.css?1221178271

if ($request_uri ~* &quot;\.(ico|gif|png|jpe?g|css|js|swf)(\?v\d\d?)?$&quot;) {
  access_log off;
  expires 31d;
  break;
}
# Matching URLs
http://domain.com/stylesheets/blog.css
http://domain.com/stylesheets/blog.css?v1
http://domain.com/stylesheets/blog.css?v12</pre> <a href="http://www.posteet.com/tags/bandwidth">[bandwidth]</a>  <a href="http://www.posteet.com/tags/cache">[cache]</a>  <a href="http://www.posteet.com/tags/caching">[caching]</a>  <a href="http://www.posteet.com/tags/expires">[expires]</a>  <a href="http://www.posteet.com/tags/images">[images]</a>  <a href="http://www.posteet.com/tags/media">[media]</a>  <a href="http://www.posteet.com/tags/nginx">[nginx]</a>  <a href="http://www.posteet.com/tags/performances">[performances]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Sat, 09 Jan 2010 16:49:02 +0100</pubDate>

            <category>bandwidth</category>
            <category>cache</category>
            <category>caching</category>
            <category>expires</category>
            <category>images</category>
            <category>media</category>
            <category>nginx</category>
            <category>performances</category>
    
    </item>

  
    <item>
        <title>HTML/CSS: aligner verticalement une image et un texte sur une même ligne</title>
        <link>http://www.posteet.com/view/1707</link>
        <description>
        <![CDATA[<pre>En HTML:
&lt;img src=&quot;...&quot; align=&quot;absmiddle&quot; /&gt; Texte

En CSS :
&lt;img src=&quot;...&quot; style=&quot;vertical-align:middle&quot; /&gt; Texte</pre> <a href="http://www.posteet.com/tags/absmiddle">[absmiddle]</a>  <a href="http://www.posteet.com/tags/align">[align]</a>  <a href="http://www.posteet.com/tags/css">[css]</a>  <a href="http://www.posteet.com/tags/html">[html]</a>  <a href="http://www.posteet.com/tags/images">[images]</a>  <a href="http://www.posteet.com/tags/img">[img]</a>  <a href="http://www.posteet.com/tags/textes">[textes]</a>  <a href="http://www.posteet.com/tags/vertical">[vertical]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Sat, 30 May 2009 13:28:42 +0200</pubDate>

            <category>absmiddle</category>
            <category>align</category>
            <category>css</category>
            <category>html</category>
            <category>images</category>
            <category>img</category>
            <category>textes</category>
            <category>vertical</category>
    
    </item>

  
    <item>
        <title>Pear::Quickform, callback de vérification des dimensions d'une image avant upload</title>
        <link>http://www.posteet.com/view/54</link>
        <description>
        <![CDATA[<pre>&lt;?php
require_once &quot;HTML/QuickForm.php&quot; ;

function process() 
{
    global $file,$path;
    if ($file-&gt;isUploadedFile()) {
        $file-&gt;moveUploadedFile( $path);
        print 'Upload done!';
    }
    else {
        print &quot;Keine Datei hochgeladen!&quot;;
    }
}

function ruleCheckImagesize()
{
    global $file;
    if ($file-&gt;isUploadedFile()) {
        $meta = $file-&gt; getValue();
        if($size = @getimagesize( $meta['tmp_name'])) {
            if($size[0] ==  640 &amp;&amp; $size[1 ] == 480) {
                return true;
            }
        }
    }
    return false;
}
      
$uploadForm = new HTML_QuickForm( 'upload_form', 'post');
$uploadForm-&gt;registerRule( 'imagesize', 'function', 'ruleCheckImagesize' );
$path = &quot;d:/www/tmp/&quot;;
$file = $uploadForm-&gt; addElement('file', 'filename' , 'File:');
$uploadForm-&gt;addRule( 'filename', 'Du musst eine Datei wählen',  'uploadedfile' );
$uploadForm-&gt;addRule( 'filename', 'Die Datei muss 640x480px gross sein!',  'imagesize');
$uploadForm-&gt;addElement( 'submit', 'btnUpload', 'Upload' );
if ($uploadForm-&gt;validate()) {
    $uploadForm-&gt;process( 'process', true);
}
else {
    $uploadForm-&gt;display();
}</pre> <a href="http://www.posteet.com/tags/images">[images]</a>  <a href="http://www.posteet.com/tags/pear">[pear]</a>  <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/upload">[upload]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Wed, 03 Oct 2007 13:44:27 +0200</pubDate>

            <category>images</category>
            <category>pear</category>
            <category>php</category>
            <category>upload</category>
    
    </item>


</channel>
</rss>
