Recent Post

Categories

Archives

Cow Computing

10 Feb 8

Fsutil – The Useful Administrative Tools in Windows

Fsutil is a command-line utility for performing file system related tasks,  such as displaying/managing file or drive properties, dismounting or extending a volume etc. Fsutil is a very powerful tool and is meant to be used by system administrator to perform advance operations. In this post, i will try to share my knowledge on fsutil to perform some simple yet useful tasks.

(*Do learn about what you are doing before executing a command.)

1. Creating a file of a specific size instantly, e.g. 1GB

# fsutil file createnew <filename> <filesize>
fsutil file createnew testfile 1073741824

Read More / Comment »

10 Feb 7

HTML 5 nth-Child

As we all know, HTML 5 is on its way, and there’s going to be a huge addition to the current syntax. In this post, i shall share with you about the “nth-child” feature. Often, we would like to create a table or list with alternate row color as follow:

// HTML Snippet
<div id="test-area">
  <ul>
    <li>row 1</li>
    <li class="even-row">row 2</li>
    <li>row 3</li>
    <li class="even-row">row 4</li>
    <li>row 5</li>
    <li class="even-row">row 6</li>
    <li>row 7</li>
    <li class="even-row">row 8</li>
    <li>row 9</li>
    <li class="even-row">row 10</li>
  </ul>
</div>
// CSS Snippet
ul {
  list-style: none;
}

// color the even rows
.even-row {
  background-color: #ccc;
}

Read More / Comment »