Google I/O 2021 - My notes

Google IO is the most expected conference for anyone that follows the Google Ecosystem, every year they announce the current path of Google, new projects, or research projects. Here I write my notes of all announcements and some of my own comments Pre-show As usual we have a pre-show before the Keynote, for this year the band invited was tUnE-yArDs to play with Blob Opera a Google Experiment, using Machine Learning and in real time to follow the band music....

May 18, 2021 · 13 min · Filipe Barroso

Blogging Stack with Org-Mode

Photo by Darwin Vegher on Unsplash TL;DR Org Mode - To write the articles, from anywhere Ox-hugo to parse the articles into Hugo Hugo - For the website itself Firebase - Hosting Explaining the Stack I’m lazy, the more hurdles I have to publish a blog post, the harder it is for me to even start writing. To publish something I need to be simple, fast, and easy to write from anywhere, laptop, mobile, or even from handwritten notes....

October 2, 2021 · 4 min · Filipe Barroso

Git tips that I use everyday

These are some git tips that I’ve noticed that, while some seem obvious, a normal git user might easily not know them. There is so much to know about Git that is bond to happen. If you have any tip of your own that is extremely useful, reach out through Twitter, I’m always happy to learn new tricks. Alias Find most used commands and set an Git alias. I’m someone who mostly use Git through CLI and finding my most used commands and shortening is big a time saver....

May 20, 2021 · 4 min · Filipe Barroso

Challenging myself with Vim Golf

No one: Really no one: Me: Last year I wanted to refresh my knowledge with VIM so I did a couple VimGolf Everyday after work, for a month, I timeboxed 15min to try to make the latest exercise of the VimGolf. Sometimes I failed but I always learned something everyday. Rural Post #1 Date: 19/10/2020 Challenge: http://www.vimgolf.com/challenges/5f1e0217becb80000692b9c4 Applied a simple macro and delete backwards. First solution: qa$bd0jq7@a:wq<CR> After I tried to learn about running a command multiple times without using macros....

May 21, 2021 · 15 min · Filipe Barroso

The Fifth Day

My goal with this article is to share my experience of the #4DayWeek from its inception and I’ll keep updating on this topic. I hope that this article helps others to understand the four day work week. Friday It’s Friday. Today I woke up and instead of opening the company laptop I opened my laptop and started writing this. Starting today, the company I work for has implemented the four day work week....

October 1, 2021 · 3 min · Filipe Barroso

Quick Tips - Shelf - notFoundHandler

Simon kindly called to my attention, that we can implement the named parameter notFoundHandler (source) with a Handler in the Router constructor, instead of implementing a router.all() (source). Example import 'package:shelf/shelf.dart'; import 'package:shelf/shelf_io.dart' as shelf_io; import 'package:shelf_router/shelf_router.dart'; void main() async { final service = Service(); final server = await shelf_io.serve(service.handler, 'localhost', 8080); print('Server running on http://${server.address.host}:${server.port}'); } class Service { Handler get handler { final router = Router( // // Instead of using 'router....

November 7, 2021 · 1 min · Filipe Barroso

Shelf - Web Server with Dart

Photo by Museums Victoria on Unsplash This article is mostly a gathering of examples from Shelf and its official add-ons. Where I add my own comments that helped me understand the project and building a web server with Shelf, more about that in the end of the blog post. Why Shelf Shelf, is a Web Server Middleware, not a full blown server framework like Django, it is modular, and you add add-ons for the functionalities you need....

November 5, 2021 · 8 min · Filipe Barroso

Deploy a Dart Shelf server to Google Run

Photo by Guille Pozzi on Unsplash Let us learn how to deploy your Dart project to Google Run. I will assume you already have a GCP project running, have gcloud installed, Docker installed, and are familiar with their CLI commands. You will also need a Billing account associated to your GCP Project, and the following GCP services activated in your project: Container Registry API Cloud Run Admin API Cloud Run while has a Free-tier, it is not a Free service, check out the pricing page for more detailed information: https://cloud....

November 13, 2021 · 5 min · Filipe Barroso