<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>VieSurIP &#187; Cool stuff</title>
	<atom:link href="http://www.viesurip.fr/en/cat/trucs-sympa/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.viesurip.fr</link>
	<description>My ideas, my projects about the internet, networks and computer science</description>
	<lastBuildDate>Mon, 29 Mar 2010 13:58:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Merge/split PDF files directly in Dolphin (KDE)</title>
		<link>http://www.viesurip.fr/en/2010/02/10/fusionnerdecouper-des-pdfs-directement-dans-dolphin-kde/</link>
		<comments>http://www.viesurip.fr/en/2010/02/10/fusionnerdecouper-des-pdfs-directement-dans-dolphin-kde/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 00:13:47 +0000</pubDate>
		<dc:creator>twisterss</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Dolphin]]></category>
		<category><![CDATA[KDE]]></category>

		<guid isPermaLink="false">http://www.viesurip.fr/?p=153</guid>
		<description><![CDATA[
Context
I have just switched to KDE after using Gnome during many years, and I am quietly getting used to it.
But recently I had to merge 2 PDF files, so I searched for a good solution for KDE. There are many command-line tools to do this on Linux, but the few graphical interfaces are very ugly.
So [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<a href='http://www.viesurip.fr/en/2010/02/10/fusionnerdecouper-des-pdfs-directement-dans-dolphin-kde/' ><img src="http://www.viesurip.fr/wp-content/uploads/2010/02/logo-kde-150x150.jpg" style="border:0; float:right; margin: 0 0 .5em 1em;" alt="KDE logo" title="KDE logo"/></a>
<h3>Context</h3>
<p>I have just switched to KDE after using Gnome during many years, and I am quietly getting used to it.</p>
<p>But recently I had to merge 2 PDF files, so I searched for a good solution for KDE. There are many command-line tools to do this on Linux, but the few graphical interfaces are very ugly.</p>
<p>So I thought it would be great to integrate a merge/split PDF function directly in Dolphin, the KDE file manager. In dolphin when you right-click on a file, a menu pops up with a sub-menu &#8220;Actions&#8221;, where you can add your features. I will now explain how I did this.</p>
<h3>Prerequisites</h3>
<ul>
<li>You need to be running a recent version of <strong>KDE</strong> (using <strong>Dolphin</strong> as your file manager). I have the version 4.3.5.</li>
<li>To manipulate your PDF files, you need a command-line tool, I chose <strong>pdftk</strong>. You can install the package pdftk on kubuntu, for example by typing in a terminal:
<pre class="brush: bash; light: true;">sudo apt-get install pdftk</pre>
</li>
</ul>
<h3>Create scripts to merge/split PDF files automatically</h3>
<p>I created two scripts: one to merge PDF files, and the other one to split them. I put both files in the directory <strong>/opt/pdf-service</strong>:</p>
<ul>
<li><strong>/opt/pdf-service/pdf-service-merge.sh</strong> (<a title="pdf-service-merge.sh source file" href="http://www.viesurip.fr/wp-content/uploads/2010/02/pdf-service-merge.sh" target="_blank">download</a>):
<pre class="brush: bash;">#!/bin/bash
# Run a command to merge PDF files
# Used to add a context menu in Dolphin for PDF files

pdftk &quot;$@&quot; cat output &quot;${1%.pdf}_merged.pdf&quot;</pre>
</li>
<li><strong>/opt/pdf-service/pdf-service-split.sh</strong> (<a title="pdf-service-split.sh source file" href="http://www.viesurip.fr/wp-content/uploads/2010/02/pdf-service-split.sh" target="_blank">download</a>):
<pre class="brush: bash;">#!/bin/bash
# Run a command to split PDF files
# Used to add a context menu in Dolphin for PDF files

for file in &quot;$@&quot;
do
   out_dir=&quot;${file%.pdf}_pages&quot;
   mkdir -p &quot;$out_dir&quot;
   pdftk &quot;$file&quot; burst output &quot;$out_dir/page_%04d.pdf&quot;
done</pre>
</li>
</ul>
<p>Here are the steps you need to follow to get these files properly on your computer:</p>
<ul>
<li>Create the /opt/pdf-service directory: type in a terminal:
<pre class="brush: bash; light: true;">sudo mkdir /opt/pdf-service</pre>
</li>
<li>Download the two files in the directory: type in a terminal:
<pre class="brush: bash; light: true;">cd /opt/pdf-service &amp;&amp; sudo wget http://www.viesurip.fr/wp-content/uploads/2010/02/pdf-service-split.sh http://www.viesurip.fr/wp-content/uploads/2010/02/pdf-service-merge.sh</pre>
</li>
<li>Make the files executable: type in a terminal:
<pre class="brush: bash; light: true;">sudo chmod a+x /opt/pdf-service/*.sh</pre>
</li>
</ul>
<h3>Add the service to Dolphin</h3>
<p>A service in Dolphin is declared using a simple .desktop file in the directory <strong>/usr/share/kde4/services/ServiceMenus/</strong>: Here is the file you should put as <strong>/usr/share/kde4/services/ServiceMenus/pdf-servicemenu.desktop</strong> (<a title="pdf-servicemenu.desktop source file" href="http://www.viesurip.fr/wp-content/uploads/2010/02/pdf-servicemenu.desktop" target="_blank">download</a>):</p>
<pre class="brush: plain;">[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/pdf
Actions=split;merge;

[Desktop Action split]
Name=Split PDF pages
Name[fr]=Découper les pages du PDF
Icon=gnome-mime-application-pdf
Exec=/opt/pdf-service/pdf-service-split.sh %F

[Desktop Action merge]
Name=Merge PDF files
Name[fr]=Fusionner les PDFs
Icon=gnome-mime-application-pdf
Exec=/opt/pdf-service/pdf-service-merge.sh %F</pre>
<p>To install this file, just type in a terminal:</p>
<pre class="brush: bash; light: true;">cd /usr/share/kde4/services/ServiceMenus &amp;&amp; sudo wget http://www.viesurip.fr/wp-content/uploads/2010/02/pdf-servicemenu.desktop</pre>
<h3>Conclusion</h3>
<p>Now you just need to close all opened windows of Dolphin, launch it again, and you should see the menu entries in the Actions submenu when you right-click on a PDF file.</p>
<p>The entries are only available in English and French in my file, but you can easily add another language in the pdf-servicemenu.desktop file.</p>
<p>It would be great to have an user-friendly interface to install packages that add useful submenu entries like that! Some sorf of Dolphin extensions&#8230;</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.viesurip.fr/en/2010/02/10/fusionnerdecouper-des-pdfs-directement-dans-dolphin-kde/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Jolicloud internship: first steps of a start-up</title>
		<link>http://www.viesurip.fr/en/2009/09/24/stage-chez-jolicloud-les-premiers-pas-dune-start-up/</link>
		<comments>http://www.viesurip.fr/en/2009/09/24/stage-chez-jolicloud-les-premiers-pas-dune-start-up/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 10:44:40 +0000</pubDate>
		<dc:creator>twisterss</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Jolicloud]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Stage]]></category>

		<guid isPermaLink="false">http://www.viesurip.fr/?p=81</guid>
		<description><![CDATA[
I just finished my internship at Jolicloud as part of my studies in TELECOM Bretagne. It lasted almost one year.
Jolicloud is a new start-up created by Tariq Krim (who created Netvibes) that builds an operating system adapted to netbooks and focused on the web technologies and services.
I lived from the inside the launching of a [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<a href='http://www.viesurip.fr/en/2009/09/24/stage-chez-jolicloud-les-premiers-pas-dune-start-up/' ><img src="http://www.viesurip.fr/wp-content/uploads/2009/09/jolicloud.logo-150x150.png" style="border:0; float:right; margin: 0 0 .5em 1em;" alt="Jolicloud internship: first steps of a start-up" title="Jolicloud internship: first steps of a start-up"/></a>
<p>I just finished my internship at <a title="Jolicloud official website" href="http://www.jolicloud.com">Jolicloud</a> as part of my studies in <a title="Site officiel de TELECOM Bretagne" href="http://www.telecom-bretagne.eu">TELECOM Bretagne</a>. It lasted almost one year.</p>
<p>Jolicloud is a new start-up created by Tariq Krim (who created <a href="http://www.netvibes.com">Netvibes</a>) that builds an operating system adapted to netbooks and focused on the web technologies and services.</p>
<p>I lived from the inside the launching of a start-up: idea, research, launching of a private alpha, founding, arrival of big competitors (like <a href="http://googleblog.blogspot.com/2009/07/introducing-google-chrome-os.html">Google Chome OS</a>), hiring, beta and release roadmap&#8230; We were three at the beginning: Tariq Krim, Romain Huet and me.</p>
<p>Regarding development, it is an interesting challenge: transform a Linux distribution into an ergonomic and beautiful operating system based on web technologies instead of the usual Linux technologies (HTML instead of GTK, Javascript instead of C&#8230;).</p>
<p>We use <a href="http://rubyonrails.org/">Ruby On Rails</a> and <a href="http://jquery.com/">JQuery</a> to develop the central web application that constitutes Jolicloud and <a href="http://www.python.org/">python</a> to make our web application communicate with the system.</p>
<p>First developments were focused on two things: modify <a href="http://www.ubuntu.com/">Ubuntu</a> to transform it into the Jolicloud OS, and create an applications directory like the one on the Apple iPhone, to install/remove/update applications in one click. This directory is based on APT, the technology used by <a href="http://www.debian.org">Debian</a> (and Ubuntu) to manage files on the system. And Prism has been fully integrated to put web applications (Google Docs, GMail, Facebook&#8230;) on the desktop.</p>
<p>The currently available version of Jolicloud is far from complete: it is just an idea of what we want to do. Developments go faster now and we have plenty of ideas I can&#8217;t talk about. Sadly I have to go back to school for my 3rd year at TELECOM Bretagne, but I hope I will still be able to participate in Jolicloud.</p>
<p>While <a href="http://googleblog.blogspot.com/2009/07/introducing-google-chrome-os.html">Google Chrome OS</a> will probably only allow to launch web applications, local applications can be used with Jolicloud. And Jolicloud wants to integrate all web services, not only Google ones&#8230; And <a href="http://moblin.org/">Moblin</a> isn&#8217;t really focused on the web. Personnally, I would like the Jolicloud concept on my notebook too, if the interface were adapted. So Jolicloud probably has a bright future&#8230; to be continued <img src='http://www.viesurip.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.viesurip.fr/en/2009/09/24/stage-chez-jolicloud-les-premiers-pas-dune-start-up/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Internet in 2015: privacy in the cloud?</title>
		<link>http://www.viesurip.fr/en/2009/09/06/internet-en-2015-vie-privee-en-reseau/</link>
		<comments>http://www.viesurip.fr/en/2009/09/06/internet-en-2015-vie-privee-en-reseau/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 20:56:36 +0000</pubDate>
		<dc:creator>twisterss</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://www.viesurip.fr/?p=61</guid>
		<description><![CDATA[
Saturday, September 26th 2015,
The Internet has evolved a lot in the last 5 years. In 2009, using online services meant trusting third-party services to keep your data safe. For example Facebook knew everything about your activities and your friends, Google Docs had all the documents you collaborated to, Gmail had all your emails&#8230; All these [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<a href='http://www.viesurip.fr/en/2009/09/06/internet-en-2015-vie-privee-en-reseau/' ><img src="http://www.viesurip.fr/wp-content/uploads/2009/09/lock.png" style="border:0; float:right; margin: 0 0 .5em 1em;" alt="A lock" title="A lock"/></a>
<p><em><strong>Saturday, September 26th 2015,</strong></em></p>
<p>The Internet has evolved a lot in the last 5 years. In 2009, using online services meant trusting third-party services to keep your data safe. For example <a title="Facebook" href="http://www.facebook.com" target="_blank">Facebook</a> knew everything about your activities and your friends, <a title="Google Docs" href="http://docs.google.com" target="_blank">Google Docs</a> had all the documents you collaborated to, <a title="GMail" href="http://mail.google.com" target="_blank">Gmail</a> had all your emails&#8230; All these services had quite unclear terms of services. They claimed that they wouldn&#8217;t use your data in wrong ways but they used it to display targeted ads. And you could never be sure that they wouldn&#8217;t lose your data or get hacked. This trust problem made difficult to use cloud services systematically, though their advantages were becoming obvious.</p>
<p>Now this problem has been at least partly fixed thanks to Internet Service Providers. My situation is very common: I have a very fast and symmetrical optical fiber connection. My Freebox v8, my new Internet box, is always connected to the Internet and includes a server that hosts all my personal data and data from other members of my family. Our family computer, my personal notebook, my <a title="Jolicloud" href="http://www.jolicloud.com" target="_blank">Jolicloud</a> netbook and my IPhone are constantly synchronized to the hard disk of our Freebox (through our private network or through the Internet).</p>
<p>The server of the Freebox consists mainly of an HTTP server with a web interface, and many APIs. A web interface is available for each member of the family at http://nickname.free.fr. Mine is at http://twisterss.free.fr. It resembles a personal blog with many social features.</p>
<p>This URL also is the key to my digital life. It is used by many websites to access the <a title="API (Wikipedia)" href="http://en.wikipedia.org/wiki/Application_programming_interface" target="_blank">APIs</a> of my Freebox using <a title="OAuth (Wikipedia)" href="http://en.wikipedia.org/wiki/OAuth" target="_blank">OAuth</a>. Facebook stores the messages, links, pictures and videos I share on my Freebox using these APIs. My freebox has the authorizations to access data of my friends too. They all have an unique URL like mine, giving acces to the same APIs. First Facebook didn&#8217;t want to use this architecture because it made them lose control over the data of their users, but seeing new competitors growing rapidly using this new architecture made them change their mind. Now they even have developed a proprietary plugin with a special API extension that is more rapid and makes more features available than the default one. I could install it on my freebox in one click, but I prefer the default open-source one, as I&#8217;m not really sure what the closed-source Facebook plugin does. Now the value of Facebook is in the way they sort data to show the most interesting, and in all the third-party applications available to manage one&#8217;s digital life. And they don&#8217;t have to pay for the huge servers they used to have for pictures and video uploads, as they are directly sent from the user&#8217;s server.</p>
<p>Google uses this architecture a lot too: it searches both in my friends&#8217; data and on the Internet, and can even tell me when some friends made searches related to mine (if they agreed to make it public, obviously). As Facebook, they propose a proprietary plugin that indexes data more efficiently. Jolicloud uses my private server to synchronize apps and files on all my netbooks, and to propose me applications my friends like.</p>
<p>With this architecture, users have a much better control over their data, as it is stored on their private server, and most of the time only meta data is sent to the websites (links and descriptions for Google or Facebook&#8230;). All data is synchronized on all computers, so it can be restored if a hard disk fails. Data sharing is made much more efficient and fast as it isn&#8217;t sent to a central server. But this architecture isn&#8217;t perfect: if users install malicious plugins on their box, or if they give access to their data to any website through OAuth, then their privacy is still threatened.</p>
<hr /><em>This idea of the future is the Internet that I would like to use in 2015. For this to happen, we would need to find standards for the APIs that everyone accepts, and web services like Facebook would have to understand the importance of privacy. </em><em>ISPs probably have interest to make this happen as they would play a much more important role on the Internet. But only users can make this happen if privacy really matters to them.</em></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.viesurip.fr/en/2009/09/06/internet-en-2015-vie-privee-en-reseau/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

