Friday, May 6, 2016

AWS Freebie

Amazon Web Services (AWS) allows you to have really tiny VM for free during one year. It is limited in CPU, RAM and Storage, but that's enough resource and time for you to get along with all terminology and procedures. That's a huge advantage compared to other Cloud services from big players like Google Cloud Platform and Microsoft Azure.

Since this is "free", you won't be able to have your own static public IP. But if you have your own domain, you can setup a free account from Dynamic DNS service (ddns.net) and create a record that will address the public IP change. So you will always be able to be addressed by your own domain, AWS instance (VM) will update Dynamic DNS.

I decided to host my professional website at AWS under my domain edsilva.us. Here are steps in a nutshell. Please advise I have two domains (edsilva.us and havai.us) at AWS, so you will see CNAME set on both domains:

  1. Create hostname at DDNS for AWS instance (I called id "havai-us.ddns.net")
  2. Configure RPM package "noip" to authenticate your AWS instance (vi /etc/no-ip2.conf)
  3. Create DNS CNAME on your domain to pointing to DDNS hostname

Finally, had apache virtual host configured to understand which Document Root should be shown when someone is coming for edsilva.us (whenever is possible I avoid "www").

[root@aloha letsencrypt]# nslookup -q=any www.edsilva.us
Server: 172.31.0.2
Address: 172.31.0.2#53

Non-authoritative answer:
www.edsilva.us canonical name = aloha.havai.us.

I created CNAME DNS record to point "www.edsilva.us" to "aloha.havai.us" and "aloha.havai.us" to "havai-us.ddns.net":

[root@aloha letsencrypt]# nslookup -q=any www.edsilva.us
Server: 172.31.0.2
Address: 172.31.0.2#53

Non-authoritative answer:
www.edsilva.us canonical name = aloha.havai.us.

[root@aloha letsencrypt]# nslookup -q=any aloha.havai.us
Server: 172.31.0.2
Address: 172.31.0.2#53

Non-authoritative answer:
aloha.havai.us canonical name = havai-us.ddns.net.


Here is some info about noip package (RPM):

Vendor      : Fedora Project
URL         : http://www.no-ip.com
Summary     : A dynamic DNS update client
Description :
Keep your current IP address in sync with your No-IP host or domain with
this Dynamic Update Client (DUC). The client continually checks for IP
address changes in the background and automatically updates the DNS at
No-IP whenever it changes.

Saturday, November 7, 2015

Wednesday, January 14, 2015

We Are All Missing Sagan


“National boundaries are not evident when we view the Earth from space. Fanatical ethnic or religious or national chauvinisms are a little difficult to maintain when we see our planet as a fragile blue crescent fading to become an inconspicuous point of light against the bastion and citadel of the stars.”

Carl Sagan, Cosmos

Friday, November 28, 2014

Conveniências do Mundo Digital: Biblioteca Pública

Um dos pontos altos do mundo digital é ter a opção de pegar um livro da Biblioteca Pública de onde você estiver. No caso era um livro com fila de espera. No momento que a última pessoa devolveu, fui notificado pela Biblioteca. Tenho alguns dias para retirá-lo e uma vez baixado, 3 semanas para retornar. No exemplo abaixo o empréstimo foi feito pelo telefone e e livro baixado no próprio aparelho, mas poderia ter escolhido qualquer outro. O formato escolhido (Kindle) me levou à conta na Amazon onde o gerenciamento do conteúdo é realizado. À primeira vista parece complicado mas o processo inteiro do início ao fim leva um minuto.

Primeira parte: Notificação por email da disponibilidade do livro:




link leva à biblioteca virtual:




Onde seleciono o formato (no caso, Kindle):




A seleção do formato leva à conta na Amazon:




Onde seleciono o dispositivo. A Amazon aproveita para fazer o comercial de outros livros ou mesmo outros produtos. Via de regra se baseia em livros procurados por quem lê este título/tópico assim como buscas anteriores.




No caso, telefone:




Onde o livro finalmente aparece:




Emprestado por 3 semanas.

Wednesday, April 9, 2014

OpenSSL HeartBleed

Por algum motivo o bug no OpenSSL 1.0.1 me lembrou o filme "Enemy of State". Quando perseguidos pela NSA, ao ver o predio em chamas Will Smith pergunta pro Gene Hackman "O que voce fez?". Hackman responde "eu explodi o predio". "Por que???". Hackman finaliza na maior naturalidade "Por que voce usou o telefone!!!".

Ok, ok, pode parecer non-sense, mas veja o filme. Reveja se for o caso. Da maneira como se lê na tirinha parece que explodir os web servers seria a única saida. E, como descreve xkcd, voltarmos ao lápis e papel.


Referências:

Wednesday, January 1, 2014

Pictures

Everybody asks about pictures from Hawai'i. Beginning 2014, we've been adding one per day. Here it goes: www.Havai.us.

Todo mundo pergunta por fotos do Havaí. A partir do começo de 2014 nós passamos a publicar uma por dia. Aqui estão elas: www.Havai.us.



www.Havai.us

Sunday, August 4, 2013

"What do I desire?" by Alan Watts

Alan Wilson Watts (6 January 1915 – 16 November 1973) was a British-born philosopher, writer, and speaker, best known as an interpreter and populariser of Eastern philosophy for a Western audience. Born in Chislehurst, he moved to the United States in 1938 and began Zen training in New York. (Ref: http://en.wikipedia.org/wiki/Alan_Watts)

"What if Monday Was No Object?"
http://zenpencils.com/comic/98-alan-watts-what-if-money-was-no-object/