Skip to main content

Posts

How to install PIP on Windows easily.

How to install PIP on your Windows PC easily. It is really easy to install pip on your Windows computer. If you have an Ubuntu, then follow this video  :    Now follow these easy steps.... DOWNLOAD GET-PIP.PY Go to  https://bootstrap.pypa.io/get-pip.py  . Right click and select   Save as Then the script will be downloaded. RUN THE GET-PIP.PY  All you have to do is to run the script you downloaded. To do that you have to install Python on your computer and if you have not installed python on your computer please install Python First. To Install Python on your computer, please go to  https://www.python.org/downloads / and download the appropriate setup file and run it on your computer. The open command prompt and navigate to directory which contains the cript you downloaded and run the following command.                  python get-pip.py That's all and make sure you have a better internet c...

Divide your blog posts into pages on Blogger in 5 minutes !.

If you are a blogger who uses Blogger as your CMS like me, you must have a question. "How Can I Post On A Separate Page So That Readers Can Easily Find All Posts Related To A Topic??" Then you got to the blogger setting pages and got the pages tab. Then you create a new page with a title and post your first post related to that title. You add pages widget to your blog and think you're all set. But you aren't. You have to face the problem when you are going to post a second post related to the previous topic. You find no way to create a new post inside your page. You try using Iframes or borders blah blah blah... but all of them waste your precious time. But Don't Worry. You are a fan of my blog with 5 minutes to do an experiment and I have the Solution. Here we go... How To Divide Blog Posts Into Pages on Blogger Step 1 When you create new posts on Blogger you can easily add labels to your post   Go to that section and enter labels that related to your post. you c...

Dynamic Facebook like button for your web articles | Code once and go viral on Facebook

Facebook allows its users to like web articles using their Facebook profiles and developers to configure a like button to put with their articles.  But you have to go to the Facebook developer page and paste your article's URL and copy the code given by the Facebook developer tools. It is not comfortable to copy-paste the code whenever you are writing or posting new articles. so javascript has the solution. Just follow these simple steps. You have to load Facebook SDK for Javascript once in your source code by adding this code between <body> </body> tags. <div id = "fb-root" ></div> <script async defer crossorigin = "anonymous" src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1 &version={graph-api-version} &appId={your-facebook-app-id} &autoLogAppEvents=1" nonce = "FOKrbAYI" > </script> Then we have to put the code of l...

Dynamic Facebook Share Button for Your website and web pages | No configuration is required !!

Dynamic Facebook Share Button for Your website and web pages | No configuration is required! 😮😮😮😮 I was wondering how to let people share my webpage through Facebook. Even though Facebook Developer Tools let you create a Facebook button with ease you have to go to the developer's page and paste your URL into a box generate code, copy it, and paste wherever you want. but it is not the problem, The real problem is you have to repeat this process whenever you write a new blogpost/ post for your website. Then you have to use this javascript code for your webpage. It gets your web pages' address with javascript code  document . location . href ;   and passes it to the Facebook share gadget. here is the code and let the hack begin!! < div   id = "fb-root" ></ div > < script > ( function ( d ,  s ,  id ) { var   js ,  fjs  =  d . getElementsByTagName ( s )[ 0 ]; if  ( d . getElementById ( id ))  return ; js ...

Get Unlimited Traffic to your website with Python | Make your fun a traffic to your site.

GET UNLIMITED TRAFFIC To your WEBSITE/ BLOG/ Youtube Channel with Python. Getting unlimited traffic is very simple with python. But this is not real traffic because the only visitor is just you. You cannot turn this traffic into money but you can have really fun stuff with your programming skills. JUST follow these simple steps. STEP 1 import webbrowser import webbrowser module to get started. Here the webbrowser driver is built-in so that you have not to install it using PIP STEP 2 install pynput module using PIP if you don't know how to set up pip on your computer this article is just for you.  PIP open cmd or terminal and type this command kavindu@kavindu-MS : ~ $ pip3 install pynput Here I use Ubuntu and I have to type pip3 and if you are a windows user you have to type it as pip write this code  import webbrowser import time from pynput.keyboard import Controller my_url = "https://blogofchamodh.blogspot.com/" keyboard =Controller() def refresh_tab (): key...

Display web traffic by location with an Earth on your website | Without coding in 3 minutes

  Add a world map that shows your visitors' countries without coding in 3 minutes. Do you want to show your web traffic by location on your website? and you don't have time or knowledge to code. Then this article is born for you!!!  Just follow the four steps to make your site stunning 👇 Step 1 go to the site :   https://clustrmaps.com/add Step 2 type your websites address in the text box and hit NEXT button. and select the Globe Widget Step 3 You will be redirected to a site with a code  Last Step Copy the code shown inside the textbox and paste it wherever you want to show that globe inside your websites' source code You can also view the analytics of your site for free by visiting:  https://clustrmaps.com/profile/

Updated version of mass telephone number generator. | Short and sweet code.

  https://blogofchamodh.blogspot.com/2020/10/generate-all-possible-phone-numbers.html Here was the first version of the python script that generates crores of telephone numbers. But that script is complex and here is a simple version of the script. Changes to the product() Function. I wanted to generate all possible combinations of seven characters and put 7 lists as parameters of the product function but we can do it with only one list instead of seven lists. But you have to set the value 7 for the parameter "repeat" to tell the function you want a combination of seven characters  product_a = product([ '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , '0' ], repeat = 7 )   And also you can change the product function as follows. product_a = product( '1234567890' , repeat = 7 ) The above line of code does the same job but shortens our code too You have another way to do this thing impo...