Most voted questions
150,413 questions
Sort by count of
-
10
votes2
answers6254
viewsWhat is data persistence?
What would that term be? I always see around and can’t decipher!
-
10
votes1
answer347
viewsRemove extensions that I don’t use would impact PHP page execution performance
I installed PHP through the Web Platform and it came with several extensions loaded: php.ini [ExtensionList] extension=php_mysqli.dll extension=php_mbstring.dll extension=php_gd2.dll…
-
10
votes1
answer2317
viewsMysql local to remote sync
I wonder if it is possible to replicate a local Mysql database with the remote. Use Phpmyadmin and do not know if it will be possible because I have no fixed IP to find each other.
-
10
votes1
answer50008
viewsMasks with jQuery: Phone, CPF and CNPJ
I need to create some masks for CPF, CNPJ and phone. The problem is that I have never used jQuery and have never done any of this before. I would like someone to help me because I searched some…
-
10
votes2
answers4980
viewsHow to determine the last element of a list in a foreach?
Given any list, how to know if the foreach is in the last element? There are some ways to do this, the one I see most is to save the last element and check if the current element is the same, but…
-
10
votes4
answers6185
viewsWhat is the difference between match_parent and fill_parent?
When I am editing the xml layout I always get confused when choosing between the match_parent and the fill_parent, and I always end up thinking I’m doing everything wrong because I don’t know what…
-
10
votes2
answers551
viewsWhat is the point of an explicit C#interface implementation?
I usually use interfaces in PHP and I was able to do a similar example, only for tests, in C#. class MyClass : IWriter { public string Writer(string str) { return str; } } interface IWriter{ public…
-
10
votes2
answers1469
viewsDynamically Update php Session with jQuery
Well, I have the function below that, with Jquery, I update the cart values display labels. Everything works: function add(_quant, _preco, _total, _estoque) { quantidade =…
-
10
votes2
answers367
viewsDifference between . NET Framework for Entity Framework
I have an Asp.Net MVC project that when clicking properties the following information is displayed: When opening the file packages.config I could see that other information: After all, what exactly…
-
10
votes2
answers375
views -
10
votes2
answers153
viewsIs there any way to run C# from the command line in interactive mode?
I’m used to using PHP and Python, languages that allow you to run on the command line in interactive mode, so it’s easier to test or learn something new, since I won’t need to compile all the time…
-
10
votes1
answer658
viewsWhat tools are available for C#project installers?
I’m having trouble finding a satisfactory installer solution for my Windows Forms and WPF applications. What Microsoft makes available is flexible or I’m not finding? What do you use? What do you…
-
10
votes2
answers28807
viewsHow to insert a first line indent with css?
I don’t know if the name is even indent, but how do I apply this space as in the image below in my paragraphs with css? Have some class in bootstrap?…
-
10
votes4
answers1970
viewsHow to abbreviate words in PHP?
I have common information like people names and addresses, and I need it to contain at most 30 characters without cutting words. Example: 'Avenida Natalino João Brescansin' => 'Av. Natalino J.…
-
10
votes1
answer3149
viewsHow does Javascript import libraries?
In programming languages such as Java, C# and C, when we want to use some command or function we should include the library containing the commands we want or the classes if it is object oriented…
-
10
votes1
answer13822
viewsWhat’s the simplest way to make an IS NULL with Eloquent?
I saw tutorials on the internet that way you had to make a IS NULL is the following: Remessa::where('campo', 'IS', DB::raw('NULL'))->get(); But I was wondering about this, because if a ORM is…
-
10
votes2
answers6643
viewsWhy is my function concatenating instead of summing the numbers?
I am learning Javascript and I am breaking my head with this code that I created. Why is my function concatenating instead of summing the numbers I store in the variables? <!DOCTYPE html>…
-
10
votes1
answer975
viewsWhat differentiates a microframework from a full stack framework?
I see a lot of terms around Fullstack framework when it comes to frameworks like Codeigniter, Laravel, Symfony and Cakephp (from PHP) and Django (from Python). But when you talk about Silex and…
-
10
votes3
answers821
viewsWhat is the difference between "decimal. Divide" and the traditional "/" in C#?
decimal a = 10/5; Returns 2 decimal b = decimal.Divide(10,5); Returns 2
-
10
votes5
answers10575
viewsSubtraction of hours in php
When I subtract the times the result is "0" I want it to be in the time format, example: 19:38:20 - 19:37:00 = 00:01:20. Note: The values "time" of the database I am assigning to "$time1" and…
phpasked 8 years, 9 months ago Van Persie 133 -
10
votes2
answers8768
viewsConvert float or double in real $
I have a float = 11.6 I want to convert into Brazilian currency R$ 11,60, someone knows how to do?
javaasked 8 years, 9 months ago Mateus Carvalho 1,494 -
10
votes4
answers16860
viewsHow to get the current location of android device?
I am developing an android application that needs to get the current location of the device (Latitude, Longitude) and use this data in google maps...how can I do this? If you help me get only the…
-
10
votes2
answers1644
viewsWhy use the Angularjs?
I have done a lot of research, but I can’t understand why I use Angularjs, using pages .php then bank returns, CRUD and etc. I deal directly on the pages .php, lists of bank records, insertion and…
-
10
votes2
answers932
viewsBest practices when working with Multithread
Is the pseudo-code below following the good practices for an asynchronous code? It should: Synchronously start several tasks; After starting tasks, wait for all tasks to complete a post-processing;…
-
10
votes1
answer2752
viewsWhat are the differences between Grunt and Gulp?
I’ve heard a lot about Grunt and Gulp, but I still don’t understand what they work for exactly. my doubts, are the following: What are they for? Is there any relationship between them? They can be…
-
10
votes1
answer405
viewsWhat’s the difference between cloud computing and web computing?
What is the difference of cloud computing and web computing? Both are not local and are mostly accessible via browser then one gets the impression that they are similar concepts.…
-
10
votes1
answer7950
viewsWhat is the difference between functions and procedures?
I’m studying algorithms and I’m having a hard time understanding the difference between them and when to use these sub-algorithms in a program. I’m learning to code with algorithm in Portugol.…
-
10
votes9
answers17879
viewsHow to identify if a string is a palindrome?
A palindrome is a word or phrase that has the property that can be read from right to left and from left to right. For example, the strings "aaaaa", "1221", "bbaabb" are palindromes, however the…
-
10
votes2
answers29411
viewsHow to export a DIV HTML to PDF by rederizing CSS?
Does anyone have a code that can export a DIV to PDF by rendering all the CSS of this DIV? Is it better to do this in the backend (Java) or in the frontend (Javascript)? If anyone can help, thank…
-
10
votes5
answers12645
viewsHow to create a vector without determining its size in Java?
I have a class TesteAplicacao that is to test and a class Teste with attributes and methods. When creating a vector in Java: Teste[] t = new Teste[10];// veja que teve definir um tamanho It would be…
-
10
votes4
answers3043
viewsWhat are temporary tables for?
What use can these so-called temporary tables offer? Is there any advantage to using them? There is a difference between the temporary tables and the "normal tables"?
-
10
votes2
answers15565
viewsWhat are the differences between Kernel and Microkernel?
Studying about operating systems I came across concepts about kernel and microkernel. In my researches I found the following definitions: Kernel In computing, the core or core (in English: kernel)…
-
10
votes1
answer112
viewsWhat is the purpose of "&" in the generic type statement?
In that code, the author creates a class as follows: public abstract class GlyphIcon<T extends Enum<T> & GlyphIcons> extends Text { /* ... */ } My question is to understand the…
-
10
votes2
answers341
viewsError updating the entire JAVA table
I’m trying to perform a mass update to update all prices of products registered in the system, adding the value passed by the user to the unit price of the registered product, according to the…
-
10
votes2
answers938
viewsUsing hashcode as id is good practice?
I have a short list of strings (where the strings will never repeat themselves) and would like to use hashcode as id, is a good practice?
javaasked 8 years, 11 months ago daniel12345smith 2,120 -
10
votes0
answers987
viewsOauth 2 authentication server in ASP.NET Web API
The company I work with develops internal applications, but for policy reasons, we will have a subdomain to handle authentications such as: login.dominio.com.br where you will have an app…
-
10
votes2
answers424
viewsDeserialize Json in which the key is a number
I’m trying to deserialize Json with C#, but I found a problem. In Json you can use numbers in the names of "keys" (keys), but we can’t use numbers in property names in C# Example: Json: "c":[ {…
-
10
votes1
answer247
viewsWhat are the differences between mocks and fakes?
When we implement tests in software, Mocks and Fakes are two techniques or approaches to isolate the code being tested from the rest of the system. Without going into it: Mocks are like empty shells…
-
10
votes2
answers2050
viewsHow to show only "x" characters in a div?
Hello, I am developing a system where will be publications, but I would like that, in each publication, shows "x" characters, and passing of this value, shows a button written "Show more", same as…
-
10
votes4
answers5008
viewsOdd or even array in PHP
I need to create a array and tell if the values within it are even or odd. I made the code that way: <?php $par_ou_impar = array(2,3,4,56,5,42,98,100); for ($i = 0; $i < count($par_ou_impar);…
-
10
votes2
answers424
viewsWhat is the purpose of empty command blocks or which do not belong to any command?
A command block is composed of two or more commands between keys {...//Comandos}, I can use them for the following situations I already know: In a if: if(codicao){...//Comandos}. In a for:…
-
10
votes2
answers7290
viewsWhat is the importance of Integrity and Crossorigin attributes?
I have been doing some research, but I still have this doubt. Currently some frameworks, your link and script are coming with attributes integrity and crossorigin. Ex.: <link rel="stylesheet"…
-
10
votes1
answer721
viewsWhat is dynamic code and static code?
Recently in a conversation with friends came the term dynamic code and static code. With this came a certain discussion. Some said that dynamic code is related to scaffolding, others with code…
terminologyasked 9 years ago Randrade 21,612 -
10
votes2
answers5991
viewsBIT(1) versus TINYINT(1) for boolean values
I may be wrong, but I have the impression that in practice the default in Mysql is to use columns of the type TINYINT(1) to store boolean values, true/false or 0/1. Only that TINYINT accommodates up…
-
10
votes3
answers1808
views -
10
votes1
answer1943
viewsWhat is Database Connection Pool?
What does pool of connections mean when it comes to the Database? What does this concept imply in practice? What is its usefulness and importance in everyday life? Below is a definition I found in…
-
10
votes3
answers1938
viewsTest case is a use case?
I have doubts about use case and test case. In my understanding both are the same things, just a diagram of UML, but in college my teacher said that a test case is not a diagram nor a use case, but…
-
10
votes1
answer812
viewsFailed propType: Invalid prop `Children` supplied to`Router`
I created a project to study React and I’m trying to uncouple my Header from the app by creating a component for it. I created a file Header.jsx and passed the code there but I’m getting the…
-
10
votes2
answers925
viewsHow do C’s hands work?
first What is the difference between declaring: char* s and char *s? 2nd It is always necessary to use the function malloc when declaring a inter? Example: char* s = malloc(sizeof(char)); //ou…
-
10
votes2
answers8715
viewsWhat is the use of using foreign keys?
I’ve been learning about foreign keys and I’m having a hard time understanding what they’re useful for. Its purpose would be to "divide a table into several tables, leaving its data always atomic",…