All Questions

2
answers

How to change the value of a static variable?

Good, I would like to know how I can change the value of the following constant (To give an example) by a method. private static double PIVA=0.16; Edit: I have expressed myself poorly, I am sorry. I misused the word "constant", I wanted to...
asked on 27.04.2016 / 21:42
4
answers

How can I attach a PDF file to a DB record in SQL with C #?

The need I am having is to know if there is any possibility of attaching PDF files or any type of file to a DB record in SQL Server 2008 R2 from a C # application made with VS 2012.     
asked on 09.02.2016 / 23:41
2
answers

Create VirtualHost for domains

I have 26 virtual-host for subdomains (they were created type A, not CNAME type) of a page with domain "example1.com" (the domain was not being used) and I need to create the virtualhost to that domain In% /etc/apache2/sites-available/...
asked on 27.01.2016 / 18:33
1
answer

Differences between execv () and system () function in C

I'm doing a command interpreter in C and I have a problem with the execv function. I use a method called readCommand to read a text string and divide it into an array with the command and parameters. Then I pass to the functio...
asked on 16.12.2016 / 23:52
2
answers

Differences between Date, DateTime and Calendar in Java 7

I am using Java 7 to develop an application to schedule conferences. I have seen that there are several types of data to handle the dates. Example: private Date creationDate; private DateTime creationDate; private Calendar creationDate...
asked on 27.01.2016 / 08:33
3
answers

Is there a sleep function for float in C?

My question was if you knew any function that does the same thing as sleep for 0.5 or 0.25 seconds. That is, if there is something like sleep(0.25); since the function sleep does not work because it only applies to integers....
asked on 26.12.2016 / 19:40
2
answers

Matrix length in Go

I'm starting with Go (or Golang), and I wanted to know how to get the size of a matrix, for example of type [][]uint8 . I tried using len , but it gives me an error.     
asked on 28.12.2016 / 00:53
2
answers

Assign a rgb color to a cell in a datagridview

row.Cells(0).Style.BackColor = Color.Red 'RGB(1, 1, 1) The RGB does not accept it. How would you do in this case?     
asked on 30.12.2016 / 18:02
1
answer

Set image as a layout background indicating the name of the image on a String

I am making a simple application and I find that I am not able to change the background to a layout by indicating the name of the image in question by String. The code I have is this: fondo.setBackgroundResource(R.mipmap.ff); Where "ff"...
asked on 26.12.2016 / 14:42
1
answer

C # - A NULL object occupies memory?

Could someone tell me if a NULL object occupies memory? I have the following Scenario, I have a class A , B and C , and class B and C is inside the class A , then how would the memory be in these 3 scena...
asked on 09.12.2016 / 21:53