All Questions

1
answer

What is the logic of function (x) and function (x, y) in R?

When executing loops with apply functions, function(x) is always used. Example: lapply(df,function(x)gsub('[^A-Z]','',x)) In other functions, however, function(x,y) is used. Example: Reduce(function(x,y)merge(x,y,all=TRUE,b...
asked on 21.09.2018 / 20:14
3
answers

Problem with function call in CakePHP

I have this in the Pass.php template: <?php class Passagem extends AppModel { public $name = 'Passagem'; }?> And this in PasswordsController.php: <?php class PassagensController extends AppController { public $helpers =...
asked on 29.01.2014 / 03:59
1
answer

Create an extension for visual studio that dynamically adds classes

I'm creating an extension for visual studio that aims to create a project based on the options the programmer wants. In this case a wizard will be created where it will choose the entity (s) you want to create, and based on this selection will c...
asked on 13.07.2018 / 16:59
1
answer

How to do a select based on data from another table

I have to make the following adaptation in a query: Table app_usuários : id, nome, sobrenome, hash, sexo, interesse, latitude e longitude . Table app_likes : id, user_a_id, user_b_id Briefly, I have a query that...
asked on 28.08.2018 / 12:04
2
answers

How do I correctly access elements of a dynamic array via pointer?

As many know (I believe) a multidimensional array is stored in memory in a linear fashion, ie each row of the array goes into memory one after the other. For example, I created the following image: Soyoucanmanipulateamultidimensionalarrayasi...
asked on 08.06.2018 / 03:27
4
answers

An algorithm to find duplicate files?

I need to make a program that finds duplicate files on my computer, so the user can decide what action to take with these files (eg delete the copies). For now, I only worry about a binary comparison between files (that is, the file is only dupl...
asked on 30.01.2014 / 13:18
1
answer

How to change the color of the line below EditText via xml

How to change the color of this line under EditText via xml?     
asked on 30.08.2018 / 11:13
1
answer

Custom resize of a div

How to customize resize so you can resize anywhere in the bottom of div Example of stackoverflow itself: .caixa { background-color: #444; /* margin: 100px auto; */ height: 100px; width: 400px; resize: vertical;...
asked on 11.08.2018 / 03:06
1
answer

What is the JavaScript Map object for?

This also seems to be another JavaScript novelty: the object Map . Unlike the Set , which I already I have an idea how it works and I saw it in other languages, Map is something I did not see in any language I worked on. Wha...
asked on 12.07.2018 / 19:36
2
answers

How to put + of a domain in this code, different references

Hello, I have a code that works as a reference. In other words, if the visit comes from domain01.com, it displays: WITH REFERENCE if it does not display: NO REFERENCE Code: <?php if (isset($_SERVER['HTTP_REFERER']) &&...
asked on 16.06.2018 / 22:30