<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pablo Vieira</title>
    <description>Personal website</description>
    <link>https://pv8.github.io/</link>
    <atom:link href="https://pv8.github.io/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Wed, 12 Mar 2025 18:57:24 -0300</pubDate>
    <lastBuildDate>Wed, 12 Mar 2025 18:57:24 -0300</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>Gamification - Game Design</title>
        <description>&lt;p&gt;In early October, &lt;a href=&quot;https://eaesp.fgv.br/en/faculty/wagner-bronze-damiani&quot;&gt;Prof. Wagner Damiani, Ph.D.&lt;/a&gt; kindly invited me to talk about Gamification to his undergrad students of &lt;a href=&quot;http://eaesp.fgvsp.br/en/international-activities/exchange&quot;&gt;International Program in Management&lt;/a&gt; at &lt;a href=&quot;http://eaesp.fgvsp.br/en&quot;&gt;FGV’s São Paulo School of Business Administration&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It was great to be able to share some ideas about a topic I really like with such brilliant students from around the world.&lt;/p&gt;

&lt;p&gt;In this talk I focused on &lt;em&gt;Game Design&lt;/em&gt; and tried to explain how Gamification is not only about &lt;em&gt;PBLs&lt;/em&gt; (Points, Badges, and Leaderboards):&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://pv8.github.io/media/gamification_players.png&quot; alt=&quot;Players&quot; class=&quot;alignright&quot; style=&quot;width: 35px;&quot; /&gt; &lt;strong&gt;Players&lt;/strong&gt;:
Identifying them and how important they are in a Gamification initiative.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://pv8.github.io/media/gamification_journey.png&quot; alt=&quot;Journey&quot; class=&quot;alignright&quot; style=&quot;width: 35px;&quot; /&gt; &lt;strong&gt;Journey&lt;/strong&gt;:
Guiding the players through the “&lt;em&gt;game&lt;/em&gt;”.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://pv8.github.io/media/gamification_balance.png&quot; alt=&quot;Balance&quot; class=&quot;alignright&quot; style=&quot;width: 35px;&quot; /&gt; &lt;strong&gt;Balance&lt;/strong&gt;:
Keeping the players engaged without neither frustrating or boring them. The &lt;em&gt;Fun Zone&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://pv8.github.io/media/gamification_experience.png&quot; alt=&quot;Experience&quot; class=&quot;alignright&quot; style=&quot;width: 35px;&quot; /&gt; &lt;strong&gt;Experience&lt;/strong&gt;:
&lt;em&gt;Fun&lt;/em&gt; is engaging, but what can be fun in the context?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://pv8.github.io/media/gamification_gameelements.png&quot; alt=&quot;Game Elements&quot; class=&quot;alignright&quot; style=&quot;width: 35px;&quot; /&gt; &lt;strong&gt;Game Elements (Examples)&lt;/strong&gt;:
It’s not only about points. Are the players &lt;em&gt;always&lt;/em&gt; aware of the game elements?&lt;/p&gt;

&lt;p&gt;Here are the slides of the presentation:&lt;/p&gt;

&lt;iframe src=&quot;https://docs.google.com/presentation/d/1HnAIXn59KBvkuPEcBdDdmD3txtoHRmTW32jdqb7xhjg/embed?start=false&amp;amp;loop=false&amp;amp;delayms=3000&quot; frameborder=&quot;0&quot; width=&quot;640&quot; height=&quot;389&quot; allowfullscreen=&quot;true&quot; mozallowfullscreen=&quot;true&quot; webkitallowfullscreen=&quot;true&quot;&gt;&lt;/iframe&gt;

</description>
        <pubDate>Thu, 08 Oct 2015 16:18:03 -0300</pubDate>
        <link>https://pv8.github.io/posts/2015/10/08/gamification-game-design/</link>
        <guid isPermaLink="true">https://pv8.github.io/posts/2015/10/08/gamification-game-design/</guid>
        
        <category>game design</category>
        
        <category>fgv</category>
        
        <category>talk</category>
        
        
        <category>Gamification</category>
        
      </item>
    
      <item>
        <title>Running a simple HTTP server with Python</title>
        <description>&lt;p&gt;Sometimes we just need a quick HTTP server up and running, and we don’t want to bother setting up &lt;em&gt;Apache&lt;/em&gt;, &lt;em&gt;Nginx&lt;/em&gt; or anything like that. We just want to check a static website layout… or share some pictures in our local network. Quick and simple.&lt;/p&gt;

&lt;p&gt;Well, &lt;a href=&quot;https://www.python.org/downloads/&quot;&gt;Python&lt;/a&gt; can help us with that. It comes with a built-in &lt;a href=&quot;https://docs.python.org/2/library/simplehttpserver.html&quot;&gt;simple HTTP server&lt;/a&gt; which will turn a local directory into a web server directory. And it’s only a line command away:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;python &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; SimpleHTTPServer&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;We will get a message informing that it’s serving on port 8000 (which is the default port):&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;Serving HTTP on 0.0.0.0 port 8000 ...&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;And that’s it! It’s serving our directory on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;http://localhost:8000&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For example, let’s say I want to share my &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/Pictures&lt;/code&gt; directory with my colleagues via local network on port &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;5000&lt;/code&gt;:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; ~/Pictures/
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;python &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; SimpleHTTPServer 5000
Serving HTTP on 0.0.0.0 port 5000 ...&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Assuming my IP address on the local network is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;10.1.0.1&lt;/code&gt;, my colleagues will be able to check out my pictures on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;http://10.1.0.1:5000&lt;/code&gt;.&lt;/p&gt;

&lt;h4 id=&quot;python-3&quot;&gt;Python 3&lt;/h4&gt;

&lt;p&gt;The HTTP server changes a little bit in Python 3. A &lt;strong&gt;note&lt;/strong&gt; from the &lt;a href=&quot;https://docs.python.org/2/library/simplehttpserver.html&quot;&gt;docs&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;SimpleHTTPServer&lt;/code&gt; module has been merged into &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;http.server&lt;/code&gt; in Python 3.
The &lt;a href=&quot;https://docs.python.org/2/glossary.html#term-to3&quot;&gt;2to3&lt;/a&gt; tool will automatically adapt imports when converting your
sources to Python 3.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But it’s still one line command:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;python &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; http.server
Serving HTTP on 0.0.0.0 port 8000 ...&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Run it with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--help&lt;/code&gt; argument to see detailed options:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;python &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; http.server &lt;span class=&quot;nt&quot;&gt;--help&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

</description>
        <pubDate>Mon, 23 Mar 2015 19:00:00 -0300</pubDate>
        <link>https://pv8.github.io/posts/2015/03/23/simple-http-server/</link>
        <guid isPermaLink="true">https://pv8.github.io/posts/2015/03/23/simple-http-server/</guid>
        
        <category>http server</category>
        
        <category>python</category>
        
        <category>tips</category>
        
        
        <category>Dev</category>
        
      </item>
    
  </channel>
</rss>
