mercoledì 10 agosto 2016

Favicon: what is it, how to do it

What is a favicon?

A favicon (short for favorite icon), also known as a shortcut icon, website icon, tab icon, URL icon, or bookmark icon, is a very small image, associated with your website or a particular web page.
It will be typically displayed in the browser's address bar, next the page's title on the tab, or next the page's name in a list of bookmarks or in browser history.
The favicon file has .ico extension.
Dimension of a favicon is 16x16 or 32x32

How to create a favicon?

You can make your own favicon using many free on-line tools:

http://favicon.htmlkit.com/favicon/
http://www.favicon.cc/
http://realfavicongenerator.net/

sabato 6 agosto 2016

How To Redirect a Site Using .htaccess - The Easy Way

If you need to redirect a site, or a given page, to another site or to another given URL, the easiest and most powerful way is using .htaccess

Beware: .htaccess is very powerful, but it's not error-proof: even the slightest error (a missing space, or a simple dot) can result in a down of your entire site. So...
1 - make a backup of current .htaccess prior modify it;
2 - test, test, test and verify every modification

To make redirect(s) in .htaccess you have different commands:

301 Redirect (permanent)

Point to a different site or URL on a permament basis.
This is the most useful type of redirect, and it's "SEO friendly"

Examples:

Redirect permanently your entire site to another domain (new-domain.com):
Redirect 301 / http://www.new-domain.com/

Redirect permanently a certain page of your site to another page of another domain:
Redirect 301 /my-old-page/ http://www.new-domain.com/newpage/


302 redirect (temporary)

Point to a different site or URL, but only on a temporary basis (i.e., for maintenance)
The usage is the same as for Redirect 301, but you need to specify 302 instead of 301

Other types of redirect (303, 307 etc.)

There're others types of redirects, which for example have different behaviour regarding the handling of GET and POST message.
For detail about it, see Wikipedia article on the 30x redirection codes: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection

Syntax trick

You can specify "permanent" instead of "301".
So:
Redirect 301 / http://www.newdomain.com/
and
Redirect permanent / http://www.newdomain.com/
is the same command.

Using redirect for site migration

Suppose you're rebranding your site, and moving it from old-domain.com to new-domain.com
Old-domain.com is quite well indexed, with a lot of different pages well positioned in SERP, and a lot of external links pointing to them.
If you just make a full 301 redirect from old-domain.com to new-domain.com, you'll loose a lot of your positioning in SERP. But also will happen that people, arriving from external site through specific links to your site, will not find the right destination page but will get home page or, worstly, a 400 error.
You can fix the issue making a number of redirect 301 command in your .htaccess.

So you can, for example, insert in .htaccess all of following commands:

Redirect 301 /my-old-page/ http://www.new-domain.com/newpage/
Redirect 301 /index.html http://www.new-domain.com/index.php
Redirect 301 /apple.html http://www.new-domain.com/apple/index.php

You can insert as many redirect commands as you need: even hundreds of them.

How to determine what URL to redirect?

Use analytics to analyze what are the URLs of old-domain.com which receive traffic from external links or from search engine.

What about the target page?

Make the target page as similar as possible at the original page; you can use also the same text of the original page, or be sure to use the same keywords; but, and it's mostly important, the target page must be relevant as the original page, and be about the same matter (that's to say: if original page matter is "apple", you must redirect it to a page which matter is "apple" too: if the matter of the target page is "electric engine", you're wrong.
  

giovedì 4 agosto 2016

How To Automatically Make Clickable URL in WordPress

If you need to put a URL in our WordPress content and make this content clickable, the default way is time consuming: you need to add the link manually, using the WordPress's WYSIWG editor.

But WordPress offers a quite easy way to do it automatically.
All you need to do is activate the function make_clickable in your WordPress, and WordPress will do all the job.

To use this function you only need to add one row of extra code on functions.php :

add_filter('the_content', 'make_clickable');

This function works with http URL, email addresses and FTP..

venerdì 29 luglio 2016

How to Create a Rollover Image Effect in HTML

To create a rollover effect using plain HTML is easy, and you can use it nearly on every hosting service (included Blogger and free WordPress.com) service.

You need two different images, same size, like follow:

   


The HTML code to use is:

< img src="FIRST-IMAGE" onmouseover="this.src='SECOND-IMAGE'" onmouseout="this.src='FIRST-IMAGE'" >

The result (roll over it with your mouse to see the effect!):



About .co.uk Registrant data verification

Nominet's Terms and Conditions and Rules of Registration are mandatory.


If you are listed as the Registrant, you are legally responsible for your .co.uk domain name. This means it’s essential that you have specified the correct contact details for you, so Registry can get in touch with you if there’s ever a problem with your domain name.

How Nominet check your data

To make sure the information of your registration is true and up to date, Nominet will attempt to match all registrant name and address details with third party data sources when you register, or when you change your data. Nominet does this by checking the information you supply with in your application against a number of different databases, including:

The Electoral Register: Nominet uses this to check UK name information for individual applicants.
Companies House data and UK business records: Nominet uses these files to check that applications made under trade names correspond with registered companies.
Royal Mail Postcode Address file: Nominet uses this to validate all UK addresses. Because addresses in this database are often in a different format to how they appear on the register, they carry out a matching exercise to establish how close an address is to the ‘perfect address’. This is based on a confidence level. It’s also important to note that the registrant’s name and address don’t need to be linked. For instance, they understand that registrants may give different addresses as points of contact to their home address, such as a solicitor or accountant. It’s essential to make sure the registrant can be contacted through this address.
In each case, Nominet looks for a valid individual, business and address they can identify as matching the information they hold. Information for applicants from overseas is checked against equivalent public data sources, where they exist.

HOW YOU’LL KNOW IF NOMINET HAS BEEN ABLE TO VALIDATE YOUR DATA

You can use the WHOIS tool to check if Nominet has been able to match your information against the data sources listed above. If your data has been validated, you’ll see the following status:

Nominet was able to match the registrant’s name and address against a 3rd party data source on DD-Month-YYYY

If Nominet hasn’t been able to validate the name and/or address, you’ll receive the following reply:

Nominet was not able to match the registrant’s name and address against a 3rd party data source on DD-Month-YYYY

If an Accredited Channel Partner validates the registrant’s data, WHOIS will show this message:

The Registrar is responsible for having checked these contact details

WHAT HAPPENS IF NOMINET IS NOT ABLE TO VALIDATE YOUR DATA?

If Nominet can’t match your data, that doesn’t necessarily mean it’s incorrect. Because Nominet's domain register includes over 10 million names, they have to use an automated validation system which is not always 100% accurate.

In some cases, it could be that although you’ve submitted the right details, they aren’t listed on the public sources they use to check them. For example, if you’re not currently listed on the electoral roll, or your organisation has only recently been registered with Companies House.

If this happens, they can try to match the data manually by asking applicants to submit appropriate documents. If Nominet does get in touch with you about validating your details, it’s important that you act on this as soon as you can – if your details aren’t verified your domain name could be suspended.

Depending on whether Nominet has been unable to validate your name and/or address, they accept any example of the following:

Valid driving licence
Valid passport
Valid National ID card (for non-UK citizens)
National Insurance card (for UK citizens)
Utility bill from the last three months
Bank statement from the last three months
HMRC tax notification from the last three months
Official company letterhead
Company stamp
In some cases, Nominet can’t match data because a domain may have been registered to someone who didn’t give their full name, or is under a trading name that doesn’t correspond with a registered company. In these cases, Nominet will ask registrants to update or complete their personal information.

If your details are out of date or incorrect, you can update them through Nominet's Online Services account.

http://www.nominet.uk/domains/about-domain-names/

sabato 26 ottobre 2013

Mbps, TB/mese, traffico, banda...

Sul concetto di "traffico", "banda", e sulle relative unità di misura (Mbps, TB/mese, GB/mese, ecc.) c'è parecchia confusione.

Vediamo di chiarire:

BANDA è la "capacità di comunicazione" di un server.
Ovvero, facendo un parallelo stradale: quanto larga è la strada che collega un server ad internet? Quante corsie ha?
L'unità di misura di questa capacità è il Mbps, ovvero MEGA BIT AL SECONDO (Da NON indicare, come pur fanno molti, in MBps, che sarebbe "mega byte al secondo", oppure mbps (milli-bit al secondo)
1 Mbps significa che, in un secondo, è possibile inviare un milione di bit, corrispondenti a circa  125000 byte, ovvero circa 122 KB (kilobyte)

TRAFFICO invece è la QUANTITA' di dati che vengono fatti trasmettere in una certa quantità di tempo; questa "quantità di tempo", convenzionalmente e per scopi puramente commerciali, è spesso stabilita ad un mese.
Restando al parallelo stradale: quante automobili ho la possibilità di far viaggiare gratis su questa strada nell'arco di un mese?

Le offerte di connettività per un server, o un piano hosting, normalmente sono definite o per banda garantita, oppure per traffico.

Ad esempio, un'offerta di 1 Mbps garantito, significa che al nostro server è garantita la disponibilità di una connessione minima, sempre, di 1 Mbps. A seconda del provider, può darsi che questo limite ci sia dato modo di superarlo (tanto, poco, occasionalmente...), ma che comunque, in qualsiasi situazione, ci "garantirà" comunque questa banda minima.

A quanto corrisponde 1 Mbps, in termini di traffico?


Supponiamo che un mese abbia 30 giorni (alcuni 31, uno 28 ecc. ...  prendiamo 30 per semplicità, ok?)
In un mese ci sono 24 x 30 = 720 ore, corrispondenti a 3600 x 720 = 2.592.000 secondi
OK?

Con 1 Mbps posso trasmettere in un secondo 1048576 bit (1 Mb corrisponde, appunto, a 1048576 bit), pari a 1048576 / 8 = 131072 byte
Quindi, in un mese potrò (in teoria) trasmettere 131072 byte * 2.592.000 secondi =  339.738.624.000 byte, corrispondenti a 331.776.000 Kbyte, corrispondenti a 324.000 Mbyte, corrispondenti a 316 GB
(segnalo un  utile calcolatore di banda on line)

Incertezze e fonti di equivoci:


  • un KB non sono "1000 byte", ma 1024; un MB non sono "mille kilobyte", ma 1024 kilobyte, quindi 1048576 byte; però spesso qualcuno in questi casi arrotonda (arbitrariamente) a 1000.
  • quando trasmettiamo qualcosa in internet, oltre ai nostri dati, una certa quantità se ne va in header dei pacchetti, controlli di parità, reinvio per pacchetti persi per strada... quindi, se dobbiamo scaricare un file da 1 GB, il nostro consumo di traffico complessivo sarà sicuramente superiore ad 1 GB. Quanto superiore? Operativamente, può capitare che sia anche il doppio...
  • la "banda" sulle connessioni di un server è sempre "simmetrica": cioè significa ad esempio che, su una banda di 1 Mbps, è possibile contemporaneamente fare un download (dal server verso internet) ed un upload (da internet verso il server), ciascuno dei quali da 1 Mbps; quindi, in realtà, la banda disponibile è doppia
  • in un server il consumo di banda non sarà quasi mai simmetrico: a seconda della funzione del server, la banda in uscita sarà maggiore rispetto a quella in entrata (il caso più frequente), oppure il contrario
  • quando si parla di "traffico", si considera sempre la somma sia del traffico in entrata che di quello in uscita
    Quindi, il calcolo che abbiamo fatto sopra per determinare che con una banda di 1 Mbps posso inviare 316 GB in un mese, andrebbe raddoppiata: nel senso che, con 1 Mbps, posso fare un upload di 316 GB ed un download di 316 GB: quindi, in totale, 632 GB

Sporchi trucchi di alcuni provider


Questi sono trucchi che ho sperimentato e verificato esser messi in pratica da alcuni provider (che evito di nominare):

  • 1 Mbps dichiarato in realtà viene fatto equivalere a 0,5 Mbps in entrata e 0,5 Mbps in uscita
    Poiché la banda è simmetrica, "interpretano" che il Mbps sia complessivo, ovvero la somma di banda in entrata e di quella in uscita.
    Insomma, è un modo truffaldino per farvi credere di avere il doppio della banda che avete in realtà
  • Arrotondare 1024 a 1000
    Diversi provider "arrotondano", secondo convenienza, 1024 a 1000 nelle conversioni. Difficile da rilevare se non con calcoli abbastanza impegnativi 
  • un traffico a volume non dà nessuna garanzia di tempo
    il fatto che ad esempio abbiate 1 TB di traffico al mese, non significa che è garantita la banda minima di 3 Mbps per trasmetterlo nell'arco di un mese: potrebbe essere che in determinati momenti abbiate una banda anche molto superiore (anche 20, 30 , 50 Mbps), ed in altri invece ne abbiate pochissima (anche MOLTO meno dei 3 Mbps teorici).
    Meccanismo di per sé corretto, purché non si esageri...
    Nel senso: la banda " a traffico" costa normalmente MENO (anzi, MOLTO MENO) di una banda "flat" garantita, proprio perché permette al provider di giostrarsi, realizzandola per mezzo di banda in quel momento inutilizzata.
    Mi spiego: ai livelli superiori, la connettività non è MAI venduta a volume, ma sempre flat. Un provider può acquistare 1 Gbps di banda, ma non può acquistare invece i petabyte di traffico che è possibile realizzare con 1 Gbps: lui acquista 1 Gbps di banda garantita, che poi la utilizzi o meno è affar suo.
    Poi il provider può usare questo 1 Gbps per fornire, ad esempio, 100 Mbps di connettività garantita a un centinaio di server. Però questo centinaio di server non riuscirà MAI ad impiegarli effettivamente tutti, perchè il consumo di banda di un server nell'arco della giornata è molto vario ed altalenante: in acuni momenti consumerà 90, in altri 30, in altri quasi nulla...
    Quindi, istante per istante, "avanzerà" della banda, anche in quantità sensibile; ed è questa banda che il provider spesso poi utilizzerà per fornire, appunto, "traffico a consumo" ad altri server
    Se però il consumo di banda da parte degli altri server (quelli "a banda garantita") dovesse aumentare, il provider immediatamente taglierà la banda a disposizione di quelli con traffico "a volume"     

Quindi, in definitiva: traffico a volume o a banda flat garantita?


Se il servizio non è critico, ed il budget basso, conviene indirizzarsi verso un traffico a volume (con l'accortezza di scegliere oculatamente il provider, perchè si potrebbe comunque andare incontro a brutte sorprese)
Se il servizio è "importante", allora è di gran lunga preferibile indirizzarsi verso una connessione flat garantita.

martedì 9 ottobre 2012

Non bisogna solo guardare il prezzo di registrazione...

Quando si valuta un registrar o un reseller per la registrazione del proprio dominio, oltre al mero prezzo di registrazione del dominio bisogna valutare anche altri aspetti.

Si, ovviamente, la qualità del servizio, e l'assistenza al cliente, e bla bla bla...
Però anche dare un'occhiata ai costi "extra" per certi servizi non sarebbe sbagliato.

Ad esempio in questi giorni io stavo guardando con attenzione Tophost, che offre dei prezzi di registrazione molto accattivanti (in alcuni casi forse anche troppo...)

Ma oggi in un post sul forum di hostingtalk ho scoperto un motivo per cui certi registrar, tutto sommato, è meglio evitarli.

Leggetevi pure tutto il post, ma in soldoni il succo è: 160 (CENTOSESSANTA!!!!) euro (+ IVA, of course...) per cambiare l'intestazione di un dominio .it (operazione che molti registrar fanno gratis, o ad un prezzo puramente simbolico...)

E suona un po' beffarda la spiegazione che danno al cliente: "Ci rendiamo conto dell'onerosità della procedura e lavoreremo per renderla, in futuro, più economica."

Vabbeh, bye bye... ci sono tanti altri provider sul mercato!

UPDATE:
Sono andato a farmi un giretto sul sito di Tophost... e qui: http://www.tophost.it/aiuto/cat2/14/318/  ho trovato questa curiosa indicazione:

E' possibile effettuare il cambio intestatario per un dominio .it? 
E' possibile effettuare il cambio intestatario per un dominio .it. Basta aprire un ticket e verranno indicati modalità e costi per effettuare tale procedura.
 Per le altre estensioni, al momento, NON è possibile il cambio intestatario.
Quindi, con Tophost cambiare l'intestatario di un dominio .it costa un rene, mentre farlo per un .com è semplicemente impossibile...