Saturday, April 15, 2023

Indian Statistical Institute(ISI) keya hai?

The Indian Statistical Institute (ISI) is an academic institute of national importance located in Kolkata, West Bengal. Founded in 1931 by Professor Prasanta Chandra Mahalanobis, it is one of the oldest and most prestigious institutions in India devoted to research, teaching, and application of statistics, mathematics, and computer science. Over the years, ISI has made significant contributions to various fields, including agriculture, medicine, economics, finance, and engineering, to name a few.

ISI offers undergraduate, postgraduate, and doctoral programs in statistics, mathematics, and computer science. Its curriculum is rigorous and emphasizes the development of analytical and problem-solving skills. The institute has a faculty of over 200 professors, many of whom are renowned scholars in their respective fields. The students at ISI are encouraged to work on research projects, collaborate with faculty members, and present their work at national and international conferences.

One of the unique features of ISI is its interdisciplinary approach to research. ISI researchers collaborate with scientists from various fields to solve real-world problems. For example, ISI researchers have worked with biologists to analyze genetic data, with engineers to optimize industrial processes, and with economists to study financial markets. This approach has helped ISI establish itself as a hub of innovative research, and its faculty and students are widely respected in the academic community.

ISI has also played a critical role in the development of statistical methods and techniques. The institute's faculty members have made significant contributions to areas such as sampling theory, econometrics, decision theory, time series analysis, and Bayesian statistics, among others. ISI researchers have developed statistical models that are widely used in fields such as finance, agriculture, and medicine. The institute has also developed software packages for statistical analysis and data visualization, which are widely used by researchers worldwide.

Apart from its research and academic programs, ISI is also engaged in various outreach activities. The institute conducts training programs for government officials, industry professionals, and researchers from other institutions. These programs help to disseminate knowledge and skills in statistics, mathematics, and computer science and contribute to the development of these fields in India. ISI also collaborates with international organizations such as the World Bank, the United Nations, and the International Monetary Fund to provide technical assistance and training in statistics and related fields to developing countries.

In conclusion, the Indian Statistical Institute is a premier academic institution in India, known for its research excellence, interdisciplinary approach, and commitment to the development of statistics, mathematics, and computer science. Its faculty and students are highly regarded in the academic community, and the institute has made significant contributions to various fields over the years. ISI's emphasis on interdisciplinary research and collaboration has helped to establish it as a leading center of innovation and excellence, and it is sure to continue to make significant contributions to the development of these fields in India and beyond.

Thursday, June 23, 2022

knowledgebox Flyout.io Review: Best Platform To Earn Money

 Posts by anshuman rathore
 June 23, 2022 25 mins read
Can you believe you can make ample money from sponsored posts, more than your regular affiliate and AdSense incomes? If you are a blogger and finding opportunities to boost your earnings, you are reading the right guide. This guide will inform you of the best way to maximize your income apart from using common affiliate programs. So, what are they?

Before we enlighten you with those ways, let’s get to know the most popular methods used by a wide variety of people to make money through blogging:

Advertisement on blogs
Affiliate Marketing
Display Google Adsense on WordPress or any other open source content management system (CMS)
Get public speaking gigs as an influencer
Writing books and e-books
Selling freelance services
Offering online courses and workshops
Get paid to write reviews
Use a WordPress advertising plugin to sell the Ad directly
Earn money by flipping websites
Native Advertising
Selling freelance services such as writing, programming, designing, etc.
Bloggers generally use affiliate marketing or display marketing methods to make money from the published content; however, there is a better option to make a decent amount of money one can opt for through sponsored posts.


Flyout.io Review
What are Sponsored Posts?
Sponsored posts are also known as promoted posts, where brands pay you to publish their content on your website to promote their products or services and draw a large amount of recognition to increase the potential clients’ reach. It has become a widely-known method and is used by many big companies to hold the attention of a mass audience effortlessly.

The primary purpose of sponsored posts is to build the brand name by creating awareness through contextual linking inside the publisher’s content.


These posts can either be written by the writer/bloger/site owner or by the sponsoring brand. There is a better chance of earning more if you write the content for the sponsoring brand as you will charge a higher price for writing content and renting out space on your site to publish the brand’s post.

How to Publish Sponsored Posts?
How to Publish Sponsored Posts | Flyout.io Review: Best Platform To Earn Money By Sponsored Posts?

Listed below are the factors that should never be ignored before you publish any sponsored posts:

Content should fit the brand and publication.
Transparency is indispensable if you want your publication and credibility to remain intact.
Add value with high-quality images.
Add ‘nofollow’ tag to sponsored links.
Choose your projects and clients astutely.
Keep your tone authentic and relatable.
Content is king. Always keep in mind the content is created after considering your target audiences.
Time your publication of sponsored posts wisely.
Nowadays, many CPA affiliate networks have collaborated with companies like AliExpress, PureVPN, NordVPN, Thai Airways, etc. However, one of the best platforms where bloggers can list their blogs for making ample money through sponsored posts, and advertisers can display their ads on the relevant blogs is Flyout.

Have you ever seen the Flyout.io Review in 2021? If not, no worries! We will update you with all the Flyout.io Reviews. So let’s get started.

Also Read: Fiverr Affiliate Program – How to Make Money

What is flyout?

Flyout is built by a renowned internet content marketing tool company named Rankz.io. Rankz is best-known for providing services like SEO rank tracker and content distribution. It was launched in 2019 and was recently separated from Rankz.

Flyout is a money-earning platform by places sponsored posts on the blog. This platform will provide you a lucrative opportunity to earn money besides Affiliate Marketing or Google Adsense. It also allows its users to make more money by publishing content and increasing traffic on your blog. More bloggers imply more revenue opportunities.

Primarily, Flyout is a marketplace that amalgamates brands and content together. Moreover, this portal offers a seamless process to its users.


How does the Flyout model work?
Many big giants and renowned brands are looking to promote their products or services through some network or content, or channel. The bloggers need to create an account on Flyout and signup to earn more than their regular income.

After they signup, bloggers receive a request via email for listing their articles or blogs as per the niche. The articles bloggers list on this platform will be visible to all the advertisers.

By providing this URL, you get to choose your own price per blog post. Suppose you think your blog is influential and worthy of publishing a sponsored post and the brand or advertiser liked your content. In that case, they will submit relevant images, sponsored articles and pay the amount that you have already set.

Now, you get 3 days to publish the sponsored post to your blog if the advertiser or brand has made the payment. You can add the sponsored post manually or preset automatic publishing to your blog. Once you submit it and add the post, you need to provide the live URL of the published post after publishing the post on your order dashboard. The payments will be credited to your bank account between the 10th-14th of each month.

Features of Flyout
It is a user-friendly platform that works with over 2500 advertisers.
More than 20,000 bloggers have joined their service to boost their revenue and maximize the output of monetizing their blogs.
Listing your website or article on this platform is very easy.
The money withdrawal process is carried out swiftly and smoothly.
Bloggers are provided an opportunity to publish their content according to the niche and the website category.
Bloggers are offered a useful feature if they want to block an advertiser for some reason and do not wish to work with them in the future. Blocking them will remove all sponsored posts of those advertisers.
It provides instant blog approval within 30 seconds.
What is the Blog or Website approval criteria over the Flyout platform?
One of the leading reasons why Flyout.io review is astounding on the internet and all websites is that the blog selection criteria are carried out manually. Before any blog is selected to get the sponsored post, it needs to be met with certain eligibility criteria. Stellar Flyout Review is listed on various sites and other sources because of the stringent review process it follows for each blog.

Before submitting any blog, one needs to analyze all the aspects mentioned below carefully:

The blog needs to be at least 6 months old.
There should be minimum traffic of 10,000 visitors for the last 30 days. It is also imperative to ensure the traffic is attained organically.
The blog must contain requisites, elegant design, and pages including About Us, Contact Us, Need Help, Privacy Policy, Products or Services Offered, and FAQ section.
The blog must have at least 100 astounding articles. All the articles will be reviewed individually to check and ensure whether they are meeting all the quality standards or not.
The UI and UX of your website should be highly professional.
Furthermore, listed below are some types of niches that Flyout does not authorize to be a part of it:

Gambling/Casino or any other illegal betting.
All kinds of micro niche blogs
Blogs related to Deals and Coupons
Any Event blog
Automated news blogs
Adult and erotica blogs
Celebrity wiki blogs
Android Package Kit (APK) download blogs
Cannabis or other drug-related blogs
Guns and Ammunition blogs
Exam result blogs
Whatsapp status blogs
Online dating blogs
Quotes/Shayari/Lyrics
Blogs talking about any agency or someone’s portfolio
If your blog is based on any of the niches mentioned above, you will not be allowed to post your article on Flyout. Even if you have a custom domain, your content will not be selected as all these niches are restricted.


Also Read: How to Make Money Blogging

How to Join Flyout and Make Money with this Platform?
How to Join Flyout and Make Money with this Platform


The main question arises, how to join this spectacular platform, Flyout. To get started with this platform and make money with sponsored posts, you need to:

1. Visit the Flyout website and click on the tab Sign Up Now.

2. The next step is to check the eligibility criteria by putting your website’s URL in the dashboard. You will be able to do this once you have added your website from the ‘Add Website’ button on the Websites Menu.

3. Along with the Check Eligibility tab, you will find 2 other Verification tabs and Blog Details.

4. In the verification tab, you need to prove your ownership of the website. You can use any of the following methods to prove your ownership to Flyout-


a) By adding an HTML Meta Tag

b) Using HTML File

c) By using DNS Records

Out of all 3 methods, it is advisable to verify the ownership with the HTML meta tag as you need to copy the tag provided by Flyout and paste them inside the ‘Body’ section on the website. Do this, and click on verify.

5. Add all the details of your blog. Once you have selected your website or article’s category or niche, add your contact number and add the price that you would like to keep for the advertisers to pay you.

Note: The pricing part can be quite tricky, so always make sure to check other people’s prices and the quality of content they have published on Flyout and set your price accordingly.

Also, the value of sponsored post depends upon the following factors:


UI/UX
Average Monthly Views
Domain Authority /Page Authority
6. Enter your login details with your desired email ID and password. You can either choose to log in with Facebook or Gmail.

Subscribe to Moneymint Weekly
Every Sunday we email people like you with top tips, insights and opportunities to manage your finances and build your online business. No hype, no scams, no fake gurus. Sign up below to get the next one.

→ enter your name here ←
→ enter your email here ←
The form collects name and email so that we can add you to our newsletter list for updates. Check out our privacy policy for the full story on how we protect and manage your submitted data!
7. Once you logged in, you will be able to access your Flyout.io dashboard. Your website will be listed as pending inside the blog section of your Flyout.io dashboard. You need to click on ‘Verify GA.’ Clicking on this tab will redirect you to Google Analytics login. After logging in, you need to grant read-only permissions to Flyout. This process may take up to 3 to 4 days to get your website verified.

You will get an email from the Flyoit.io team mentioning all your blog details along with the approval. Your website is verified to be posted on this platform, and you are all set to earn ample money by receiving sponsored posts on your blogs.

How to Publish the Article on Flyout- Flyout.io Review?
You need to click on the link ‘View Article’ under the preview column, and the article you want to post will appear in your browser window.
The article’s link needs to be updated to a live article if you want to post the article appearing in the browser window. You need to click the ‘Approval Offer’ button.
On the contrary, if you think the article is not up to the mark and needs some changes or corrections, you can click ‘Reject Offer’ and enter the reason for rejection.
Note: The maximum time a user gets to publish the article is 3 days. This timer is associated with every sponsored post-offer, which means the order automatically gets canceled if you fail to publish the article within the required time frame.

Also Read: 25+ Best Affiliate Programs in India

Flyout Review- Is Instant Publishing Option Available on Flyout?
If you list your blog on Flyout, it supports instant publishing for the content you want to upload. It allows the blogs to publish automatically that further helps in saving your time and efforts. However, you should know how to set up the process of auto-publishing:

Visit the Flyout website and log in to their account.
Go to the ‘Blogs’ section, and click ‘Apply’ on the blog you want to publish
Now, you need to download and activate a plugin.
Select ‘Verify Status’ once the plugin is installed.
You will be required to create an author account after you can complete the verification process successfully.
The next step is to complete the setup of the author account and select ‘Verify Account.’
You will be notified with a message stating that the verification process was successful.
When do you start getting paid on Flyout?
When do you start getting paid on Flyout | Flyout.io Review: Best Platform To Earn Money By Sponsored Posts?


You start earning handsome income through this platform as soon as your website or article gets approved. Once it’s done, you will be able to inside the Blog section as ‘Approved.’

Do you know why Flyout.io review is full of satisfied customers? One of the reasons for an excellent Flyout review is the build-up and exaltation it provides to your website or blog. In a nutshell, it boosts your website, intriguing the advertisers. This enables your website to generate many impressions that you can check inside the performance section. More will be the impressions, better it will be for your website.

Now, it solely depends upon the advertiser whether they will find their products apt to post on your website or not. Although Flyout will ensure the maximized lead generation for your website, other factors can still immensely affect your website in getting sponsored posts and captivate more advertisers, including the power of your content, UI/UX, and average views of your site and the entire design of your website.

If the advertiser agrees to post their ad on your site, you will be able to see an increase in the ‘Drafts’ tab inside the Performance section. Increasing the drafts signifies some advertiser is writing the content to be published on your website. You will receive an email as shown below once the advertiser is done writing the content:

Receiving this email will confirm your order, which will also appear in the ‘Orders’ section.

Now, clicking on ‘Accept’ will provide you full access to the advertiser’s post and allow you to publish the content on your website. You need to copy the post and paste it inside the Content Management System (CMS) you are using. One of the best and most commonly used CMS is WordPress.

As soon as you copy the content on your website, all you need to do is copy the public link from your website and paste it inside Flyout. Doing this will complete your order. You can check the revenue you earned through sponsored posts inside the ‘Balance’ section.


When the order is marked complete, and your published sponsored post starts getting more views, you will be paid between the 8th to 15th of every month. The payment may vary depending upon the number of impressions your sponsored post can generate.

Also Read: 20 Websites Where You Can Earn $100 Daily

Flyout is designed for?
Flyout platform is particularly designed for bloggers who have a strong urge to make more money by listing their blog to be accepted as sponsored posts and let advertisers promote their product or service. It is a win-win game; that’s why it has become extensively famous and proven to be an ideal platform for bloggers and advertisers.

The significant advantage the advertisers get if they promote their product or service through this platform is that they can advertise their product at affordable prices compared to other sources.

Flyout.io Review with Proof- Why should you join it?
You can check out Flyout Review on multiple websites. It would help if you typed Flyout.io review on Google or any other search engine; the results will demonstrate how exceptional this platform is for bloggers.

If you have substantial traffic on your blog, you can effortlessly make money through sponsored posts through this platform. Flyout is best known for providing sponsored posts to bloggers and website owners who earn a bonus revenue, which is way too higher than CPC Adsense income.

Flyout does not encourage cold emailing and waiting for someone to sponsor your site, especially when it appears to be thriving. This platform’s primary objective is to ensure your websites’ collaboration with the appropriate advertisers you deserve. Overall, it results in creating a win-win situation for everyone.

How to Track Commission on Flyout Affiliate Program?
How to Track Commission on Flyout Affiliate Program


Once you sign up with its affiliate program, you will get access to its dashboard, from where you will be able to see the detailed insight of your affiliate program.

It will feature five insights, including the Click section, Signups section, Submitted section, Accepted section, and Earnings section, as shown in the screenshot below:

The clicks section represents the total number of clicks you have got on your affiliate link.
The Signup tab represents the total number of signups.
The Submitted section displays the total number of blogs submitted on this platform.
The total number of blogs approved will appear in the Approved section.
All your earnings will be showcased in the Earning section.
Flyout.io Review- Is it a Legitimate Website?
How does the Flyout model work

Flyout website is one of the most trusted websites that are well-known for paying bloggers for uploading sponsored posts to their websites. Furthermore, this platform helps all bloggers earn extra with each sponsored post compared to various other platforms.

Also Read: 50+ Best Recurring Affiliate Programs

How does Flyout Make Money?
When do you start getting paid on Flyout

Flyout is an online advertising platform connecting publishers/bloggers/website owners and advertisers to generate more revenue by publishing each sponsored post. The income is generated for publishers as well as advertisers. They are immensely benefitted from the sponsored posts’ ads, further helping them get their products promoted through sponsored blogs.

Now the question is, how does Flyout make money? It charges a nominal amount of commission from your advertisement value, circa 20% of the total value.


Flyout Referral Program
What is an Affiliate program

Increase your chances of earning more with the help of the stellar referral program of the Flyout platform. This referral program will provide an opportunity to give you an incentive for the business you bring to the platform. This platform offers $15 to all its users who are participating in their referral program and brings new bloggers to Flyout.

Recommended: The Moneytizer Review (2021)

Flyout follows a seamless process of payments. That’s why Flyout.io Review is above extraordinary when you will visit any website. It releases the payments following the NET 30 rule, which implies they pay for 30 days. Also, they have kept a minimum payout of $100.

Flyout is a powerful platform not only for writers or bloggers but also for advertisers. You can sign up to this stellar platform, get some sponsored posts, and start boosting your income like never before!

You can provide us with your feedback in the comments section and write to us once you start using it and let us know the Flyout Review.

Subscribe to Moneymint Weekly
Every Sunday we email people like you with top tips, insights and opportunities to manage your finances and build your online business. No hype, no scams, no fake gurus. Sign up below to get the next one.
The form collects name and email so that we can add you to our newsletter list for updates. Check out our privacy policy for the full story on how we protect and manage your submitted data!

Anshuman Rathore
Anshuman is a full-time blogger and student. Join Anshuman and get more knowledge....😗❤️
. thanks for coming

🇸 🇭 🇴 🇵  🇳 🇴 🇼  𝕘𝕖𝕥 𝕒𝕞𝕒𝕫𝕫𝕚𝕟𝕘 𝕕𝕖𝕒𝕝𝕤 .....

Start shopping by... giving links get discounts👇😗......

Sunday, June 19, 2022

My SQL (structured query language)▶️

What is SQL?

.It is used for creating database SQL adopts the concept of RDBMS (Relatnal database management system)relational database is a type of database .......for Know all about my SQL download pdf by giving link...👇



Tuesday, April 12, 2022

pydroid 3 (game program) ..🎮.. make own game

 pydroid 3 application for run this game program ▶️😙
check this video ☝️

# Fork of https://github.com/sourabhv/FlapPyBird

from itertools import cycle
import random
import sys

import pygame
from pygame.locals import *

FPS = 30
SCREENWIDTH = 288
SCREENHEIGHT = 512
PIPEGAPSIZE = 100 # gap between upper and lower part of pipe
BASEY = SCREENHEIGHT * 0.79
# image, sound and hitmask dicts
IMAGES, SOUNDS, HITMASKS = {}, {}, {}

# list of all possible players (tuple of 3 positions of flap)
PLAYERS_LIST = (
    # red box
    (
        'assets/sprites/redbox-upflap.png',
        'assets/sprites/redbox-midflap.png',
        'assets/sprites/redbox-downflap.png',
    ),
    # blue box
    (
        'assets/sprites/bluebox-upflap.png',
        'assets/sprites/bluebox-midflap.png',
        'assets/sprites/bluebox-downflap.png',
    ),
    # yellow box
    (
        'assets/sprites/yellowbox-upflap.png',
        'assets/sprites/yellowbox-midflap.png',
        'assets/sprites/yellowbox-downflap.png',
    ),
)

# list of backgrounds
BACKGROUNDS_LIST = (
    'assets/sprites/background-day.png',
    'assets/sprites/background-night.png',
)

# list of pipes
PIPES_LIST = (
    'assets/sprites/pipe-green.png',
    'assets/sprites/pipe-red.png',
)

try:
    xrange
except NameError:
    xrange = range


def main():
    global SCREEN, FPSCLOCK
    pygame.init()
    FPSCLOCK = pygame.time.Clock()
    # Fullscreen scaled output
    SCREEN = pygame.display.set_mode((SCREENWIDTH, SCREENHEIGHT), pygame.SCALED | pygame.FULLSCREEN)
    pygame.display.set_caption('Flappy Box')

    # numbers sprites for score display
    IMAGES['numbers'] = (pygame.image.load('assets/sprites/0.png').convert_alpha(), pygame.image.load('assets/sprites/1.png').convert_alpha(), pygame.image.load('assets/sprites/2.png').convert_alpha(), pygame.image.load('assets/sprites/3.png').convert_alpha(), pygame.image.load('assets/sprites/4.png').convert_alpha(), pygame.image.load('assets/sprites/5.png').convert_alpha(), pygame.image.load('assets/sprites/6.png').convert_alpha(), pygame.image.load('assets/sprites/7.png').convert_alpha(), pygame.image.load('assets/sprites/8.png').convert_alpha(), pygame.image.load('assets/sprites/9.png').convert_alpha())

    # game over sprite
    IMAGES['gameover'] = pygame.image.load('assets/sprites/gameover.png').convert_alpha()
    # message sprite for welcome screen
    IMAGES['message'] = pygame.image.load('assets/sprites/message.png').convert_alpha()
    # base (ground) sprite
    IMAGES['base'] = pygame.image.load('assets/sprites/base.png').convert_alpha()

    # sounds
    soundExt = '.ogg'

    SOUNDS['die'] = pygame.mixer.Sound('assets/audio/die' + soundExt)
    SOUNDS['hit'] = pygame.mixer.Sound('assets/audio/hit' + soundExt)
    SOUNDS['point'] = pygame.mixer.Sound('assets/audio/point' + soundExt)
    SOUNDS['wing'] = pygame.mixer.Sound('assets/audio/wing' + soundExt)

    while True:
        # select random background sprites
        randBg = random.randint(0, len(BACKGROUNDS_LIST) - 1)
        IMAGES['background'] = pygame.image.load(BACKGROUNDS_LIST[randBg]).convert()

        # select random player sprites
        randPlayer = random.randint(0, len(PLAYERS_LIST) - 1)
        IMAGES['player'] = (
            pygame.image.load(PLAYERS_LIST[randPlayer][0]).convert_alpha(),
            pygame.image.load(PLAYERS_LIST[randPlayer][1]).convert_alpha(),
            pygame.image.load(PLAYERS_LIST[randPlayer][2]).convert_alpha(),
        )

        # select random pipe sprites
        pipeindex = random.randint(0, len(PIPES_LIST) - 1)
        IMAGES['pipe'] = (
            pygame.transform.flip(pygame.image.load(PIPES_LIST[pipeindex]).convert_alpha(), False, True),
            pygame.image.load(PIPES_LIST[pipeindex]).convert_alpha(),
        )

        # hismask for pipes
        HITMASKS['pipe'] = (
            getHitmask(IMAGES['pipe'][0]),
            getHitmask(IMAGES['pipe'][1]),
        )

        # hitmask for player
        HITMASKS['player'] = (
            getHitmask(IMAGES['player'][0]),
            getHitmask(IMAGES['player'][1]),
            getHitmask(IMAGES['player'][2]),
        )

        movementInfo = showWelcomeAnimation()
        crashInfo = mainGame(movementInfo)
        showGameOverScreen(crashInfo)


def showWelcomeAnimation():
    """Shows welcome screen animation of flappy box"""
    # index of player to blit on screen
    playerIndex = 0
    playerIndexGen = cycle([0, 1, 2, 1])
    # iterator used to change playerIndex after every 5th iteration
    loopIter = 0

    playerx = int(SCREENWIDTH * 0.2)
    playery = int((SCREENHEIGHT - IMAGES['player'][0].get_height()) / 2)

    messagex = int((SCREENWIDTH - IMAGES['message'].get_width()) / 2)
    messagey = int(SCREENHEIGHT * 0.12)

    basex = 0
    # amount by which base can maximum shift to left
    baseShift = IMAGES['base'].get_width() - IMAGES['background'].get_width()

    # player shm for up-down motion on welcome screen
    playerShmVals = {'val': 0, 'dir': 1}

    while True:
        for event in pygame.event.get():
            if event.type == QUIT or (event.type == KEYDOWN and event.key == K_ESCAPE):
                pygame.quit()
                sys.exit()
            if event.type == KEYDOWN and (event.key == K_SPACE or event.key == K_UP) or event.type == MOUSEBUTTONDOWN:
                # make first flap sound and return values for mainGame
                SOUNDS['wing'].play()
                return {
                    'playery': playery + playerShmVals['val'],
                    'basex': basex,
                    'playerIndexGen': playerIndexGen,
                }

        # adjust playery, playerIndex, basex
        if (loopIter + 1) % 5 == 0:
            playerIndex = next(playerIndexGen)
        loopIter = (loopIter + 1) % 30
        basex = -((-basex + 4) % baseShift)
        playerShm(playerShmVals)

        # draw sprites
        SCREEN.blit(IMAGES['background'], (0, 0))
        SCREEN.blit(IMAGES['player'][playerIndex], (playerx, playery + playerShmVals['val']))
        SCREEN.blit(IMAGES['message'], (messagex, messagey))
        SCREEN.blit(IMAGES['base'], (basex, BASEY))

        pygame.display.update()
        FPSCLOCK.tick(FPS)


def mainGame(movementInfo):
    score = playerIndex = loopIter = 0
    playerIndexGen = movementInfo['playerIndexGen']
    playerx, playery = int(SCREENWIDTH * 0.2), movementInfo['playery']

    basex = movementInfo['basex']
    baseShift = IMAGES['base'].get_width() - IMAGES['background'].get_width()

    # get 2 new pipes to add to upperPipes lowerPipes list
    newPipe1 = getRandomPipe()
    newPipe2 = getRandomPipe()

    # list of upper pipes
    upperPipes = [
        {
            'x': SCREENWIDTH + 200,
            'y': newPipe1[0]['y']
        },
        {
            'x': SCREENWIDTH + 200 + (SCREENWIDTH / 2),
            'y': newPipe2[0]['y']
        },
    ]

    # list of lowerpipe
    lowerPipes = [
        {
            'x': SCREENWIDTH + 200,
            'y': newPipe1[1]['y']
        },
        {
            'x': SCREENWIDTH + 200 + (SCREENWIDTH / 2),
            'y': newPipe2[1]['y']
        },
    ]

    pipeVelX = -4

    # player velocity, max velocity, downward accleration, accleration on flap
    playerVelY = -9 # player's velocity along Y, default same as playerFlapped
    playerMaxVelY = 10 # max vel along Y, max descend speed
    playerMinVelY = -8 # min vel along Y, max ascend speed
    playerAccY = 1 # players downward accleration
    playerRot = 45 # player's rotation
    playerVelRot = 3 # angular speed
    playerRotThr = 20 # rotation threshold
    playerFlapAcc = -9 # players speed on flapping
    playerFlapped = False # True when player flaps

    while True:
        for event in pygame.event.get():
            if event.type == QUIT or (event.type == KEYDOWN and event.key == K_ESCAPE):
                pygame.quit()
                sys.exit()
            if event.type == KEYDOWN and (event.key == K_SPACE or event.key == K_UP) or event.type == MOUSEBUTTONDOWN:
                if playery > -2 * IMAGES['player'][0].get_height():
                    playerVelY = playerFlapAcc
                    playerFlapped = True
                    SOUNDS['wing'].play()

        # check for crash here
        crashTest = checkCrash({'x': playerx, 'y': playery, 'index': playerIndex}, upperPipes, lowerPipes)
        if crashTest[0]:
            return {'y': playery, 'groundCrash': crashTest[1], 'basex': basex, 'upperPipes': upperPipes, 'lowerPipes': lowerPipes, 'score': score, 'playerVelY': playerVelY, 'playerRot': playerRot}

        # check for score
        playerMidPos = playerx + IMAGES['player'][0].get_width() / 2
        for pipe in upperPipes:
            pipeMidPos = pipe['x'] + IMAGES['pipe'][0].get_width() / 2
            if pipeMidPos <= playerMidPos < pipeMidPos + 4:
                score += 1
                SOUNDS['point'].play()

        # playerIndex basex change
        if (loopIter + 1) % 3 == 0:
            playerIndex = next(playerIndexGen)
        loopIter = (loopIter + 1) % 30
        basex = -((-basex + 100) % baseShift)

        # rotate the player
        if playerRot > -90:
            playerRot -= playerVelRot

        # player's movement
        if playerVelY < playerMaxVelY and not playerFlapped:
            playerVelY += playerAccY
        if playerFlapped:
            playerFlapped = False

            # more rotation to cover the threshold (calculated in visible rotation)
            playerRot = 45

        playerHeight = IMAGES['player'][playerIndex].get_height()
        playery += min(playerVelY, BASEY - playery - playerHeight)

        # move pipes to left
        for uPipe, lPipe in zip(upperPipes, lowerPipes):
            uPipe['x'] += pipeVelX
            lPipe['x'] += pipeVelX

        # add new pipe when first pipe is about to touch left of screen
        if len(upperPipes) > 0 and 0 < upperPipes[0]['x'] < 5:
            newPipe = getRandomPipe()
            upperPipes.append(newPipe[0])
            lowerPipes.append(newPipe[1])

        # remove first pipe if its out of the screen
        if len(upperPipes) > 0 and upperPipes[0]['x'] < -IMAGES['pipe'][0].get_width():
            upperPipes.pop(0)
            lowerPipes.pop(0)

        # draw sprites
        SCREEN.blit(IMAGES['background'], (0, 0))

        for uPipe, lPipe in zip(upperPipes, lowerPipes):
            SCREEN.blit(IMAGES['pipe'][0], (uPipe['x'], uPipe['y']))
            SCREEN.blit(IMAGES['pipe'][1], (lPipe['x'], lPipe['y']))

        SCREEN.blit(IMAGES['base'], (basex, BASEY))
        # print score so player overlaps the score
        showScore(score)

        # Player rotation has a threshold
        visibleRot = playerRotThr
        if playerRot <= playerRotThr:
            visibleRot = playerRot

        playerSurface = pygame.transform.rotate(IMAGES['player'][playerIndex], visibleRot)
        SCREEN.blit(playerSurface, (playerx, playery))

        pygame.display.update()
        FPSCLOCK.tick(FPS)


def showGameOverScreen(crashInfo):
    """crashes the player down ans shows gameover image"""
    score = crashInfo['score']
    playerx = SCREENWIDTH * 0.2
    playery = crashInfo['y']
    playerHeight = IMAGES['player'][0].get_height()
    playerVelY = crashInfo['playerVelY']
    playerAccY = 2
    playerRot = crashInfo['playerRot']
    playerVelRot = 7

    basex = crashInfo['basex']

    upperPipes, lowerPipes = crashInfo['upperPipes'], crashInfo['lowerPipes']

    # play hit and die sounds
    SOUNDS['hit'].play()
    if not crashInfo['groundCrash']:
        SOUNDS['die'].play()

    while True:
        for event in pygame.event.get():
            if event.type == QUIT or (event.type == KEYDOWN and event.key == K_ESCAPE):
                pygame.quit()
                sys.exit()
            if event.type == KEYDOWN and (event.key == K_SPACE or event.key == K_UP) or event.type == MOUSEBUTTONDOWN:
                if playery + playerHeight >= BASEY - 1:
                    return

        # player y shift
        if playery + playerHeight < BASEY - 1:
            playery += min(playerVelY, BASEY - playery - playerHeight)

        # player velocity change
        if playerVelY < 15:
            playerVelY += playerAccY

        # rotate only when it's a pipe crash
        if not crashInfo['groundCrash']:
            if playerRot > -90:
                playerRot -= playerVelRot

        # draw sprites
        SCREEN.blit(IMAGES['background'], (0, 0))

        for uPipe, lPipe in zip(upperPipes, lowerPipes):
            SCREEN.blit(IMAGES['pipe'][0], (uPipe['x'], uPipe['y']))
            SCREEN.blit(IMAGES['pipe'][1], (lPipe['x'], lPipe['y']))

        SCREEN.blit(IMAGES['base'], (basex, BASEY))
        showScore(score)

        playerSurface = pygame.transform.rotate(IMAGES['player'][1], playerRot)
        SCREEN.blit(playerSurface, (playerx, playery))
        SCREEN.blit(IMAGES['gameover'], (50, 180))

        FPSCLOCK.tick(FPS)
        pygame.display.update()


def playerShm(playerShm):
    """oscillates the value of playerShm['val'] between 8 and -8"""
    if abs(playerShm['val']) == 8:
        playerShm['dir'] *= -1

    if playerShm['dir'] == 1:
        playerShm['val'] += 1
    else:
        playerShm['val'] -= 1


def getRandomPipe():
    """returns a randomly generated pipe"""
    # y of gap between upper and lower pipe
    gapY = random.randrange(0, int(BASEY * 0.6 - PIPEGAPSIZE))
    gapY += int(BASEY * 0.2)
    pipeHeight = IMAGES['pipe'][0].get_height()
    pipeX = SCREENWIDTH + 10

    return [
        {
            'x': pipeX,
            'y': gapY - pipeHeight
        }, # upper pipe
        {
            'x': pipeX,
            'y': gapY + PIPEGAPSIZE
        }, # lower pipe
    ]


def showScore(score):
    """displays score in center of screen"""
    scoreDigits = [int(x) for x in list(str(score))]
    totalWidth = 0 # total width of all numbers to be printed

    for digit in scoreDigits:
        totalWidth += IMAGES['numbers'][digit].get_width()

    Xoffset = (SCREENWIDTH - totalWidth) / 2

    for digit in scoreDigits:
        SCREEN.blit(IMAGES['numbers'][digit], (Xoffset, SCREENHEIGHT * 0.1))
        Xoffset += IMAGES['numbers'][digit].get_width()


def checkCrash(player, upperPipes, lowerPipes):
    """returns True if player collders with base or pipes."""
    pi = player['index']
    player['w'] = IMAGES['player'][0].get_width()
    player['h'] = IMAGES['player'][0].get_height()

    # if player crashes into ground
    if player['y'] + player['h'] >= BASEY - 1:
        return [True, True]
    else:

        playerRect = pygame.Rect(player['x'], player['y'], player['w'], player['h'])
        pipeW = IMAGES['pipe'][0].get_width()
        pipeH = IMAGES['pipe'][0].get_height()

        for uPipe, lPipe in zip(upperPipes, lowerPipes):
            # upper and lower pipe rects
            uPipeRect = pygame.Rect(uPipe['x'], uPipe['y'], pipeW, pipeH)
            lPipeRect = pygame.Rect(lPipe['x'], lPipe['y'], pipeW, pipeH)

            # player and upper/lower pipe hitmasks
            pHitMask = HITMASKS['player'][pi]
            uHitmask = HITMASKS['pipe'][0]
            lHitmask = HITMASKS['pipe'][1]

            # if player collided with upipe or lpipe
            uCollide = pixelCollision(playerRect, uPipeRect, pHitMask, uHitmask)
            lCollide = pixelCollision(playerRect, lPipeRect, pHitMask, lHitmask)

            if uCollide or lCollide:
                return [True, False]

    return [False, False]


def pixelCollision(rect1, rect2, hitmask1, hitmask2):
    """Checks if two objects collide and not just their rects"""
    rect = rect1.clip(rect2)

    if rect.width == 0 or rect.height == 0:
        return False

    x1, y1 = rect.x - rect1.x, rect.y - rect1.y
    x2, y2 = rect.x - rect2.x, rect.y - rect2.y

    for x in xrange(rect.width):
        for y in xrange(rect.height):
            if hitmask1[x1 + x][y1 + y] and hitmask2[x2 + x][y2 + y]:
                return True
    return False


def getHitmask(image):
    """returns a hitmask using an image's alpha."""
    mask = []
    for x in xrange(image.get_width()):
        mask.append([])
        for y in xrange(image.get_height()):
            mask[x].append(bool(image.get_at((x, y))[3]))
    return mask


if __name__ == '__main__':
    main()


Ready to play ▶️..... 

Monday, March 7, 2022

Electrolytic cell .... class12th (electrochemistry)💟

Now we know about... electrolytic cell 📲..the device which is used to convert electrical energy to chemical energy 😌......this is called electrolytic cell..
External source of voltage is used to bring about a chemical reaction....

Electrolysis:-electrolysis, process by which electric current is passed through a substance to effect a chemical change. The chemical change is one in which the substance loses or gains an electron (oxidation or reduction). 

Uses:- 
For  copper purification🏵️
I think everyone know about how to collect pure copper..but I believe you . You every thing forgot 🙂 about electrolysis.. don't worry baccha loga I explain you ... what is purification of copper ? you can easily seen in figure... 
Frist we take 2 copper rods one is pure and other one is impure.....we dip in a copper sulphate (CuSo4)💟 we connect these two rods in a battery and Cu2+ ions. attract 2e- and forms Cu....now tha cathode rod have thick than anode rod because tha impurity of anode rod mix in CuSo4 solution and Cu attach in pure copper rod ( cathode) ......now we have pure copper 😌🙌..........

Thank you ❤️....



Tuesday, June 9, 2020

Mystery of Mona lisa

Toh aj ham baat kr ne bale hh ek eshi lady ki panting ke bare me jis ki eyebro nhi hh 😂 jesa ki aap title dekh kr jan chuke hoge ki baat world ki most populer,valuble, beautiful and mysterious panting ki ho rahi hh Mona lisa ...ish panting ko 15s ke famous panter Leonardo da vinci ne banaya tha Inka Janm 15 april 1452 ko italy me  huaa tha ye  panting jesi aap ko dikhti hh vesi hh nhi ye ek choti panting hh iska size 77cm×53cm hh 
ish panting ko banane me Leonardo da vinci ne ish panting ko banane me 14saal lagadiye.or ish panting ke lips banane me Leonardo da vinci ko 12saal lage unhone ye panting 1503 ko banana chalu ki thi 1517 tak complete kar di thi..Leonardo da vinci ne ish panting ko banane me 30 se bhi jada  Layers ka istemal kiya (more then 30 Layers of pant ) isme se kush layers toh human hair se bhi jada patli hh .. Leonardo da vinci ne ish panting ko poplar ki lakdi pe banaya tha oil pant se.ye panting abhi paris ke  Louvre Museum me hh ..

Yah panting tab famous or hojati hh 
1. Jb  ek admi jiska naam a Luc Maspero hh ish ne 23 july 1852 ko mona lisa ka wait krte krte  paris ke ek hotal ke 5th floor se kud kr apni jaan dedi ish admi ne apna ek suside note bhi likha tha jo ki mona lisa ki liye tha. 

2. Yah panting tab or khash ban jati hh jab iski  Louvre Museum se chori jati iski chori 21 August 1911 ko hoti hh or ise agle din noteis kiya gya tha   museum ko investigation ke liye 2 week takh band rkha ish confusion me ki panting museum hi khi rkh di hogi.pr panting museum me nhi mili. 
Or iski chori ka iljam ush time ke ek or mhan panter pr lga tha jinka naam Pablo Picasso pr lga baad me khafi time baad pata chala panting ko the Louvre Museum ke ek worker ne hai curaya tha jiska naam tha
  Vincenzo Peruggia  inka manna tha Mona lisa ki panting Itlay ki or ise Itlay me hona chahiye tha inko pakad liya gaya jab je panting ko leke Itlay ke ek museum me bechne ja rahe the 

Inko inki chori ke liye 6 month ke liye shaja huhi thi or italy ne inki desh bhakti ki liye inka sawaght kiya tha .

3. Saal 1956 me Bolivian tourist ne ish panting par Pathatr fekaa jisse ye  todi damage hogi bad me ise restore kr diya gya hh pr dag abhi bhi hh or ek bar ek lady ne ispe acid feka tha or ishi ko  dekh kr Mona Lisa ki security bada dighi hh panting ko charo or se bullet proof glass se band Kiya Hai fir bhi 2009 me ek lady ne ishe nuksan pahuchana cha.

4. Ish panting ki kimat saal 1962 me $100 million thi or 2019 me iski kimat $850million  batahi ghi thi

5. Yah aj bhi ek mystery hh ki Leonardo da vinci  ne kis ki panting banai thi bhut sare scientist khete hh ke Leonardo the vinci ne apni hai ek female  version panting banai thi is baat me kitni sacchai hai koi nhi janta Leonardo da vinci ek writter bhi the pr unhone apni ish panting ke bare me khai bhi kush nhi likha tha or aj mona lisa pe kyi gaane , artical likhe ja chuke hai. 

6. Ab baat ati hh Leonardo the vinci ne ish panting ki eyebro or eyelashes keyo nhi banshi the ek research me pata chala hh ki Leonardo da vinci ne ish panting ki eyebro or eyelashes batahi thi par ye time ke shath gayab hoghi hh sayd over cleaning. Ki baje se 


Jish museum ke room me Mona lisa 
Ki panting hh ushi room me mona lisa ki panting ke samne ek or panting hh jo ki mona lisa ki panting se bhut jada bhdi hh isko jitni baar dekho kam hh jiska naam hh the wedding feast at cana ish panting ko Paolo Veronese ne banaya tha pr ye panting mona lisa  ki panting jitni famous nhi hh ish liye log isake trf kam dekte  han or bhi monalisa ki panting jesi acchi panting hh 

Pr ham log bas kisi cheez ko ish liye jada importance dete hh ki vo jada famous hh ,ushe kisi bade vyakti ne banaya hh  hoskta hh dusre ka kam bhi uske jitna accha ho ,usshe jaada accha bhi hoskta 

Indian Statistical Institute(ISI) keya hai?

The Indian Statistical Institute (ISI) is an academic institute of national importance located in Kolkata, West Bengal. Founded...