Partitioning my 256GB HD for Ubuntu 12.04

Tags

, ,

Since I’m preparing to switching to Ubuntu as my only OS (now running dual boot with Windows 7 & Ubuntu) I started to look for the optimal partition setup. In my laptop (Lenovo ThinhPad x220) I now have a 256Gb SSD drive with 16Gb RAM and Intel(R) x64 Core(TM) i7-2620M CPU @ 2.70GHz processor. Below is the partitioning scheme which I think will be optimal. Continue reading

Inteligent cell splitting with Excel

Tags

, , ,

I’ve just extracted some list of countries that were put in one dropdown menu. I got them from the source code so it looks something like that:

<option label="Afghanistan" value="4">Afghanistan</option>
<option label="Albania" value="5">Albania</option>
<option label="Algeria" value="6">Algeria</option>
<option label="American Samoa" value="7">American Samoa</option>
<option label="Andorra" value="8">Andorra</option>
<option label="Angola" value="9">Angola</option>
.....................................................

Continue reading

404 and other HTTP status codes

Tags

, , ,

When a request is made to your server for a page on your site (for instance, when a user accesses your page in a browser or when Googlebot crawls the page), your server returns an HTTP status code in response to the request.

This status code provides information about the status of the request. This status code gives Googlebot information about your site and the requested page.

Some common status codes are:

200 – the server successfully returned the page
404 – the requested page doesn’t exist
503 – the server is temporarily unavailable

A complete list of HTTP status codes is below. Continue reading

Charsets UTF-8 vs. ISO-8859-1

Tags

, , , ,

This post explains the fundamental differences between character sets used on your website. Here is the most popular charset definition that should be placed in the within the HEAD tag:

 <head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
 ...
</head> 

For ASCII characters the following code can be used:

<head> 
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
 ...
</head>  

Continue reading

CSS – basics of styling, definitions and kinds of cascading style sheets

Tags

, , ,

Linking to an External Style Sheet

An external style sheet may be linked to an HTML document through HTML’s LINK element:

<link type="text/css" rel="stylesheet"
  media="only screen and (max-device-width: 480px)" href="iPhone.css"> 
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" TITLE="8-bit Color Style" 
   MEDIA="screen, print">
<LINK REL="Alternate StyleSheet" HREF="color-24b.css" TYPE="text/css" 
   TITLE="24-bit Color Style" MEDIA="screen, print">
<LINK REL=StyleSheet HREF="aural.css" TYPE="text/css" MEDIA=aural>

Continue reading

!DOCTYPE declarations

Tags

, , , , , , , ,

HTML declarations known as DTDs (DocType Declarations) are simply telling your browser in which markup language this site is written. Here are some on the most popular definitions.

The DTD tag is the only tag that can be found above the opening tag.

HTML 4.01 DTDs

  • Strict DTD does not allow presentational markup with the argument so CSS should be used for that instead. This is how the Strict DTD looks:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
     "http://www.w3.org/TR/html4/strict.dtd"> 

  • Transitional DTD allows some older PUBLIC and attributes that have been deprecated:
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
      "http://www.w3.org/TR/html4/loose.dtd"> 
  • If frames are used, the Frameset DTD must be used instead, like this:
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" 
      "http://www.w3.org/TR/html4/frameset.dtd"> 

Continue reading