All Questions

3
answers

C ++ Challenge, help with logic

I received a list of exercises from the programming teacher, this is a challenge.    write a function with either return the value of the expression y = i - i^2 + i^3 -i^4 +i^5 - ... +- i^n I thought about doing recursion , but I...
asked on 20.09.2015 / 20:53
4
answers

What are the main differences between Handler, Thread and AsyncTask? [duplicate]

The documentation for Android may end up being a bit confusing for those who are starting to understand better what are the differences between Handler , Thread and AsyncTask . Handlers are background Threads...
asked on 25.08.2015 / 13:20
3
answers

How to access the $ scope variable?

I would like to know how I can access the contents of the scope variable in AngularJS? Theoretically I did everything "correct", ie declaring the variable in controller and assigning values in it: var app = angular.module('va...
asked on 18.08.2015 / 17:29
2
answers

How to store form data in 2 different banks?

I have a form that the data needs to be saved to a local bank and another bank on a server. Is there any way to do this without duplicating the "insert" of the code? In the connection file I configured the 2 connections, but only inserted in...
asked on 01.10.2015 / 15:11
3
answers

How to know how many objects were instantiated?

In a Java application, how do I know how many objects in a class were instantiated? This doubt came to me by reading the article mentioned in the link below. Here is the excerpt that gave me the doubt:    2.4 - Connection Factory       At...
asked on 05.11.2015 / 13:49
2
answers

How can I store a chart as a variable and export it later?

Considering: x<-1:10 y<-10:1 plot(x,y) I would like to store the result of plot() in a variable, such as grafico<-plot(x,y) Is it possible? And to export how do I?     
asked on 24.11.2015 / 12:53
2
answers

java desktop "ajax" exists?

I wonder if there is any way to return the value for my java desktop application every time a value is added to a table. Something like browser ajax. For example, We have the requested table and with each record added to it my application scr...
asked on 11.11.2015 / 20:27
2
answers

Click and "Uncheck" button with jquery

I have a Button created just in HTML and CSS, and I need to have someone click it, a <div> block changes its background-color . With this maybe: $(document).ready(function(){ $('#button_on-off').click(function(){...
asked on 03.07.2015 / 04:28
2
answers

Show or hide a pregnancy option, whenever the user selects in the register that is female

How do I display or hide an option on a patient record page to tell whether the patient is pregnant or not. The option would only appear if the user checked the Female option. The image below shows a preview of the registration page. The part...
asked on 30.09.2015 / 20:40
2
answers

How to find out height and width of window WITHOUT JQUERY? [duplicate]

I've been wondering this for some time. I tried somehow to figure out the size of window (the browser window), but I could not do that. With jQuery I already know what it's simply doing: $(window).height() But, in case I do not...
asked on 13.11.2015 / 19:52