<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>vedovini.net</title> <link>http://vedovini.net</link> <description>Building software since 1985</description> <lastBuildDate>Sat, 28 Aug 2010 08:48:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/cvedovini/blog" /><feedburner:info uri="cvedovini/blog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>cvedovini/blog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><title>Facebook Pages Notifications</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/jep0yVR6HeA/</link> <comments>http://vedovini.net/2010/07/facebook-pages-notifications/#comments</comments> <pubDate>Fri, 16 Jul 2010 14:57:32 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[portfolio]]></category> <category><![CDATA[application]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[e-mail]]></category> <category><![CDATA[facebook]]></category> <category><![CDATA[notifications]]></category> <category><![CDATA[page notifier]]></category> <category><![CDATA[pages]]></category> <category><![CDATA[status]]></category> <category><![CDATA[wall]]></category> <category><![CDATA[watch my pages!]]></category><guid isPermaLink="false">http://vedovini.net/?p=660</guid> <description><![CDATA[You might have noticed already, if you administer community or professional pages or have developed Facebook applications, that contrary to your own personal wall you never get notified when someone post a status or write a comment on your pages? This is a problem for most page administrators and there is a 32 pages long [...]]]></description> <content:encoded><![CDATA[<p><a href="http://www.facebook.com/apps/application.php?id=142015502480156"><img class="s3-img alignright" style="border: 0pt none;" src="http://media.vedovini.net/blog/wp-content/uploads/2010/logo.png" border="0" alt="logo.png" width="240" height="240" /></a> You might have noticed already, if you administer community or professional pages or have developed Facebook applications, that contrary to your own personal wall you never get notified when someone post a status or write a comment on your pages?</p><p>This is a problem for most page administrators and there is a <a href="http://www.facebook.com/topic.php?uid=10381469571&amp;topic=6070">32 pages long (and growing) thread</a> with people complaining about this missing feature. This is a problem because without such a feature you have to periodically crawl your own pages to check if anyone posted anything (status or comment) and get the opportunity to eventually respond to it, or spam it. I guess that since they won&#8217;t get notified about this thread the Facebook people will never notice the problem&#8230;</p><p>One proposed solution to this issue is to &#8220;like&#8221; each and every status update you post on your pages wall, however, beside the fact that liking everything you post may look a bit awkward, this does not gets you notified when someone posts a new status.</p><p>I have some pages I need to watch, so missing this feature was really a problem to me. And when it itches, I scratch&#8230; Besides, I wanted to experiment with the new Facebook Graph API.</p><p>So I created <a href="http://apps.facebook.com/fbpagewatch/">this application</a>, it&#8217;s called &#8220;Watch My Pages!&#8221; and provides users with receiving daily e-mail notifications when someone posts a status or writes a comment to their pages wall. If you like it, have a problem with it or think about a feature, just <a href="http://www.facebook.com/apps/application.php?id=142015502480156">drop a message on it&#8217;s wall</a>, I&#8217;ll get notified ;)</p><h3  class="related_post_title">Related posts: (automatically generated)</h3><ul class="related_post"><li><a href="http://vedovini.net/2010/01/experiencing-viral-growth/" title="Experiencing viral growth">Experiencing viral growth</a></li><li><a href="http://vedovini.net/2009/12/a-year-in-review/" title="A year in review">A year in review</a></li><li><a href="http://vedovini.net/2009/03/vedovininet-is-on-facebook/" title="vedovini.net is on Facebook">vedovini.net is on Facebook</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=jep0yVR6HeA:4oIrsbyz2AM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=jep0yVR6HeA:4oIrsbyz2AM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=jep0yVR6HeA:4oIrsbyz2AM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=jep0yVR6HeA:4oIrsbyz2AM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=jep0yVR6HeA:4oIrsbyz2AM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=jep0yVR6HeA:4oIrsbyz2AM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=jep0yVR6HeA:4oIrsbyz2AM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=jep0yVR6HeA:4oIrsbyz2AM:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2010/07/facebook-pages-notifications/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://vedovini.net/2010/07/facebook-pages-notifications/</feedburner:origLink></item> <item><title>How to manage Google AppEngine maintenance periods</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/BKk1xcc6A0s/</link> <comments>http://vedovini.net/2010/06/how-to-manage-google-appengine-maintenance-periods/#comments</comments> <pubDate>Wed, 30 Jun 2010 21:38:45 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[technology]]></category> <category><![CDATA[appengine]]></category> <category><![CDATA[datastore]]></category> <category><![CDATA[decorator]]></category> <category><![CDATA[django]]></category> <category><![CDATA[gae]]></category> <category><![CDATA[maintenance]]></category> <category><![CDATA[python]]></category> <category><![CDATA[read-only]]></category><guid isPermaLink="false">http://vedovini.net/?p=645</guid> <description><![CDATA[Here is a small snippet of code that I use on applications deployed on Google AppEngine to inform users that the application is in maintenance mode. It usually happen when the AppEngine team put the datastore in read-only mode for maintenance purpose but other capabilities can be tested as well. def requires_datastore_write&#40;view&#41;: def newview&#40;request, *args, [...]]]></description> <content:encoded><![CDATA[<p><img class="alignright" src="http://code.google.com/appengine/images/appengine_lowres.gif" alt="" width="142" height="109" />Here is a small snippet of code that I use on applications deployed on Google AppEngine to inform users that the application is in maintenance mode. It usually happen when the AppEngine team put the datastore in read-only mode for maintenance purpose but other capabilities can be tested as well.</p><div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> requires_datastore_write<span style="color: black;">&#40;</span>view<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> newview<span style="color: black;">&#40;</span>request, <span style="color: #66cc66;">*</span>args, <span style="color: #66cc66;">**</span>kwargs<span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">from</span> google.<span style="color: black;">appengine</span>.<span style="color: black;">api</span> <span style="color: #ff7700;font-weight:bold;">import</span> capabilities
        datastore_write_enabled = capabilities.<span style="color: black;">CapabilitySet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'datastore_v3'</span>, capabilities=<span style="color: black;">&#91;</span><span style="color: #483d8b;">'write'</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>.<span style="color: black;">is_enabled</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
        <span style="color: #ff7700;font-weight:bold;">if</span> datastore_write_enabled:
            <span style="color: #ff7700;font-weight:bold;">return</span> view<span style="color: black;">&#40;</span>request, <span style="color: #66cc66;">*</span>args, <span style="color: #66cc66;">**</span>kwargs<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">else</span>:
            <span style="color: #ff7700;font-weight:bold;">from</span> django.<span style="color: black;">shortcuts</span> <span style="color: #ff7700;font-weight:bold;">import</span> render_to_response
            <span style="color: #ff7700;font-weight:bold;">from</span> django.<span style="color: black;">template</span> <span style="color: #ff7700;font-weight:bold;">import</span> RequestContext
            <span style="color: #ff7700;font-weight:bold;">return</span> render_to_response<span style="color: black;">&#40;</span><span style="color: #483d8b;">'maintenance.html'</span>, context_instance=RequestContext<span style="color: black;">&#40;</span>request<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">return</span> newview</pre></div></div><p>This is a python decorator and you can use it to decorate views that require write access to the datastore. For example:</p><div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">@requires_datastore_write
<span style="color: #ff7700;font-weight:bold;">def</span> update<span style="color: black;">&#40;</span>request<span style="color: black;">&#41;</span>:
    ...</pre></div></div><p>You will need to create a Django template named <samp>maintenance.html</samp> to display a warning to your users. Mine looks like this:</p><div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;h2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Application Maintenance<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>The LibraryThing for Facebook application is currently
in maintenance mode and some operations are temporarily unavailable.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Thanks for trying back later. Sorry for the inconvenience.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div><h3  class="related_post_title">Related posts: (automatically generated)</h3><ul class="related_post"><li><a href="http://vedovini.net/2009/12/a-year-in-review/" title="A year in review">A year in review</a></li><li><a href="http://vedovini.net/2010/06/properly-uploading-files-to-amazon-s3/" title="Properly uploading files to Amazon S3">Properly uploading files to Amazon S3</a></li><li><a href="http://vedovini.net/2009/04/i-can-haz-java/" title="I Can Haz Java?">I Can Haz Java?</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=BKk1xcc6A0s:T_Pe3pYcAro:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=BKk1xcc6A0s:T_Pe3pYcAro:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=BKk1xcc6A0s:T_Pe3pYcAro:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=BKk1xcc6A0s:T_Pe3pYcAro:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=BKk1xcc6A0s:T_Pe3pYcAro:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=BKk1xcc6A0s:T_Pe3pYcAro:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=BKk1xcc6A0s:T_Pe3pYcAro:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=BKk1xcc6A0s:T_Pe3pYcAro:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2010/06/how-to-manage-google-appengine-maintenance-periods/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://vedovini.net/2010/06/how-to-manage-google-appengine-maintenance-periods/</feedburner:origLink></item> <item><title>Properly uploading files to Amazon S3</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/5ts_S-gmNBs/</link> <comments>http://vedovini.net/2010/06/properly-uploading-files-to-amazon-s3/#comments</comments> <pubDate>Tue, 22 Jun 2010 10:27:37 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[technology]]></category> <category><![CDATA[aws]]></category> <category><![CDATA[boto]]></category> <category><![CDATA[cssmin]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[jsmin]]></category> <category><![CDATA[minify]]></category> <category><![CDATA[python]]></category> <category><![CDATA[s3]]></category><guid isPermaLink="false">http://vedovini.net/?p=624</guid> <description><![CDATA[Here is a little script I wrote and I though ought to be shared. I use it to upload static files like images, css and javascript so that they can be served by Amazon S3 instead of the main application server (like Google App Engine). It&#8217;s written in Python and does interesting things like compressing [...]]]></description> <content:encoded><![CDATA[<p>Here is a little script I wrote and I though ought to be shared. I use it to upload static files like images, css and javascript so that they can be served by Amazon S3 instead of the main application server (like Google App Engine).</p><p>It&#8217;s written in Python and does interesting things like compressing and minifying what needs to be. It takes 3 arguments and as 2 options:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Usage: s3uploader.py <span style="color: #7a0874; font-weight: bold;">&#91;</span>-xm<span style="color: #7a0874; font-weight: bold;">&#93;</span> src_folder destination_bucket_name prefix</pre></div></div><dl><dt>src_folder</dt><dd>path to the local folder containing the static files to upload</dd><dt>destination_bucket_name</dt><dd>name of the S3 bucket to upload to (e.g. static.example.com)</dd><dt>prefix</dt><dd>a prefix to use for the destination key (kind of a folder on the destination bucket, I use it to specify a release version to defeat browser caching)</dd><dt>x</dt><dd>if set, the script will set a far future expiry for all files, otherwise the S3 default will be used (one day if I remember well)</dd><dt>m</dt><dd>if set, the script will minify css and javascript files</dd></dl><p>First you will have to install some dependencies, namely boto, jsmin and cssmin. Installation procedure will depend on your OS but on my Mac I do the following:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install boto
<span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install jsmin
<span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install cssmin</pre></div></div><p>And here is the script itself:</p><div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#! /usr/bin/env python</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>, <span style="color: #dc143c;">sys</span>, boto, <span style="color: #dc143c;">mimetypes</span>, <span style="color: #dc143c;">zipfile</span>, <span style="color: #dc143c;">gzip</span>
<span style="color: #ff7700;font-weight:bold;">from</span> io <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">StringIO</span>, BytesIO
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">optparse</span> <span style="color: #ff7700;font-weight:bold;">import</span> OptionParser
<span style="color: #ff7700;font-weight:bold;">from</span> jsmin <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #66cc66;">*</span>
<span style="color: #ff7700;font-weight:bold;">from</span> cssmin <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #66cc66;">*</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Boto picks up configuration from the env.</span>
<span style="color: #dc143c;">os</span>.<span style="color: black;">environ</span><span style="color: black;">&#91;</span><span style="color: #483d8b;">'AWS_ACCESS_KEY_ID'</span><span style="color: black;">&#93;</span> = <span style="color: #483d8b;">'Your AWS access key id goes here'</span>
<span style="color: #dc143c;">os</span>.<span style="color: black;">environ</span><span style="color: black;">&#91;</span><span style="color: #483d8b;">'AWS_SECRET_ACCESS_KEY'</span><span style="color: black;">&#93;</span> = <span style="color: #483d8b;">'Your AWS secret access key goes here'</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># The list of content types to gzip, add more if needed</span>
COMPRESSIBLE = <span style="color: black;">&#91;</span> <span style="color: #483d8b;">'text/plain'</span>, <span style="color: #483d8b;">'text/csv'</span>, <span style="color: #483d8b;">'application/xml'</span>,
                <span style="color: #483d8b;">'application/javascript'</span>, <span style="color: #483d8b;">'text/css'</span> <span style="color: black;">&#93;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> main<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
    <span style="color: #dc143c;">parser</span> = OptionParser<span style="color: black;">&#40;</span>usage=<span style="color: #483d8b;">'usage: %prog [options] src_folder destination_bucket_name prefix'</span><span style="color: black;">&#41;</span>
    <span style="color: #dc143c;">parser</span>.<span style="color: black;">add_option</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'-x'</span>, <span style="color: #483d8b;">'--expires'</span>, action=<span style="color: #483d8b;">'store_true'</span>, <span style="color: #008000;">help</span>=<span style="color: #483d8b;">'set far future expiry for all files'</span><span style="color: black;">&#41;</span>
    <span style="color: #dc143c;">parser</span>.<span style="color: black;">add_option</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'-m'</span>, <span style="color: #483d8b;">'--minify'</span>, action=<span style="color: #483d8b;">'store_true'</span>, <span style="color: #008000;">help</span>=<span style="color: #483d8b;">'minify javascript files'</span><span style="color: black;">&#41;</span>
    <span style="color: black;">&#40;</span>options, args<span style="color: black;">&#41;</span> = <span style="color: #dc143c;">parser</span>.<span style="color: black;">parse_args</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>args<span style="color: black;">&#41;</span> <span style="color: #66cc66;">!</span>= <span style="color: #ff4500;">3</span>:
        <span style="color: #dc143c;">parser</span>.<span style="color: black;">error</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;incorrect number of arguments&quot;</span><span style="color: black;">&#41;</span>
    src_folder = <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">normpath</span><span style="color: black;">&#40;</span>args<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
    bucket_name = args<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>
    prefix = args<span style="color: black;">&#91;</span><span style="color: #ff4500;">2</span><span style="color: black;">&#93;</span>
&nbsp;
    conn = boto.<span style="color: black;">connect_s3</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
    bucket = conn.<span style="color: black;">get_bucket</span><span style="color: black;">&#40;</span>bucket_name<span style="color: black;">&#41;</span>
&nbsp;
    namelist = <span style="color: black;">&#91;</span><span style="color: black;">&#93;</span>
    <span style="color: #ff7700;font-weight:bold;">for</span> root, dirs, files <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">walk</span><span style="color: black;">&#40;</span>src_folder<span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">if</span> files <span style="color: #ff7700;font-weight:bold;">and</span> <span style="color: #ff7700;font-weight:bold;">not</span> <span style="color: #483d8b;">'.svn'</span> <span style="color: #ff7700;font-weight:bold;">in</span> root:
            path = <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">relpath</span><span style="color: black;">&#40;</span>root, src_folder<span style="color: black;">&#41;</span>
            namelist += <span style="color: black;">&#91;</span><span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">normpath</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>path, f<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">for</span> f <span style="color: #ff7700;font-weight:bold;">in</span> files<span style="color: black;">&#93;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Uploading %d files to bucket %s'</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span><span style="color: #008000;">len</span><span style="color: black;">&#40;</span>namelist<span style="color: black;">&#41;</span>, bucket.<span style="color: black;">name</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">for</span> name <span style="color: #ff7700;font-weight:bold;">in</span> namelist:
        content = <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>src_folder, name<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
        key = bucket.<span style="color: black;">new_key</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>prefix, name<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
        <span style="color: #008000;">type</span>, encoding = <span style="color: #dc143c;">mimetypes</span>.<span style="color: black;">guess_type</span><span style="color: black;">&#40;</span>name<span style="color: black;">&#41;</span>
        <span style="color: #008000;">type</span> = <span style="color: #008000;">type</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #483d8b;">'application/octet-stream'</span>
        headers = <span style="color: black;">&#123;</span> <span style="color: #483d8b;">'Content-Type'</span>: <span style="color: #008000;">type</span>, <span style="color: #483d8b;">'x-amz-acl'</span>: <span style="color: #483d8b;">'public-read'</span> <span style="color: black;">&#125;</span>
        states = <span style="color: black;">&#91;</span><span style="color: #008000;">type</span><span style="color: black;">&#93;</span>
&nbsp;
        <span style="color: #ff7700;font-weight:bold;">if</span> options.<span style="color: black;">expires</span>:
            <span style="color: #808080; font-style: italic;"># We only use HTTP 1.1 headers because they are relative to the time of download</span>
            <span style="color: #808080; font-style: italic;"># instead of being hardcoded.</span>
            headers<span style="color: black;">&#91;</span><span style="color: #483d8b;">'Cache-Control'</span><span style="color: black;">&#93;</span> = <span style="color: #483d8b;">'max-age %d'</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span><span style="color: #ff4500;">3600</span> <span style="color: #66cc66;">*</span> <span style="color: #ff4500;">24</span> <span style="color: #66cc66;">*</span> <span style="color: #ff4500;">365</span><span style="color: black;">&#41;</span>
&nbsp;
        <span style="color: #ff7700;font-weight:bold;">if</span> options.<span style="color: black;">minify</span> <span style="color: #ff7700;font-weight:bold;">and</span> <span style="color: #008000;">type</span> == <span style="color: #483d8b;">'application/javascript'</span>:
            outs = <span style="color: #dc143c;">StringIO</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
            JavascriptMinify<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">minify</span><span style="color: black;">&#40;</span>content, outs<span style="color: black;">&#41;</span>
            content.<span style="color: black;">close</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
            content = outs.<span style="color: black;">getvalue</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
            <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>content<span style="color: black;">&#41;</span> <span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;</span> <span style="color: #ff4500;">0</span> <span style="color: #ff7700;font-weight:bold;">and</span> content<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span> == <span style="color: #483d8b;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>:
                content = content<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span>:<span style="color: black;">&#93;</span>
            content = BytesIO<span style="color: black;">&#40;</span>content<span style="color: black;">&#41;</span>
            states.<span style="color: black;">append</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'minified'</span><span style="color: black;">&#41;</span>
&nbsp;
        <span style="color: #ff7700;font-weight:bold;">if</span> options.<span style="color: black;">minify</span> <span style="color: #ff7700;font-weight:bold;">and</span> <span style="color: #008000;">type</span> == <span style="color: #483d8b;">'text/css'</span>:
            outs = cssmin<span style="color: black;">&#40;</span>content.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
            content.<span style="color: black;">close</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
            content = outs
            <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>content<span style="color: black;">&#41;</span> <span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;</span> <span style="color: #ff4500;">0</span> <span style="color: #ff7700;font-weight:bold;">and</span> content<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span> == <span style="color: #483d8b;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>:
                content = content<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span>:<span style="color: black;">&#93;</span>
            content = BytesIO<span style="color: black;">&#40;</span>content<span style="color: black;">&#41;</span>
            states.<span style="color: black;">append</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'minified'</span><span style="color: black;">&#41;</span>
&nbsp;
        <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">type</span> <span style="color: #ff7700;font-weight:bold;">in</span> COMPRESSIBLE:
            headers<span style="color: black;">&#91;</span><span style="color: #483d8b;">'Content-Encoding'</span><span style="color: black;">&#93;</span> = <span style="color: #483d8b;">'gzip'</span>
            compressed = <span style="color: #dc143c;">StringIO</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
            gz = <span style="color: #dc143c;">gzip</span>.<span style="color: black;">GzipFile</span><span style="color: black;">&#40;</span>filename=name, fileobj=compressed, mode=<span style="color: #483d8b;">'w'</span><span style="color: black;">&#41;</span>
            gz.<span style="color: black;">writelines</span><span style="color: black;">&#40;</span>content<span style="color: black;">&#41;</span>
            gz.<span style="color: black;">close</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
            content.<span style="color: black;">close</span>
            content = BytesIO<span style="color: black;">&#40;</span>compressed.<span style="color: black;">getvalue</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
            states.<span style="color: black;">append</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'gzipped'</span><span style="color: black;">&#41;</span>
&nbsp;
        states = <span style="color: #483d8b;">', '</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>states<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'- %s =&amp;gt; %s (%s)'</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>name, key.<span style="color: black;">name</span>, states<span style="color: black;">&#41;</span>
        key.<span style="color: black;">set_contents_from_file</span><span style="color: black;">&#40;</span>content, headers<span style="color: black;">&#41;</span>
        content.<span style="color: black;">close</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: #66cc66;">;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">'__main__'</span>:
    main<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div><p>Thanks to Nico for the expiry trick :)</p><h3  class="related_post_title">Related posts: (automatically generated)</h3><ul class="related_post"><li><a href="http://vedovini.net/2009/12/a-year-in-review/" title="A year in review">A year in review</a></li><li><a href="http://vedovini.net/2010/06/how-to-manage-google-appengine-maintenance-periods/" title="How to manage Google AppEngine maintenance periods">How to manage Google AppEngine maintenance periods</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=5ts_S-gmNBs:2qoL_1bRaUk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=5ts_S-gmNBs:2qoL_1bRaUk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=5ts_S-gmNBs:2qoL_1bRaUk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=5ts_S-gmNBs:2qoL_1bRaUk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=5ts_S-gmNBs:2qoL_1bRaUk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=5ts_S-gmNBs:2qoL_1bRaUk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=5ts_S-gmNBs:2qoL_1bRaUk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=5ts_S-gmNBs:2qoL_1bRaUk:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2010/06/properly-uploading-files-to-amazon-s3/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://vedovini.net/2010/06/properly-uploading-files-to-amazon-s3/</feedburner:origLink></item> <item><title>Spare me the talk about privacy, they’re all clueless anyway…</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/q2Qgsez--OQ/</link> <comments>http://vedovini.net/2010/02/spare-me-the-talk-about-privacy-theyre-all-clueless-anyway/#comments</comments> <pubDate>Tue, 02 Feb 2010 11:10:19 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[rants]]></category> <category><![CDATA[clueless]]></category> <category><![CDATA[data mining]]></category> <category><![CDATA[google]]></category> <category><![CDATA[privacy]]></category><guid isPermaLink="false">http://vedovini.net/?p=548</guid> <description><![CDATA[With all the talks and posts and whatnot about privacy on the Internet it&#8217;s easy for anyone to turn into a privacy control freak. And I really was starting to freak out myself. After all, a good bunch of my own life is on the Net: Facebook ,Twitter, Flickr, LinkedIn, this blog, all the Google [...]]]></description> <content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/thexbeautyxofxlove/2793965150/"><img class="alignright" title="&quot;I want privacy!&quot; by bejealousofme" src="http://farm4.static.flickr.com/3017/2793965150_efca1bd86b_m_d.jpg" alt="" width="240" height="199" /></a><strong>With all the talks and posts and whatnot about privacy on the Internet it&#8217;s easy for anyone to turn into a privacy control freak.</strong></p><p>And I really was starting to freak out myself. After all, a good bunch of my own life is on the Net: Facebook ,Twitter, Flickr, LinkedIn, this blog, all the Google applications and all the other services I use, or I test&#8230; But this morning I received a letter, not an e-mail, a paper letter. From Google AdWords. Sent from France. In German!</p><p>I guess they just assumed that since I was living in Switzerland I was talking German, like when ebay.com redirects me to ebay.de, but I don&#8217;t speak nor read German.</p><p>And it reminded me something I learned a long time ago, when I was working for Singularis &#8211; a now defunct start-up that was collecting users preferences about TV programs: You can collect as many data as you want, if you don&#8217;t know how to use it it&#8217;s only worth the cost of the storage.</p><p>And the more you have the harder it is.</p><h3  class="related_post_title">Related posts: (automatically generated)</h3><ul class="related_post"><li><a href="http://vedovini.net/2009/09/sidewiki-rss/" title="Sidewiki RSS">Sidewiki RSS</a></li><li><a href="http://vedovini.net/2009/04/does-google-read-this-blog/" title="Does Google read this blog?">Does Google read this blog?</a></li><li><a href="http://vedovini.net/2009/04/just-google-me/" title="Just Google me!">Just Google me!</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=q2Qgsez--OQ:FfcWIel0A8g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=q2Qgsez--OQ:FfcWIel0A8g:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=q2Qgsez--OQ:FfcWIel0A8g:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=q2Qgsez--OQ:FfcWIel0A8g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=q2Qgsez--OQ:FfcWIel0A8g:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=q2Qgsez--OQ:FfcWIel0A8g:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=q2Qgsez--OQ:FfcWIel0A8g:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=q2Qgsez--OQ:FfcWIel0A8g:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2010/02/spare-me-the-talk-about-privacy-theyre-all-clueless-anyway/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <feedburner:origLink>http://vedovini.net/2010/02/spare-me-the-talk-about-privacy-theyre-all-clueless-anyway/</feedburner:origLink></item> <item><title>Sévices Après Vente</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/99Ir9JPxWBk/</link> <comments>http://vedovini.net/2010/02/sevices-apres-vente/#comments</comments> <pubDate>Mon, 01 Feb 2010 14:51:22 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[rants]]></category> <category><![CDATA[arnaque]]></category> <category><![CDATA[fnac]]></category> <category><![CDATA[garantie]]></category> <category><![CDATA[insomnie]]></category> <category><![CDATA[macbook]]></category> <category><![CDATA[memoire vive]]></category> <category><![CDATA[pas content]]></category> <category><![CDATA[sav]]></category><guid isPermaLink="false">http://vedovini.net/?p=515</guid> <description><![CDATA[Dans un monde chaque jour un peu plus numérisé n&#8217;oublions pas que ce sont toujours les même vieux trucs qui fonctionnent: si vis pacem, para bellum! !!Attention!! Ce billet est long et ennuyeux&#8230; Ceux qui me suivent sur Twitter ou Facebook se souviendront qu&#8217;en novembre dernier (le vendredi 13 exactement) mon appartement avait été cambriolé [...]]]></description> <content:encoded><![CDATA[<p><strong>Dans un monde chaque jour un peu plus numérisé n&#8217;oublions pas que ce sont toujours les même vieux trucs qui fonctionnent: si vis pacem, para bellum!</strong></p><p><strong>!!Attention!! Ce billet est long et ennuyeux&#8230;</strong></p><p>Ceux qui me suivent sur <a href="http://www.twitter.com/cvedovini">Twitter</a> ou <a href="http://www.facebook.com/cvedovini">Facebook</a> se souviendront qu&#8217;en novembre dernier (le vendredi 13 exactement) mon appartement avait été cambriolé pendant que j&#8217;étais chez le dentiste (ça fais beaucoup pour un vendredi 13). Parmi les objets qui m&#8217;avaient été volés se trouvait mon MacBook Pro, qui est mon seul et unique outil de travail.</p><p>J&#8217;avais donc rapidement besoin d&#8217;une nouvelle machine. Après avoir fait le tour des revendeurs Apple de la région pour découvrir que seules des configurations de base étaient en stock, je me rend, sans grand espoir, à la <a href="http://fnac.ch/">FNAC</a> de Lausanne.</p><p>Je n&#8217;achète jamais de matériel électronique de ce prix à la FNAC &#8211; en dessous de 200,-CHF le rapport prix/rapidité de l&#8217;achat est assez favorable pour que je ne cherche pas plus loin mais au-delà j&#8217;ai toujours pu trouver moins cher ailleurs. Mais, ce samedi 14, je découvre avec bonheur que la FNAC possède en stock un MacBook Pro dont la configuration approche de très prés la configuration que je recherche: 15&#8243;, 3.06GHZ, 4Go de RAM et un disque dur de 500Go à 7200 tr/mn. Je l&#8217;achète donc, pour le prix de 3299,-CHF (moins le rabais adhérents).</p><p>Le 29 décembre dernier (un mois et demi plus tard), en allant me coucher, je décide de laisser mon MacBook allumé sur la table du salon afin qu&#8217;il puisse participer au réseau <a href="http://vedovini.net/2009/02/what-boinc-are-you/">BOINC</a> et dédier quelques cycles à la recherche extra-terrestre. Je n&#8217;ai pas d&#8217;animaux, pas d&#8217;enfants et la machine est posée sur un endroit dégagé où la ventilation n&#8217;est pas obstruée.</p><p>Le lendemain matin, ayant pris mon petit déjeuner, je m&#8217;en vais consulter mes e-mails. Étrangement, alors qu&#8217;une simple caresse suffit d&#8217;habitude, mon Mac ne veut pas se réveiller. Étonné, je vérifie que je ne l&#8217;ai pas laissé sans alimentation: non, le cordon est bien là, branché et alimenté, il ne s&#8217;agit donc pas d&#8217;un épuisement des batteries. De plus, un ronron très léger m&#8217;indique que la machine semble toujours être en marche. Je force donc un shutdown en maintenant la touche on/off enfoncée et j&#8217;entends distinctement ce petit bruit caractéristique qui signale l&#8217;arrêt d&#8217;un moteur électrique quelque part dans la machine. Je l&#8217;allume de nouveau et là un bruit de moteur se fait également entendre mais à par cela rien, l&#8217;écran reste désespérément aveugle. Après, une ou deux autres tentatives aussi infructueuses je décide d&#8217;amener la machine au SAV de la FNAC.</p><p><span id="more-515"></span></p><p><a href="http://vedovini.net/blog/wp-content/uploads/2010/02/priseenchargesav.jpg"><img class="alignright size-medium wp-image-521" style="border: 1px solid black;" title="Prise en charge SAV" src="http://media.vedovini.net/blog/wp-content/uploads/2010/02/priseenchargesav-235x300.jpg" alt="" width="235" height="300" /></a>L&#8217;accueil est sympathique et l&#8217;employé, après avoir examiné mon appareil et rempli une feuille de prise en charge indiquant un état d&#8217;usage normal (c&#8217;est important pour la suite) me propose un MacBook de remplacement. J&#8217;hésite, et lui demande combien de temps va prendre la réparation? &#8220;3 à 4 semaines&#8221; &#8211; me répond il. Je m&#8217;étonne et il me dit que c&#8217;est leur fournisseur, <a href="http://www.memoirevive.ch/">Mémoire Vive</a>, qui annonce ces délais. Là je me dis que je ferais peut-être bien d&#8217;y aller moi-même chez Mémoire Vive, c&#8217;est à moins de 500m et je sais qu&#8217;en payant un supplément ils font passer votre cas en urgence. Mais je me dis qu&#8217;après tout je l&#8217;ai acheté à la FNAC, qu&#8217;ils se débrouillent avec, et puis au final si j&#8217;ai une machine de remplacement, peu importe le délais. J&#8217;accepte donc la machine de remplacement et me prépare à attendre 4 semaines.</p><p>4 semaines jour pour jour plus tard (le 27 janvier), toujours sans nouvelles de ma machine, j&#8217;appelle le SAV de la FNAC. J&#8217;ai au bout du fil une femme, sympathique également, qui s&#8217;étonne que je n&#8217;ai toujours pas reçu le devis que leur fournisseur m&#8217;a envoyé. Devis? Il s&#8217;agit d&#8217;une machine sous garantie, pourquoi m&#8217;envoyer un devis?</p><p>Cette personne m&#8217;annonce alors que leur fournisseur (Mémoire Vive, donc) a déterminé que la machine avait subit des dégâts suite à un choc et que donc la garantie est annulée. Moi même sous le choc, je perd un peu mon calme, je m&#8217;insurge, affirme que la machine était intacte, que la feuille de prise en charge rédigée par la SAV le prouve et que donc soit il ne s&#8217;agit pas de ma machine (elle se serai trompée de dossier) ou bien que c&#8217;est la FNAC ou son fournisseur qui ont endommagé mon Mac. Elle m&#8217;annonce qu&#8217;il y a une photo et qu&#8217;elle va me l&#8217;envoyer par e-mail avec une copie du devis, je raccroche et attend donc son e-mail.</p><p><a href="http://vedovini.net/blog/wp-content/uploads/2010/02/devismacbook.jpg"><img class="size-medium wp-image-526 alignleft" style="border: 1px solid black;" title="Devis MacBook" src="http://media.vedovini.net/blog/wp-content/uploads/2010/02/devismacbook-218x300.jpg" alt="" width="218" height="300" /></a>Le lendemain (28 janvier), toujours pas plus de e-mail que de beurre en branche, par contre, je découvre dans mon courrier le fameux devis qui annonce donc un dommage physique au niveau du port Ethernet et la nécessite de remplacer la carte mère, la barrette mémoire ainsi que le couvercle supérieur: 3449,-CHF pièce et main d&#8217;œuvre.</p><p>Mes choix sont les suivants, soit je paye la réparation, soit je paye le devis (100,-CHF). Si je refuse la réparation il me reste à choisir entre reprendre ma machine ou les laisser la détruire&#8230;</p><p>Je rappel alors le SAV et tombe sur la même personne, qui s&#8217;excuse de ne pas avoir envoyé la photo et qui m&#8217;assure que c&#8217;est parce qu&#8217;ils sont en train d&#8217;étudier mon dossier. Je lui répète une fois de plus qu&#8217;il y a un problème, lui demande de m&#8217;envoyer rapidement la photo dont elle m&#8217;a parlé et raccroche.</p><p><a href="http://vedovini.net/blog/wp-content/uploads/2010/02/chocmacbook.jpg"><img class="alignright size-medium wp-image-523" title="Choc MacBook" src="http://media.vedovini.net/blog/wp-content/uploads/2010/02/chocmacbook-300x225.jpg" alt="" width="300" height="225" /></a>Je passe sur les détails mais je finis par recevoir cette fameuse photo où on peut effectivement constater un choc tellement important que le châssis du Mac est déformé et sur laquelle visiblement le capot/écran ne se referme plus correctement. Je répond donc au e-mail en confirmant, une fois de plus, que ces dégâts n&#8217;étaient pas présent lorsque j&#8217;ai amené la machine au SAV et qu&#8217;il aurait été difficile à l&#8217;employé du SAV de rater la chose vu leur importance.</p><p>Je reçois finalement le 29 janvier la réponse suivante par e-mail:</p><blockquote><p>Monsieur Vedovini,</p><p>Pour faire suite à notre conversation téléphonique, nous avons donc contacté le réparateur. Ce dernier nous a transmis des détails concernant votre dossier et devis.</p><p>Aucun dégât n’a pu se produit durant le transport ou durant le transit de votre appareil au réparateur. Les appareils sont emballés par du papier-bulle, protégés par un emballage, puis par un box résistant à toute pression.</p><p>De plus, le défaut cité coïncide avec le refus de prise sous garantie. En effet, la pièce gérant le rétro éclairage se trouve à quelques centimètres de la zone d’impact située à l’arrière de votre Apple.</p><p>Au vu des éléments cités ci-dessus le devis No XXXXXX est maintenu.</p><p>Nous restons à votre entière disposition pour toute question ou complément d’information.</p><p>Dans l’attente de votre réponse au devis, nous vous prions de recevoir, Monsieur Vedovini, nous meilleurs salutations.</p></blockquote><p>Chose à laquelle j&#8217;ai immédiatement répondu en réaffirmant ma position et en indiquant que je comptai me renseigner rapidement, auprès de la <a href="http://www.frc.ch">Fédération Romande des Consommateurs</a> ainsi que ma protection juridique, sur les recours légaux à ma disposition. Chose que j&#8217;ai faite ce matin.</p><p>En substance, et pour l&#8217;instant, il faut juste commencer à s&#8217;échanger des courriers papier afin d&#8217;établir les choses. Étrangement, envoyer des insultes par e-mail peut vous faire condamner mais il semblerait qu&#8217;en dehors de ça, ça n&#8217;a pas beaucoup de valeur juridique.</p><p>Alors il m&#8217;a semblé que dans le monde numérique où nous vivons maintenant, raconter tout cela (et la future suite) pourrait avoir plusieurs vertus:</p><ul><li>Premièrement, ça me soulage. Étant quelqu&#8217;un d&#8217;extrêmement analytique, qu&#8217;on refuse l&#8217;évidence me fait peter les plombs. Un peu comme si après avoir programmé toute l&#8217;arithmétique dans votre calculatrice, la dernière règle consisterai à lui dire &#8220;1==2&#8243;. Ces trucs là, moi, ça m&#8217;empêche de dormir.</li><li>Ensuite, on ne sait jamais, cela pourrait constituer un point  de pression sur la FNAC. Surtout si suffisamment de monde commence à poster des commentaires d&#8217;encouragement (si vous voyez ce que je veux dire ;)</li><li>Et bien sûr, ça a la vertu de l&#8217;expérience partagée. La prochaine fois que vous emmenez un appareil d&#8217;un certain prix dans un SAV, profitez que votre téléphone fasse des films (au pire des photos) pour filmer votre appareil sous toutes les coutures, le type du SAV et lui faire dire face caméra son nom, la date et que, non, votre appareil n&#8217;est pas passé sous un camion.</li><li>Si vous avez eu des expériences similaires, à la FNAC, chez un revendeur Apple, ou ailleurs dans la région Lausannoise, ça nous donne un forum pour les partager.</li><li>Il se peut également que cela rappel aux jeunes qui nous regarde que même encore maintenant, poster des status sur Facebook ne suffit pas à prouver sa bonne fois.</li></ul><p>Sur ce, merci d&#8217;avoir lu jusque là, n&#8217;hésitez pas à me plaindre, ça me fera plaisir :)</p><p>UPDATE (2010-02-05): Ce matin, petit coup de fil du directeur du magasin de Lausanne, très sympa. On s&#8217;occupe de mon cas.</p><p>UPDATE (2010-02-12): Il a fallu que j&#8217;appelle moi-même le SAV mais j&#8217;ai enfin des nouvelles &#8211; La FNAC me rembourse mon Mac, en bon d&#8217;achat FNAC, et je dois payer si je veux qu&#8217;on me transfert mes données&#8230;</p><h3  class="related_post_title">Most Commented Posts</h3><ul class="related_post"><li><a href="http://vedovini.net/2010/02/sevices-apres-vente/" title="Sévices Après Vente">Sévices Après Vente</a></li><li><a href="http://vedovini.net/2009/08/jmeter-distributed-testing-with-amazon-ec2/" title="JMeter distributed testing with Amazon EC2">JMeter distributed testing with Amazon EC2</a></li><li><a href="http://vedovini.net/2008/09/google-please-no/" title="Google, please, NO!">Google, please, NO!</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=99Ir9JPxWBk:v06-8F22zZk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=99Ir9JPxWBk:v06-8F22zZk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=99Ir9JPxWBk:v06-8F22zZk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=99Ir9JPxWBk:v06-8F22zZk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=99Ir9JPxWBk:v06-8F22zZk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=99Ir9JPxWBk:v06-8F22zZk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=99Ir9JPxWBk:v06-8F22zZk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=99Ir9JPxWBk:v06-8F22zZk:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2010/02/sevices-apres-vente/feed/</wfw:commentRss> <slash:comments>11</slash:comments> <feedburner:origLink>http://vedovini.net/2010/02/sevices-apres-vente/</feedburner:origLink></item> <item><title>Experiencing viral growth</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/ai1gEfWwmiQ/</link> <comments>http://vedovini.net/2010/01/experiencing-viral-growth/#comments</comments> <pubDate>Sat, 30 Jan 2010 12:15:20 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[marketing]]></category> <category><![CDATA[networking]]></category> <category><![CDATA[portfolio]]></category> <category><![CDATA[books]]></category> <category><![CDATA[facebook]]></category> <category><![CDATA[librarything]]></category> <category><![CDATA[users]]></category> <category><![CDATA[viral growth]]></category><guid isPermaLink="false">http://vedovini.net/?p=507</guid> <description><![CDATA[This is something to hear and talk about it but this is something totally different to experience it, it&#8217;s thrilling, even on modest scales. Since my LibraryThing application for Facebook is out it has clearly had a viral growth curve. So far there are only 435 users and every week I am looking for an [...]]]></description> <content:encoded><![CDATA[<p><a href="http://vedovini.net/blog/wp-content/uploads/2010/01/fbLibraryThing_growth.png"><img class="alignright size-medium wp-image-508" title="Number of fbLibraryThing users per week" src="http://media.vedovini.net/blog/wp-content/uploads/2010/01/fbLibraryThing_growth-300x213.png" alt="" width="300" height="213" /></a><strong>This is something to hear and talk about it but this is something totally different to experience it, it&#8217;s thrilling, even on modest scales.</strong></p><p>Since my <a href="http://www.facebook.com/fbLibraryThing">LibraryThing application for Facebook</a> is out it has clearly had a viral growth curve. So far there are only 435 users and every week I am looking for an inflection of this tendency. I know there will be one because there is a limited number of <a href="http://www.librarything.com/">LibraryThing</a> users on Facebook. My goal, right now, is to attract as many of them as possible on this application.</p><p>The next step will be to attract Facebook users to LibraryThing. But I know that for this I will need help from <a href="http://twitter.com/Librarythingtim">Tim Spalding</a> and the LibraryThing team. I have always been grateful for their work but I must admit that I have been quite disappointed recently as I was trying to contact them and they constantly ignored me.</p><p>I am also thinking about open-sourcing the application, because I think it is both a good use case for people who are developing Python/Django applications on Google AppEngine and those who are developing for the Facebook platform. I still have to choose a license but the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License</a> seems like a good match.</p><p>Anyway, if you love books, got plenty of them and want to share your readings, do not forget to give <a href="http://www.librarything.com/">LibraryThing</a> a try and once your are convinced, join the <a href="http://www.facebook.com/fbLibraryThing">Facebook application</a>, with this application you can:</p><ul><li> Add a tab and a box to your profile, listing your most recent books</li><li>Choose the number of books to display in your profile tab</li><li>Choose whether you want to display them with covers only or as a list  which will include your ratings and reviews</li><li>If you grant the application the right to publish to your stream it  will publish books you add to LibraryThing on your wall</li><li>It will also publish reviews as you write them on LibraryThing</li></ul><p>You can also:</p><ul><li>Browse your Facebook friend&#8217;s books</li><li>Find books on the search page</li><li>Share a book you like or comment on it (those are Facebook only  features and will not appear in LibraryThing)</li><li>Add a book to your LibraryThing collection with a single click</li></ul><p>Enjoy :)</p><h3  class="related_post_title">Related posts: (automatically generated)</h3><ul class="related_post"><li><a href="http://vedovini.net/2009/12/a-year-in-review/" title="A year in review">A year in review</a></li><li><a href="http://vedovini.net/2010/07/facebook-pages-notifications/" title="Facebook Pages Notifications">Facebook Pages Notifications</a></li><li><a href="http://vedovini.net/2009/03/vedovininet-is-on-facebook/" title="vedovini.net is on Facebook">vedovini.net is on Facebook</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=ai1gEfWwmiQ:mzx_ndVhfhk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=ai1gEfWwmiQ:mzx_ndVhfhk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=ai1gEfWwmiQ:mzx_ndVhfhk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=ai1gEfWwmiQ:mzx_ndVhfhk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=ai1gEfWwmiQ:mzx_ndVhfhk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=ai1gEfWwmiQ:mzx_ndVhfhk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=ai1gEfWwmiQ:mzx_ndVhfhk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=ai1gEfWwmiQ:mzx_ndVhfhk:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2010/01/experiencing-viral-growth/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://vedovini.net/2010/01/experiencing-viral-growth/</feedburner:origLink></item> <item><title>A year in review</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/xF_IBHRGaWQ/</link> <comments>http://vedovini.net/2009/12/a-year-in-review/#comments</comments> <pubDate>Tue, 29 Dec 2009 00:40:41 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[random]]></category> <category><![CDATA[2009]]></category> <category><![CDATA[amazon]]></category> <category><![CDATA[appengine]]></category> <category><![CDATA[aws]]></category> <category><![CDATA[babelizr]]></category> <category><![CDATA[dita-op]]></category> <category><![CDATA[django]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[facebook]]></category> <category><![CDATA[fontself]]></category> <category><![CDATA[librarything]]></category> <category><![CDATA[longimanus]]></category> <category><![CDATA[nouvo]]></category> <category><![CDATA[peru]]></category> <category><![CDATA[python]]></category> <category><![CDATA[sharks]]></category> <category><![CDATA[sidewikirss]]></category><guid isPermaLink="false">http://vedovini.net/?p=479</guid> <description><![CDATA[As this year in coming to an end I though I should do a post-mortem, like at the end of a project, to see what went well and what did not. I left the office I was renting downtown and started working from home: It was a good move from work perspective, being alone at [...]]]></description> <content:encoded><![CDATA[<p><a title="Swimming with sharks" href="http://www.flickr.com/photos/cvedovini/3594026972/"><img class="alignright" src="http://farm4.static.flickr.com/3332/3594026972_da146a7cca_m.jpg" alt="" width="240" height="180" /></a>As this year in coming to an end I though I should do a post-mortem, like at the end of a project, to see what went well and what did not.</p><ul><li><strong>I left the office I was renting downtown and started working from home: </strong>It was a good move from work perspective, being alone at home allows me to be really productive. However, as the second part of the year was getting busier it became difficult to put limits and my work/life balance suffered.</li><li><strong>I worked the map editor of the <a href="http://www.dita-op.org/">DITA-OP</a> but did not finish it:</strong> Not good at all, I have not been able to do a release this year. The other problem with the DITA-OP is that I don&#8217;t know my users. I know they are here, somewhere and I really need to find a way to gather the community.</li><li><strong>I started two toys projects, <a href="http://vedovini.net/2009/09/sidewiki-rss/">SidewikiRSS.com</a> and a <a href="http://www.facebook.com/apps/application.php?id=159924979291">Facebook application for LibraryThing</a>:</strong> SidewikiRSS.com is rolling on its own, it does not cost me anything beside the domain name (thanks Google App Engine), it&#8217;s used regularly and bring some traffic here. fbLibraryThing is slowly but steadily growing but I am wondering if I will be able to add new features &#8211; I am completely dependent on the LibraryThing API and I will need help from the <a href="http://www.librarything.com">LibraryThing</a> team if I want to go farther.</li><li><strong>I completely put aside my super-secret Babelizr project:</strong> That&#8217;s not a good thing, for sure, but at least it was because of too much paid work. A positive thing is that I greatly improved my <a href="http://python.org/">Python</a> and <a href="http://www.djangoproject.com/">Django</a> skills with other projects and it will payoff for Babelizr.</li><li><strong>I can now consider myself an <a href="http://aws.amazon.com/">Amazon Web Services</a> and <a href="http://code.google.com/appengine/">Google App Engine</a> expert:</strong> And that&#8217;s a tremendous addition to my curriculum. I need now to dedicate more time to their respective communities.</li><li><strong>I accepted too many projects in the second part of the year:</strong> The beginning of the year had been slow and I though I needed as many contacts as possible to build a sustainable business. Overall this is a good thing &#8211; especially since I exceeded my financial goals. The other positive side is that I only accepted interesting projects and that I met really nice people. But I really had a lot of pressure in the last quarter and this was definitely not the purpose of being a freelancer &#8211; &#8220;Working more to earn more&#8221; is not my moto.</li><li><strong>I did not blogged enough:</strong> Especially since I gained a lot of experience in many fields and with many tools, I should have definitely written more about these.</li></ul><p>And last, but not least:</p><ul><li><strong>I swam with sharks:</strong> Biggest thrill ever! I swam with two <a href="http://en.wikipedia.org/wiki/Oceanic_whitetip_shark">Oceanic Whitetip (Carcharhinus longimanus)</a> in the <a href="http://www.flickr.com/photos/cvedovini/sets/72157619127143011/">Red Sea</a>. My only regret is that I have been totally unable to take a descent picture or make a video of this event.</li><li><strong>I skied almost every week-end of the winter season and hiked almost every week-end of the summer season:</strong> This prepared me really well for <a href="http://www.flickr.com/photos/cvedovini/sets/72157622490260992/">our 2 weeks vacation in Peru</a>.</li><li><strong>I have been more than 80 times to the movie theater:</strong> Thanks to the <a href="http://www.pathelausanne.ch/custom/passpathe">Pathé Pass</a> Yang offered me last Christmas. It allowed me to see movies (good and bad) that I would not have seen otherwise.</li></ul><p>I think I can say it was a good year, tiring, a bit stressful near the end but a good year. However, I must say it did not bring me any closer to my biggest goal that is to find ways to automate my revenue stream, so I really need to work that out next year.</p><p>The other planned features of next year are:</p><ul><li><strong>Releasing the latest version of the DITA-OP</strong> and finding a way to build and animate the community.</li><li><strong>More blogging</strong> (like everyblogger else) and tweeting. Find a better organization of my Facebook presence.</li><li><strong>Connecting with the LibraryThing team</strong>, although this proved to be difficult so far.</li><li><strong>Coming back to Babelizr</strong>, may be starting with building external interest around the project first in order to force commitment.</li><li><strong>Dedicating more time to online communities:</strong> Google App Engine, AWS, Drupal, Django, etc. May be through <a href="http://stackoverflow.com/">Stack Overflow</a>.</li><li><strong>Planning of a 4 weeks vacation</strong> dedicated to hiking or diving.</li><li><strong>Watch as many movies as possible</strong> with my renewed Pathé Pass.</li></ul><p>And, of course, keeping my clients happy :)</p><p>I only worked for two public projects this year (others are either private or still in stealth mode, so I cannot talk about them):</p><ul><li><a href="http://vedovini.net/2009/10/my-fontself-is-better-than-your-font/">Fontself</a>, a startup company which provides a revolutionary new experience of text, through digital text personalization. It provides digital fonts that preserves the gestures of a given handwriting and the original look of the drawing appliance (ball-point pen, pencil, ink, paper, etc.). I participated in the design of the font distribution system and its implementation on the <a href="http://aws.amazon.com/">Amazon&#8217;s cloud infrastructure</a> using <a href="http://python.org/">Python</a> and <a href="http://www.djangoproject.com/">Django</a>.</li><li><a href="http://www.nouvo.ch/">nouvo.ch</a>, the multimedia magazine from the Swiss Romand Television channel asked me to redevelop their website using the <a href="http://drupal.org/">Drupal CMS</a> and various media management modules.</li></ul><h3  class="related_post_title">Related posts: (automatically generated)</h3><ul class="related_post"><li><a href="http://vedovini.net/2010/06/how-to-manage-google-appengine-maintenance-periods/" title="How to manage Google AppEngine maintenance periods">How to manage Google AppEngine maintenance periods</a></li><li><a href="http://vedovini.net/2010/06/properly-uploading-files-to-amazon-s3/" title="Properly uploading files to Amazon S3">Properly uploading files to Amazon S3</a></li><li><a href="http://vedovini.net/2010/01/experiencing-viral-growth/" title="Experiencing viral growth">Experiencing viral growth</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=xF_IBHRGaWQ:rudpcc7LUpM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=xF_IBHRGaWQ:rudpcc7LUpM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=xF_IBHRGaWQ:rudpcc7LUpM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=xF_IBHRGaWQ:rudpcc7LUpM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=xF_IBHRGaWQ:rudpcc7LUpM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=xF_IBHRGaWQ:rudpcc7LUpM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=xF_IBHRGaWQ:rudpcc7LUpM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=xF_IBHRGaWQ:rudpcc7LUpM:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2009/12/a-year-in-review/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://vedovini.net/2009/12/a-year-in-review/</feedburner:origLink></item> <item><title>My Fontself is better than your font</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/VOGzvE2vqpw/</link> <comments>http://vedovini.net/2009/10/my-fontself-is-better-than-your-font/#comments</comments> <pubDate>Fri, 02 Oct 2009 01:24:26 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[marketing]]></category> <category><![CDATA[portfolio]]></category> <category><![CDATA[font]]></category> <category><![CDATA[fontself]]></category> <category><![CDATA[lift]]></category> <category><![CDATA[netlog]]></category><guid isPermaLink="false">http://vedovini.net/?p=419</guid> <description><![CDATA[For those of you who were at the Lift conference 2008 you might remember of Fontself. Franz Hoffman and Marc Escher, the two founders of the company, were there to offer everyone the opportunity to fill in a grid with their own hand writing, scan it, and use it on the Lift website. Today, the [...]]]></description> <content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-421" title="fontself" src="http://media.vedovini.net/blog/wp-content/uploads/2009/10/42114239-257x300.jpg" alt="fontself" width="257" height="300" />For those of you who were at the Lift conference 2008 you might remember of <a href="http://www.fontself.com/">Fontself</a>. Franz Hoffman and Marc Escher, the two founders of the company, were there to <a href="http://www.liftconference.com/fontself-website-usage">offer everyone the opportunity to fill in a grid with their own hand writing, scan it, and use it on the Lift website</a>.</p><p>Today, the Fontself team has grown and is celebrating their first release of a product. Together with <a href="http://fr.netlog.com/fontself">Netlog</a>, the european online social portal, they are now giving the opportunity to the Netlog community members to send messages, post blog entries or post comments using personalized character fonts.</p><p>Congratulation to them, they have been working long and hard for their ideas to come out and I am proud I helped them make their dream come true.</p><p><div id="fontself-d0936f0a684dbd0d7c887b2ef83bd873" class="fontself-enabled" font="_9905c72628cf93321a6ce43c146071af09cb7d2339b3b1cfc8eb764ccf6d87ff" size="30" content="And+this+also+gives+me+some+advantages%2C+like+being+able+to+use+a+Fontself+font+on+my+own+blog+and+give+you+a+glimpse+at+what+the+future+of+web+fonts+might+be%21"></div><div id="alt-fontself-d0936f0a684dbd0d7c887b2ef83bd873">And this also gives me some advantages, like being able to use a Fontself font on my own blog and give you a glimpse at what the future of web fonts might be!</div><br /><div id="fontself-7bf7f1d647332ee7456a13b53bf2e789" class="fontself-enabled" font="_b72139c4df1037c8971033917d5bf684f05f9e33f8b990b9f3fef046823e596a" size="20" content="Among+other+things%2C+you+will+appreciate+the+ability+to+select%2C+copy+and+paste+the+text+%3AP"></div><div id="alt-fontself-7bf7f1d647332ee7456a13b53bf2e789">Among other things, you will appreciate the ability to select, copy and paste the text :P</div><br /> For now, the feature is only available to the french version of the platform but there is no doubt that it will rapidly extend to the rest of the 35 million Netlog members throughout Europe and that the Fontself team will continue to develop their technology and enhance the web.</p><p>If you want to stay informed about Fontself and their technology you can either <a href="http://www.fontself.com/">subscribe to their newsletter</a>, become a friend of their <a href="http://fr.netlog.com/fontself">Netlog page</a>, follow them on <a href="http://www.twitter.com/fontself">twitter</a> or keep following this blog&#8230;</p><h3  class="related_post_title">Related posts: (automatically generated)</h3><ul class="related_post"><li><a href="http://vedovini.net/2009/12/a-year-in-review/" title="A year in review">A year in review</a></li><li><a href="http://vedovini.net/2008/02/need-lifting/" title="Need Lifting?">Need Lifting?</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=VOGzvE2vqpw:69On77aiB84:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=VOGzvE2vqpw:69On77aiB84:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=VOGzvE2vqpw:69On77aiB84:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=VOGzvE2vqpw:69On77aiB84:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=VOGzvE2vqpw:69On77aiB84:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=VOGzvE2vqpw:69On77aiB84:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=VOGzvE2vqpw:69On77aiB84:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=VOGzvE2vqpw:69On77aiB84:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2009/10/my-fontself-is-better-than-your-font/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://vedovini.net/2009/10/my-fontself-is-better-than-your-font/</feedburner:origLink></item> <item><title>Sidewiki RSS</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/gMmcbD0VBNo/</link> <comments>http://vedovini.net/2009/09/sidewiki-rss/#comments</comments> <pubDate>Wed, 30 Sep 2009 14:11:47 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[portfolio]]></category> <category><![CDATA[technology]]></category> <category><![CDATA[atom]]></category> <category><![CDATA[free]]></category> <category><![CDATA[google]]></category> <category><![CDATA[rss]]></category> <category><![CDATA[sidewiki]]></category> <category><![CDATA[sidewikirss]]></category><guid isPermaLink="false">http://vedovini.net/?p=415</guid> <description><![CDATA[Last week Google announced Google Sidewiki, a new service that enables anyone to comment on any page. There has been a lot of comments already about Sidewiki but the thing that instantly stroke me is the fact that there&#8217;s no easy way to keep up with what others are saying about your own pages. So [...]]]></description> <content:encoded><![CDATA[<p><a href="http://www.sidewikirss.com/"><img class="alignright size-medium wp-image-466" style="border: 1px solid black;" title="sidewikirss" src="http://media.vedovini.net/blog/wp-content/uploads/2009/09/sidewikirss-300x187.jpg" alt="Sidewiki RSS" width="300" height="187" /></a>Last week Google <a href="http://googleblog.blogspot.com/2009/09/help-and-learn-from-others-as-you.html">announced</a> <a href="http://www.google.com/sidewiki/">Google Sidewiki</a>, a new service that enables anyone to comment on any page.</p><p>There has been <a href="http://twitter.com/#search?q=sidewiki">a lot of comments</a> already about Sidewiki but the thing that instantly stroke me is the fact that there&#8217;s no easy way to keep up with what others are saying about your own pages. So I took a look at the <a href="http://code.google.com/apis/sidewiki/">Sidewiki API</a> and built the <a href="http://www.sidewikirss.com/">Sidewiki RSS</a> service.</p><p>This free service (hope you won&#8217;t mind the Google Ads) enables webmasters to get the URL to the recent Sidewiki entries for their pages. There&#8217;s even a bookmarklet that you can drop in your browser&#8217;s toolbar and use to get the feed of the page you are browsing.</p><p>Hope you will like it ;)</p><h3  class="related_post_title">Related posts: (automatically generated)</h3><ul class="related_post"><li><a href="http://vedovini.net/2010/02/spare-me-the-talk-about-privacy-theyre-all-clueless-anyway/" title="Spare me the talk about privacy, they&#8217;re all clueless anyway&#8230;">Spare me the talk about privacy, they&#8217;re all clueless anyway&#8230;</a></li><li><a href="http://vedovini.net/2009/12/a-year-in-review/" title="A year in review">A year in review</a></li><li><a href="http://vedovini.net/2009/04/does-google-read-this-blog/" title="Does Google read this blog?">Does Google read this blog?</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=gMmcbD0VBNo:wCIPp8XXufg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=gMmcbD0VBNo:wCIPp8XXufg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=gMmcbD0VBNo:wCIPp8XXufg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=gMmcbD0VBNo:wCIPp8XXufg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=gMmcbD0VBNo:wCIPp8XXufg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=gMmcbD0VBNo:wCIPp8XXufg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=gMmcbD0VBNo:wCIPp8XXufg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=gMmcbD0VBNo:wCIPp8XXufg:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2009/09/sidewiki-rss/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://vedovini.net/2009/09/sidewiki-rss/</feedburner:origLink></item> <item><title>JMeter distributed testing with Amazon EC2</title><link>http://feedproxy.google.com/~r/cvedovini/blog/~3/1kjnUaDPWpw/</link> <comments>http://vedovini.net/2009/08/jmeter-distributed-testing-with-amazon-ec2/#comments</comments> <pubDate>Mon, 17 Aug 2009 12:58:55 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[technology]]></category> <category><![CDATA[cloudcomputing]]></category> <category><![CDATA[ec2]]></category> <category><![CDATA[jmeter]]></category> <category><![CDATA[scalr]]></category> <category><![CDATA[testing]]></category><guid isPermaLink="false">http://vedovini.net/?p=400</guid> <description><![CDATA[Recently I had to setup a performance testing infrastructure for one of my client. The goal was to put their web application under heavy load to prove it was able to scale properly and do some capacity planning. I chose Apache JMeter to generate the load, created a few test plans and started to nudge [...]]]></description> <content:encoded><![CDATA[<p>Recently I had to setup a performance testing infrastructure for one of my client. The goal was to put their web application under heavy load to prove it was able to scale properly and do some capacity planning.</p><p>I chose <a href="http://jakarta.apache.org/jmeter">Apache JMeter</a> to generate the load, created a few test plans and started to nudge the application. Of course I quickly understood that my MacBook won&#8217;t be enough have the server sweat.</p><p>To serve this application we are using Amazon EC2 instances managed with the <a href="http://scalr.net">Sclar.net</a> service. One day I should write something about Scalr, but for now, enough is to say that a Scalr farm defines the configuration of a cluster of EC2 instances. Each instance in a farm belongs to a role (an EC2 AMI) and the farm defines how many instances of each role should be launched.</p><p>Since JMeter can be used in a master/slave mode (<a href="http://jakarta.apache.org/jmeter/usermanual/jmeter_distributed_testing_step_by_step.pdf">see details here</a>) I decided to use Scalr to create a farm of JMeter slaves that would put the application under pressure.</p><p>The first problem I faced is that the JMeter master and its slaves must be in the same sub-network to be able to communicate, so my JMeter farm had to define two different roles, one for the master (jmeter-master) with only one instance and one for the slaves (jmeter-slave) with as many instances as necessary.</p><p>The second problem was concerning the IP addresses of the slaves, I did not want to write down the slaves&#8217; IPs and manually enter them in the JMeter command line. By chance, with Scalr, each instance in a farm is informed of its peers&#8217; IP addresses, so I wrote a small Python script that would get those IPs and launch the JMeter master with a given test plan.</p><div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#! /usr/bin/python</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>, <span style="color: #dc143c;">sys</span>, <span style="color: #dc143c;">subprocess</span>, <span style="color: #dc143c;">datetime</span>
&nbsp;
JMETER_CMD = <span style="color: #483d8b;">'/usr/share/jmeter/bin/jmeter'</span>
SCRIPTS_ROOT = <span style="color: #483d8b;">'/var/testing/'</span>
<span style="color: #808080; font-style: italic;"># Instance IPs for a given role are filenames in the '/etc/aws/hosts' folder</span>
SLAVES = <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'/etc/aws/hosts/jmeter-slave'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> jmeter<span style="color: black;">&#40;</span>script<span style="color: black;">&#41;</span>:
    logname = <span style="color: #dc143c;">datetime</span>.<span style="color: #dc143c;">datetime</span>.<span style="color: black;">now</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">strftime</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'%Y%m%d%H%M%S'</span><span style="color: black;">&#41;</span> + <span style="color: #483d8b;">'.log'</span>
    script = <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>SCRIPTS_ROOT, script<span style="color: black;">&#41;</span>
    <span style="color: #dc143c;">cmd</span> = <span style="color: black;">&#91;</span> JMETER_CMD, <span style="color: #483d8b;">'-n'</span> <span style="color: black;">&#93;</span>
    <span style="color: #dc143c;">cmd</span> += <span style="color: black;">&#91;</span> <span style="color: #483d8b;">'-t'</span>, script <span style="color: black;">&#93;</span>
    <span style="color: #dc143c;">cmd</span> += <span style="color: black;">&#91;</span> <span style="color: #483d8b;">'-R'</span>, <span style="color: #483d8b;">','</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>SLAVES<span style="color: black;">&#41;</span> <span style="color: black;">&#93;</span>
    cwd = SCRIPTS_ROOT
    <span style="color: #dc143c;">subprocess</span>.<span style="color: black;">check_call</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">cmd</span>, cwd=cwd, stderr=<span style="color: #dc143c;">sys</span>.<span style="color: black;">stderr</span>, stdout=<span style="color: #dc143c;">sys</span>.<span style="color: black;">stdout</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">'__main__'</span>:
    jmeter<span style="color: black;">&#40;</span><span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span></pre></div></div><p>This was working pretty nicely for my simpler test plans (like the one that only GETs the home page) but as soon as I tried to POST (like during the login process) this was not enough. The thing is that the POST data that JMeter is using are not stored in the test plan itself but in companion <code>.binary</code> files, and those files are not sent by the master to the slaves like the test plans are.</p><p>I thus had to find a way to send those files by myself before the launch of the test plans. Rsync seemed the easiest thing to do, so I wrote another Python script to synchronize the slaves.</p><div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#! /usr/bin/python</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>, <span style="color: #dc143c;">sys</span>, <span style="color: #dc143c;">subprocess</span>
&nbsp;
SCRIPTS_ROOT = <span style="color: #483d8b;">'/var/testing/'</span>
<span style="color: #808080; font-style: italic;"># Instance IPs for a given role are filenames in the '/etc/aws/hosts' folder</span>
SLAVES = <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'/etc/aws/hosts/jmeter-slave'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> sync<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">for</span> slave <span style="color: #ff7700;font-weight:bold;">in</span> SLAVES:
        dest = <span style="color: #483d8b;">'%s:/var/testing'</span> <span style="color: #66cc66;">%</span> slave
        <span style="color: #dc143c;">cmd</span> = <span style="color: black;">&#40;</span> <span style="color: #483d8b;">'rsync'</span>, <span style="color: #483d8b;">'-r'</span>, <span style="color: #483d8b;">'-e'</span>, <span style="color: #483d8b;">'ssh -q -i /var/testing/farm.key'</span>, SCRIPT_ROOT, dest<span style="color: black;">&#41;</span>
        <span style="color: #dc143c;">subprocess</span>.<span style="color: black;">check_call</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">cmd</span>, stderr=<span style="color: #dc143c;">sys</span>.<span style="color: black;">stderr</span>, stdout=<span style="color: #dc143c;">sys</span>.<span style="color: black;">stdout</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">'__main__'</span>:
    sync<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div><p>The above script requires only three things:</p><ul><li> a valid RSA private key (here <code>/var/testing/farm.key</code>), which you can download using the Scalr.net farm&#8217;s menu</li><li>the <code>/var/testing</code> folder must already exist on the slaves</li><li>and, of course, you need to initially get the files on the master. I use <code>svn up</code>.</li></ul><p>Once you have prepared and tested everything, using one master and one slave, you can rebundle the instances you used and then start to spawn tens of slaves to stress your application.</p><p>If you have already done something similar or have ideas for improving my setup do not hesitate in letting me know in the comments :)</p><p>UPDATE: With the release of the <a href="http://aws.amazon.com/vpc/">Amazon Virtual Private Cloud</a> it should be possible now to have slaves running in the cloud and a master running on your workstation, they would all be in your own sub-network. However, you will need to find another way to synchronize the POST data with the slaves.</p><h3  class="related_post_title">Most Commented Posts</h3><ul class="related_post"><li><a href="http://vedovini.net/2010/02/sevices-apres-vente/" title="Sévices Après Vente">Sévices Après Vente</a></li><li><a href="http://vedovini.net/2009/08/jmeter-distributed-testing-with-amazon-ec2/" title="JMeter distributed testing with Amazon EC2">JMeter distributed testing with Amazon EC2</a></li><li><a href="http://vedovini.net/2008/09/google-please-no/" title="Google, please, NO!">Google, please, NO!</a></li></ul><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=1kjnUaDPWpw:5hBaYylv03w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=1kjnUaDPWpw:5hBaYylv03w:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=1kjnUaDPWpw:5hBaYylv03w:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=1kjnUaDPWpw:5hBaYylv03w:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=1kjnUaDPWpw:5hBaYylv03w:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=1kjnUaDPWpw:5hBaYylv03w:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/cvedovini/blog?a=1kjnUaDPWpw:5hBaYylv03w:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/cvedovini/blog?i=1kjnUaDPWpw:5hBaYylv03w:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded> <wfw:commentRss>http://vedovini.net/2009/08/jmeter-distributed-testing-with-amazon-ec2/feed/</wfw:commentRss> <slash:comments>9</slash:comments> <feedburner:origLink>http://vedovini.net/2009/08/jmeter-distributed-testing-with-amazon-ec2/</feedburner:origLink></item> </channel> </rss><!-- Dynamic page generated in 0.919 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-08-31 03:36:43 --><!-- Compression = gzip -->
