<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Puja Singh on Medium]]></title>
        <description><![CDATA[Stories by Puja Singh on Medium]]></description>
        <link>https://medium.com/@chandelsinghpuja?source=rss-3419e82de4e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Q84Xp3qNx5yRyWvBLbDmDw.jpeg</url>
            <title>Stories by Puja Singh on Medium</title>
            <link>https://medium.com/@chandelsinghpuja?source=rss-3419e82de4e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:06:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chandelsinghpuja/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Hybrid Data Governance Playbook]]></title>
            <link>https://chandelsinghpuja.medium.com/the-hybrid-data-governance-playbook-ba6db103eedb?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba6db103eedb</guid>
            <category><![CDATA[microsoft-purview]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[data-governance]]></category>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 12:46:12 GMT</pubDate>
            <atom:updated>2026-11-25T12:46:12.311Z</atom:updated>
            <content:encoded><![CDATA[<h3>Designing Data Governance Domains: Why Purely Functional Silos Fall Short (And How a Hybrid Model Wins)</h3><p><em>How to resolve the classic domain debate — and build an architecture that works for both business leaders and data engineers.</em></p><p><em>(Note: While this playbook draws from my experience with Microsoft Purview, the underlying pattern applies to any enterprise data governance platform.)</em></p><p>When rolling out an enterprise data governance program, one of the earliest — and most heated — architectural debates happens right at the whiteboard: <strong>How do we draw the boundaries of our Governance Domains?</strong></p><p>Recently, while structuring a governance framework, our stakeholders raised a completely valid, practical question:</p><blockquote>“Instead of dividing business entities across Master Data and Transactional Data domains, why not just mirror our org chart? Give Supply Chain (SCM), Commerce (COM), and Finance their own standalone governance domains. Ownership becomes obvious, and teams stay accountable.”</blockquote><p>On paper, aligning governance domains 1-to-1 with departments feels intuitive. Business stakeholders want domains organized <strong>by department</strong> — <strong>Supply Chain Management (SCM)</strong>, <strong>Commerce (COM)</strong>, <strong>Finance</strong> — for clear ownership and faster approvals.In practice, doing this exclusively creates invisible walls that break enterprise reporting, duplicate core data, and stall AI initiatives. Enterprise architects want domains split by <strong>data type</strong> — a centralized <strong>Master Data</strong> domain (Customer, Product) and a <strong>Transactional Data</strong> domain (Orders, Shipments) — so core entities mean the same thing everywhere.</p><h3>1. The Business Lens: Why Org-Chart Governance Breaks Down</h3><p>To understand why pure departmental domains fail, follow a single <strong>Product</strong> or <strong>Customer</strong> across your company:</p><ul><li><strong>Commerce (COM)</strong> defines a “Customer” as someone who clicked <em>Buy</em> on the website.</li><li><strong>Supply Chain (SCM)</strong> defines a “Customer” as a shipping destination or warehouse drop-off point.</li><li><strong>Finance</strong> defines a “Customer” as a billable legal entity.</li></ul><p>If COM and SCM govern their own isolated worlds without a shared foundation, this would lead to <strong>conflicting Truths in the Boardroom, Broken Cross-Functional Processes and High Cost of Change</strong></p><h3>2. The Technical Lens: Master vs. Transactional vs. Departmental Data</h3><p>From a data architecture perspective, data behaves differently depending on its lifecycle, volatility, and blast radius.Treating all data the same inside departmental buckets ignores fundamental engineering realities:</p><h4><strong>Enterprise Master Data (The Nouns: Customer, Product, Supplier, Location):</strong></h4><ul><li><strong>Characteristics:</strong> Low volume, low rate of change, extremely high reuse across the entire enterprise.</li><li><strong>Why it needs centralized/shared governance:</strong> A Product_ID or Customer_ID is a foundational join key across every downstream warehouse, lakehouse, and BI model. Golden record creation, survivorship rules,and schema contracts must be governed at the enterprise level so every domain speaks the exact same language.</li><li><strong>In Purview:</strong> Governed as shared source-of-truth Data Products paired with <a href="https://learn.microsoft.com/en-us/purview/unified-catalog-critical-data-elements">Critical Data Elements (CDEs)</a> — mapping fields like CustID (Commerce) and CID (ERP) to one <strong>Customer ID</strong> standard with uniform quality rules.</li></ul><h4><strong>Enterprise Transactional Data (The Verbs: Orders, Shipments, Payments, Invoices):</strong></h4><ul><li><strong>Characteristics:</strong> High volume, append-only/immutable events, time-bound, often spans multiple departments from creation to settlement.</li><li><strong>Why it needs cross-domain standards:</strong> An Order isn’t just “COM data” — it is the handoff contract between Commerce, Supply Chain, and Finance. Governing core transactional entities with shared enterprise standards ensures end-to-end lineage, auditability, and consistent KPIs (like Gross Merchandise Value or Order-to-Cash cycle time).</li><li><strong>In Purview:</strong> Assets are scanned in <a href="https://learn.microsoft.com/en-us/purview/data-gov-best-practices-domains-collections">Microsoft Purview Data Map</a> with end-to-end lineage, keeping identifiers and timestamps auditable across systems.</li></ul><p><strong>Department-Specific Data (e.g., COM Clickstream, SCM Warehouse Telemetry):</strong></p><ul><li><strong>Characteristics:</strong> High context-specificity, rapid iteration, minimal value outside the originating domain.</li><li><strong>Why it belongs in a Departmental Domain:</strong> Supply Chain doesn’t care about Commerce’s A/B testing cart-abandonment logs, and Commerce doesn’t care about SCM’s forklift sensor telemetry or warehouse bin-picking metrics. Putting these inside a <strong>COM</strong> or <strong>SCM</strong> governance domain empowers local teams to move fast, apply tailored access policies, and own data quality without bureaucratic bottlenecks.</li><li><strong>In Purview:</strong> <strong>COM</strong> runs as its own <a href="https://learn.microsoft.com/en-us/purview/unified-catalog-governance-domains">Governance Domain</a> with a Domain Owner, local glossary, and curated <a href="https://learn.microsoft.com/en-us/purview/unified-catalog-data-products-create-manage">Data Products</a> tied to departmental OKRs — while linking back to Enterprise Master CDEs.</li></ul><h3>Comparing the Approaches</h3><h4><strong>Master + Transactional Domains</strong></h4><p><strong>What It Gets Right — </strong>Uniform enterprise definitions for core entities.</p><p><strong>Where It Breaks Down — </strong>Weak operational ownership when a department pipeline breaks.</p><h4><strong>Department-Based Domains</strong></h4><p><strong>What It Gets Right — </strong>Clear day-to-day accountability and fast local decisions.</p><p><strong>Where It Breaks Down — </strong>Siloed definitions (“Active Customer” varies by team) and catalog rework after every reorg.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8YJcBuFjOCYvuBEg8P8__Q.png" /><figcaption>AI generated indicative image</figcaption></figure><h3>The Verdict: Federated Governance in Action</h3><p>Modern data frameworks — including <strong>Microsoft Purview’s Unified Catalog</strong> and <strong>Data Mesh</strong> principles — advocate for <strong>federated governance</strong>, not an all-or-nothing choice.</p><ul><li><strong>Keep SCM and COM Governance Domains</strong> so business units have clear ownership, autonomy, and accountability for their operational data products (like COM campaign performance or SCM inventory forecasting).</li><li><strong>Anchor them with Enterprise Master and Transactional Standards</strong> (via shared Critical Data Elements,enterprise glossary terms, and golden record pipelines) so that when COM hands an order to SCM, both sides are looking at the exact same Customer, Product, and Order truth.</li></ul><p>The choice between Master/Transactional and Departmental domains is a false dichotomy:</p><ul><li><strong>Master Data</strong> provides a <strong>common language</strong>.</li><li><strong>Transactional Data</strong> preserves <strong>end-to-end operational truth</strong>.</li><li><strong>Departmental Domains</strong> deliver <strong>local ownership and speed</strong>.</li></ul><p>In Microsoft Purview, anchoring shared standards via DataDomain, Data Products, CDEs and Data Map lineage while empowering teams like COM and SCM to own their Governance Domains with type as FunctionalUnit gives you <strong>centralized consistency without centralized bottlenecks</strong>. While there are no difference in the behaviour or functionality, there are 5 types of domains in Purview which serve as a descriptive label —</p><blockquote><strong>Functional unit:</strong> Organizations or business units, such as sales, marketing, or finance.</blockquote><blockquote><strong>Line of business:</strong> Products or services being sold, such as Xbox, Office, or Azure, and different markets or subsidiaries.</blockquote><blockquote><strong>Data domain:</strong> Key organization-wide entities, such as customers or employees.</blockquote><blockquote><strong>Regulatory:</strong> Compliance-related domains such as GDPR, SOX, or HIPAA.</blockquote><blockquote><strong>Project:</strong> Collaborative programs across the organization.</blockquote><p>Good data governance isn’t about slowing departments down with central control — it’s about giving every team the freedom to run fast on their own data while ensuring the bridges between them never collapse.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba6db103eedb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure DevOps Log Management: Copy, Publish, and Archive Pipeline Logs]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Managing logs in Azure DevOps pipelines can be tricky, especially when you need to preserve them beyond the default retention period or&#x2026;</p><p class="medium-feed-link"><a href="https://chandelsinghpuja.medium.com/azure-devops-log-management-copy-publish-and-archive-pipeline-logs-bbaa67fed0b9?source=rss-3419e82de4e------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://chandelsinghpuja.medium.com/azure-devops-log-management-copy-publish-and-archive-pipeline-logs-bbaa67fed0b9?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbaa67fed0b9</guid>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[logs]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[azure-devops]]></category>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 14:16:20 GMT</pubDate>
            <atom:updated>2025-07-23T14:16:20.129Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Negotiate a Job Offer: Tips and Strategies]]></title>
            <link>https://chandelsinghpuja.medium.com/how-to-negotiate-a-job-offer-tips-and-strategies-5a78d50dd170?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a78d50dd170</guid>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Mon, 25 Dec 2023 18:13:53 GMT</pubDate>
            <atom:updated>2023-12-25T18:13:53.897Z</atom:updated>
            <content:encoded><![CDATA[<p>Negotiating a job offer can be an exciting yet challenging process. It’s an opportunity to secure the best possible outcome and establish a positive relationship with your potential employer. However, negotiating can also be intimidating, especially if you are not familiar with the process. Here are some tips and strategies to help you negotiate a job offer successfully:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t-dPQBauye8mPp6Mk-XI7g.jpeg" /></figure><ol><li>Build Rapport and Demonstrate Your Value</li></ol><p>When negotiating a job offer, it’s essential to build rapport and establish a good relationship with your potential employer. Start by presenting your qualifications, skills, and achievements to demonstrate why you deserve the offer you are requesting. Be flexible in how you seek rewards, and work to understand where the employer’s constraints lie. Showing that you understand their limitations can help them become more open to alternative solutions.</p><p>2. Focus on Relevant Issues</p><p>It’s important to negotiate specific issues or interests that are relevant to your job offer. While salary and benefits are important, consider negotiating for other perks, such as flexible working arrangements, extra vacation time, or professional development opportunities.</p><p>3. Do Your Research</p><p>Before entering any negotiation, it’s important to do your research. Gather as much information as possible about the company, its culture, and the individuals involved in the negotiation process. Understanding your audience can help tailor your requests and negotiate effectively.</p><p>4. Be Mindful of Time Constraints</p><p>Negotiations can be time-sensitive, so be mindful of any deadlines or time constraints. Remember that a “no” today doesn’t necessarily mean a permanent rejection, and the situation may change in the future.</p><p>5. Understand the Other Side</p><p>When negotiating, understand why the employer can’t fulfill specific requests. Recognizing their constraints and limitations can help you modify your request and find a solution that works for both parties.</p><p>6. Maintain Open Communication</p><p>Maintain open communication with the employer throughout the negotiation process, and respond promptly to their inquiries or requests. This demonstrates your interest in the position and can help you build a positive relationship with the employer.</p><p>7. Have a Plan B</p><p>When negotiating, always have a plan B in case things don’t work out as expected. Consider what your response will be if the employer rejects your offer or presents an unsatisfactory counteroffer.</p><p>8. Avoid Ultimatums</p><p>Avoid giving ultimatums during the negotiation process. They can be counterproductive and damage the relationship between you and the employer. Instead, try to ask questions to clarify the situation or express your concerns.</p><p>9. Use “Yes, But…”</p><p>Using phrases such as “yes, but” or “I understand your point, but” can help acknowledge the employer’s perspective while still presenting your point of view.</p><p>10. Be Honest</p><p>Honesty and transparency are essential in any negotiation. Avoid making false claims or promises, as they can damage your credibility and harm the negotiation process.</p><p>Negotiating a job offer requires preparation, flexibility, and communication. By demonstrating your value, understanding the employer’s constraints, and being honest and transparent, you can increase your chances of securing the best possible outcome. Remember to focus on specific issues, maintain open communication, and have a plan B if things don’t work out as expected. Following these tips and strategies can help you negotiate a job offer successfully and establish a positive relationship with your potential employer</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a78d50dd170" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT Prompt: Write an article with the title “Would you fall in love, if you didn’t know about…]]></title>
            <link>https://chandelsinghpuja.medium.com/chatgpt-prompt-write-an-article-with-the-title-would-you-fall-in-love-if-you-didnt-know-about-233918fc8d45?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/233918fc8d45</guid>
            <category><![CDATA[romanticism]]></category>
            <category><![CDATA[consumerism]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Thu, 13 Jul 2023 12:43:01 GMT</pubDate>
            <atom:updated>2023-07-13T12:43:01.890Z</atom:updated>
            <content:encoded><![CDATA[<h3>ChatGPT Prompt: Write an article with the title “Would you fall in love, if you didn’t know about it?” considering the social and psychological impacts of romanticism and how consumerism and romanticism feed each other.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ENy3m4Ryq5fdQn3Q1FKig.png" /></figure><p>Title: Would You Fall in Love, If You Didn’t Know About It? The Interplay Between Romanticism and Consumerism</p><p>Introduction:</p><p>Love, with its ethereal allure and emotional intensity, has been a driving force in human lives since time immemorial. As societies evolve, the concept of love has been heavily influenced by various factors, including romanticism and consumerism. The interplay between these two forces has shaped our perceptions of love, influencing our desires, expectations, and even the way we engage in romantic relationships. In this article, we explore the social and psychological impacts of romanticism and how consumerism and romanticism feed each other.</p><p>The Rise of Romanticism:</p><p>Romanticism, a cultural and artistic movement that emerged in the late 18th century, celebrated individualism, passion, and intense emotions. It presented love as a transformative and all-encompassing experience. Romantic literature, music, and art reinforced the idea of finding one’s soulmate, a notion that captivated the collective imagination. Love became idealized, elevated to the status of a transcendent force capable of bestowing meaning and fulfillment upon individuals.</p><p>Romanticism and Society:</p><p>Romanticism had a profound impact on societal norms and expectations surrounding love. The ideal of finding a perfect partner, a kindred spirit with whom to share a profound emotional connection, became deeply ingrained in popular culture. This idealization, while inspiring, also set unrealistic expectations for relationships. People began to long for the extraordinary and, in some cases, developed a sense of entitlement to a “perfect” love that could match the romanticized portrayals in literature and media.</p><p>Consumerism and Love:</p><p>Consumerism, a socio-economic ideology that emphasizes the acquisition and consumption of goods and services, has found a way to capitalize on the romantic ideal. Advertisers, marketers, and the media often exploit the concept of love to sell products and services. The link between love and consumerism is evident in the commercialization of events such as Valentine’s Day, where extravagant gifts and grand gestures are seen as measures of love’s authenticity and depth.</p><p>Consumerism feeds off the desire for romantic fulfillment, shaping our perceptions of love and relationships. The proliferation of dating apps, for example, presents love as a transactional experience, emphasizing the search for an ideal partner as if browsing through a catalog. Swipe right, swipe left — a simple finger gesture that symbolizes the commodification of love in the digital age.</p><p>The Cycle of Reinforcement:</p><p>Romanticism and consumerism form a self-reinforcing cycle. Romanticism perpetuates the idea of an all-consuming love, fueling desires and expectations that can only be met through consumerist pursuits. Consumerism, in turn, promotes romantic ideals as a means to sell products and services. The result is a feedback loop wherein individuals seek love, often unknowingly influenced by societal constructs, and spend their resources in pursuit of an ideal that may not truly exist.</p><p>Social and Psychological Impacts:</p><p>This interplay between romanticism and consumerism has several social and psychological impacts. Firstly, it can lead to a sense of inadequacy and dissatisfaction in relationships. When reality fails to align with the romantic ideal, individuals may feel disillusioned and question the authenticity of their love. Furthermore, consumerism-driven expectations can foster a materialistic mindset, placing undue emphasis on the value of gifts and grand gestures over emotional connection and compatibility.</p><p>The commodification of love can also contribute to emotional detachment and a constant pursuit of the next best thing. The seemingly infinite options presented by consumer-driven dating culture can create a sense of disposability, leading to a lack of commitment and emotional investment in relationships.</p><p>Conclusion:</p><p>The complex relationship between romanticism and consumerism has significantly shaped our perceptions of love. While romantic ideals have the potential to inspire and deepen emotional connections, the influence of consumerism can distort these ideals, leading to unrealistic expectations and dissatisfaction. Recognizing this interplay is crucial in navigating the intricacies of modern romance. By striving for a more balanced and authentic understanding of love, we can foster healthier relationships that transcend the consumer-driven narrative and embrace the true essence of human connection.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=233918fc8d45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to automate the refresh option in google sheets using Google App Script]]></title>
            <link>https://chandelsinghpuja.medium.com/how-to-automate-the-refresh-option-in-google-sheets-using-google-app-script-51cf5ad80568?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/51cf5ad80568</guid>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[microlearning]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Sun, 15 May 2022 08:55:34 GMT</pubDate>
            <atom:updated>2022-05-15T08:55:34.174Z</atom:updated>
            <content:encoded><![CDATA[<p>Scenario: We want to automate the refresh option of Google sheets such that every time the sheet is opened it fetches the latest data from the underlying source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*UOvbGrqZbaNnb3hBTBUAbQ.png" /></figure><p>Let’s say we have Bigquery as the data source for this sheet. Here is a <a href="https://chandelsinghpuja.medium.com/how-to-read-and-write-sync-data-from-google-sheets-to-bigquery-614196c33df6">story</a> that tells about how to get data from bigquery to google sheets.</p><p>Let’s get this up and running!</p><ol><li>From the google sheets, Click on Extensions → AppScript. A new AppScript tab is opened.</li><li>Open the App Script Editor and edit the macros.gs file to add the following code:</li></ol><pre>function Refresh(){ <br>  var spreadsheet = SpreadsheetApp.getActive();<br>  spreadsheet.setActiveSheet<br>     (spreadsheet.getSheetByName(‘@connected_sheet_name’),true);<br>  SpreadsheetApp.enableAllDataSourcesExecution();<br>  spreadsheet.getActiveSheet().asDataSourceSheet().refreshData();<br>  Browser.msgBox(“@connected_sheet_name refreshed”);<br>  spreadsheet.setActiveSheet<br>     (spreadsheet.getSheetByName(‘@extracted_sheet_name’),true);<br>  spreadsheet.getRange(‘A1’).getDataSourceTable()[0].refreshData();<br>  Browser.msgBox(“@extracted_sheet_name refreshed”); <br>} </pre><p>4. Open the appscript.json file and make sure the following permissions are added under OAuth scopes:</p><pre>“oauthscopes”: [“https://www.googleapis.com/auth/drive”, “https://www.googleapis.com/auth/bigquery”, “https://www.googleapis.com/auth/spreadsheets”,“https://www.googleapis.com/auth/bigquery.readonly”]</pre><p>5. Create a Trigger to execute this function on file Open event — Create a triggers tab from the App script window. Click on Add Trigger, choose the function name as “Refresh”, event source as “From Spreadsheet”, and event type as “Open” and Save.</p><p>That’s it. Test the functionality by reopening the file. Note that the first time this is executed google will ask for permissions to which we need to select allow option.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51cf5ad80568" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to read and write (sync) data from Google sheets to Bigquery]]></title>
            <link>https://chandelsinghpuja.medium.com/how-to-read-and-write-sync-data-from-google-sheets-to-bigquery-614196c33df6?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/614196c33df6</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Sun, 15 May 2022 07:10:23 GMT</pubDate>
            <atom:updated>2022-05-15T09:15:50.685Z</atom:updated>
            <content:encoded><![CDATA[<p>Scenario: We need to show some data from google’s big query table to google sheets and then take inputs/comments from the user/Stakeholder for every entry. Once the comments are received they need to be updated in BigQuery.</p><p>So, What are our options here?</p><ol><li>To read data from google sheets: Create an external table in GCP pointing to the required google sheet.</li><li>To write data into the google sheets: The first method is to use the readily available data connectors. But you may have concerns about using 3rd party connectors in that case we can use google “Connected sheets”.</li></ol><p>Note: Connected sheets option is available only for enterprise users. Additionally, to complete this activity, we require the google sheets API enabled, Gsuite access, and a bigquery admin role.</p><p>Let’s get it up and running:</p><ol><li>Write a SQL query to fetch the data from BQ tables to sheets.</li><li>Create a google sheet. Select Data → Data Connectors → Connect to BigQuery.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zeYzfaVELiX5lH1ONFtgYA.gif" /></figure><p>3. Select your project from the list (you should see a list of all GCP projects linked to your account)</p><p>4. Click on “Write Custom Query” and then paste the query written in step 1 into the Editor. Click on Connect.</p><p>5. Now we have the live data pulled from your BigQuery Table every time we hit the refresh option.</p><p>6. Create an Extract of the columns you want to show to your stakeholder into a new sheet using the extract option in the connected sheets.</p><p>7. Add the extra columns in the “Extract” sheet to capture the comments from stakeholders.</p><p>8. Create a GCP external table (don’t forget to skip the first line while defining the schema). we can utilize scheduled queries to make sure we do not lose any feedback provided by the user.</p><p>9. Use the external table to update the data in other GCP tables as per your data model.</p><p>That’s it! We have now created a sync system between Google sheets and BigQuery. Currently, the google sheet needs to be refreshed manually but this can also be automated via a simple macro. Here is a link for that <a href="https://chandelsinghpuja.medium.com/how-to-automate-the-refresh-option-in-google-sheets-using-google-app-script-51cf5ad80568">Story</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=614196c33df6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Virtual Secret Santa Organizer in Python]]></title>
            <link>https://chandelsinghpuja.medium.com/virtual-secret-santa-organizer-in-python-56bfd8828bcb?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/56bfd8828bcb</guid>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Thu, 16 Sep 2021 06:38:23 GMT</pubDate>
            <atom:updated>2021-09-16T06:38:23.932Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZyinVxb14786liqUqAaFag.jpeg" /></figure><p>Two years ago, when I started my professional journey Secret Santa was one event that actually helped me to understand as well as appreciate my teammates. The same event now made me conscious of an often overlooked necessity of humans, <strong>“feeling like part of a community”</strong>.</p><p>Most of my Team Members were new to the firm/Team and had not met each other due to the pandemic, so they were on board with the idea of the Virtual Secret Santa celebration.</p><p>Celebrating virtually had some challenges, and in this story, I will be discussing that:</p><ol><li>How do we ensure everyone gets their gift while the sender remains a secret?</li><li>How do we mimic the random draw to assign Secret Santa?</li></ol><p>For the first challenge, we used a google doc. For each participant, they could mention their wishlist (e.g. links to wishlist on Amazon) or hate list (something they absolutely don’t want) and a clue column where their Santa could anonymously drop a message.</p><p>For the next challenge, nobody wanted to spoil their surprise by taking up the responsibility to assign the Secret Santa. So, I wrote a simple python script that would achieve this.</p><p><strong>Overview of the python script:</strong></p><ol><li>Read the participant details from an Excel sheet</li></ol><p>The first step is to get the list of participants and their email ids. If you have a small team, you can directly hard code it but considering the code principles it is not recommended.I have made the code reusable by reading information from an excel file.</p><pre><strong>def</strong> GetList(path):<br>    dflist=pd.read_csv(path)<br>    <strong>return</strong> dflist</pre><pre>Path = input(&quot;Enter the full path of the csv file&quot;).strip()<br>DetailList = GetList(Path)</pre><p>2. Connect to the organizer’s email account</p><p>Next, establish a connection to sender/organizer’s email account as soon as the username and password are provided through the terminal. There might be a need to update the server name and port number based on the sender’s email service provider.</p><p><em>Note:</em> If you are using Gmail, make sure the “Allow less secure apps” option is ON for the sender/organizer’s email account.</p><pre><strong>def</strong> OpenConnection(ServerName,PortNumber,UserName,Password):<br>    #establish a connection<br>    server = smtplib.SMTP(‘smtp.gmail.com’, 587)<br>    print(server.ehlo())<br>    print(server.starttls())<br>    print(server.verify(UserName))<br>    <strong>try</strong>:<br>        server.login(UserName, Password)<br>        print(server.login(UserName, Password))<br>    <strong>except</strong>:<br>        print(“Invalid Credentials”)<br>    <strong>return</strong> server</pre><pre>UserName=input(&quot;Enter your Email Id here&quot;).strip()<br>Password=input(&quot;Enter your Password&quot;).strip()</pre><pre>ServerName=&#39;smtp.gmail.com&#39;<br>PortNumber=587</pre><pre>Server=OpenConnection(ServerName,PortNumber,UserName,Password)<br>#establish the connection</pre><p>3. Randomly assign Secret Santa for each participant</p><p>The actual santa assignment function is rather simple. I have created two copies of the participants name list — <em>receiver</em> and <em>selection</em>. Every time a santa is assigned to a participant his/her name is removed from the <em>receiver</em> list and is added in the <em>result</em> set along with the name of the assigned santa. The AND operation on <em>selection</em> and <em>receiver ensures </em>that the person to be gifted by santa is not santa himself or someone who is already assigned to some other santa.</p><pre><strong>def</strong> Santa(Employees):<br>   #determine santa for each participant<br>   receiver = Employees.copy()<br>   result= {}<br>   <strong>for</strong> i <strong>in</strong> Employees:<br>       Selection = Employees.copy()<br>       Selection.pop(Selection.index(i))<br>       options = list(set(Selection)&amp;(set(receiver)))<br>       #create a list of participants yet to receive a gift<br>       choice = random.choice(options)<br>       result[i] = choice<br>       receiver.pop(receiver.index(choice))<br>   <strong>return</strong> result</pre><p>4. Construct an email message — Make sure to add unique subject</p><p>The <em>UserDetails</em> list contains the Email receiver’s name, his email id and name of the giftee, respectively. Construct the Email subject and body as per your requirements. Make sure the subject is uniquely identifiable as it will be used to delete the emails from the sent box.</p><pre><strong>def</strong> constructMessage(UserDetails):<br>    # construct an email message<br>    msg = MIMEMultipart()<br>    msg[‘From’] =’North Pole’<br>    msg[‘To’] = UserDetails[1]<br>    msg[‘Subject’] = ‘Confidential!!!This is your secret’<br>    body = “Hey “+str(UserDetails[0]+”,\n \n You are the secret       santa (amigos secereto) for “+str(UserDetails[2] + “.\n \n This is   an autogenerated email, we have no record of santa’s and their  giftees. For any other query, contact Puja Singh. \n \n Merry  Christmas and Happy Disconnect.”))<br>    msg.attach(MIMEText(body, ‘plain’))<br>    <strong>return</strong> msg</pre><p>5. Send an Email to each participant</p><pre><strong>def</strong> sendemail(UserName,ReceiverID,server,Message):<br>    #send email to each participant mentioned in the excel sheet<br>    <strong>try</strong>:<br>        server.sendmail(UserName,ReceiverID, Message.as_string())<br>    <strong>except</strong> ( ConnectionRefusedError):<br>        #report if your message was sent or there was an errors<br>        <strong>print</strong>(‘Failed to connect to the server. Bad connection   settings?’)<br>    <strong>except</strong> smtplib.SMTPServerDisconnected:<br>        <strong>print</strong>(‘Failed to connect to the server. Wrong user/password?’)<br>    <strong>except</strong> smtplib.SMTPException as e:<br>        <strong>print</strong>(‘SMTP error occurred: ‘ + str(e))<br>    <strong>else</strong>:<br>        <strong>print</strong>(‘Sent’)</pre><p>6. Delete all the Emails based on the Subject.</p><p>In order to delete the email from the <em>Sent</em> mail folder, first search the emails based on the subject and move them to Trash and then delete all emails from Trash.</p><pre><strong>def</strong> DeleteEmail(UserName,Password):<br>    mail = imaplib.IMAP4_SSL(‘imap.gmail.com’)<br>    connection_message=mail.login(UserName, Password)<br>    <strong>print</strong>(connection_message)<br>    mail.select(‘“[Gmail]/Sent Mail”’)<br>    result, data = mail.uid(‘search’, None, ‘SUBJECT “Hi Guys, This  just a trial email for Secret Santa”’)<br>    #Search sent Email box based on Subject of the constructed email<br>    <strong>if</strong> result == ‘OK’:<br>        <strong>for</strong> num <strong>in</strong> data[0].split():<br>            result, data = mail.uid(‘fetch’, num, ‘(RFC822)’)<br>            <strong>if</strong> result == ‘OK’:<br>                email_message = email.message_from_bytes(data[0][1])<br>                <strong>print</strong>(‘sender:’ + email_message[‘Subject’])<br>            mail.uid(‘store’, num, ‘+X-GM-LABELS’, ‘\\Trash’)<br>            #move the selected emails to Trash<br>    mail.select(‘[Gmail]/Trash’) # select all trash<br>    mail.store(“1:*”, ‘+FLAGS’, ‘\\Deleted’)<br>    mail.expunge()<br>    #delete the emails in Trash<br>    <strong>print</strong>(‘Emails Deleted’)<br>    mail.close()<br>    mail.logout()<br>    <strong>return</strong></pre><p>You can find the code from below mentioned link:</p><p><a href="https://github.com/pujasc/SecretSanta">pujasc/SecretSanta</a></p><p>Merry Christmas!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56bfd8828bcb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Would you fall in love, if you didn’t know about it?]]></title>
            <link>https://chandelsinghpuja.medium.com/would-you-fall-in-love-if-you-didnt-know-about-it-8a518dddcc83?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a518dddcc83</guid>
            <category><![CDATA[love]]></category>
            <category><![CDATA[romanticism]]></category>
            <category><![CDATA[relationships]]></category>
            <category><![CDATA[romance]]></category>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Mon, 08 Feb 2021 18:44:50 GMT</pubDate>
            <atom:updated>2021-02-08T18:44:50.424Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*u0WKjazF0gsownb-fnf06A.jpeg" /><figcaption>kissing in the rain</figcaption></figure><p>Yes, You read it right. Even though a true romantic would portray it as something spontaneous(like you were not looking but you just found it ), I wonder if that really is the case here or is it just a strong advertisement.</p><p>I received a promotional email from a major airline with the headline line “<em>Love is in the Air!!!</em>”.It’s valentine&#39;s week, the perfect time to observe the effects of romanticism as the frequency of related activities increases over social media platforms even though we have been having a continuous dose of romanticism most of our lives. What began in the mid 18th century in works of literature and art has swiftly swept into our psyche impacting how we tend to feel and look at nature, love, sex, children, relationships, and the world in general.</p><p>So what is Romanticism, how is it related to love or marriage?</p><blockquote><em>Romanticism feeds on the sense of strong emotions, feelings, the awe of nature, it emphasizes a strong perception of self, reliance upon one’s imaginative faculties, and the investment of Nature with symbolic and quasi-religious significance.</em></blockquote><p>In simple words, <strong>Love is the admiration of a person’s worthy traits, acceptance of difficult ones while romance is the idea of flawless sweet/grand gestures</strong> (often sold to us in the packaging of a relationship). Marriage is rather a simple concept of partnership for a reason which romanticism has used vividly to spread its wings. Given the liberation of societal roles and independence, romanticism seems to be one of the reasons for marriage now.</p><p>Romanticism promotes some unhealthy expectation which must be checked to actually have a loving and nurturing relationship. Here are few standards that mostly seem unrealistic</p><ol><li><strong>The idea of the soulmate</strong>: This is like the central theme of most of the stories, fiction, or real lives around us. Someday somewhere (probably on a train 😆) you would find that someone, that someone who you know nothing about would somehow light up your world or break the melancholy.</li></ol><p>2. <strong>“And she just gets it”: </strong>Almost all romantic narratives are guilty of promoting insane communication standards, somehow the love of your life must know how you feel without you using any words.</p><p>3. <strong>The idea of change is criticized:</strong> Often the conversation of change is portrayed as a dying relationship, after all your partner is expected to accept you with all your flaws, isn’t it?</p><p>4. <strong>Sex needs to be always satisfying</strong></p><p>5. <strong>Never be attracted to anyone else: </strong>Well adultery is a big subject and relationships tend to become complicated with it. Attractions/Infatuations forks the roads one leads to honesty other towards your existing romantic bubble.</p><p>6. <strong>All-in-One kind of love: </strong>Romanticism sells the idea of the perfect partner as someone who is<strong> </strong>your<strong> </strong>lover — best friend — soul mate — co-parent — co-chauffeur — spiritual guide — co-accountant — household manager and even personal photographer nowadays.</p><p>These were just a few points on top of my mind right now. It is interesting to observe though that we can actually find expected behaviors of all possible romance scenarios through videos, memes, movies, or any other form of artistic work!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a518dddcc83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ikigai: The Japanese Secret to a Long and Happy Life]]></title>
            <link>https://chandelsinghpuja.medium.com/ikigai-the-japanese-secret-to-a-long-and-happy-life-9a0268b19148?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a0268b19148</guid>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[ikigai]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[book-recommendations]]></category>
            <category><![CDATA[book-review]]></category>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Wed, 13 Jan 2021 17:42:14 GMT</pubDate>
            <atom:updated>2021-01-13T17:42:14.937Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0kFGOeku4n4WivrlylUJw.jpeg" /></figure><p>Ikigai, the book has been in buzz for quite some time now, so I finally read it. It turned out to be a very stimulating book. The book explores the lifestyle of people to apprehend longevity in certain parts of the world, it highlights some interesting psychological studies. Although Okinawa’s longevity cannot be substantiated, I would like to share a couple of points that really hit me!</p><p><strong>The happiness of being busy</strong>: Most of the centenarians are active till the very end. The concept of retirement was once alien to most of the eastern cultures. The idea here is to have goals objectives and once you actually start working lose yourself in it, be present in just that moment. There would be no worries of past or fear of future or no expectations just a blissful moment of being in that moment.</p><p><strong>Ikigai is the reason we get up in the morning.</strong> <strong>A reason for being.</strong></p><p><strong>Getting conscious of the self</strong>: I am not talking about the consciousness of how people or you yourself perceive you but rather studying your reactions, your behavior can bring forward many questions and might even some answers. Be conscious of your daily routine in order to detect harmful habits and replace them with more positive ones. Be conscious to turn off the autopilot mode.</p><p><strong>Beyond Resilience — Antifragility</strong>: Resilience is basically to withstand harm without weakening while antifragility to get stronger when harmed. As the story of the monkey king- Vaali portrays, Vaali was blessed with the ability to obtain half the strength of his opponent. Well in modern terminology, I can relate it with an airplane crash or with reinforcement learning. A lot of efforts and resources are spent on Aircrash investigations to build from the failure and making the next model much better.</p><p>There are a lot of reminders to the simple everyday stuff we hear and then correlates it to the idea of ikigai or a meaningful life. Having a good diet- antioxidants, healthy socializing, the feeling of being part of a community, the role of limited stress, challenges, growth, creating rituals/ practicing for excellence, meditation, taking care of your body there are innumerous tips for a healthy work-life balance, to find your passion your ikigai.</p><p><strong>Conclusion:</strong></p><p>We as humans need randomness, mess, adventures, uncertainty, self-discovery, hearing traumatic episodes but we also need rituals or routines, simplicity, attention to detail, concentrating on a single task, all these make life worth living.<strong> It’s like yin and yang!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a0268b19148" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seven lives]]></title>
            <link>https://chandelsinghpuja.medium.com/seven-lives-8eea516cbfbf?source=rss-3419e82de4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8eea516cbfbf</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[reset]]></category>
            <category><![CDATA[the-good-place]]></category>
            <category><![CDATA[dreams]]></category>
            <dc:creator><![CDATA[Puja Singh]]></dc:creator>
            <pubDate>Wed, 23 Oct 2019 17:33:26 GMT</pubDate>
            <atom:updated>2019-10-23T17:33:26.937Z</atom:updated>
            <content:encoded><![CDATA[<h3>Seven Lives</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kcHTNRh4oNF6996eHpMpXA.jpeg" /></figure><p>Recently I finished watching “The Good Place” series on Netflix. The show has a whimsical portrayal of moral and ethical ideologies. What caught my interest was how the architect had a simple objective to make an “After Life destination” where the humans would torture each other for about 1000 years. His plan would fail every time so he would just reset their memory of the afterlife and create another neighborhood.</p><p>Inspired by this I attempted this simple exercise that might help understand one’s career objectives. The rules of this exercise are simple:</p><ul><li>You have seven lives.</li><li>You must work in all seven of these lives.</li><li>You possess all the skills and education required to perform each job.</li><li>However much money you need to make to be happy, you make it.</li><li>Every job has equal prestige.</li><li>Based on these rules, make a list of the seven jobs you’d hold.</li></ul><ol><li>Data Scientist with a specialization in NLP where I get to solve different text related challenges. Why confine to text, you may ask? Most of the text we encounter is tied up with their context. It is amazing how the same <em>Shloka </em>or <em>slang </em>presents varied picture depending on the tone, context or even the political/social times.</li><li>Machine Learning Engineer/Statistician. I would be analyzing and proving how people’s past, their learnings enable them to make judgments and the ripple effect of these judgments. I would explore the Chaos Theory.</li><li>University Professor because I fancy igniting young minds with the right questions (assuming I will have the skills this profession demands)</li><li>Indian Foreign Officer. This one i feel is generic to most all the people from Bihar. An IAS or IPS is a very respected officer and in some villages, he is treated as supreme. Power and prestige with the will and determination to lead are very lucrative.</li><li>Lead an Agricultural startup. Well, Startup is just a fancy word i like to imagine myself staying at <em>Dhobghat, </em>my village and have a hi-tech agricultural and plantation business.</li><li>Own a restaurant: Good food, great ambiance. A homely neighborhood people would just love to hang.</li><li>Event organization: As a college student I have organized a few events and it was fun, meeting lots of new interesting people, procuring all the logistics, ensuring everything is at the place.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8eea516cbfbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>