Posts by Icaro Martins • 4,187 points
141 posts
-
0
votes2
answers48
viewsA: How do I delete a line that contains letters in a dataframe?
To check for letters you can use the pandas.Series.str.contains passing as parameter to search a Regexp like r'[a-zA-Z]' to create a truth table where letters are found. And to check the quantity of…
-
2
votes1
answer130
viewsA: Tag <p> does not break line according to DIV
You’re not breaking lines because your text aaaa... is seen as a single word (she has no spacing). Then via CSS you can indicate that the browser should insert break line in these cases, for this…
-
0
votes1
answer98
viewsA: How do I delete part of a string in a pandas.Dataframe
As the data seems to me a string, Voce can use the method slice df['hora'] = df['coluna'].str.slice(10) # ou usando índices ↓ # df['hora'] = df['coluna'].str[10] df['data'] =…
-
2
votes2
answers209
viewsA: Find values from a List and Replace in another list - Python
Another way to do it is to create a dictionary with the key being the element you replace and the value of that key the new element: A = { # "item na array B":"novo valor", "Leao":"Manga" ,…
pythonanswered Icaro Martins 4,187 -
0
votes2
answers40
viewsA: When I type 1 he doesn’t ask the questions dnv, and I can’t fix it
Within the while no questions while (o != 2){ printf ("\nDigite 1 para CONTINUAR \nDigite 2 para SAIR"); scanf ("%i", &o); } You have to put your 'type the sides of the triangle' within the…
c++answered Icaro Martins 4,187 -
0
votes1
answer690
viewsA: string indices must be integers
I imagine that flight is this JSON presented, so it seems to me that you are doing the for at the wrong level. The x will be the "errorCode" and "result", to confirm you just leave your for thus:…
-
7
votes1
answer236
viewsA: What do you mean, "Empty Dataframe"?
It seems to me that the problem is the query: x = dn.query("Idade == 47" or "Meses > 44") That’s making a or between 2 strings and sending the result to query, that is, if you put this in a print…
-
0
votes1
answer42
viewsA: Exchange the value of a radio button input for the differentiated value typed by the user
You can add an event from onchange in his input#amount_texto and when the event is triggered change the value of input#amount_outro. Something +/- like this example below: /// ; Adicionar evento no…
-
1
votes1
answer243
viewsA: Why does style return null?
How are you creating the div via javascript, this command document.getElementById('load'); It will only work after you add it to your HTML. Ex.: let load = document.createElement('div');…
-
2
votes2
answers575
viewsA: Help with Promisse {<Pending>}
Async functions Always Return a Promise. If the Return value of an async Function is not explicitly a Promise, it will be implicitly Wrapped in a Promise. Taken from MDM web Docs [English]…
-
0
votes1
answer42
viewsA: How to leave a modified structure with :active effect
One way to do this is by controlling via Javascript. For this you can add a click event on the links (tag <a ...>), when this event is triggered add a class in the link that was clicked and…
-
1
votes2
answers35
viewsA: How to find out which of the id’s triggered a javascript function
One possibility is you pass as a function parameter (inside the onclick) the this which is a reserved word that has the code execution context. At that moment (inside the onclick) this is the very…
-
1
votes1
answer82
viewsA: Is there any way to create a gradient effect on a "fa-Circle" from Font Awesome?
Since the circle is a character of font-family: 'Font Awesome 5 Free', one way to do it is by using the background-clip: text. [Note]: See compatibility on caniuse with. #link-instagram .fa-circle {…
-
6
votes1
answer105
viewsA: addEventListeners Javascript
If I understand, you figure out how to implement the event onKeyDown to find out the players' choice of direction. You can do this with just one event, you just recognize whose key is. Let’s go…
javascriptanswered Icaro Martins 4,187 -
1
votes2
answers748
viewsA: Error Type 3 - Activity does exist
When we compare your manifest to one of example of Android, to notice a difference in this line of its manifest: <action android:name="android.intent.category.LAUNCHER" /> <!-- ^ ^ -->…
-
1
votes1
answer514
viewsA: Lost Keystore android
The text below was taken from Help from the Play Console, it seems to me if your case is the second (Apps not subscribed to Google Play App Subscription). on 10/12/2019 Apps subscribed to Google…
-
1
votes2
answers185
viewsA: Javascript function is only triggered after 2nd button click
What is happening is this, you are creating your button with the attribute onclick passing a function: <button type="button" onclick="return removerEstado();">Sim</button> In his job…
-
7
votes8
answers3758
viewsA: Exercise taking the position of the array
Hello @Raphael, it seems to me that your exercise aims to make you understand two things. That the indexes have their beginning in 0. Identify/Work with the size of a Array. Array.length I see the…
-
1
votes1
answer188
viewsA: GET error in image URL 403 (FORBIDDEN) when trying to change img tag src
There are some problems with your code. Read the comments below: var url = document.getElementById("newImage").value; /// ; Esta linha esta correta, você esta procurando o elemento pelo id…
-
3
votes2
answers249
viewsA: Date in Javascript with October 31st
The problem and how you are initiating the Date note: var data = new Date('2019','10','01'); console.log( "new Date('2019','10','01')", 'NOVEMBRO', data.toLocaleDateString(), 'getMonth:',…
-
2
votes2
answers337
viewsA: How to force HTTP redirect to HTTPS on NGINX
In his server{ listen: 80; ... (http) you can do the following: server { listen 80; server_name admin.domain.com; # Use isso ou ele dentro do location / {...} return 301 https://$host$request_uri; #…
-
2
votes1
answer75
viewsA: Data-required validation in select
In case you need to match the jQuery selectors using , between them see the example below: /// ; Selector para retornar os inputs com attr data-require=true $('input[data-required="true"]') /// ;…
-
1
votes1
answer149
viewsA: NOTIFICATION_SERVICE with Channel=null error, how to resolve?
This should be happening because from Android 8.0(API 26), you need to inform a notification channel, as is said on the android site: Notification channels Starting with Android 8.0 (Level 26 API),…
-
5
votes1
answer126
viewsA: Why am I not getting the content
Are you taking the innerHTML (string content) of a HTMLElement and putting in a variable, by doing this conteudo = 'outro texto'; you are only changing the value within the variable and not in HTML.…
javascriptanswered Icaro Martins 4,187 -
5
votes2
answers2369
viewsA: Delay in publishing APP - Play store
Interesting your question, for me this serving as a warning because I was not aware of this change. After a quick search I found some news this week, which basically says that Google is with a new…
-
1
votes1
answer194
viewsA: My Javascript does not work on Webview, how can I debug?
Like Uilherme said in his comment, can be a problem of functionality, fact is you will have to debug to see what is happening. You can use Chrome Developer Tools (Devtools) to make the remote…
-
1
votes1
answer36
viewsA: How to insert the error return into a specific part of html?
As I said in the question comment, was right the way you selected the element and added the HTML text $('#form_result').html(html);, the problem was in the fact that this code is being called inside…
-
2
votes3
answers1699
viewsA: Error running the React application on android emulator
The Error indicates that the adb was not found: /bin/sh: 1: adb: not found Probably if you try to use the command adb devices in your terminal it must report the same error. One solution for this is…
-
1
votes2
answers117
viewsA: How to add an array within an array?
The problem is that you are setting the variable comitasso within the for, every interaction it will reset, only the last interaction will not be reset and so she is the only one that appears on the…
-
1
votes1
answer35
viewsA: Filter TransitionHover not working, can anyone help me?
Apparently this is happening because you are putting other properties in the filter besides the blur(), and in the :hover these properties are not declared: .left{ filter: contrast(0.8)…
-
1
votes1
answer359
viewsA: Error generating APK using Quasar framework
If the problem is only the license you can try to accept by running the SDK Manager android Studio. (update/install a new SDK can make the license accept menu appear) Or try via Command-line using…
-
3
votes1
answer2120
viewsA: Issue when publishing app to Google Play Console
Update: 07/07/2021 From 08/2021 the Play Store will require new apps to be published using the AAB format (Android App Bundle) RELEASE TYPE PREVIOUS REQUESTED ON 08/2021 New APP APKTarget API level…
-
3
votes2
answers462
viewsA: Maximum value of input
I couldn’t find anything to talk about maximum number of characters in a input[type='text'] on the website HTML LS - Last Updated 8 July 2019, until the moment what I found was: MDN web Docs says:…
-
2
votes4
answers1892
viewsA: Error React-Nactivate-Esture-Handler in version React-Native 0.60.0
Taken from the link: How can I disable autolinking for Unsupported library? How can I disable autolinking from an unsupported library? During the transition period, some packages may not support…
-
0
votes1
answer38
viewsQ: How to disable Multitasking support for iPad/iPhone app
The app is working on your devices, but when you send it to the Apple Store, the following error appears: Invalid Bundle. iPad Multitasking support requires These Orientations: ... How can I disable…
-
0
votes1
answer38
viewsA: How to disable Multitasking support for iPad/iPhone app
According to the documentation NOTE: If you must opt out of Slide Over and Split View, do so explicitly by Adding the UIRequiresFullScreen key to your Xcode project’s Info.plist. file and apply the…
-
1
votes2
answers126
viewsA: Force to fill checkbox whenever you register a task
Looking at your code I noticed some things: <input type="checkbox" name="Notas" id="Notas11" Value="Sim" required/> <input type="checkbox" name="Notas" id="Notas12" Value="Não"…
-
0
votes2
answers160
viewsA: Job Seekers Information Filter
I’ll try to explain in parts what’s going on in your code. With each interaction of this block your previously informed data is lost, except the numCand which is a counter so it is incremented do {…
-
2
votes1
answer194
viewsA: Phonegap application does not request ajax with HTTP protocol, only with HTTP s
You have not reported on which system this is occurring whether it is on Android, iOS or both. If this problem is occurring on Android, it may be being caused because of the recent change in…
-
0
votes2
answers980
viewsA: Function that converts dollars to real, Mexican pesos and Chilean pesos
You are already doing the calculations that the exercise asks for: var reais = [usDollars * 3.25]; var mexicanPesos = [usDollars * 18]; var chileanPesos = [ usDollars * 660 ]; /// ; ^ ^ /// ; você…
-
1
votes1
answer30
viewsA: Selects post sorted by id
It seems to me that your problem is that your HTML is out of the while, so he’s just showing off the last item of his interaction. <?php include 'connect.php'; $title = null; $text = null;…
-
0
votes1
answer2007
viewsA: How to create a dynamic select using Javascript?
See if one of these options helps you: At first I put the selects with display:none, for them not to be shown on the screen, I created a object with the information key = Nome do Estado and value =…
-
1
votes2
answers164
viewsA: Node.js server error (ejs)
You haven’t made your goal with your code very clear, looking at it it seems to me that you want to check whether the email already registered in Database(DB) and if you are not registering. But…
-
1
votes1
answer67
viewsA: Click a button and select a checkbox
I put a snippet with a possible solution. I removed the function onclick='marcardesmarcar();' because she’s not in the code you posted. I removed the display=none of input[type='checkbox'] for you…
-
2
votes2
answers925
viewsA: Validation of data in Javascript
The code is working, the problem is that your button is like button and not submit and is trying to call a function enviar() that the code you published is not defined After updating the question…
-
1
votes2
answers100
viewsA: save to a data file via keyboard in Avascript
Your question is not very clear, It is not giving to understand if you want to save the data to use on the page at another time, for example: when returning to access the page, or if you really want…
javascriptanswered Icaro Martins 4,187 -
0
votes1
answer175
viewsA: Save File to Database with PHP
There seem to be some problems in the code presented and this must be generating errors in your php. This line looks like it’s missing a , (comma) /// move_uploaded_file(…
-
2
votes2
answers41
viewsA: Error when trying to add class dynamically with classList.add() and classname
What’s going on is that you’re coding pure javascript as if you’ve been using jQuery. When you put: console.log( 'createElement' , document.createElement('p') ); /// retorna um HTMLElement <p>…
javascriptanswered Icaro Martins 4,187 -
1
votes2
answers119
viewsA: Button background does not change when it is first clicked. (Html5, pure CSS and JS)
You have to take the backgroundColor using the window.getComputedStyle since this property is in a class .botaoNumeros and not the attribute style inline style='background-color:red'. Example with…
-
0
votes2
answers161
viewsA: PHP = Send Message + Message Thanks + (button) or refresh
I can’t quite understand your code, but I think I understand your purpose. First take care of that character “ it’s not create string like this one ", it will generate an error which can make you…