Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer621
viewsWhat is SPA and what is different from a non-SAP page?
Reading this other post from the OS that talks about: applications isomorphic, is commented on in a reply about SPA. What is a Single Page Application? And what is the difference between a SPA page…
-
6
votes2
answers1833
viewsCreate objects without reference C#
My question is, I have two instance of the class Parents, faths1 and fathers2, I created the 3 instance of the class Parents called fathers3 and said that it will be equal to instance fathers2,…
-
6
votes1
answer71
viewsImproved javascript from Dat.GUI
Hello. I created a simple block using CSS variables. And to "configure" these variables at the discretion of testing, I’m using the Dat.GUI. The current code is on this Pen. My question is how to…
-
6
votes1
answer515
viewsWhat differs an FPGA to a CPU?
I was looking at some publications on the BLAKE cryptographic algorithm, which was one of the finalists in the SHA-3 competition, whose winner was Keccak. Finally, in a specific excerpt from the…
-
6
votes1
answer712
viewsWhat is the concept of integers signed in a programming language?
I would like to clarify the meaning of the term "whole signed". I’m researching protocols, to build one in Java, and sometimes I find the term. I don’t know what it’s about. I’ve always heard of…
-
6
votes3
answers3176
viewsIs there a shortcut to select and modify similar snippets?
I would like to know a shortcut of the Intellij IDEA similar to CTRL+D Sublime, which selects all similar objects and is possible to modify them together.
-
6
votes4
answers829
viewsBest approach is to filter data in the database or application?
Suppose we have a table 'Vendas' with the following columns 'estado', 'cidade', 'vendedor', 'valor'. 'estado' and the 'cidade' would be where the sale was held and 'vendedor' would be what made this…
-
6
votes2
answers374
viewsWhat’s the difference between SSE and Ajax?
I’m looking to update a div which contains a customer’s credits, so update in the Bank the amount of his credits and I am using the setInterval: setInterval(function(){ ver_creditos(); }, 60000);…
-
6
votes1
answer56
viewsObject state invariance check between private methods execution
In this reply to the question How to test private methods in C#? is referred to The maximum that can be interesting is to have an object state invariance check between the execution of private…
-
6
votes1
answer6117
viewsTake elements by class/id with pure Javascript
In jQuery, we use quotes to pick up $('div.oi'). What about pure Javascript? Piss if we use without quotation marks is different. If we change the css for example: With jQuery:…
-
6
votes1
answer500
viewsRefresh in Webview when rotating device
I created my application via WebView, but when I rotate the screen the site gives refresh, or is back to the login, my code: Mainactivity: package com.sirseni.simpleandroidwebviewexample; import…
-
6
votes5
answers16830
viewsHow do I list all tables with their respective databases?
I would like to list all the tables in my database that ends with a specific name and also all my databases that match these tables. I tried to do it but nothing comes back. Query SELECT da.name AS…
-
6
votes1
answer2181
viewsIdentify if a string is capitalized in sql server!
I have a field in a table that must be filled all in lower case, but the user being user filled some lines in upper case. I want to identify what records are like this so I can request correction. I…
-
6
votes2
answers2083
viewsBlock cell filled with VBA
We are setting up a routine where when filling a cell (C1, for example), automatically is filled date (A1) and time (B1) in the spreadsheet. Only right after the auto-fill I need the 2 cells to be…
-
6
votes1
answer163
viewsWhat is the "@" inside the Solve function printf for
#include <stdio.h> #include <stdlib.h> void solve(int QTD_DISCOS, int origem, int destino, int temp) { static int rank = 0; if (QTD_DISCOS > 0) { solve(QTD_DISCOS-1, origem, temp,…
casked 7 years, 4 months ago Amanda Silva 89 -
6
votes2
answers1265
viewsMVC 5 Customer side validation
I’m having trouble validating dates and numbers on the client side using MVC 5 Asp.net. Examples and tutorials I find on the internet are all outdated. I made the modifications according to this…
-
6
votes2
answers264
viewsWhat is the shortcut in Netbeans to close all "+" functions?
I remember having this function in Netbeans. It’s a shortcut that closes all (+) functions or divs.
netbeansasked 7 years, 5 months ago Guilherme Freire 767 -
6
votes1
answer401
viewsWhat is the difference between exec(), system() and passthru()?
What are the differences between these functions? Is there any specific situation to use each function? If there is, give examples of these situations.
-
6
votes1
answer986
viewsWhat is an event handler?
I have read what is an event, but then I saw that there are event handlers, Event Handler. What is a Event Handler? What they’re for and where they’re used for? Exist in all languages?…
-
6
votes1
answer1069
viewsDifference between temporary table and variable table type
In the Sqlserver there are temporary and variable table type resources. What would be the most advantageous or the best option to put in a Procedure which inserts the query that was returned from a…
-
6
votes1
answer1613
viewsHow to Add DLL to Visual Studio? (Unconventional form)
I’m trying to add a few DLL's to my project at Visual Studio (Unconventionally). What I mean is, within my project, but outside References ! According to the image below: The reason you use Dlls…
-
6
votes1
answer7667
viewsAndroid - Datepicker in an editText
Next, I would like a date selector to appear as soon as I click on editText I have, but what I found automatically setting the current date, I want it to be chosen... Follow the code I’ve tried so…
-
6
votes2
answers190
viewsClass properties difference vs Instance
What is the purpose of creating attributes in the class if I can create in the instance itself?
-
6
votes2
answers210
viewsWhat do builders mean by this?
This builder has a this, what it really means? public class HelpController : Controller { private const string ErrorViewName = "Error"; public HelpController() :…
-
6
votes1
answer79
viewsClasses in Javascript
I was researching about creating Javascript classes and noticed the example below: var Greeter = (function () { function Greeter(message) { this.greeting = message; } Greeter.prototype.greet =…
javascriptasked 7 years, 5 months ago N. Dias 647 -
6
votes4
answers5283
viewsSeparate an array into groups?
I have the code below answered by a question similar to this but I would like to upgrade, this is the current function: function separar(base, maximo) { var resultado = [[]]; var grupo = 0; for (var…
-
6
votes1
answer5630
viewsHow to generate an executable of a program made in Eclipse?
I did a program for the company in which I work entirely on JOptionPane, just so the program would work just by opening real system windows (I thought it would be easier to run officially after the…
-
6
votes1
answer16437
viewsGIT Switch branch without commiting or discarding current changes
I need to submit my current changes to another branch. When giving git branch-name checkout it asks me to commit or change the current changes, I don’t want any of those options. How can I proceed?…
-
6
votes1
answer83
viewsDoubt about Many-to-Many EF Relationship
I am doubtful in a following rule: I have N Products and N Coins. From this relationship I will have the table Productomoeda: ProdutoMoeda Id - ProdutoId - MoedaID - Nome 1 2 1 ProdutoNome +…
-
6
votes1
answer2140
viewsHow to remove spaces leaving only one?
Considering a variable with a text in SQL Server. How can I remove 2 or more spaces within the text? In this case leaving only 1 space. For example: '1 tigre, 2 tigres, 3 tigres' It should result…
-
6
votes3
answers4549
viewsAlign span right inside div
I’m doubtful how to align a text within span as an example: This is my HTML I need to leave it like this, left text aligned on the right and left text aligned on the right, as an example: HTML:…
-
6
votes2
answers1173
viewsSpace between Edittext and keyboard on android
I wonder if it is possible to put a margin to space the edittext keyboard so it is not so close: The xml of how I am declaring Edittext: <EditText android:id="@+id/editTextNome"…
-
6
votes2
answers6106
viewsDifference from Cout to printf in C++
I wonder what difference I use in C++ cout and printf, it’s all the same?
-
6
votes2
answers368
viewsHow to get the properties of a type when using Generics C#
I have the following class: public class Pessoa { public int id { get; set; } public string Nome { get; set; } public DateTime DataNascimento { get; set; } } I’ve developed a method to get her…
-
6
votes2
answers98
viewsWhy println ran before printStackTace?
I was studying Exception Treatment in Java and I came to this question that I could not find on Google. Why in this example he printed the first line of the printStackTrace, and already gave the…
-
6
votes1
answer83
viewsIs there any way to be notified that there will be a garbage pickup?
I’m studying about the Garbage Collector do . NET and wanted to know if there are any events that I can sign and be aware whenever a collection will be made.
-
6
votes2
answers1906
viewsConvert and save photo in BD
I am working on a project where I have to save some photos. So I am studying the best way to accomplish the task. I thought about saving in the database, because these photos will be accessed both…
sql-server asp.net-mvc-5 winforms image-processingasked 7 years, 5 months ago Thomas Erich Pimentel 3,059 -
6
votes1
answer940
viewsHow to split code into multiple modules?
I know that it is possible to separate functions into other files on Node, called modules, as follows: js server. var http = require("http"); var servidor = http.createServer(); var porta = 3000;…
-
6
votes2
answers602
viewsDifference in C/C++ array declarations
What is the difference and impact that each of these 3 vector statements bring to my code? int n; cin >> n; int* arr = new int[n]; int n; cin >> n; int arr[n]; int n; cin >> n;…
-
6
votes1
answer1495
viewsAjax running Controller (MVC, PHP)
I just started to give a studied in mvc, and I have a question. How to make my ajax execute certain method of my controller. obs. I’m not using any framework, below is the code. View <div…
-
6
votes1
answer285
viewsGet mouse position in percentage by clicking on image
I have an image on the screen and I need to click on the image and know the position where I clicked on the X and Y of the image. For example, I clicked on the center of the image, then the X would…
-
6
votes1
answer64
viewsAssemble structure with hexadecimal data
Personal talk all right ? I get from a socket a buffer of 116 bytes in hexadecimal these bytes have a structure, for example: From the beginning: 2 bytes = 1ª variável 1 byte = 2ª variável 1 byte =…
-
6
votes1
answer285
viewsWhat is "Helper" for in Asp.Net MVC?
Please explain to serve Helper on Asp.Net MVC. I see many examples that contain Helper. I have no idea what it is Helper. And how to create Helper ?…
asp.net-mvc-5asked 7 years, 5 months ago Matheus Miranda 5,375 -
6
votes2
answers354
viewsFinding roots of a function in Fortran
I created a code that uses 3 methods to determine the roots of a function, the direct method of kicking x, Newton-Raphson and secant values. In the direct method, I set x values close to the roots,…
-
6
votes1
answer7588
viewsWhat is an unary operator
Code: #!/bin/bash echo "Digite 1:" read$TESTE if [ $TESTE == 654 ] then echo "Usage: ./pingscript.sh [network]" echo "example: ./pingscript.sh 192.168.20" fi Error message: Digite 1: 321 ./z.sh:…
-
6
votes1
answer4852
viewsWrite to a CSV file
I need my script write to a CSV file. It will open a CSV file that has the column created_at (date and time), after that, the variable will be "broken" and will be written in a new CSV file the day…
-
6
votes3
answers570
viewsHow to jump from one tab to the other in Sublime Text?
Is there a shortcut on the keyboard to jump from one tab to another in Sublime Text?
sublime-textasked 7 years, 6 months ago Sergio Souza Novak 513 -
6
votes3
answers625
viewsHow to treat Nullreferenceexception with Lambda
I have a class to search for DisplayName of my entities, where I pass the entity and class returns a list with the real values and name of each attribute of the entity. My problem itself is when I…
-
6
votes2
answers1184
viewsDifferences between System.out x System.err x System.in?
I didn’t find any debate on this question here in the community so I decided to create this topic. Follow a well-commented question among beginners in the Java language when it comes to data…
-
6
votes2
answers665
viewsWhat is the maximum size of an object in 32 and 64 bits?
Specifically the array can have up to 4 billion elements, I think, and the most common sizes of elements should be 4, 8 or 16 bytes. I ask, what is the maximum size that the object can occupy in…