Most voted questions
150,413 questions
Sort by count of
-
9
votes1
answer120
viewsDifferences between readonly Func<> and method
Forgetting a little questions like readability, what would be the differences between the following calls? readonly Func = (T1, T2) => { Return default(Tresult); } private readonly Func<int,…
-
9
votes2
answers2804
viewsWhat is the "connectionString" connection string?
What is after all to string connecting? In a string of connection what represents the data-source? And the provider name?
-
9
votes3
answers4376
viewsWhat is the purpose of the return of the main function and the importance of this function?
I would like to know the importance of the function main and what is the purpose of her return which is a whole? See a minimum example of function implementation main: int main() {…
-
9
votes1
answer296
viewsWhat are Sockets? And how to develop in C#?
I have to develop a socket, but I don’t know what it is or how it works! I wanted to know what it takes to create a C#Socket, I am using Visual Studio as IDE.
-
9
votes2
answers392
viewsHow to make lines intersecting on an edge, with CSS?
someone knows how to make an edge that "leaks" out of the div just like in the picture? need this cross border of the lower corners , these "xiszinhos" or "cruzinhas" Thanks in advance…
cssasked 8 years, 9 months ago Alex Martins 103 -
9
votes1
answer1084
viewsHow to calculate the ratio of text to "HTML" ("HTML ratio")?
The text of an "HTML ratio" refers to the amount of text on a page against the code of the same page. How to do this calculation, I know I should probably take the DOM, but the part exactly what…
-
9
votes3
answers2808
viewsHow to block Adblock?
I’m setting up a site that works with ads and so I can’t allow a user to log in with Adblock, I tried using the www.antiblock.org script but it only works on one page, on another page where I work…
-
9
votes3
answers189
viewsSQL - Restrict query data
Good morning, I have an app in WebForms than from two DropDownList obtain data from a database in MS SQL Server 2012. At first DropDownList it will present the name of several companies in the…
-
9
votes1
answer388
viewsHow do I create a home page for my GITHUB libraries?
Usually, when we activate the github page for a particular package, a url is generated for you to publish documentation regarding a particular library in the Github. In case if my account is called…
githubasked 8 years, 9 months ago Wallace Maxters 102,340 -
9
votes3
answers253
viewsIs there a "in" comparator operator in Javascript?
In Javascript there is a way to use in to check whether the value of a variable is contained in a list of values? A visual example: if (tipoDemissao in [1, 2, 5]){ valorDemissao = 525.20; }…
-
9
votes1
answer388
viewsThread control to avoid lock
I’m starting a Crawler and his idea is to download all the content of a given website. It already has some "usable" features. What’s killing me is, I’m doing it multithreaded, but the threads in a…
-
9
votes1
answer5823
viewsWhen to use the xmlns attribute in the html element?
In HTML5, when to use xmlns? Thank you! <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"…
html5asked 8 years, 10 months ago Ingrid Farabulini 1,002 -
9
votes3
answers247
viewsWhat is "One Level of indentation"?
I was watching this the other day video lesson on Laracasts, where there is an explanation that teaches to avoid accumulating too much code in one method, separating into several methods with…
terminologyasked 8 years, 10 months ago Wallace Maxters 102,340 -
9
votes1
answer4596
viewsWhat is the difference between Appcompatactivity and Activity?
What is the difference of AppCompatActivity for Activity ? From which version to AppCompatActivity was added to the Android?…
-
9
votes2
answers4807
viewsWhen should I use the class attribute in HTML elements?
I myself feel irresponsible for using so many class at will, without limits, at any time in any situation, whether to make use of CSS, or for use with Javascript. So I ask myself: am I right or, in…
htmlasked 8 years, 10 months ago Ingrid Farabulini 1,002 -
9
votes3
answers203
viewsLicensing: How to deal with date/local time tampering of a computer?
I am developing an application (Desktop) that requires license renewal periodically, following a model Saas. The model of the licence shall function as follows:: The license will be downloaded from…
-
9
votes3
answers830
viewsConvert rows to columns (Pivot?)
I have a chart with 33 million phone records with the structure below: ccpf_cnpj ddd telefone tipo origem 11111111111 83 81021111 M SERASA 11111111111 83 87472222 M SERASA 11111111111 83 81023333 M…
-
9
votes1
answer139
viewsHow does the data capture of a form work?
I have this code to get data from a form: @WebServlet(name = "computador", urlPatterns = {"/computador"}) public class computador extends HttpServlet { @Override protected void…
-
9
votes1
answer4488
viewsWhat is the file with the ".css.map" extension for when I compile a Sass script?
I am learning to use Sass. All learning is going well. The only thing I don’t understand yet is that every time I compile a file .scss, it generates a file with the same name, with the extension…
sassasked 9 years ago Wallace Maxters 102,340 -
9
votes2
answers209
viewsIs there a package management system on the Moon?
Many languages have package management system. This greatly facilitates the life of the programmer, making development more agile. For example, in the Python we have the pip and the easy_install, in…
luaasked 9 years ago Wallace Maxters 102,340 -
9
votes4
answers1308
viewsWhat is the purpose of an empty parenthesis "()" in a regular expression?
Searching in Stackoverlow English about regular expressions, I came across a certain expression where it presents in the same an empty group (an expression in empty parentheses). Thus:…
regexasked 9 years ago Wallace Maxters 102,340 -
9
votes1
answer1218
viewsSort numeric vector without using Bubble Sort
We usually learn in college that, to sort integer vectors, we use a technique called Bubble Sort: int[] vetorOrdenado = new int[8]; vetorOrdenado[0] = 2; vetorOrdenado[1] = 41; vetorOrdenado[2] =…
-
9
votes1
answer6414
viewsHow to put a link to download the app when the user enters my site by mobile
Well, I have a website and the app for IOS and Android. And I wanted every time the user entered through the smartphone he had the option to download the application, and already recognize which…
-
9
votes1
answer51550
viewsScroll in div if necessary
I have the following div on my page html <div id="divContent" class='content'> Bem vindo ao meu site <br /> 1 index index index index index index index index <br /> 2 index index…
-
9
votes1
answer298
viewsFind slow point in code . NET
I need to analyze a code that is taking too long to execute, the method code is extensive and makes several calls to other methods, I was thrashing to try to identify the point of slowness, but so…
-
9
votes3
answers61753
viewsRemove a specific element from the javascript array
Well I’m needing to remove an element from the array by index, for example: arr = [1,2,3,4,5,6] When removing index element 3: arr = [1,2,3] It is necessary that he remove everything after the…
javascriptasked 9 years ago Renan Rodrigues 3,709 -
9
votes2
answers1708
viewsIs it correct to concatenate PHP in Javascript?
I often use this method, but do not know if it is appropriate, to rescue the id in JS I use echo php <script type="text/javascript" src ="js/jquery.js"></ script> <script type…
-
9
votes3
answers49197
viewsHow to use the output of a select to mount another?
I built a select that concatenates a string. I want to use the result of this select in another select SELECT * FROM (SELECT CONCAT('caminho da tabela') AS caminho FROM tabela) AS result Can you do…
-
9
votes2
answers1164
viewsWhat are the differences between the "vw", "em" and "%" font sizes?
I’m having second thoughts about using the size units vw, em, %. Searching the Internet I always saw that some used some units of size, but I never really understood the difference between them. For…
-
9
votes2
answers1880
viewsUnity 3D and Android, how to handle txt file?
How to do in the Unity 3D read a arquivo txt line by line and store in a vector using C#. Well, I managed to manipulate the arquivo .txt, however in Android it doesn’t work. Follow the code I used.…
-
9
votes4
answers810
viewsSQL LIKE clause does not work with Sqlparameter
Following the recommendation that the @Maniero fez in that question I decided to parametrize the darlings SQL of my program. Behold: private void btnConsulta_Click(object sender, EventArgs e) { if…
-
9
votes2
answers3664
viewsConnection to the Bank drops after a certain time
I have a server where I have several web applications connected to the database(Mysql). The problem is that if any system gets idle it loses the connection to the bank and I have to refresh the…
-
9
votes2
answers450
viewsStatic blocks, heritage and constructors in Java
Hello, during my studies in Java I came across the following question Given the code below: class Foo extends Goo { static { System.out.println("1"); } { System.out.println("2"); } public Foo() {…
-
9
votes1
answer379
viewsAccentuation in meta Description
When using practice SEO on our website, we have to add to <meta name="description"> to be presented better, among other things. My doubt lies in using or accentuating the description. Is there…
-
9
votes6
answers49720
viewsConvert DATA dd/mm/yyyy hh:mm:ss to yyyy/mm/dd
I have a date in the following format 14/12/2015 00:00:00 and need to convert to 2015-12-14 as I can do it on SQL?
-
9
votes2
answers3327
viewsHow to make a motion system using touch in Unity?
When sliding your finger up screen executes the command and when sliding your finger down executes the command, an example of command would be a move up and a move down with the touch me return a…
-
9
votes2
answers2637
viewsWhat is the point and difference of using <![CDATA[]]> inside a <script> tag?
What is the point, or what is the difference of using or not the content of the script with this CDATA? <script type="text/javascript"> //<![CDATA ... //]] </script>…
-
9
votes2
answers208
viewsScript for modifying Bible texts (accessibility)
I’m not a programmer. I research accessibility features based on my low vision. I am trying to develop a workflow that locates in the Bible texts standard "John 3:16" and transforms it into "John,…
-
9
votes2
answers13617
viewsPython - 'int' Object is not iterable
Hi, I’m creating a character converter for your ascii code through a recursive Python function. However I have a problem "'int' Object is not iterable". This is my code: def cod(n): for i in n: i =…
-
9
votes2
answers1919
viewsWhen should I use GC.Suppressfinalize()?
In . NET, under what circumstances GC.SuppressFinalize()? What are the advantages of using this method? Obs: I found answer in the SO-en: When should I use GC.Suppressfinalize()? As it had nothing…
-
9
votes5
answers8511
viewsReverse array order
I have the array: var meuArray = [1, 2, 5, 7, 9, 4]; How to reverse the order so it stays the following way: [4, 9, 7, 5, 2, 1]
javascriptasked 9 years, 1 month ago Pedro Camara Junior 6,637 -
9
votes1
answer2058
viewsProgressive and cumulative hour counter with days
I have a project where I must accumulate hours worked of a service in a project, it must store in the bank the hours/days. So when started, if there is no previous time starts from scratch, but if…
-
9
votes1
answer196
viewsRstudio: do not automatically load variables in Environment
Whenever I start Rstudio some variables appear in environment. Is there any way to remove them automatically without using the famous rm(list=ls())? Thank you!…
-
9
votes2
answers521
viewsPerformance difference between multiple conditions in one IF or multiple IF’s separately?
During a change in a source code, I came across the following situation, developed by another developer: if ( booleano1 || booleano2 || booleano3 ) { if( booleano1 ) { //faz algo } if( booleano2 ) {…
-
9
votes2
answers203
viewsWhat does the "/" bar on the border-Radius mean?
In CSS, we have the attribute border-radius. Generally the use of the following forms: border-radius:10px; border-radius:10px 20px 20px 10px; But I came across the following code one of these days…
cssasked 9 years, 2 months ago Wallace Maxters 102,340 -
9
votes2
answers185
viewsHow to store a website settings?
I intend to develop a site that has some configuration options, for example: Maintain standard or custom logo Allow registration of new users Authorize anonymous comments in posts How should these…
-
9
votes7
answers4205
viewsCount elements on the screen
I wonder if there is the possibility of me counting the elements on the screen, for example a function that lists the amount of <li> arranged on my website. How could I do that? And how would…
-
9
votes1
answer1327
viewsDatabinding, Dataset, Dataadapter and Datagridview: What are they for, how to use and in what order?
I’ve been trying to learn how to use Datagridview control for weeks (yes, weeks). Connecting to the bank using the designer is very easy, but I want to do it by code and I can’t. I saw some…
-
9
votes2
answers885
viewsDoubts about DAO, MVC, Multiple Tables and POJO
If anyone can help me, I have a question q has been consuming me a lot in recent days and is psychologically locking my studies (hehehehhe) MVC and DAO with multiple tables. I’m going to put here a…
-
9
votes1
answer727
viewsHow do I change a chart caption?
I’m developing a c# application using the Windows Form chart. I would like to know how to put the values of the x-axis as the legend of it. string[] nomes = { "eduardo", "jorge", "chris", "matheus"…
c#asked 9 years, 2 months ago Matheus Barros 91