PPF (Public Provident Fund) Rules

http://www.bankofindia.co.in/pdf/PPFrules_14%20.pdf

One deposit with a minimum amount of Rs.500/- is mandatory in each financial year.
Advertisements
Posted in Business | Leave a comment

SD Card writing speed for shooting movies with Canon DSLR

When shooting movies, use a large-capacity SD card rated SD
Speed Class 6 or higher. If you use a card having a slow writing speed, a five-level indicator might appear on the right of the screen during movie shooting. It indicates how much data has not yet been written to the card (remaining capacity of the internal buffer memory). The slower the card, the faster the indicator will climb upward. If the indicator becomes full, movie shooting will stop automatically. If the card has a fast writing speed, the indicator will either not appear or the level (if displayed) will hardly go upward.

Posted in Hobbies, Travel | Tagged , , | Leave a comment

Drop boxes for syringe disposal in Seattle

http://www.kingcounty.gov/depts/health/communicable-diseases/hiv-std/patients/drug-use-harm-reduction/needle-disposal.aspx

Posted in Health and wellness | Leave a comment

Check if a string can become empty by recursively deleting a given sub-string

Given a string “str” and another string “sub_str”. We are allowed to delete “sub_str” from “str” any number of times. The task is to find if “str” can become empty by removing “sub_str” again and again.

Examples:

Input : str = “GEEGEEKSKS”, sub_str = “GEEKS”
Output : Yes
Explanation : In the string GEEGEEKSKS, we can first
delete the substring GEEKS from position 4.
The new string now becomes GEEKS. We can
again delete sub-string GEEKS from position 1.
Now the string becomes empty.

Input : str = “GEEGEEKSSGEK”, sub_str = “GEEKS”
Output : No
Explanation : In the string it is not possible to make the
string empty in any possible manner.

using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace ConsoleApplication1
{
    class Program
    {
        public static int flag = 0;
        public static void Main(string[] args)
        {
            string str = "KEEKEEKK";
            string subStr = "KEEK";
            RecursiveDeletion(str, subStr);
            if(flag == 0)
            {
                Console.WriteLine("No");
            }
        }

        public static void RecursiveDeletion(string str, string subStr)
        {
            if (str == null || str.Length == 0)
            {
                Console.WriteLine("Yes");
                flag = 1;
            }
            else
            {
                for (int i = 0; i <= str.Length - subStr.Length && flag == 0; i++)
                {
                    if (str.Substring(i, subStr.Length) == subStr)
                    {
                        RecursiveDeletion(str.Remove(i, subStr.Length), subStr);
                    }
                }
            }
        }
    }
}

Output
=======
Yes
Press any key to continue . . .
Posted in Information Technology | Leave a comment

Program to find amount of water in a given glass

There are some glasses with equal capacity as 1 litre. The glasses are kept as follows:

1
2 3
4 5 6
7 8 9 10

You can put water to only top glass. If you put more than 1 litre water to 1st glass, water overflows and fills equally in both 2nd and 3rd glasses. Glass 5 will get water from both 2nd glass and 3rd glass and so on.
If you have X litre of water and you put that water in top glass, how much water will be contained by jth glass in ith row?

Example. If you will put 2 litre on top.
1st – 1 litre
2nd – 1/2 litre
3rd – 1/2 litre

using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace ConsoleApplication1
{
    class Program
    {
        public class Glass
        {
            public double volume;
        }
        public static void Main(string[] args)
        {
            double volumeOfWater = 100;
            int rowNum = 7, colNum = 7;
            double glassCapacity = 1;
            Glass[] glass = new Glass[(rowNum + 1) * (rowNum + 1 + 1)/2];//add an extra row
            //Initialize the glass array and store it in a list
            List<List<Glass>> glassPattern = new List<List<Glass>>();
            for (int glassCounter = 0, row = 0; row < rowNum + 1; row++)
            {
                List<Glass> subList = new List<Glass>();
                for (int col = 0; col <= row; col++)
                {
                    glass[glassCounter] = new Glass();
                    glass[glassCounter].volume = 0;
                    subList.Add(glass[glassCounter++]);
                }
                glassPattern.Add(subList);
            }
            //Fill the top glass
            glassPattern[0][0].volume = volumeOfWater;
            //Mock the waterflow
            int flag = 0;
            for (int i = 0; i < glassPattern.Count - 1 && flag == 0; i++)//for each row but the last
            {
                for (int j = 0; j < glassPattern[i].Count; j++)//each column
                {
                   if(glassPattern[i][j].volume > glassCapacity) //nothing to do if volume <= glassCapacity
                    {
                        double temp = glassPattern[i][j].volume;
                        glassPattern[i][j].volume = glassCapacity;
                        glassPattern[i + 1][j].volume = glassPattern[i + 1][j].volume + (temp - glassCapacity) / 2;
                        glassPattern[i + 1][j + 1].volume = glassPattern[i + 1][j + 1].volume + (temp - glassCapacity) / 2;
                    }
                   if(i == rowNum - 1 && j == colNum - 1)
                    {
                        Console.WriteLine("Volume of water in glass position (" + rowNum + "," + colNum + ") = " + glassPattern[i][j].volume);
                        flag = 1;
                        break;
                    }
                }
            }
        }
    }
}

Output
=======
Volume of water in glass position (7,7) = 0.578125
Press any key to continue . . .
Posted in Information Technology | Leave a comment

Application stages and timelines for Indian Entry Visa

Overall it took 7 days to complete the entire application process. It excludes the passport delivery timelines which depends on the opted shipping speed with the carrier (FedEx/UPS/USPS).

1. Received
2. Verification
3. UNDER PROCESS at CKGS
4. IN TRANSIT to Embassy
5. UNDER PROCESS at Embassy
6. IN TRANSIT to CKGS
7. Sorting
8. Dispatch
9. Delivered

Oct 12, 2016 09:45 pm Application is ‘Dispatch’
Passport picked up by UPS from CKGS in the Pre-Paid Envelope provided by you.

Your AWB Number is XXXXXXXXXXXXXX9083

To track the ‘Progress of Your Shipment’, log onto the site of your Service Provider and enter your AWB Number.

View History (reverse chronological order)
====================================

Oct 12, 2016 – Wednesday
09:45 pm
Passport picked up by UPS from CKGS in the Pre-Paid Envelope provided by you.
Your AWB Number is XXXXXXXXXXXXXX9083
To track the ‘Progress of Your Shipment’, log onto the site of your Service Provider and enter your AWB Number.

Oct 12, 2016 – Wednesday
08:50 pm
Passport ‘Received’ at the CKGS application center and is at the ‘Sorting Facility’ where it is being processed for delivery.

Oct 12, 2016 – Wednesday
07:21 pm
Application ‘Reviewed’ by Consulate and ‘In Transit’ to CKGS Application Centre.

Oct 07, 2016 – Friday
11:40 am
Application is ‘Under Process’ at Consulate for decision making.

Oct 06, 2016 – Thursday
08:22 pm
Application is ‘In Transit’ to the Consulate.

Oct 06, 2016 – Thursday
04:38 pm
Application is ‘Under Process’ at CKGS.

Oct 04, 2016 – Tuesday
06:29 pm
Application Verification is ‘Complete’. Processing of your application will continue.
The Consulate may request for further documents over and above those already submitted as per the Document Checklist.
Please continue tracking your application status online.

Oct 03, 2016 – Monday
07:48 pm
Application ‘Received’ by CKGS and ‘Not Verified’.
You will receive an E-mail advising you of the outcome of the verification process.

Posted in Business, Travel | 1 Comment

Online Video Editing Tool

http://online-video-cutter.com/

Posted in Information Technology | Leave a comment