Posts by Ikaro Pinheiro • 306 points
12 posts
-
1
votes1
answer120
viewsA: Move aquifers by extension, PYTHON
You can take the file name and discover the file extension from it: nome_do_arquivo = '/home/user/pudim.jpg' file_splited = nome_do_arquivo.split(".") extension_name = file_splited[-1]…
-
1
votes1
answer526
viewsQ: How to delete files from my remote and local HEAD from my git but not delete from my disk?
I have some files that I uploaded to my local remote Git HEAD, but now I need to delete these files but need to leave them in my local development environment. These files cannot go to the remote…
-
2
votes2
answers50
viewsA: Problem alerting when validating fields
It looks like he checks every element, and what’s gonna count is just the last one. Because in the previous ones he’s putting it unfilled, but in the last one, if it’s filled out, it’ll overwrite…
javascriptanswered Ikaro Pinheiro 306 -
0
votes2
answers4702
viewsQ: How to convert date difference from seconds to hours/days?
I made a little program in python that he takes the current time, the time, convert in seconds and subtract from each other to know the difference between him. My doubt is, how do I convert these…
-
1
votes3
answers273
viewsA: Non-responsive footer
I took the position Absolute, the margin, gave a width: 100% and added a float left, so it is responsive on any device: <footer class="footer"> <div class="container"> <span…
-
2
votes1
answer958
viewsQ: How to catch the current user in the Django model?
Hello, I’m creating a Django application and I have a model with the Newdemand class in which I need that when the user creates a demand, the name of the guy is saved in a field. Here my class:…
-
0
votes2
answers224
viewsA: How to open a pop after a few seconds and close after a few seconds after open
You can simply use jquery’s click and fadeOut functions as follows: $('#close').click(function(){ $box.fadeOut(); }) And to close alone after a while: $box.delay(20000).fadeOut();…
-
0
votes4
answers1531
viewsA: Adding my files to Github
First you have to put your new files in the header of your local git with the following command: git add . Next you have to create a version describing the new changes: git commit -m "Descreva as…
-
0
votes2
answers87
viewsA: I’m having trouble comparing two numbers in php
It seems that its variable in the main code is with the same method name and also lacks the constructor in its class. Try to save the following codes: <?php class Maior{ public $primeiroNumero;…
-
1
votes2
answers845
viewsA: HTML & PHP -Make a log in button log out
Try using the PHP session scheme. When the user is logged in, you should create a session more or less like this: <?php session_start(); $_SESSION['login'] = 'login do usuário' ?> This will…
-
1
votes1
answer91
viewsA: Select limiting query, and does not display the latest queries
Try to put your entire article inside an if/Else. No if you check if the news id is 2, if it is, just continue, if not, have the Else block run with the article inside.
-
5
votes2
answers463
viewsQ: How do I make the href that is inside my div work with Focus?
I have a list that when you click on an item it receives a Focus and appears a div with information. One of this information has a link but when I click on it, my div closes and does not open the…