Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer78
viewsSingle ring value
I’ve seen several posts on the subject but it’s not exactly what I was looking for. A while ago when I was in internship, I was told to keep some records with a unique id on each one, and they told…
-
4
votes1
answer1369
viewsInsertion Sort in double-linked circular list
I’m having problems with Insertion Sort, it’s probably in the stopping condition, the problem I’m already days with this problem and so far I haven’t been able to leave the place. Could someone give…
-
4
votes1
answer3950
viewsChange figures numbering in Latex
Is there any way to change the numbering of figures in Latex? For example it starts the figure as: Figure 01: Legend I would like it to be in this format starting in 2.1 Figure 2.1: Legend…
-
4
votes1
answer58
viewsIs the window rendered by the gift or does it come before that?
A curiosity: I wonder if the window is rendered by dom when loading the window, as the document is usually window.document.html. Or the dom comes after this parameter?…
-
4
votes1
answer292
viewsOpen a div according to your ID
I have a menu that, when right-clicking, it opens in a DIV. Everything happens within a tr (line) of a table. My problem is this, have a table with several tr, and each of them receives a ID. And I…
-
4
votes1
answer264
viewsPerformance difference between static and shared library
Which is the best performance? Compile the program using libraries such as Mysql Connector and Sqlite as Static (staying inside the compiled binary) or as Shared being separated from binary. In…
-
4
votes4
answers715
viewsWhat’s wrong with the c-code?
The task: Pedrinho and Zezinho need to study solving mathematical expressions for a test they will do. For this, they want to solve many exercises before the test. As they know how to program, so…
-
4
votes1
answer3440
viewsHow to override equals method?
I am trying to overwrite the equals method for instead of validating if an entire object is equal to the other just check if a value this object is the same as the other. Cenário Real: Student…
-
4
votes2
answers2097
viewsMake div appear when right-clicking mouse
Guys I use the function (Hover) to make a DIV appear, I wonder if there is a way to make it appear when right-clicking. That is, a child DIV appears when I click on a parent DIV right-click. Follow…
-
4
votes2
answers2098
viewsDisplay decimals (Currency) is rounding
I have an application where the price should go in format int decimal-free. int Valor = (int)(produto.Valor * 100); //o produto.Valor é um decimal The problem is when I want to display this value in…
-
4
votes1
answer101
viewsCS1526 & CS8032 error
By error translation says I have to put a ")" at the end of "type" however now there is a ")" at the end of the "type" I tried to change to "[ ]" but it didn’t work I tried to put 2 ")" as I have…
-
4
votes2
answers9616
viewsRead input data to EOF in URI Online Judge
Hello, I’m trying to solve the following problem below: However, I am having trouble putting this EOF condition in java. Here on stack I found attempts solutions, but they are related to using…
javaasked 8 years, 6 months ago Filipi Maciel 395 -
4
votes1
answer2845
viewsRemove Duplicate Space in Middle of String
Hello, I need to remove duplicate spaces in a string and leave only 1, identico a funcao arrumar do Excel. How to do this in sql?
-
4
votes3
answers6684
viewsHow to create a dynamic variable
I have a field(input text), and would like to get the value, and pass as variable. In other words, pass the value of this text field into the: var valor do campo aqui ; See the example I leave:…
-
4
votes3
answers63
viewsJavascript send an account to an element
I have 2 fields on my site where in one of them I have to enter a number as I write and another that has to receive this value adding +3. I used the following form: <input type="text"…
javascriptasked 8 years, 7 months ago programmer2016 545 -
4
votes6
answers41177
viewsHow to find the position of an item on a list?
I am writing a program that takes a specific amount of values, and returns the lowest value of the list and its position. It is as follows: quantidade = int(raw_input()) numeros = raw_input()…
-
4
votes2
answers161
viewsProtecting data in memory
I read several articles on cryptography etc... The cryptography reported by posts was a success in my program, however some data remains in memory being vulnerable to Assembly readers in real time.…
-
4
votes1
answer305
viewsRowfilter.regexFilter does not filter Date type columns in Jtable
I have a JTable with a TableModel customized, and I’m trying to run a search field using JTextField. However, columns of the type Date and my class Cadastrante are not researched. In my TableModel,…
-
4
votes2
answers129
viewsOperation with Java Factorials
Can anyone ask this question in Java? I have no idea how to do, I’m still beginner. Input format An integer x corresponding to the X of the equation and an integer n indicating a number of series…
javaasked 8 years, 7 months ago João Carlos 41 -
4
votes2
answers284
viewsHow to use jQuery in MVC Architecture?
We know that MVC is a software architecture standard (Pattern design) which makes a separation of: Vision (User interface), Template (Business rules), Controller that performs communication between…
-
4
votes1
answer389
viewsDodging an Obstacle without Navmeshagent
I need to create an obstacle clearance script but I can’t use Navmeshagent because this project depends on implementations where the Navmeshagent doesn’t work. See that in the image below there are…
-
4
votes2
answers498
viewsService versus Broadcastreceiver
What’s the difference, on Android, between Service and Broadcastreceiver? How long a Service can run (running)? How long can a Broadcastreceiver run (running)? I can create notifications via…
-
4
votes1
answer619
viewsIs it correct to create a variable within an if?
it is correct to create a variable within an if ? In the code below you create a variable within the if, and avoid using the same filter twice. if($id = filter_input(INPUT_GET, 'id',…
-
4
votes0
answers853
viewsPost Office - PLP XML
In the Postal web service there is a process of sending plp (pre-mailing list), which contains information of the postal objects. I’m sending this plp by the method fechaPlpVariosServicos. But when…
-
4
votes3
answers13726
viewsError while running Composer
I created a virtual machine with Vagrant and used Puphpet. However when I run Composer I have as return only this list of error,I have created 4 different machines and always the same error. Someone…
-
4
votes2
answers646
viewsAutomatic PHP function
I need every day, the system sends shipping orders to the post office. How can I do this automatically, without needing any user to load the page or anything like that? I would use the same logic of…
-
4
votes1
answer792
viewsHow does the system of voting and rating by stars work?
I see the rating of the apps in the stores of Microsoft and Google and I can not understand the logic of both, I would like to make ratings by stars! But first I need to understand the logic of…
-
4
votes3
answers2140
viewsHow to use Thymeleaf each?
Observe the code well in my controller; @RequestMapping("/produtos/form") public ModelAndView form() { ModelAndView modelAndView = new ModelAndView("produtos/form"); modelAndView.addObject("tipos",…
-
4
votes2
answers78
viewsHide controls for flash (swf)?
How is the correct way to hide the controls in the SWF? For when the user right-click does not appear the options... These are the controls: This image here is what I want it to be about: I don’t…
-
4
votes3
answers1388
viewsMinimum search from a list ignoring zero values
I have a list of values with zero elements and elements other than zero and I wanted to return the lowest value of the list and its Index, but ignoring the zeroes, that is, the fact that there are…
-
4
votes1
answer475
viewsWhat is the difference between array_replace and array_merge?
I wonder what the difference is between array_replace and array_merge, because in some cases the two seem to have similar behaviors. Example: $informacoes = ['nome' => 'wallace', 'idade' =>…
-
4
votes3
answers3525
viewsBrazil default date format does not work on bootstrap
I have this datepicker component of bootstrap <div class="col-md-2"> <input id="dataSolicitacao" type="text" name="timepicker" class="b-datepicker form-control form-white"…
-
4
votes3
answers1646
viewsJava Maps: take key from value
Hello, I have a string map for string: Map<String,String> myMap = new Map<String,String>(); with a series of values myMap.put("1","valor1"); myMap.put("2","valor2");…
-
4
votes1
answer662
viewsNo Auto-Increment Primary Key for CPF in Entity Framework
The scenario is as follows: I have an Employee class. A primary key of it must be the employee CPF that the user type. The Problem: the key follows a default auto increment, not going according to…
-
4
votes3
answers372
viewsList dates calculated per month based on parameters
Based on two dates received per parameter, I am trying to list all dates per month (one date per month) based on the start date and up to the end date. These dates returned have to check the day of…
-
4
votes2
answers1494
viewsAccess and permission control
I have a CRUD project to manage faculty and college courses using jsf+primefaces+jpa. My problem is this: There are the users who are the coordinators of the courses and the users who are…
-
4
votes2
answers87
viewsJavascript - IF running before time
Friends, could you explain to me and if possible, give a solution to the following problem? Man if where it is written: if(aux == 0) { console.log("não encontrado"); } It is running before check in…
-
4
votes1
answer1524
viewsWhat is the Expect100continue property for in System.Net.Servicepointmanager?
I am working on a system that manages customer licenses. There is a feature in my system to return the customer’s product key , making a query on Web Service. And simple you inform the CNPJ it…
-
4
votes1
answer2860
viewsWhen should I or should I not use the if without keys?
I usually use always with keys because until today I do not know how exactly is the function of if without keys and if Else can also be without keys. Is there any variation in behavior between…
-
4
votes3
answers1666
viewsRename gitignore.txt to . gitignore
I created a gitignore file on Windows, so that some unnecessary files are not uploaded to Github. However, this file is with the extension ". txt" (gitignore.txt). I want to leave you only as…
-
4
votes2
answers166
viewsIOS - How to scale a view by Swift?
I have a view called viewV and would like to change your Width and Height shown in the image below via Swift code.…
-
4
votes2
answers1190
viewsThe Operator != is Undefined for the argument type(s)
I am trying to create a method to save users in the database by doing the following check if the id past user is different from null he changes if not he registered. Code public void salvar(Usuario…
-
4
votes4
answers912
viewsAdd variables to obtain end date
I have a form with a rental register. In it, I have the fields $datainicio, $meses and $datatermino. The start date I put automatic, according to the date of the day. The months must be placed at…
-
4
votes1
answer562
viewsView SQL at Runtime
Is there a monitor that shows me the sql script at runtime? For example, during debug, I would like to see how the script was mounted by the following code: var q = (from proc in…
-
4
votes1
answer476
viewsREST - Http x Json
I did some research and have some questions about REST: Http is Rest? JSON and XML are only the return format of a Rest operation? REST x Web Services: are the same things? SOAP would be the…
-
4
votes2
answers658
viewsIn C++ what is the command corresponding to Java super()?
In Java: public class Teste extends Testando { private String nome; private int numero; public Teste(String teste, String nome, int numero) { super(teste); this.nome = nome; this.numero = numero; }…
-
4
votes1
answer66
viewsWhy doesn’t my Return return the i do for?
#include <stdio.h> #include <stdlib.h> int BuscaLinear(int *sequencia[], int tamanho, int valor) { int i; for(i=0;i<tamanho;i++) { if(sequencia[i] == valor) { return i; } } return -1;…
-
4
votes2
answers614
viewsEnter data into a foreign key table
I am trying to register a user put in his table there is a foreign key linked to another table. My problem is that this foreign key is referencing the address table, only I still have no address for…
-
4
votes3
answers17331
viewsConvert Fractional decimal to binary
I’m trying to convert a fractional decimal number to binary. Let’s go to the example, representing, in binary, the number 0.625. 0,625 x 2 = 1,25 , so the first fraction is 1. It remains to…
casked 8 years, 7 months ago Matheus Francisco 650 -
4
votes2
answers792
viewsPDO vs Doctrine
Work with systems development in PHP, more focused on e-commerce. Currently I use the PDO to make my connection to a database, but out of curiosity I decided to search about the Doctrine, because…