Open in app
Home
Notifications
Lists
Stories

Write
Pedro Simões
Pedro Simões

Home

Dec 5, 2021

HTTP Content Negotiation in Golang reverse proxy

I had a very (seemingly) simple task. Write a reverse proxy to a document store. However an unexpected behaviour made me dig deep about http content negotiation made by golang default implementation transport. The original code (using gin) was as simple as: remote:= some_remote_host proxy := httputil.NewSingleHostReverseProxy(remote) proxy.Director =…

Reverse Proxy

5 min read

HTTP Content Negotiation in Golang reverse proxy
HTTP Content Negotiation in Golang reverse proxy

Apr 18, 2021

Bash + ElasticSearch MultiSearch

Correlating logs on ElasticSearch using Kibana is usually pretty easy. In Distributed Systems, if System Y performs a request to System X, you can use attributes like transaction_id, trace_id and span_id to navigate all logs belonging to a particular trace, and vice-versa. But sometimes you have systems interacting which have…

Bash

5 min read

Bash + ElasticSearch MultiSearch
Bash + ElasticSearch MultiSearch

Dec 13, 2020

My Advent Of Rust, Day 4.

I’ve always considered programming challenges a fun way of experimenting new languages. For this edition of advent of code (2020), i decided i would give Rust a try. Rust really makes your head spin a bit with supposedly trivial problems (and this is a good thing!). This is mainly because programming in Rust requires you to think differently. Replicating patterns that are…

Rust

4 min read

My Advent Of Rust, Day 4.
My Advent Of Rust, Day 4.

May 17, 2020

Image Dataset for Litter Detection

Today i want to talk a bit about an important project: TACO. TACO, which stands for Trash Annotations in Context, and it is an open image dataset for litter detection, similar to COCO object segmentation. Started by the idealist computer-vision researcher Pedro Proença (with myself as contributor), it contains photos of litter taken under diverse environments, from tropical beaches to London streets…

Taco

3 min read

Image Dataset for Litter Detection
Image Dataset for Litter Detection

May 10, 2020

Vim grep operator

Every developer needs a fast way to search for a current word in multiple files. As a vim user the way i used to do it would be in the form of :Ack! < word > < directory_where_i_want_to_search > . Surely there must be a better way! That way was presented to me by my vim partner in crime, Mr João Seabra. He wrote a…

Vim

2 min read

Vim grep operator
Vim grep operator
Pedro Simões

Pedro Simões

Following my curiosity. https://seomis.cc

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable