Posts by OtavioCapel • 1,513 points
60 posts
-
2
votes2
answers1013
viewsA: Filter an Array of names and return the larger(s) name(s)
Well first I get the array of names in the variable arrayOne, then I take the first item of that array and assign its length in a variable, nameLength. Then I made a map in my arrayOne and I see the…
javascriptanswered OtavioCapel 1,513 -
-1
votes1
answer163
viewsA: How to put html code in question
Take a look at the way I did, try to understand, and see if you can do other ways to learn better :) section{ background-color: red; width: 100%; height: 100vh; padding: 2%; display: flex;…
-
1
votes3
answers192
viewsA: Redirect to Tab specifies
Use the window.location.href = "http://seusite.com"; After the answer of your Ajax
-
1
votes1
answer334
viewsA: Glyphicon for bootstrap 4 does not work
try this one, paste it into the tag before all your css links: <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"…
bootstrap-glyphiconsanswered OtavioCapel 1,513 -
0
votes4
answers6021
viewsA: How to create a function to find the highest value in a list?
First you need to create a function and say it takes a list as a parameter: def verificaMaior(trip_duration_list): then you need to set an initial value to the variable you want to compare: max_trip…
pythonanswered OtavioCapel 1,513 -
0
votes1
answer74
viewsA: Change inputfile label when you already have an Angular selected file
You can make a variable that gets your target.files . var file = e.target.files; And then you can manipulate your html with this variable <label for="upload">Procurar <span…
-
0
votes2
answers90
viewsA: Onmousemove event with jquery
How you are trying to find an element by class indicates that you want the first element found in case [0] the first position. From a look at the example I made below, I hope I’ve helped...…
-
4
votes2
answers112
viewsA: Implement a program that has a name and only has the last name and first name
Use the + instead of the comma in lista[-1] which will have the expected result: nome=input('Digite seu nome completo:').title() lista=nome.split() print(lista) print(lista[-1] + ', ' + lista[0])…
pythonanswered OtavioCapel 1,513 -
0
votes1
answer205
viewsA: Android Studio, centralize the name of the application
Use the display: flex along with the justify-content: center in a parent element. So display the result you expect, see in the example I left below. I hope I’ve helped. #id-text{ display: flex;…
android-studioanswered OtavioCapel 1,513 -
0
votes2
answers4346
viewsA: How to center and position side by side two images? html css
Only by complementing the Hugocsl response, use the property justify-content: space-around; justify-content: space-around; creates equal spaces before, between and after your HTML elements. See in…