Interesting questions
-
2
votes4
answers2294
viewsHow to return an error after sending a form?
How do I return the echo "Deu Erro!"? on my page? //page-2.php <form method="post" id="formulario" action="acoes/enviar-formulario.php"> //codigo aqui </form> within the…
-
3
votes1
answer219
viewsWhat is the "real" meaning of the key word 'extends' in Java?
First of all, I know how to use and work the keyword extends, my real doubt lies in the meaning of that word, more precisely because extends and not inherit or something like that? The only thing…
-
-2
votes1
answer39
viewsHow to show the person’s name on the welcome screen?
<jsp:useBean id="calcula" class="br.com.projetojsp.bean.UsuarioBean" type="br.com.projetojsp.bean.UsuarioBean" scope="page" /> <%@ page language="java" contentType="text/html;…
-
0
votes1
answer84
viewsProblems loading a modal modal pop up with custom 404 error
Hello I generated some error pages in my application in mvc, however I realized that this giving error when I try to load a modal, instead of it load my modal it loads the page of error 404 follow…
-
1
votes1
answer26
viewswhen compiling: "Warning: Operation on `eventhead' may be Undefined"
Hello, I’m trying to compile a code with this excerpt: void D_PostEvent (event_t* ev) { events[eventhead] = *ev; eventhead = (++eventhead)&(MAXEVENTS-1); } And I get the following warning:…
casked 6 years, 4 months ago Adilson Enio Pierog 11 -
4
votes1
answer228
viewsCalculation with Excel hours are not very accurate
I have a spreadsheet that calculates the hours a company car is used in a month. each race is scheduled starting time and final time taking 30-minute intervals. at the end of the month then I have a…
-
1
votes1
answer71
viewsHow do I validate if a phrase containing accented words was displayed on the screen?
I am using Calabash-Android to perform automated tests and I want to know how I can validate if a phrase containing accented words was displayed on the screen. file.Feature # language: pt #…
-
1
votes0
answers47
views"25" added after "%"
I created an HTML form that will send some parameters to a page, in this form has a parameter defined as Hidden which is the token. The token has several "%" characters in the middle of it and I…
htmlasked 9 years, 11 months ago Laércio Lopes 4,352 -
1
votes0
answers24
viewsSelect text from a div and ignore any other tag using Xpath
I have the following situation where I want to get the text from a div and ignore the contents of the daughters Divs and get only the text from the parent div below follows the html structure.…
-
0
votes1
answer91
viewsSqlserver: How to detect consecutive days in a table
I need to insert into a time table only the rows of another table in which the Membershipdate column has 1 day difference dates. For example, in the table image below, only lines 1, 2 and 3 would go…
-
1
votes2
answers987
viewsAngularjs | How to define a boot process for a controller?
I have an app full of Ajax that needs to get data via Webservice when the page loads. I’ve already initialized via ng-init but I don’t know how to have the controller "load" and execute the code…
-
3
votes1
answer928
viewsWhen clicking on a select item, show input
I want when I click the select "OTHER" to appear next to an input, but so far unsuccessful. My code HTML and JS: function mostraCampo( el ) { var outros = document.getElementById('outros'); if…
-
1
votes1
answer112
viewsHow NOT to round up figures?
I need an exact value but my code always rounds down: float percentageUsed = 6050492416 / 8258998272; System.out.println(String.format("Porcentagem: %.2f", percentageUsed)); In case I had to return…
-
0
votes1
answer98
viewsLimit IP address
I am with a project of an online supermarket and my client wishes that only those who live within the city where he owns this supermarket can place orders. He has problems because he already has…
-
0
votes1
answer155
viewsCreate and populate elements with json return in jquery
Good night, you guys. I need to take a json return and mount an html with the data dynamically. I got to the part where I can get the json and nothing else, I’m stuck. $.ajax({ type: "get", url:…
-
0
votes0
answers86
viewsSQL-Count for each id
I want to show all student table records - name and number - and then in the right column, show attendance percentage. Let’s see: SELECT nome, numero, ( ( SELECT COUNT(aluno.numero) FROM aluno JOIN…
-
-3
votes1
answer52
viewsWhy do some links not inform the domain or protocol?
I would like to know more about relative navigation links and would also like to know the pros and cons of using them. For example, there are links that do not inform the domain and do not inform…
-
-1
votes1
answer46
viewsProblem to submit form from Javascript
I have a form and would like to submit it without reloading the page I am trying it with javascript, when I try to click the button it does not submit the form as I asked <form id="myForm"…
-
0
votes0
answers30
viewsHow to correctly type component props (React) to receive (a and b) or (c and d)
An opinion/tip on the typing of props: Context: An app/site with a list of podcasts in the home, dynamic page for each podcast individually, and in both, play buttons, that plays the relevant…
-
-1
votes1
answer37
viewsFlask import problem (Unable to import 'controllers' pylint(import-error)
Good evening, I’m starting to program now and I’m trying to make a simple system using the Flask framework, but during the organization of the files I came across the problem of the title, I’m not…