Posts by Rômulo Gabriel Rodrigues • 765 points
27 posts
-
7
votes1
answer37
viewsA: Attribute with 2 words does not take CSS
Use quotes to delimit the attribute value in the CSS just like you did in HTML: input[type="text 2"] { width: 100px; -webkit-transition: width .35s ease-in-out; transition: width .35s ease-in-out; }…
-
0
votes1
answer641
viewsA: Restricted pages according to user permission - vuejs / Standard
You can use the beforeEach Router or equivalent if using another router to validate all protected routes, as per documentation, to validate the token and permissions in the backend and receive a…
vue.jsanswered Rômulo Gabriel Rodrigues 765 -
1
votes1
answer61
viewsA: How can I manage Javascript bilbiotecas in my PHP project?
Composer is a PHP package manager, you do not can must install Javascript libraries for it, you would have to use another specific package manager for Javascript like NPM, Yarn, Bower or webpack,…
-
0
votes3
answers248
viewsA: How do you make the edges of a div transparent?
You can use box-shadow to apply this effect: Okay, can’t do with box-shadow that shadow effect on the sides you want. But you can use gradients in CSS, they’re kind of complex and each browser has a…
-
1
votes1
answer46
viewsA: Open a tab, passing data brought from the firebase result
I believe you are using the callback approach to receive the data, but when using Firebase we sometimes use events to process this information. When using: firebase.auth() .signInWithPopup(provider)…
-
1
votes2
answers176
viewsA: Repeat selected data in a select in a text input
Using jQuery you can assign a method to the event change in select so that when the user changes the selected option the method updates the value of input text just below. <form action="#">…
-
1
votes3
answers631
viewsA: Limit values for input text
In this case it is recommended to change the fields to "date" type and it is necessary to use javascript to validate the data and alert in case of error, preventing the deadline date is less than…
-
0
votes1
answer75
viewsA: How does the dropdownlist work?
According to the framework’s own documentation you can generate the dropdownlist with the static method of the same name as Chtml <?php echo CHtml::dropDownList('listname', $select, array('M'…
-
2
votes4
answers2005
viewsA: Line break error in <textarea>
I used the following code in HTML+PHP to test: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <?php if…
-
1
votes2
answers17620
viewsA: How to remove semicolon character with excel
Change the cell formatting to remove the thousand separator and reduce the number of decimal places to zero.…
excelanswered Rômulo Gabriel Rodrigues 765 -
2
votes2
answers44
viewsA: Functions in Javascript
You seem to be having a problem understanding scope and function arguments. document.addEventListener("scroll", function() { mudaNav(window.pageYOffset); }); function mudaNav(posY) { // precisa…
javascriptanswered Rômulo Gabriel Rodrigues 765 -
1
votes1
answer288
viewsA: Start and Take down bank in flask test
According to Flask’s own documentation there is the class tempfile which can be used for this as a database instance in the test class. import os import flaskr import unittest import tempfile class…
-
0
votes1
answer53
viewsA: How can I pass this code snippet to localstorage?
You should notice code in javascript is asynchronous and that mainly the type of geolocation request you are making from the user’s location uses a callback, therefore function(position) {…
-
0
votes3
answers1516
viewsA: Angular installation 2
As the documentation explains you should use the command npm install -g @angular/cli To get access to the command line tool that creates and manages projects at an angle. The reason it doesn’t work…
angularanswered Rômulo Gabriel Rodrigues 765 -
1
votes1
answer236
viewsA: Read files synchronously in Cordova
Due to the nature of Cordova, a framework that works by mediating the communication of your code with the device in native language, you will hardly have this possibility, because Cordova itself…
-
2
votes4
answers2467
viewsA: Algorithm for calculating verifier digit
whereas S = (6xA) + (5xB) + (4xC) + (3xD) + (2xE) DIGV = resto da divisão S por 7 Would be equivalent to S = (6 * A) + (5 * B) + (4 * C) + (3 * D) + (2 * E) DIGV = S % 7; We can already implement in…
algorithmanswered Rômulo Gabriel Rodrigues 765 -
4
votes1
answer80
viewsA: How to use a single jQuery function without importing the entire library?
The function jQuery.getJson() is a alias for an AJAX HTTP GET call, that is, you are only using the method ajax() from the library, so you are only using one asynchronous call and receiving a JSON…
-
5
votes1
answer1936
viewsA: Encryption in the sqlite
You can use Sqlcipher for Android https://www.zetetic.net/sqlcipher/sqlcipher-for-android/ Sqlcipher uses 256-bit AES encryption to encrypt the database with 1kb pages. The library has methods…
-
0
votes1
answer235
viewsA: I cannot clone via netbeans on github
You are trying to use another user’s repository. This Netbeans configuration is to use a repository that you have read and write authorization for and not to clone a repository. You can go to this…
-
0
votes1
answer46
viewsA: How to add many customers at once in a database table?
Exporting to CSV you can use Heidisql to import as in this answered question (in English) https://stackoverflow.com/questions/3635166/how-to-import-csv-file-to-mysql-table or use the Mysql LOAD DATA…
-
1
votes2
answers1793
viewsA: Only get the first name, after space using Java
Using regular expressions you can take the first name with regex ^([a-zA-ZÈ-Úè-ú]+)\s we can only take the first name: import java.util.regex.Matcher; import java.util.regex.Pattern; public class…
-
1
votes3
answers752
viewsA: How to format Date field in Ionic Form / Angularjs
The angular stores dates as Javascript Date objects which is a Unix timestamp (https://docs.angularjs.org/api/ng/input/input%5Bdate%5D) and, since you want to process it in PHP, you can use the…
-
5
votes2
answers726
viewsA: Code within parentheses
Usually in Javascript this is done to contain the scope. For example, I write a plugin that has many functions with several names, but I want to expose only a few for use, so I contain the code…
-
1
votes4
answers4228
viewsA: How to perform query with some null values?
The most direct and obvious way I could think of to your problem was by using a IF. If data_emissao is not void and data_emissao is less than the date provided or data_emissao is void. SELECT * FROM…
-
7
votes2
answers1047
viewsA: Difference of ' ' and ` `
The strings defined with backticks/crases (`) allow interpolation (embed expressions in the middle of the string without having to close its delimitation and concatenate it with another string),…
-
2
votes5
answers675
viewsA: Why does Netbeans warn you not to access global variables directly?
There is a recommendation not to use the global variable $_SERVER due to the risk of cross-site scripting that someone can execute scripts on your server or, in other words, inject code. As…
-
0
votes2
answers164
viewsA: Quivalent method to array_diff() in JAVA
Arrays does not have a method that performs the diff among arrays. To do this we can do the following: String[] s1 = {"ram", "raju", "seetha"}; String[] s2 = {"ram"}; List<String> s1List = new…