Showing posts with label TIPS. Show all posts
Showing posts with label TIPS. Show all posts

Tuesday, January 3, 2012

How to add Blogger Page Number


Step 1:


Login To Your Blogger And Then Click On Settings And Navigate To Layout Section.


Step2:
Then Click On Add Page gadget.
(A new Window Will Open in Which Select Add Html/Javascript.
It will ask For Javascript.)

Step3:
Now Copy The Whole Javascript Below And Paste in it.


<style>
.showpageArea {padding: 0 2px;margin-top:10px;margin-bottom:10px;
}
.showpageArea a {border: 1px solid #505050;
color: #000000;font-weight:normal;
padding: 3px 6px !important;
padding: 1px 4px ;margin:0px 4px;
text-decoration: none;
}
.showpageArea a:hover {
font-size:11px;
border: 1px solid #333;
color: #000000;
background-color: #FFFFFF;
}

.showpageNum a {border: 1px solid #505050;
color: #000000;font-weight:normal;
padding: 3px 6px !important;
padding: 1px 4px ;margin:0px 4px;
text-decoration: none;

}
.showpageNum a:hover {
font-size:11px;
border: 1px solid #333;
color: #000000;
background-color: #FFFFFF;

}
.showpagePoint {font-size:11px;
padding: 2px 4px 2px 4px;
margin: 2px;
font-weight: bold;
border: 1px solid #333;
color: #fff;
background-color: #000000;


}

.showpage a:hover {font-size:11px;
border: 1px solid #333;
color: #000000;
background-color: #FFFFFF;

}
.showpageNum a:link,.showpage a:link {
font-size:11px;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
border: 1px solid #0066cc;
color: #0066cc;
background-color: #FFFFFF;}

.showpageNum a:hover {font-size:11px;
border: 1px solid #333;
color: #000000;
background-color: #FFFFFF;
}
</style>



<script type="text/javascript">

function showpageCount(json) {
var thisUrl = location.href;
var htmlMap = new Array();
var isFirstPage = thisUrl.substring(thisUrl.length-5,thisUrl.length)==".com/";
var isLablePage = thisUrl.indexOf("/search/label/")!=-1;
var isPage = thisUrl.indexOf("/search?updated")!=-1;
var thisLable = isLablePage ? thisUrl.substr(thisUrl.indexOf("/search/label/")+14,thisUrl.length) : "";
thisLable = thisLable.indexOf("?")!=-1 ? thisLable.substr(0,thisLable.indexOf("?")) : thisLable;
var thisNum = 1;
var postNum=1;
var itemCount = 0;
var fFlag = 0;
var eFlag = 0;
var html= '';
var upPageHtml ='';
var downPageHtml ='';


var pageCount=7;
var displayPageNum=3;
var firstPageWord = 'First';
var endPageWord = 'Last';
var upPageWord ='Previous';
var downPageWord ='Next';



var labelHtml = '<span class="showpageNum"><a href="/search/label/'+thisLable+'?&max-results='+pageCount+'">';

for(var i=0, post; post = json.feed.entry[i]; i++) {
var timestamp = post.published.$t.substr(0,10);
var title = post.title.$t;
if(isLablePage){
if(title!=''){
if(post.category){
for(var c=0, post_category; post_category = post.category[c]; c++) {
if(encodeURIComponent(post_category.term)==thisLable){
if(itemCount==0 || (itemCount % pageCount ==(pageCount-1))){
if(thisUrl.indexOf(timestamp)!=-1 ){
thisNum = postNum;
}

postNum++;
htmlMap[htmlMap.length] = '/search/label/'+thisLable+'?updated-max='+timestamp+'T00%3A00%3A00%2B08%3A00&max-results='+pageCount;
}
}
}
}//end if(post.category){

itemCount++;
}

}else{
if(title!=''){
if(itemCount==0 || (itemCount % pageCount ==(pageCount-1))){
if(thisUrl.indexOf(timestamp)!=-1 ){
thisNum = postNum;
}

if(title!='') postNum++;
htmlMap[htmlMap.length] = '/search?updated-max='+timestamp+'T00%3A00%3A00%2B08%3A00&max-results='+pageCount;
}
}
itemCount++;
}
}

for(var p =0;p< htmlMap.length;p++){
if(p>=(thisNum-displayPageNum-1) && p<(thisNum+displayPageNum)){
if(fFlag ==0 && p == thisNum-2){
if(thisNum==2){
if(isLablePage){
upPageHtml = labelHtml + upPageWord +'</a></span>';
}else{
upPageHtml = '<span class="showpage"><a href="/">'+ upPageWord +'</a></span>';
}
}else{
upPageHtml = '<span class="showpage"><a href="'+htmlMap[p]+'">'+ upPageWord +'</a></span>';
}

fFlag++;
}

if(p==(thisNum-1)){
html += '&nbsp;<span class="showpagePoint"><u>'+thisNum+'</u></span>';
}else{
if(p==0){
if(isLablePage){
html = labelHtml+'1</a></span>';
}else{
html += '<span class="showpageNum"><a href="/">1</a></span>';
}
}else{
html += '<span class="showpageNum"><a href="'+htmlMap[p]+'">'+ (p+1) +' </a></span>';
}
}

if(eFlag ==0 && p == thisNum){
downPageHtml = '<span class="showpage"> <a href="'+htmlMap[p]+'">'+ downPageWord +'</a></span>';
eFlag++;
}
}//end if(p>=(thisNum-displayPageNum-1) && p<(thisNum+displayPageNum)){
}//end for(var p =0;p< htmlMap.length;p++){

if(thisNum>1){
if(!isLablePage){
html = '<span class="showpage"><a href="/">'+ firstPageWord +' </a></span>'+upPageHtml+' '+html +' ';
}else{
html = ''+labelHtml + firstPageWord +' </a></span>'+upPageHtml+' '+html +' ';
}
}

html = '<div class="showpageArea"><span style="padding: 2px 4px 2px 4px;margin: 2px 2px 2px 2px;border: 1px solid #333; background-" class="showpage">Page '+thisNum+' of '+(postNum-1)+': </span>'+html;

if(thisNum<(postNum-1)){
html += downPageHtml;
html += '<span class="showpage"><a href="'+htmlMap[htmlMap.length-1]+'"> '+endPageWord+'</a></span>';
}

if(postNum==1) postNum++;
html += '</div>';

if(isPage || isFirstPage || isLablePage){
var pageArea = document.getElementsByName("pageArea");
var blogPager = document.getElementById("blog-pager");

if(postNum <= 2){
html ='';
}

for(var p =0;p< pageArea.length;p++){
pageArea[p].innerHTML = html;
}

if(pageArea&&pageArea.length>0){
html ='';
}

if(blogPager){
blogPager.innerHTML = html;
}
}

}
</script>

<script src="/feeds/posts/summary?alt=json-in-script&callback=showpageCount&max-results=99999" type="text/javascript"></script>
<div style="text-align:right;font-size:10px;color:000000;margin-top:15px;display:none;"> <a href="http://blogger-templates123.blogspot.com">Blogger Widget</a></div>

Wednesday, December 28, 2011

VIRUS vs TROJAN


Virus :
Viruses are the auto replicating or self multiplying programs which usually hang on to some executable file formats such as .exe , .sis etc and will shoot up when the Parent program is opened. They start spreading inside the system, They scan for other available files to which they can attach.
Worms :
Worms are almost identical to Viruses just that they differ in their spreading nature. These do not attach to any executable programs like viruses and do not depend on them to spread. These are usually found online , especially in hosting which loads your bandwidth with unwanted loading.
Trojan Horses :
The Trojans do not replicate like Viruses and Worms, They are not used to harm unintentionally. They are used to break the authentication. They are used the most in hacking to get illegal access.
Spyware :
Spywares are also like Trojans which are not made to harm unintentionally. They are Secret Programs which sun behind and Collects information inside the system and will do what they are made to. Perfect example for this is key-loggers, used to collect passwords of others illegally.

ADJUST PAGE APPEARANCE IN INTERNET BROWSER

You can use some shortcut keys to adjust the appearance of the web pages on your Internet Browsers.
If you are using a small Monitor then use this trick to maximize the web page appearence.
internet browsersClick F11 to hide browser menu bar, Windows task bar, Title bar, tool-bars and everything on your Browser temporarily so that you can view the webpage on full screen mode. you can get back the hidden things by pressing F11 again. Its really easy to switch between browser full screen mode on and off easily.
To adjust the page size :
Hold your CTRL key and scroll up or scroll down in your mouse to Zoom in and out the webpage in your browser. You can get the default adjustment back , by pressing CRTL+0 (Control key and zero together).

LOCK FOLDERS USING NOTPAD




. Open Notepad and paste the following program in the notepad 
cls
:End
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==harsha goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End


      @ )In the above program I am using harsha as the password of the file.
       @ )Replace it with anything you like to make it as folder password.
      @)Save the file anywhere in the system with a .bat suffix like  something.bat
       @ ) Here I am saving it as mylocker.bat on my system.
locker using notepad
@ ) Double click on the something.bat file which you create, a new folder by name Locker will be created on the same location of bat file you saved.

   @ ) Copy your files to this folder and open bat file again and type y and then enter to lock your folder.
folder locker
       @ ) To unlock your file again, you need to open the bat file and enter your password.





pdf editor
PDF is an important format of documents which we use in our daily professional as well as personal life. There are lots of softwares available on internet to edit, create or watermark  pdf files. But many of them are not freewares , one more problem is that we need to install it to computer if we need to use them. There are some free versions available to install , like PrimePDF software. But we cannot avail  these softwares everywhere we go, and everywhere we work.
Thats what the reason for me to search for a free online pdf creator,editor and water marker. When I Googled on internet I found some of the online editors for pdf. But PDFaid is the best one I found.
PDFaid is a freeware which you can use on any system with an internet connection. By using this online application you can do following things:
edit pdf

HOW TO PROTECT FLASH DRIVES 10 TIPS


1. Plug-in an empty USB flash drive into your computer’s USB port.
2. Open TrueCrypt to launch it. Then click on “Create Volume.” The TrueCrypt Volume Creation Wizard screen should appear. Then click on “encrypt a non-system drive.” Click “next” to finalize the decision. This should take you to the “Volume Type” screen.
3. While at the “Volume Type” screen, you want to select “Standard TrueCrypt Volume.” Click “next.” This should take you to the “Volume Location” screen.
4. While at the “Volume Location” screen click on “select device” which is located on the far right hand side. Choose your USB device. Click on “next.” This should take you to the “Volume Creation Mode” screen.
5. While at the “Volume Creation Mode” screen, click on “create encrypted volume and format it.” Click “next.” This should take you to the “Encryption Options” screen.
7. While at the “Encryption Options” screen, it’s recommended to leave all of the default settings and just click “next.” This should take you to the “Volume Size” screen.
8.  While at the “Volume Size” screen, you will notice that all of the sections will be masked and the size of your USB will appear. Just click “next.”
9. You will then reach a “Volume Password” screen. Here you will be advised to choose a 20-character long password. Once the password in confirmed click “next.” You will immediately be sent to the “Large Files” screen. Just click “no” and then click next to move on to the “Volume Format” screen.
10. Finally, at the “Volume Format” screen the wizard will ask you to increase the intensity of protection by moving your mouse in a circulation motion over a specific area. The more squiggles you draw, the more intense the protection will be.  Click on the “format” when you feel you’ve drawn enough marks. It will then ask you if the info is correct. Take a short run through to double check and then press “ok” to confirm its accuracy.