All Questions

2
answers

Question about logical operators

I wanted to know the resolution of the following question:    In a pen, there are several ducks and rabbits. Write a program that asks the user for total heads and total feet and determine how many ducks and how many rabbits are found in the...
asked on 17.05.2015 / 06:06
1
answer

Multiple Selection in Visual Studio

I would like to expand the cursor to the next word that is selected, it is similar to CTRL + F but it makes a copy of the cursor to where the selected word was found, so you can change more than one place of the code at the same time ....
asked on 18.05.2015 / 15:56
1
answer

How do I set cookies and set expiration time?

I have a div where I search only logged in users, in it I'm displaying the users but every update is inserted new records, gave me the hint of using cookise more never worked with it. the following code is giving the error Warning: Can not modif...
asked on 10.02.2016 / 01:07
2
answers

Problem changing the type of a column in the model using JPA annotation

I have a column in the database that is limited to receiving a varchar(255) , but I need to change that to a larger size. For this I have added these annotations in the field: @Column(nullable = true, columnDefinition = "TEXT") @Lengt...
asked on 22.04.2015 / 21:54
1
answer

How to read all bytes of a file

I have a question in ReadBytes (int) My code looks like this: BinaryReader r = new BinaryReader (File.OpenRead(ARQUIVO)); byte[] arraybyte = r.ReadBytes(100000); This 100000 that I put is because I do not know the size of the f...
asked on 20.05.2015 / 17:33
1
answer

Erase the last value in an array

I have an array in which each index consists of a letter, which together form a sentence. I was not able to delete the last value of the array in any way. After researching a lot, I managed to delete it, but I'm thinking that the code is very...
asked on 25.04.2015 / 02:50
1
answer

Razor C # make list and sublist with ListString (originally "how to check if an HTML element already exists")

I need to know if an HTML element already exists, in my loop, if it exists I use it, if it does not exist I'll create one. How would you do this within a @foreach (var item in Model){ ... } Following the comment of Gypsy, as it is not po...
asked on 13.05.2015 / 01:28
1
answer

Play Sound (WINDOWS)

How do I play sound in a program developed in the C / C ++ language? Environment (WINDOWS)     
asked on 13.05.2015 / 19:19
2
answers

Incorrect formatting when opening a PDF generated by latex

In my program I need to open a PDF file and get the text it contains. However when opening the PDF, the text is poorly formatted. For example: Thanks to my family for not being? measure effort When the right thing would be: Thanks to my fa...
asked on 29.04.2015 / 03:20
1
answer

Difference between scope statement

Is there any difference in this scope statement mentioned in the angular documentation: myApp.controller('DoubleController', ['$scope', function($scope) { $scope.double = function(value) { return value * 2; }; }]); for this scope? myApp...
asked on 21.05.2015 / 15:20