All Questions

1
answer

Remove "openfiledialog" from C #

Good, I have an OpenFileDialog in my program, but I did not want it to appear when I "open" what is in the image ... If I close the window, it gets "openfiledialog" in the Textbox, and I want it to be blank, since nothing was selected. Im...
asked on 29.09.2015 / 10:25
1
answer

Updating collections with entity framework

Is it possible to update the Collection of an entity with relationship one-to-many through its navigation property ? public class Foo { public virtual IList<Bar> Bars {get; set;} public int FooID { get; set; } }...
asked on 23.09.2015 / 14:25
2
answers

ASP.NET MVC Session

Personal I have a controller where I set two session keys and they capture these key anywhere in the application. (other controller , or a view ). The controller looks like this: [HttpGet] public ActionResult TimetableSelect(int curre...
asked on 24.05.2016 / 18:04
2
answers

Sort method is not sorting correctly

I have the following code: #include <bits/stdc++.h> using namespace std; int main() { int n, cases = 1, a[3]; cin >> n; while(cases != n + 1) { cin >> a[0] >> a[1] >> a[2]; sort(a, a + 2); cout <...
asked on 08.07.2016 / 08:31
1
answer

Regex that captures data entered by user, typed in a phrase

If I have a sentence: "melhor 01/01/2016 - 05/01/2016" How can I retrieve the dates of this sentence using regex?  thus: var data1="01/01/2016" , data2="05/01/2016"     
asked on 18.05.2016 / 21:05
2
answers

Error reading file in C

But before doing this code I created a text file called numero.txt and included in the file: 23;45;89;-230 452;0;97;1 87;2;4;6 346;97;-5;3 Following is an error code, but I can not find the error. #include<stdio.h> void main(){...
asked on 01.06.2016 / 19:43
3
answers

check query in 2 tables at the same time with mysql

I have two tables in my DB (mysql), where: 1st Table: CADASTROS With the following fields: ID, NOME, IDADE, CIDADE 2nd Table: FUNCIONARIO With the following fields: ID, ID_CADASTRO, PROFISSAO, SALARIO Running...
asked on 20.05.2016 / 20:39
1
answer

Touch the photo and open the gallery and camera

I have a sign-up screen where a user's default photo is stored. I would like to put both options. From when the user touches the photo open an option for him to take a photo of the crew and replace the current one and still an option if he wants...
asked on 08.07.2016 / 13:54
1
answer

Discover common elements in various lists

I have the following code: list1 = ['a', 'x', 'c', 'b', 'm'] list2 = ['f', 'x', 'a', 'c'] list3 = ['c', 'e', 'x', 'b', 'p', 'k', 'l'] How do I find the common elements, so that I get a list like this: comuns = ['x', 'c']     
asked on 04.06.2016 / 11:50
5
answers

Converting object properties to numbers

I'd like to know how to make the values of an object become numbers. I read about Methods valueOf() , and toString() , but I have not figured out how to use them to that end, my attempts have not worked much. Thank you in advance.  ...
asked on 03.06.2016 / 19:49