All Questions

1
answer

How does software licensing work?

I've looked a lot in Google but I did not find an answer that would make everything clear. Suppose I have a home project and publish this code in a very famous repository, such as Github . And he's there under no license. But I thought the c...
asked on 07.01.2015 / 00:39
2
answers

Is it good practice to always manage errors with exceptions?

I'm creating a game with Python 3.4 and Pygame, and I'm using the object-oriented paradigm. In my classes, especially in __init__ , I'm full type checkings , to prevent runtime errors. For example, this is my class Board...
asked on 09.12.2014 / 01:22
4
answers

Another option to use @ in PHP?

I do not feel very comfortable having to use @ before some variables and sessions when I make conditions, to avoid Unexpected Index error that happens when the variable or session was not initialized previously. I wanted to know...
asked on 12.05.2015 / 16:29
2
answers

Open DIV after clicking a Button with Link

I would like to know how to create, in CSS3, Javascript or Jquery, a button that, upon clicking it, reveals a DIV on it, and that a new page with target _blank is opened. I've done enough research, found some things, but nothing concrete. Of...
asked on 14.11.2014 / 19:22
3
answers

Breadcrumb Algorithm in ASP.NET MVC

I'm writing a system on asp. net-mvc and the idea is that on the screens there is a Breadcrumb on all screens. Without ideas for a good algorithm, I booted a Helper that returns a list of objects according to the route accessed. The file is re...
asked on 28.02.2014 / 18:42
2
answers

How to get a loose number in my HTML?

Consider the following code: <span class="test"><span style="color:green">Teste</span>:</span> Text<br><br> <span class="test"><span style="color:green">Mais</span>:</span> Text<br...
asked on 22.04.2014 / 00:49
2
answers

How to make a conditional graph y ~ x for each factor of the data.frame?

Suppose a data.frame like the following: set.seed(1) dados <- data.frame(w=rep(c("A", "B", "C", "D"), 50), y= rnorm(200), x=rnorm(200), stringsAsFactors=FALSE) How do you create a% s of% s by each category of y~x...
asked on 20.02.2014 / 16:21
2
answers

HTTP requests in C ++

How can I make a request in a URL that would return a jSON in C ++? I need to access a /return.php URL that returns the string {"status":true,"hash":"12#87!!3@WSS\/.","user":"admin"} and work on my project, accessing json as obj.status f...
asked on 05.09.2014 / 16:34
3
answers

How to create a click event that is only called when clicking off of a div?

I need to click on a div (it's a register), it will close. What selector should I use so that by clicking anywhere outside the div this div closes? $(????).on("click", function(){ $('div').hide(); }); If you click on any par...
asked on 07.03.2014 / 22:17
3
answers

Handling python numbers by adding dot

I'm doing a simple code to convert meters to millimeters, what would be the best way to handle the result. Ex: 1000 in 1,000 Code: valor_m = int(input("Digite um valor em metros: ")) valor_mm = valor_m * 1000 print "Valor em milimetros: %i...
asked on 08.03.2014 / 01:23