All Questions

4
answers

Identify if all characters are equal [duplicate]

I have the following code that works perfectly. In it I have a string and check if all the characters are equal or not: var numbers = '1111121111', firstNumber = numbers.substr(0,1), numbersEquals = true; for(let i = 1; i <...
asked on 19.12.2016 / 19:56
3
answers

___ ___ erkimt How the semantic / indexing with AngularJS? ______ qstntxt ___

I always wonder, AngularJS is a framework that is constantly being used.

But I have a question about how it works for crawlers (example googlebot).

Do they even run the javascript and interpret the code to get the information and show the site developed on the platform?

  

With the angular HTML theoretically does not have information "yet", it is first necessary to trigger the controllers and such.

The question is: How does semantics / indexing work with Angular?

    
______ azszpr71758 ___

According to this post , Google's crawler renders pages that have Javascript and browse the listed states.

Interesting parts of the post (free translation):

  

[...] we decided to try to interpret pages by running JavaScript. It's hard to do this on a grand scale, but we decided it was worth it. [...] In recent months, our indexing system has been serving a large number of web pages the way a regular user would see them with JavaScript enabled.

     

If features such as JavaScript or CSS in separate files are blocked (say with %code% ) so that Googlebot can not retrieve them, our indexing system will not be able to see your site as a regular user.

     

We recommend allowing Googlebot to retrieve your JavaScript and CSS so that your content can be better indexed.

Recommendations for Ajax / JS can be found at this link .

If you want to serve Angular application content for crawlers that do not support the same kind of functionality, you need to pre-render the content. Services such as Prerender.io are intended for this.

    
______ azszpr71790 ___

Crawlers (example googlebot) use pure text reading, meaning they first validate meta tags, then comments, then they remove all encoding and then read the whole text without code. Reason: Increase processing speed and reduce errors by having fields that hide, or have nodes (nodules) that are removed during execution. Crawlers do not run any kind of technology (Browser), they only read the file. The Angular does not stop being a Javascript like any other, for that reason its elements are ignored. Only items relevant to SEO (Optimization) are brought into question in their indexing.

Part of my explanation you find in this Google article Understanding Web Pages Better

To better understand the process of viewing plain text, make a requestion of the page in question by CURL, Lynx which are technologies commonly used by Crawlers.

For better indexing we recommend creating robots.txt and XML sitemaps .

    
______ azszpr71766 ___

One tip I can give you is, take the course they offer, it's quick and easy, you'll better understand how semantics work:

link

    
___

I always wonder, AngularJS is a framework that is constantly being used. But I have a question about how it works for crawlers (example googlebot). Do they even run the javascript and interpret the code to get the information and show th...
asked on 29.06.2015 / 14:43
3
answers

When is the controller necessary?

I've rarely used MVC just because me seem like every person uses his own way, I know that MVC came before the web, by reading these links I had a feeling that it seems that understanding one person is not the same as another for the use of MVC...
asked on 30.04.2015 / 19:29
2
answers

Vertical text alignment with CSS

HowcanIalignthistext"Adopt the rhythm of nature: its secret is patience," vertically and horizontally within the white field? I used the following code: <ul> <li> <a> adote o ritmo da natuza: o segredo dela é...
asked on 07.03.2014 / 22:03
1
answer

Basic image editing using OpenCV

Hello, I'm learning how to use the features that OpenCV offers for image processing, and the following question came up: How do I edit only a predetermined area of an image? To make it easier for me to understand, I'm going to use the...
asked on 27.05.2014 / 23:43
1
answer

How to create a login page and password in ASP.NET?

I'm trying to create a login control for my application but I'm not finding a way to do this. I would like it to be a full login control, where I could register new users, retrieve their passwords, etc. Can anyone give me a hint how to do thi...
asked on 17.06.2014 / 05:59
1
answer

Detect phase change, navigator.online

I use this navigator.onLine to check if the user is logged in, however I need to constantly check and use setInterval for this, is there a more elegant way that leaves this gambiarra back type on('navigator.online') ? To c...
asked on 29.05.2015 / 22:12
3
answers

What are the appropriate data types for columns like address, email, phone, and mobile for SQL database?

What kind of data is recommended to create the following fields: address, email, cell / phone number?     
asked on 04.02.2014 / 20:13
1
answer

What is Ellipsis in Python?

In Python's list of native constants , you can find Ellipsis . print(Ellipsis, type(Ellipsis)) #-> (Ellipsis, <type 'ellipsis'>) In Python 3, there is still the syntactic sugar ... representing Ellipsis . pr...
asked on 01.11.2017 / 12:24
1
answer

What is the best way to store monetary values in SQLite?

this post about the lack of precision of double , and practically all the links of the post links. So I realized that this was a vulnerability of my software in production (since I have rounds for every corner before doing...
asked on 05.08.2015 / 16:57