<?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 Vivek Singh on Medium]]></title>
        <description><![CDATA[Stories by Vivek Singh on Medium]]></description>
        <link>https://medium.com/@veeevek?source=rss-83ded84b6eff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*B04w2gzeaa2wxPwfBbTJFA.png</url>
            <title>Stories by Vivek Singh on Medium</title>
            <link>https://medium.com/@veeevek?source=rss-83ded84b6eff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:40:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@veeevek/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[OpenAI Completion API]]></title>
            <link>https://veeevek.medium.com/openai-completion-api-7d506668c591?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d506668c591</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[prompt]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 07:34:58 GMT</pubDate>
            <atom:updated>2024-10-21T11:44:26.996Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*bPEQplcL8JN60UFCvuNS_A.jpeg" /><figcaption>generated by DeepAI</figcaption></figure><p>OpenAI’s completion API is a service that allows developers to integrate language models into their applications. It uses advanced AI models, such as GPT-3, GPT-4, or other versions, to generate natural language text based on user-provided prompts or instructions. The API takes an input prompt and returns a continuation or “completion” of the text, making it useful for various tasks, including:</p><ol><li><strong>Text Generation</strong>: Creating human-like text based on a given prompt, such as writing essays, articles, or stories.</li><li><strong>Summarization</strong>: Condensing large pieces of text into shorter, meaningful summaries.</li><li><strong>Chatbots and Virtual Assistants</strong>: Powering conversational interfaces that understand and respond to user queries.</li><li><strong>Code Generation and Debugging</strong>: Helping developers write code or identify issues in existing code.</li><li><strong>Text Classification</strong>: Categorizing text, such as identifying sentiment, spam detection, or other classification tasks.</li><li><strong>Data Extraction</strong>: Pulling structured information from unstructured text, such as extracting dates, names, or other details.</li></ol><p><strong>Using this API</strong></p><pre>import requests<br><br># Set up the API key and endpoint<br>api_key = &#39;YOUR_OPENAI_API_KEY&#39;<br>url = &#39;https://api.openai.com/v1/completions&#39;<br><br># Define the prompt<br>prompt = &quot;Explain the significance of the Apollo 11 mission.&quot;<br><br># Set up the request headers and payload<br>headers = {<br>    &#39;Authorization&#39;: f&#39;Bearer {api_key}&#39;,<br>    &#39;Content-Type&#39;: &#39;application/json&#39;<br>}<br><br>data = {<br>    &#39;model&#39;: &#39;text-davinci-003&#39;,  # You can use other models like &#39;gpt-4&#39; if available<br>    &#39;prompt&#39;: prompt,<br>    &#39;max_tokens&#39;: 100,  # Limits the length of the generated response<br>    &#39;temperature&#39;: 0.7, # Controls randomness (higher value = more creative response)<br>    &#39;n&#39;: 1,             # Number of completions to generate<br>}<br><br># Make the API request<br>response = requests.post(url, headers=headers, json=data)<br><br># Extract and print the generated response<br>if response.status_code == 200:<br>    completion = response.json().get(&#39;choices&#39;)[0].get(&#39;text&#39;).strip()<br>    print(f&quot;Generated Response: {completion}&quot;)<br>else:<br>    print(f&quot;Error: {response.status_code}, {response.text}&quot;)</pre><p><strong>Points to remember</strong></p><ol><li>A low setting of the temperature value will ensure a more consistent and deterministic output.</li><li>When building generative applications with OpenAI, especially those that involve interacting with multiple users concurrently, it’s important to maintain separate conversation contexts for each user. This approach helps in managing the interactions and responses effectively, ensuring that each user’s context remains isolated and coherent throughout the conversation.</li><li>Context windows represent the maximum length of text that can be handled by the LLM in a single API call. Different LLMs have varying context windows due to the methodology and the datasets used for training the model.</li></ol><p><strong>References</strong></p><p><a href="https://platform.openai.com/docs/api-reference/introduction">https://platform.openai.com/docs/api-reference/introduction</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d506668c591" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is attention mask when we tokenize documents during model training?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://veeevek.medium.com/what-is-attention-mask-when-we-tokenize-documents-during-model-training-dc52aa24dea5?source=rss-83ded84b6eff------2"><img src="https://cdn-images-1.medium.com/max/600/1*iTI4IB034veYZWdwExJ48Q.jpeg" width="600"></a></p><p class="medium-feed-snippet">An attention mask is a mechanism used during model training, particularly in transformer-based models (like BERT, GPT, etc.), to&#x2026;</p><p class="medium-feed-link"><a href="https://veeevek.medium.com/what-is-attention-mask-when-we-tokenize-documents-during-model-training-dc52aa24dea5?source=rss-83ded84b6eff------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://veeevek.medium.com/what-is-attention-mask-when-we-tokenize-documents-during-model-training-dc52aa24dea5?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc52aa24dea5</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[tokenization]]></category>
            <category><![CDATA[genarative-ai]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Sun, 20 Oct 2024 09:30:48 GMT</pubDate>
            <atom:updated>2024-10-20T09:33:53.056Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Am I Living or Just Passing Time?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://veeevek.medium.com/am-i-living-or-just-passing-time-dfe8bc7da2d0?source=rss-83ded84b6eff------2"><img src="https://cdn-images-1.medium.com/max/2600/1*iob5Gg4YMByP_y-4SRs6RA.jpeg" width="3024"></a></p><p class="medium-feed-snippet">Life can often feel like a blur, where days blend into one another, and routines take over. At some point, many of us pause and ask&#x2026;</p><p class="medium-feed-link"><a href="https://veeevek.medium.com/am-i-living-or-just-passing-time-dfe8bc7da2d0?source=rss-83ded84b6eff------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://veeevek.medium.com/am-i-living-or-just-passing-time-dfe8bc7da2d0?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfe8bc7da2d0</guid>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[self-help]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 10:19:05 GMT</pubDate>
            <atom:updated>2024-10-18T10:19:05.677Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Am I Living? Or Just Passing Time?]]></title>
            <link>https://veeevek.medium.com/am-i-living-or-just-passing-time-2ae123b152d1?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ae123b152d1</guid>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[self-help]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 07:36:26 GMT</pubDate>
            <atom:updated>2024-10-21T05:04:39.657Z</atom:updated>
            <content:encoded><![CDATA[<p>i want to live genuinely . . . .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*6O0IVAZN2z913u3CiW-9rg.jpeg" /><figcaption>Generated by Deep AI model</figcaption></figure><p>“Life is meant to be lived” — they said. But no one really tells how to live properly; when genuine happiness is seen in your eyes — no one really tells how to live, not just survive.</p><h3><strong>How do you live ? Not just passing time.</strong></h3><p>When did the days become this dull? When did my life just become wanting to end the day? When did my life became full with problems I didn’t even notice?</p><p><strong>I want to live.</strong></p><p>I want to live my life to the fullest, maximize my time. I want my laugh to fill the room again, I want to be someone who’s filled with hope, I want to be someone who is looking forward to tomorrow, not someone who waits for the end of the day.</p><p>Life is meant to be lived.</p><p>Life is not about rotting in your bed, being on your phone all day, or eat and sleep all the time. Life is about doing what makes you happy, and that would help you to live, not just to pass time. You have to surround yourselves with people you want to be with, with the people that can embrace you and make you feel that you are wanted. You have to put your self into the world, don’t be afraid.</p><p>As I grew older, positivity is not the key to surviving the day; it’s acceptance — accepting that we have good and bad days, you can fail, you can mess up, it’s okay. Accepting is what brings you peace.</p><p>I know making a change in your life is hard, It’s scary when things change, but it’s even scarier when things just stay the same.</p><p>Life is hard to live when you know there’s someone who’s keeping an eye on you all the time, maybe that’s the reason why we don’t live properly. Live, it’s your life, you can do anything in your life; you’re writing a story, not serving a death sentence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ae123b152d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[what do you really want from life?]]></title>
            <link>https://veeevek.medium.com/what-do-you-really-want-from-life-50ce0f3a7494?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/50ce0f3a7494</guid>
            <category><![CDATA[self]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[friends]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Sun, 04 Aug 2024 18:06:14 GMT</pubDate>
            <atom:updated>2024-08-04T18:06:14.453Z</atom:updated>
            <content:encoded><![CDATA[<p>This story revolves around two people who want the same thing but pursue it in different ways. It is the tale of two friends who meet once a year over a beer. They made this pact when they were 16, and now, 12 years later, they met again just two days ago. As time passed, their discussions grew more intense, eventually revealing the boundaries and thoughts each had about life. I was luckily with them sharing a beer. Here is my take on them (as their mutual friend)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*MKnRpO_mk3obpgXK_4Zc8A.png" /><figcaption>Vedant and Bunny</figcaption></figure><p><strong>Vedant :</strong></p><p>Vedant is someone who struggles to understand how society works. He yearns to go out, shout, and cry in the wilderness. He wants to be in nature, present in the moment, playing with birds and mountain dogs. He wants to, but he can’t. He is frightened and calculative about his actions. He thinks about the future, tries to understand society, and blends in every day, though with a little regret every other week over the possibilities of what could have been. He is searching for joy and wants a meaningful life. While he likes the idea of leaving it all behind for an adventurous life like Bunny’s, he knows it might be fun for a while but not fulfilling in the long run. He is fascinated by the idea of living outside societal norms and occasionally ventures out to experience it. He is someone who is calculative, not too biased about his ideas, morals, and beliefs. You’d find him questioning everything. He is someone who is very curious and likes to read and study human psychology. He admires Bunny’s life but never complains about his own. Deep down, he knows he isn’t cut out to live in the mountains and wander like a nomad. He accepts that his place is in the daily routine, being happy with what he has and does. He wants to be happy, work, earn, grow in life, and come home every day to his loved ones. He knows he is privileged and has come to understand society and its people. He is now among them.</p><p><strong>Bunny</strong></p><p>Bunny is always restless, wanting more. He seeks thrill, madness, and fun, aiming to fly high. He dreams of running away to distant lands(as if he is not already distant), falling and failing. He never wants to stop. He goes with the flow and defies logic, pursuing his dreams. The thought of spending his life in one city, one house, and one room terrifies him. He wants to live life to the fullest and fulfill all his dreams as if each day were his last. He wants to explore every corner of the world. I remember him saying, “That mountain fascinates me a lot. I always wonder what’s beyond it.” He wants to go to the mountains and experience the Himalayas. He isn’t meant to stay at home; he’s always looking to cross rivers, roam in jungles, and dance in the mountains. He doesn’t have a family or many friends but has countless stories of the people he meets temporarily, all vivid. When he’s lonely in the wild, he longs for the things Vedant has. He honestly admits that he wants to be loved and surrounded by people who genuinely care for him, and vice versa. He questions the rationale behind the concept of family, yet is interested in pursuing it someday. However, he is frightened by the idea of having a family, as he worries he may not be cut out for it. Having spent so much time in the wild, he often speaks negatively about society and its people. Understanding Bunny can be very challenging at times. His ideas are his beliefs, and trying to convince him of anything contrary to his thoughts may not be worth the effort.</p><p>After spending days and having multiple conversations with Vedant and Bunny, you’ll find that Bunny is more emotional and giving, which is surprising given their personalities. Both are interested in seeing more and doing more things. Vedant balances societal norms with his adventurous spirit, possibly prioritizing societal workings more. Bunny, on the other hand, lives freely in the wild, on his own terms, unbound by anything. Both have chosen their paths and are clear about how they want to live their lives.</p><p><em>The question you should ask yourself is, what do you want, and how do you want to go about achieving it?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50ce0f3a7494" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is authenticity transient?]]></title>
            <link>https://veeevek.medium.com/is-authenticity-transient-f2a6681fc6bc?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2a6681fc6bc</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[authenticity]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[discover-yourself]]></category>
            <category><![CDATA[self-awareness]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Wed, 31 Jul 2024 18:38:37 GMT</pubDate>
            <atom:updated>2024-07-31T18:38:37.458Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is your authentic self? Are you the same self all the time?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*poGW9LnKwFrYPrDv8rD3UQ.png" /></figure><p>Our thoughts, perceptions, perspectives, minds, and hearts are all evolving. The definition of I — “Who am I ? ” isn’t fixated. We change and change is the only constant.</p><p>We always evaluate things based on our current understanding of the world. This worldview we have created is based on our personality, values, and beliefs. I was not too fond of a series until I watched it. I had to watch The Office twice to like it. I never thought I would do a 9–5 job. I never thought I would think of buying a place. I always wanted to be a nomad. Times changed. My opinions changed. The common metrics I had to evaluate people and things, changed. Are you exactly the way you thought of yourself to be 5 years back? Do you have a roadmap to the next 5 years?</p><p>Don’t we act differently when nobody’s watching when we’re free from the eyes of judgment? I know a story that illustrates this: we often speak rudely to our relatives and loved ones, yet we converse with strangers and in formal meetings with utmost sweetness. Why is that? It’s because we fear judgment from outsiders, while within our family, that fear doesn’t exist. The point is <em>we change</em>, the tone in which we talk, our walk and expressions, and even our eyes and clothes everything that defines our personality.</p><p>All in all the definition of “Authenticity is transient” makes sense. The quality of being genuine and true is not permanent, it changes with time. What feels authentic to you at some point in your life might not hold at some other time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2a6681fc6bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Skywalking and Springboot integration]]></title>
            <link>https://veeevek.medium.com/skywalking-and-springboot-integration-3579f7ec4944?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/3579f7ec4944</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[tracing]]></category>
            <category><![CDATA[apache-skywalking]]></category>
            <category><![CDATA[telemetry]]></category>
            <category><![CDATA[skywalking]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Thu, 22 Feb 2024 04:54:44 GMT</pubDate>
            <atom:updated>2024-10-20T09:43:51.913Z</atom:updated>
            <content:encoded><![CDATA[<p>Git Link : <a href="https://github.com/Viveksingh1313/skywalking-springboot-poc">https://github.com/Viveksingh1313/skywalking-springboot-poc</a></p><p>ReadMe file has been updated with all the details of how to run the application.</p><p><strong><em>Screenshots from skywalking dashboard :</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XncUc04o4cepWThI50YZWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3aQ-c1DqxOfzrA6IDwm9iw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2otGhW8qHzc_6_9NxvGKTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHhuIwoTg7r6RkiBUFZxGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTN4qW44XXl9pgmvfEhc7g.png" /></figure><h3>Theoretical concepts and code explanations</h3><p><strong>Components in Skywalking architecture :</strong></p><p><strong>Skywalking agent</strong> : An agent is a lightweight library which is embedded into the application you want to monitor. It collects telemetry data such as traces, metrics, and other performance related information from the application and sends the data to OAP collector.<br>We have a separate directory called skywalking-agent in the project which acts as the Java agent. You will have language specific agents based on your choice of language like Python, Go.</p><p><strong>Skyalking OAP</strong> : OAP stands for Observability Analysis Platform. OAP server or collector is the core component of Skywalking backend. It will receive the data sent by Skywalking agent. It is responsible for data processing, aggregation, storage, and querying. It also provides APIs for querying the trace data.</p><blockquote><em>In summary, the agent is responsible for collecting data from the application, while the OAP server is responsible for storing, processing, and serving this data for analysis and visualization purposes.</em></blockquote><p><strong>Skywalking DB</strong> : DB is used to store the data produced by your application using a skywalking agent. OAP server is responsbible to connect to the DB and perform all CRUD operations on DB.</p><p><strong>Skywalking UI</strong> : The UI is a web-based interface for querying and visualizing data stored in Elasticsearch(using OAP server). You need to deploy the SkyWalking UI and configure it to connect to OAP server which then internally connects to ElasticSearch to make queries.</p><p>We use a docker-compose file to start OAP server, ElasticSearch DB, and Skywalking UI. (You will find the code inside docker-compose directory)</p><pre><br>version: &#39;3.8&#39;<br>services:<br>  elasticsearch:<br>    image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.4.2<br>    container_name: elasticsearch<br>    ports:<br>      - &quot;9200:9200&quot;<br>    healthcheck:<br>      test: [ &quot;CMD-SHELL&quot;, &quot;curl --silent --fail localhost:9200/_cluster/health || exit 1&quot; ]<br>      interval: 30s<br>      timeout: 10s<br>      retries: 3<br>      start_period: 10s<br>    environment:<br>      - discovery.type=single-node<br>      - bootstrap.memory_lock=true<br>      - &quot;ES_JAVA_OPTS=-Xms512m -Xmx512m&quot;<br>    ulimits:<br>      memlock:<br>        soft: -1<br>        hard: -1<br><br>  oap:<br>    image: apache/skywalking-oap-server:9.7.0<br>    container_name: oap<br>    depends_on:<br>      elasticsearch:<br>        condition: service_healthy<br>    links:<br>      - elasticsearch<br>    ports:<br>      - &quot;11800:11800&quot;<br>      - &quot;12800:12800&quot;<br>    healthcheck:<br>      test: [ &quot;CMD-SHELL&quot;, &quot;/skywalking/bin/swctl ch&quot; ]<br>      interval: 30s<br>      timeout: 10s<br>      retries: 3<br>      start_period: 10s<br>    environment:<br>      SW_STORAGE: elasticsearch<br>      SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200<br>      SW_HEALTH_CHECKER: default<br>      SW_TELEMETRY: prometheus<br>      JAVA_OPTS: &quot;-Xms2048m -Xmx2048m&quot;<br><br>  ui:<br>    image: apache/skywalking-ui:9.7.0<br>    container_name: ui<br>    depends_on:<br>      oap:<br>        condition: service_healthy<br>    links:<br>      - oap<br>    ports:<br>      - &quot;8080:8080&quot;<br>    environment:<br>      SW_OAP_ADDRESS: http://oap:12800<br>      SW_ZIPKIN_ADDRESS: http://oap:9412</pre><p><strong>How does Skywalking create same traceId across all microservices for an endpoint call?</strong></p><p>Quite simple and logical. Whenever you invoke any endpoint in your application, skywalking creates a traceId for the endpoint. This traceId is then attached to the headers, and as the endpoint traverses through your microservices, the traceId is retrieved from the headers and used for different purposes to collect the data.</p><p><strong>Steps to start the application</strong></p><p>1 ./docker-compose docker-compose -f skywalking.yml up</p><p>2. gradle :zull-gateway:bootRun<br>3. gradle :user-service:bootRun</p><p>As an addition step, you can import the postman collection provided in root folder to your postman application. After this hit the endpoint for skyalking to have data collected.</p><pre>curl --location &#39;http://localhost:9080/demo/api/user&#39; \<br>--header &#39;token: test&#39; \<br>--header &#39;Content-Type: application/json&#39; \<br>--data &#39;{<br> &quot;name&quot;: &quot;test320&quot;<br>}&#39;<br><br>curl --location &#39;http://localhost:9080/demo/api/user&#39; \<br>--header &#39;token: test&#39;<br></pre><p>If you don’t want to use postman, call above 2 endpoints multiple timses, for skywalking dashboard to show data.</p><p><strong><em>Hit localhost:8080 to visualize data on skywalking UI</em></strong></p><p>As of now this application works on Java 11/Java 17.</p><p>We are using 2 additional libraries of skywalking in this project:</p><pre> implementation &#39;org.apache.skywalking:apm-toolkit-trace:9.1.0&#39;<br> implementation &#39;org.apache.skywalking:apm-toolkit-logback-1.x:9.1.0&#39;</pre><p><strong>toolkit-trace : </strong>The @TraceCrossThread annotation in Apache SkyWalking is used to mark a method or function to be traced across different threads. In a distributed system, an operation may span multiple threads, especially in asynchronous or multi-threaded environments. When using SkyWalking for distributed tracing, it’s crucial to ensure that the entire operation, even if executed across multiple threads, is traced as a single logical unit. By annotating a method or function with @TraceCrossThread, you instruct SkyWalking to trace the execution of that method across different threads. This ensures that the entire operation is captured and correlated properly in the distributed trace. The entire operation will be traced against a unique specific spanId. There are more use cases in this library. This is just one.</p><p><strong>apm-toolkit-logback : </strong>Designed for integrating SkyWalking’s distributed tracing capabilities with Logback, which is a logging framework for Java. With the library and configuration in place, your application’s logs will be automatically instrumented to include tracing information provided by SkyWalking. You will have to use appenders provided by skywalking in your logback.xml file(Please check this in github application provided).</p><p>Please feel free to reach out to me @vivek.sinless@gmail.com or connect me on <a href="https://www.linkedin.com/in/vivek-singh-a109b511a/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3579f7ec4944" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exporatory Data Analysis Using Python Pandas]]></title>
            <link>https://veeevek.medium.com/exporatory-data-analysis-using-python-pandas-bea81a68e83a?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/bea81a68e83a</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[eda]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Tue, 14 Nov 2023 08:20:56 GMT</pubDate>
            <atom:updated>2023-11-14T08:20:56.246Z</atom:updated>
            <content:encoded><![CDATA[<p>Repository Link : <a href="https://github.com/Viveksingh1313/LendingClubCaseStudy">https://github.com/Viveksingh1313/LendingClubCaseStudy</a></p><p>Google collab : <a href="https://colab.research.google.com/drive/12s8oBX9N87ZrFASqdiVXWWT8BHPfzlSP?usp=drive_link">https://colab.research.google.com/drive/12s8oBX9N87ZrFASqdiVXWWT8BHPfzlSP?usp=drive_link</a></p><p>The repository has 3 files :</p><ol><li><a href="https://github.com/Viveksingh1313/LendingClubCaseStudy/blob/master/Vivek_Kumar_Singh.ipynb">Vivek_Kumar_Singh.ipynb</a> :- Has the coding python notebook file</li><li><a href="https://github.com/Viveksingh1313/LendingClubCaseStudy/blob/master/Vivek_Kumar_Singh.pptx">Vivek_Kumar_Singh.pptx</a> :- Has the ppt about the project and analysis of data</li><li><a href="https://github.com/Viveksingh1313/LendingClubCaseStudy/blob/master/README.md">README.m</a>d :- Has details on what the project is trying to solve.</li></ol><p><strong>Technologies and libraries used </strong>: matplotlib, seaborn, pandas, Python, google collab</p><p><strong>Project Question</strong> : We have been given a loan dataset with multiple columns. There is an online lending company which is trying to reduce it’s credit loss. Applicant applies for loan, and this project has to come with deductions/conclusion whether to approve the loan or not. Credit loss is the amount of money a company loses, if the person/applicant does not pay the loan amount. If we approve the loan for an applicant, which is likely to be a defaulter(not pay the loan), then it’s a loss to the company, similarly if we don’t approve the loan for an applicant who is likely to pay the loan, then it’s a loss.<br>There are three types of loan status in this csv file : Fully Paid, Charged Off, Current.</p><p>Full Paid : One who has paid the loan amount<br>Charged Off : One who is a defaulter. Has not, and will not pay the loan.<br>Current : One who is paying the loan, but yet not paid the entire loan.</p><p><strong>Objective : </strong>We have to find the columns/variables which directly affects loan status column<strong>. </strong>To be more precise we have to find variables which has a high relation to an applicant being a defaulter.</p><p><strong>Approach to solve this</strong></p><ol><li>Import the dataset.</li><li>Go through the dataset in excel, and figure out the columns which can’t affect loan_status column. Remove those columns</li><li>Find null values. Remove columns which has more than 90% of null values.</li><li>Remove duplicate rows.</li><li>Change the data type of columns according to understanding</li><li>Filter out columns . Examples — filter date to day, month and year columns. Remove % from interest_rate columns, etc etc.</li><li>Start analysing the data.</li><li>Do a univariate analysis</li><li>Do a bivariate analysis.</li></ol><p>That’s it.</p><p><strong>What’s a univariate analysis?</strong></p><p>This type of data consists of <strong>only one variable</strong>. The analysis of univariate data is thus the simplest form of analysis since the information deals with only one quantity that changes. It does not deal with causes or relationships and the main purpose of the analysis is to describe the data and find patterns that exist within it.</p><p><strong>What’s a bivariate analysis?</strong></p><p>This type of data involves <strong>two different variables</strong>. The analysis of this type of data deals with causes and relationships and the analysis is done to find out the relationship among the two variables. Example of bivariate data can be temperature and ice cream sales in summer season.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bea81a68e83a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Does it have to be the best?]]></title>
            <link>https://veeevek.medium.com/does-it-have-to-be-the-best-784bfb34e9aa?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/784bfb34e9aa</guid>
            <category><![CDATA[mindfulness-at-work]]></category>
            <category><![CDATA[thoughts]]></category>
            <category><![CDATA[self]]></category>
            <category><![CDATA[mindful]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Thu, 09 Nov 2023 07:25:34 GMT</pubDate>
            <atom:updated>2023-11-09T07:25:34.735Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Do you see patterns in your day to day working ? </strong>I used to be young and naive. Now I am young and a little less naive. I have started seeing patterns in my day to day working and how I work. There’s an approach to everything I do which could be different from any other individual, but it’s almost same everytime I do it. There’s a pattern we do things. Take any task, do it for 100 times, you would be amazed to find out that your approach almost remains the same. We have created this identity with a very strong belief system, which doesn’t break until we start looking at it from different angles. To come out of this identity, this pattern, we need a lot more than just contemplating about our own thoughts.</p><p>I have recently started taking a careful look at this thought of identity and patterns in thoughts I have. It’s like there’s two of me. One is constantly rushing through things, the life and daily action items, and the other one is sitting or walking with the rushful me as a shadow and listing things down on a piece of paper. This ‘other me’ is an observer, which sits quietly and observes things from a very close mirror.</p><p>So recently I have come to this realisation that most of the time the only thing blocking me from starting something is trying to be the best on that. The feeling of not doing something with my utmost intensity and expectation derails me. Hence there are things I don’t event try, because I know I have the capability to do it at the best of my ability, however because of different things on my plate I won’t be able to give enough time to this and hence the results would be mediocre. So, I don’t even try.</p><p><em>But. But. What if ? I just give it a try, I do mediocre things for a while and then it will come to me at a distant land and time in future? Correct ?</em></p><p>I then might take the same amount of mediocre time to do the same activity at the best of my abilities. Take for an example — this piece of article which I wrote. If I strive to be the best without even trying, would I ever be the best ? Don’t think so. I got to try, make a mess of these story telling, and may maybe one fine day you as a reader might actually be interested and read the entire piece I have written.</p><p>As I said, I have been contemplating, perceiving my own thoughts and actions through ‘the other me’ because ‘the me’ gets distracted a lot and ‘the me’ has got biased opinions and ‘the me’ is not used to talk about difficult things which questions my identity itself. So, ‘the other me’ — the shadow of me is helping me understand myself better. I got to be honest, I am not there yet because ‘the me’ takes over the shadow. It’s a process , it doesn’t come easily, I am on the journey to see through myself and understand this identity I have created. Maybe a few more drinks and age by my side , I will be better equipped to look, and tweak a few patterns I don’t like about the identity I have.</p><h4><em>Why let the idea of your identity restrict your perspective ?</em></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=784bfb34e9aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I know of no better life purpose than to perish in attempting the great and the impossible.”]]></title>
            <link>https://veeevek.medium.com/i-know-of-no-better-life-purpose-than-to-perish-in-attempting-the-great-and-the-impossible-6aa8f248f98b?source=rss-83ded84b6eff------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aa8f248f98b</guid>
            <category><![CDATA[peaky-blinders]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[nietzsche]]></category>
            <category><![CDATA[motivation]]></category>
            <dc:creator><![CDATA[Vivek Singh]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 04:20:35 GMT</pubDate>
            <atom:updated>2023-04-18T04:20:35.249Z</atom:updated>
            <content:encoded><![CDATA[<h3>I know of no better life purpose than to perish in attempting the great and the impossible.” — <strong>Friedrich Wilhelm Nietzsche</strong></h3><p><strong>Nothing good ever came being happy.</strong> Never really crossed the limit of what I was capable of being happy. Every time I have pushed through, pushed for more, pushed for when I almost gave up brought pain, not happiness. This push through process is when I actually crossed the limit I was capable of. Nothing good ever came being happy. Happiness will only give what you are already capable of and destined to get. Never really was interest in ordinary. Haven’t done much. Struggling with my own battles, but ordinary is what I never wanted. I have wanted to know myself, know what I am capable of. And when you test yourself by trial and testing, in pain and misery that’s when you learn and know a little more about yourself.</p><p>Feel content of what has been given to me ? — Oh yes for sure. I never doubt it. But that doesn’t mean it has come easy. It has taken stress, anxiety, fights and struggles, pain, no sleep, sweat &amp; tears to reach here . I<em>t hasn’t been given. It has been earned.</em></p><blockquote>Even if it was destined, it wasn’t meant to be for free. it was to be earned with respect and pain.</blockquote><p>I guess I have been happier recently because of whatever I have been given. <em>That’t not going to work. And it should not work</em>. You can never find and figure yourself out sitting in a room with peace. You need to cross what you haven’t crossed before. Fuck it. Get going.</p><pre>It took you time to get where you’re today and that’s how it’s going to be <br>for your next path. </pre><p>The pathless path was never meant to be easy. You decide what you’re capable of. You decide your path. You decide the pain you can endure. It is not gonna come easy. That is for sure. So rise up, do your deed and if it doesn’t work endure more pain. That’s when you find yourself. Not everyone has got a path infront of us, eh?</p><h4><strong>Maybe you &amp; I are same.</strong></h4><p>Just myself, talking to myself, about myself. Eh ? Nobody to share your thoughts with. You may be surrounded with people, but nobody willing to understand you. Eh ? Hurts ? Channelize that fucking energy and rise and do something about it. Nobody gets to decide what we are capable of. We fucking do. So go ahead and fuck it. Give it your all. There’ pain. There will be pain. Love the pain, love the process. Do it because you love it. Even if you don’t love it. Do it.</p><blockquote>Because you &amp; I — we don’t have an alternative.</blockquote><p>Maybe we are here to push the limits of ourselves and give it all and get nothing in return. Because we don’t care if we get the end result, but we are not quitters. We are survivors. We give it all. We are here to not compete with anyone else but ourselves. We are here to push our limits. You &amp; I we are the same.</p><blockquote>Nobody will never get to know these struggles, the pain we went throught but us.</blockquote><p>And it’s not fucking important because you &amp; I we are here to just do our deed, and do it with utmost pride and respect. So fuck it.</p><blockquote>I know of no better life purpose than to perish in attempting the great and the impossible.”</blockquote><blockquote>― <strong>Friedrich Wilhelm Nietzsche</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aa8f248f98b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>