30 days of code in Go: Day 0 - Reading from stdin

Today I am starting the 30 days of code challenge on Hackerrank. You will be able to see my progress at my profile. The language I chose is Go. I do not have experience in Go and I am pretty excited. I think the challenge is basic, but it will probably be fun, so bear with me. Later on I may take better challenges, when I get more experience with Hackerrank. Incredibly, this gave me more trouble than I expected. First of all I had to install go using homebrew: ...

September 6, 2016 · 2 min

What I think is missing in C: Type Inference

The first programming language I learned was C and I found it pretty interesting back then. Nevertheless, I have seen a couple of languages in the last years and I really think C is missing something important: type inference. The concept is simple and it means that the compiler will try to infer what the variable type is for you. You need to give context in the code for this to happen, but I have seen it work well on OCaml and Golang. As a simple example in Go: ...

September 6, 2016 · 1 min

Code a program to solve a partial differential equation using finite differences with an explicit method

The goal of this post is to create a program to solve a differential equation in 2D. I will present the programming in C++ but the concepts here are easily translated to other languages. I myself have used Julia a couple times. The equation that we are going to solve is the Poisson equation with Dirichlet boundary conditions in a 1×11\times 1 square. The equation and the conditions are given by ...

September 3, 2016 · 6 min

Getting an Amazon SSL Certificate when you didn't receive an e-mail

At the time of this writing - September 3rd, 2016 - this website is hosted on AWS and thanks for this post Hosting Hugo on AWS. Nevertheless, I had problems in the process. I found the idea of having an SSL certificate nice and I wanted to try it as the steps were well explained and there were no extra costs when you are using Amazon CloudFront. The problem was I just registered my domain at Registro.br and I had no admin e-mail. The solution is to create an admin e-mail and then actually request the certificate. Note that I am considering in this post you already have a registered domain. ...

September 3, 2016 · 3 min

Create bucket on S3 and sync with local folder

I think cloud services are a great tool and can be really helpful depending on your needs. One of the first I heard about was S3 which allows us to store our data on the cloud. It doesn’t come with an application like Dropbox to sync a folder for you automatically. S3 actually works by means of an API (Application Programming Interface) that is available in a couple programming languages. Besides the API, there is a tool that allows us to interact with S3 and other cloud services from Amazon: the AWS Command Line Interface. In order to install it, open a terminal and type ...

September 2, 2016 · 3 min

First post

Hey! I am Ataias and this is my first post in this blog. I hope to write down here any thoughts I may have and it will hopefully be a diary of things I learn as well as a place to call attention so that I can meet new people with similar interests. Enjoy!

September 1, 2016 · 1 min