All Questions

2
answers

Img in header changing on each page load

I'm starting a new project in HTML5 and I would like to put a background img in the header, in vdd I want to put 4 images and I want them to change on every page refresh, I do not want a slider, site see an image and in each loading of the page...
asked on 21.11.2017 / 00:57
2
answers

What is the difference between the syntax ptr = (int *) malloc (sizeof (int)) and ptr = malloc (sizeof (int))?

I have a doubt about dynamic allocation in C. At the moment of allocating the memory I already saw these two types of syntax: ptr = (int*) malloc (sizeof(int)); ptr = malloc (sizeof(int)); But I do not know the difference in use between th...
asked on 20.03.2018 / 21:11
1
answer

How to compile Less or Sass automatically?

Personal I have a question regarding Less / Sass. Nowadays I only work with Sublime Text to develop my sites, and I use Sass or Less for styles and I use Koala to compile them. But would you like to know if there is any tool that will allow m...
asked on 21.11.2017 / 13:25
1
answer

What is SSH and what are its advantages over HTTPS?

Some services provide the client-server connection through SSH (Secure Shell). What is this SSH? A case is GitHub, which recommends SSH even though it offers HTTPS, but HTTPS seems a lot easier and less difficult to connect with GitHub. What...
asked on 09.12.2017 / 21:19
4
answers

How do I get data from Firebase and insert it into a TextView?

I need to define the client data in a TextView. I tried setting the email, but it did not work, because the return is null. public class PerfilActivity extends AppCompatActivity { private TextView tv_email; private FirebaseAuth auth;...
asked on 16.12.2017 / 21:24
2
answers

Managing and releasing memory

1) When I create an object, where it has arrays and large variables, setting them to null , will it help with the reduction? Within a method Dispose() - being that before they were with some value. 2) When I call a Dispose()...
asked on 02.12.2017 / 02:13
1
answer

Shuffling playing cards

I need to make a kind of "Mini-Pife", but I can not create the method to shuffle the cards, can anyone help me? public class Baralho { public Carta[] Cartas { get; private set; } public Baralho() { this.Cartas = new Carta[...
asked on 07.12.2017 / 18:00
2
answers

Get previous element in foreach

Is it possible to take an element from the previous position to the current position using the foreach loop? For example, whenever I need to pick up an element earlier than the current loop position, I use the for loop as follow...
asked on 24.01.2018 / 14:47
1
answer

Pass arguments to the property getter

VB.NET allows you to declare parameters in the property getter Public ReadOnly Property Propriedade(param As String) As String Get Return param & "!" End Get End Property It's a strange feature and in C # it does not work. What...
asked on 26.10.2017 / 20:04
3
answers

How do I call the next field of a table with JavaScript or Jquery?

I tried to create an empty table so that when the user clicks in the middle of the <td> field a <input type="text" /> appears to type. Follow the code: $(function () { $("td").click(function () { va...
asked on 07.12.2017 / 12:37