All Questions

8
answers

What better way to work offline and synchronize data with server?

I'm working on a project where users will need to register offline and then submit their entries to the server as soon as the internet connection is available. My problem is to know: What is the best way to work offline? Preferably native...
asked on 16.02.2014 / 19:20
4
answers

How to distribute words in a fixed size area?

I have a list of words and I need to distribute them in an area of fixed dimensions so that it looks like they have been arranged randomly in this space. But I need to make sure the words do not encash, and there are not any big "holes" in the a...
asked on 26.02.2014 / 15:39
2
answers

How do I do SEO?

I started a blog a short time ago, but long enough already to have visitors, 2 months already, but I have none! And I've already written 10 articles! I was told that I had to invest in website SEO unless I wanted to pay Adwords. I do not underst...
asked on 12.12.2015 / 22:32
3
answers

Why does "return false;" in a click event cancel the link opening?

Why does return false prevail over, for example, a href? We have this code as an example: <!DOCTYPE html> <html> <head> <title>Uma página linda</title> </head> <body>...
asked on 19.02.2015 / 17:03
1
answer

What is the ~ (useful) operator in PHP?

What is the ~ (useful) operator in PHP? I have seen things like: echo ~PHP_INT_MAX Until then I thought it was to "reverse" a negative number or something, but with the tests I saw that I was wrong. Example: echo ~2; //Imprim...
asked on 03.08.2015 / 17:12
2
answers

Why should we use anonymous functions with jQuery instead of the function directly?

I have a doubt, some jQuery methods expect a function as a parameter, but to work they should receive an inner function as a parameter instead of a function directly, as in the example below: $("a").on("click", function() { retornaNada(); });...
asked on 03.02.2014 / 16:59
5
answers

Why put JS, CSS and images on another server?

On most sites I noticed that they use another server to load scripts, CSS and images. Why do they use it?     
asked on 04.04.2014 / 14:14
2
answers

How to remove a CSS attribute with jQuery?

In jQuery, you can add an attribute to an element by using the attr function. You can also remove an attribute using the removeAttr function. And when I define an attribute of css through the function $.css ? How do...
asked on 26.01.2016 / 17:29
3
answers

What are DRY, KISS and YAGNI principles?

These three principles (DRY, KISS and YAGNI) are widely cited in web . What are they? Who created them? How and where can they be applied?     
asked on 01.07.2014 / 14:04
2
answers

What is serialization? When to use? How to implement in C #?

[Serializable] public class Pessoa { public string Nome { get; set; } public string Cpf { get; set; } } Is there only one kind of serialization ? What are the alternatives for not needing serializing an object?
asked on 15.04.2014 / 22:59