Most voted questions
150,413 questions
Sort by count of
-
5
votes3
answers1978
viewsCreation of a database for each user
I’m putting together a web sales system with php and mysql, where we will have several registered companies, each company being a user who will control their sales. Our team has a question: create a…
-
5
votes1
answer1131
viewsComplex numbers in C++
I’m new to C++ and would like to know how to use complex numbers: double real[2]={2,5}; double imaginario[2]{7,9}; cout << "Soma: " << real[0]+real[1] << "+" <<…
-
5
votes2
answers287
viewsHow do I index my app in Google searches?
How can I get my app (Android) to start appearing in Google searches? Edit: Look at these prints: Or…
-
5
votes2
answers104
viewsHow do you put a sentence inside a form field and it disappears when you click inside the field?
I would like to know how to put a sentence inside a form field, and it will disappear when you click inside the field. How do you do it in CSS? How do you do it?
-
5
votes1
answer1121
viewsPackage installation in Rstudio
I cannot install any Rstudio package on my laptop. Does anyone know what I should do? Appears this message below:
-
5
votes1
answer1057
viewsHow to get the result of the Retrofit 2.0 Request
Well, I’m starting to study Android, I’ve already requested with Volley but a friend indicated me Retrofit for being much faster and "simple". But I still don’t understand much. I have a Webservice…
-
5
votes1
answer4952
viewsHow to generate random values for a known distribution?
I am aware that, for example runif(1000,0,3) generates 1000 random values for a uniform distribution for x between 0 and 3. But how to do this for any probability density function? Every clue is…
-
5
votes2
answers73
viewsAudio compatibility problem with firefox API
I’m using the API to emit some sounds, the problem is that in Firefox I can’t get around mp3, but how can I include other formatting in that code? How can I add another font ogg for example? I’m…
-
5
votes1
answer842
viewsIs it possible to do form authentication/validation with pure Node.js?
Today I became interested in Node.js for being able to program javascript in the back-end and front-end. From what I understand - correct me if I’m wrong - Node is a platform that allows me to…
-
5
votes2
answers1145
viewsHow to assign a different value to the variable in each loop?
$azul = "#4285f4"; // AZUL $verde = "#34a853"; // VERDE $amarelo = "#fbbc05"; // AMARELO $vermelho = "#ea4335"; // VERMELHO $color = rand(1, 4); I’m using $color within a loop but in this simple way…
phpasked 8 years, 10 months ago Marcos Vinicius 7,188 -
5
votes2
answers993
viewsOperation of variables by reference
I know that variables by reference in java serve to provide a location in memory of a certain object. However, how does this mechanism work? It is equal to the C language, where the reference types…
-
5
votes1
answer995
viewsAdding a comma to a string
Good personal and possible to add comma in an example string: a = '1234567890abcdefghijklmnopqrstuvwxyz_' for her to stay like this a = 1,2,3,4,5,6,7....…
-
5
votes2
answers506
viewsReceive null int in Razor (@Html.Textboxfor)
I have an object Carro and I have a whole-type, annulable property called AnoInspecao. When creating, I can create a car object with the year of null inspection (without typing anything) and persist…
-
5
votes1
answer1098
viewsWhat alternative to use instead of Document.write
It is said that Document.write is not a good practice, and it also doesn’t work after window.onload, which is the case I need. I have the following function that needs to change Document.write, the…
javascriptasked 8 years, 11 months ago SuperMax 456 -
5
votes1
answer523
viewsNewton Fractal, roots of equation z 4=1
I’m trying to plot a graph of an image called Newton Fractal: Follows model: The problem is to plot the roots of the equation z^4 = 1, where it has 4 roots being (-1, 1, i and -i), where to find the…
matlabasked 8 years, 11 months ago Alan Nascimento 113 -
5
votes3
answers407
viewsKeyup allow it to contain only one dot between input characters
Personal how to allow it to contain only one point (.) between the characters typed in the input by checking with the jquery keyup event. Example of an exit: 000.000000 1.000 99.9.99.999 // <-…
-
5
votes2
answers3496
viewsHow to run a file with PHP?
I wanted to know some code in PHP that makes me open a file .exe, or a line that makes a file run .exe from the same server.
-
5
votes2
answers1590
viewsHow to save files to a server via Java?
I need to save a file to a server using Java. In my case, I need to save a file json. I can save a file normally on my computer, but how do I save directly to a remote server? Below is an example…
-
5
votes1
answer92
viewsError with Like do sql
How do I extract all fields starting with '1. ' from the BD? In my instruction I used the LIKE but had no return, but to remove the point already returns something, but returns fields I do not want,…
-
5
votes2
answers3274
viewsC# - XML return from Webservice with encoding error (ISO-8859-1)
I have a Windows Forms application that is consuming a Webservice that returns an xml (string) enconding with ISO-8859-1. However, the answer comes with question characters (?) instead of accents.…
-
5
votes1
answer228
viewsAvoid removing the Testprovider from Mock Location
I am trying to mock location for use in another application, but this application is removing my Testprovider, making it not possible to mock the location. How can I avoid this other app from…
-
5
votes3
answers907
viewsSum array in javascript currency
I need help to convert and add formatted currency fields coming in this format "1.568,78" I have a code that sums an array of parcels and checks if it is equal to the total value of the invoice that…
-
5
votes1
answer550
viewsCompilation/Minification of HTML, CSS and class names
On the CSS side I already do the compilation and minification of the CSS file. Doubts began to arise when I noticed that some sites work with a type of Compile including in`HTML files. In other…
-
5
votes3
answers742
viewsHow to check if a value is present within an array?
$idofdb = "25"; $myArray = array(); foreach ( $fthi as $codigo ) { $myArray[] = $codigo['ImoCodigo']; } $checkValues = array_values($myArray); $checkString = implode(',', $checkValues); //…
-
5
votes1
answer124
viewsUpdate Table in Postgresql
I have the following question in Java: how can I pass to SQL that it should capture the "date and time" of the computer and update the User Table in Postgresql? Follows code: public class…
-
5
votes1
answer769
viewstxt file is not found when generating file. jar
I have an application in Java, this application has images, and I had the same problem: when generating the arch. jar(executable) the images did not appear, but if it ran straight into Netbeans, it…
-
5
votes1
answer432
viewsInsert php with object as parameter
I’d like to understand how I can do an insert function in php that uses an object as a parameter. Example: class Aluno{ private $nome; private $curso; } getters e setters... public function…
-
5
votes4
answers318
viewsDiv inside another broken div
How to insert a div into another div without either of them making the line break. I want to do it this way because I’m in the development of a Clan website and the index has to have the login or…
-
5
votes1
answer157
viewsHow to create a page that has different information for each type of user?
is my first question here at the Stack overflow. Well, I would like to know how to structure a php page to display different information to different users, because I don’t want to have more than…
-
5
votes2
answers220
viewsHow does Nodejs manage package.json in sub-folders?
How Nodejs manages Packages.json in sub-folders? You have your normal application but you have sub-modules that you want to have your own dependencies, how does Node manage it? It creates another…
-
5
votes2
answers2126
viewsPass parameters to Modal in jQuery
I have the following button: echo '<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-cliente='.$r->idCliente.' data-datainicial='.$_GET['data_inicial'].'…
-
5
votes2
answers987
viewsHow to transform HTML into an image on the server?
I have an Asp.Net MVC project with . Net Framework 4 in Visual Studio, where I need to transform a string with HTML code into image on the server side. I’ve been trying to use that library, but I’m…
-
5
votes1
answer1998
viewsDoubt how to display binary tree by width?
Good to use this method of flaunt need a line there all right, I tried this logic worked until the third level of the tree. bool marcador = true; void buscaLargura(No *raiz) { if(raiz != NULL) { if…
-
5
votes1
answer130
viewsPass "slide" inside the lightbox
Clicking on a link opens a lightbox with the product information clicked, however there is need to display more than one "page" in that lightbox. How to insert more "pages" to move on/back to…
javascriptasked 8 years, 11 months ago user49915 145 -
5
votes3
answers341
viewsCSS condition for when you don’t have SRC in the image
I need that when an image does not have the attribute src, css automatically recognizes this and hides that element with display:none Which selector should I use to do this? Example: <img…
-
5
votes3
answers5377
viewsSELECT IN A RELATIONSHIP WITH SELF RELATIONSHIP(Verifying Conflicts)
I’m having trouble making an appointment. The situation is as follows, I need the bank to return all the names of the disciplines that have no prerequisites and that are not prerequisites. This is…
-
5
votes1
answer1033
viewsHow to consume a JSON url without using jQuery
How could I consume a URL with data coming from a JSON without using libraries like jQuery or something like that for a structure like: [{chave:valor1},{chave:valor2}]
-
5
votes1
answer572
viewsdayClick Fullcalendar
You can avoid opening the prompt(modal) insertion of new event to the click on in a day on the monthView? I managed to make it go to the date clicked on agendaWeek but he keeps opening the prompt…
-
5
votes1
answer889
viewsHow to send data from one Vector to another Activity?
I’m still a beginner, and I have the following question: I’m inserting text from a EditText in a array, and I want to receive it in another. I am doing the following: String[] pedidos = new…
-
5
votes1
answer246
viewsHow do I set up a project in Git and Github?
I own a project on Github called ProdRegex it does not contain any file, I have saved the project on my PC in the following path ~/Projetos C/Feichas Aula/ProjetoProdRegex where is all the files of…
-
5
votes1
answer1843
viewsTempdata C# doubt with MVC
I know that the TempData has its "life" maintained until it is used in the View. However, if I do it on two different controllers, the same one identified from the TempData, I’m killing and about…
-
5
votes5
answers156
viewsType induction for any type of object
I am wanting to make a method of a certain class accept an object as a parameter. However, this object could be of any type. Example: class classeExemplo { public function meuMetodo(Object $objeto)…
-
5
votes2
answers213
viewsAdd days to a date within the method and return it with new period
I tried to do a function to add to that date, days coming from a parameter passed in the function. Below the function: function montaDataSubstituicaoPrestador(){ var exclusao = new…
javascriptasked 8 years, 11 months ago pnet 14,727 -
5
votes2
answers200
viewsHow do you store a chart as a variable and export it later?
Considering: x<-1:10 y<-10:1 plot(x,y) I would like to store the result of plot() in a variable, such as grafico<-plot(x,y) is it possible? And to export as I do?…
-
5
votes1
answer347
viewsWhat is CDI technology?
I am developing a web application and a university colleague who is a few periods beyond what I am currently studying said that using CDI would have a better performance, however, until now had not…
-
5
votes1
answer248
viewsjava.lang.Illegalstateexception when declaring aspect with Spring
I’m trying to state this aspect: @Aspect @Component public class UpperCaseAdvice { @Before("@target(annotations.Model)") public void toUpperCase(JoinPoint joinPoint){ //faz alguma coisa } } I am…
-
5
votes2
answers172
viewsHow to select one element from another
<select class="form-control dropup bs-select-hidden" name="sys_nivel_acesso_id"> </select> <div class="btn-group bootstrap-select form-control dropup"> <button class="btn…
jqueryasked 8 years, 11 months ago Rodrigo V. Lagos Eustáquio 51 -
5
votes2
answers1215
viewsDoubt about the Apache version 2.0 license
I am developing an app with Cordova, the app can be downloaded free of charge, only some internal features will have some cost. I needed to use this plugin…
-
5
votes1
answer420
viewsDoubt about relationship between tables in mysql
I have the following tables: Table: Customers Table: Interests of the client Table: User In the client interests table, I need to enter the user id and the client id as foreign keys, the user id…
mysqliasked 8 years, 11 months ago Igor Silva 661 -
5
votes3
answers895
views