Posts

GoogleBot

Googlebot  is Google's web crawling bot (sometimes also called a "spider"). Crawling is the process by which Googlebot discovers new and updated pages to be added to the Google index. We use a huge set of computers to fetch (or "crawl") billions of pages on the web. Googlebot uses an algorithmic process: computer programs determine which sites to crawl, how often, and how many pages to fetch from each site. Googlebot's crawl process begins with a list of webpage URLs, generated from previous crawl processes and augmented with Sitemap data provided by webmasters. As Googlebot visits each of these websites it detects links (SRC and HREF) on each page and adds them to its list of pages to crawl. New sites, changes to existing sites, and dead links are noted and used to update the Google index. For webmasters: Googlebot and your site How Googlebot accesses your site For most sites, Googlebot shouldn't access your site more than on...

Chrome Remote debugging protocol

Image
Chrome Remote debugging protocol Under the hood, Chrome Developer Tools is a web application written in HTML, JavaScript and CSS. It has a special binding available at JavaScript runtime that allows interacting with chrome pages and instrumenting them. Interaction protocol consists of commands that are sent to the page and events that the page is generating. Although Chrome Developer Tools is the only client of this protocol, there are ways for third parties to bypass it and start instrumenting browser pages explicitly. We will describe the ways it could be done below. Note: If you are interested in inspecting remote pages on Chrome for Android, please see the remote debugging documentation . For users wishing to implement custom inspection code using our debugger protocol instead, please use the instructions below. Protocol Interaction protocol consists of JSON commands that are sent to the page and events that the page is generating. We define this protocol in Blink (...

[AS3] Crossdomain.xml file syntax

A SWF file on server1.com can load files from server2.com only if there is a crossdomain.xml file on server2.com that lists all the servers that may load files from it, and the list contains server1.com. Synatx  for crossdomain.xml file is as follows: <?xml version="1.0"?>    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy>     <site-control permitted-cross-domain-policies="all"/>     <allow-access-from domain="*" to-ports="*" secure="false" />     <allow-http-request-headers-from domain="*" headers="*" secure="false" /> </cross-domain-policy> Place this file in the root folder to access content from 2 different domains.

[FLEX] What is dynamic keyword used for? or What is the difference between sealed class and dynamic classes?

Dynamic Keyword is used to make a class dynamic. A dynamic class defines an object that can be altered at run time by adding or changing properties and methods. We create dynamic classes by using the dynamic attribute when we declare a class. For example, the following code creates a dynamic class named Protean: dynamic class Protean { private var privateGreeting:String = "hi"; public var publicGreeting:String = "hello"; function Protean () { trace("Protean instance created"); } } If we subsequently instantiate an instance of the Protean class, we can add properties or methods to it outside the class definition. For example, the following code creates an instance of the Protean class and adds a property named aString and a property named aNumber to the instance: var myProtean:Protean = new Protean(); myProtean.aString = "testing"; myProtean.aNumber = 3; trace (myProtean.aString, myProtean.aNumber); // output: testing 3 Prop...

[HTML5] HTML5 Quick Start Guide

Image
Introduction HTML5 is the fifth revision and the newest version of the HTML standards. Previous version (HTML 4.01) was released in 1999. In 2006, WHATWG (Web Hypertext Application Technology Working Group) & W3C (World Wide Web Consortium) came together to define the new version of HTML. Earlier, WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. They discussed and layed out HTML Design Principles . They were addressed towards better experience for user and easy adoption for developer which would be independant of device and plugins with a graceful fallback mechanism. HTML5 specifications were finalized on 17th December 2012 last year. Tools HTML5 is still a work in progress. Browsers are implementing HTML5 specifications as per their individual plans, thus we have various level of support on different browsers. In order to know what features are supported by a particular ...

[Windows] Script to remove spaces from filenames

This is the code for removing spaces from filenames. @echo off setlocal disableDelayedExpansion if /i "%~1"=="/R" (   set "forOption=%~1 %2"   set "inPath=" ) else (   set "forOption="   if "%~1" neq "" (set "inPath=%~1\") else set "inPath=" ) for %forOption% %%F in ("%inPath%* *") do (   if /i "%~f0" neq "%%~fF" (     set "folder=%%~dpF"     set "file=%%~nxF"     setlocal enableDelayedExpansion     echo ren "!folder!!file!" "!file: =!"     ren "!folder!!file!" "!file: =!"     endlocal   ) ) Copy the above code into a notepad file and save it as .bat extension in the same directory where you want to run the command.

[Windows] Script to rename files from Uppercase to Lowercase

If you need to change the filenames in windows explorer from uppercase to lowercase, do the following: Go to the directory and run the following command: for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")   and your job will be done, njoy!