All Questions

3
answers

Why use layout before loading information?

I see in several web applications that before displaying the content is displayed some blocks looking like an image, the blocks that I speak in the image are those of the sidebar. Why use this and how to use it? Image of an application:...
asked on 28.06.2016 / 17:37
1
answer

Undo the parent element jQuery

How can I prevent a #b click from executing the #link click, I would like it to alert only "b" $("#link").on('click',function(){ alert('link') }); $("#b").on('click',function(){ alert('b') }); <script src="https://ajax.googleapis....
asked on 17.12.2015 / 14:21
1
answer

Calling an object while creating another object

I have a Person class and a Date class, the Person class creates a person the date class creates a date to use as the date of birth in the Person class, how is it that when creating a Person I create a date without having to use the code complet...
asked on 26.07.2016 / 23:43
1
answer

Read multiple numbers on the same line with raw_input

I need to write a program that reads values and then uses them to calculate areas of different geometric shapes. My problem is: how to enter data on the same line? Example: 3.0 4.0 2.0  followed by calculation on the next line How to write th...
asked on 26.02.2016 / 11:56
3
answers

Sort threaded list with method O (n * log (n))

I need to sort a linked list (own implementation, without using Java API) with a sort method that has complexity O (n * log (n)). Searching for methods that satisfy the condition found quicksort, however, it assumes random access to the elements...
asked on 02.02.2016 / 01:55
2
answers

How to delete commit from a branch in Git?

How can I delete commit from a branch ? I made an attempt to delete a commit that I did not want, but I ended up making the situation even worse. I'm afraid to do something wrong. Git tells me to use git reset --hard HEAD , but...
asked on 15.05.2016 / 02:27
2
answers

Development in three layers

In a system developed in three layers, should I leave some consistency to the database or should I solve everything in the middle layer? Example: I have a user table where the name must be unique. id=1 nome=João id=2 nome=Carlos id=3 nome...
asked on 05.06.2016 / 00:26
1
answer

Difference in execution time between stdio.h and iostream

I made two codes for an online judge to correct. They are essentially the same. But the stdio.h is accepted and the with the iostream does not, because it exceeds the time limit. Why does this occur? #include <stdio.h> int tipo[1000000];...
asked on 02.03.2016 / 08:51
1
answer

How to use Angular JS and Laravel 4 without conflict with the blade?

I would like to know how do I configure Laravel 4 to use AngularJs without conflict with the Blade, since the interpolation tags are the same?     
asked on 17.02.2016 / 12:04
1
answer

How to compare two lists in Python?

I have two lists whose content refers to one file1.txt and the other one file2.txt , there are differences in the contents of the files and I want to search < only the data that is in file2.txt and is not in file1.txt , I do not care the oth...
asked on 16.02.2016 / 16:19