All Questions

1
answer

What would a PID be?

I'm starting to study desktop applications. I had a question about how I could know if a particular application is running and I was told I could use PID as a solution to be able to detect this. I usually work with Linux and, from what I un...
asked on 22.03.2017 / 15:10
3
answers

What is the difference between Promises and Observables?

Can anyone explain the difference between Promises and Observables? I would like to understand the advantages and disadvantages of each. Which is more performative, which applies a best practice for development and etc. Thanks!     
asked on 25.05.2017 / 04:59
1
answer

What benefits of using the = operator in common methods that are not related to Lists or Lambda Expression?

I asked the following question: # and the user @bigown answered me, however, in the answer he used an operator and this gave me a new question. I questioned the same about the use of the operator and he indicated to me the following link for cla...
asked on 23.05.2017 / 23:41
1
answer

Parallel sorting algorithm Odd-even sort in python

I created the following serial code to perform the Odd-even sort ordering, which first sorts the odd / even and odd / even indices. import time def oddevenSort(x): sorted = False while not sorted: sorted = True #orden...
asked on 20.06.2017 / 21:30
2
answers

What is the Law of Demetrius?

In a contest quiz, I found the following question:    In Object Oriented Programming, Law of Demeter   that an m method of an O object should not invoke   the following types of objects: (A) of the O. (B) parameters of m. (W)   any object cr...
asked on 30.06.2017 / 18:59
1
answer

Why is the reduced version of git SHA1 code 7 characters long by default?

I'm studying Git and I came across the command cherry-pick , which retrieves a specific commit . The parameter passed to this command is the hash generated to identify only that commit . However, in the documentation examples, a redu...
asked on 07.08.2017 / 15:04
1
answer

Change address bar url without refreshing the page

I'm developing an application where a form with a series of <select> sends information to a chart loaded via AJAX. I would like these filters to reflect in the browser url, to make it easier for the user to favor the most commonl...
asked on 11.09.2014 / 15:48
1
answer

Get the previous URL with javascript

How do I get the previous URL of the current page in javascript?     
asked on 12.12.2014 / 17:19
1
answer

Random () generating repeated numbers

I'm developing a small application to import XML, which searches for the items in the note and performs the search of the same in% of the internal% of the company. When the item is not found, the link is done manually and this information is sav...
asked on 25.03.2015 / 13:35
2
answers

Login with network user (AD)

I need to log in to the user on my system, with the user logged in to the company network. I've never done this and am having second thoughts on how to get user in AD. I am doing research on the net and still can not understand how to search for...
asked on 26.08.2014 / 13:36