Modjo – Lady

All

Intro

I remember when I was 9 years old and this song, Lady from Modjo, a French duo, started plying on MTV Brazil. Btw, MTV Brazil was trash on its final years, but that time it was amazing!

Modjo – Lady

Anyways, recently after coming to Montreal, I found that actually the clip was filmed in Quebec! And recently I found the clip locations from the blog of the director [1] and clip locations are [2].

The final part of the clip is actually filmed on Mont-Royal! And the bar scene, which is one of the best was filmed in Saint-Gabriel, QC!! haha

   My plan is to “re-film” the clip with my friends haha!

 

REFs

[1] https://francoisnemeta.wordpress.com/2016/06/29/modjo-lady-hear-me-tonight-the-story/

[2] https://www.google.com/maps/d/viewer?mid=1g9wR_Zo2l7lf6GkVEG8IxDYeKeg&ll=46.05883756184599%2C-73.47268258984377&z=10

 

Travel photos and CNN

All

Intro

I went on a trip all over Europe with my friend Gabriel. We took several photos and it was amazing. I highly recommend Euro Disney. Although a bit salty, aka costly, it was a good time. Je vraiment manque tout ca! Et parle francais avec les parisiens est tres bon aussi.

Anyways, months later and several emails from Gabriel demanding the photos!!! I was able to install and upload my images on Google Photos and share with him. Only 3 months later
Right after installing it, I saw that the app was classifying my photos and then I was curious to know how was it doing it. Well, it’s a CNN! (I like Quora btw u_u)

CNN

Convolutional neural networks can be called ConvNet or CNN and its composed of an input layer, one or two hidden layers, and one output layer. Each layer might have its own properties as parameters and hyperparameters.

More information can be found here [2] that also has a very interesting and educative demonstration of how the CNN works.

From what I could find until now [blame me flag], Google photo seems to rely on Inception-v4 [3].

REFs

[1] https://www.quora.com/Which-algorithm-is-used-in-Google-Photos-app-for-classification-labeling

[2] http://cs231n.github.io/convolutional-networks/

[3] https://arxiv.org/abs/1602.07261

 

React.js

All

Intro

    I remember using React at Agile Solutions, back in Brazil and this “JavaScript library for building user interfaces”, aka framework, was very much used and it was quite good SPECIALLY for small stuff.
   One of the best courses I have ever tried in Udemy is [2], this guy is just great!

React

   Example from wikipedia – yes, hate me.
 1 import React, { Component } from 'react';
 2 import { AppRegistry, Text } from 'react-native';
 3 
 4 export default class HelloWorldApp extends Component {
 5   render() {
 6     return (
 7       <Text>Hello world!</Text>
 8     );
 9   }
10 }
11 
12 // Skip this line if using Create React Native App
13 AppRegistry.registerComponent('HelloWorld', () => HelloWorldApp);
14 
15 // The ReactJS code can also be imported into another component with the following code:
16 
17 import HelloWorldApp from './HelloWorldApp';
 

REFs


   [2] https://www.youtube.com/watch?v=pgAvVxowaYU

RPG to life

All

Intro

When I was 10 years old, the school showed me RPG. A silly and non-sense game about doing nothing sited in a table with dice. I was wrong later I started learning AD&D and then D&D. I learned so many concepts and stuff. I could mention many things. One of the moments of more happiness in my life my character became ::ArchiMage:: in 2006, in June, 12, if I’m not wrong. I still have the info of my character, D&D3.5. Level 17! Almost Epic. 

Well, for quite some time I thought I would open a start-up that trains people using RPG. Maybe one day, who knows.

RPG

Anyways.
The diagram below shows the abilities that are actually improved while playing RPG.

> Cognitive abilities: several

> Writing skills:  Fulfill your abilities

> Reading skills: The magician can choose 4 spells to prepare today. Which one to use

> Socialization: Schedule Sunday meetings with at least 4 people.

> Interpretation: Do really think an elf archer would Neutral would do this thing?

> Creativity: The meals are finished, what to do?

> Strategy: 4 players against 20 rob-goblins.

> Math: if you spend more than 20seconds after rolling the dice calculating your bonus. Lost your turn.

 

[Source1]RPG

REFs

[Source1] I got this pic from Facebook, so I don’t know who did. The person deserves all the credit.

ExtendJ!

All

Intro

Reading some things and found ExtendJ, very nice tool. There is actually a paper [2].

Multiplicities: the idea programing with one object the same way you deal with many.

ExtendJ

Developed by Jesper Öqvist and other students, they implemented a series of extentions on Java. For example the Spread method. You do one thing the same way you do the many objects.

For them to do this, they implemented the @any operator.
Example of making several people work at the same time!

   People A = new People(“A”)

   People B = new People(“B”)

   @any

    peoples.work();

                          status = A.status();

 

In this case status is equals to working!! AMAZING! But ExtendJ is more power and helps to build extentions to Java code, for example Data Flow analysis and other mechanisms above – extending – Java, basically providing hook points so you can attach your extentions, i.e. extention points.
The original website is this [3] and the source here is [4].

Citation

@inproceedings{Oqvist:2018:EEJ:3191697.3213798,
 author = {\"{O}qvist, Jesper},
 title = {ExtendJ: Extensible Java Compiler},
 booktitle = {Conference Companion of the 2Nd International Conference on Art, Science, and Engineering of Programming},
 series = {Programming\&\#39;18 Companion},
 year = {2018},
 isbn = {978-1-4503-5513-1},
 location = {Nice, France},
 pages = {234--235},
 numpages = {2},
 url = {http://doi.acm.org/10.1145/3191697.3213798},
 doi = {10.1145/3191697.3213798},
 acmid = {3213798},
 publisher = {ACM},
 address = {New York, NY, USA},
 keywords = {Compiler Generators, Extensible Compilers, Reference Attribute Grammars},
}

REFs

[1] https://www.youtube.com/watch?v=jP76MF59mgo

[2] ExtendJ: extensible Java compiler

[3] https://extendj.org/getting_started.html

[4] https://bitbucket.org/extendj/extendj

Elixir

All

Intro

I remember the class of professor Ismar Frango, back in 2012 on Paradigms of programming. It was mind blowing to think recursively but to implement in C or C++ it was a bit tough. Nowadays, with python and elixir, dude! it’s much easier.

Elixir

I started learning Elixir some time back, when I make a mistake in one of my python programs and Elixir came with “end” in function. It was like, well, this is a broken python. But not, it’s much more than that.

To learn I use this blog [2] and this tutorial [1] It’s from there that I stole the code below. Elixir is very powerful for pattern matching [3].

defmodule Recursion do
  def print_multiple_times(msg, n) when n <= 1 do
    IO.puts msg
  end

  def print_multiple_times(msg, n) do
    IO.puts msg
    print_multiple_times(msg, n - 1)
  end
end

Recursion.print_multiple_times("Hello!", 3)

 

REFs

[1] https://www.youtube.com/watch?v=pBNOavRoNL0

[2] https://elixir-lang.org/getting-started/recursion.html

[3]https://medium.com/mobileforgood/5-things-we-like-about-elixir-coming-from-python-c19cbae7484d

 

Bob Dylan

All

I created this post a long time ago, when the Nobel prize was annouced and before Bob refusing to go there.

Well, here comes the hystory of a hurricane! Congrats Dylan! You’re just great

 

Python Fractal from [1]

import turtle
PROGNAME = ‘Sierpinski Triangle’
#Credits: This code was written by editing the code from http://www.lpb-riannetrujillo.com/blog/python-fractal/

myPen = turtle.Turtle()
myPen.ht()
myPen.speed(5)
myPen.pencolor(‘orange’)

points = [[-175,-125],[0,175],[175,-125]] #size of triangle

def getMid(p1,p2):
return ( (p1[0]+p2[0]) / 2, (p1[1] + p2[1]) / 2) #find midpoint

def triangle(points,depth):

myPen.up()
myPen.goto(points[0][0],points[0][1])
myPen.down()
myPen.goto(points[1][0],points[1][1])
myPen.goto(points[2][0],points[2][1])
myPen.goto(points[0][0],points[0][1])

if depth>0:
triangle([points[0],
getMid(points[0], points[1]),
getMid(points[0], points[2])],
depth-1)
triangle([points[1],
getMid(points[0], points[1]),
getMid(points[1], points[2])],
depth-1)
triangle([points[2],
getMid(points[2], points[1]),
getMid(points[0], points[2])],
depth-1)
triangle(points,4)

REFs

[1]http://www.101computing.net/python-fractals/

GLS School

All

Intro

I was watching Learn German with Jenny[2] and I remembered my GLS classes. GLS, which stands for German Learning School, is a school in Berlin about zu + infinitive.

By the way, Berlin is fantastic, is one of the best schools I have ever been, special people and stuff all over. So many things to do, and people all over the world always very nice and open. There were some not that cool people but the percentage was very low actually. Being there during the World Cup was very special.

The wall is very very interesting, it shows how bizarre and segregative the humans can be.

Zu + inf / Verb + inf

Ich habe Lust ins Kino, zu gehen.

Ich habe versprochen, ihm am Wochenende zu helfen.

Those sentences doen’t have subjective and actually use the verb in the infinitive[1]

There are verbs that don’t need to zu though:

Present: Ich sehe den Postboten kommen.

Past: Ich habe den Postboten kommen sehen.

Present: Sie hat das baby schreien horen.

References

[1] https://mein-deutschbuch.de/infinitivsaetze.html

[2] https://www.youtube.com/watch?v=dCccMZKLT3M

 

 

Pedagogy of the OPPRESSED

All

Nowadays is seems to be a not popular thing to talk about Paulo Freire, but I will write this post anyways.

The oppressed shall not be the oppressor of the oppressor.

Pedagogy of the oppressed

   1 – Find the oppressor
             The delimitation of rules and lines makes the oppressor less humanized, since making another human being oppressed makes one less human.

    2 –  The oppressor should strugle to have equal right, i.e. not having a huminized relationship.

3 – Freedom of the oppressor’s power though transformation of reality. Freedom is not an manifestation but rather a entire mobilization and change.

    4 – The pedagogy will become therefore the pedagogy of all mans.

 

Movie reference
  In the end of The Hunger Games – Mockingjay – Katniss , must kill the oppressor (Snow) and then she actually realize that the oppressor will just be replaced and kills Coin.
[1] Pedagogy of the Opressed. Paulo Freire