Showing posts with label tech. Show all posts
Showing posts with label tech. Show all posts

Sunday, December 27, 2020

Nos Primórdios

Já houve um tempo que a Internet comercial era tão pequena que "cabia na palma da mão". A listagem dos sites cabia nas folhas de um jornal. Na ocasião, fui listado duas vezes: na página que eu tinha no curso de Engenharia (IC/Unicamp) e no estagio (Ecoforce).


Ref: https://www1.folha.uol.com.br/fsp/1996/5/22/caderno_especial/12.html

Friday, June 28, 2019

Borrowing E-Books in LA

I recently bought something at Amazon and instead of home delivery I selected to pick it up in the physical store at Marina Del Rey, CA. As Amazon expected, after the pick up I found myself browsing books and other unnecessary items.  Then, a book highlighted in the shelf, it was about the famous cDc hacking group from the 80s.

Using my phone, I entered its name at LA Public Library app and put a hold to its Digital (Kindle) version. Two weeks later, got an email saying it was available for my checkout.

Borrowing a book at Los Angeles Public Library

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

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: