All Questions

2
answers

Inheritance Modeling MySQL and C #

I am having a question about modeling a DesktopApplication system in C # with MySQL. Essentially I will have the Client, Supplier, PF and PJ entities. PF can be a customer or supplier. And PJ can also be a customer or supplier. My goal is to...
asked on 09.03.2016 / 20:24
2
answers

Regex - Operator "." - Capture of meta character

Situation I'm doing a search with regex in a specific word inválido , but by preference I decided to use inv.lido . Which I knew I had in the test string, but did not return. Tests vr = var_dump...
asked on 20.08.2015 / 15:29
2
answers

Return 0 when SUM is NULL

When it does not find results it returns NULL , how can I do for the search return me 0 when NULL ? SELECT SUM(coluna1 + coluna2 + coluna3) FROM table WHERE nome='funalo' AND MONTH(data) = 09 AND YEAR(data) = 2018     
asked on 10.08.2018 / 15:27
2
answers

Does the ListT.ForEach Method exist?

I'm trying to implement the example of this page , but VS2015 (.NET 4.5) says that the ForEach() method does not exist class Program { static void Main() { List<String> names = new List<String>(); na...
asked on 15.11.2015 / 02:57
2
answers

Best practices in the interaction between Activities

I'm developing an application just to validate the interaction between activities and intents . I created 5 ImageButton with an image for each. Each button represents a movie and if the user clicks on one of them, it is di...
asked on 20.10.2015 / 15:09
3
answers

Verify that a record was deleted when executing DELETE query

I'm doing a simple PHP code to delete database email, but I need to use if and else if a given action occurs. If, for example, deleting an email displays a certain message, or if it does not have the requested email in the datab...
asked on 19.10.2015 / 02:28
2
answers

How do I exit a loop by entering a specific value?

I need to make a program that multiplies the numbers entered by the user, and when it says 0 (zero), the program shows the multiplication of the numbers entered. However, I am in doubt as to how I will do this without clearing my multiplication....
asked on 17.10.2015 / 21:36
3
answers

Rotate matrix in 90º

I need to create an algorithm in C to rotate a 10x10 matrix by 90 degrees, though I can not use an auxiliary array for that. Simplifying what was asked to try to find some pattern and use it to solve the problem I used a 3x3 array and compare...
asked on 24.08.2015 / 15:53
4
answers

Is there any way to know if I've done git push?

Whenever I need to update repositories, I use the git push command. The problem is that sometimes I do not know if I've pulled or not, because I'm doing several things at the same time. From there to find out whether I made git push...
asked on 23.06.2016 / 15:07
3
answers

Check if list value "1" contains list "2"

I have two lists: track_list = ['iphone 6', 'iphone 5', 'moto x2', 'galaxy s6'] tweets_data = ['Eu queria um iphone 6 sérião', 'nao gostei do moto x2', 'iphone 5 é coisa do passado'] I want to check if the...
asked on 19.10.2015 / 21:10