Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer265
viewsEncoding Eclipse -> Intellij
I imported a project into Intellij that was created in the eclipse. The project is pretty big. I’m having a problem with encoding, in the eclipse is as Default o Cp1252 And Intellij is into UTF-8…
-
4
votes2
answers1020
viewsHow to pass an integer file to a C vector?
I have a problem when passing data from my file (integer numbers) to the vector. The purpose of the program below is to check the performance of the sorting algorithms (Mergesort, Bubble Sort,…
-
4
votes1
answer103
viewsDatabase maintenance c#
I have a system in another language and I need to create an update for this system, but it needs to be run Mysql Scripts for database maintenance. I searched in Java and found Maven that has all…
-
4
votes3
answers6016
viewsConvert JSON to EXCEL
I carry out a consultation ajax that returns me a Json with object array, how can I transform this json in excel? Example of my json: [ {idcancelamento: "383", idcliente: "2409", emailcancelamento:…
-
4
votes1
answer655
viewsHow to associate/open mp3 files in raw folder?
I’m in trouble with songs, whenever I add some music and I will run some error code, whenever I click on the music in the raw folder appears a text , in tutorials that I saw the person clicks on the…
-
4
votes2
answers1903
viewsHow to convert Lowercase String to UPPERCASE?
My question is in switch (opcao). To perform one of the cases it is necessary to enter with capital letters. Is there any string or Java character conversion function from lowercase to uppercase…
-
4
votes1
answer161
viewsWhat are other pass applications?
In the documentation the statement pass is defined pass is a null operation. When executed, nothing happens. Useful as a placeholder when syntactically a statement is required, but no code needs to…
-
4
votes2
answers400
viewsHow do I know if the screen is in "Extend" mode?
I want to make a if to know if the screen is in "Extend". Example: (Win + P) How can I do this in C#: if (?) // só pode entrar no if, se a tela está no modo "Estender". { SegundaTela formulario =…
c#asked 7 years ago Matheus Miranda 5,375 -
4
votes1
answer146
viewsProblems with Assembly
I recently started studying computer architecture in which it is necessary to know this language. Because it is an assembly language (low level language), I did not find any IDE so I could test the…
assemblyasked 7 years ago Maurício Z.B 1,098 -
4
votes1
answer416
viewsHow to copy text from one text file to another
I wanted to copy the text from one text file to another with a different name and add a - at the beginning of the line of the text file. For example: I have a text file with the following text…
c#asked 7 years ago Pedro Azevedo 435 -
4
votes2
answers268
viewsProblem with Javafx
I have a problem when I add a JFX button that is present in the Jfoenix library. When opening my FXML document, it directs right to Scenebuilder, and inside it, to use all the items contained in the…
-
4
votes2
answers540
viewsPHP POO error Polymorphism
When developing a simple PHP POO application, I came across an unexpected error, and I have no idea why. I’m starting now to study object-oriented programming and only have a small C-base#. The…
-
4
votes1
answer222
viewshtaccess that hides only directories
I created a directory assets in order to place the Assets of my project. So far so good, however, I found that when typing in the URL localhost/project/assets, it shows the directory structure of…
-
4
votes1
answer119
viewsdataTables - Add and preserve CSS class to the last column of each row
To add a CSS class to the last column of each row, I use the following method: var dataTablesOptions = { 'columnDefs': [ { targets: -1, className: 'text-center' } ], // ... };…
-
4
votes1
answer407
viewsJavascript Alert Does not work on Firefox and Chrome
I’m trying to generate a wrong password alert in Javascript. It’s for a web application that works on .net. This alert works on IE, but we are porting the system and wanted it to work on both IE and…
-
4
votes2
answers2954
viewsSearch XML field information in SQL
I need to perform a search inside a field where it stores an XML The XML is from a CT-e and in it has a series of tags and I need to find a data within a specific tag. Below the structure of the…
-
4
votes1
answer236
viewsDifference between select a. or b
What’s the difference of doing the search by select a. or b.? Example: select --a.num_duplicata,a.data_prorrogacao,a.seq_duplicatas, a.cli_dup_cgc_cli9 as cgc9,a.cli_dup_cgc_cli4 as…
-
4
votes1
answer462
viewsSearch for disordered word sequence from a list in text
Is there any way to have a list of unordered words and look for if there is a sequence of them in a text? Example: lista = ["dia", "noite", "tarde", "é", "está", "bonito", "o", "a", "muito", "feio"]…
-
4
votes1
answer1716
viewsHow to create a single index based on two columns?
I have a table with these columns: ip nome email I want you to ip and the email are a single pair. The same ip may contain several records and a single email may also. But the same ip and even email…
-
4
votes2
answers2633
viewsWhat is the difference between the MVC architecture and Django’s MTV?
I wonder if there is any difference in practice between these two architectures.
-
4
votes1
answer1077
viewsHow to read a list of serialized objects saved in a java file?
I wanted to work with serialization in java files and I read this tutorial about how to write the object in the file and this one on the how to read the file object Then I created the following…
-
4
votes2
answers277
viewsWhy does type='date' not work in Firefox?
I was testing a script to calculate interest and realized that my code does not work on Google Chrome, but if I open the same script on Mozilla it works perfectly. I wonder what it might be?…
-
4
votes2
answers362
viewsError in isset PHP
Error when using isset with new PHP methods: <?php require './fb.php'; if (isset(filter_input(INPUT_SESSION, "fb_access_token")) && !empty(filter_input(INPUT_SESSION,…
phpasked 7 years ago Lucas de Carvalho 6,427 -
4
votes2
answers671
viewsFaster delete + Insert or select + update
I am building an app that will receive data from various different ERP’s every day. But I have the following problem, the next day the ERP can send me the same data that had or did not changes +…
-
4
votes2
answers791
viewsAlign HTML + CSS component
I need to line up two Uttons this way they should be exactly next to each other, but each at an end…
-
4
votes2
answers12357
viewsHow to make an INNER JOIN between two different databases on the same server in MYSQL?
I’d like to lay a INNER JOIN between two distinct tables but that are on the same server. It would be something like? INNER JOIN BANCOA.tabelaA.colunaA ON BANCOA.tabelaA.colunaA =…
mysqlasked 7 years ago Geraldão de Rívia 940 -
4
votes1
answer319
viewsPHP Sublime text 3 plugin
Does anyone know the name of the PHP plugin that shows a description of the php function in my IDE when I put the cursor over it? By EX: function: str_replace(); By placing the mouse on it appears a…
-
4
votes3
answers1011
viewsHow to compare strings differentiating case from case?
I have following code: Usuarios user = DataModel.Usuarios.Where(x => x.Login.Equals(login,StringComparison.OrdinalIgnoreCase) &&…
-
4
votes2
answers677
viewsIs it mandatory to open and close connection when entering data?
In a *loop* que fazInsert` in an Excel spreadsheet it is mandatory to open and close the connection ? I analyzed the following, depending on the amount of registration it may take up to 1:30 to do…
-
4
votes2
answers461
viewsWhat is the Riot.js?
I was reading about some frameworks and libraries for front-end UI development and came across the Riot.js. Giving a quick read on page of the library (in English), I concluded superficially that…
-
4
votes2
answers1210
views -
4
votes2
answers792
viewsWhat’s the difference between echo, print, var_export in PHP?
To difference between var_dump and print_r you already have in that reply. But it does not give any details regarding the echo, print and var_export. What difference between echo, print, var_export…
-
4
votes1
answer376
viewsExtract table from a website for Rstudio
Hello, I want to take the table of the Brazilian, for example this site "http://globoesporte.globo.com/futebol/brasileirao-serie-a/" and extract to a dateset in Rstudio, so that whenever the table…
-
4
votes1
answer408
viewsHow to prevent the child element from activating the parent element event?
The event click configured for the element optgroup is also activated when a option is clicked. How this behavior can be avoided? $("optgroup").on("click", function() { console.log($(this));…
-
4
votes2
answers622
viewsHow to rotate an arrow inside a circle using Java2d?
Previously, I asked "How to draw an arrow using Java2d?" and now with the arrow drawn correctly and positioned within my circle, I would like to make the arrow rotate within the circle so that the…
-
4
votes1
answer1055
viewsLaravel Project does not recognize my Javascript file
This is the structure of my project: As you can see in the image above the app.js file is in the folder Assets/js my app.js file looks like this; //var urlUsers =…
-
4
votes1
answer880
viewsView all values of an array
I wonder how I can see all the values of an array when I print this: ber_MFSK = M/2*qfunc(np.sqrt(k*ebno_theory)) print(ber_MFSK) and give me this: [ 1.58655254e-01 1.30927297e-01 1.04028637e-01…
pythonasked 7 years ago Sergio Nunes 351 -
4
votes3
answers752
viewsString with JS Function Name
In javascript, how do I take the value of a string and use as a function call, save in the database which function to use in the onchange of an input, exe: validaData, validaCPF, diaUtil. Example:…
javascriptasked 7 years ago HUGO PABLO 111 -
4
votes2
answers4742
viewsWhat is the "res.send()" command for in Express?
I am studying Nodejs for academic purposes and during the implementation of a project I came across this command. What it serves?
-
4
votes1
answer361
viewsChange button color at runtime
I asked for help on how to paint a button with 3 different colors: You can put 3 colors on a button? But I’m trying to change his color at runtime and I can’t. Even instantiating a new and…
-
4
votes2
answers2564
viewsDoubt about marking "volumes" inside the Docker-Compose.yml
The Docker-Compose.yml below has been taken from the Docker documentation itself. My question is: why inside the db container we have the reference of volumes and at the end of the file the same…
-
4
votes2
answers455
viewsHow to fix this error "Cannot Convert from 'int' to 'char[]'
Why is this error presented? I believe the logic is right.…
-
4
votes1
answer357
viewsDifferences between Python and Javascript in relation to arrays?
I’m having some difficulty because in Javascript it was possible to do this: const x = [] x[0] = 1 x[1] = 2 But in Python when I create an empty list and try to make a statement it says that the…
-
4
votes1
answer944
viewsHow to pass values by reference in Java?
Gentlemen, one of the methods of the class Array has the method sort. The method sort works like this: Arrays.sort(vetor); The vector itself is changed, I searched in many places and from what I…
-
4
votes1
answer817
viewsUnity change the order of a game Object via code by C#
Well I have a Game Object called Party Frames. Inside it I have several prefabs with different names (their names are the character Ids) and are Uis of character faces. The only thing I want is to…
-
4
votes4
answers1933
viewsHow to choose a convention for variable and function names?
I am going through the second development company and in both have no own convention to use in the declarations, in the codes caught functions declared as follows: PHP and jQuery function…
-
4
votes1
answer151
viewsLinear-gradient does not appear in CSS3
I am trying to apply a linear-gradient to a DIV but it is not appearing in the browser. I have tested in Opera, Chrome, Safari and Firefox but it does not appear at all. My CSS looks like this:…
css3asked 7 years ago Webster Moitinho 511 -
4
votes1
answer48
viewsquery executes in the database but in the project points error
I have a query native: SELECT dist.nome Distrito, enti.nome Entidade, dist.id_distrito, dist.codigo_dne, dist.id_entidade, dist.id_municipio, dist.id_uf, dist.flag_ativo, muni.nome Municipio,…
-
4
votes1
answer527
viewsBlade OR syntax within Laravel Collective input value
The following input works normally, but when I pass it to the syntax of Laravel Collective, says that the variable $servico does not exist. It does not exist at all, so it should show the value…
-
4
votes1
answer133
viewsC++: Addition of ". cpp" implementations in Visual Studio and GCC
In C++, what is observed in a quick internet search is the orientation that only ". h" files should be included. A sample of this can be observed here and especially here. In Visual Studio, the…