Archive for November, 2009
How Will You Format USB Pen Drive in Ubuntu Linux
You can format USB pen drive with the help of following commands:
First make sure USB Drive is not mounted.
To Unmount Click on Places > Computer > Select USB pen > Right click > Select Unmount Volume.
Check Partition namel using fdisk command.
Let us assume for now /dev/sda1 is your partition name of your USB drive.
Warning : Careful while entering partition name, Wrong partition name can wipe out your entire hard disk or specific partition volume
To format open terminal window and type the following command
$ sudo mkfs.vfat /dev/sda1
For EXT3 file system
$ sudo mkfs.ext3 /dev/sda1
CSS Rounded Corners Without Images
To get rounded corners, Try this CSS
For Firefox :
-moz-border-radius: 10px;
For Individual Corners :
-moz-border-radius-topleft:10px; /*Top Left Corner*/
-moz-border-radius-topright:10px; /*Top Right Corner*/
-moz-border-radius-bottomleft:10px; /*Bottom Left Corner*/
-moz-border-radius-bottomright:10px; /*Bottom Right Corner*/
For Chrome/Safari :
-webkit-border-radius: 10px;
For Individual Corner :
-webkit-border-top-left-radius:10px; /* Top Left Corner */
-webkit-border-top-right-radius:10px; /* Top Right Corner */
-webkit-border-bottom-left-radius:10px; /* Bottom Left Corner */
-webkit-border-bottom-right-radius:10px; /* Bottom Right Corner */
For Internet Explorer :
You have to first download .htc solution & upload it.
Then add this to your css
behavior: url(/css/border-radius.htc); /* This is the path where you upload .htc solution */ border-radius: 10px;
How to Separate Comments and Trackbacks
Normally wordpress themes behaviour is to combine both comments and trackbacks / pingbacks together and display under the same list.
To separate editing of comments.php required.
First Step:
Search for:
<?php foreach ($comments as $comment) : ?>
Add After this:
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type == 'comment') { ?>
Second Step:
Search for:
<?php endforeach; /* end for each comment */ ?>
Add After this:
<?php } else { $trackback = true; } /* End of is_comment statement */ ?>
Third Step:
Search for:
<?php else : // this is displayed if there are no comments so far ?>
Add After this:
<?php if ($trackback == true) { ?>
<h3>Trackbacks</h3>
<ol>
<?php foreach ($comments as $comment) : ?>
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type != 'comment') { ?>
<li><?php comment_author_link() ?></li>
<?php } ?>
<?php endforeach; ?>
</ol>
<?php } ?>

