All Questions

2
answers

Make Regex.Split in between "..."

What regular expression do I use to get the comma character that is not within the "..." fields, eg: line1, "line2", "hello,world", 215, X + Y ^ ^ ^ ^ I want to get only the referrals, I'm using the expres...
asked on 15.02.2016 / 01:06
2
answers

Check total records in Laravel

In certain part of my application written in Laravel I have this query: $counts = User::select(\DB::raw('count(*) as status_count, status')) ->groupBy('status') ->get(); It returns me at least 1...
asked on 23.06.2016 / 06:23
2
answers

Is it safe to use List with Parallel.ForEach?

I'm doing a doing a crawler style method that takes a string list, makes a call to a website, inserts the return into another list, and returns. My method is working, but it is very slow so I want to parallelize the calls. I searched for...
asked on 18.05.2016 / 23:40
2
answers

How to apply scrollbar only in the tbody element in an HTML table?

How to apply scrollbar (scrollbar) only to element tbody , thus leaving element caption and thead fixed in table, without moving when scrollbar moves. > Below is the HTML and CSS of the table: bo...
asked on 10.06.2016 / 18:56
2
answers

What does the @Component annotation?

What does Spring actually do when we put the @Component annotation in a class? How It Works "Beneath the Cloths"     
asked on 08.03.2016 / 20:21
2
answers

Power method and exception handling

I have to solve the following exercise but I have some doubts: Create a class that only has a power method, which receives 2 numbers and calculates the number 1 to the number 2. This process should contain an exception if any of the...
asked on 15.03.2016 / 18:12
1
answer

Validate CPF with JavaScript Regular Expression

Well, I'm trying to validate CPF with regular expressions only. I have already been able to validate the format ... 000.000.000-10 ^([0-9]){3}\.([0-9]){3}\.([0-9]){3}-([0-9]){2}$ Now, is there a way to validate if the CPF is valid in relati...
asked on 16.04.2016 / 07:00
3
answers

Maps in Java: picking key from the value

Hello, I have a string map for string: Map<String,String> myMap = new Map<String,String>(); with a series of values myMap.put("1","valor1"); myMap.put("2","valor2"); myMap.put("3","valor3"); I would like to know what is...
asked on 31.03.2016 / 22:20
2
answers

Best way to make class relationship

Hello, I would like to know what is the correct way to do relationship between classes of 1..N and 1 ... 1. Example: public class Pedido { public int PedidoID{get;set;} ............. } public class ItemPedido { public int ItemPedi...
asked on 14.06.2016 / 02:49
2
answers

Return DataReader to field type bool

I need to return a field that is of type bool : public List<TB_USUARIO> ListarTodos() { var strQuery = "select * from tb_usuario"; using (contexto = new Contexto()) { var retornoDataRead...
asked on 11.05.2016 / 17:36