Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers1588
viewsHow do I place the inverted (decreasing) Y-axis in the R?
I’m trying to present some graphs on uniformity coefficient, but normally in this type of graph, the Y-axis is organized in descending order, from 100 to 0. I would like to know how do I perform…
-
6
votes1
answer1949
viewsWhat is the difference between Debug and Release?
I started having the error: "Microsoft C++ Runtime error library". And I got many problems trying to fix this error. I was using Qt Creator with mingw32 in mode debug, but I realized that this mode…
-
6
votes2
answers16970
viewsHow to print A4 pages using CSS?
I currently use the mpdf library for reporting. However, in some reports I need to send more than 400 pdf pages and this ends up taking a long time and consuming many server resources. I even…
-
6
votes2
answers5333
viewsHow to do exponentiation in Java?
I’m trying to make a accrual of compound interest and I have this code that follows until the moment. public class ExDesafio_Aula1 { public static void main(String[]args){ double investimento =…
javaasked 8 years, 2 months ago Tiago Prudente 79 -
6
votes1
answer878
viewsCustomized authentication with CPF and E-MAIL
I’m thinking of a way to authenticate users using the email and the CPF of the same, so far not found a way to do, someone has a suggestion? public function auth(Request $request) { $credenciais =…
-
6
votes2
answers305
viewsIs it possible to run Acrobat Reader without putting all the way of its executable?
I am opening files in PDF format by Java and for this I am running Acrobat by Java also, follows the path line to the Acrobat executable: String cmd = "C:\\Program Files (x86)\\Adobe\\Acrobat Reader…
-
6
votes1
answer673
viewsHow to correctly identify clusters using kmeans?
Suppose I wish to classify the specimens of the iris dataset using the k-Means method. Also, I want to assess whether the rating was good or not. The easiest way to do this is as follows:…
-
6
votes3
answers68
viewsregex Return false?
console.log(rule); // rule = max18 // rule = max120 // rule = max6 var pattMax = new RegExp('^(max).(\d{1,3})'); pattMax.test(rule); //false? if(pattMax.test(rule)){ console.log('é max seguido de 1…
-
6
votes2
answers2375
viewsAdd real Brazilian currency div
The script is adding up, but only numbers. I would like to have the values with dots and commas. For example: 1,000,00 + 100,00 = 1,100,00 Somebody give that strength? Follow the code below:…
-
6
votes1
answer59
viewsHow to synchronize two scrollbars based on percentage?
I have a <DIV> overflow and a <TEXTAREA>, the problem is that the element that will be synchronized ends rolling over that the expected, instead of following the basis of the percentage.…
-
6
votes2
answers562
viewsSwitch case Java ends without reason
I have an example of switch-case with 8 options. But from the case 7 he finishes the program. He was to return to the menu option after execution. The case has limit of options? Follows the code:…
-
6
votes4
answers10625
viewsConstructing SQL tables - use or not fields with Not Null?
I have a question regarding the construction of tables and field use Not Null. I know that for fields of Primary Key, it is necessary for him to be Not Null, but in other fields, what is the need to…
-
6
votes2
answers1023
viewsHow to remove a repeated character in sequence?
How do I remove repeated characters in sequence with PHP? Entree: Ellizabetth Exit: Elizabeth
phpasked 8 years, 2 months ago Guilherme Freire 767 -
6
votes2
answers6368
viewsHEAD is Detached in Repository
I’m using NETBEANS and GIT. I made a few changes to when the commit is giving this message: HEAD is Detached in Repository My repository is like this:…
-
6
votes2
answers475
viewsAngular locking GET form Submit
I have a form where I send a query to the current url, through parameters GET. For example, I have url/teste, when sending the query via this form, will url/teste?term=minha+consulta. I didn’t use…
angularjsasked 8 years, 2 months ago Wallace Maxters 102,340 -
6
votes0
answers178
viewsHow to detect and read text in an image?
I intend to develop an application through which an image submitted by the user should be processed and its text blocks detected and read. How should I do it?
image-processingasked 8 years, 2 months ago Rodrigo Rigotti 12,139 -
6
votes1
answer91
viewsMini search engine
I am making a mini search system for urls that are stored in a.txt file, one per line, my problem is the performance issue because I have 5000 urls stored (only) and it is already slow in searching,…
-
6
votes1
answer1328
viewsHow to restrict dates in Mysql and SQL Server?
I wonder if I can restrict certain dates in the database itself, not in the code. For example, I have a table that records date of entry and date of exit. Here are some requirements. The date of…
-
6
votes1
answer1263
viewsHow to avoid buffer overflow in C/C++
The program below allows the occurrence of memory overflow, as it is possible to overwrite the variable zero, placing a value "large" in the variable buffer. How to make a safe program by avoiding…
-
6
votes2
answers4450
viewsHow to use openssl_encrypt encryption method?
It’s been a week that I search in everything that is site but I can not understand, I’m very curious about the use of this function but I can not find anything that explains in a simple way, someone…
phpasked 8 years, 2 months ago Otavio Fagundes 978 -
6
votes2
answers188
viewsWhat is the difference between the following ways of using the jQuery ON and OFF methods
1 - I used to use this way: $(document).off('evento', 'elemento', nomeFuncao); $(document).on('evento', 'elemento', nomeFuncao); 2 - But recently I used it and it worked the same way.…
-
6
votes2
answers248
viewsHow can I make the Blur effect on IE?
I’m using this css code to do the effect blur in a div: .blur { -webkit-filter: blur(25px); -moz-filter: blur(25px); -o-filter: blur(25px); -ms-filter: blur(25px); filter: blur(25px); } <div…
-
6
votes1
answer334
viewsTime Zone Javascript
I have an app, where I get Time Zone from PC. var d = new Date() var n = d.getTimezoneOffset(); In my situation, it returns 180, I believe it is -3 Hours (180 / 3). Thus, I have doubts about which…
javascriptasked 8 years, 3 months ago abcd 1,284 -
6
votes1
answer3711
viewsWhat is Native Script?
I recently read about Native Script, wanted to know a little more about and how it works. What is the Native Script? What are the advantages? How it works? Is it worth using? While your learning…
-
6
votes3
answers720
viewsNullpointerexception Java JPA CDI Tomcat
Good afternoon guys. I am developing a Java test application with JPA, CDI and Tomcat. I created a basic test class and am getting the following error. Erro: Exception in thread "main"…
-
6
votes1
answer813
viewsSelf Relationship in EF
I’m having the following problem creating two self relationships. When rotating the Update-Database The following error message appears: Unable to determine the main end of an Association between…
c# entity-framework asp.net-mvc-5 entity-framework-6 code-firstasked 8 years, 3 months ago Lucas Ost 319 -
6
votes1
answer4187
viewsHow to implement Automapper 5.0.2
I set up a project a while back, as follows, A Class called Automapperconfig as follows: public class AutoMapperConfig { public static void RegisterMappings() { Mapper.Initialize(x => {…
-
6
votes2
answers148
viewsWhy doesn’t the pointer increase the value?
Here was to increase the value of the variable, but it does not work. #include <stdio.h> #include <stdlib.h> int main() { int *p, x = 10; p = &x; *p = (*p)++; printf("%d \n", *p);…
-
6
votes2
answers614
viewsInterface and inheritance for the Java connection class
Considering the object orientation, would the use of inheritance and interface in this way be correct? But in this way, any request for connection to the database will need a new object. Would have…
-
6
votes1
answer981
viewsreplace all occurrences of a character in a javascript string
I need to replace all occurrences of these 2 characters "_1" in a string with "_2", but Regex does not accept to put a variable there. var current_registration_number = 1; html =…
-
6
votes1
answer71
viewsHow to call an object within the creation of another object
I have a Person class and a Date class, the Person class creates a person the date class creates a date to use as the date of birth in the Person class, how do I create a date without having to use…
-
6
votes2
answers878
viewsMVC Ioc Builder without parameters
Hello. My application is triggering an error while trying to create a new item. I’m getting this error message: No constructor without parameters has been set for this object. But my controller…
-
6
votes2
answers1107
viewsforeach can replace fetch_array?
I saw in a video that the guy takes the query and plays straight in foreach and manages to list without any problem, my doubt is the following: if really possible, using only foreach would be much…
-
6
votes3
answers3191
viewsShould I use the «or die»?
I saw this question Display mysqli error using die and I got to thinking I should always wear the or die or is it just for those who are just beginning to see that it gave problem? $sql =…
-
6
votes2
answers194
viewsHow to read the command line?
Let’s say I want to do a routine to automate the process of compiling a program. In general (language independent), you call compiler from the command line. For example: javac meuPrograma.class or…
-
6
votes1
answer328
viewsError Based on Accentuation
Hello! I’m developing a Hybrid APP that uses a PHP Webservice to send an email and call a Procedure in Mysql by filling it with the same email details, until the email sending part is OK it sends…
-
6
votes3
answers956
viewsBecause there are two uses in Delhi
Because there are two uses in the Units of Delphi ? Just below interface and soon another in implementation, what the purpose?
delphiasked 8 years, 3 months ago Carlos Bridi 831 -
6
votes1
answer2618
viewsHow to use <address> tag, doubts?
It is correct to use the element <address> just for an email? For example: <address><a href="mailto:[email protected]">[email protected]</a></address> Examples I always…
-
6
votes1
answer2249
views2 gifs alternating the same space (frames loading correctly)
Good evening guys, I’m having a little challenge here and so far I haven’t managed to get the groove, if anyone can help me I would be very grateful: I am trying to put 2 gifs allocated in the same…
jqueryasked 8 years, 3 months ago Hugo Deveza 113 -
6
votes1
answer1689
viewsIs it recommended to use PHP caching? How to use?
PHP caching is basically a cache created from your site to prevent it from being wasted searching for data with each page request. When a user accesses a page, is saved a copy of it in HTML on the…
-
6
votes1
answer577
viewsProblem with jquery-ui autocomplete via Ajax/PHP
Talk to the guys! I’m doing an application that recovers cities from a SOAP webservice, my application is already all ok, with queries, however I’m trying to implement now an autocomplete, and I’ve…
-
6
votes1
answer441
viewsWhat is the difference between Kotlin data class and Scala case class?
In Scala we have case classes, for example: case class Pessoa(nome: String, sobrenome: String) and in Kotlin we have data classes: data class Pessoa( val nome: String, val sobrenome: String ) What’s…
-
6
votes1
answer1124
viewsHow to filter with ANGULAR JS not to repeat equal names?
I have 2 related tables in the bank: The first table: it is called restaurant to another table : Cardapio . The Cardapio Table receives the primary key of the restaurant so it becomes foreign until…
-
6
votes2
answers113
viewsIs it possible to access the same argument twice in sprintf?
In PHP times the function sprintf. With it we can format the values sequentially passed from the second parameter. For example: sprintf('Meu nome é %s e tenho %d anos de idade', 'Wallace', '26') The…
-
6
votes1
answer4628
viewsWhat is the difference between Sanitize and filter in PHP?
Making a safety class for PHP I noticed the existence of two similar constants, like: FILTER_SANITIZE_NUMBER_INT and FILTER_VALIDATE_INT. The standard follows in validations of email, string and…
-
6
votes1
answer1911
viewsMaximum size for database tables
What can be the maximum size that a table can have? To make it clearer: a table in Mysql, what is the maximum size it supports? And in SQL Server, Oracle, Postgresql?
-
6
votes1
answer609
viewsCSS animation does not work on Mozilla
Guys, I’m having a little problem with a CSS animation. I made it work normally in Chrome and even in IE, but in Firefox it gives a bug. I tried to put the prefix -moz- in some properties, but…
-
6
votes2
answers323
viewsShow command executed when SQL error occurs
Considering the following command executed BEGIN TRY -- Generate a divide-by-zero error. SELECT 1/0; END TRY BEGIN CATCH SELECT ERROR_NUMBER() AS ErrorNumber ,ERROR_SEVERITY() AS ErrorSeverity…
-
6
votes2
answers589
viewsBranch x Checkout x Merging automatico for master
Help! If anyone’s been there or knows how to help, I’ll thank you. created a branch: git branch <xxxx> changed to new branch: git checkout xxxx I changed a file line inside the branch xxxx I…
-
6
votes5
answers9322
viewsHow can I generate a 7-character alpha-numeric key?
How can I generate a key with 7 alpha-numeric characters, completely random in PHP? In other words I want to make a key with numbers and uppercase letters completely random. I’ve tried using Rand,…