Subscribe:

Monday, 7 April 2014

How To Show Adsense Ads Between Post Title In Blogger ? Two Methods

How To Show Adsense Ads Between Post Title In Blogger ?
Method no 1:
  • First of all goto this link and convert your adsense code: http://htmlentities.net/
  • Find <data:post.body/> using CTRL+F 
  • Now paste the following code above "<data:post.body/>"
           <div style ="float: left; margin 10px 10px 10px 0px;">
                        YOUR ADSENSE CODE HERE</div>
  • Replace "YOUR ADSENSE CODE HERE" to your converted code 
All done!
If this method is not working try Method No 2:
Method No 2:
  • First of all goto this link and convert your adsense code: http://htmlentities.net/
  • Find <div class='post-body entry-content'> using CTRL+F 
  • Now paste the following code above "<div class='post-body entry-content'>"
                    
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div align='left'>
   YOUR ADSENSE CODE HERE
  </div>
</b:if>
  • Replace "YOUR ADSENSE CODE HERE" to your converted code 
All done!

Add Related Posts Widget For Blogger With Thumbnails

Are you looking to increase page views of your blog? This should be a must have widget for your blogger blog. Related Posts with thumbnails is not just a one more related posts widget. This widget really looks good with the content and thus adds something worth to the overall design of your template. It helps your readers to go through the similar posts they were reading and so helps to decrease your bounce rate by increasing page views.

By displaying the links to related posts along with a thumbnail of the corresponding post will help you increase the page views/user .Users will be tempted to go for the related posts when they are presented attractively with thumbnails.

In this post we will go through the steps of adding the Related Posts Widget with thumbnails for Blogger. Ready to add to your template? Go through the steps below.

How To Add Related Posts Widget For Blogger With Thumbnails

  • First for All Go To Blogger.com > Design > Edit Html
  • Find </head> Using CTRL+F
  • Copy the code below and paste it just after </head> tag 
<!--Related Posts with thumbnails Scripts and Styles Start B2W--><b:if cond='data:blog.pageType == &quot;item&quot;'><style type="text/css">#related-posts {float:center;text-transform:none;height:100%;min-height:100%;padding-top:5px;padding-left:5px;}
#related-posts h2{font-size: 1.6em;font-weight: bold;color: black;font-family: Georgia, &#8220;Times New Roman&#8221;, Times, serif;margin-bottom: 0.75em;margin-top: 0em;padding-top: 0em;}#related-posts a{color:black;}#related-posts a:hover{color:black;}
#related-posts  a:hover {background-color:#d4eaf2;}</style><script type='text/javascript'>var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiruFUGvay_KGvzOT2rKkItwDDDfVH_ECGLrjSHvSRcrLlnlKkdglMWT4JFpax0ZKBXJX9jRgG5VZ3FXCi1cQ1zEFPZ0t7WptHcdKf5A7HM-NKFXomkphsheLxjb5tCquZjxwoYyYVjB58/s400/noimage.png";var maxresults=5;var splittercolor="#d4eaf2";var relatedpoststitle="Related Posts";</script><script src='http://beautifulbloggerwidgets.googlecode.com/files/related_posts_with_thumbnails_min.js' type='text/javascript'/></b:if><!--Related Posts with thumbnails Scripts and Styles End B2W-->
  • Now find the following code: 
<div class='post-footer-line post-footer-line-1'>
  • If you can't find it, then search for this one: 
<p class='post-footer-line post-footer-line-1'>
OR:
<data:post.body/>
  • Copy the code below and paste it just after <data:post.body/> tag and save your template.   
<!-- Related Posts with Thumbnails Code Start B2W-->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='related-posts'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast != &quot;true&quot;'>
</b:if>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels_thumbs&amp;max-results=6&quot;' type='text/javascript'/></b:loop>
<script type='text/javascript'>
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs(&quot;<data:post.url/>&quot;);
</script>
</div><div style='clear:both'/>
<!-- remove --></b:if>
<b:if cond='data:blog.url == data:blog.homepageUrl'><b:if cond='data:post.isFirstPost'>
<a href='http://beautifulbloggerwidgets.blogspot.com/' ><img style="border: 0" alt="Blogger Widgets" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_fmb8qzibTpfK2ZwPmyx8J1XtF92xzdsdeTcUHozU9sUUi879yHy1dOkJrB5WopapXI3Wn5Uo0yNJtXY1_LARTq3h0SiZW6zXdpbO7ZeeG2rSz4jX4TW13FDpPrvwHkI9PukkpoC3s7jJ/s1600/blogger-widgets.png" /></a>
</b:if></b:if>
<!-- Related Posts with Thumbnails Code End B2W-->
  • Change the 6 value from max-results=6 with the number of posts you want to be displayed.  

How To Lock A Folder Without Any Software In Windows 7 And Windows XP

All Does your computer is used by more than one users? Do you use to store some confidential data on your computer? Do you want to secure this data from other users? If your answer to these question is yes, you can follow simple steps given ahead to lock a folder on your computer without any software. You don’t need to purchase any software.
Related: - How to Take screen shot in Windows 7, Windows XP without any software.
Although there are some trail versions available of folder lock software but these all come with an expiry period. So these can’t be used after some time. But by using the steps  explained here, you will be able to create a folder which can be locked by password. All the data placed in this folder will be password protected. So you can place all data which you want to hide from other users in this folder. This method works 100% on all versions of Microsoft Windows operating system. Just follow the simple steps given below:-

Open Notepad on your computer.
Paste the following code in Notepad

cls
@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%==YOUR PASSWORD HERE 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
:End

  •  Change the text YOUR PASSWORD HERE  in the above code with password of your choice.
  • Save As the document as XYZ.bat.  Just add .bat after file name like XYZ.bat You can assign any name instead of XYZ as per your choice.

save-as-file-bat

  • Double click on XYZ.bat file saved in above step.
  • This will generate a folder named Locker just besides the XYZ.bat file.
locker-folder

  • Place all the content in this Locker folder which you want to hide from other computer users.
  • After placing all the content which you want to hide, just double click on XYZ.bat file.
  • This will prompt for your permission to lock this folder. If you want to lock that folder, type Y otherwise type N and hit Enter.
lock-folder-without-software-windows
  • Locker folder will disappear.
  • Whenever you want to see the content hidden in locker folder, just double click on XYZ.bat file.This will prompt you to enter password assigned in earlier steps.
folder-lock-without-software
  • Just put the password and hit Enter.
  • Locker folder will appear again. Open Locker folder to see the content contained in it. You can add more content which you want to hide.
  • Try to keep this XYZ.bat file created above at a place which is not easily accessible to other users. You can place this .bat file in Windows system folders contained in C drive. because most of computer user don’t like to explore C drive as it contains windows system files.
  • Also try to assign a name to .bat file similar to windows system files. so this file will be ignored by a strange user like other windows system files.
  • So Hide your all valuable data in a password protected folder on your computer without any software on all versions of Windows computers. Don’t forget to share this simple trick with your friends or colleagues

Renaming Multiple Files

Windows XP Tips and Tricks - Renaming Multiple Files

In your computer, if you want to rename multiple files at once, like an array, this trick will be very useful.

Windows XP lets you rename files in bulk by simply selecting multiple files within Windows Explorer and pressing the F2 key. When you use this feature, the OS applies the name you enter to the first file and applies the same name with a number in parentheses to the other files you selected (the file extensions remain unchanged).

For example, if you select the following files,
* pics.jpg
* notes.txt
* myname.rtf
* music.mp3

and rename the first file (pics.jpg) to sample.doc, XP renames the remaining files as follows:
* Sample (1).jpg
* Sample (2).txt
* Sample (3).rtf
* Sample (4).mp3

convert string to dictionary in python

Cool trick to convert strings into dictionary object in Python Programming

Method 1: Using ast.literal_eval

## Example

import ast
strr = "{'a': 1, 'b': 2, 'c': 3}"
strr_dict=ast.literal_eval(strr)

Method 2: Using json
## Example
Pc tricks
Powered by Conduit Mobile