Most voted questions
150,413 questions
Sort by count of
-
9
votes1
answer128
viewsHow does a machine identify the type of data?
A little while ago I had a question about how a machine defines/identifies the data type. I mean, when we’re a high-level application we have the definitions that that data can be a integer, string,…
-
9
votes1
answer1043
viewsHow to resolve error: "XXXX app stopped"?
Good afternoon, I have an application in language C# which develops an app for android (using Xamarin). The application works normally for android of versions 2, 3, 4 and 5. However, using a device…
-
9
votes3
answers2573
viewsHow to use constructor overload in Typescript?
In languages with C#, for example, it is possible to use constructor overload as shown below: public class Teste{ public Teste(bool a, int b, string c){ } public Teste(bool a, int b){ } public…
-
9
votes2
answers354
viewsHow do C#properties work?
In Java I usually create private attributes and create methods getters and setters, on account of the encapsulation. I couldn’t quite understand how this works in the C#.…
-
9
votes2
answers235
viewsWhat does the _t suffix mean and when to use it?
I see in many codes some variables with the suffix _t. There are a lot of examples in the standard C library like size_t, int32_t, mbstate_t. What is the use, and when to use this suffix?…
-
9
votes1
answer508
viewsConvert date MMMM-YYYY to dd/mm/yyyy datepicker bootstrap
I have the following date field: <div class='input-group date input-data' id='datetimepicker4'> <input type='text' name="mes" id="mes" class="form-control hidden" /> <span…
-
9
votes3
answers4855
viewsUsefulness of #pragma
Several C/C++ codes have the word pragma. Depending on the way it is implemented it has a different function. #pragma Once #pragma pack() #pragma comment(xx, "") For what purpose the pragma was…
-
9
votes2
answers1707
viewsRoutes Laravel 5.3
Good afternoon guys, I noticed that Laravel 5.3 has a new folder "Route", with the routes. By default it uses web.php I wonder, how can I create other routes without being inside the web.php, I…
-
9
votes1
answer2572
viewsMakefile: what is it, and what is the purpose?
I am wanting to stop using IDE, and a friend advised me to use a Makefile for my programs, so: What is a Makefile? What is your purpose?
-
9
votes2
answers426
viewsIs there a way to break in If?
I was wondering if there’s some kind of break on IF. My doubt is based on the example below. When the function b() returns false all following comparisons are not performed. I thought the condition…
-
9
votes2
answers1017
viewsAdd new fields dynamically
I’m creating a app calculating credits from a school report. DOUBT: How to add a new EditText when the user clicks on the "+" button next to it and sums up the values of each EditText.…
-
9
votes5
answers8188
viewsBest factor calculation algorithm
So I’m learning to develop in Java. The teacher asked me to develop a method for Factorial. And also show on the screen what is happening, for example: 3! = 3 X 2 X 1 = 6 In fact, I made it happen,…
-
9
votes5
answers1065
viewsRemove duplicated names with regular expression
Suppose I have the following vector, with the names of presidents of the republic: presidentes <- c("da Fonseca, DeodoroDeodoro da Fonseca", "Peixoto, FlorianoFloriano Peixoto", "de Morais,…
-
9
votes3
answers7332
viewsHow to put scroll at the end of the div?
I have the following div <div style="height:300px;overflow-y:auto;"> ... </div> Inside it will have several texts and will make the scroll appear. When you refresh the page the scroll is…
-
9
votes1
answer5066
viewshow to use last-Child for the penultimate as well?
I want to make a selection with css for last and penultimate item. I know I can use the dial last-child to the last, but the penultimate? how do I?
-
9
votes2
answers4637
viewsWhat is the difference between "node", "attribute", "element" and "tag" in XML?
I am confused about some features and terms of the XML markup language that are: knot, attribute, element and tag, I would like to know what each of them is and what are the differences between…
-
9
votes1
answer4004
viewsHow to limit reading decimals (scanf) of a double variable?
The exercise asks the readings of the variables double are limited to only one decimal place each of them. I tried to put "%.1lf" in the scanf, as we used in the printf, but it didn’t work. How…
-
9
votes1
answer16141
viewsCMD, Powershell, Bash - What’s the difference?
There are differences between them, which? I’m talking about Ubuntu’s Bash. I’m curious because to me they seem to do the same thing!
-
9
votes4
answers2583
viewsCan PHP’s unset() function improve performance?
I think the answer to my question would be "yes." even because I end up doing it in my code (when I remember), but I just stopped to think about it now and I’m kind of worried if someone asked me…
-
9
votes4
answers785
viewsShould I use a "Try-catch" to identify if a password is wrong?
On the screen of login, carry out the verification in the bank by means of a select, and I’m using the catch to capture this exception. It is correct to use the catch for that guy? if (Usuario !=…
-
9
votes2
answers215
viewsHow is the reading of sentences with comma in Javascript?
Today I was testing minify my code and I was in doubt about the conversion Original Code Loader = (function(Configure){ var CurrentAction = null; var loaded = []; loader = function(){}…
-
9
votes1
answer585
viewsWhat are namespaces in XML?
Well, I understand the concept of namespaces in C#, C++, etc. But I don’t understand the concept of namespaces in WPF (XAML). I’ve been trying to understand the parameters xmlns in a XAML code. I…
-
9
votes1
answer810
viewsThe Joel Test, how does it work?
I came across the following sentence below. "We scored 11/12 points on "The Joel Test", which measures the quality of software development within our company. " What’s this about? How does The Joel…
software-engineeringasked 8 years, 7 months ago Guilherme Lima 3,129 -
9
votes1
answer325
viewsSetup.msi prompts the user to install . NET Framework 4.6.1
I have a *.msi package of a software developed by me, with the Visual Studio Setup Project. When a user tries to run the installation package on his machine and he has not installed version 4.6.1…
-
9
votes1
answer315
viewsWhat is the function of an open-source license? What are the main licenses?
I have researched and found little content in Portuguese on this, I do not know if I am looking for the right term for not knowing much of the subject. I have some questions about software licenses…
-
9
votes3
answers3574
viewsWhat are the functions of an ORM?
What actions a ORM should supply? What it should or should not provide to the developer, or what its role within a system?
-
9
votes1
answer2601
viewsEdit bar graph in R: Order of X-axis values - Caption - Bar color - Insert straight - Insert comments
1 - Contextualization I want to build a bar chart using the ggplot2, however I am having difficulties to gather the information and to make the graphic edition. I have data of the oscillation of the…
-
9
votes1
answer264
viewsWhy does the compiler create repeated . class files?
I have noticed that when the java compiler compiles some class that has some swing/awt component, it creates another or even several classes of the same name, with a $ followed by a numbering. I…
-
9
votes1
answer3234
viewsWhat is dynamic SQL?
I have seen many cases where some show how to use, and others where they simply advise against using SQL dynamic. I had the following doubts: But anyway, when we should or should not use dynamic…
-
9
votes2
answers2598
viewsCan this asterisk pyramid code be further simplified?
I have a simple exercise where I need to do an asterisk pyramide using repeating structure. The pyramid has 17 columns and 9 rows. My program displays it correctly, It is possible to reduce some…
casked 8 years, 7 months ago Marco Oliveira 125 -
9
votes2
answers955
viewsHow to manage approval and production environments with Team Services?
I’m on an ASP.Net C# project that’s starting now, but I come from ASP Clássico, where things are very different. In this new project we need to create and manage approval and production…
-
9
votes3
answers11758
viewsWhen to use const and when to use #define
Since the two do the same function there is some difference between one and the other? I’ll take the code from this site as an example C - Constants & Literals The #define Preprocessor #include…
-
9
votes1
answer1350
viewsMove the character in the canvas and change image
Well, I would like to know how I could implement a Sprite on my canvas, I am very lay with canvas, the idea is, when pressing arrow -> he runs Sprite 1.png, when pressing arrow <- he runs…
-
9
votes3
answers2573
viewsIs it possible to avoid using ifs in these cases?
I have read many materials on the internet about OOP, the overwhelming majority says to avoid if/else at all costs. For an OOP beginner like myself, many doubts arise. For example: if…
-
9
votes2
answers19928
viewsDifference between file_get_contents and Curl ?
I wonder if there is any difference between using Curl and file_get_contents and which is safer ? Thank you in advance.
-
9
votes2
answers742
viewsIs it possible to integrate Paypal into my website without the user logging in or creating an account?
I was looking for and reading about it, but what I see is only put the pay button with Paypal, which requires who is buying to login to Paypal. Is there any way to do this, some example code light?…
-
9
votes4
answers48238
viewsHow to convert a String to Int in Javascript?
HTML5: <!DOCTYPE html> <html> <head> <title>JSTest</title> <meta charset="UTF-8"> <script src="JSource.js"></script> </head> <body>…
-
9
votes1
answer8659
viewsWhat is the purpose of stdClass in PHP?
What is the purpose of the predefined class stdClass in PHP? In detail what he does? What is its importance?
-
9
votes2
answers1356
viewsConvert a list list into a single list
I’m working on Python 2.7. I have this result: Resultado=[['A','B','C'],['D','E','F'],['G','H','I']] How can I turn this into a list? And get the following:…
-
9
votes1
answer1019
viewsEncrypt a phrase/word by reversing and switching vowels with the following vowels
I was given an exercise in which I have to write a program that reads a word in the interval [1-20] and encrypt this word using the steps: reverse the word where there is a vowel, replace with the…
-
9
votes1
answer189
viewsWhy is the incrementer "lost" in the loop?
Making a simple loop FOR, I found a strange behavior that I couldn’t understand. The count is "lost" in the AJAX request, keeping the value of the incrementer with the last one. The request to the…
-
9
votes1
answer832
viewsHow to copy a file from the network to my computer using C#?
I have a desktop application that needs to copy media files from a server, videos and images. The server is on the same network as the terminal on which the program will be installed. The problem…
-
9
votes1
answer1372
viewsPass two templates to a sign-up view
I have a login registration screen. I have to fill it with values registered in the database. Follows the codes: Models: public partial class Aba {…
-
9
votes2
answers4065
viewsWhat are modules in programming?
I know there’s this question: What are modules? But the explanation does not go straight to the point and left me confused, as well as properties, methods, arguments and other words I have seen…
-
9
votes2
answers228
viewsIs there any functionality similar to Assert (affirmations) in C#?
In languages like Python there is an assertion mechanism (assert) which aims to state whether an expression is true and, if there are failures, throws an exception. In most cases, I think it’s best…
-
9
votes5
answers1956
viewsDifference between JSON and String data
I’m just finishing building a website on PHP with architecture MVC, the next step is to integrate the application (I only have the interface) with the core(controller) site, to fetch information…
-
9
votes2
answers18476
viewsoptimized way to recover last mysql ID
Which is the most optimized way to recover the last table id? I tested these two methods and the orde by took a long time. There is some beyond these? Note: nãp will be a query after Insert. It will…
-
9
votes1
answer325
viewsIn C++ where are the functions of the objects in memory?
In C++ when an object is declared, class variables are stored in the stack or in the heap depending on how the object was created. With the operator sizeof() it is possible to test and realize that…
-
9
votes1
answer209
viewsStrange property initialization
While reading a tutorial on Entity Framework, I came across an example of code where there was a line that, for me, is unknown: Student stud = new Student() { StudentName = "New Student" }; I…
-
9
votes1
answer574
viewsWhat is Explicit in C++?
I came across the term explicit being used in a C code++. What is the use of this keyword?