<?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 VENKATRAMAN BEHERA on Medium]]></title>
        <description><![CDATA[Stories by VENKATRAMAN BEHERA on Medium]]></description>
        <link>https://medium.com/@venkatramanbehera1?source=rss-2c3b17f3e58f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6N1xkg6GmP4ypmZ5F7CGOA.jpeg</url>
            <title>Stories by VENKATRAMAN BEHERA on Medium</title>
            <link>https://medium.com/@venkatramanbehera1?source=rss-2c3b17f3e58f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:12:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@venkatramanbehera1/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[Understanding Embedding]]></title>
            <link>https://medium.com/@venkatramanbehera1/understanding-embedding-db75b7f080b4?source=rss-2c3b17f3e58f------2</link>
            <guid isPermaLink="false">https://medium.com/p/db75b7f080b4</guid>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[embedding]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[VENKATRAMAN BEHERA]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 08:47:16 GMT</pubDate>
            <atom:updated>2026-03-11T08:47:16.393Z</atom:updated>
            <content:encoded><![CDATA[<p>Simply the numerical representation of text in high dimensional space. Numerical vector representations of data (text, images, audio, or entities) that capture semantic meaning and relationships in a low-dimensional space.</p><p>lets understand using coding how the same meaning words are align in a same space.</p><pre>import os<br>from dotenv import load_dotenv<br><br>load_dotenv()<br>from openai import OpenAI<br><br>client = OpenAI()<br>texts = [&quot;Agentic AI&quot;, &quot;Autonomous agents&quot;, &quot;Bananas are yellow&quot;, &quot;Agent&quot;, &quot;cricket&quot;, &quot;yellow&quot;]<br><br>embeddings = []<br><br>for text in texts:<br>  resp = client.embeddings.create(<br>    model=&quot;text-embedding-3-small&quot;,<br>    input=text<br>  )<br>  vector = resp.data[0].embedding<br>  embeddings.append(vector)<br>  print(f&quot;{t} → vector length {len(vector)}&quot;)</pre><p>output looks like</p><pre>Agentic AI → vector length 1536<br>Autonomous agents → vector length 1536<br>Bananas are yellow → vector length 1536<br>Agent → vector length 1536<br>cricket → vector length 1536<br>yellow → vector length 1536</pre><p>Now lets plot the diagram to find out the how the similar words are align together.</p><pre>import matplotlib.pyplot as plt<br>from sklearn.decomposition import PCA<br><br>pca = PCA(n_components=2)<br>points = pca.fit_transform(embeddings)<br><br>plt.figure(figsize=(6,6))<br>for i, txt in enumerate(texts):<br>    plt.scatter(points[i,0], points[i,1])<br>    plt.text(points[i,0]+0.02, points[i,1]+0.02, txt)<br> <br>plt.title(&quot;Embedding Visualization (PCA 2D)&quot;)<br>plt.show()</pre><p>and the output looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*wOdSfgp7gmSv6y_t7pnisQ.png" /></figure><p><strong>Conclusion :</strong></p><p>same name like agent , agentic ai, autonomous agent are align in same line and vectors are some how similar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db75b7f080b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Push the Rails-based docker image to the Docker hub]]></title>
            <link>https://medium.com/@venkatramanbehera1/push-the-rails-based-docker-image-to-the-docker-hub-d3628926ec0d?source=rss-2c3b17f3e58f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3628926ec0d</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[configuration]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[dockerhub]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[VENKATRAMAN BEHERA]]></dc:creator>
            <pubDate>Sun, 17 Mar 2024 13:15:05 GMT</pubDate>
            <atom:updated>2024-03-17T13:15:05.604Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vlO4K5QER4ksN1oRgi751g.png" /></figure><p>Step 1. <br>Build the docker application using the below command. it will generate an image in your terminal.</p><pre>docker build -t &lt;app_name&gt; .</pre><figure><img alt="docker image details" src="https://cdn-images-1.medium.com/max/1024/1*aDhlnaO3F60cn05yJ5tLkw.png" /></figure><p>Step 2.<br>Then login to the docker using the below command in the terminal.</p><pre>docker login</pre><p>after that you have to give the credentials if it is a success it will look like below image.</p><figure><img alt="sucess login" src="https://cdn-images-1.medium.com/max/1024/1*ece8p9wSSICRPs7HlMHGPQ.png" /></figure><p>Step 3.<br>Tag the previously generated image using the bellow command.</p><pre>docker tag &lt;docker_image_id&gt; &lt;username_of_docker_hub&gt;/&lt;repo_name&gt;:&lt;tag_name&gt;</pre><pre>docker tag sha256:671778bfb467fe3299dd60729f3fe37264e66b456df715b7575f9a8b519f9aef venkatramanbehera/kirna_bhandar:kirana</pre><p>Step 4.<br>After that push that image to the docker hub, using the below code.</p><pre>docker push &lt;username_of_docker_hub&gt;/&lt;repo_name&gt;:&lt;tag_name&gt;</pre><pre>docker push venkatramanbehera/kirna_bhandar:kirana</pre><p>This command will push the code to the docker hub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bP68adXDU6hLy06cdrsjfg.png" /></figure><p>Thank you and happy coding ):.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3628926ec0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fake Binary In SQL( codewars.com)]]></title>
            <link>https://medium.com/@venkatramanbehera1/fake-binary-in-sql-codewars-com-abfea4d6b721?source=rss-2c3b17f3e58f------2</link>
            <guid isPermaLink="false">https://medium.com/p/abfea4d6b721</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[postgres]]></category>
            <dc:creator><![CDATA[VENKATRAMAN BEHERA]]></dc:creator>
            <pubDate>Wed, 08 Nov 2023 04:11:19 GMT</pubDate>
            <atom:updated>2023-11-08T04:11:19.960Z</atom:updated>
            <content:encoded><![CDATA[<p>Given a string of digits, you should replace any digit below 5 with ‘0’ and any digit 5 and above with ‘1’. Return the resulting string.</p><p>Note: input will never be an empty string</p><h4>Testcases:</h4><figure><img alt="509321967506747–101000111101101" src="https://cdn-images-1.medium.com/max/328/1*WoabV4qzsYOp4zGl7Y7mxQ.png" /></figure><h4>Solution:</h4><p>SELECT X, REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(</p><p>REPLACE(REPLACE(REPLACE(X, ‘0’, ‘1’),‘1’, ‘0’ ),‘2’, ‘0’),‘3’,’0&#39;),‘4’,’0&#39; ), ‘5’, ‘1’),‘6’, ‘1’ ),‘7’,’1&#39;),‘8’,’1&#39;),‘9’,’1&#39;) AS RES<br>FROM FAKEBIN;</p><h4>link: <a href="https://www.codewars.com/kata/57eae65a4321032ce000002d/train/sql">https://www.codewars.com/kata/57eae65a4321032ce000002d/train/sql</a></h4><p>Thank you , happy coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abfea4d6b721" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ActiveRecord Validation (Ruby On Rails)]]></title>
            <link>https://medium.com/@venkatramanbehera1/activerecord-validation-ruby-on-rails-7bfc707287dd?source=rss-2c3b17f3e58f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bfc707287dd</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[VENKATRAMAN BEHERA]]></dc:creator>
            <pubDate>Mon, 09 Jan 2023 11:11:07 GMT</pubDate>
            <atom:updated>2023-01-09T11:14:44.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5qHyJA05J86DE4awTL8WUQ.png" /></figure><p>Validation are the way using which we can ensure that only valid data is saved into database.</p><p>here we will focus on Model Level validation only. because everything will pass through model and we can validate before saving in the database.</p><p><strong>When Validation Performed ?</strong></p><ol><li>Create</li><li>Update</li><li>Save</li></ol><p>Validation can not performed while instantiation an object.</p><h3><strong>Example</strong></h3><p>Let we have a user model with name and email and validation are can not be empty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*2KEWcKYfpCOV9S2QCpE6kA.png" /><figcaption>validations</figcaption></figure><p>Then we can test it using rails console with</p><ol><li>user = <strong>User</strong>.create -&gt; create the user with empty parameters then</li><li>user.save -&gt; it will return false .</li><li>user.errors -&gt; get all the errors</li><li>user.errors.messages gives proper error.</li></ol><p><strong>To see the error of model we need to do a valid check first then we can found the errors.</strong></p><ol><li>user.errors [directly no error]</li><li>user.valid? returns false if it has errors</li><li>user.errors.messages [gives the error beautifully]</li></ol><h3><strong>Some of the validations are :-</strong></h3><ol><li>Presense</li><li>Uniqueness</li><li>length</li><li>format</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XjtX4y9-IE677s4Zt2j31A.png" /></figure><p>5. Custom validation</p><figure><img alt="validation" src="https://cdn-images-1.medium.com/max/1024/1*iW6RpWMaGMj00nv0gYYPQg.png" /></figure><p>GitHub link — <a href="https://github.com/Venkatramanbehera/association_example">https://github.com/Venkatramanbehera/association_example</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bfc707287dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to add jQuery in Rails 7 Application ?]]></title>
            <link>https://medium.com/@venkatramanbehera1/how-to-add-jquery-in-rails-7-application-d46fa6bcd72a?source=rss-2c3b17f3e58f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d46fa6bcd72a</guid>
            <category><![CDATA[jquery]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[VENKATRAMAN BEHERA]]></dc:creator>
            <pubDate>Fri, 18 Nov 2022 17:44:41 GMT</pubDate>
            <atom:updated>2022-11-18T18:42:36.194Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to add jQuery in Rails 7 Application ?</h3><p>Create a project using rails <strong>new todo_yarn</strong> . todo_yarn is a project name .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FZ3aiegu3IH9Jhsq1iO7pA.png" /></figure><figure><img alt="$ rails new todo_yarn" src="https://cdn-images-1.medium.com/max/312/1*-LtkAZm8xWfjDNfspQCmaA.png" /></figure><p>then you can see the below images like -</p><figure><img alt="example of downloaded file ." src="https://cdn-images-1.medium.com/max/1024/1*8njELOshrCbums_6-7BHZA.png" /></figure><p>Then cd todo_yarn to go into the file .</p><figure><img alt="$ cd todo_yarn" src="https://cdn-images-1.medium.com/max/206/1*thIctrkQCSCUnEKqvifP3Q.png" /></figure><p>Then check weather yarn is present or not using <strong>yarn -v</strong> .</p><p>If yarn is not present than install yarn using <strong>brew install yarn</strong> / <strong>apt get install yarn .</strong></p><p>Then add Yarn using <strong>yarn init</strong> .</p><figure><img alt="$ yarn init" src="https://cdn-images-1.medium.com/max/206/1*TEdBte5RoGY73gjQWvlErQ.png" /></figure><p>Then it will ask some questions as like below images . just enter every questions to skip the question and choose the default option automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*X7_Pj2dIroLxG2IwNfDruw.png" /></figure><p>Then install jQuery using <strong>yarn add jquery </strong>.</p><figure><img alt="$ yarn add jquery" src="https://cdn-images-1.medium.com/max/262/1*Q4KB17SwVqIJDjIajWSHqw.png" /></figure><p>Then go to the folder location <strong>project-name/app/javascript/application.js</strong> and add this code <strong>import “./add_jquery”;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*x0K4SgLTKdarquxNOzjwvg.png" /></figure><p>Then create a file inside app/javascript as <strong>add_jquery.js</strong> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*TDwVGGebwDNiT0AF5lHlfA.png" /></figure><p>Then add bellow code snippet in add_jquery.js file .</p><p>import jquery from &quot;jquery&quot;;</p><p>window.jQuery = jquery;</p><p>window.$ = jquery;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*VcLI7TZKDqmzDN8DFG9Vwg.png" /></figure><p>Then start the rails server using <strong>rails server</strong> . and go to the console and type $ and check you are getting error or not .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5rTwPVkGOGMlFkrKPQOtqA.png" /></figure><p>And while installing jquery a node_modules folder is getting created so we need to ignore that folder using <strong>.gitignore . </strong>add below code in the git-ignore file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*OMMrDDf7Xd-kttgUtmAdoQ.png" /></figure><p>Congratulation … Happy coding . github link — <a href="https://github.com/Venkatramanbehera/todo_yarn">https://github.com/Venkatramanbehera/todo_yarn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d46fa6bcd72a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Important String Methods in Javascript]]></title>
            <link>https://medium.com/@venkatramanbehera1/important-string-methods-in-javascript-49cba7ac8e3a?source=rss-2c3b17f3e58f------2</link>
            <guid isPermaLink="false">https://medium.com/p/49cba7ac8e3a</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[VENKATRAMAN BEHERA]]></dc:creator>
            <pubDate>Sun, 04 Sep 2022 06:23:20 GMT</pubDate>
            <atom:updated>2022-09-04T06:23:20.151Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>indexOf() :-</strong></p><p>This method returns the index of the first occurrence of the substring in a string . <br>Eg :- const message = “Hello World”;<br>console.log(message.indexOf(“ll”)); // 2<br>Note :- if the searched value is not there it returns -1</p><p><strong>slice() :-</strong></p><p>This method extract a section and return of that string.<br>Eg :- const message = “Hello World”;<br>console.log(message.slice(0,4)); // Hello</p><p><strong>includes() :-</strong></p><p>This method gives a boolean value whether the target char is present in the string or not .<br>Eg :- const message = “Hello World”;<br>console.log(message.includes(‘e’)); // true</p><p><strong>split() :-</strong></p><p>This method convert a string into a list of substring and return them as an array.<br>Eg :- const message = “Hello World”;<br>console.log(message.split(‘ ’)); //[“Hello”, “World”]</p><p><strong>trim() :-</strong></p><p>This method removes whitespaces from both ends of a string .<br>Eg :- const message = “ Hello World ”;<br>console.log(message.trim()); // Hello World</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49cba7ac8e3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some Graph Terminology]]></title>
            <link>https://medium.com/@venkatramanbehera1/some-graph-terminology-e177720dc56a?source=rss-2c3b17f3e58f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e177720dc56a</guid>
            <category><![CDATA[graph]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[datastrucutre]]></category>
            <dc:creator><![CDATA[VENKATRAMAN BEHERA]]></dc:creator>
            <pubDate>Fri, 05 Aug 2022 03:17:41 GMT</pubDate>
            <atom:updated>2022-08-05T03:17:41.855Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Graph ?</h3><p>Graph is a DataStructure , combination of Nodes and Edges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*p7eYPj1VkPylOPoDgx3fgw.png" /></figure><p>There are 2 types of graphs are there .<br>1 . Directed Graph.<br>2 . Undirected Graph.</p><h3>Directed Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*z0TpkRHhmVpyUzxTQ02wZw.png" /></figure><h3>Undirected Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*JLjEGRrRUdLripH7-_3H7Q.png" /></figure><h3>Weighted Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*wGqan-uPfWmJxnMNncmdVQ.png" /></figure><h3>Cyclic Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*KAdG4Mu1nNbmViD0WGvOVw.png" /></figure><h3>Acyclic Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*usvxGlW6eEbeesrqlE7QkA.png" /></figure><p>This is the things i have learnt till now , i will add more things on graph .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e177720dc56a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>