Posts by Felipe Moreno Borges • 299 points
13 posts
-
0
votes0
answers61
viewsQ: Remove all strings before keys via javascript
I have a css file and I would like to generate a JSON, for this, the first step I found would be to remove the entire selector before the brackets .meuSeletor { propriedade: valor; } for {…
-
3
votes2
answers51
viewsQ: Why doesn’t Event exist inside the lower block?
I’m having trouble accessing the event.target within the function setTimeout in the code below. const botao = document.querySelector('button'); botao.addEventListener('click', () => {…
-
0
votes1
answer24
viewsQ: Why this Reference Error
The method _validaFunção is in the same context as the create method, so why create returns a Uncaught ReferenceError: validaFuncao is not defined? class ProxyFactory { static _validaFuncao(funcao)…
-
1
votes2
answers18166
viewsQ: Uninstall Mysql from Ubuntu
I’m trying to give up Ubuntu’s Mysql with the command sudo apt-get remove mysql-server --purge But every time it returns me an error saying that Mysql is already updated, I already tried to use the…
-
5
votes1
answer4890
viewsQ: Is there any way to remove CSS and JS codes not used by the application?
I wonder if there are any transpilator analysing the classes and ids used in an HTML page and removes all classes and ids not used in CSS and Javascript. This would be interesting to further…
-
0
votes1
answer49
viewsQ: Data manipulation in the programming or database
Assuming I need to handle a given example I get weight and height from a user. I want to calculate her BMI to enter into the database. This BMI calculation must be done in a function in the code, or…
-
2
votes3
answers120
viewsQ: Convert String to Date and remove 1 day from String
I got this string: $data_final = "26/11/2017"; And I need this variable to look like 25/11/2017. That is, I need to convert string to date and remove 1 day from that date.…
-
2
votes1
answer376
viewsQ: Add character in a <input>
The person types her height (which always has three digits). I want you to autocomplete, example:- The person type-200 And the software convert to- 2.00
-
1
votes2
answers69
viewsQ: List all data from a survey
How to list all the data of this query, I can only show the first line but I want to query all and show them. public function gerarCardapio(){ try{ $cat = "M"; $sql = "SELECT * FROM alimentos WHERE…
-
0
votes1
answer52
viewsQ: I do not receive SELECT FROM data
I’m making a simple login system but I never get a real line where $sql = "SELECT * FROM $this->table WHERE 'email' = :email AND 'senha' = :senha"; But the email and password are correct, PHP…
-
0
votes1
answer2017
viewsQ: How to break line automatically into a texo component?
I would like when it reaches the maximum number of letters/words on that line, to break automatically. When I put a pizza works smoothly: But when I put more than one pizza the text gets bigger than…
-
2
votes1
answer741
viewsQ: How to leave only one edge on Jtextfield?
I wonder how to leave only one edge on one JTextField, similar to data entry when logging into Gmail, that is, with a border at the bottom.
-
0
votes1
answer8422
viewsQ: How to insert data into a Mysql B.D with PHP
This is the form to enter data <html> <head> <title></title> <meta charset="utf-8"> <link rel="stylesheet" href="style.css"> </head> <body> <form…