All Questions

1
answer

How do you create those preview videos on some tube sites?

Currently sites such as YouTube and some other adult content, play a preview video when we place the computer mouse over some thumb of a list of videos that is shown to us users. So how curious is this implemented?     
asked on 04.10.2018 / 21:08
4
answers

How to generate a serial key that contains a prefix in the first 5 characters?

I have a script in PHP that generates a serial key , but I need this script to generate this " serial key " with a default at the beginning, as if it were a prefix. The code I already have is: <?php $chars = array(0,1,2,3,4,5,6,7,8,9,'...
asked on 20.11.2017 / 02:45
2
answers

Determine how many "islands" an array contains

I need to create a program that receives as input an array size (up to 300 per 300) and the array values that will be stored (it can be only 1 or 0). I must determine the number of "islands" (clusters of 1) formed and display for the user. I can...
asked on 14.10.2017 / 06:03
2
answers

How to install .NET Core Nuget packages using VS Code?

I'm using VS Code to develop a .NET Core project and would like to know how to install packages in Nuget on it. In Visual Studio, there is a specific terminal for this, the Package Manager Console . You need to use the Add-Package com...
asked on 27.11.2017 / 19:46
3
answers

Merge all values on the same level of the array, on the same level

I have the following array : Array ( [A] => Array ( [0] => 10 [1] => 20 [2] => 30 ) [B] => Array ( [0] => 100 [1] => 200...
asked on 05.05.2018 / 17:54
1
answer

Is there a magic method for calling an attribute as a method in php?

For example, we have the class: class foo { var $bar = 1; } I wanted to know if I can do something if I call it like this: $foo = new foo; $foo->bar();     
asked on 08.09.2016 / 14:35
1
answer

Why is jQuery becoming obsolete? [closed]

More and more, I find articles (in English or in Portuguese) that speak of this ... Am I wrong to continue using jQuery on websites? What's wrong with him? Is there any other framework (or lib ) that I should learn to set asi...
asked on 31.01.2018 / 14:35
1
answer

Create a global variable in Delphi

I need to run the following code, but the form in question is not always UniForm1 . So I'm thinking of storing the name of form in a variable and replacing UniForm1 with it. Instead of using: UniForm1.Parent := UniPanel1; UniForm1...
asked on 19.09.2017 / 14:23
1
answer

Computational efficiency in R - lists or vectors

I'm studying computational efficiency in R, generating matrices through different methods. First, I generate an array of vector form and calculate the variances for its columns: matriz <- matrix(rep(NA, 1000*200), nrow = 1000, ncol=200)...
asked on 10.03.2018 / 04:04
1
answer

What is the functionality of the "heapify" method of the heapq module?

What is the heapify method of the heapq library of Python? How could I use it in a list, for example?     
asked on 17.10.2017 / 03:35