All Questions

2
answers

What types of attacks can I experience with global variables and how to prevent

Thinking about creating a system of login and secure registration, I want to take some measures, as I have been reading, I have verified several errors that I made, especially regarding Global variables: link Ex: I always validated my su...
asked on 25.03.2015 / 21:26
4
answers

Is a compiler allowed to omit a reference member in a class?

Consider the following class: struct Type { int a, b, c; int& ref; Type(int m) : a(m), b(m), c(m), ref(a) { } Type(const Type& ot) : a(ot.a), b(ot.b), c(ot.c), ref(a) { } } obj; Here we have that sizeof(Type)...
asked on 20.02.2014 / 18:00
2
answers

View control via authorization with AngularJS + WebAPI

I'm working on an application built with AngularJS and ASP.NET Web API. For now, using ASP.NET Identity I've already been able to implement authentication and authorization in the API using OAuth 2.0 and token-based authorization. I tested th...
asked on 27.04.2014 / 05:53
1
answer

Validation configuration in dynamic fields

I have a problem that is as follows, I have the fields: Name, Age and Text; In a part of the system I register that the Text field will only appear if the Name field is equal to PH and the Age field has the value 20 with both tr...
asked on 21.05.2015 / 20:36
1
answer

How does the secret of Bittorrent Sync work?

I'm looking for an entirely Open Source alternative to Bittorrent Sync, and it seems we have almost all elements there: the Sparkleshare would do what it wanted to do, just missing the direct connection to computer no matter where using a secret...
asked on 15.12.2013 / 13:18
1
answer

What is Python Egg?

Reading a book about Python, the author shows a command in which you can create an Egg and upload of your package at PyPi (official python package repository). Basically using the command below: python setup.py bdist_egg upload --identity...
asked on 29.03.2017 / 17:59
1
answer

Why should I use the StringBuilder class instead of the String class?

Why these two classes are different, as it seems to me that they could be a single class. For example, the method Append , it seems to me that it does the same thing as the + operator.     
asked on 03.10.2015 / 03:14
2
answers

char [] or * char malloc?

What difference in C between char text[10] or char *char = (char *)malloc(10*sizeof(char)); What advantage of using malloc on a pointer?     
asked on 21.07.2016 / 20:10
1
answer

What is the advantage of using CHAR instead of VARCHAR?

What is the advantage of using CHAR instead of VARCHAR in database since the advantages of VARCHAR exceeds CHAR (if it has?). Is there a difference in the field size definition time since VARCHAR has a variable...
asked on 04.05.2015 / 14:13
1
answer

How to create objects (variables) with different names inside a loop?

I want to generate separate databases in a loop. In the example below there would be 3 distinct bases with the following names: "data1", "data2", "data3". for (n in 1:3){ dados<-paste0("dados",n) dados<-runif(10,1,20)} However, wh...
asked on 06.03.2014 / 22:33