All Questions

1
answer

How to shuffle list of strings in C #?

I have a console application, in which the list exists: List <string> ListaFrases = new List<string>(); This list is built through the user inputs on the console. How to display your strings, but so that their positions are "sh...
asked on 03.10.2017 / 22:18
2
answers

How to convert Lowercase String to UPPERCASE?

My question is in switch (opcao) . To perform one of the cases it is necessary to enter UPPERCASE letters. There is some function of converting strings or characters in Java from lowercase to uppercase as in C ( tolower and toupp...
asked on 20.10.2017 / 17:27
2
answers

Error in isset PHP

It's giving you an error when I use isset with new PHP methods: <?php require './fb.php'; if (isset(filter_input(INPUT_SESSION, "fb_access_token")) && !empty(filter_input(INPUT_SESSION, "fb_access_token"))): echo "Ta logado!"; e...
asked on 16.10.2017 / 18:58
1
answer

What is the best type to store area, volume, perimeter? [duplicate]

Decimal , Numeric or Float . What is the best option to store area or volume? I would use Decimal, but I would like to see the views of others as well. It does not seem like it, but the right kind or the closest of that make...
asked on 21.11.2017 / 17:56
2
answers

How to run the million-line INSERT script in SSMS?

I'm trying to run a script in the SQL Server Management Studio (SSMS) with more than 1 million records and the following error occurs:    Message 10738, Level 15, State 1, Line 1032       The number of line value expressions in the INSERT s...
asked on 14.11.2017 / 19:42
1
answer

What is Entity Manager?

What is the Java Entity Manager? Looking at a lesson on java, the teacher mentioned that the% method of entity manager and that this method, when searching for a record in the database, saves the object in an area where it happens to be "mo...
asked on 04.09.2017 / 19:04
2
answers

Calculating average time

In my database I have a table that has the fields entrada , saida , the two fields have the format D-MM-YYYY H:M:S , I would like to do an average calculation. Ex: The average wait time is 30 min Based on all the results...
asked on 04.09.2017 / 14:52
1
answer

In C #, how to use the pluralize method in Portuguese?

In a C # application I want to pluralize a few words in Portuguese. But apparently there is no native support for pt-BR. var pluralizador = System.Data.Entity.Design.PluralizationServices.PluralizationService.CreateService(new System.Globaliza...
asked on 15.07.2016 / 18:50
1
answer

Count how many times a word in a file appears in another file

I would like to count how many times a list of words (file1) appears in another list of words (file2) with open("corpus.txt", "r") as f1, open("lexico.txt", "r") as f2: file1 = f1.read() file2 = f2.read() corpus1 = file1.split(" "...
asked on 26.09.2017 / 12:04
3
answers

Over with Group by

I have a query that I use to return as an extract, accumulating the registry values to registry: SELECT TOP (100) PERCENT Mes, Credito, Debito, Sum(Credito - Debito) over (ORDER BY Emp_id, Mes) AS Saldo , Emp_id FROM viewFluxo ORDER BY...
asked on 06.09.2017 / 19:29