PortuguêsEnglish

Blog

Hugo
2020.12.03

Hugo

Hello World. Testing the new site!

For the N’s time, I migrated the blog to a new blogging system. This time, I’m using Hugo.

Hugo is a class of CMS’s that generate static sites. Just like compiled and interpreted programming languages, the whole site generated beforehand and the result is uploaded to a server.

The main advantage using this method is a substantially faster site and zero attack surface form the CMS. The main disadvantages are the less user-friendly interface and big building times.

Let’s dig into theses issues:

Faster Experience

Since all the pages are now static and pre-made, the only variable it the server latency to delivery the files. The page does not need to be built on the fly for each user, which can be tremendously slow. And it also waste CPU from the server, rebuilding it time after time after time.

Most CMS’s have some caching system to mitigate this issue. They first check if the page have been already built. If so, serve it. If not, build it and save the result. The problem lies on implementing a CDN and/or a technique to invalidate the cache to force a rebuild (in case the content was altered by the author).

Build time.png

More Secure

Since it does not compile the page on the fly, it eliminate the security issues inherited form the language. It also does not access any type of database. There is no admin page. Event DOS attacks can be much more robust, since the CDN can migrate the traffic to another server easily.

User Interface (Lack of)

Well, Hugo uses the developer-driven approach that requires the user to use a IDE and compile the whole site. It does not offer any type of interface in which you can drag and drop widgets. It’s is definitively not WYSIWYG.

If you are seasoned to programming tools, you will have not much problem. It will be very familiar. For a non-tech savvy mom blogger, Hugo is a no go.

Build Times

Even to see a single post that you just wrote will take time. Like compiled programming languages, the site have to be built before you can check on it. Hugo have a automatic service that propagate the incremental changes and it really fast, so iterating the content will not slow you down.

It will take even more time if you have some extra processes implemented, like resizing images.

But the process to rebuild the entire site might take a while. Thankfully, for the production the whole building process can be delegated to CI/CD tools. Using GitHub or Gitlab, they will automatically build the site on each commit.

The process of writing this post, the very first on the new platform, was quite nice. But I’m in the perfect spot of product requirements and technical skills


Anyway, I’m going to try to post more content in the following months. :)

Best static site generator 2020

The Subtle Art of Not Giving a F*ck
2018.12.13

The Subtle Art of Not Giving a F*ck

This title-provoking book tries to tell a very important lesson: not everything is worthy of your attention and worries. In fact, most of things that makes us worried and down could be easily avoided if we maintain a strict rule of not

It’s kinda a Buddhism in modern blogger language. Like the book, Buddha tells that wanting leads to suffering. So you must clear your mind of all desires, not giving a f*ck about stuff. Specially material stuff.

The first third of the book is pretty nice. Is a bit thought provoking, giving you a sense of perspective of your life. I liked this part very much. I believe that it’s worth of a reread time to time. The second and third parts directs the same philosophy towards more practical aspects of life, like relationships, love and work. There the advises becomes a bit too narrow and full of must do and must not do kinda lists.

Overall, I liked the book. It’s that kind of self helping book that shakes a bit the status quo and makes as reevaluate our lives.

My Rating: 7
Goodreads: 4
Guinevere Massa – The new Family Member
2018.12.02

Guinevere Massa – The new Family Member

I love dogs. Since kid, I always wanted to have dogs around. I’ve had two when I was a kid. The two died in a bit tragic situation, but I kept loving them.

This year I decided to give it another try. This time, I would be alone. No mother or brothers to help me out feeding, nursing and taking out for a walk. This time, it would be like I’m a single dad.

I had my preferences of breed, of course. I live in an apartment, so it would be advisable to get a smaller specimen. In Rio, a furry one would suffer without mercy. A smart, training-lover that would get beer at the fridge would also be a great plus.

But I did not want to buy. I would rather adopt one. But to find one that fills all the check boxes is hard. But I waited. Eventually, a friend of mine told me such story:

She already had a dog, called Lancelot, but she felt that the dog was too alone. Without a friend, Lance was developing a non-social behavior. She decided to adopt one. She got a small 1.5 month-old cub and named her Guinevere. Lancelot and Guinevere were supposed to live happily ever after.

But Lance got annoyed. All that grumpiness from a adult dog was not getting along with the chaotic way of life of a cub. Lance was spending most of the day up in the bed, a place he could jump over but the poor Guinevere could not reach. From there, Lancelot kept his god deserved peace.

My friend told them she was planning to give Guinevere back. I immediately seized the opportunity to ask the little lady for myself. It was my chance right there. She agreed.

I was going to pass by her place a couple days later to get the new daughter. I was super anxious. I could not wait for it. Eventually, I went there to meet for the first time my little Guiné. Guiné is a reference to the African country, Guinea. It is a perfect match. Guinevere was super duper black. Despite a single pawn and her belly, Guiné is pitch black.

I loved her. Her super energetic behavior. Her looks. Her tongue, that did not stop to lick me for a moment. Since then, I am a dad. I try to give it her deserved love without over do it. She is a dog.

Little Nightmares
2018.10.14

Little Nightmares

In the same vain of critically acclaimed Limbo and Inside (review pending :P), from Playdead Games, Little Nightmares, from Tarsier Studios offers a great action puzzle adventure, full of mysteries.

The game, unlike the mentioned ones, are played in a 2.5 world. It’s mostly 2D, but there are some things that require the Z axis. To be quite frank, it is partially one of the problems with the game. More of that later.

Little nightmares 1

The story is a bit clearer than the Playdead games, but it still is a clueless journey. All these games offer a minimalist approach for storytelling. One can argue that it is a valid and logical choice in a situation where you are alone and running away from danger. However, the lack of exposure let the players in the darkness most of the time. You might eventually discover whada heck is going on, but chances are you will play throughout the game without know much.

In a scale, Inside is mostly undecipherable, Limbo is a understandable (due the simple boy runs premise) and Little Nightmares might have the most clear story.

Little nightmares 3

The giant grotesque figures are super creepy, but after some deaths, they do not offer the terror that would might except. They fall mostly in the range of strange than from pure evil that want you dead.

The controls caused me several problems. I was expecting to use the game pad, but the analog joystick was too imprecise, specially during running. I was often falling into the void because I was running towards the camera instead sideways. I had to change to mouse+keyboard scheme, which was weird for such a game. Ironically, the 2.5 feature of the game was not that important. It mostly could be replaced to a tracked walk towards the Z axis, making the game essentially a 2D.

Little nightmares 2

The visuals are amazing. It totally delivers the premise of uncanny familiarity and strangeness. The awkward felling that you know something is not right is present here. You character is relatable. It’s fragile nature makes the whole adventure more epic.

Because it have a chapter-like story. One could try to replay its best parts to manage to get achievements or contemplate better the scenarios.

Note: I like the game so much that I was compelled to try it’s 3 expansions. Nice.

My Rating: 7
Metacritic: 84
Trip to Amazon
2018.09.12

Trip to Amazon

Great trip to Brazilian Amazon. Manaus, Alter de Chão, Belém, Ilha de Marajó, São Luis and Lençóis Maranhenses. So many friends.

Final Station
2018.06.11

Final Station

This small game is a 2D action-horror game.

It all happens in a middle of a alien-ish invasion. They transform every human into a zombie like creature. The whole country (maybe the whole world?) is trying to survive. The train system is basically the only transportation system available.

You control a train conductor. You have to guide your train to station after station, performing some missions to save humanity.

It has simple controls, effective story, nice mechanics. You might even run a second time (because it is a quite short adventure) in order to do every possible achievement.

Final station 3.png

Final station 2.jpg

My Rating: 7
Metacritic: 76
Portugal 2018 – Google Photos edition
2018.05.24

Portugal 2018 – Google Photos edition

Ora poix! Ora poix! As fotos que tirei da terrinha, alteradas automaticamente pelo Google. Não é que gostei dos resultados! #tbt

20180306 182152 animation.gif

Zoe’s Tale
2018.05.15

Zoe’s Tale

The forth installment of the Old Man’s War series focus on the same events of the third book, The Last Colony. This time it uses the perspective of the little girl Zoe, the adopted daughter of John Perry and Jane Sagan.

She is quite brilliant and clever. As a teenager, she is experimenting love, fear and adventures for the first time.

And you might find that several important events from the previous book.

My Rating: 7
Goodreads: 3.74
Last Colony
2018.05.10

Last Colony

From the same universe of books of Old Man’s War, John Scalzi tells a story of a human colony in another planet. It’s a new colony, so mostly tells the hard conditions and situations that they have to face.

They are far from home. And contact with the former homes are prohibited. Most do not know why. Just focus on creating the initial conditions for a bigger and definitive immigration waves. Wild animals, inhospitable weather and lack of resources and technologies makes everything a very dire situation.

The last colony 2.jpg

You follow the story of John Perry, the same protagonist from the original novel. This story takes place many years after the events of the second book in the series, The Ghost Brigade. Perry and his wife Sagan are now trying to have a normal civilian life with their new daughter Zoe.

My Rating: 7
Goodreads: 4.05
Peru 2018 – Inka
2018.05.03

Peru 2018 – Inka

The Inkas (in fact, the people is called Quechua and Inka refers only to the king) is mysterious and fascinating civilization. Risen and fallen in matter of one century.

BRUNO MASSA