Vacatronics is a publication to share content and knowledge about programming, electronic, and technology in general. We’re always looking for great content that make us grow as a community.
Some topics we like and are interested in that you can write about:
The Internet of Things, or IoT, is already a reality. You are probably using one (or more) IoT device right now, or at least, have been benefited by one. And this market tends only to grow.
Generally speaking, the internet of things is a network of physical objects that enables these objects to create and exchange data.
In a culture based on productivity, most of the time, practice is left aside. It is sometimes considered a waste of time, especially for those with more years of experience.
I’m not talking about just playing or doing something. I’m talking about deliberately practicing an activity. About the fundamentals. The basics of your profession.
For high-performing athletes, this is taken seriously. They understand the importance of practicing the most basic fundamentals of their sports — especially those ones who are on the top.
Steph Curry, the best shooter in NBA history, practice up to 500 shots a day. Muhammad Ali…
As stated in the language specification:
Struct is a sequence of named elements, called fields, each of which has a name and a type.
A struct is used when you want to define a schema for your data, made of different properties (fields).
A field can be identified:
Personstruct above, all the fields are declared in the same struct.
Userstruct, it embeds the fields from the
Personstruct. It is…
But it can have some performance issues when we are talking about more intensive use, like 3D games, computer vision, and image editing.
WebAssembly is meant to solve this problem.
As put by the official website:
WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.
But what does it mean?
You see a job with a perfect description. You fulfill all the requirements and the company and its location are great. It is like this job was made with you in mind. A perfect match.
You review your CV, create a perfect cover letter, and apply for it. A few days later, you receive an email with a reply. They liked your application and inform you that you have been approved for the next round: a live code interview with the manager.
You panic again. The last one you did was not good. You forgot everything. A huge blank. But…
If you see the image bellow, can you guess what are the card dimensions? Since you may have never seen such an object before, you will probably have difficulties guessing their dimensions. It could be as small as one millimeter or as large as 1 meter.
Recently, I had to program a small routine that would send email messages to a group of contacts as soon as a condition occurred.
Using Go you can easily achieve this.
Note: this tutorial was done using Go version 1.15.8.
If you don’t want to install any third party package, Go offers you the
net/stmp package out of the box.
All you need are two functions:
PlainAuth: it provides the plain authentication mechanism using
SendMail: the function that actually sends the mail. …
The Hypertext Transfer Protocol (or HTTP) is one the most used protocols on the internet today. It allows a client to fetch a resource, such as HTML pages and images. This article you are reading now was transmitted via HTTP (actually, its secured form, HTTPS).
The client (usually a browser) requests a resource (an image, a CSS file, etc) to the server, and the server responds with the requested data. It is a strictly unidirectional protocol. A server will only send data when requested by a client.
If you has worked with IoT before, the chances are that you have heard or even worked with MQTT. When we are talking about exchanging messages between remote devices, it is one of the first protocols that comes to mind.
The protocol was invented in 1999 by Andy Stanford-Clark and Arlen Nipper to connect oil pipelines via satellite. Since the bandwidth of remote networks might not be that good (specially those times), a lightweight, minimal overhead protocol was needed.
According to MQTT specification:
MQTT is a Client Server publish/subscribe messaging transport protocol. It is light weight, open, simple, and designed…