Showing posts with label How to. Show all posts
Showing posts with label How to. Show all posts
Posted by Anonymous Sunday, February 14, 2010 1 comments

1 Send E-mails from localhost

I was so worried that i was not able to send the E-mail from the localhost while using WAMP and i asked to my teacher that how can i send the E-mail from the localhost ? and he instructed me to follow the given instruction. This instruction is for both WAMP and XAMPP users.

1. Now open php.ini  file.
2. search for the STMP attribute. Generally you can find the line “SMTP=localhost“. change the localhost to the smtp server name of your ISP. And, there is another attribute called “smtp_port” which should be set to 25.

3. change the attribute as :


STMP = stmp.wlink.com.np
stmp_port = 25

I made stmp.wlink.com.np as my internet service provider (ISP) is Wlink.com.np

4.Now restart your apache server. so that your php.ini file will be reloaded.


5. now try sending the mail using main() function :)
thats it !!


You might get teh error message like this :


Warning: mail() [function.mail]: “sendmail_from” not set in php.ini or custom “From:” header missing in D:\wamp\www\Website\mail.php on line 28


if you get the error like this the specify the following headers and try again.



    $headers = ‘MIME-Version: 1.0′ . “\r\n”;
    $headers .= ‘Content-type: text/html; charset=iso-8859-1′ . “\r\n”;
    $headers .= ‘From: sender@sender.com’ . “\r\n”;
    mail(“you@yourdomain.com”,”subject”,”body”,$headers);

Now it will work :)

Posted by Prakash timilsina Monday, January 25, 2010 2 comments

2 Page Rank Updated


Google PageRank was updated last on

18 Jan. 2010

Pagerank Update, PR Update or Google Pagerank Update, it's all the same, it's a service provides you with the last modified date that google change it's PR or Pagerank, So, What is pagerank? PageRank is a numeric value that represents how important a page is on the web. Google figures that when one page links to another page, it is effectively casting a vote for the other page. The more votes that are cast for a page, the more important the page must be. Also, the importance of the page that is casting the vote determines how important the vote itself is. Google calculates a page's importance from the votes cast for it. How important each vote is is taken into account when a page's PageRank is calculated.

Do you want to get the updates ?

  You will get the updates to your Inbox directly from the Computer Guru Blog:

Email address :




Posted by Prakash timilsina 2 comments

2 JavaScript Hack II

I gave you the cool and effective javascript tick last time. Now i have some other tircks also

They are

#How to use these hack ?
→ just paste the given codes in the address bar of your browser thats it !!
1. To dispaly the Dancing Images



code for this hack are :


javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24;  x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length;  function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style;  DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px";  DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5);  void(0);
Now another hack ..




javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})();



Thats it :)
i hope it works..

Posted by Prakash timilsina Sunday, January 24, 2010 2 comments

2 JavaScript Hack







Do you want to fool your friends or family. then i have a simple trick of javascript. by this trick you can just make any website just like a notepad or word editor.


javascript: document.body.contentEditable = 'true';document.designMode = 'on'; void 0


Paste this code in the address bar of the internet browser.

Thats it

Posted by Prakash timilsina Saturday, January 23, 2010 2 comments

2 Comment Counter

See Demo at the last of this post



Do you want to put this counter in your blog ?
If yes then just follow the below instructions :

*Step 1*
Login to blogger.com then Click on Layout >Edit HTML
Now Tick on the Expand Widget Templates

*Step 2*
Now Search

<b:loop values='data:post.comments' var='comment'>


then paste the below code Just ABOVE it.

<!--COMMENT COUNTER-->
<span class='comm-num'>
<a expr:href='data:comment.url' title='Comment Link'>
<script type='text/javascript'>
CommentsCounter=CommentsCounter+1;
document.write(CommentsCounter)
</script>
</a>
</span>
<!--COMMENT COUNTER-->


Now Search for

</head>


Now paste the below code just above this


<style type="text/css">
.comm-num a:link, .comm-num a:visited {
color: white !important;
text-decoration: none !important;
background: url(http://i50.tinypic.com/egx3t3.jpg) no-repeat;
width: 50px;
height: 48px;
float: right;
display: block;
margin-right: 5px;
margin-top: -15px; /*comments-counter position*/
text-align: center;
font-family: 'Century Gothic','Lucida Grande',Arial,Helvetica,Sans-Serif;
font-size: 15px;
font-weight: normal;
}

.comm-num a:hover, .comm-num a:active {
color: gray !important;
text-decoration: none !important;
}
</style>




Now the red colored code should be replaced by you.
Just change the url for ur choice image .






 
































Now just save Template and enjoy :)
thankx [BloggerStop.Net]

 Thanks : Blogger Stop
 
For the DEMO goto to the END of this post
To put this goto blogger.com > Layout > Edit HTML

<b:if cond='data:post.embedCommentForm'>
<b:include data='post' name='comment-form'/>


paste the below code just BETWEEN the above codes


<div style='-moz-background-clip:  -moz-initial; -moz-background-origin: -moz-initial;  -moz-background-inline-policy: -moz-initial; width: 369; text-align:  left; border: 1px solid #cccccc; padding: 5px; background: #eeeddf; height:86'>
<b>
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/21.gif' width='18'/> :))
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/71.gif' width='18'/> ;))
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/5.gif' width='18'/> ;;)
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/4.gif' width='18'/> :D
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/3.gif' width='18'/> ;)
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/10.gif' width='18'/> :p
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/20.gif' width='22'/> :((
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif' width='18'/> :)
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/2.gif' width='18'/> :(
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/8.gif' width='18'/> :X
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/12.gif' width='18'/> =((
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/13.gif' width='18'/> :-o
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/7.gif' width='20'/> :-/
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/11.gif' width='18'/> :-*
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/22.gif' width='18'/> :|
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/35.gif' width='24'/> 8-}
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/100.gif' width='31'/> :)]
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/102.gif' width='44'/> ~x(
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/104.gif' width='30'/> :-t
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/66.gif' width='18'/> b-(
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/62.gif' width='18'/> :-L
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/14.gif' width='34'/> x(
<img border='0' height='18' src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/24.gif' width='30'/> =))
</b>
</div>


Now search

</body>


And paste the below code just above the above code


<script src='http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/smiley.js' type='text/javascript'/><noscript><a href="http://bloggerstop.net" target="_blank"><span style="font-size: x-small;">Add Smilies</span></a></noscript>


Now save template

Thanks [BloggerStop.Net]

Posted by Prakash timilsina 1 comments

1 Blog Transfer

Do you want to transfer your blog to another e-mail Id or Another Account ?
Just follow the below steps
#Step 1.
Login to Blogger.com

#Step 2




 Click on the Setting tab
#Step 3


Click on permission

#Step 4

Click on Add Authors

#Step 5



Enter the Email ID for you new Account and then just click on Invite.

#Step 6
Now log in to your new ID account  then click on the confirmation link.

#Step 7 
Now there a form will appears. then put your new email id there. REMEMBER : not the old one

#Step 8
 Then Again login to your old Account then go to the same... i.e Setting > Permission then just give the Admin privilege to your new ID. then Remove the old one.

Thats it.
you are done

Posted by Prakash timilsina Thursday, December 31, 2009 0 comments

0 How to make "Scrool to top" using JQuery


If your blog have long post then i suggest you to put "Scroll to top" in your blog or website. This enables your visitors to scroll to the top of your blog's page without scrolling the scrolling button on the mouse.
If you want to add this then Follow the instructions,
# Login to your Blogger > Layout > Edit HTML
# Now Find :
</body>
# Now add the below code just after the body tag,

<a href="#" id="backtotop">^ Scroll to Top</a>
  <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
  <script type='text/javascript'>
    /*-----------------------
  Scroll to top
  Creator : Prakash Timilsina,
ComsGuru.blogspot.com

 -----------------------*/
  $(function(){$.fn.scrollToTop=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()!="0"){$(this).fadeIn("slow")}var  scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()=="0"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html,  body").animate({scrollTop:0},"slow")})}});
  $(function() {
  $("#toTop").scrollToTop();
  });
  </script>

# Now you have to add some CSS for that, Now find
]]></b:skin>
→Paste the below code just above the above code :

#backtotop {  width:100px;background:#F4FFBF;border:1px solid  #ccc;text-align:center;padding:5px;position:fixed;bottom:10px;right:10px;cursor:pointer;color:#666;text-decoration:none;  }

Posted by Prakash timilsina Wednesday, November 25, 2009 0 comments

0 How to stop the flash advertisement ?

Answer :
Users can download free add-ons that enables or disable their browsers from viewing Macromedia Flash. Below are a few recommandations that we have enjoyed using.

  • No! Flash - Enable and disable flash animations, scripts, animated images, videos, background sounds and much more from your systray.
  • Flash and pics control 2.0 - Enable and disable flash animations and pictures from within the browser

Create mailing barcode for address in the United states:

  1. Open Microsoft word 
  2. Click Tools
  3. Click Envelopes and labels
  4. Type the delivery address if necessary for the envelope or label
  5. check the box for "Delivery point barcode"
  6. click OK
u r done ;)

To do this follow the following instruction :

  • Goto Start
  • Control panel
  • Sounds and audio devices
  • click on the sound tab
  • then select the windows event
  • now select the sound
  • you can select the sond from the 3rd source also
  • u r done ;)


Posted by Prakash Timilsina Monday, October 12, 2009 0 comments

0 How To Block Websites Without Using Any Software

Guys sometimes we want to restrict access to some particular website from our PC but we dont know how to do it without using some software for it.
Now, I am sharing with you a method to do it without using any software...

1)Browse C:\WINDOWS\system32\drivers\etc
2) Find the file named "HOSTS"
3) Open it in notepad
4) Under "127.0.0.1 localhost" Add 127.0.0.2 www.websiteyouwanttoblock.com , and that site will no longer be accessable.
5) Done! ;)

Posted by Prakash Timilsina Tuesday, October 6, 2009 0 comments

0 How to close all the windows program quickly


A cool tip to minimize and maximize all your active window programs. You can do all using your mouse, but if u want to do it with keyboard then simply press :

Windows key + M to minimize all active programs and to later maximize it using windows key + Shift + M.
if u want to minimize the active windows one by one then you can do this using Alt + space + N keys and to maximize the active windows program by using short cut Alt + Space + X keys


Windows pops up little tip balloon here and there. Most advanced users find this painfu. this explains howo to remove them once and for all.

Note that making incorrectly changes to the registery may damage your system; please backup any valued data on your computer

1. Go to start → run → type regedit
2. Find the following address:
HKEY_CURRENT_USER\software\microsoft\windows\current version\explorer\advance
3. In the left pane, select and right click on the advance key, create a new DWORD and name "EnableBalloonTips"
4. Double click on new DWORD value and change value to 0(hexadecimal)
5. Exit from the registry editor and restart the computer
;)


Toggle Keys option designed for those people who are typing while looking away from the screen or for those who are vision impairment. When your system Toggle keys is turned on, you will get a special sound keys are pressed like CAPS, NUM, and SCROLL LOCK keys.

To enable or display your system Toggle keys, go to Control Panel using Start button. In your system Control Panel normally the first option will be Accessibility options. Double click on Accessibility options and check the Toggle Keys box, Windows will automatically send you special beeps you will press locking keys.

Today a very useful tip for those who are interested to copy or download images (Especially for Copyrights Images) from any site using Internet. Then there are two options to copy these images page website, one option deal with this the Print Screen Button. On your keyboard and other press is press Alt- Print Screen Button. If you simply press Print Screen Button open a image from any site , here you can copies the entire windows to the Clipboard, and if you press Alt- Print Screen Button, Windows XP copy the only active window.




Now you can use any Graphic Tools like (Adobe Photoshop, Paint) to manage and print this image. Just open on tool then paste this image, this will paste all Clipboard contents into Paint. Now you can print, save this image or can do more work on this image.

Posted by Prakash Timilsina Monday, October 5, 2009 0 comments

0 How do i format my flash Drive ?

Right click on the removable drive ad select Format.... Then scan and fix all the errors. so all the bad sector are fixed and my drive has become all new and is working well now.

you can fix erors br doing right click on the drive and select properties and Goto Tools Tab and clicking on the Check now

Posted by Prakash Timilsina Saturday, October 3, 2009 0 comments

0 How to re-enable CTRL-ALT-DEL task manager


when u press ctrl-alt-del in urs keyboard then if it says that Task Manager has been disabled by Administrator. then wat would u do ?
The process to re-enable the task manager is :

  • Goto Start
  • Run
  • enter Gpedit.msc there and click in ok
In the group policy window

  • Select User Configuration
  • Select Administrative Templates
  • Select System
  • Select Ctrl + Alt + Delete option
  • Select Enable Task manager


Posted by Prakash Timilsina Friday, October 2, 2009 2 comments

2 How to disable turn off computer button in the welcome screen ?

By default, there will be turn off computer button in the buttom of the welcome screen
to disable turn off computer buttom in the welcome screen, follow the following instruction !
1. Logon as an administrator in ur computer.
2. click on start then Control Panel3. Click Performance and maintainence4. Click Administrative Tools5. Double-Click Local Security Policy.6. Expand Local Policies by clicking the plus sign next to it, and then click security options.7. In the right pane, double-click the shutdown: Allow system to be shut down without having to log on policy.8. Click disable than click on OK.now windows XP will remove turnoff th computer : option from the welcome screen!
;)

Goto Top