All Questions

3
answers

How to write and appear somewhere what I wrote

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...
asked on 19.07.2015 / 01:28
1
answer

Difference between $ (window) and $ (document)

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...
asked on 24.04.2015 / 21:57
2
answers

Search by tree depth

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...
asked on 09.06.2015 / 19:28
1
answer

Uncaught SyntaxError: Unexpected token this

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...
asked on 13.07.2015 / 23:29
2
answers

PHP Text Interpreter

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...
asked on 16.05.2015 / 04:25
1
answer

What kind should I use to save only the (undated) time in a database?

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     
asked on 09.07.2015 / 18:43
1
answer

What are packages?

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?...
asked on 02.06.2015 / 15:08
1
answer

Doubt with EntityFramework CodeFirst

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...
asked on 11.08.2015 / 23:25
2
answers

How do I join a list in Python?

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...
asked on 13.08.2015 / 14:12
2
answers

Create Fibonacci in a linear function with delegate

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...
asked on 09.07.2015 / 14:23