<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>I’m an Informatics Engineer from the University of Chile and currently Ph.D student at Telecom SudParis in France. My research is in Model-based testing. I’m also a bicycle enthusiast, a GNU/Linux fanatic and a TV and movie lover. I was born in Chile but I’m currently living in Paris.</description><title>Felipe Lalanne</title><generator>Tumblr (3.0; @pipex)</generator><link>http://pipex.tumblr.com/</link><item><title>Node.js, JavaScript development on the server. Quite an...</title><description>&lt;iframe width="400" height="300" src="http://www.youtube.com/embed/F6k8lTrAE2g?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a title="Node.js" href="http://nodejs.org/"&gt;Node.js&lt;/a&gt;, JavaScript development on the server. Quite an interesting concept. &lt;/p&gt;</description><link>http://pipex.tumblr.com/post/1298467960</link><guid>http://pipex.tumblr.com/post/1298467960</guid><pubDate>Tue, 12 Oct 2010 14:22:00 +0200</pubDate></item><item><title>Deleting all posts from your Tumblr</title><description>&lt;p&gt;As I recently discovered, there is no way to delete all posts from &lt;a href="http://www.tumblr.com"&gt;Tumblr&lt;/a&gt;, to give yourself a fresh start. My &lt;a href="http://lapizmina.tumblr.com"&gt;girlfriend&lt;/a&gt; needed this feature to erase her 17 pages of Twitter posts in hers. To help her I created this little piece of &lt;a href="http://www.php.nry"&gt;PHP&lt;/a&gt; code. Just in case this code will delete ALL of your tumblr posts.&lt;br/&gt;&lt;br/&gt;You can obtain the JSON.php file from &lt;a href="http://mike.teczno.com/json.html"&gt;this&lt;/a&gt; page.&lt;/p&gt;
&lt;p&gt;PD: If you want to highlight your code in Tumblr (trust me it&amp;#8217;s a pain in the &amp;#8230;), follow &lt;a href="http://alan.dipert.org/post/55814908/shjs-javascript-syntax-highlighting-for-tumblr"&gt;this&lt;/a&gt; guide.&lt;/p&gt;
&lt;pre class="sh_php"&gt;require('JSON.php');

function curl_get_file_contents($URL)
{
    $c = curl_init();
    curl_setopt($c, CURLOPT_HTTPHEADER, array('Pragma: no-cache'));    
    curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($c, CURLOPT_URL, $URL);
    $contents = curl_exec($c);
    curl_close($c);

    if ($contents) return $contents;
    else return FALSE;
}

// Authorization info
$tumblr_url = "http://mytumblr.tumblr.com"
$tumblr_email = 'mymail@mydomain.com';
$tumblr_password = 'mypassword';

$str = curl_get_file_contents("$tumblr_url/api/read/json");
$str = substr($str, 22);
$str = substr($str, 0, strlen($str)-2);

$s = new Services_JSON(SERVICES_JSON_IN_STR);
$o = $s-&amp;gt;decode($str);

$name = 'posts-total';
$total = $o-&amp;gt;$name;
print "TOTAL posts to delete: $total\n";
 
// Send the POST request (with cURL)
$c = curl_init('http://www.tumblr.com/api/delete');
$count = 0;
while ($count &amp;lt; $total) {
    foreach ($o-&amp;gt;posts as $post) {
        $id = $post-&amp;gt;id;

        // Prepare POST request
        $request_data = "email=$tumblr_email&amp;amp;password=$tumblr_password&amp;amp;post-id=$id";

        curl_setopt($c, CURLOPT_POST, true);
        curl_setopt($c, CURLOPT_HTTPHEADER, array('Pragma: no-cache'));    
        curl_setopt($c, CURLOPT_POSTFIELDS, $request_data);
        curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
        $result = curl_exec($c);
        $status = curl_getinfo($c, CURLINFO_HTTP_CODE);

        // Check for success
        if ($status == 200) {
            echo "Deleted post $id\n";
            $count += 1;
        } else if ($status == 403) {
            echo "Bad email or password\n";
            exit;
        } else {
            echo "Error: $result\n";
        }
    }

    $str = curl_get_file_contents("$tumblr/api/read/json?num=20");
    $str = substr($str, 22);
    $str = substr($str, 0, strlen($str)-2);

    $o = $s-&amp;gt;decode($str);

    if (empty($o)) {
        die('An error has ocurred');
    }

    print "Waiting 10 seconds before continuing. Total deleted = $count\n";
    sleep(10);
}

/* close the session */
curl_close($c);&lt;/pre&gt;</description><link>http://pipex.tumblr.com/post/122881243</link><guid>http://pipex.tumblr.com/post/122881243</guid><pubDate>Sat, 13 Jun 2009 15:20:00 +0200</pubDate><category>tumblr</category><category>programming</category><category>API</category><category>PHP</category></item><item><title>Conozco a varios que encajan con la curva. Via PHD Comics.</title><description>&lt;img src="http://24.media.tumblr.com/vQDN0JUVgon0tu7udkdMVbgLo1_500.gif"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Conozco a varios que encajan con la curva. Via &lt;a href="http://www.phdcomics.com/comics.php?f=1185"&gt;PHD Comics&lt;/a&gt;.&lt;/p&gt;</description><link>http://pipex.tumblr.com/post/122572941</link><guid>http://pipex.tumblr.com/post/122572941</guid><pubDate>Sat, 13 Jun 2009 00:34:00 +0200</pubDate><category>comics</category><category>phd</category></item></channel></rss>

