All Questions

3
answers

Use VARCHAR (255) for all fields or choose the best size for each field? [duplicate]

Assuming the following fields (for example): Nome , Rua , Cidade , UF . The Nome would be the name of the client. There are people with 2 short names or people with 5 or more names, so it is possible to have a...
asked on 07.05.2018 / 02:11
3
answers

Wait for Ajax return in synchronous function

I have an operation that I need to perform synchronously, but some of the information I need can only be obtained via Ajax. I tried to make everything synchronous with a wait for the Ajax return. The problem is that while any function is runn...
asked on 18.02.2014 / 21:01
2
answers

How to leave an invisible TabPage inside a TabControl?

How can I make a particular TabPage invisible inside a TabControl?     
asked on 13.05.2015 / 21:28
2
answers

New functionality of C # 6 "Auto-property initializers" is just a facilitator?

One of the new C # 6 is the ability to initialize properties at the time of declaration. public class Customer { public string First { get; set; } = "Jane"; public string Last { get; set; } = "Doe"; } The goal is just to make it e...
asked on 15.01.2016 / 16:14
1
answer

What is the difference between "calloc ()" and "malloc ()"?

What does the calloc() function do that malloc() does not? Why is it barely used?     
asked on 23.01.2017 / 11:35
1
answer

What is the ":" (two points) used for in the declaration of a member of a structure?

I saw this: typedef struct { unsigned char a : 1; unsigned char b : 7; } Tipo; What does this statement mean? What is this 1 and 7?     
asked on 20.01.2017 / 13:24
2
answers

Differences between Jagged Array and Multidimensional Array in C #?

Is there a difference in these arrays in C #? int[][][] int[,,] What I see is the same thing, but C # can not cast from one to another.     
asked on 07.08.2016 / 18:52
3
answers

What is the usefulness of the tilde operator in CSS?

When reading some of the codes I see that it is common to use tilde ( ~ ) in the selector setting. Ex.: .effeckt-show.effeckt-modal-wrap ~ .effeckt-modal-overlay { ... } Code removed from Effeckt.css .     
asked on 20.02.2014 / 19:17
2
answers

Lambda GroupBy by year and month

I have a list of events, and I would like to group them by year and month, for example [Year 2017] Month January  {Event 1, Event 2, Event 2} Month February  {Event 3} [Year 2018] Month January  {Event 4, Event 5} I'm us...
asked on 11.01.2017 / 20:43
2
answers

How can I turn line breaks into br / in JavaScript?

In PHP, we can convert a line break to a <br/> through the function nl2br . What about JavaScript? How can I do this in a secure way? I decided to ask the question because I do not know if a simple replace("\n") f...
asked on 13.10.2015 / 15:36