Forced Donation

Tags

,

In the past few days, I have booked cabs using one of the popular cab applications in Mumbai. All my experiences have been decent.

Recently, while going through the application, I noted one button that was set to ‘on’ by default. Which button is this? A ‘donate’ button.

Why am I upset about this? While I am not against donating money to charity, I generally do not like when such options are set to a ‘yes’ by default. If a person wishes to donate, he/she will send a donation. Why not show a popup asking for a donation, instead of being sneaky about it?

Advertisements

Qutub Minar Decoration

Tags

, , , ,

Delhi isnot only the capital of India, it is also famous for many monuments. One of the famous monuments is the Qutub Minar. It is made from Red sandstone and consists of five to seven sections that are clearly demarcated from each other. It was built over multiple decades and is a marvel.

While the tower is small by today’s standards, it was a marvel when built more than 300 years ago. In addition to its height, it has many carvings.

A few pictures of the carvings on the Qutub Minar are. Each image is of the same area of the tower, except each successive image is a zoomed-in version of the previous image. This zoom-in was using a telephoto lens and is not a digital zoom.

qutub-minar-2-1qutub-minar-2-2qutub-minar-2-3

Realized importance of Circular Polarizing Filter (CPL)

Tags

, , ,

During my recent visit to the Delhi, we visited the famous Red Fort. Inside the fort, the place where the throne used be, is cordened off by glass mounted from the floor to the roof.  This is probably to prevent people from trying to climb up onto the platform.

While taking a picture of this structure, the glass was creating a lot of reflections. It was a perfect situation where a Circular Polarizing Filter (CPL) would have helped make a big difference.

The image

reflection

No Spoon, No Problem

Tags

, , , , ,

We have coffee and tea vending machines in our office. One of the common problems is that we run out of spoons that help us dissolve the sugar in our chosen beverage.

While many times I drink tea and/or coffee without sugar, when I wanted sugar, it presented a problem. One solution is to take a spoon, wash it in hot water from the machine and use it to stir the beverage.

But, when there are no spoons, it does present a problem . . . For which I found a simple solution.

Each vending machine has a spout that allows us to pass steam through the beverage, allowing us to heat it a little more. This feature of the machine can also be used to stir the beverage, effectively causing the sugar to dissolve.

Problem solved!!!

Song List Processing 5

Tags

, , ,

After removing the numbers from each entry, I realized that there were duplicates. Hence, to get the final list, I had to sort the list and get unique entries. Hence I wrote one more Python program to go from this

Aadhi Ye Raat Jale; Film: Jeene Ki Arzoo; Artiste: Kishore Kumar
Aadmi Aadmi Ko Kya Dega Album: Live With Jagjit Singh; Artistes: Jagjit Singh,Chitra Singh
Aadmi Musafir Hai (Happy); Film: Apnapan; Artistes: Lata Mangeshkar, Mohammed Rafi
Aag Lagi Tan Man Mein Album: Fascinating Instrumental Hits; Artiste: Master Ebrahim
Aage Bhi Jane Na Tu Album: Balanced Brass Van Shipley; Artiste: Van Shipley
Aage Bhi Jane Na Tu Album: Instrumental Cd 1; Artiste: Brian Silas
Aage Bhi Jane Na Tu; Film: Waqt; Artiste: Asha Bhosle
Aah Ko Chahiiye Ek Umar Asar Hone Tak Album: Aye Mohabat Tere Anjam Pe Rona Aaya - Malika E Ghazal; Artiste: Begum Akhtar
Aah Ko Chahiye Album: Mirza Ghalib (T V Serial); Artiste: Jagjit Singh Aaha Rim Jhim Ke Ye Pyare Pyare; Film: Usne Kaha Tha; Artistes: Lata Mangeshkar, Talat Mahmood
Aai Aai Aa Sukoo Sukoo; Film: Junglee; Artiste: Mohammed Rafi
Aai Aai Aa Sukoo Sukoo; Film: Junglee; Artiste: Mohammed Rafi
Aai Aai Aa Sukoo Sukoo; Film: Junglee; Artiste: Mohammed Rafi

to this

A B C D Chhodo; Film: Raja Jani; Artiste: Lata Mangeshkar
A Medley Of Hits Album: Best Of Bhupinder Mitalee - Sharmate Sharmate; Artistes: Bhupinder Singh, Mitali Singh
A Piya More Naina Mein Album: Jiya Re Jhoome Parvati Kumari; Artiste: Parvati Kumari
Aa Aa Bhi Ja; Film: Teesri Kasam; Artiste: Lata Mangeshkar

The Python program to do this is

import osimport os
if __name__ == "__main__":
    uniqueLines = set()
    with open("s-v1-out-2.txt") as file:
    #with open("s-v2-out-2.txt") as file:
        for line in file:
            line = line.strip()
            uniqueLines.add(line)
    for l in sorted(uniqueLines):
        print(l)

Links

Song List Processing 4

Tags

, , ,

Now that I had a numbered list of songs like this,

01. Chupchup Khade Ho Zaroor Koi Baat Hai Film: Badi Bahen Artistes: Lata Mangeshkar, Premlata
02. Chhod Gaye Balam Mujhe Film: Barsaat Artistes: Lata Mangeshkar, Mukesh
03. Hawa Mein Udta Jaye Film: Barsaat Artiste: Lata Mangeshkar

I only had to remove the line numbers from each line, to get a file like this

Aadhi Ye Raat Jale; Film: Jeene Ki Arzoo; Artiste: Kishore Kumar
Aadmi Aadmi Ko Kya Dega Album: Live With Jagjit Singh; Artistes: Jagjit Singh,Chitra Singh
Aadmi Musafir Hai (Happy); Film: Apnapan; Artistes: Lata Mangeshkar, Mohammed Rafi
Aag Lagi Tan Man Mein Album: Fascinating Instrumental Hits; Artiste: Master Ebrahim
Aage Bhi Jane Na Tu Album: Balanced Brass Van Shipley; Artiste: Van Shipley
Aage Bhi Jane Na Tu Album: Instrumental Cd 1; Artiste: Brian Silas
Aage Bhi Jane Na Tu; Film: Waqt; Artiste: Asha Bhosle
Aah Ko Chahiiye Ek Umar Asar Hone Tak Album: Aye Mohabat Tere Anjam Pe Rona Aaya - Malika E Ghazal; Artiste: Begum Akhtar
Aah Ko Chahiye Album: Mirza Ghalib (T V Serial); Artiste: Jagjit Singh
Aaha Rim Jhim Ke Ye Pyare Pyare; Film: Usne Kaha Tha; Artistes: Lata Mangeshkar, Talat Mahmood
Aai Aai Aa Sukoo Sukoo; Film: Junglee; Artiste: Mohammed Rafi
Aai Aai Aa Sukoo Sukoo; Film: Junglee; Artiste: Mohammed Rafi
Aai Aai Aa Sukoo Sukoo; Film: Junglee; Artiste: Mohammed Rafi
Aai Jhumti Bahar Laai Dil Ka Qarar; Film: Insaniyat; Artistes: Lata Mangeshkar, Talat Mahmood
Aai Kisiki Yaad To; Film: Lafange; Artistes: Asha Bhosle, Manna Dey
Aai Kisiki Yaad To; Film: Lafange; Artistes: Asha Bhosle,Manna Dey
Aaine Se Kab Talak Tum Apna Dil Album: Rifaaqat Ahmed & Mohammad Hussain Collection; Artistes: Ahmed Hussain, Mohammed Hussain, Chorus

For this, I used another simple Python program, as below

import os
if __name__ == "__main__":
    with open("s-v1-out-1.txt") as file:
    #with open("s-v2-out-1.txt") as file:
        for line in file:
            line = line.strip()
            try:
                if line[0].isdigit:
                    lineOut = line.split(" ")
                    lineOut2 = lineOut[1:len(lineOut)]
                    print(" ".join(lineOut2))
                else:
                    print(line)
            except IndexError:
                pass

Links

Song List Processing 3

Tags

, , ,

The next step was to join all the song entries such that one line ended up with information of one song. So, from this

SONG LISTING
STATION LISTING
LATA MANGESHKAR

01. Chupchup Khade Ho Zaroor Koi Baat Hai
Film: Badi Bahen
Artistes: Lata Mangeshkar, Premlata
02. Chhod Gaye Balam Mujhe
Film: Barsaat
Artistes: Lata Mangeshkar, Mukesh
03. Hawa Mein Udta Jaye
Film: Barsaat
Artiste: Lata Mangeshkar

to this

01. Chupchup Khade Ho Zaroor Koi Baat Hai Film: Badi Bahen Artistes: Lata Mangeshkar, Premlata
02. Chhod Gaye Balam Mujhe Film: Barsaat Artistes: Lata Mangeshkar, Mukesh
03. Hawa Mein Udta Jaye Film: Barsaat Artiste: Lata Mangeshkar

For this purpose, I wrote a Python program, as follows

import os
if __name__ == "__main__":
    count = 0
    bSongLine = False
    bSongLineCompleted = False
    lineToPrint = ""
    #with open("Saregama_Carvaan_Songlist_2.0.txt") as file:
    with open("Saregama_Carvaan_Songlist_1.0.txt") as file:
        for line in file:
            oline = line.strip()
            line = oline.split(" ")
            index = line[0]
            index = index[:len(index)-1]
            if index.isdigit():
                if bSongLine == True:
                    bSongLineCompleted = True
                if bSongLineCompleted == True:
                    print(">>" + lineToPrint)
                lineToPrint = oline
                #print("digit>>" + lineToPrint)
                bSongLine = True
                bSongNameLine = True
                bSongLineCompleted = False
            else:
                if index == "Film":
                    bSongNameLine = False
                    lineToPrint = lineToPrint + "; " + oline
                    #print("film>>" + lineToPrint)
                elif index == "Artistes":
                    bSongNameLine = False
                    lineToPrint = lineToPrint + "; " + oline
                    #print("artistes>>" + lineToPrint)
                else:
                    lineToPrint = lineToPrint + " " + oline
                #count = count + 1
                #if count == 20:
                    # break
            if bSongLine == False:
                print(oline)

Link

Song List Processing 2

Tags

, , , ,

Simply getting the PDF document mentioning the songs was not enough. I wanted more. I wanted a text version of the document. Hence I extracted all the text from the document. Here is how the extract text looks

SONG LISTING
STATION LISTING
LATA MANGESHKAR

01. Chupchup Khade Ho Zaroor Koi Baat Hai
Film: Badi Bahen
Artistes: Lata Mangeshkar, Premlata
02. Chhod Gaye Balam Mujhe
Film: Barsaat
Artistes: Lata Mangeshkar, Mukesh
03. Hawa Mein Udta Jaye
Film: Barsaat
Artiste: Lata Mangeshkar
04. Barsaat Mein Humse Mile
Film: Barsaat
Artiste: Lata Mangeshkar
05. Jiya Beqarar Hai
Film: Barsaat
Artiste: Lata Mangeshkar
06. Patli Kamar Hai
Film: Barsaat
Artistes: Lata Mangeshkar, Mukesh
07. Meri Ankhon Mein Bas Gaya Koi Re
Film: Barsaat
Artiste: Lata Mangeshkar

While this text is better than PDF, I wanted to take it to the next logical step.

Link

Song List Processing 1

Tags

, , ,

In this day of digital music (usually played via mobile phones and portable speakers), I purchased a music player styled to look like a retro radio player – Saregama Carvaan (https://www.amazon.in/Saregama-Carvaan-SKU-R20008-Portable-Porcelain/dp/B071D7M83T?th=1).

The device contains many old Hindi film songs and is very comfortable for the older generation, who is not comfortable with mobile phones.

While the device is loved by my parents, knowing that is contains 5000 (as claimed by the product) songs is not enough. I wanted to know which songs were on the device. Hence I downloaded the PDF version of the song list from the product website.

Here is an image of how the song list looks

saregama

saregama

As you may have guessed, even this was not enough.