Arquivo da categoria: web

ERRO Phpmyadmin – Warning in ./libraries/plugin_interface.lib.php – count(): Parameter must be an array or an object that implements Countable

estava com este problema no phpmyadmin:

Warning in ./libraries/plugin_interface.lib.php#551
count(): Parameter must be an array or an object that implements Countable

porém a solução deste site resolveu meu problema:
http://agoracomlinux.blogspot.com/2019/01/resolvendo-problemas-pos-instalacao-do.html

Warning in ./libraries/plugin_interface.lib.php#551
 count(): Parameter must be an array or an object that implements Countable

$ sudo nano /usr/share/phpmyadmin/libraries/plugin_interface.lib.php

onde aparecerá isso

troque isso

if ($options != null && count($options) > 0) {

por isso

if ($options != null && count((array)$options) > 0) {

 

PROBLEMA COM PHPMYADMIN AND PHP 7.2: “WARNING IN ./LIBRARIES/SQL.LIB.PHP#613 COUNT(): PARAMETER MUST BE AN ARRAY OR AN OBJECT THAT IMPLEMENTS COUNTABLE”

 Faça uma cópia de segurança primeiro

sudo cp /usr/share/phpmyadmin/libraries/sql.lib.php /usr/share/phpmyadmin/libraries/sql.lib.php.bak

Edite o sql.lib.php no Deepin Editor

sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php

Pressione CTRL+W e procure por

(count($analyzed_sql_results[‘select_expr’] == 1)

troque por

((count($analyzed_sql_results['select_expr']) == 1)

 

Anúncios

adicionar/remover solicitação de edição de google forms

para adicionar coloque “?edit_requested=true” ao fim do endereço do link

para remover, remova o “?edit_requested=true” do link

sugestão picker color

http://jscolor.com/examples/

php: converter hex para rgb

fonte: https://stackoverflow.com/questions/15202079/convert-hex-color-to-rgb-values-in-php

 

If you want to convert hex to rgb you can use sscanf:

<?php
$hex = "#ff9900";
list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x");
echo "$hex -> $r $g $b";
?>

Output:

#ff9900 -> 255 153 0

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/

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

http://buttonoptimizer.com/

Dica: Google Web Designer

https://www.edivaldobrito.com.br/como-instalar-o-google-web-designer-no-linux/

https://www.google.com/webdesigner/