Sabtu, 28 Juli 2012

How to Make the Blogger Posts Have a Calendar for the Date in

It's quite common to see calendar style dates next to some WordPress posts but for the Blogger platform it isn't always easy adding it. But who said you can't do it? You need to look no further than this blog. In this tutorial, we'll learn how to create a calendar style for your Blogger posts date!


How to create calendar style dates in Blogger



Step 1. Go to "Settings" > "Language and Formatting" - "Date Header Format" and change the date format as you can see in this example below (first add day, month and finally year)
 

Step 2. Go to Template > click the "Edit HTML" button


Step 3. Click anywhere inside the code area and press CTRL + F to open the blogger' search box

Step 4. Type or paste the following line inside the search box and hit Enter to find it:
<h2 class='date-header'><span><data:post.dateHeader/></span></h2>
Step 5. In case you find it twice, replace it twice with this code:
<div id='Date'>
<script>changeDate(&#39;<data:post.dateHeader/>&#39;);</script>
</div>
<b:else/>
<div id='Date'>
<script>changeDate(&#39;&#39;);</script>
</div>
Step 6. Now type this tag inside the search box and hit Enter to find it:
</head>
Step 7. Just above the </head> tag, paste this code:
<script type='text/javascript'>
//<![CDATA[
var DateCalendar;
function changeDate(d){
if (d == "") {
d = DateCalendar;
}
var da = d.split(' ');
day = "<strong class='date_day'>"+da[0]+"</strong>";
month = "<strong class='date_month'>"+da[1].slice(0,3)+"</strong>";
year = "<strong class='date_year'>"+da[2]+"</strong>";
document.write(month+day+year);
DateCalendar = d;
}
//]]>
</script>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<style type='text/css'>
/* Calendar style date
----------------------------------------------- */
#Date {
background: transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEUREzYT-M695IVif6wAT1IdseLNBg5jPXHDc7xgrWiBNY0Oe-CZTkBGarAxnCmf8CjYSTdMeaMUq-81WNEah44_GtaQCas8ElLWJnG926CIHyoCmOE4iiiG933OiiIKJQ3VIB5dwGsvuk/s1600/calendar07.png) no-repeat;
display: block;
width:60px;
height:60px;
float: left;
margin: 15px 2px -40px -108px;
padding: 0 0 8px 0px;
border: 0;
text-transform: uppercase;
}
.date_month {
display: block;
font-size: 15px;
font-weight:bold;
margin-top:-1px;
text-align:center;
color:#ffffff; /* Month's color */
}
.date_day {
display: block;
font-size: 28px;
font-weight:bold;
margin-top:-8px;
text-align:center;
color:#282828; /* Day's color */
}
.date_year {
display: block;
font-size: 10px;
margin-top:-8px;
text-align:center;
color:#282828; /* Year's color */
}
</style>
</b:if>
Before saving the Template, here we can make some changes:

- To change the calendar style, replace the url in blue with yours;
- If the calendar doesn't appear as it should, change -108 with 0;
- With green are marked the areas where you can change the color of the dates

Step 8. Now Preview your Template and if everything looks ok, hit the Save Template button.

That was all... Enjoy!

Sabtu, 21 Juli 2012

Quick Sort Algorithm in C


Quick Sort algorithm is algo. for sorting given no of data with complexity 'in order of' n2[O(n2)].Here is the complete program Implemented in C language for Microsoft Windows OS.




#include
#include
void sort(int [],int,int); //prototype of sort()
void partarray(int [],int,int,int *); // prototype of partition()
void main()
{
int i,j,a[8]={13,24,324,41,55,46,37,38};
clrscr();
sort(a,0,7);// call to sort function
//0 points to lower bound
// 7 points to upper bound
for(i=0;i<8;i++)
printf("%d\n",a[i]); //printing sorted array
getch();
}
void sort(int a[],int lb,int ub)
{
int j;
if(lb >=ub) // condition for recursion breaking
return;
partarray(a,lb,ub,&j);
sort(a,lb,j-1); //recursive call to sort() function
sort(a,j+1,ub);
}
void partarray(int a[],int lb,int ub,int *j)
{
int b,down,up,t; //if you see,left most end is
// pointed by up pointer and
// vice versa
b=a[lb];
down=ub;
up=lb;
while(down > up)
{
while(a[up] <= b && up < ub)
up++; //updating up pointer
while(a[down] > b && down >= lb)
down--; //uadating down pointer
if(down > up)
{
t=a[down];
a[down]=a[up];
a[up]=t;
}

}
a[lb]=a[down];
a[down]=b;
*j=down;
}
Protected by Copyscape Web Plagiarism Detector

You can also analyze the time taken by sort() function in Linux OS using 'gettimeofday()' function.


Ads: ebay :ebay UKBest selling and shopping at:ebayebay.co.uk

See Also:

Kamis, 12 Juli 2012

Submit Blog & Sitemap to Google, Bing & Yahoo

Submit Blog & Sitemap to Google, Bing & Yahoo

Submit-Blog-Sitemap-Google-Bing-Yahoo
Submit Blog & Sitemap to Google, Bing & Yahoo

Submit Blog to Google


1. Go to Google Webmasters
2. Login with your google account
Read the rest of this post »

SEO Blogger Tricks for Posting

OK. Next trick is

SEO Blogger Tricks for Posting

seo-blogger-tricks-posting
SEO Blogger Tricks for Posting

Title


Choose your title best for reader and search engine. Don't give title that too long so reader and search engine not interested. Because long title equal to long URL. And in blogger that is cutted.
Just use KISS (Keep It Simple Stupid). If you're still confused just think what phrase that you type at google to find something.

Read the rest of this post »

Rabu, 11 Juli 2012

Starting SEO Blogger Tricks

Welcome to my SEO Blogger Tricks blog.

seo-blogger-tricks
SEO Blogger Tricks

This blog will share some beginner & advanced SEO blogger tricks, and maybe some secret SEO blogger tricks.

I am gonna start it with some beginner SEO blogger tricks.

Read the rest of this post »