Posts by NoobSaibot • 9,554 points
354 posts
-
0
votes1
answer54
viewsA: How to manipulate an HTML element created by Template literals?
Your problem is in the order of execution, you must perform the search for the elements, after they are created in the GIFT, put that line: const $categorie =…
templateanswered NoobSaibot 9,554 -
1
votes1
answer163
viewsA: How to clean this Deleted from git
Any changes you make, add new file, remove, edit.. git add -A Then does the Commit $ git commit -m "Arquivo removido testeGit.java" See the State $ git status On branch master nothing to commit,…
gitanswered NoobSaibot 9,554 -
4
votes2
answers4032
viewsA: Remove specific Python characters
Can use Regular Expressions Maybe there’s an even better way to do it, someone with more experience on the subject. I’ll show you two options, the first one leaves only letters, numbers and spaces.…
-
1
votes2
answers238
viewsA: More than one return on a method in PHP
Change the condition of: // Modo de usar if ($login->login($username, $password)) To: // Modo de usar if ($login->login($username, $password) === true) See this article: When to use == or ===…
-
0
votes2
answers32
viewsA: Javascript Onclick run multiple times
Just check if the element has the edge if (this.style.border) { this.style.border=""; } else { this.style.border="dashed black 1px"; } Example var elements = document.getElementsByTagName("p"); for…
javascriptanswered NoobSaibot 9,554 -
3
votes1
answer80
viewsA: Dialog cannot be Applied
Obs: The Dialog class is the base class for dialog boxes, but you should avoid instantiating Dialog directly. Instead, use one of the following subclasses: Alertdialog, Datepickerdialog or…
androidanswered NoobSaibot 9,554 -
0
votes3
answers41
viewsA: Jquery does not run correctly
Just do it on your script, do not need all this code to perform the same function. $('.abriracessibilidade, .via-close').on('click', function () { $('.menuacessibilidade').toggleClass('open'); });…
-
5
votes1
answer602
viewsA: My Laravel project does not climb the server
Artisan according to the documentation of Laravel, is the name given to the command line interface included with the Laravel With it you can do various operations related to Laravel. To see the list…
-
0
votes3
answers1281
viewsA: Python dictionary
You can do it like this: dicionario = { 'good morning': 'bom dia', 'good night': 'boa noite', 'Hello': 'Ola', 'good': 'bom', 'day': 'dia', 'this': 'isso', 'will': 'vai', 'translate': 'traduzir',…
pythonanswered NoobSaibot 9,554 -
2
votes1
answer272
viewsA: Colorize field select option Chosen
You’re trying to change the edge of the select whereas the Chosen concealed the select and creates a div in place, then you must change the edge of the div, for this we will create a style required.…
-
1
votes1
answer1098
viewsQ: jQuery does not work on Electron App
I’m creating an app Electron just study, only that I’m finding a problem. I created a page html simple, using the framework Bootstrap 4.0, in it I put only one menu. index.html <nav class="navbar…
-
1
votes2
answers568
viewsA: Ionic with Cordova, Androidmanifest.xml build error
You must be using several versions Sdks of Android. Add this at the end of the file build.gradle configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def…
-
1
votes1
answer831
viewsA: Problem with SDK license when running Cordova project
This error occurs because you did not accept the license terms to use Android SDK To solve just re-install the Android Support Repository or the SDK version that he will ask to accept the terms…
-
3
votes1
answer303
viewsA: How to install ajdamico package?
This error is happening because you need to have installed Rtools to compile Packages R. You can download the installer Rtools 3.4 on the website r-project org.…
ranswered NoobSaibot 9,554 -
3
votes1
answer328
viewsA: Scroll bar showing alone
You can hide the overflow-y as long as it is loading is being displayed when hiding the loading define the overflow-y as auto again. $('#myModal .modal-body').on('scroll', function() {…
-
1
votes1
answer611
viewsA: Ionic and Cordova build error: An error occurred while running Cordova build android --debug (Exit code 1):
Could not find com.android.support:support-v13:26.0.2. Starting with version 26 of the support libraries, check that the repositories section includes the address of the Google repository.…
-
1
votes1
answer394
viewsA: Error code in Switch Case
There are some mistakes to be corrected. First The method main is static method, in order to be able to access some variable or method they must also be static. For this change your methods to be…
-
0
votes1
answer1234
viewsA: Dompdf Illegal error "string offset 'Hex' online 1150 style.cls.php"
According to the documentation of jsPDF the plugin addHTML was discontinued. You can use the plugin fromHTML. There is a small difference between the two, which is the following: addHTML /* * @param…
-
1
votes1
answer1296
viewsA: Configure PHPMAILER 6.0.1
This is the latest version of Phpmailer, launched on 14 September, the documentation is available in English, there are also some examples available in the github, where you will find two examples…
phpmaileranswered NoobSaibot 9,554 -
5
votes2
answers13898
viewsA: Picking up content from an HTML tag with JS
It depends on what kind of tag you want to. value - This property returns the value inserted in form fields, such as inputs and checkboxes, etc... var url =…
-
0
votes2
answers331
viewsA: Print a sum in the view
The Laravel uses the Blade Engine to work with templates. Your problem is that your return is being a objeto, see what it says to documentation on the method select, to print read the documentation…
-
5
votes1
answer68
viewsA: How to split a file line without using Substrings in C#?
How about the method Split ? string s = "morada|nome|telefone|nif"; string[] colunas = s.Split('|'); Console.WriteLine("{0} {1} {2} {3}", colunas[0], colunas[1], colunas[2], colunas[3]); Example…
-
1
votes1
answer912
viewsA: Increase Font size Javascript/HTML/Jquery
Your code is terrible, you can’t understand anything, how you’re using it jQuery we can improve this by creating a template and clone the same every time the add button is clicked, that template…
-
0
votes4
answers846
viewsA: How to find numbers larger than X in a list
Here a solution, there can be easier and smaller lista = [1,2,3,4,5,6,7,8,9,1,23] X = 0 B = 0 # Armazena a quantidade de números maiores que 2 num_elementos_lista = len(lista) while(X <…
pythonanswered NoobSaibot 9,554 -
2
votes1
answer1069
viewsA: Problems passing props to state of the React component
The problem is occurring because you are updating the value after the component is rendered. componentWillMount: is called once only, both client-side and server-side before rendering happens.…
-
2
votes1
answer143
viewsA: Questions with Dynamic Checkbox with required or not
Let’s take steps. First you should check whether the question is mandatory, for that within the while($dados2 = mysqli_fetch_array($rs2)) create an ex variable: $obrigatorio = ""; Below the created…
-
1
votes2
answers463
viewsA: take a JS variable’s value and put it in the input value
Create a text field by specifying the attribute name and id in the example below I put the value of both as data <input type="text" name="data" id="data" value="" /> change the last line of…
-
10
votes1
answer8352
viewsA: How to catch the current date on Android?
Tell you what, import SimpleDateFormat import java.text.SimpleDateFormat; Create a class instance by passing the date format SimpleDateFormat formataData = new SimpleDateFormat("dd-MM-yyyy"); Create…
-
1
votes1
answer149
viewsA: Problems updating data with empty Datetime
To verify a value NULL use to operators IS NULL and IS NOT NULL. Example: UPDATE `fluxo` SET `saida` = '2017-09-21' WHERE `data` = '2017-01-01' AND `saida` is null See working on SQL Fiddle…
-
1
votes1
answer157
viewsA: Filter list jquery datatble in enter event
In fact, the confusion here is about the difference between $(). datatable() you are using and return a jQuery object and the old Datatables API and $(). Datatable() which returns the new instance…
answered NoobSaibot 9,554 -
2
votes2
answers130
viewsA: split an integer number into c++
I don’t program in C++ but for you to recover 23 do the following: int number = 1223; int digit = number % 50; See working on ideone I don’t know if this is the best solution, maybe someone with…
c++answered NoobSaibot 9,554 -
0
votes2
answers1613
viewsA: Place two Arrays inside a foreach
The code is commented to be able to understand. $adultos = array(2, 3, 2); $criancas = array(1, 1, 3); $i = 0; // Altere o valor da variável $i para 0 foreach($adultos as $adultos): // Corrija o…
-
1
votes2
answers247
viewsA: Mysql does not save all characters
The correct is for you to use the method htmlentities, it converts all applicable characters into HTML entities. function post($html){ return htmlentities($html, ENT_QUOTES); } $String =…
-
0
votes1
answer43
viewsA: Does Uncaught Referenceerror help?
Reading the plugin documentation Colorbox note in session Settings ( Settings ) that option close receives type value Texto or HTML, the error is occurring because szClose there is no. You can solve…
-
2
votes1
answer50
viewsA: Problem with function for popular cities according to chosen state, change() function
You should change the line of your javascript: $("#cidadePaciente").append(res); To: $("#cidadePaciente").html(res); You should also make the following change in your PHP, create an ex variable:…
javascriptanswered NoobSaibot 9,554 -
0
votes2
answers999
viewsA: Locate id within json array[]
Based on the answer to a question put to the Soen The best solution is to use the method grep of jQuery. var participante = $.grep( obj, function( n, i ) { return n.player.accountId===accountId; });…
-
1
votes1
answer166
viewsA: Create Mysql database at runtime
On the basis of the answers How to check if a table exists in Mysql and another in Soen. // abre a conexão com o banco de dados Connection conexao = DriverManager.getConnection(URL, USUÁRIO, SENHA);…
-
0
votes2
answers99
viewsA: with using D3.js offline
What you should do is download the files, and extract in the directory of your project, example: Projeto - js ( Diretório que contém seus arquivos Javascript ) -- d3 ( Diretório contendo os arquivos…
-
1
votes2
answers161
viewsA: I can’t work with Uri(routes) using virtual hosts
The problem is in the .htaccess of the directory Projeto the line IndexIgnore * disables directory listing. Update As informed by comments. Edit the .htaccess of the directory public_html and leave…
-
1
votes1
answer480
viewsA: Onchange from select does not click in jquery?
Your script is working properly. What is happening, is that you are trying to define an event on elements that do not exist yet. Place: var selects = $("#table select"); var index = null; var valor…
jqueryanswered NoobSaibot 9,554 -
2
votes4
answers130
viewsA: how can I put a condition in if so that it doesn’t happen if the array has "..." at the end of the sentence
You can use the function replace PHP, for this just inform a negative number. Checks the size of the variable string and checks whether the last three characters of the variable string are not the…
-
1
votes2
answers3646
viewsA: Error "[Violation] Added non-passive Event Listener to a scroll-blocking 'mousewheel' Event"
There are several errors in your codes. First you’re trying to access the select by a type selector class and the same was not assigned in select, there are two ways to solve this problem since you…
javascriptanswered NoobSaibot 9,554 -
0
votes1
answer1443
viewsA: Flask connection between two machines
Documented on the Flask website under "Externally Visible Server" on the page Quickstart ( in English ). Externally Visible Server If you run the server, you will notice that the server is only…
-
1
votes2
answers51
viewsA: How to inform data in a vector
You created a vetor of 10 positions, then you must indicate in which position you wish to write a value. Example String[] Carros = new String[3]; Carros[2] = "Gol"; // A última posição vai conter o…
-
0
votes2
answers81
viewsA: How to limit the Slider widget Handler for jQuery UI?
Set the left margin of the handle as -1px, then make a check of the current value of the slide if it is greater than x value it changes the left margin to -101px if smaller, it changes again to…
-
1
votes2
answers308
viewsA: How to duplicate select without previous option
Do it this way. Source: jquery remove/add select options after Cloning select list (soEN) $(document).ready(function(e) { $('#addComp').on('click', function(){ // Guarda primeiro item na variável…
-
0
votes2
answers559
viewsA: Algorithm that reads three numbers and displays the result of the sum of the first two and multiplied by the third
I would only have to check the steps taken by while, received the first number, incremented the variable i, and contains the value 1 it is because already received the first and the second number,…
-
1
votes2
answers298
viewsA: Problem creating a dynamic add and remove field
Here’s one of the possible ways to add dynamic fields using jQuery Example $(document).ready(function(){ // Vamos usar um número de índice exclusivo para cada nova instância do formulário clonado…
-
2
votes1
answer45
viewsA: refresh
The function / method setTimeout shall be used as follows:: setTimeout(função, tempo); It will not work if used in these ways: // Não funciona setTimeout("atualizaPagina()", 1000); // Também não…
phpanswered NoobSaibot 9,554 -
0
votes1
answer90
viewsA: Error: cribsFactory.getCribs is not a Function
Angular factory have to return an object. Then create an object within your factory, example: var factory = {}; You can add methods to your object, example: factory.alertOla = function() {…