Julio Biason
4 years ago
49 changed files with 635 additions and 6 deletions
@ -0,0 +1,63 @@
|
||||
+++ |
||||
title = "Commented Links for 2020-07-03" |
||||
date = 2020-07-03 |
||||
|
||||
[taxonomies] |
||||
tags = ["links", "rust", "async", "tide", "github", "web apis", "fira", |
||||
"fonts", "runbook", "zig"] |
||||
+++ |
||||
|
||||
Rust Async and Tide, Github Redesign, Apple Declining Web APIs, Fira Font, |
||||
Runbooks, Zig Async. |
||||
|
||||
<!-- more --> |
||||
|
||||
## [Image decay as a service](https://fasterthanli.me/articles/image-decay-as-a-service) |
||||
|
||||
Although it mentions "Image", this post is actually a very good (as Amos' |
||||
posts usually are) explaining async Rust and Tide from the very beginning. |
||||
|
||||
## [Redesigning Github repository page](https://tonsky.me/blog/github-redesign/) |
||||
|
||||
Github presented a new layout recently, but some things are not... quite in |
||||
place. |
||||
|
||||
Here, Nikita explores the interface step by step, checking every element and |
||||
how to make them work. |
||||
|
||||
## [Apple declined to implement 16 Web APIs in Safari due to privacy concerns](https://www.zdnet.com/article/apple-declined-to-implement-16-web-apis-in-safari-due-to-privacy-concerns/) |
||||
|
||||
You have one chance to figure out who proposed most of those 16 APIs. |
||||
|
||||
Also, not to just pick on anyone or defend Apple, but some of those are |
||||
completely absurd for a web thing -- unless you want the web to become a whole |
||||
operating system, something that would make a lot more sense in, I don't know, |
||||
a native application running on a real operating system, maybe? |
||||
|
||||
## [Fira](https://mozilla.github.io/Fira/) |
||||
|
||||
Mozilla took the task of keeping Fira -- and Fira Code -- fonts. |
||||
|
||||
The only issue I found: No ligatures on the mono version. There is an issue |
||||
open since 2016 but the ligatures are not there (at least, the common ones, |
||||
like "==", "->" and "=>", that make those appear as a single character). |
||||
|
||||
Sadly, for now, I'm sticking with |
||||
[Cascadia](https://github.com/microsoft/cascadia-code/releases). |
||||
|
||||
## [The Runbooks Project](https://containersolutions.github.io/runbooks/) |
||||
|
||||
I'm a huge fan of Runbooks. Why? Because, some day, you'll be on call and |
||||
things will go wrong and you'll have no idea what to do, but there it is, a |
||||
list of things that can go wrong and how to fix them. |
||||
|
||||
And here are some generic runbooks to take care of common things when they go |
||||
wrong. |
||||
|
||||
## [What is Zig's “Colorblind” Async/Await?](https://kristoff.it/blog/zig-colorblind-async-await/) |
||||
|
||||
Async/await is in all rage these days, and Zig is a small language that takes |
||||
a lot of C, but tries to fix some of its issues. |
||||
|
||||
And here is an introduction directly of async/await in Zig, so you can get a |
||||
good "feel" of the language. |
@ -0,0 +1,68 @@
|
||||
+++ |
||||
title = "Links Comentados de 2020-07-03" |
||||
date = 2020-07-03 |
||||
|
||||
[taxonomies] |
||||
tags = ["links"] |
||||
+++ |
||||
|
||||
Async Rust e Tide, Redesign do Github, Apple Se Recusando a Implementar Web |
||||
APIs, Fonte Fira, Runbooks, Async Zig. |
||||
|
||||
<!-- more --> |
||||
|
||||
## [Image decay as a service](https://fasterthanli.me/articles/image-decay-as-a-service) |
||||
|
||||
Embora mencione "Imagem", esse post é bem completo (como os posts do Amos |
||||
normalmente são), explicando Rust assíncrono e Tide desde o começo. |
||||
|
||||
## [Redesigning Github repository page](https://tonsky.me/blog/github-redesign/) |
||||
|
||||
Github apresentou um novo layout recentemente, mas algumas coisas não estão... |
||||
bem no lugar. |
||||
|
||||
Aqui, Nikita explora a interface passo a passo, verificando cada elemento e |
||||
como fazer como que eles funcionem. |
||||
|
||||
## [Apple declined to implement 16 Web APIs in Safari due to privacy concerns](https://www.zdnet.com/article/apple-declined-to-implement-16-web-apis-in-safari-due-to-privacy-concerns/) |
||||
|
||||
Lhes dou uma chance para descobrir quem foi que propôs essas 16 APIs. |
||||
|
||||
Não pegando no pé da Apple ou querendo botar a culpa em alguém, mas algumas |
||||
dessas APIs parecem ser completamente absurdas para uma coisa da web -- a não |
||||
ser que você queria que a web se torne um sistema operacional inteiro, algo |
||||
que faria mais sentido em, sei lá, numa aplicação nativa rodando num sistema |
||||
operacional, talvez? |
||||
|
||||
## [Fira](https://mozilla.github.io/Fira/) |
||||
|
||||
Mozilla se colocou para manter a fonte Fira -- e a Fira Code. |
||||
|
||||
O único problema que eu achei: Não existem ligaduras na versão monoespaçada. |
||||
Existe uma issue aberta desde 2016 mas as ligaduras não existem ainda (pelo |
||||
menos, as mais comums, como "==", "->" e "=>", fazendo com que essas apareçam |
||||
como um único caractere). |
||||
|
||||
Por enquanto, eu vou continuar com |
||||
[Cascadia](https://github.com/microsoft/cascadia-code/releases). |
||||
|
||||
## [The Runbooks Project](https://containersolutions.github.io/runbooks/) |
||||
|
||||
Eu sou um grande fã de Runbooks. Por que? Porque, algum dia, você vai ficar no |
||||
sobreaviso e as coisas vão dar errado e você não vai saber o que fazer mas, lá |
||||
está, uma lista de coisas que podem dar errado e como corrigir. |
||||
|
||||
E aqui temos alguns runbooks genéricos para cuidar de coisas comuns que dão |
||||
errado. |
||||
|
||||
## [What is Zig's “Colorblind” Async/Await?](https://kristoff.it/blog/zig-colorblind-async-await/) |
||||
|
||||
Async/await está na moda atualmente, e Zig é uma pequena linguagem que pegou |
||||
um monte de coisa de C, mas tenta corrigir esses problemas. |
||||
|
||||
E aqui está uma introdução direta ao async/await com Zig, e assim você pode |
||||
pegar uma boa ideia de como é a linguagem. |
||||
|
||||
<!-- |
||||
vim:spelllang=pt: |
||||
--> |
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Alan Kay" |
||||
weight = 97 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "alan kay", "research"] |
||||
+++ |
||||
|
||||
> "The tree of research must from time to time be refreshed with the blood |
||||
> of bean counters." |
||||
|
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Alan Perlis" |
||||
weight = 97 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "alan perlis", "functions"] |
||||
+++ |
||||
|
||||
> "It is better to have 100 functions operate on one data structure than 10 |
||||
> functions on 10 data structures." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Anne Frank" |
||||
weight = 97 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "anne frank", "goodness"] |
||||
+++ |
||||
|
||||
> "In spite of everything, I still believe that people are good at heart." |
@ -0,0 +1,10 @@
|
||||
+++ |
||||
title = "B. L. Whorf" |
||||
weight = 98 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "b l whorf", "languages"] |
||||
+++ |
||||
|
||||
> "Language shapes the way we think, and determines what we can think about." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Benjamin Disraeli" |
||||
weight = 98 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "benjamin disraeli", "criticism"] |
||||
+++ |
||||
|
||||
> "It is much easier to be critical than to be correct." |
@ -0,0 +1,10 @@
|
||||
+++ |
||||
title = "Bullwinkle Moose" |
||||
weight = 98 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "bullwinkle moose", "cartoon", "humility"] |
||||
+++ |
||||
|
||||
> "When it comes to humility, I'm the greatest." |
||||
|
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Carl Jung" |
||||
weight = 99 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "carl jung", "personalities"] |
||||
+++ |
||||
|
||||
> "The meeting of two personalities is like the contact of two |
||||
> chemical substances: if there is any reaction, both are transformed." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Christopher Lascl" |
||||
weight = 99 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "christopher lascl", "success", "appearances"] |
||||
+++ |
||||
|
||||
> "Nothing succeeds like the appearance of success." |
@ -0,0 +1,10 @@
|
||||
+++ |
||||
title = "Dalai Lama" |
||||
weight = 100 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "dalai lama", "help"] |
||||
+++ |
||||
|
||||
> "If you can, help others. If you can't, at least don't hurt others." |
||||
|
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Donald J. Atwood" |
||||
weight = 100 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "donald j atwood", "improvements"] |
||||
+++ |
||||
|
||||
> "To take a significant step forward, you must make a series of finite |
||||
> improvements." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Finlay Peter Dunne" |
||||
weight = 102 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "finlay peter dunne", "trust"] |
||||
+++ |
||||
|
||||
> "Trust everybody, but cut the cards." |
@ -0,0 +1,10 @@
|
||||
+++ |
||||
title = "Frank Herbert" |
||||
weight = 102 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "frank herbert", "knowledge"] |
||||
+++ |
||||
|
||||
> "Thinking you know something is a sure way to blind yourself." |
||||
-- Chapterhouse: Dune |
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Gloria Steinem" |
||||
weight = 103 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "gloria steinem", "women"] |
||||
+++ |
||||
|
||||
> "A woman without a man is like a fish without a bicycle." |
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Henrik Ibsen" |
||||
weight = 104 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "henrik ibsen", "revolution"] |
||||
+++ |
||||
|
||||
> "You should never wear your best trousers when you go out to fight for |
||||
> freedom and liberty." |
||||
|
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Henry Miller" |
||||
weight = 104 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "henry miller", "sex"] |
||||
+++ |
||||
|
||||
> "Sex is one of the nine reasons for reincarnation ... the other eight are |
||||
> unimportant." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "J. B. White" |
||||
weight = 106 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "j b white", "drunkness"] |
||||
+++ |
||||
|
||||
> "... at least I thought I was dancing, 'til somebody stepped on my hand." |
@ -0,0 +1,10 @@
|
||||
+++ |
||||
title = "Jacinda Ardern" |
||||
weight = 106 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "jacinda ardren", "economy", "government", "social"] |
||||
+++ |
||||
|
||||
> "Economic growth accompanied by worsening social outcomes is not success, it |
||||
> is failure" |
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Jim Warner" |
||||
weight = 106 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "jim warner", "screw ups"] |
||||
+++ |
||||
|
||||
> "The Second Law of Thermodynamics: |
||||
> If you think things are in a mess now, just wait!" |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "John Keats" |
||||
weight = 106 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "john keats", "philosophy"] |
||||
+++ |
||||
|
||||
> "Philosophy will clip an angel's wings." |
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "John Stuart Mill" |
||||
weight = 106 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "john stuart mill", "happiness"] |
||||
+++ |
||||
|
||||
> "Ask yourself whether you are happy and you cease to be so." |
@ -0,0 +1,12 @@
|
||||
+++ |
||||
title = "Kushwant Singh" |
||||
weight = 107 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "kushwant singh", "fascism", "hate"] |
||||
+++ |
||||
|
||||
> "Every fascist regime needs communities and groups it can demonise in order |
||||
> to thrive. It starts with one group or two. But it never ends there. A |
||||
> movement built on hate can only sustain itself by continually creating fear |
||||
> and strife". |
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Maharbal" |
||||
weight = 109 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "maharbal", "hannibal", "victories"] |
||||
+++ |
||||
|
||||
> "You know how to win a victory, Hannibal, but not how to use it." |
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Marcus Tulius Cicero" |
||||
weight = 109 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "marcus tulius cicero", "persistence", "opinions"] |
||||
+++ |
||||
|
||||
> "Persistence in one opinion has never been considered a merit in political |
||||
> leaders." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Martin Luther" |
||||
weight = 109 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "martin luther", "religion", "sin"] |
||||
+++ |
||||
|
||||
> "Sin boldly." |
@ -0,0 +1,10 @@
|
||||
+++ |
||||
title = "Nathaniel Howe" |
||||
weight = 110 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "nathaniel howe", "saints"] |
||||
+++ |
||||
|
||||
> "The way of the world is to praise dead saints and prosecute live ones." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Norman Douglas" |
||||
weight = 110 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "norman douglas", "nations", "advertisements", "ads"] |
||||
+++ |
||||
|
||||
> "You can tell the ideals of a nation by its advertisements." |
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Publilius Syrus" |
||||
weight = 112 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "publilius syrus", "silence", "promises", "performance"] |
||||
+++ |
||||
|
||||
> "Let a fool hold his tongue and he will pass for a sage." |
||||
|
||||
> "Never promise more than you can perform." |
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Randall Munroe" |
||||
weight = 114 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "randall munroe", "assumptions"] |
||||
+++ |
||||
|
||||
> "You've got questions. We've got assumptions." |
@ -0,0 +1,10 @@
|
||||
+++ |
||||
title = "Randy Kunkee" |
||||
weight = 114 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "randy kunkee", "minds", "sex"] |
||||
+++ |
||||
|
||||
> "A dirty mind is a joy forever." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Roger Babson" |
||||
weight = 114 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "roger babson", "success", "failure"] |
||||
+++ |
||||
|
||||
> "It is wise to keep in mind that neither success nor failure is ever final." |
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Ron McAfee" |
||||
weight = 114 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "ron mcafee", "theories"] |
||||
+++ |
||||
|
||||
> "Anything is possible on paper." |
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Roy Santoro" |
||||
weight = 114 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "roy santoro", "laws"] |
||||
+++ |
||||
|
||||
> "If A = B and B = C, then A = C, except where void or prohibited by law." |
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Strange de Jim" |
||||
weight = 115 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "strange de jim", "parents"] |
||||
+++ |
||||
|
||||
> "I called my parents the other night, but I forgot about the time difference. |
||||
> They're still living in the fifties." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Thomas J. Kopp" |
||||
weight = 116 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "thomas j kopp", "life", "death"] |
||||
+++ |
||||
|
||||
> "Life sucks, but death doesn't put out at all." |
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Titus Maccius Plautus" |
||||
weight = 116 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "titus maccius plautus", "visits"] |
||||
+++ |
||||
|
||||
> "No guest is so welcome in a friend's house that he will not become a |
||||
> nuisance after three days." |
||||
|
@ -0,0 +1,9 @@
|
||||
+++ |
||||
title = "Voltaire" |
||||
weight = 118 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "voltaire", "illusions"] |
||||
+++ |
||||
|
||||
> "Illusion is the first of all pleasures." |
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Walter Dwight" |
||||
weight = 119 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "walter dwight", "politicians"] |
||||
+++ |
||||
|
||||
> "Politicians speak for their parties, and parties never are, never have |
||||
> been, and never will be wrong." |
||||
|
@ -0,0 +1,11 @@
|
||||
+++ |
||||
title = "Will Rogers" |
||||
weight = 119 |
||||
|
||||
[taxonomies] |
||||
tags = ["quotes", "will rogers", "selfishness"] |
||||
+++ |
||||
|
||||
> "What's the matter with the world? Why, there ain't but one thing wrong |
||||
> with every one of us -- and that's 'selfishness.'" |
||||
|
@ -0,0 +1,18 @@
|
||||
+++ |
||||
title = "Research Notes" |
||||
transparent = true |
||||
+++ |
||||
|
||||
<div class="post"> |
||||
<h1 class="post-title">{{ section.title }}</h1> |
||||
|
||||
<ul> |
||||
{% for term in section.pages %} |
||||
<li class="tag-list"> |
||||
<a href="{{ term.permalink | safe }}"> |
||||
{{ term.title }} |
||||
</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
</div> |
@ -0,0 +1,33 @@
|
||||
+++ |
||||
title = "ElasticSearch" |
||||
|
||||
[taxonomies] |
||||
tags = ["research", "elastic", "elasticsearch", "docker"] |
||||
+++ |
||||
|
||||
## Docker image |
||||
|
||||
``` |
||||
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.8.0 |
||||
``` |
||||
|
||||
## Start |
||||
|
||||
``` |
||||
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.8.0 |
||||
``` |
||||
|
||||
- Port 9200: REST interface. |
||||
- Port 9300: Inter-node communication. |
||||
- `discovery.type`: Just one node, no discovery needed. |
||||
|
||||
## Definitions |
||||
|
||||
- MySQL => Databases => Tables => Columns/Rows |
||||
- Elasticsearch => Indices => Types => Documents with Properties |
||||
|
||||
## Adding information (REST) |
||||
|
||||
``` |
||||
POST /<index>/_doc/ |
||||
``` |
Loading…
Reference in new issue