Interesting questions
-
4
votes4
answers5878
viewsConvert String to Decimal
And I’m having trouble properly converting this string in decimal. decimal.Parse(txtValor.Text)=meuVen.Valor; When I put the conversion in front, it shows error after the =. I don’t know how to…
-
1
votes1
answer51
viewsLaravel query returns "wrong" result
I have a table called "tabela_precos", with the following structure: categoria_veiculo_id | valor | preco_min | preco_max | tipo_veiculo 22 77,70 0 2500 carros 22 30,35 15000 20000 carros When I run…
-
0
votes1
answer217
viewsHow to get Promise in Service and only send the uploaded data to control?
I have a json file with the following sample structure:…
-
0
votes1
answer104
viewsLogin screen does not validate
I have a simple HTML page that contains only one login and password; <form id="geral" action="valida.php" method="POST" accept-charset="iso-8859-1"> <h3><img border="0"…
-
1
votes2
answers73
viewsInsert data into sql after validation
I need to perform a validation where I can only enter the registration of a race in the database if the id driver and user are present in their respective seats. What is the best algorithm to deal…
mysqlasked 8 years ago J.Rodrigues 87 -
0
votes0
answers22
viewsBreadcrumb Wordpress
I’m setting up a website and putting the breadcrumb right in the code, only I’m not getting the dropdown menu mother item, is getting the code like this... how can I pull the mother item?…
wordpressasked 8 years, 7 months ago Rafael Castro 79 -
9
votes3
answers4422
viewsHow to toggle text between "show / hide" inside a javascript button
I don’t know anything about Javascript. So even though it’s something "simple" for some people, it’s a seven-headed animal. Here’s the thing: In the following code is a script that I will use that…
javascriptasked 11 years, 1 month ago ivan veloso 2,900 -
1
votes1
answer62
viewsPython: because when declaring the constructor of the Daughter I also have to declare the constructor of the Mother?
I am developing a small application in Python and I came across a question that I could not draw a concrete conclusion about why this should happen. Simply put, the problem is this:: The following…
-
2
votes0
answers72
viewsWebview does not open popup - Windows Phone 8.1
I’m trying to get an authentication through a URL, up to there everything traquilo. But on the site, which I’m trying to authenticate, it is possible to log in with facebook but, by using this…
-
3
votes2
answers145
viewscheckar checkbox of gridview based on database value
My application needs to release types of accesses, for example, we have 5 branches and such person needs to access content from only 3 branches. The ADM user, can create or edit new users. When…
-
0
votes1
answer94
viewsHow to import CSV files from a same level folder (and/or above) in Python?
I have already searched several topics here, unsuccessfully however. So, if there is already an equal question, please forgive me and indicate a solution. My project is articulated as follows:…
-
0
votes1
answer148
viewsPair or odd loop does not show the expected result
public class ParImpar { public int totali; public int totalp; public ParImpar(int totali, int totalp) { this.totali = totali; this.totalp = totalp; } public static void main(String[] args) { new…
-
4
votes1
answer1092
viewsDownload Javascript Array on a Combobox
I would like help in this small problem, I have to do a combobox shows 5 states being loaded by an array in javascript, my code is like this. HTML <select > <option…
-
0
votes2
answers171
viewsHow to show values of an Array in a single message?
package Algoritmos; import javax.swing.*; public class testinho { public static void main(String[] args) { int[][] numero_conta = new int[3][3]; numero_conta[0][0] = 111; numero_conta[0][1] = 222;…
-
1
votes0
answers563
viewsSet Fixed Port for Projected Web API Asp.net Core C#
I would like to know how to set up a standard fixed port for my Web API application on Asp.net core.
c# asp.net-mvc asp.net asp.net-core asp.net-core-web-apiasked 7 years, 6 months ago Nicola Bogar 123 -
3
votes1
answer72
viewsError in calculating a PA with Haskell
The function does not return the expected result but I followed the formula and can not understand the error in logic. I hope to return the term i-th. termoPA :: Int -> Int -> Int -> Int…
-
0
votes1
answer598
viewsHow to create entities with composite key in Doctrine?
I have a database that works with composite keys, and I am implementing the use of laravel framework. This is my bank’s structure: I’m using the Doctrine as ORM and discovered that I can not…
-
4
votes3
answers289
viewsHow to print a Python operation by adding zero to the left?
a = int(input('Número: ')) b = int(input('Número: ')) c = a / b print(c) If I assign A = 10; B = 5 print will show 2, I wonder if there is some kind of format that allows print to show 02? Thank…
pythonasked 5 years, 11 months ago Eduardo Carlos Santos Pereira 41 -
0
votes1
answer590
viewsCode evaluation: Logistic regression with K fold validation. Is that correct?
The code below is an attempt to make a logistic regression with k fold cross validation. The idea is to take the confusion matrices generated in each fold and then generate an average confounding…
-
1
votes2
answers87
viewsConditional does not work as expected (related to ASCII table)
int tam, i; char msg[1000]; printf("Escreva a mensagem para ser criptografada: "); fgets(msg, sizeof(msg), stdin); tam = strlen(msg); for (i=0; i<tam; i++) { int aux; aux = msg[i]; if…