<?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>Tasse de Café</title>
	<atom:link href="http://tassedecafe.org/feed" rel="self" type="application/rss+xml" />
	<link>http://tassedecafe.org</link>
	<description>Web development</description>
	<lastBuildDate>Sat, 12 Mar 2016 13:45:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.6.30</generator>
	<item>
		<title>Photo Sphere Viewer 2.6: a small update before PSV 3.0</title>
		<link>http://tassedecafe.org/photo-sphere-viewer-2-6-a-small-update-before-psv-3-0-3824</link>
		<comments>http://tassedecafe.org/photo-sphere-viewer-2-6-a-small-update-before-psv-3-0-3824#comments</comments>
		<pubDate>Sat, 12 Mar 2016 13:45:29 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[Libraries]]></category>
		<category><![CDATA[Photo Sphere Viewer]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3824</guid>
		<description><![CDATA[The beginning of the year has been busy. That&#8217;s why the big 3.0 update for Photo Sphere Viewer is not here. However, some of you sent me emails to give me ideas and other enhancements. And that&#8217;s a good idea! Anyway, Photo Sphere Viewer 3.0 won&#8217;t be here soon. That&#8217;s why I decided to make [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>The beginning of the year has been busy. That&#8217;s why the big 3.0 update for Photo Sphere Viewer is not here. However, some of you sent me emails to give me ideas and other enhancements. And that&#8217;s a good idea!</p>
<p>Anyway, Photo Sphere Viewer 3.0 won&#8217;t be here soon. That&#8217;s why I decided to make a new small update, with small new features &#8220;fast&#8221; to implement. Here is <a href="https://github.com/JeremyHeleine/Photo-Sphere-Viewer">Photo Sphere Viewer 2.6</a>!</p>
<h2>More natural movements</h2>
<p>Since the very first version of Photo Sphere Viewer, the user can navigate through the panorama with their mouse. It was possible to control the speed of this movement, but it wasn&#8217;t really natural. Well, not for everyone.</p>
<p>That&#8217;s why I thought about a new way to move the panorama, more natural. Now, when you navigate into the panorama, you don&#8217;t move the sphere: you move a point.</p>
<p>It&#8217;s pretty simple: the point under your mouse is moved following your movements. The speed of the movement is yours.</p>
<p>If you don&#8217;t like this new movements you can retrieve the old ones, which still be maintained, with the option <code>smooth_user_moves</code> set to <code>false</code>.</p>
<h2>A new way to manage cropped images</h2>
<p>At the beginning, Photo Sphere Viewer was here to read panoramas taken by Google&#8217;s Photo Sphere. Now, it&#8217;s not the case anymore. More precisely, we can read any panorama.</p>
<p>The problem is that Photo Sphere clearly indicates into the file which size should be the panorama if it was complete (if it&#8217;s cropped). That allows PSV to retrieve the entire sphere in the right dimensions.</p>
<p>With the other panoramas, it&#8217;s not always possible. That&#8217;s why I added the option <code>pano_size</code> to define these dimensions. However, this idea was not so easy to use.</p>
<p>But I found a new method. With the option <code>captured_view</code> you can now define the captured angles of vision, those represented by the indicated image. As we know the maximal angles (360° and 180°), it&#8217;s easy to retrieve the entire sphere.</p>
<p>Horizontal and vertical angles can be indicated (one, the other or both). For example, if you only capture a 270° × 100° panorama, indicate:</p>
<pre class="brush: jscript; title: ; notranslate">captured_view: {
	horizontal_fov: 270,
	vertical_fov: 100
}</pre>
<h2>An overlay image</h2>
<p>Finally, an option allows you to add an overlay image, over the panorama. With it, you can add a logo in a corner for instance. This option is named <code>overlay</code> and is an object which admits several parameters.</p>
<p>The first one, image, is required: it&#8217;s the image to display (URL or path). If the indicated image is too big (or too small), you can tell to Photo Sphere Viewer to resize it with the sub-option <code>size</code> (an object with <code>width</code> and <code>height</code> properties, as in CSS).</p>
<p>A last argument allows the control of the place of the image: <code>position</code>. It&#8217;s sub-option <code>x</code> controls the horizontal position (<code>left</code> or <code>right</code>), while <code>y</code> controls the vertical position (<code>top</code> or <code>bottom</code>).</p>
<h2>What&#8217;s next?</h2>
<p>Talking about overlay images, there&#8217;s an option asked by more and more users: being able to create tags and other indicators into the panorama itself, to target elements.</p>
<p>It&#8217;s pretty cool to see that this option is awaited, as I think about it since a long time now. However, I think it ill be easier to implement with Photo Sphere Viewer 3.0, and that&#8217;s why I prefer waiting for before implement it.</p>
<p>About Photo Sphere Viewer 3.0, I&#8217;m still working on the engine. I recently fixed a big bug, but it isn&#8217;t ready.</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/photo-sphere-viewer-2-6-a-small-update-before-psv-3-0-3824/feed</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>The support for Scilab is now in Atom</title>
		<link>http://tassedecafe.org/the-support-for-scilab-is-now-in-atom-3809</link>
		<comments>http://tassedecafe.org/the-support-for-scilab-is-now-in-atom-3809#comments</comments>
		<pubDate>Mon, 21 Dec 2015 18:20:41 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[Atom Packages]]></category>
		<category><![CDATA[language-scilab]]></category>
		<category><![CDATA[Scilab]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3809</guid>
		<description><![CDATA[A few time ago I introduced to you an Atom package I created. It added the support for Freefem++ in Atom. But Freefem++ is not the only language used in maths, as I use another one: Scilab. The official editor integrated in Scilab, SciNotes, is pretty annoying. A bad indentation, a completely crappy automatic completion [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>A few time ago I introduced to you an Atom package I created. It added <a href="http://tassedecafe.org/a-package-to-add-freefem-support-in-atom-3802">the support for Freefem++ in Atom</a>. But Freefem++ is not the only language used in maths, as I use another one: Scilab.</p>
<p>The official editor integrated in Scilab, SciNotes, is pretty annoying. A bad indentation, a completely crappy automatic completion of parentheses, or a syntax highlighting far to be ideal: the reasons to hate SciNotes are numerous.</p>
<p>Then, I decided once again to develop with Atom, so I needed a package for that. There was a package for Scilab, but it doesn&#8217;t exist anymore. So I developed my own.</p>
<p>Called <a href="https://atom.io/packages/language-scilab">language-scilab</a>, it is available now and adds syntax highlighting for Scilab in Atom.</p>
<p>It doesn&#8217;t do anything more for the moment, but I think about enhance it, by adding the support for certain automatic completions or even a more automatic indentation.</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/the-support-for-scilab-is-now-in-atom-3809/feed</wfw:commentRss>
		<slash:comments>77</slash:comments>
		</item>
		<item>
		<title>A package to add Freefem++ support in Atom</title>
		<link>http://tassedecafe.org/a-package-to-add-freefem-support-in-atom-3802</link>
		<comments>http://tassedecafe.org/a-package-to-add-freefem-support-in-atom-3802#comments</comments>
		<pubDate>Wed, 16 Dec 2015 13:46:10 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[Atom Packages]]></category>
		<category><![CDATA[Freefem++]]></category>
		<category><![CDATA[language-freefem]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3802</guid>
		<description><![CDATA[Freefem++ is a language that allows the numerical solving of partial differential equations. Useful to rapidly create some illustrations, Freefem++ is widely used in mathematical research. It is possible to install an &#8220;official&#8221; development environment for Freefem++. The advantage is that it is then faster to execute a script. However, this IDE has a huge [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Freefem++ is a language that allows the numerical solving of partial differential equations. Useful to rapidly create some illustrations, Freefem++ is widely used in mathematical research.</p>
<p>It is possible to install an &#8220;official&#8221; development environment for Freefem++. The advantage is that it is then faster to execute a script. However, this IDE has a huge number of disadvantages. That&#8217;s why I prefer using another editor.</p>
<p>I have the habit to use Atom, so I wanted to use it. There was still an issue to fix: syntax highlighting. In fact, Atom is not really developed for mathematics.</p>
<p>That was the occasion for me to develop my first Atom package. Called <a href="https://atom.io/packages/language-freefem">language-freefem</a>, it adds the support of Freefem++ language in Atom, with syntax highlighting.</p>
<p>The styles are standards so you won&#8217;t be disoriented: numbers will appear as they do in other languages, so do the instructions, etc.</p>
<p>All you have to do to use syntax highlighting for Freefem++ in Atom is installing the package like any other. Them, all is automatic: Atom will automatically detect that you are editing a Freefem++ file if you save it with the <code>.edp</code> extension.</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/a-package-to-add-freefem-support-in-atom-3802/feed</wfw:commentRss>
		<slash:comments>109</slash:comments>
		</item>
		<item>
		<title>How to power an external hard drive with a Raspberry Pi 2</title>
		<link>http://tassedecafe.org/how-to-power-an-external-hard-drive-with-a-raspberry-pi-2-3797</link>
		<comments>http://tassedecafe.org/how-to-power-an-external-hard-drive-with-a-raspberry-pi-2-3797#comments</comments>
		<pubDate>Fri, 11 Dec 2015 18:09:51 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3797</guid>
		<description><![CDATA[Like a lot of people, I use a Raspberry Pi as a media center (in addition to other things). But an SD card is not enough and simply not adapted to store a collection of films and series. That&#8217;s why I store them on an external hard drive, connected to the Pi via USB. Recently, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Like a lot of people, I use a Raspberry Pi as a media center (in addition to other things). But an SD card is not enough and simply not adapted to store a collection of films and series. That&#8217;s why I store them on an external hard drive, connected to the Pi via USB.</p>
<p>Recently, I bought a Raspberry Pi 2 and wanted to use it as a media center, to use my old Raspberry Pi for something other. However, I encountered a problem: I noticed that the Pi 2 didn&#8217;t want to power my external hard drive, while the Pi 1 did it well.</p>
<p>Maybe you have the same problem, and that&#8217;s why I wrote this article: there&#8217;s a solution!</p>
<p>By default, the Raspberry Pi doesn&#8217;t deliver more than 0.6A through USB. We need to increase this limit in order to power an external hard drive. To do that, edit the <code>/boot/config.txt</code> file (with for exemple <code>sudo nano /boot/config.txt</code>) and add the following line to the end:</p>
<pre class="brush: bash; title: ; notranslate">max_usb_current=1</pre>
<p>Now reboot your Raspberry Pi (with <code>sudo shutdown -r now</code> for example). Magically, your Raspberry Pi can now deliver up to 1.2A through USB and that&#8217;s enough to power your external hard drive. Of course, you need a good power source: a microUSB adapter which delivers 5V and 2A is a good idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/how-to-power-an-external-hard-drive-with-a-raspberry-pi-2-3797/feed</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
		<item>
		<title>WP Photo Sphere 3.5 is here!</title>
		<link>http://tassedecafe.org/wp-photo-sphere-3-5-is-here-3790</link>
		<comments>http://tassedecafe.org/wp-photo-sphere-3-5-is-here-3790#comments</comments>
		<pubDate>Wed, 25 Nov 2015 20:13:27 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WP Photo Sphere]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3790</guid>
		<description><![CDATA[The latest version of Photo Sphere Viewer has been released and, now, it&#8217;s time to see a new version of WP Photo Sphere! WP Photo Sphere 3.5 is here and is a very small update. In fact, only one new option is present, allowing you to set your own eyes offset in VR mode. You [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://tassedecafe.org/some-new-features-with-photo-sphere-viewer-2-5-3784">The latest version of Photo Sphere Viewer</a> has been released and, now, it&#8217;s time to see a new version of WP Photo Sphere! WP Photo Sphere 3.5 is here and is a very small update.</p>
<p>In fact, only one new option is present, allowing you to set your own eyes offset in VR mode. You will also be able to use the corresponding attribute, <code>eyes_offset</code>, for each shortcode, if you need a special value for a specific panorama, for some reasons.</p>
<p>Currently you won&#8217;t find the version 3.5 but the 3.5.1 one, with an updated Portuguese translation (thanks to <a href="https://github.com/pedro-mendonca">Pedro Mendonça</a>!).</p>
<p>And that&#8217;s all. As I said above, it&#8217;s a small update.</p>
<p>The good news is that WP Photo Sphere 4.0 is not so far away. I decided to release it right after Photo Sphere Viewer 3.0, so surely in early 2016. As promised, WPPS 4.0 will bring a brand new options panel, with clearer explanations for the different options and attributes.</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/wp-photo-sphere-3-5-is-here-3790/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Some new features with Photo Sphere Viewer 2.5</title>
		<link>http://tassedecafe.org/some-new-features-with-photo-sphere-viewer-2-5-3784</link>
		<comments>http://tassedecafe.org/some-new-features-with-photo-sphere-viewer-2-5-3784#comments</comments>
		<pubDate>Sat, 21 Nov 2015 18:43:40 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[Libraries]]></category>
		<category><![CDATA[Photo Sphere Viewer]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3784</guid>
		<description><![CDATA[A new version of Photo Sphere Viewer has just been released, with some new small features. There are no revolutionary things, but most of them have been asked by some users, so it was important to implement them. Modified options Before seeing the new options, there are some that now accept other values. I think [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>A new version of <a href="https://github.com/JeremyHeleine/Photo-Sphere-Viewer">Photo Sphere Viewer</a> has just been released, with some new small features. There are no revolutionary things, but most of them have been asked by some users, so it was important to implement them.</p>
<h2>Modified options</h2>
<p>Before seeing the new options, there are some that now accept other values. I think about the <code>long_offset</code> and <code>lat_offset</code> options that now allow the use of degrees, as other options that except for an angle as a value.</p>
<p>One of the two required options has also been updated: the <code>container</code> one. Until now you had to give it an HTML element (generally a <code>div</code>). In Photo Sphere Viewer 2.5, you can use a string instead: the ID of an HTML element. So, if you use an ID, the corresponding HTML element will be retrieved, and you won&#8217;t have to do it by yourself.</p>
<h2>Zoom!</h2>
<p>A new option is available to control the zoom feature. More precisely, this new option is here to control the way the user can zoom. It&#8217;s a boolean, named <code>allow_scroll_to_zoom</code>. By default it is set to <code>true</code> and the user can zoom in and out by scrolling over the panorama. You can disable this feature by setting this option to <code>false</code>.</p>
<p>In PSV 2.5 you will also find a new public method to retrieve the current zoom level: <code>getZoomLevel()</code>. It returns a number between 0 and 100.</p>
<h2>Some other features</h2>
<p>Maybe you tried the VR mode appeared recently. I adjusted the eyes offset with a Google Carboard, but maybe you use another system or, more surely, you don&#8217;t have the exact same eyes offset than me. That&#8217;s why I created a new option: <code>eyes_offset</code>, allowing you to adjust this offset by yourself. In the future, I think about adding a button in the navigation bar, to let any user adjust this offset.</p>
<p>Since some versions, if CORS is enabled on a server, you can display distant panoramas with PSV. However, it was anonymous so it didn&#8217;t allow the use of credentials. If you want to, you can set the option <code>cors_anonymous</code> to <code>false</code> and you will be able to use credentials.</p>
<p>A new action is available: <code>position-updated</code>, triggered each time the position is changed, in any way.</p>
<p>Finally, if your panorama is a Google Photo Sphere one, Photo Sphere Viewer will read the XMP data. However, if you resized the panorama, these data are wrong. Now, Photo Sphere Viewer can detect wrong data and automatically recalculate the new dimensions.</p>
<h2>What&#8217;s next?</h2>
<p>Last time, I talked about Photo Sphere Viewer 3.0. You will be happy to learn that I worked on it. As I said before, I&#8217;ll create my own 3D engine for PSV 3.0, and I already have a working engine. However, it still needs some improvements. I don&#8217;t think Photo Sphere Viewer 3.0 will be here before the end of the year, but early 2016 is a good target.</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/some-new-features-with-photo-sphere-viewer-2-5-3784/feed</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>And here is WP Photo Sphere 3.4!</title>
		<link>http://tassedecafe.org/and-here-is-wp-photo-sphere-3-4-3776</link>
		<comments>http://tassedecafe.org/and-here-is-wp-photo-sphere-3-4-3776#comments</comments>
		<pubDate>Sat, 12 Sep 2015 09:20:04 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WP Photo Sphere]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3776</guid>
		<description><![CDATA[As usual, when a new version of Photo Sphere Viewer is released, a new version of WP Photo Sphere follows. Today is released WP Photo Sphere 3.4, with some new useful options and attributes. Vertical animation controls As in Photo Sphere Viewer 2.4, we find in WP Photo Sphere 3.4 some ways to control the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>As usual, when <a href="http://tassedecafe.org/photo-sphere-viewer-2-4-is-here-with-a-lot-of-new-options-3771">a new version of Photo Sphere Viewer is released</a>, a new version of WP Photo Sphere follows. Today is released WP Photo Sphere 3.4, with some new useful options and attributes.</p>
<h2>Vertical animation controls</h2>
<p>As in Photo Sphere Viewer 2.4, we find in WP Photo Sphere 3.4 some ways to control the vertical part of the animation. You can set the speed with the dedicated option in the options page, or you can use the attribute <code>vertical_anim_speed</code> to override this default value.</p>
<p>The target can also be selected with the dedicated option and the attribute <code>vertical_anim_target</code>.</p>
<h2>Cropped panoramas!</h2>
<p>If you have cropped panoramas that aren&#8217;t taken with Google&#8217;s Photo Sphere, you can indicate their sizes with some new attributes: <code>full_width</code>, <code>full_height</code>, <code>cropped_width</code>, <code>cropped_height</code>, <code>cropped_x</code> and <code>cropped_y</code>.</p>
<p>These attributes have the same names as the corresponding options in Photo Sphere Viewer, so you already know what they except. Note that they are all optional and, if the panorama is just cropped in its vertical part, you can for example just indicate a custom value for <code>full_height</code>.</p>
<h2>Restricting the horizontal part</h2>
<p>You can restrict what the user can see with the attributes <code>min_long</code> and <code>max_long</code>, and their corresponding options for default values. It&#8217;s useful for hiding a part of the panorama.</p>
<p>You can choose if the animation must be reversed if it reaches an edge of the allowed part with the attribute <code>reverse_anim</code> and its corresponding option.</p>
<h2>Bug fixes</h2>
<p>The fullscreen features isn&#8217;t broken anymore in Internet Explorer, and the <code>box-sizing</code> problem is fixed. Exactly as in Photo Sphere Viewer 2.4.</p>
<p>But you can note that WP Photo Sphere 3.4 doesn&#8217;t use Photo Sphere Viewer 2.4. In fact, there is a version 2.4.1 of Photo Sphere Viewer, with a bug fix for the maximum longitude: now you can set it to 360° without any problem.</p>
<p>Finally, you won&#8217;t have any problem if you update to WP Photo Sphere 3.4. It&#8217;s important to say it, as previous updates caused some troubles. Now, I have a better way to manage updates, so new options are not a problem.</p>
<h2>What&#8217;s next?</h2>
<p>Photo Sphere Viewer 3.0 is in development. Maybe some other versions will come before, followed by other versions of WP Photo Sphere. But there is also a big update for WP Photo Sphere which is planned.</p>
<p>In fact, I&#8217;ll change a lot of things in the code for WP Photo Sphere 4.0, with more proper ways to write some things. Also, the already promised new administration panel will be in WPPS 4.0. This big update won&#8217;t come after a Photo Sphere Viewer one, but that doesn&#8217;t mean you won&#8217;t find new features in it…</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/and-here-is-wp-photo-sphere-3-4-3776/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Photo Sphere Viewer 2.4 is here with a lot of new options</title>
		<link>http://tassedecafe.org/photo-sphere-viewer-2-4-is-here-with-a-lot-of-new-options-3771</link>
		<comments>http://tassedecafe.org/photo-sphere-viewer-2-4-is-here-with-a-lot-of-new-options-3771#comments</comments>
		<pubDate>Thu, 03 Sep 2015 10:05:15 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[Libraries]]></category>
		<category><![CDATA[Photo Sphere Viewer]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3771</guid>
		<description><![CDATA[The development of Photo Sphere Viewer is far to be dead. Version 2.3 is only one month old, but here is version 2.4 which comes with seven new options and three new public methods. Control the vertical animation! Since some versions, it&#8217;s possible to control the horizontal animation speed. However it wasn&#8217;t possible to choose [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>The development of Photo Sphere Viewer is far to be dead. Version 2.3 is only one month old, but here is version 2.4 which comes with seven new options and three new public methods.</p>
<h2>Control the vertical animation!</h2>
<p>Since some versions, it&#8217;s possible to control the horizontal animation speed. However it wasn&#8217;t possible to choose the vertical speed. Now, it is, with a new option: <code>vertical_anim_speed</code> which accepts all the values accepted by <code>anim_speed</code> (for the horizontal speed).</p>
<p>Also, it&#8217;s possible to select the target of this vertical animation with <code>vertical_anim_target</code>. You indicate to this option a latitude, in radians or in degrees. When the animation starts, the vertical part will go to this latitude. By default, the user will always return to the equator but, now, you can change this.</p>
<h2>Hide a part of your panorama</h2>
<p>The biggest new feature of Photo Sphere Viewer 2.4 is the possibility to select the longitudes to see. You can in fact indicate a minimal and a maximal longitude to see with <code>min_longitude</code> and <code>max_longitude</code>. These values can be in radians or degrees. These options are useful if you want to hide a part of your panorama for some reasons.</p>
<p>But, what about the horizontal animation? What happens to it when the edge of your allowed zone is reached? Good question.</p>
<p>To answer to this question, what&#8217;s better than a new option? Named <code>reverse_anim</code>, this option is a boolean. If it is set to <code>false</code>, the animation will stop if the edge is reached. But you can set it to <code>true</code>, which is its default value. If it&#8217;s the case, then the animation will be reversed. You can now say &#8220;no&#8221; with a virtual head.</p>
<p>Defining minimal and maximal longitudes can also be useful if your panorama is not complete. But, for now, Photo Sphere Viewer can&#8217;t detect these cropped panoramas (unless they are taken with Google&#8217;s Photo Sphere).</p>
<p>That&#8217;s why you can define your own values with <code>pano_size</code>. This option is an object which can accept six properties:</p>
<ul>
<li><code>cropped_width</code> and <code>cropped_height</code>: the cropped panorama size (if this size is the image one, you can forget these properties);</li>
<li><code>full_width</code> and <code>full_height</code>: the size your panorama should be if it wasn&#8217;t cropped;</li>
<li><code>cropped_x</code> and <code>cropped_y</code>: the coordinates of the cropped part relative to the full panorama (if the cropped part is centered you can forget these properties).</li>
</ul>
<h2>A new type of loader</h2>
<p>Photo Sphere Viewer 2.4 comes with a third type of loader. You can still choose a simple text loader and an image one. Now, you can go further and indicate an HTML loader with <code>loading_html</code>.</p>
<p>You can indicate to this option a string representing the DOM tree to insert during the loading. You can also indicate it a DOM node to append.</p>
<p>A concrete example can be seen in the <code>example1.html</code> file, with a very simple HTML loader, animated with CSS.</p>
<h2>Control the position!</h2>
<p>If that&#8217;s a thing you want, you can force the user to see a specific point of your panorama with the new public method <code>moveTo()</code>. Pass it the coordinates of a point, and the user will see it.</p>
<p>You can also retrieve the point on which the panorama is currently centered with <code>getPosition()</code> which will gives you the coordinates of the point in radians. Degrees are available with <code>getPositionInDegrees()</code>.</p>
<h2>Some fixed bugs</h2>
<p>The fullscreen feature was broken on Internet Explorer. Now, it&#8217;s fixed, so your users using IE can view your panoramas in fullscreen.</p>
<p>There still was a problem with <code>box-sizing</code> on some websites. It seems like some developers don&#8217;t like <code>inherit</code> as a value for <code>box-sizing</code>, so I fixed the navigation bar elements for these websites.</p>
<p>Now, the weird bug. In the <code>example1.html</code> file, I propose a file input to allow the uploading of a panorama, displayed with Photo Sphere Viewer. It seems like, only on some browsers and on some platforms, it doesn&#8217;t work. I found the problem: these browsers don&#8217;t like AJAX with local files.</p>
<p>However, I don&#8217;t see any way to fix it, but you shouldn&#8217;t see this problem again. In fact, now, when PSV sees a local file, it skips the AJAX function. So, problem solved? Not really…</p>
<p>If the AJAX function is here, it&#8217;s not for nothing, and it&#8217;s not useless: this function reads XMP data, and these data are used by PSV to see if the panorama is cropped, if it is taken with Google&#8217;s Photo Sphere.</p>
<p>If your panoramas are not cropped, the AJAX function is useless (that&#8217;s why the <code>usexmpdata</code> option is here). If you want to use local cropped panoramas, it&#8217;s still possible, but you must indicate by yourself the right sizes with the new <code>pano_size</code> option. I know that it&#8217;s not perfect, but I didn&#8217;t find a better solution.</p>
<h2>What&#8217;s next?</h2>
<p>Still no 3D renderer in this version? Yeah, that&#8217;s normal, as it&#8217;s not ready. However, I began developing it, and, for now, the progress is good. I had some troubles and I think others will come, but it&#8217;s a very interesting thing to develop, and I won&#8217;t give up.</p>
<p>I don&#8217;t know when this new renderer will be ready. The only thing I can say is that you have no chance to see it in the next few days.</p>
<p>This new renderer won&#8217;t come alone in a new version. It will be here for Photo Sphere Viewer 3.0, a version that will change a lot of things, mostly invisible for you, but important for the development. Photo Sphere Viewer 3.0 will be a very big update, that&#8217;s why you can be sure that it will take a while to develop.</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/photo-sphere-viewer-2-4-is-here-with-a-lot-of-new-options-3771/feed</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>New version for Tasse de Café!</title>
		<link>http://tassedecafe.org/new-version-for-tasse-de-cafe-3745</link>
		<comments>http://tassedecafe.org/new-version-for-tasse-de-cafe-3745#comments</comments>
		<pubDate>Fri, 28 Aug 2015 12:17:23 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[Tasse de Café]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3745</guid>
		<description><![CDATA[It&#8217;s been a long time since I first talk about it, but here it is, finally: the brand new theme for Tasse de Café! Simple, it&#8217;s a perfect fit for what I want for this blog, so we will keep it. For now. A more simple and refined theme This new theme is simpler, and [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s been a long time since I first talk about it, but here it is, finally: the brand new theme for Tasse de Café! Simple, it&#8217;s a perfect fit for what I want for this blog, so we will keep it. For now.</p>
<h2>A more simple and refined theme</h2>
<p>This new theme is simpler, and above all more readable. Since the beginning of Tasse de Café the posts become more dense, with sometimes long tutorials. The previous theme didn&#8217;t provide, I think, a good experience for these long articles.</p>
<p>This theme insists on clarity and readability: a larger font size, a larger line height, in short, endless pages that are however faster to read because they are more readable.</p>
<p>It&#8217;s the end for posts thumbnails, as I was fed-up with searching for images that were useless for the content I provide. Henceforth, if there is an image, it&#8217;s because it&#8217;s useful, or because it&#8217;s a good illustration for the article.</p>
<p>In the posts lists like the one on the homepage, you won&#8217;t find thumbnails. A title, a brief excerpt. That&#8217;s all. Well, I chose that, but I am still not convinced, so maybe the posts will be complete in the future, with less posts per page. Don&#8217;t hesitate if you have any thought about it.</p>
<h2>No ads anymore</h2>
<p>Tasse de Café doesn&#8217;t display ads anymore. It&#8217;s not that I am against advertising, as I already said before, but it&#8217;s a choice I made.</p>
<p>I must say it: advertising is useful only if you have a minimal visitors number. Visits are regular on Tasse de Café, but it&#8217;s not enough for advertising. So it was useless, so I removed it. It won&#8217;t come back, even with more visits.</p>
<p>If you want to support me, I provide you an option: donating. Yeah, contrary to advertising, it&#8217;s not free for you, but you&#8217;re free to donate or not, and you&#8217;re free to donate what you want. All my projects are not centered around Tasse de Café and some of you asked me if there was a page where they can donate. It wasn&#8217;t the case. It&#8217;s still not: currently, the button is only in the sidebar, but I will soon create a dedicated page. When I have time.</p>
<h2>Multilingual!</h2>
<p>Since I stopped writing news on Tasse de Café for concentrating them on <a href="http://www.fredzone.org/">Fredzone</a>, I often wondered what I&#8217;ll do for Tasse de Café. I never wanted to leave it, but I must admit that some might think it.</p>
<p>This new theme is also the occasion to take a new start. With it, I join the numerous developers who have a blog with their ideas, their tricks, etc.</p>
<p>You got it, and, anyway, that&#8217;s the case since several months: Tasse de Café will be the blog where I&#8217;ll talk about my projects, where I&#8217;ll provide some tutorials about web development (languages and tools), where you&#8217;ll also find some useful tricks. And where I&#8217;ll talk about my life, too. Sometimes.</p>
<p>Now, Tasse de Café is also multilingual: I think about writing each of my posts in French and in English. The reason is the reach: writing in English allows me to reach more people. But not only.</p>
<p>I write on <a href="http://www.sitepoint.com/">SitePoint</a> since a year now, and it&#8217;s an entirely English-speaking website. I love that. I love writing in English, as I love writing in French. I don&#8217;t want to give up neither one nor the other. So I do both.</p>
<p>Multilingual is managed with an excellent plugin: <a href="https://wordpress.org/plugins/polylang/">Polylang</a>. And it does its work very well. If you read a post in French, all the website will be in French, even the sidebar or the theme. Same thing can be said about the English. Absolutely all the content is translated, it&#8217;s totally transparent for you.</p>
<p>Of course some changes occurred in the URLs. But it&#8217;s only a new language tag. Well, I also modified the URLs structure, but it&#8217;s a personal choice. Google won&#8217;t like that but I don&#8217;t really care about it.</p>
<p>If the plugin doesn&#8217;t display the right language or if, for any reason, you want the other, a link is available at the end of each page. Moreover, for translated posts, a link is displayed at the beginning of the post for switching the language.</p>
<h2>What about the older posts?</h2>
<p>Let&#8217;s talk about the translated posts. For now, all of them are in French. The whole website is translated, but not the posts. For the English, I&#8217;ll begin with this post. The other posts will be translated when I&#8217;ll have time (spoiler alert: it won&#8217;t be today).</p>
<p>It will also be the occasion to review the French versions. Some are old, and I want to change some details. But not on all of them.</p>
<p>I made a huge sorting in my posts. News posts are gone. However, if you still have the URL of one of these posts, you can still access it. I made that for kind people who linked to some posts here: I don&#8217;t want to give them dead links.</p>
<h2>It&#8217;s time to work!</h2>
<p>I still have a lot of work, with a lot of translations. If you want to subscribe, think about using the right URL for the RSS feed, the one provided by the button in the header. That way, you&#8217;ll only have the language you want.</p>
<p>Oh, yeah, the header displays a picture of my keyboard. I realized that my initials were on it. Funny, right? Well… maybe it&#8217;s just me.</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/new-version-for-tasse-de-cafe-3745/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Sphoords, a new JavaScript library dedicated to the Orientation API</title>
		<link>http://tassedecafe.org/sphoords-a-new-javascript-library-dedicated-to-the-orientation-api-3749</link>
		<comments>http://tassedecafe.org/sphoords-a-new-javascript-library-dedicated-to-the-orientation-api-3749#comments</comments>
		<pubDate>Fri, 14 Aug 2015 15:23:19 +0000</pubDate>
		<dc:creator><![CDATA[Jérémy Heleine]]></dc:creator>
				<category><![CDATA[Libraries]]></category>
		<category><![CDATA[Sphoords]]></category>

		<guid isPermaLink="false">http://tassedecafe.org/?p=3749</guid>
		<description><![CDATA[To determine the orientation of a compatible device, like a smartphone or a tablet, official specifications began to describe a new API: Device Orientation. I created Sphoords to transform data retrieved by this API to spherical coordinates. The advantage of Sphoords is that it is aimed to be browser-independant, contrary to the API itself, as [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>To determine the orientation of a compatible device, like a smartphone or a tablet, official specifications began to describe a new API: Device Orientation. I created Sphoords to transform data retrieved by this API to spherical coordinates.</p>
<p>The advantage of Sphoords is that it is aimed to be browser-independant, contrary to the API itself, as its implementation can sometimes vary, which is not a good thing.</p>
<p>Sphoords is here to retrieve a device orientation. With it, you will be able to determine to which point the device is oriented, to know which direction it &#8220;look at&#8221;.</p>
<p>Sphoords returns spherical coordinates, with usual conventions: a longitude between 0 and 2π and a latitude between -π/2 and π/2. Note that, if you prefer, you also have access to the coordinates in degrees.</p>
<p>For the moment, I provide you two concrete examples of applications of Sphoords. The first one is the orientation support in Photo Sphere Viewer.</p>
<p>The second example is a more useless one. But it&#8217;s still cool. You can retrieve it in the GitHub repo, and, after all, it is not so useless as it allowed me to develop this library. Sometimes, developing the application before the library can be useful.</p>
<p>This example is split into two pages. The first page must be displayed on a device compatible with the Orientation API, such as a smartphone for instance. The second page can be displayed on any device. Your computer, for example.</p>
<p>Now, move the device displaying the first page and look at the second page. You are drawing some lines with your smartphone. Isn&#8217;t it magical?</p>
<p>This example retrieves the smartphone orientation and displays it in almost real time (a maximal delay of 100 milliseconds can occur) on a sphere, displayed in 3D. You can even rotate the sphere with your mouse.</p>
<p>Well. I don&#8217;t see any other applications than developing the library itself, but I still love it.</p>
<p>Currently Sphoords is far to be perfect. The biggest problem is the API itself: it&#8217;s still in development and its implementation is different following the browsers. However, it works well on Firefox for Android, Chrome and Opera. I don&#8217;t know about the others.</p>
<p>You can retrieve Sphoords on <a href="https://github.com/JeremyHeleine/Sphoords">GitHub</a>, in version 0.1 for now. I&#8217;ll update it when new ideas will come.</p>
]]></content:encoded>
			<wfw:commentRss>http://tassedecafe.org/sphoords-a-new-javascript-library-dedicated-to-the-orientation-api-3749/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
