<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kevin Ilphrin Pellet on Medium]]></title>
        <description><![CDATA[Stories by Kevin Ilphrin Pellet on Medium]]></description>
        <link>https://medium.com/@Ilphrin?source=rss-cfd576f250e4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aWrEQ7SuPT0TUAFdBon2sA.jpeg</url>
            <title>Stories by Kevin Ilphrin Pellet on Medium</title>
            <link>https://medium.com/@Ilphrin?source=rss-cfd576f250e4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:32:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Ilphrin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a strong schedule during containment]]></title>
            <link>https://medium.com/@Ilphrin/building-a-strong-schedule-during-containment-25b0d36325cb?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/25b0d36325cb</guid>
            <category><![CDATA[notes]]></category>
            <category><![CDATA[calendar]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Sun, 05 Apr 2020 06:46:00 GMT</pubDate>
            <atom:updated>2020-04-05T06:46:00.838Z</atom:updated>
            <content:encoded><![CDATA[<h4>With just your smartphone</h4><p>The SARS-Cov2 pandemy forced countries to impose rules to its citizens in order to help prevent the propagation of this virus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HmcNNu9B27D0_Vi-fuXfpw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@contentpixie?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Content Pixie</a> on <a href="https://unsplash.com/s/photos/productivity?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>So, I’m stuck at home, working remotely and getting fresh air only when I need to buy food. So instead of just playing video games or doing nothing, I think this is an opportunity to learn, to read, to improve ourselves, and to develop <strong>good habits.</strong></p><p>To do that we will need something: <strong>Tools</strong></p><h3>How your smartphone can help you improve your habits</h3><p>We mostly all have a smartphone right now, you may even be reading this story with yours (I am writing it with mine).</p><p>There is a lot of apps for every use case, and knowing which app can help you in which situation. I won’t go over everything I use (I must keep some food for other stories ;) ), but I will focus on <strong>how you can organize your day and stick to it.</strong></p><h3>Being connected is not just a fancy term for Millenials</h3><p>To maintain a good schedule, and to remember what you have to do, you only need two steps:</p><ul><li>Setting up an element you have to do/remember</li><li>Getting notified when it is time to do it</li></ul><h3>Your calendar must be a part of yourself</h3><p>Well, this may be a bit too much…</p><p>But one needs to master scheduling to maintain good habits.</p><p>Use a <strong>syncable calendar</strong>, so all your devices can connect to one shared calendar. For example I have a Nextcloud calendar, both my Etar Android app and my Linux Gnome Calendar are linked to my Nextcloud account. Not everyone has a Nextcloud server sure. But a lot of us have a Google account, and you can connect your smartphone to it easily (it can, if fact, be done automagically on Android).</p><p>Now, when I create an event from my computer, ma smartphone, or anywhere on my web dashboard, I can get information about my event everywhere.</p><p>To use this calendar at its best, you should set up all your appointments, and things you have to do at a precise moment (even if it is about dishes). Remember you can <strong>create a recurrent</strong> event. And you <strong>should</strong>. I use one to remember to feed my plants.</p><p>Now that this is all set up you should get notified when an event occurs, the best is like 15 minutes before. Later it may be too late to prepare yourself, and sooner you might have time to forget it and start something else.</p><p>My main weapon isn’t only my calendar, it is only 50% of the stuff.</p><h3>Note everything you can, even if it seems useless</h3><p>I cannot live without noting stuff, either for keeping track of books I want to buy later, preparing my todo list of the day, or writing down something that troubles me.</p><p>But, There’s An App For That®!</p><p>In fact, just like calendars, there is plenty of applications for all your needs. Just stick to one that you love. To me, there are two apps: Firefox Notes, and the pre-installed Note app on my OnePlus phone.</p><p>You can note everything on it, and I could make another article just about it (maybe not a bad idea), but if you have to choose one thing to note ut is that.</p><h4>Every morning, write a todo list of the day, everything that absolutely have to be done today</h4><p>When you finish an item, put an ‘X’ after it, until everything is done. You can even separate the stuff of the same type with an empty line or anything else.</p><h4>When the day is over, delete this note. Tomorrow will be another day, so will your todo list</h4><p>Keeping your todolist up the date is the one thing that can help you maintain good habits.</p><p>In fact I even use a specific app for my todo list of things I want to do every day, like sport or reading: <strong>Habitica.</strong></p><p>But this will be for another time!</p><p>Let me know if you enjoyed this little article. I want to put more work into my writing and English expression skills (I’m French, so…)</p><p>I can’t wait to read what are your must-have apps that help you every day! Please share them in the comment section.</p><p>And don’t forget, whoever you are, you are an awesome person, and you are in the best place to be happier and have a better life, believe in yourself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25b0d36325cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I started photography, and learned so much more]]></title>
            <link>https://medium.com/@Ilphrin/i-started-photography-and-learned-so-much-more-7921819d541f?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7921819d541f</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[photography]]></category>
            <category><![CDATA[mood]]></category>
            <category><![CDATA[photos]]></category>
            <category><![CDATA[lifestyle]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Mon, 13 Aug 2018 21:41:45 GMT</pubDate>
            <atom:updated>2018-08-13T21:41:45.359Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the very first test of me talking about photography.</em></p><p>I took numerous photographs this year, including ones from Canada and from France. I am a rookie so when I take a look at my <a href="https://www.flickr.com/photos/159186107@N06/">Flickr account</a> I can see the beginner I am, and how much I am focusing on finding myself, and finding what kind of pictures I like to do most.</p><p>This isn’t an easy question, and I think it will take me a big bunch of months before I get an answer to this. <strong>I won’t wait for it</strong> and this is why I continue to take pictures, without asking myself if it will be fun, or if this will reflect my identity. Because I don’t have a real identity, for now.</p><p>And yet, <strong>I love</strong> practicing. Not only it gives me an excuse to go out, taking a deep breath, <a href="https://www.headspace.com/">sometimes even meditating</a>, and being with myself for a few hours, without any barriers to what I can do. Since I started taking pictures, I noticed how much I improved my visual senses.</p><p>I have very good eyes, and it helped me a lot in my life. But until now, I was only <strong>seeing. </strong>Now I am not only seeing, but I am also <strong>looking and focusing.</strong></p><p>When a few months ago I saw a tree, now I cam looking at the tree, getting closer to watch for insects, feeling amused when something new is in front of me.</p><p>The purpose of this article is for me to take a bit of perspective of what I have done so far and, in a few months, being able to look back and see how I improved and where I am going.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b_RzKk1JaLIGNM3AO_baRw.jpeg" /><figcaption>Theatres des Celestins. Lyon, France</figcaption></figure><p>This one has been taken while walking with my cousin. We both wanted to spend an afternoon to take some nice picture while the sky was blue and the sun high.</p><p>We stopped in the “Place des Célestins” to get the most out of this theater. Even though there was a deep backlight, I though this would help me in making this architecture nicer and the trees on each side brighter.</p><p>This place is really well-placed. Not too far from the main roads, and a bit aside from them, so the place is quiet while being easy to go. At night, there is always something to see at the theater, and you can sit while seeing people laughing and smiling beneath the moon light and the streetlights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_top9EQmBMAUN-UVP1_upg.jpeg" /><figcaption>Jean Macé. Lyon, France</figcaption></figure><p>This is one of my favorite. I reeeeeeally like taking pictures by night. Even in a city like Lyon, night is quite calm and peaceful. I took this one on the night of a Friday. There were only a few people, and most of them were drunk, laughing for nothing, and joking with friends. There isn’t many cars, just enough for me to sit on the side of the road, and wait for the right moment.</p><p>I was in a special mood, where I could stay forever here, listening to the silence and looking at the lights. This is what I was talking about when I said Photography made me learn to look instead of just see. And I look at the cars and think “How was this car made?” or at the ads “Why people who made this, thought it was a good idea to make it this way?”.</p><p>That kind of question, you don’t have much time on the 21st century to ask them to yourself. And it is why taking a time for you is so good. You discover plenty of new things you could do before, but didn’t have time to think about or didn’t want to. And sitting there on the road, taking some photography, staying two or three hours at the same place, definitely takes you away from a good night of sleep, but is worth it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tvcB5Jh55WEXfAGIVxU6tQ.jpeg" /><figcaption>L’Arbresle, France</figcaption></figure><p>And to finish, I took this one on a short week with my father out of the city, eating too many barbecues and staying too much time on my computer.</p><p>But even though I spend quite more time on my computer than most people, it doesn’t mean that I cannot spend my time out of my computer and in fact, I love being without my computer sometimes (Yay, you guys at the back thinking of Geeks and Nerds as not being capable of living IRL, you can think again about these old <em>clichés)</em></p><p>And here is where I leave you. With this sunny sky and theses beautiful shadows in the clouds.</p><p>I hope to see you soon and, if you like photography like me, lets get in touch!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7921819d541f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ce mois-ci dans Playficient — Juillet 2018]]></title>
            <link>https://medium.com/@Ilphrin/cette-semaine-sur-playficient-2-1eff3c4bb301?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1eff3c4bb301</guid>
            <category><![CDATA[intelligence-artificielle]]></category>
            <category><![CDATA[symfony]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[gamification]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Thu, 26 Jul 2018 11:59:00 GMT</pubDate>
            <atom:updated>2018-07-26T13:14:12.001Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gWBpaWxDCiOg9nvaWkOaGA.png" /></figure><p><em>Playficient propose une solution permettant d’améliorer l’efficacité au travail. L’utilisateur pourra effectuer ses tâches quotidiennes de manière ludique sur notre plateforme web, être conseillé sur ses pistes d’amélioration et récompensé tout au long de sa progression. Il pourra également télécharger des modules répondant aux besoins spécifiques de son corps de métier.</em></p><p>Playficient est un projet de fin d’études entre moi et 6 autres étudiants/étudiantes d’EPITECH, sur lequel nous travaillons depuis fin 2016. Le projet devant être sorti d’ici Décembre 2019, nous lançons une bêta avec quelques entreprises qui ont bien voulu jouer le jeu et tester notre plateforme!</p><p>Pour en savoir plus, je vous invite à aller sur notre site: <a href="https://showcase.shinyotter.eu/">Playficient</a></p><p>Pour la lancée de cette bêta, je vais donc venir vous parler chaque semaine des nouveautés dans l’application. Cette première édition sera un peu plus grosse que les prochaines pour détailler un peu plus l’application</p><p>(NOTE: Oui je sais j’ai oublié plusieurs semaines, la lancée de notre bêta a demandé à ce que nous re-travaillions certaines parties et documentation du projet, d’où mon absence!)</p><h3>Site Vitrine</h3><p>Le site vitrine (Disponible ici: <a href="https://showcase.shinyotter.eu/"><strong>Site Vitrine</strong></a>) n’a pas beaucoup changé ces dernières semaines, mais deux grosses modifications vont arriver:</p><ul><li>La page Équipe: Vous pourrez bientôt avoir un petit descriptif de chacun d’entre nous. C’est quand même plus sympa de savoir qui nous sommes! (Spoil: Vous aimez les loutres?)</li><li>La rédaction des Conditions Générales d’Utilisations est presque finie, et nous allons l’incorporer au Site et a la plateforme. Même si elles seront très courtes (nous ne gardons aucune informations sur vous, avons très peu d’outils tiers, etc.), d’un point de vue légale c’est plus simple si on dispose de CGU si nous avons un problème</li></ul><h3>Plateforme: Gamification</h3><p>L’un de nos points forts est la Gamification, néanmoins ce n’était pas assez abouti ni présent à notre goût. Nous avons donc fini le système de gain de niveau, avec une très jolie notification pour vous féliciter lorsque vous montez de niveau! La création de ces petits confettis à nécessité pas mal de temps pour nos développeurs, mais ce premier résultat est très satisfaisant</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ie7OV5_0_OiwEugSuaiTow.gif" /><figcaption>Oui oui, pour vous le montrer je me suis dit que me faire passer niveau 0 serait une bonne idée</figcaption></figure><p>Un autre gros travail qui a bien abouti, est celui de la création d’équipement pour l’avatar du joueur. Le principe est le suivant: Chaque fois que vous accomplissez une bonne action sur la plateforme (Finir une tâche, lire la newsletter, revenir quotidiennement, etc.) vous aurez des chances d’obtenir un objet dont votre avatar pourra s’équiper dans la partie <strong>Inventaire </strong>du profil.</p><p>Les effets de ces objets sont encore en cours de discussion (et puis ne gâchons pas la surprise ;)), mais ils donneront déjà bien plus de style à votre personnage! Et puisque nous disposons maintenant de versions vectorielles des images, votre équipement pourra s’adapter à tout type d’écran sans perdre en qualité!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TkEGIy4-bhzEXki0b28U1g.png" /><figcaption>Notre premier lot d’épées</figcaption></figure><h3>Plateforme: Intelligence Artificielle</h3><p>L’autre point fort de Playficient est son Intelligence Artificielle, qui vous permet de mieux gérer votre façon de travailler, par le biais de conseils intelligents sur vos actions quotidiennes.</p><p>Tout comme le site vitrine, il y a eu deux gros chantiers sur cette partie</p><h4><strong>Le modèle Français</strong></h4><p>L’IA est capable de gérer deux langues: Français et Anglais. Pour ce faire, il faut entraîner des jeux de données sur chacune des langues. Mais un problème est survenu très rapidement: Autant les ressources en anglais sont très nombreuses pour les jeux de données de reconnaissance de texte, autant pour la langue française c’est une toute autre histoire.</p><p>Il a fallu donc quasiment créer de A à Z un jeu de données Français, qu’il faut annoter à la main (imaginez-vous en train de mettre des timbres sur des milliers de lettres à la main, le niveau de plaisir est à peu près similaire).</p><p>Mais <a href="https://www.linkedin.com/in/lisa-bonheme/">notre spécialiste des IAs</a> a finit par venir à bout de cette tâche difficile, et nous disposons donc d’un modèle capable de gérer maintenant ces deux langues avec un taux de précision bien suffisant pour le moment</p><p><strong>Notre prochain module: La prise de note</strong></p><p>Jusqu’à maintenant nous disposions de 2 modules pour Playficient: Le <em>Gestionnaire de Tâches</em> et le <em>Senti-mètre</em>. Le prochain module que nous allons développer est celui est <em>Notes</em>, et comme son nom l’indique vous pourrez prendre des notes pour vos compte-rendus de réunion, pense-bêtes, ou autre. Tout cela de façon collaborative, c’est-à-dire que plusieurs personnes pourront éditer une note simultanément.</p><p>L’Intelligence Artificielle sera capable, dans ce nouveau module, d’analyser du texte pour en extraire des sujets (“Liste de courses” “Chose à faire”, etc.). Cela permettra de reconnaître directement si vous avez besoin d’accomplir une action à partir des notes que vous prenez.</p><p>Le cas d’application le plus simple étant le suivant: Vous êtes en réunion avec des collègues pour déterminer la Roadmap de votre prochain projet, chaque membre prend note de ce qu’il y aura à accomplir pour ce projet. Une fois la note écrite, Playficient vous proposera de créer automatiquement des tâches dans le module de <em>Gestionnaire de Tâches</em> en extrayant les informations de vos notes.</p><p>Un gain de temps considérable donc si vous êtes comme moi, avec constamment un moyen de noter ce que j’ai à faire dans les prochains jours!</p><h3>Plateforme: Autres</h3><p><strong>Menus</strong></p><p>Vous l’aurez peut-être remarqué dans le GIF de la partie <em>Gamification </em>plus haut, mais le menu de navigation apas mal changé. Nous n’étions pas satisfaits du menu que nous possédions, et avons donc conçu et développé un nouveau menu, bien plus facile d’utilisations. Il permet notamment d’accéder bien plus facilement aux différents modules, ainsi qu’aux différentes parties du profil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OdlngZSI-DsecO8rE41hzg.png" /><figcaption>A gauche les modules. A droite un sous-menu pour les parties liées au profil</figcaption></figure><p><strong>Première utilisation</strong></p><p>Pour vous proposer une première introduction à Playficient, vous aurez maintenant un petit tutoriel d’introduction lorsque vous arriverez sur les différentes parties de la plateforme. Ceci est encore un travail en cours, mais ce qui à déjà été développé est maintenant disponible sur l’environnement de production (pour vous inscrire, n’hésitez pas à venir demander une <strong>Clé Beta </strong>en envoyant un <a href="/service/mailto:valentin.destrebecq@epitech.eu">mail a notre équipe</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F4BpDxDR6ztYHV_w2t611A.png" /><figcaption>Bienvenue dans le gestionnaire de tâches</figcaption></figure><p>C’est tout pour l’instant! N’hésitez pas à venir nous dire bonjour par mail ou sur le <a href="https://shinyotter.eu/index.html$">site de Playficient</a> si vous avez envie de tester avant tout le monde!</p><p>Pour vous tenir à jour de toutes les avancées de Playficient vous pouvez vous inscrire à notre Newsletter disponible sur notre site.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1eff3c4bb301" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ce mois-ci dans Playficient — Juin 2018]]></title>
            <link>https://medium.com/@Ilphrin/cette-semaine-sur-playficient-1-ffebaaebfbdb?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffebaaebfbdb</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[gamification]]></category>
            <category><![CDATA[intelligence-artificielle]]></category>
            <category><![CDATA[projects]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Thu, 28 Jun 2018 00:00:00 GMT</pubDate>
            <atom:updated>2018-07-26T13:12:18.996Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Playficient propose une solution permettant d’améliorer l’efficacité au travail. L’utilisateur pourra effectuer ses tâches quotidiennes de manière ludique sur notre plateforme web, être conseillé sur ses pistes d’amélioration et récompensé tout au long de sa progression. Il pourra également télécharger des modules répondant au besoins spécifiques de son corps de métier.</em></p><p>Playficient est un projet de fin d’études entre moi et 6 autres étudiants/étudiantes d’EPITECH, sur lequel nous travaillons depuis fin 2016. Le projet devant être sorti d’ici Décembre 2019, nous lançons une bêta avec quelques entreprises qui ont bien voulu jouer le jeu et tester notre plateforme!</p><p>Pour en savoir plus, je vous invite à aller sur notre site: <a href="https://showcase.shinyotter.eu/">Playficient</a></p><p>Pour la lancée de cette bêta, je vais donc venir vous parler chaque semaine des nouveautés dans l’application. Cette première édition sera un peu plus grosse que les prochaines pour détailler un peu plus l’application (si vous n’avez pas déjà lu le descriptif sur notre site ;) )</p><h3>Site Vitrine</h3><p>Le site vitrine (Disponible ici: <a href="https://showcase.shinyotter.eu/">Site Vitrine</a>) à subi quelques modifications visuelles</p><p>Notamment vous pouvez à présent partager les articles sur votre réseau social préféré (Twitter et Facebook uniquement pour le moment):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oxzmTU5UXQobkgmt.jpg" /></figure><p>Plusieurs modifications ont été ajoutées aux feuilles CSS pour améliorer le côté <em>responsive</em> de l’application, il reste encore du travail, mais vous pouvez aller voir le site de façon décente sur tablette ou mobile!</p><h3>Plateforme: Espace utilisateur</h3><p>L’espace utilisateur correspond à toute les pages personnelles de l’utilisateur: le Tableau de bord, les succès, l’inventaire, la progression, etc…</p><p>Sur les pages de dashboard et de progression, le graphique qui affiche les points d’experience gagnés par jours est maintenant centré sur la page, possède un titre, et affiche un texte de remplacement s’il n’y a pas encore de données à disposition:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ezO7LshwggZCctAI.jpg" /></figure><h3>Plateforme: Gestionnaire de Tâches</h3><p>Le gestionnaire de tâche permet, comme son nom l’indique, aux utilisateurs de créer des tâches avec différentes informations telles que le titre, les personnes assignées a ces tâches, la date de début et de fin, des Tags pour décrire cette tâche, etc.</p><p>Les tâches peuvent être imbriquées dans une hiérarchie parent-enfant sans limite de profondeur. Depuis récemment, la création d’une sous-tâche auto-complète maintenant la tâche parente associée. Lorsque l’on remplit les informations d’une tâche, celle-ci ne propose maintenant dans l’auto-complétion que les utilisateurs ou équipes auquels l’utilisateur qui crée la tâche à accès (par exemple, tous les utilisateurs qui font parti du même projet):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ol1GioGSValwj4uV.jpg" /></figure><h3>Plateforme: Senti-mètre</h3><p>Le Senti-mètre est un outil qui vous aide à analyser le ton d’un message. Créez une nouvelle analyse, copiez collez un texte en anglais ou en français, validez. Vous verrez apparaitre le ton global du texte : 0% pour un message très négatif, 50% pour un message neutre, 100% pour un message très positif. Une vue détaillée par phrase sera également disponible.</p><p>Ce module est maintenant correctement et entièrement traduit en Français et en Anglais. Il affiche aussi maintenant une notification lors de la création d’une analyse, et le modèle d’Intellignece Artificielle utilisée pour le modèle français est en cours d’amélioration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e0wjLlRfhxrIxcux.jpg" /></figure><p>C’est tout pour cette semaine! Je ne suis pas entré dans les détails pour ne pas trop engraisser l’article et qu’il reste digestible, quelques petites modifications ont été faites aussi plus précises (par exmple la correction d’un bug qui permettait de créer plusieurs Tag du même nom dans un même projet).</p><p>N’hésitez pas à revenir la semaine prochaine pour de prochaines aventures!</p><p><em>Originally published at </em><a href="http://ilphrin.com/fr/2018/06/28/this-week-in-playficient.html"><em>ilphrin.com</em></a><em> on June 28, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffebaaebfbdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Path Of Exile with an overcharged Wine]]></title>
            <link>https://medium.com/@Ilphrin/path-of-exile-with-an-overcharged-wine-326cbb601f98?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/326cbb601f98</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[videogames]]></category>
            <category><![CDATA[wine]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Sun, 25 Mar 2018 00:00:00 GMT</pubDate>
            <atom:updated>2018-03-25T14:34:21.934Z</atom:updated>
            <content:encoded><![CDATA[<p>It is a proven fact that if you want to play video games, you must in almost all cases go through Windows. And even if great advances have been made in recent years, especially with the arrival of Steam to push publishers to create on other platforms, our <a href="http://store.steampowered.com/hwsurvey">dear Linux remains quite a bit backwards</a>.</p><p>I had already talked about several native Linux games like <a href="https://www.ilphrin.com/fr/planet/2017/07/14/beholder-1984-en-jeu-video-sous-linux.html">Beholder</a> or <a href="https://www.ilphrin.com/fr/planet/2017/05/29/steamworld-heist-humble-bundle.html">SteamWorld:Heist</a> (which are real pearls by the way), or even more “modest” games like <a href="https://www.ilphrin.com/fr/2013/10/25/dungeon-craw-stone-soup-la-perle-a-avoir.html">Dungeon Crawl Stone Soup</a> and <a href="https://www.ilphrin.com/fr/2012/10/08/un-jeu-de-dessin-base-sur-les-lois-de-la-physiques.html">Caph</a>. Not so long ago you could count games under Linux with the fingers of your hand (counting in decimal base, I might add).</p><p>But the vast majority of games are still confined to Windows, for reasons that sometimes escape me, especially when you see that most game creation software like Unity or Unreal Engine support Linux very well.</p><p>So, to overcome this problem there is Wine! Meaning “Wine Is Not an Emulator” by the way. Why isn’t it an emulator? Because it does a lot better than emulating.</p><p>Wine is an abstraction layer of Windows calls, and converts them in real time into calls to Linux libraries and functions. For example in a DirectX game, each call to a function in this library will be translated into a corresponding OpenGL call by Wine. This method has the merit of being much more efficient, and less heavy for the machine than having to emulate an entire OS.</p><p>It’s been 4 years now that I haven’t touched a Windows system despite my very strong player side, and that I owe to Wine! (And PlayOnLinux I don’t forget! ;))</p><h3>Path Of Exile</h3><p>Path Of Exile is an Action-RPG game, or a Hack’n’Slash according to the definition you may have, in a Dark Fantasy universe, all in Free To Play (really). It is a game that took a long time to be developed and suffered for a long time from its technological debt. It is, for example, only recently that DirectX version 11 is supported!</p><p>My use of this game is quite intensive, I usually go quite far in the game and I often play with other players which multiplies the number of effects to display on screen. Nevertheless, I always had 2 huge problems with this game, even with my new computer from System 76:</p><ul><li>DirectX 11 has never worked with Wine, despite the support announced since several versions</li><li>The game suffers from big slowdowns and falling peaks in the number of frames per second.</li></ul><p>Because of this, I greatly reduced my playing frequency. But news from the Wine world has allowed me to look into it, and all these problems are in the past, and I’ll explain how I did that.</p><h3>Patched Wine-staging</h3><p>I am the Wine maintainer of Path Of Exile. This means that I am in charge of moderating the tests sent to the Wine site by users, and tracking and updating links to known bugs related to Path Of Exile.</p><p>The <a href="https://bugs.winehq.org/show_bug.cgi?id=42695">DirectX 11 incompatibility bug is known</a>, and many people have already complained (me first!). And <a href="https://bugs.winehq.org/show_bug.cgi?id=42695#c15">a comment</a> on the bug discussion proposed a solution that seemed to work.</p><p>The solution was to modify two small lines of code in a precise version of Wine, and the trick was done! So you have to get the Wine code (the Git version, configured with wine-3.3 is fine) and apply these changes before compiling it. (Attention, this is only for Path Of Exile!)</p><p>If you follow these steps as you read, I advise you <strong>not to do this right away</strong>! If you’ve followed, there’s another problem I’m going to talk about, and it’s going to have to be dealt with first: slowdowns and performance losses.</p><h3>Wine-PBA</h3><p>Just recently came out <a href="https://comminos.com/posts/2018-02-21-wined3d-profiling.html">an article from a certain <em>acomminos</em></a> talking about a performance problem he had spotted in the translation from DirectX to OpenGL from Wine. In his article he explains the approach he had to diagnose the problem, and propose a solution he called wine-pba.</p><p>I won’t go into details, <a href="https://github.com/acomminos">Andrew</a> explains it much better than I, go see his article, but to apply the patches you need a precise version of Wine: the 3.3-staging.</p><p><em>Staging</em> is the name given to a set of patches applied to a version of Wine. 3.3-staging means: “Staging version 3.3 of Wine 3.3”.</p><p>So you need to get the Wine 3.3 source, apply the associated <em>staging</em> patches, and then apply the wine-pba patches. Once all this is done you can compile Wine by following the documentation on the site, and launch the game with your new wine compiled!</p><h3>Results</h3><p>So here are the graphics (natively integrated to PathOfExile) between a normal version of wine 3.4, and version 3.3 staging with wine-pba.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*gxD3IDg2HSrK3FH95qihjQ.jpeg" /><figcaption><em>Before Patches</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*NUAWSuYtlPYI3oOfJL2f-Q.jpeg" /><figcaption><em>After Patches</em></figcaption></figure><p>Even if the difference does not seem vertiginous, what really makes the difference is the difference of movement of these bars. We see for example the peak in the frame “Frame Time” at 200ms, and this is something that happens frequently when we have a lot of things to load at once. These peaks disappear after the changes.</p><p>There are also changes in the number of FPS. They are more or less similar, but in the second situation we have something much more stable, which no longer juggles between the 5 FPS and the 200.</p><p>I can only invite you to test with different applications and see for yourself if these changes bring you anything. Wine-PBA is a work in progress, and very recent, and several modifications are still planned by the developer to refine the tool. No doubt this will be an interesting brick to add to the Wine ecosystem!</p><p><em>Originally published at </em><a href="https://ilphrin.com/2018/03/25/path-of-exile-with-overcharged-wine.html"><em>ilphrin.com</em></a><em> on March 25, 2018.<br>If you liked it, please clap your hands and tell me if you liked that kind of article ;)<br>Don’t forget to subscribe to my mailing list at </em><a href="https://ilphrin.com/"><em>ilphrin.com</em></a><em> to get the latest news!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=326cbb601f98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sort Wordpress posts by a custom date field]]></title>
            <link>https://medium.com/quick-code/sort-wordpress-posts-by-a-custom-date-field-ffedc2b8236e?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffedc2b8236e</guid>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[articles]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Mon, 12 Mar 2018 00:00:00 GMT</pubDate>
            <atom:updated>2018-05-13T21:33:04.544Z</atom:updated>
            <content:encoded><![CDATA[<p>You may have already worked on a Wordpress theme, but you may have to create a ‘custom field’, an additional field that contains information related to an article, category, tag, or any other Wordpress entity. You can create different types of custom fields, and the one you’ll be looking at today is Date, associated with an article.</p><p>And above all how to use it to sort our articles.</p><h3>A Custom Date Field</h3><p>A custom field is a metadata related to an article, page, etc. You can add as many metadata as you like, and these can contain a very wide range of information: A string of character, a number, a date, a time…</p><p>You can see the custom fields of an article by scrolling down the “Screen Options” menu at the top, then checking “Custom Fields”. You can now see at the bottom of the article all the metadata of the article, and you can also add one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJFE6Jmx-lsRoJipWmVsEQ.jpeg" /><figcaption><em>Screen Options</em></figcaption></figure><p>To simplify the article I used the <a href="https://www.advancedcustomfields.com/">Advanced Custom Fields PRO</a> PRO plugin (Non-PRO version is just as good for our case). This plugin allows you to quickly create fields for each article without having to add the metadata key to each new article.</p><h3>The Use Case — Create a Theme</h3><p>Here’s the situation: You manage the creation of a Wordpress site for an organization X. X will frequently post articles about Meetup events that employees organize. These events all have a date on which they take place. The objective is therefore to have a Blog page that will list all the articles, and sort them not by date of writing of these articles, but by the date of the event to which each article corresponds.</p><p>For that we have to start from a new theme, because it will require to write some PHP code. I’m not going to go into the creation of a theme in detail, there is enough <a href="https://codex.wordpress.org/Theme_Development">literature</a> <a href="https://webdesign.tutsplus.com/tutorials/building-a-wordpress-theme-in-60-seconds--cms-24315">on</a> <a href="https://colorlib.com/wp/how-to-create-unique-wordpress-themes-tutorials/">the</a> <a href="https://blog.templatetoaster.com/create-wordpress-theme-scratch/">subject</a>.</p><h3>WP_QUERY to make queries</h3><p>If you have already created a theme in the past, or if you have just followed one of the links I just gave you, you normally have a theme folder with a functions.php file at the root. This file can contain a whole bunch of actions to save before loading a wordpress page, add CSS or JavaScript to load into your site or, in our case, modify a request to the content of a database on our site.</p><p>Wordpress has a very powerful object that handles all queries, called <a href="https://codex.wordpress.org/Class_Reference/WP_Query">WP_QUERY</a>. By directly modifying this object, you will be able to modify the way Wordpress requests to retrieve your articles.</p><p>You have your articles, they are beautiful, well written, and make you want to go to these events. You have even taken the time to add a custom field that contains the date of your event for each article. This field has the key:”date_event”. We are now going to add an <a href="https://codex.wordpress.org/Plugin_API/Action_Reference">action</a> that will be executed just before retrieving the items:</p><pre>add_action( &#39;pre_get_posts&#39;, &#39;get_post_by_event&#39; ); function get_post_by_event( $query ) { if( $query-&gt;is_main_query() &amp;&amp; !is_admin() &amp;&amp; is_home() ) { $query-&gt;set( &#39;meta_key&#39;, &#39;date_event&#39; ); $query-&gt;set( &#39;orderby&#39;, &#39;meta_value&#39; ); $query-&gt;set( &#39;order&#39;, &#39;ASC&#39; ); } }</pre><p>Let’s just step by step see what this code does:</p><ol><li>First of all we record the action, which is called pre_get_posts, and we ask it to launch get_post_by_event at the right time.</li><li>The get_post_by_event function takes a $query parameter that is an instance of class WP_QUERY. This parameter will be used to sort the articles.</li><li>This condition makes it possible to verify that we process the right request, but also to check which page we are on. These functions are internal to Wordpress.</li><li>We use 3 times the $query-&gt;set method to modify the query. The first one determines a metadata key for the query, here ‘date_event’. The second time we change the order in which the articles will be returned, by meta_value, i. e. according to the value of the key of each article.</li></ol><p>And finally we change the order so that we have events from the most recent to the most distant, but this is not obligatory.</p><h3>WP_QUERY and actions</h3><p>WP_QUERY is a rather complex object to master (I don’t pretend to master it completely!), but once you put your hands in it, you realize the many possibilities it offers. To the best of my knowledge, it’s as customizable as if you could write the SQL query directly to retrieve the articles.</p><p>By combining this object with the actions of Wordpress, the possibilities become really numerous, and I can only invite you to read the documentation of the list of possible actions to give you an idea!</p><p><em>Originally published at </em><a href="https://ilphrin.com/2018/03/12/sort-wordpress-posts-by-custom-date-field.html"><em>ilphrin.com</em></a><em> on March 12, 2018.</em></p><p><em>If this article interested you, don’t forget to clap your hands and subscribe to my mailing to get the latest posts and news right on </em><a href="https://ilphrin.com/"><em>https://ilphrin.com!</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffedc2b8236e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quick-code/sort-wordpress-posts-by-a-custom-date-field-ffedc2b8236e">Sort Wordpress posts by a custom date field</a> was originally published in <a href="https://medium.com/quick-code">Quick Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A new Freelance experience]]></title>
            <link>https://medium.com/@Ilphrin/a-new-freelance-experience-eb67f34be3b5?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb67f34be3b5</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[freelance]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Mon, 26 Feb 2018 00:00:00 GMT</pubDate>
            <atom:updated>2018-02-26T19:03:49.583Z</atom:updated>
            <content:encoded><![CDATA[<p>I am in the basement of my Quebec home, working on my Web development course in a cold December weather. And I think to myself that I don’t learn enough, that I would like to be able to apply what I already know, and to find new things on my own.</p><p>I think a lot of people in my age group are asking themselves these kinds of questions. I hear a lot of people saying “I want to work, I’m tired of being in school at my age,” and that’s more or less the same kind of thinking I have. Even if being at Epitech (or Laval University at the moment) is a little different from being in a “classical” school like a faculty.</p><p>So I would like to start working, and develop my skills and become really expert at what I do and what I like to do. Except I can’t get a full-time job because I’m still in school. I need a flexible format and that’s why I started to turn freelance (or self-entrepreneurship in French, but it takes too long to write and say!).</p><p>I already had the status of Freelance in France about 2 years ago, during a 2 months work with a student association in Epitech. But I quickly revoked my status because I wasn’t interested at the time.</p><p>Like everyone else before me, I asked myself questions about what to do and how to do it right, knowing that my karma always makes me administratively problematic! I then joined a group called <a href="https://www.soto.works/">SOTØ</a> on Slack to discuss the subject.</p><p>In fact, I didn’t really talk that much in the group, but seeing so many people asking questions on a variety of topics (such as law, financial management, communicating with clients, etc.) gave me confidence in the process. After getting my SIRET number (necessary to be Freelance), I started looking at platforms like <a href="https://www.malt.fr/">Malt</a> and <a href="https://cremedelacreme.io/">Crème de la Crème</a>.</p><h3>My first job</h3><p>I found my first offer on Crème de la Crème. The project consisted of starting from a known Wordpress theme (Avada), and modifying it to add features and customize the display. I took this offer because I wanted to see how Wordpress works in terms of themes and plugins, and this work was a good first approach (in addition to the fact that I only have basic knowledge in PHP).</p><p>Without going into details, it can be said that this project was a success from a technical and realization point of view. I did what the client wanted me to do, and if there was any need or change in the plans, I was there to listen and make changes. From a learning point of view it is clearly a success too, because I learned a lot of things:</p><ul><li>I have a good base in Wordpress theme development (at least to make a Wordpress child theme)</li><li>I’m starting to know the PHP syntax, I still need to understand the syntax for object oriented PHP.</li><li>I’m managing my time a little better, even though I feel that I have to improve on this side.</li><li>I was able to take care of the communication with a client from start to finish on a project.</li><li>I have been able to define points on which I need to improve, particularly in terms of my communication with the client and the creation of the quote.</li></ul><p>We can talk a little more about the last point. During the completion of the estimate, the client and I kept in constant contact with each other, mostly because the design wasn’t quite fixed.</p><p>It may seem trivial, but the fact that the design wasn’t yet decided upon caused me quite a bit of trouble in the rest of the project.</p><ul><li>I was making a modification</li><li>We went to the next thing to do</li><li>The design was discussed again</li><li>I returned on my first modification to cancel or change it</li><li>I went back to the following, keeping in mind that the first modification could still change.</li></ul><p>In the end, I spent a lot more time going back over a job I had already done, than doing the work itself. I ended up working, without really realizing it, on a part that had been changed, but which I did not depend on according to the estimate that had been fixed.</p><p>And what puzzled me about this process was the impression that the changes requested had not been considered at all from a functional and user point of view. Most of the time, I would change an element because, according to the client, it would “make it better”. But why did it make it look better? What is the purpose of this element? If this change has been considered and decided at some point in time, why change it even before feedback could be received from users?</p><p>So many questions I should have asked during this job. The project would have come to fruition faster in my opinion, if we had taken the time to design the pages together, and detailing on each part what the user needs and how he should feel when seeing it, before moving on to the development.</p><p>This conclusion makes me feel even more motivated to embark on UX design, because with knowledge in this field, I would not only have had the tools to answer these questions, but I would also have had sufficient professional credibility to ask these questions and try to answer them.</p><p>In the meantime, I’m going to perfect my technical skills so that I can really be an expert in Web development, a field that I’m always so passionate about, looking for a new project, with this additional experience that I’ve just acquired.</p><p>If this article interested you, don’t forget to subscribe to my mailing to get the latest posts and news right on <a href="https://ilphrin.com/">https://ilphrin.com!</a></p><p><em>Originally published at </em><a href="http://ilphrin.com/2018/02/26/a-new-freelance-experience.html"><em>ilphrin.com</em></a><em> on February 26, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb67f34be3b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Service Workers in JS and offline reading]]></title>
            <link>https://medium.com/quick-code/service-workers-in-js-and-offline-reading-7bac9d4980ea?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bac9d4980ea</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[service-worker]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Mon, 29 Jan 2018 19:11:53 GMT</pubDate>
            <atom:updated>2018-01-31T19:50:29.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kX8nlVNNw7Ht56pAihp8Aw.jpeg" /></figure><p>Hi! First of all: Happy New Year! I hope for you that 2018 will be a good year, and that it won’t end with a World War III because of a blond-haired president.</p><p>Now, lets dive into much more interesting. Let’s imagine you are an owner of a website which talks about political news, with very long article that are awesome. As a user, wouldn’t be cool that I load some articles I want to read on your website from my smartphone, shut my smartphone down, and a few days later go back to it while traveling in the New-York subway without any connection, and still be able to open Firefox and read your articles?</p><p>Well, thanks to Service Workers, this could be possible, and achieved really easily.</p><p>Once upon a time, was an API called <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache">AppCache</a>. This API allowed people to store pages in cache for further use in the client browser while offline. But it had a <a href="https://alistapart.com/article/application-cache-is-a-douchebag&lt;Paste&gt;">few issues</a>. And the W3C made this API <a href="https://html.spec.whatwg.org/multipage/offline.html#offline">Deprecated</a>. “But now how do we do” — Asked Devs? Well, we have a new strong API that allows us to store assets offline: the <a href="https://w3c.github.io/ServiceWorker/">Service Workers</a>.</p><p>This new guy on the world of Web was a shiny API, walking with proud on its face because of its capabilities that allowed everyone to do whatever he/she wants, even in cases where AppCache was upset and doing its own stuff.</p><h3>Service Workers</h3><p>A Service Worker is basically a JavaScript file, which will be run by the browser in a different context from common scripts of a web page. It:</p><ul><li>Is running on a separated execution thread</li><li>Doesn’t have access to the DOM</li><li>Is ‘installed’ on the users’ computer/smartphone.</li><li>Is only running on HTTPS domains (for Firefox, Chrome doesn’t care if it is on unsafe page)</li></ul><p>Then you could say: “Yay that’s cool. But now what? What can we do with this JavaScript? If it doesn’t have access to the DOM…”</p><p>Well, it is because the purpose of the Service Worker is not to handle the DOM, but to handle <strong>requests to the server</strong>. It has a few steps, and to show that I’ll show your a nice picture from <a href="https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Browser_compatibility">MDN</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/0*9qrR26RjH3nS1skZ.png" /></figure><h3>Registering a Service Worker</h3><p>Before installing a Service Worker, you need to register one from your main JavaScript file. This can be done thanks to the method navigator.serviceWorker.register like this:</p><pre>if (&#39;serviceWorker&#39; in navigator) {<br>navigator.serviceWorker.register(&#39;/serviceWorkerArticles.js&#39;, { scope: &#39;/&#39; }):<br>}</pre><p>This method takes two parameters:</p><ul><li>The <strong>name</strong> of the javascript file, relative to the root of your domain</li><li>(Optional) The <strong>scope</strong> to give a specific perimeter where your ServiceWorker has power to work. Basically it is the folder where it has control for assets, the default value is the root of the domain.</li></ul><p><strong>Note</strong>: This function returns a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a>.</p><blockquote>Find out Free courses on <a href="http://www.quickcode.co/">Quick Code</a> for various programming languages. Get new updates on <a href="https://www.messenger.com/t/1493528657352302">Messenger</a>.</blockquote><h3>Installing, and using a Service Worker</h3><p>Now that we registered a Service Worker from ‘serviceWorker.js’, lets fill this file so your website about political article can have its article read offline if you user has already visited the needed article before.</p><p>For most of the actions, you just need to do some addEventListener, as Service Workers already have a plenty of useful Events to listen to!</p><pre>self.addEventListener(&#39;install&#39;, cach =&gt; {<br>    event.waitUntil(<br>        caches.open(&#39;v1&#39;).then(cache =&gt; {<br>            return cache.addAll([<br>              &#39;/&#39;,<br>              &#39;/style.css&#39;,<br>              &#39;/app.js&#39;,<br>              &#39;/favicon.ico&#39;,<br>              &#39;/frontPageCover.jpg&#39;,<br>            ]);<br>          })<br>        );<br>    });</pre><p>We have 3 interesting methods here! Lets take a quick look to all of them:</p><ul><li>event.waitUntil: This method is used in an event to make it wait for a Promise to be resolved, in our case we have to compute things from cache before the Service Worker is considered <em>installed</em></li><li>caches.open: This method comes form the <a href="https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage">CacheStorage API</a>, it returns a Promise that containing the cache you asked in given parameter.</li><li>cache.addAll: This method comes form the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Cache">Cache API</a> (do not confuse with the CacheStorage, the Cache API is an object that is returned by the caches.open ). This method takes an array of URLs, and for each of them try to retrieve them and store it in the Cache object.</li></ul><p>So with this code, your Service Worker is now <strong>registered</strong>, <strong>installed</strong>, and <strong>active</strong>. If you go to the home page of your website, and reload it while being in offline mode, you should be able to see your page just as before!</p><h3>Go further</h3><p>In this article we just covered a few parts of the Service Worker API, but you can do a lot of other things, like remove old caches, and dynamically add new URL to load in your Service Worker, etc…</p><p>If you want to take a deeper look into this, I recommend that you look at this <a href="https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Browser_compatibility">MDN page about Service Worker</a> which was most of my inspiration of today’s article.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fd083d1%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fd083d1%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc78cb15c51ca2cbc387138848d5e91f/href">https://medium.com/media/fc78cb15c51ca2cbc387138848d5e91f/href</a></iframe><p>Please click 👏 button below a few times to show your support! ⬇⬇</p><p>Thanks! Don’t forget to <strong>follow</strong> Quick Code below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bac9d4980ea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quick-code/service-workers-in-js-and-offline-reading-7bac9d4980ea">Service Workers in JS and offline reading</a> was originally published in <a href="https://medium.com/quick-code">Quick Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2017 retrospective of my everyday Free tools]]></title>
            <link>https://medium.com/@Ilphrin/2017-retrospective-of-my-everyday-free-tools-631ce553293b?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/631ce553293b</guid>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[mozilla]]></category>
            <category><![CDATA[neovim]]></category>
            <category><![CDATA[wine]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Wed, 03 Jan 2018 21:43:13 GMT</pubDate>
            <atom:updated>2018-01-03T21:43:13.283Z</atom:updated>
            <content:encoded><![CDATA[<p>2017 will finish in a bunch of days, and here I am in a car leading back to Quebec City, after a week where I saw my family. I have 3 hours to spend so I’ll take the time to make some kind of retrospective, looking at my year’s best events but also the most relevant days of what I use/love/see everyday. Here we go!</p><h3>Neovim, Oni</h3><p><a href="https://neovim.io/">Neovim</a> had a lot of news this year, with <a href="https://github.com/neovim/neovim/releases">3 new releases</a> it got:</p><p>Now, I don’t use all of these features in Neovim of course. For example I don’t use :terminal yet, because it is faster to type <strong>Ctrl+Maj+T</strong> to create a new tab in Tilix than doing :terminal in Neovim, but I think this may be changed with a bunch of <em>.vimrc</em> customization.</p><p>I also use a lot <a href="https://github.com/onivim/oni">Oni</a>, a GUI written with React and Electron, that brings Web capabilities to Neovim. We already had a GUI like this with <a href="https://github.com/rhysd/NyaoVim">Nyaovim</a>, but Oni is much more powerful and really better integrated with Neovim, in that it uses the externalization of Neovim’s UI to create features that fits best with a GUI. We could almost compare Oni to VSCode, with less features but a perfect bidirectionnal connection with Neovim.</p><p>And this year, Oni had not less than <strong>20</strong> new versions! It exploded with the release of 2.0, and now it looks unstoppable:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*5DMOe15dQGR4ySQITA4NUg.gif" /><figcaption>Oni is getting smarter autocompletion</figcaption></figure><p>Oni isn’t yet in 0.3.0, and it has a lot of awesome features. One things I’d like to point here is that we have BountySource+OpenCollective as ways to give to Oni’s developpers and support his work, and in 2018 it will really be one of the project I will give my money to! Don’t hesitate to take a look at it!o</p><p>These two Open Source project have a lot of work behind them, and much more in front of them, but 2018 will be decisive for them: It will by a big date with a lot of newcomers, and a lot of people will start using Neovim, and because Oni exists we won’t just have Developpers IMHO, but also people from other areas that look for a good ways to keep notes, and write things. I think about journalism, blogs, and things like that. That is my prediction for them in 2018!</p><h3>Mozilla</h3><p>Ok, now everyone knows I am a big fan of <a href="https://www.mozilla.org/en-US/">Mozilla</a>, especially since I try to help them as a <a href="https://mozillians.org/en-US/u/Ilphrin/">Mozillian</a>. This year was big in terms of emotions, as we saw the fall of FirefoxOS at the end of 2016. I still used it for a few months because it was just fine for my needs. This is a big point, we could talk about the way of FirefoxOS’ story for hours.</p><p>The fact is that FirefoxOS came too early. It came when people didn’t need it enough, and when Web was still not enough performant for end-users. If Mozilla launched FirefoxOS today, we could see a smartphone running web applications with WASM for Gaia UI, A-Frame applications in it, WebExtensions used to improve its features, Quantum to launch it fast on every smartphone, etc…</p><p>Now, along with Ubuntu Phone fall, we don’t have any alternative (In fact… we still have LineageOS! Which is pretty awesome, go check it out ;) )</p><p>But now, Mozilla strikes back, and it strikes strong, really strong in my opinion.</p><h3>A New Identity</h3><p>Mozilla’s logo was a Dinosaur since a very, very long time. But to accomodate to today’s changes, it needed a refreshment. And like Mozilla do for everything, they asked people what they wanted. And they launched OpenDesign to create this new brand, for months and months, people voted for their favorite brand, and finally one came out to the lights, and <a href="https://blog.mozilla.org/opendesign/arrival/">‘zilla’ appeared</a>!</p><p>I was amused by this one, because I loved it but I knew it would be controversal if it would be choosen. And some people said they were disappointed, but most of these were just stupid reasons like:</p><ul><li><em>The colors are ugly</em>: Designers, I’m afraid you will eat this kind of comment with no substance and arguments for the rest of your life…</li><li><em>This is stupid because you can’t search ‘moz://a’ in Google, it finds nothing</em>: Well, if people starts googling with what they see from a Logo instead of the Name, I wonder how they search for Instagram…</li></ul><p>The fact is that playing with ‘://’ is the best part in my opinion, you directly see that Mozilla is talking about Web. Now this new Logo is not alone, it comes with a new bunch of colors. And the two main colors are….White and black.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8sEbfWw-DR3Pog_FZx6Jlw.png" /><figcaption>MDN’s new look</figcaption></figure><p>At first, we could say that this is a pretty poor choice of color, and that it makes it really ‘hard’ and bold. And yes it is, but when I look for example at MDN now or the Mozilla’s Blog, I can’t think anything but that it was done with accessibility in mind. This contrast makes it really perfect for users that need big differences of colors.</p><h3>Quantum</h3><p>The second big event, is the arrival of Quantum.</p><p>Everyone knows about Quantum now. It is the merge of months of work with a new Rust Engine. Just by making it with Rust means better security, more stability, and sometime better speed. But what brings speed really is the paralellization and the rework of all of the engine.</p><p>I am not the best person to talk about it, so I’ll give you a few links so you can see by yourself:</p><p>I was afraid when FirefoxOS has fallen that Mozilla would suffer to much from it. And yes Mozilla suffered, but it was on purpose: Focus only on Firefox, and make it great again. Firefox is gaining again in popularity now, and I think Quantum is at least half of the why.</p><p>The other half somes from collaboration with other organizations and companies. I think about <a href="https://getpocket.com/">Pocket</a>, which was a shame a year ago because it was proprietary and everyone yelled on it. And now Mozilla acquired it and made it Open-Source, so everyone is quiet now.</p><p>I really appreciate this acquisition, but on the other way, I would be glad having Mozilla talk about it before it created “chaos” among community (Chaos is a pretty stronger word than needed though). And this is what I’d like Mozilla to get better with in 2018: Communication. Not only about technical stuff and updates about Firefox, but also about Activities, Acquisition, Marketing, etc…</p><p>That would make the community more calm, but also more involved in that people would make Mozilla know if something is wrong. We’ll see in 2018 what will happen.</p><h3>Wine</h3><p>Wine has got a lot of new version this year, and I don’t know what is happening, but they came with so much improvements and fixes that I cannot talk about them all. Right now, they are working on the 3.0 version, which should be released soon (We are in version rc4), and making fixes to the stable version (2.0.4 right now).</p><p>I use Wine along with PlayOnLinux, and today I am able to play easily to games like Osu, PathOfExile or Might And Magic V.</p><p>if wine guys are reading this, cheers and chocolate to you, you make an awesome work!</p><p>The only negative point I’d like to notice is that Wine is still for nerds. If you are a “lambda” user it could be reaaaaaally complicated to make a game work if it doesn’t at the first place. Fortunatelly, PlayOnLinux gives Wine a better UX with its GUI. By the way, the <a href="https://github.com/PhoenicisOrg/POL-POM-5">Fifth version of POL is coming, check out the Github repository!</a></p><p>I’d love to talk about Other things, but this article is taking too much time right now, and I need to rest in my car now. Have a nice day all.</p><p>And again, cheers to all these people that allow us to have fun with our computers and smartphones!</p><p>Oh, and by the way, happy new year!</p><p><em>Originally published at </em><a href="https://www.ilphrin.com/"><em>https://www.ilphrin.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=631ce553293b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making a JS request with the Fetch API in Symfony 3]]></title>
            <link>https://medium.com/quick-code/making-a-js-request-with-the-fetch-api-in-symfony-3-21122a525f52?source=rss-cfd576f250e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/21122a525f52</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[symfony]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ajax]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Kevin Ilphrin Pellet]]></dc:creator>
            <pubDate>Mon, 27 Nov 2017 23:19:01 GMT</pubDate>
            <atom:updated>2018-05-13T21:34:46.184Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UWkL4QRmHnvLiIoXPoU2qA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/OqtafYT5kTw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ilya Pavlov</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In a school project I am working on, I had to use the Fetch API from JavaScript to do some AJAX request, inside a file served from a Symfony 3 applicaion back-end. It wasn’t easy but I won!</p><h3>The project</h3><p>First, a little bit of context. During my education, I have to create a project from scratch in 2 yeard, with a group of 6 students (including me). We are free to choose the subject, but it has to be validated by a range of presentations in front of selected jurys in order to check if the project has potential to lead to the creation of a startup.</p><p>Our project is called <strong>Playficient</strong>. We found out thanks to statistics that <strong>40% of work time</strong> (average) is lost. One of the main reason for this is by switching from one tool to another. A lot of softwares and tools have been made in order to <strong>reduce</strong> the number of tools used in work (Synchronize with an API, use “LogIn with Facebook”, using IFTTT, or creating WebHoks on Slack or Github).</p><p>We want to create a similar tool, for small and very small companies, which have <strong>strong contact</strong> with computers. But we want to go <strong>further</strong>, with the principles of <a href="https://en.wikipedia.org/wiki/Gamification">Gamification</a> in order to motivate workers, but also with <strong>clever advices</strong> with an Articial Intelligence which allows users to get better in their everyday working processes. To make this a little more tricky, we want this project to be <strong>customizable</strong>, with a <strong>modular system</strong> that can add or remove features if the user wants to, just like the add-ons in Wordpress or in Firefox (Subliminal text: Go to Firefox 57!)</p><p>(Link to a showcase website to come if you wish to take a look, don’t hesitate to hive us some feedback it would be awesome and sooo kind! =D)</p><h3>Hey, didn’t you talk about a technical article?</h3><p>Indeed indeed, it’s time for me to talk about it. To manage with ease the modular system, we use a server-side framework in PHP called <a href="http://symfony.com/">Symfony 3</a> which works with <strong>Bundles</strong>, and 2 people are working on this back-end for now. The Front-End part is managed by Symfony through <strong>Templates</strong> and <strong>Assets</strong>:</p><ul><li>A <strong>Template</strong> is an HTML page with <a href="https://twig.symfony.com/">Twig</a> syntax which is reusable, and customisable by variable substitution and some other features like loops and conditions.</li><li>An <strong>Asset</strong> is a file which gives stuff to a template, like JavaScript code, an image, CSS, etc.</li></ul><p>So we use a Template to create <strong>reusable</strong> page, or to create a <strong>specific</strong> page to a <a href="https://symfony.com/doc/current/routing.html">Route</a>. But we won’t find in a Template anything but <strong>HTML code</strong> and <strong>Twig</strong> tags (and no other code if you write ugly code). So we don’t really care about Templates if we want to write JavaScript code.</p><p>On the other hand, Assets are much more interesting, because it is thanks to them that we will be able to serve to client a JavaScript file. But we have a problem here: We <strong>do not have</strong> Twig syntax from Templates to use server-side variables in <strong>JavaScript</strong>.</p><p>And this is problematic when we need to get a <strong>Route’s URL</strong>.</p><h3>FOSJSBundle comes to rescue us</h3><p>Like I said, Symfony works with Bundles, just like npm packages in JavaScript or Gems in Ruby. These bundles are used as dependencies to a project, and we can find <strong>hundreds</strong> of them already existing thanks to the huge Symfony community.</p><p><a href="https://symfony.com/doc/master/bundles/FOSJsRoutingBundle/index.html">FOSJSBundle</a> is a bundle that gives us a JavaScript library, called Routing to get a Route’s URL.</p><p>Here is how to use it:</p><pre>const url = Routing.generate(&#39;route_name&#39;, {your parameters}, absoluteUrlBool);</pre><p>This function returns <strong>the URL</strong> corresponding to the Route given in first parameter, exactly what we needed!</p><p>Now, we need to create the so called AJAX request. Lets take a use case (Randomly, what I was working on today). We are user X, <strong>connected</strong> to Playficient and in possession of the <strong>Task Manager</strong> module. In this we have a list of boxes, each one is a <strong>task</strong> and can contain any number of <strong>sub tasks</strong>. We’d like to do some “drag’n drop” of a sub tasks to change the box where it belongs. We we do this, we need to tell the server that we want to <strong>remove</strong> the task from its previous position, and <strong>add</strong> it to its new one.</p><p>For this, we go use som JavaScript and create an <strong>AJAX</strong> request. There is multiple way to handle this, the most newest way to do this is by using the <a href="https://developer.mozilla.org/fr/docs/Web/API/Fetch_API/Using_Fetch">Fetch API</a>. The Fetch API works with two Objects and a method:</p><ul><li><a href="https://developer.mozilla.org/fr/docs/Web/API/Request">Request</a>: It is the Object that defines the request (easy, isn’t it?). We define in it the URL, parameters, method, etc.</li><li><a href="https://developer.mozilla.org/fr/docs/Web/API/Response">Response</a>: This Object defines the server’s response. We get in this object when a fetch Promise is resolved.</li><li><a href="https://developer.mozilla.org/fr/docs/Web/API/GlobalFetch/fetch">fetch()</a>: This method has the Request as first parameter. This method returns a <a href="https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Promise">Promise</a> that resolves a Response object.</li></ul><p>Now you know more about it, lets take a look at code corresponding to a request to remove a sub task from the box it originally was:</p><pre>const url = Routing.generate(&#39;rask_remove&#39;, {<br>  taskId: 1,<br>  parentId: 2,`<br>});<br>const request = new Request(url, { method: &#39;GET&#39; });</pre><pre>fetch(request)<br>  .then(reponse =&gt; {<br>    console.log(&#39;We removed this task!&#39;);<br>  })<br>  .catch(error =&gt; {<br>    console.error(`Error when removing: ${error}`);<br>  });</pre><p>Ok, everything’s here? Lets run the server and do the manipulation… Here is what Firefox’s console gives us:</p><pre>GET   http://localhost/task/2/1/remove        302 Found<br>GET   http://localhost/login                  200 Ok<br>&#39;We removed this taks!&#39;</pre><p>And when we reload the page… the task <strong>is still here!</strong></p><p>Quickly, we can see that there is <strong>two requests</strong> done: One to remove the task, aand another to the login page… that’s weird. I’m not gonna let the suspense last any longer and explain why this happened.</p><p>We are still user X (not professor), and connected as it is, the server needs to know in <strong>the name of who</strong> we are doing this request. This is why <a href="https://en.wikipedia.org/wiki/HTTP_cookie">cookies</a> are used in Symfony. From one page to another, the user is <strong>walking around with this cookies</strong> that allows him/her to stay connected until he/she click on “Log Out”.</p><p>So, what we need to do in our request is to <strong>get this cookie</strong> and send it, but how? This is, in fact, really simple with the Fetch API and Symfony, as this is a <strong>simple parameter to put to the fetch method</strong>, to send ‘credentials’:</p><pre>fetch(request, { credentials: &#39;same-origin&#39; })</pre><p>Lets run again our code:</p><pre>GET   http://localhost/task/2/1/remove      200 OK<br>&#39;We removed this task!&#39;</pre><p>And here comes our request!</p><p>Using Fetch API from JavaScript and Symfony, it is pretty easy to do all these things, but at the condition that we know how. (I spent 3 days to look for how to get routes in JavaScript from Symfony, and understanding this credentials error even though it was simple in fact!)</p><p>This article is also available in french if you’d like to. I’m going to take advantage of my stay at <a href="https://www.flickr.com/photos/159186107@N06/">Quebec</a> and of my end-school project to write more articles about technical studd. By the way, I am working on a plugin on <a href="https://coralproject.net/products/talk.html">Talk</a> from the <a href="https://coralproject.net/">CoralProject</a>, when this will be done I might write something about it ;)</p><p>Until then, have a nice day everyone!</p><p><em>This article first appeared on </em><a href="https://ilphrin.com/"><em>https://ilphrin.com</em></a><em><br>If you liked it, please clap your hands and tell me if you liked that kind of article ;)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21122a525f52" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quick-code/making-a-js-request-with-the-fetch-api-in-symfony-3-21122a525f52">Making a JS request with the Fetch API in Symfony 3</a> was originally published in <a href="https://medium.com/quick-code">Quick Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>