All Questions

1
answer

How to send email in C?

I've researched multiple sites and google, but I always have something with PHP or HTML. How to send an email using only C?     
asked on 01.02.2014 / 04:39
2
answers

Values of an Enum can only be integers?

Studying C #, I came across a situation, I want to get a value ( string ) from the console. And then compares it with the value of an enum . For example: [Serializable] public enum Command { Exit = "/exit", SendMessage...
asked on 26.06.2015 / 17:06
1
answer

Closest vs Parents

I was reading the jQuery documentation and I finally noticed the similarity between the closest and parents methods. He cites the differences between the methods, stating that "they are subtle but significant." Reading the...
asked on 09.05.2014 / 21:45
1
answer

How to round decimals up to get an integer in C #?

I have the following account: var NumeroDePaginas = NumeroDeItens / 32; When I use Math.Round it rounds both up and down. But whenever there is any decimal value I want to return an integer value rounded up. Example: If NumeroD...
asked on 02.09.2014 / 20:00
4
answers

How to send text to the printer with PHP and Javascript?

I need to print text that is not necessarily contained in the html document on a printer installed on the client, I need to open that window to select printers and etc and send the printout. // EDIT In case the printout would be sent to a...
asked on 11.02.2014 / 12:02
4
answers

Copying files via SSH between two remote servers

How to copy files from server1 to server2 via SSH with just one command line, and am I not logged in to any of them? I'm on a 3rd machine. And I have the credentials of both.     
asked on 31.01.2014 / 17:48
2
answers

Is it good practice to keep foreign key columns redundant?

Consider that we have the models A , B , C and D , each referencing the previous one, ie A has many B s, B has many C if C has many D s: No redundancy A | id | ... | ------...
asked on 23.06.2014 / 19:56
4
answers

Good practices for storing logs

What information should be stored? Is it a good practice to use TRIGGER in the database to store logs or via code is something safer and easier to maintain?
asked on 01.04.2014 / 21:33
2
answers

Redirect site https to http

I currently have a site where you use an SSL certificate, as the certificate has expired and needs to be renewed, SSL error occurs on any browser, making it impossible for users to visit. I would like to redirect traffic https:// to...
asked on 11.05.2014 / 19:28
1
answer

How to return vector size with sizeof ()?

This is the code I'm using, but the return of the tamVet function is not the size of the vector, but the size of the pointer over itself. #include <stdio.h> int tamVet(int *vet){ int tam; tam = sizeof(vet) / sizeof(vet[0]);...
asked on 17.09.2014 / 23:10