Monday, May 25, 2009

about:config in mozilla

Hi all.

Have you ever tried the typing url "about:config" in your Mozilla firefox browser?
Don't wait. Try it in the next tab now.
Here you can change all the hidden preferences.

If you are confused or don't know how to edit the values, you can get more details on that from this page.
http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries

Tuesday, May 19, 2009

Printing a pyramid pattern using C

#include
int main()
{
int m , r=4,i,j,k,l,star_pos;
//for creating m rows
for(i=0;i
{
//inside a row now
star_pos=(r-i)-1; //set initial position
for(j=0;j<=r+i;j++)
{
//print star on a condition
//printf("\n Debug: star_pos=%d",star_pos);
if(j==star_pos)
{
printf("*");
star_pos = star_pos + 2;
}
//print space by default.
else
printf(" ");
}
printf("\n");
}
printf("\nBye");
}