All Questions

2
answers

await Task.WhenAll how to run multiple processes?

I am trying to create several task (async) they will execute the following logic: Parse an Html based on a url received with the HtmlAgilityPack Return a product model after parse Insert the Product into the database Download product i...
asked on 11.10.2016 / 20:36
1
answer

Find column and position the cursor in it

I have a spreadsheet that contains: COLUNA A1 CABECALHO (PRODUTOS) COLUNAS B1 A BK1 COM DATAS I will read a database ordered by product and date and I have     which automatically fill in the worksheet by allocating the values of each produ...
asked on 21.10.2016 / 20:20
1
answer

Self-relationship in Group table with Laravel and Eloquent?

I have a table of grupo with the fields:    id ( int not null auto-increment )       description ( varchar )       groupid ( int null ) How would it be: 1) the migration corresponding to this table? 2) the creati...
asked on 24.09.2016 / 00:36
2
answers

Why when I delete or edit table record x is also removed from table y?

I have a system in ASP MVC with C # entity . I have the table Pedidos and Agenda . In the agenda table I have a column with id of the request. When the request is canceled, I have to remove from the...
asked on 04.11.2016 / 15:29
1
answer

Strange values in output when running newly compiled application

When I compile and run this code in Linux , it shows a strange result. I think it's rubbish from memory. What is happening to him to show this result, and how can I resolve it? Command lines to compile code gcc -c aluno.c gcc -c test.c gcc...
asked on 04.11.2016 / 22:54
1
answer

What's wrong with my threaded list?

I've implemented a linked list but when I enter 2 items, I remove the last one and add it again, for some reason it says the value is null. public class ListaDinamica<T> { private class Celula<E>{ E item; Ce...
asked on 09.09.2015 / 18:11
1
answer

Write date of inclusion using entity framework

I believe there has been a misinterpretation, I am posting the code to be better understood. I'm using a project for my EF Repository inside it I have: Notice the doubt in //CompanySave.DATA_IND = DateTime.Now; This is possible. using Syste...
asked on 17.09.2015 / 03:06
3
answers

Transform a string into several substrings whose contents are in apostrophes

I am creating a program in C # that reads a text file and one of the lines of this file has the following format: 'Column 1' 'Column 2' 'Column 3' I want to turn this line into an array of strings so that the answer looks like this:...
asked on 25.11.2016 / 18:44
3
answers

Annotate: Returning the cheapest product and vendor name (Django)

Given the following table product;company;price AAAAA;forn1;395.69 BBBBB;forn1;939.45 CCCCC;forn1;480.33 DDDDD;forn1;590.59 EEEEE;forn1;847.69 AAAAA;forn2;227.31 BBBBB;forn2;375.90 CCCCC;forn2;602.18 DDDDD;forn2;615.02 EEEEE;forn2;84...
asked on 03.09.2015 / 18:32
1
answer

How to mount a WebService to synchronize SQLite database of Android and MySQL

I've set up an android app that stores basic information about a contact in SQLite:
asked on 18.08.2015 / 03:16