Configuring Screen Time on Apps

The Note tries to understand mobile screen time control and presents current and proposed strategies. The inspiration of the article came from an excellent blog-post by Kristen Berman and her excellent product breakdown blog (kristenberman.substack.com). Do subscribe!! Introduction In behavioral science, the problems affecting behavior can be segregated in i-frame and s-frame. i-frame refers to individual frame of reference. Here the onus is on the individual to take action on the basis of their motivation, habits, biases and mindset. ...

May 3, 2024 · 4 min · 749 words · Kaushal Bundel

Notes of Building a Meditation App (Day 18)

I found this excellent product breakdown of Calm(Meditation App),How Calm uses premium to motivate. This article delves on the following key points: Meditation is often perceived as a challenging pursuit. The behavioral and mental shifts following regular meditation practice vary from person to person and typically emerge after a sustained period. Moreover, tailoring the environment to enhance each individual’s experience is not always possible. Consider the scenario where you’ve resolved to meditate, aiming to silence the cacophony of thoughts. You download an app and subscribe. Despite setting this intention and taking action, the likelihood of experiencing a transformative, day-altering meditation session is relatively slim. Contrast this with joining a gym. Discontent with your health and ongoing physical issues, you muster the courage to sign up for a premium gym membership. Surrounded by individuals showcasing their physical achievements, you’re motivated by the possibility of similar success. Your first session, amidst gleaming equipment, ignites a thrill and a satisfying sensation in your biceps, affirming your decision. ...

April 22, 2024 · 2 min · 378 words · Kaushal Bundel

Notes on Building a Meditation App (Day 17)

Deciding what to build for phase 1 For the past few days, I’ve been feeling stuck. I thought I was on the brink of completing my app, but for some reason, I couldn’t bring myself to do it. My progress was hindered by multiple factors: I began to doubt myself and my project. I questioned whether this product would indeed help users achieve a sense of calm in their day-to-day lives. I wondered if the product could offer a momentary respite amid their hectic schedules. To alleviate my doubts, I turned to research papers, most of which concluded that tracking and monitoring do help in identifying and managing stressors, with many people experiencing significant mental health benefits. I also read reviews of competing products and discovered that users greatly benefited from similar apps. ...

April 21, 2024 · 3 min · 430 words · Kaushal Bundel

Understanding *args and **kwargs with unpacking in Python

Introduction For a very long time, I have been confused about *args and **kwargs in python. This is a short summary of what these terms mean. Before I go deep into them, I have to make a clear distinction between argument and parameters. For so long, I have been confused about them and used them interchangeably. In theory: Parameter: These are placeholder values used while a function is defined. Arguments: These are the actual values passed into the function when it is called. ...

April 21, 2024 · 4 min · 837 words · Kaushal Bundel

Understanding ChatGpt Prompt Engineering- Part V - Using ChatGPT for Transforming text

Basic Usage of LLM’s #loading the boiler plate code import openai import os from dotenv import load_dotenv, find_dotenv #library to load the local environment variables jupyter _=load_dotenv(find_dotenv()) api_key= os.getenv("OPENAI_API_KEY") #creating the basic prompting function client = openai.OpenAI() def get_completion(prompt, model = "gpt-3.5-turbo"): messages = [{"role": "user", "content":prompt}] response = client.chat.completions.create( model = model, messages = messages, temperature = 0 ) return response.choices[0].message.content LLM as a Transforming device Consider the below text in Sanskrit. We can translate this text in the language for our choice with the tonal quality that we aspire. text = f""" योगस्थः कुरु कर्माणि सङ्गं त्यक्त्वा धनञ्जय। सिद्ध्यसिद्ध्योः समो भूत्वा समत्वं योग उच्यते।। """ prompt = f""" Please translate the sanskrit text {text} in the hindi and english language. Use the following rules to make the translation: 1. Output the original text and the both translations in the form of python list 2. The tone of the translation should be warn, friendly and personal. """ response = get_completion(prompt) print(response) ```python original_text = ["योगस्थः कुरु कर्माणि सङ्गं त्यक्त्वा धनञ्जय।", "सिद्ध्यसिद्ध्योः समो भूत्वा समत्वं योग उच्यते।।"] hindi_translation = ["योगस्थः कर्म करो, संग से दूर होकर धनंजय।", "सिद्धि और असिद्धि में समान बनकर समता को योग कहा जाता है।"] english_translation = ["Stay focused on your actions while letting go of attachment, Arjuna.", "Being equal in success and failure is called yoga."] translations = [original_text, hindi_translation, english_translation] print(translations) ``` original_text = ["योगस्थः कुरु कर्माणि सङ्गं त्यक्त्वा धनञ्जय।", "सिद्ध्यसिद्ध्योः समो भूत्वा समत्वं योग उच्यते।।"] hindi_translation = ["योगस्थः कर्म करो, संग से दूर होकर धनंजय।", "सिद्धि और असिद्धि में समान बनकर समता को योग कहा जाता है।"] english_translation = ["Stay focused on your actions while letting go of attachment, Arjuna.", "Being equal in success and failure is called yoga."] translations = [original_text, hindi_translation, english_translation] print(translations) [['योगस्थः कुरु कर्माणि सङ्गं त्यक्त्वा धनञ्जय।', 'सिद्ध्यसिद्ध्योः समो भूत्वा समत्वं योग उच्यते।।'], ['योगस्थः कर्म करो, संग से दूर होकर धनंजय।', 'सिद्धि और असिद्धि में समान बनकर समता को योग कहा जाता है।'], ['Stay focused on your actions while letting go of attachment, Arjuna.', 'Being equal in success and failure is called yoga.']] Expanding the given translation into a socratic conversation. ...

March 26, 2024 · 8 min · 1550 words · Kaushal Bundel