Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer130
viewsIn operating systems, what is the difference between I/O and I/O operations?
I have some doubts in distinguishing these two operations, they are similar but I think not the same, although both have to do with input and output of something "something".
-
5
votes1
answer2454
viewsWhat is cloud computing data redundancy?
What is data redundancy, when it refers to cloud computing and what is its importance for the service?
-
5
votes2
answers1846
viewsHow to create a static method in a public class?
I would like to create a static method in a public class with a ToastController so that I can access this method in several classes. I tried to do this way below but it didn’t work: export class…
-
5
votes1
answer150
viewsLog with historical debug (Intellitrace)
I have a WPF application and am looking for the best way to solve untreated exceptions. Today, when an unexpected exception occurs, deal at the event Application.DispatcherUnhandledException. There,…
-
5
votes1
answer82
viewsHow to make Stripe only with CSS?
How can I make one Stripe (diagonally striped) with CSS only? The image below illustrates my question better.…
-
5
votes1
answer1122
viewsHow to get 'unique identifier' from browser
In my research I have already found the Object - Navigator, to obtain information relevant to the user’s browser. However I found nothing satisfactory in this Navigator that I can use to generate a…
-
5
votes2
answers616
viewsDelete placeholder value in input by clicking Angularjs
Does anyone know how I can erase the value of placeholder by clicking on the field using only Angularjs? Example: When you click, automatically add the word name. <input type="text"…
-
5
votes2
answers728
viewsHow to separate numbers from three to three, backwards, in Javascript, without regular expression?
I already know how separate the numbers from three to three, backwards, with regular expression in Javascript. But I wonder if in Javascript there is a simpler solution, and without the use of…
-
5
votes1
answer342
viewsJava, convert floating point hexadecimal value
I am developing an application that receives data from a GPS board, the data is received by bluetooth in hexadecimal, the latitude and longitude values are floating points of 64 bits, which follows…
-
5
votes4
answers4955
viewsQuestions about Python functions
I am a beginner in the area of programming and I have doubts about the questions below. I will post the questions and my attempts (all are showing error in the broker). If anyone can help me already…
pythonasked 7 years, 9 months ago Monica da Silva Vasconcelos 87 -
5
votes1
answer137
viewsHow does the request session work?
An idea arose among the developers to use the standard of Session per request - Session by request. Researching on the subject, I found some topics in the OS that generally said that the indication…
-
5
votes1
answer3311
viewsWhat is and how does ascending and descending parsing work?
According to some research I did, Parsing in computing, known as Parsing in English, it is the process of analyzing an input sequence (read from a computer file or keyboard, for example) to…
-
5
votes2
answers393
viewsIf array is the same as pointer, why does one need to be copied to a variable and another need not?
In that reply Maniero said that if the member of the structure was a pointer it would not need to copy the string into it. But arrays are not pointers? Why is it different?…
-
5
votes2
answers814
viewsWhat is the most "clean" and clear way to validate entities using the Entity Framework
I am using the Entity Framework for data manipulation. The project is divided into 2, one containing the domain entities and the other the mappings (Fluent Api). I need a clear "clean" way to…
-
5
votes1
answer203
viewsWhat are the differences between local functions, delegates and English expressions?
Local functions will be present in C# 7. Given this, I would like to know the main differences between local functions, delegates and expressions Amble.
-
5
votes2
answers498
viewsHow to assemble a list of generic objects in C?
In many higher-level languages it is possible to have a structure or a collection of data of various types, often the type is used Object for this. How to do the same in C? I mean, I don’t know the…
-
5
votes2
answers261
viewsHow can a Function expect the result of $http?
I’m having trouble with the following code: $http({ method: 'POST', url: '/publicacao/', data: $scope.publicacao, headers: {'Content-Type': 'application/json'} }).success(function(publicacao) {…
-
5
votes2
answers137
viewsHow do I compare the keys of a hash to a user input?
Filing cabinet: 101;Johnny 'wave-boy' Jones;USA;8.32;Fish;21 102;Juan Martino;Spain;9.01;Gun;36 103;Joseph 'smitty' Smyth;USA;8.85;Cruizer;18 104;Stacey O'Neill;Ireland;8.91;Malibu;22 105;Aideen…
-
5
votes1
answer1435
viewsWhat’s the Youtube show for?
If I don’t declare that constant (serialVersionUID) in a class that implements the interface Serializable, I get a Warning. But what is this constant for anyway? Its value interferes with the…
-
5
votes2
answers163
viewsHow to enumerate bad Smells in a software?
I am working on a relatively large system (considered unworkable rewriting effort) PHP that implements in a certain way the MVC architectural pattern and that has (under a higher point of view)…
-
5
votes1
answer3573
viewsLine in a flow chart in Xelatex tikz
Below is the code and the result of the flowchart I’m building: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \begin{document} \begin{figure}[!ht] \centering % Define…
latexasked 7 years, 9 months ago Marcus Nunes 17,915 -
5
votes2
answers1746
viewsHow do you count the number of times a word repeats itself in a sentence?
I have a certain phrase declared in a variable. See: $bacco = "Você tem que abrir seu coração pro SQL e pedir o que realmente quer."; I can verify if there is a certain word inside the sentence…
-
5
votes4
answers8175
viewsWhat is the opposite of the "None display"?
Before I did some research on the properties of "display". I intend to hide some div and used display:None. To show off the div what ownership of display should wear ? (I am working with Javascript)…
-
5
votes3
answers2397
viewsHow to check if there is a certain number in a php variable?
So I was doing a search, looking for some php function that checks if a certain number exists within a variable. And I found the preg_match(). Only that has a however, php gives an error and so I…
-
5
votes2
answers987
viewsHow to put a Popup that asks permission to use GPS?
Guys, I’m programming in Java (with Android Studio) and this code to get the position of GPS, which works very well! Now I’m trying to learn how request authorization from the user to use GPS, but…
-
5
votes4
answers9132
viewsHow to change the color of a select when selecting an option
I have a select and I’m trying to change the color of it by selecting an option (for example I’m changing the color to red). Using some attributes like hover, focus, active and checked i can even do…
-
5
votes2
answers142
viewsDelete all references that are not in use in Visual Studio?
I wish to exclude all references (I am not talking about using in the class files) that are not being used. For this, of course, I need at least an effective way to find out which references are not…
visual-studio visual-studio-2013 project-organizationasked 7 years, 9 months ago Bruno Heringer 1,338 -
5
votes2
answers527
viewsIs there a difference between the visibility of a view.GONE or false?
I would like to know which of these implementations is the correct one? tlb.setVisibility(View.GONE); or tlb.setVisibility(false); What’s the difference between them?…
-
5
votes1
answer153
viewsMap opens before picking up the GPS position
I’m studying programming for Andriod and I came across a feature that I just don’t know anything, which is the order of execution of the duties! please , someone could give a light? I explain, in my…
-
5
votes2
answers973
viewsHow to make this slideshow infinite?
It’s a passing carousel, but the only way I could do it was like this: when it comes to the last slide, it goes back to the first one, making a kind of "return transition" to the beginning.…
-
5
votes1
answer1062
viewsIs there a way to create a parallel run using javascript?
I was wondering if there’s a way to use parallelism in javascript. For those who come from the world of java or of C is a well-known and widely used term, known as threads. Parallelism => is a…
-
5
votes1
answer741
viewsSubtract 2 weeks from a full date in Pyhton
I’m thinking a date in this format: time.strftime("%d/%m/%Y") // 00/00/0000 I want to subtract two weeks from that date, but I don’t know how to do it.
-
5
votes1
answer241
viewsReference error in DLL
I am creating a DLL that needs to export 11 CEN/XFS functions, but there is a function that consumes a header file. I think the mistake is in consuming a method from a header that is not stated in…
-
5
votes5
answers1463
viewsBeginner in Python, Else and Elif
idade = int(input("Insira sua idade:")) if(idade<=0): print("Sua idade nao pode ser 0 ou menos de zero") elif(idade>150): print("sua idade nao pode ser maior de 150 anos") elif(idade<18):…
pythonasked 7 years, 9 months ago Eduardo Rodrigues 51 -
5
votes3
answers1740
viewsHow do I know how much memory my application uses in PHP?
I wonder if there is any way to know how much my PHP application is consuming memory. For example: I want to know, at the end of the script execution, how much PHP spent on the execution process of…
-
5
votes1
answer70
viewsHow do I exchange a apply inside a for for for a double apply?
I have a vector origem and a vector destino with different locations in latitude and longitude. For each location in origem, I want to count how many places in destino are located in a radius of up…
-
5
votes1
answer368
viewsBroken layout Safari8
Hello! I’m starting at frontend and I’m having some problems with compiling code on different browsers. Developing a header and a Canvas style menu I came across the totally broken layout in…
-
5
votes1
answer2161
viewsConcatenate two columns of an array into a string of characters
Suppose I have the following vectors: n <- c(1:5) c <- c("A","B","C","D","E") I build the following matrix with them: m <- matrix(c(n,c), ncol = 2) What is the best way to obtain such a…
-
5
votes2
answers2773
viewsRun more than one project in Visual Studio
In the same solution of Visual Studio I created two projects, the first to run a Server Socket and the second as a Client Socket that will send a file, but I’m having difficulties to run both…
visual-studioasked 7 years, 9 months ago Victor Freitas 738 -
5
votes5
answers11043
viewsRecursive Fibonacci printing
I’m having problems with the recursive function Fibonacci, in the exercise you ask to print inside the function or even using an auxiliary recursive function, but you can’t print in the main…
-
5
votes2
answers404
viewsWhat is the difference between Alarmclock and Alarmmanager?
What are the differences between Alarmclock and Alarmmanager?
-
5
votes1
answer7176
viewsI want to compare start date and end date. The start date always needs to be less than the end date. Compareto() an error came to me
When the final date is with the time of 00:00, it identifies that the initial date is greater than the final date only it is not, the initial date remains smaller. When I set the final date…
-
5
votes3
answers543
viewsHow to display a multidimensional array without looping?
When trying to run the section below: int[] vetor = {1, 2, 3, 4, 5, 6}; System.out.println(Arrays.toString(vetor)); The array is normally displayed as [1, 2, 3, 4, 5, 6] but if I try with a…
-
5
votes1
answer68
viewsCapture the index data in the database
I was able to feed my listview with Sqlite data, however, I now want to capture the data (in the database) that each line of listview matches. For example: Line 10 displays Code. 1 and Name: Felipe…
-
5
votes2
answers228
viewsWhat’s wrong? BD + Laravel
I have a form in Lade taking the values of the database. In it I have a field date not required to be filled in. When you enter an empty date the results screen displays the date "01/01/1970". How…
-
5
votes3
answers2856
viewsWhat can cause file_get_contents to give "timeout" error?
I asked that question here, but hardly, because it is a problem that seems to be specific, the solution would be something that would be something generic. But it occurred to me in this question I…
-
5
votes1
answer1139
viewsHashmap manipulation between classes (Interpretation and Application)
is my first question, sorry for the length, I am in doubt in the following exercise: Create a Pizza class that has the added method Cooking() that receives a String with the ingredient to be added.…
-
5
votes3
answers458
viewsSearch between Jquery columns
I own a td with client code and in another td I have a customer name relationship with the client code Example: codigo | nomes 0001 | Anderson Silva(0002) | Minotauro (0001) | Lioto Machida(0003) I…
-
5
votes1
answer180
viewsWhen to use console.clear?
I was going through my website and installed a plugin, unfortunately it did not load according to the page, giving several warnings on the console, for each product a warning, that is, more than 100…
javascriptasked 7 years, 9 months ago concas 719 -
5
votes2
answers714
viewsHow do I know if a value is eternal in Python?
How can I check in Python if a certain value is eternal? What determines that a particular type can be eternal? For example, how to find out this in the case below? a = 1 b = 'Uma string' c = [1, 2,…