Arquivo da categoria: Geral

javascript: alterar texto de div em tempo real enquanto escreve em formulário

código html:

<input id=”fname” onkeyup=”getVal()” type=”text” name=”filter_name” value=””>

código javascript:

function getVal() {
var x = document.getElementById(“fname”);
document.getElementById(“icard”).innerHTML = x.value;
}

 

fontes:
https://stackoverflow.com/questions/19812656/get-text-from-input-and-print-it-in-a-div-in-real-time-html
http://jsfiddle.net/CEv22/372/

Anúncios

RESOLVENDO PROBLEMAS DE CONEXÃO A INTERNET DO UBUNTU

Problema: pinga mas não navega

comando:

sudo nano /etc/resolv.conf

 

Insira este conteúdo abaixo no arquivo:

# Gerado pelo NetworkManager
nameserver 8.8.8.8
nameserver 4.2.2.2

 

 

Fonte: http://sejalivre.org/resolvendo-problemas-de-conexao-a-internet-do-ubuntu-12-04-xubuntukubuntulubuntu/

Free Call-to-Action Button Generator (CSS and PNG)

http://buttonoptimizer.com/

html para imagem

https://wkhtmltopdf.org/
https://wkhtmltopdf.org/downloads.html

http://phantomjs.org/screen-capture.html

http://html2canvas.hertzen.com/

 

 

Digital Ocean – dicas

https://cloud.digitalocean.com/

# passwd root

# useradd -m usuario

https://www.liquidweb.com/kb/how-to-add-a-user-and-grant-root-privileges-on-ubuntu-14-04/

https://www.vivaolinux.com.br/artigo/Conexoes-SSH-sem-senha-facil-e-descomplicado

https://askubuntu.com/questions/133318/how-do-i-change-the-language-via-a-terminal
https://makandracards.com/zeroglosa/31619-instalar-por-terminal-o-pacote-de-idiomas-portugues-do-ubuntu

$ sudo apt-get update

 

https://www.digitalocean.com/community/tutorials/como-configurar-apache-virtual-hosts-no-ubuntu-14-04-lts-pt
https://www.digitalocean.com/community/tutorials/how-to-install-the-latest-mysql-on-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/como-instalar-e-proteger-o-phpmyadmin-no-ubuntu-16-04-pt#passo-um-%E2%80%94-instalar-o-phpmyadmin

$ mysql -u root -p
mysql> ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘SUASENHA’;

https://stackoverflow.com/questions/48001569/phpmyadmin-count-parameter-must-be-an-array-or-an-object-that-implements-co/50536059
Edit file ‘/usr/share/phpmyadmin/libraries/sql.lib.php’ Replace: (count($analyzed_sql_results[‘select_expr’] == 1) With: (count($analyzed_sql_results[‘select_expr’]) == 1

https://www.digitalocean.com/community/tutorials/como-instalar-e-configurar-o-vnc-no-ubuntu-16-04-pt

https://www.digitalocean.com/community/questions/problema-dominio-registro-br-e-do

https://www.digitalocean.com/community/questions/slow-to-connect-to-droplet-through-ssh-or-ftp

https://www.vultr.com/docs/how-to-install-phantomjs-on-ubuntu-16-04

$ sudo apt-get install python
http://mariehogebrandt.se/articles/installing-phantomjs-and-casperjs-on-ubuntu/
corrija o “~/bin/casperjs” para “/bin/casperjs” nos comandos

https://ntp.br/guia-linux-comum.php
https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-16-04
https://www.vivaolinux.com.br/artigo/Modificando-o-TimeZone-2-metodos

https://github.com/eea/odfpy

https://www.vivaolinux.com.br/dica/Configurando-a-rede-no-Linux-via-linha-de-comando
#Bloqueia
chattr +i /etc/resolv.conf
#Desbloqueia
chattr -i /etc/resolv.conf

https://linuxconfig.org/configuring-gmail-as-sendmail-email-relay
https://www.akadia.com/services/sendmail_relay.html

https://likegeeks.com/linux-mail-server/

Recuperar fotos de cartão SD

$ sudo apt install testdisk
$ sudo photorec

Alterando botões das janelas – Ubuntu MATE

$ dconf-editor

opção:

org > mate > marco > general

button-layout

Seleção_044