Well, on websites nowadays some things are found that I can not explain, for example, think of a form asking for your name, you fill in, and at the same time your name appears on top of it, as if you were typing and appearing in the form and abo...
Is there any difference between using $(window) e $(document) ?
Because of what I found they do the same thing ....
And this initialization:
$(window).on('ready load resize', function(){
Would it work if it were like this?
$(d...
I would like to develop an algorithm that does the depth search in a binary tree, but I am not getting it.
When we make the tree we assign to each node the cost (cost to move from one node to the other) and the heuristic (heuristic value of e...
When this code is run together it gives this error, but if it is formatted with line breaks it runs normally, how to fix?
Error:
Uncaught SyntaxError: Unexpected token this
Code in question:
var Recorder = function(source){ this.c...
I'm creating a text interpreter based on the DuckDuckGo Github documentation > in PHP.
This is one of the codes I created:
if (strpos(strtolower($qt), "rand") !== FALSE){
if (preg_match("/^rand$/", strtolower(removeAccents($qt)), $match...
I'm in doubt on what kind I should use to work with hours on my system. Should I use DateTime , Time or TimeStamp . I wish the times were saved in this format:
HH:MM
I'm starting with Phonegap and creating a project has the following structure:
phonegap create helloWorld com.dominio.pasta HelloWorld
But I never understood about this package. Is it a URL in reverse? What is it for? Can anyone explain me?...
I'm starting in the Entity Framework and am having a question regarding CodeFirst . Why do I have to use as virtual some properties like the example below?
[Table("Grupo")]
public class Grupo
{
public int ID { get; set; }
[Required(Erro...
When I want to join a array in PHP, I use the function array_merge
So:
$a = [1, 2, 3];
$b = [4, 5, 6];
array_merge($a, $b);
Result:
[1, 2, 3, 4, 5, 6]
And how could I do this in Python on a list (I think...
Using a list for Delegate (I learned that this is called a linear function, is that right?) I decrement the list so it gets its values, but I can not do a simple arithmetic operation with "X", because I have a list and "X" happens to be this l...