Interesting questions
-
0
votes1
answer148
viewsCreate database through PDO
I have a project in mind, in which I would like to create database with the name of variables, and in case it would be done a check to know if the BD has been created, would be something like this:…
-
3
votes1
answer320
viewsangular - Update radiobutton values with textarea
Through Pover I want to remain the values of the radiobutton, who should come to a preference textbox per line, so when the user wants to add options just insert a new value in the next line.…
-
1
votes1
answer357
viewsOver redirect in Codeigniter
When I try to run my application in codeigniter the page to load and an error message is displayed that there is an excess redirect. In the application, I need to be redirecting the user whenever…
-
1
votes1
answer176
viewsMeasure distance between SVG polygon points
I created a SVG very simple with a triangle. <svg class="triangulo" height="210" width="500"> <polygon points="200,10 250,190 160,210" style="fill:lime;stroke:purple;stroke-width:1" />…
-
2
votes2
answers1169
viewsException error in thread "AWT-Eventqueue-0" java.lang.Nullpointerexception
I’m doing a college project where I can register, change, delete and consult a product. In the query part, I try to search for the ID. Only this error happens and I am not able to solve. Exception…
-
2
votes1
answer124
viewsUsing Gplv3 tool "contaminates" my application?
I am in a project where I will use Sqlite as a database in a commercial application with rights reserved. So far, so good, since Sqlite is in the public domain and for this reason can be changed…
licenseasked 8 years, 11 months ago user100648 -
2
votes3
answers4332
viewsPassing HTML Parameters to Javascript
Good afternoon Galera! I need to pass parameters from a small HTML form to a Javascript function but I’ve tried it in every way and it doesn’t work! Where am I going wrong? function pessoa(nome) {…
-
1
votes1
answer52
viewsJava Array: no value received
I’m having a little problem regarding a matrix I’m trying to develop to get coordinates inside a JFrame and pass them to position the buttons correctly. Follow the code: public class Coordenadas {…
-
7
votes1
answer404
viewsWhy are certain languages faster than others?
I’ve heard a lot about how C is faster than C++ and Java, Lua is the language of script faster, among other examples. What makes certain languages faster than others? What defines a language as…
performance characteristic-language language-independentasked 6 years, 11 months ago NinjaTroll 1,752 -
2
votes1
answer79
viewsTableview, delete cell but not section
I have a View table where I would like to delete the cells from the sections and if it is the last one, instead of deleting the section as well, I would like you to add a new cell with a new string:…
-
-1
votes1
answer33
viewsCalling a function after entering a page
Good afternoon, I am working on a React Active application and I am having problems when I need to reload a value when it is already set, the function listingCurso can receive the course, but when I…
-
0
votes0
answers125
viewsHow to get all files used on a page using "requests"?
As we know, when accessing a website by browser, various files such as images, music, scripts, CSS, among others, are downloaded to be used within a page HTML. Using the library requests, it is…
-
0
votes3
answers635
viewsAdd data from array
I have an array that data comes from the user’s filled form and make a map: dados.map(element=> { var x var number1 = parseInt(element.preco), number2 = parseInt(element.peso) var tota = number1…
-
-2
votes1
answer1136
viewscompare two java objects
good evening. I am working with an arraylist, and needed to ensure that no repeated objects are inserted. My object has a matrix[5][5] which is the main element that I need to ensure is not…
-
1
votes1
answer104
viewsDjango and Cloudinary error - can’t use the string Pattern on a bytes-like Object
I’m trying to make a simple app: I made the tutorial of Django Girls and now I’m trying to use the same including also an image using the Cloudinary But I’m having the following mistake: Error…
-
8
votes2
answers130
viewsDoubt about @media
made the front-end of a site, in which its main layout was at 1920px and I am adapting to other screens, using: @media (min-width: 0px) and (max-width: 1920px) {} I saw that in IE8 is not working,…
-
0
votes1
answer966
views -
-1
votes1
answer48
viewsscanf reading the variable twice!
#include <stdio.h> #include <stdlib.h> /*Faça um programa onde o usuário digita um valor, e imprima na tela todos os valores entre 0 e o valor digitado. */ int…
-
1
votes2
answers2014
viewsHow do I read two columns of a . dat file in Python?
I have a file . dat with the following numbers: 34875 70.9300 -8.6700 54872 80.0500 16.2500 65456 77.0000 -5.5000 78787 78.2500 22.8300 20890 -8.9200 11.9300 87859 78.2500 15.4700 89556 80.6700…
-
-2
votes1
answer43
viewsIn this program, I wanted it to include in the final list the even numbers of the first list and the odd numbers of the second, why doesn’t this happen?(python)
*In the final list, numbers appear that were not supposed to be there, for example 103, which is an odd number from the first list. lista_1 = [10,24,50,103,30,12] lista_2 = [13, 16, 39, 14, 107, 35]…