All Questions

2
answers

Error converting numbers. How to convert factors to numbers?

In the following example: dados <- data.frame(x=c("11", "10", "20", "15"), y=c("25", "30", "35", "40")) dados x y 1 11 25 2 10 30 3 20 35 4 15 40 When trying to transform the variable x into number, instead of 11, 10, 20 15 ap...
asked on 14.03.2014 / 06:32
2
answers

How to align strings to use in a listview?

In my Android project I need to create a table with a listview but the data always comes misaligned. I put each record in my database at a position in an array of strings so I can use it in listview . The method I use to try to alig...
asked on 27.01.2014 / 18:01
2
answers

Using WITH AS command on Sql Server

I have seen this example below, I would like to know how this With [name] AS command works in Sql Server, and what its uses compared to tables in memory or SubQueries , in terms of performance. With ClientesAtivos AS (...
asked on 24.09.2015 / 05:44
2
answers

How to detect Ajax Request? [duplicate]

Is there any way in PHP to detect if the request is Ajax?     
asked on 22.05.2014 / 15:52
1
answer

var, const or let? Which one to use?

Recently I discovered the existence of let and const but now I am in doubt which to use constantly? And why do I never see codes with let or const ?     
asked on 20.05.2017 / 07:59
2
answers

What is Prism?

What prism ray is this? Is it to eat? Or to program? I've never heard of it. Tag: prism I do not want to know everything, but basic information about what that is.     
asked on 13.07.2017 / 19:49
3
answers

Turn the first letter of a string in uppercase?

Example: I have a string "stack exchange" , how do I transform its first character, getting "Stack exchange" ?     
asked on 24.08.2015 / 01:33
1
answer

How Lazy Load Entity Framework works

It's the following personal, so I saw in Entity to use Lazy Load you leave the property without the virtual keyword , and eager with the virtual. However, I have seen in some blog posts that staff use the Configuration.EnableLazyLoad...
asked on 09.06.2014 / 19:36
2
answers

What is the best way to read an XLS file?

I would like to know the best way to read an XLS file in C #. Can I treat it the same way I treat a table in the database?     
asked on 12.05.2014 / 19:44
2
answers

Program to simulate Birthday Paradox

In probability theory, the birthday paradox says that given a group of 23 (or more) randomly chosen people, the chance that two people will have the same birthday is over 50%. For 57 or more people, the probability is greater than 99%, however, i...
asked on 04.04.2018 / 19:15