All Questions

2
answers

Web Components - What is the difference between Polymer and ReactJS?

With the advancement of the web, we now also have the web components. Google has created and maintains a framework with Polymer name, although it does not have much compatibility with several browsers. At the other end we have Facebook's R...
asked on 23.07.2014 / 22:02
2
answers

How to detect when the person starts speaking using SpeechRecognition () in Javascript

I'm using SpeechRecognition (native to every browser) to be able to do voice searches on a website and I noticed that Google can identify when the person starts talking (both in "Ok google" and when the person clicks the button To talk). I tried...
asked on 23.07.2014 / 00:06
2
answers

Capture Computer Name and User Name

I'm developing an application and in one of its methods I need to capture the name of the computer and the user logged in to the machine, then display the screen for the user. What is the best way to do this?     
asked on 13.01.2015 / 04:20
1
answer

How to clone / download a repository with only the last commit?

I have read a while ago that it is possible to clone a repository in a more performative way just by downloading the last commit, that is, downloading the repository without previous changes to other commits. How can I do this?     
asked on 09.01.2015 / 16:46
1
answer

How to update data in real time?

Sites such as Facebook, Twitter even this we are now are updating their data in real time, in the case of Facebook: when a user likes some post automatically the data on your screen are updated and so on, but I went on the network of Chrome and...
asked on 28.07.2014 / 14:55
1
answer

Remove a property from an object contained in an array

I have a variable array: Bola = []; I've added properties to it: Bola[0] = { peso:0.5, cor:"branca", marca:"nike", nota:8 }; Bola[1] = { peso:0.7, cor:"verde", marca:"adidas", nota:9 }; I would like to remove the "mark" and "weight" p...
asked on 24.03.2015 / 15:47
2
answers

When is it advisable for a class to implement IDisposable?

I use the IOC standard in my project which facilitates the procedure call of type Resolver.Resolve<IPedido>().GerarPedido() , but I did not want to leave it "loose" in this way, I would like to implement the method IDisposable...
asked on 15.11.2015 / 18:27
3
answers

When to use size_t?

Now research the subject, but I always get confused. I found a article in English that explains very well some reasons for the existence of the type and how to use it. In this article the type is meant to represent sizes in bytes of objects, h...
asked on 20.04.2015 / 22:54
2
answers

Detect or block redirect with ajax?

I'm having a problem with an ajax request I'm making. The requested url is a url x , but when I make the request, it redirects me to a url y . I'm using the $.ajax function of jQuery. I would like to know if you can d...
asked on 07.12.2015 / 14:51
2
answers

Method to execute when destroying instance of a class

Is there any way to automatically execute a method by destroying an instance of a class. I have a generic SQL class, where in the constructor I call a method that opens the connection. Only I want to close this connection automatically too, with...
asked on 20.11.2014 / 13:30