<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Swarna Krishnan K</title>
    <description>The latest articles on DEV Community by Swarna Krishnan K (@swarnakrishnan).</description>
    <link>https://dev.to/swarnakrishnan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F446661%2F88df841b-1c5e-49a4-a819-a0b8242e7d7c.jpeg</url>
      <title>DEV Community: Swarna Krishnan K</title>
      <link>https://dev.to/swarnakrishnan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/swarnakrishnan"/>
    <language>en</language>
    <item>
      <title>How to create Functions in Azure using Python</title>
      <dc:creator>Swarna Krishnan K</dc:creator>
      <pubDate>Wed, 10 Feb 2021 08:56:09 +0000</pubDate>
      <link>https://dev.to/swarnakrishnan/how-to-create-functions-in-azure-using-python-1f2o</link>
      <guid>https://dev.to/swarnakrishnan/how-to-create-functions-in-azure-using-python-1f2o</guid>
      <description>&lt;p&gt;Recently, I have become a Microsoft learn student ambassador. As I was upgraded to Alpha MLSA, I was given credits to use Microsoft Azure for free along with other benefits. While I was exploring I happened to see Azure Functions and I started learning that. Since my favorite programming language is python, I thought of creating a Azure functions using python. It was pretty exciting. Through this blog post, I'll explain how to create a function using python in Microsoft Azure with the help of Visual Studio Code. &lt;/p&gt;

&lt;h2&gt;
  
  
  Step-1: Configuration of the Environment
&lt;/h2&gt;

&lt;p&gt;Before getting started, we have to make sure of certain requirements. They are: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You need to have a active Microsoft Azure Subscription, If you are a student you can get the Student benefits &lt;a href="https://azure.microsoft.com/en-in/free/students/"&gt;from here&lt;/a&gt;. If you are not a student you can create an account with a proper subscription. &lt;/li&gt;
&lt;li&gt;You need to have &lt;a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=windows%2Ccsharp%2Cbash#install-the-azure-functions-core-tools"&gt;azure functions core tools with version 3.x&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;You need to install Visual Studio Code and the required extensions (Python extension and Azure Functions Extension).
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--r8BGMtuV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ftkzgvtdt6whft9uw5wo.PNG" alt="1"&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7xaVN8LE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/w4rmeq7pmcy2ffcgne89.PNG" alt="2"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sign in to Azure
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;To sign-in to Azure, you need to choose the Azure icon in the activity bar and in the "Azure:Fuctions" area choose "Sign in to Azure...".&lt;/li&gt;
&lt;li&gt;When prompted in the browser, you can sign in using your Microsoft Azure account credentials. &lt;/li&gt;
&lt;li&gt;After successful sign in you can close the browser and go back to VS code.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Create the local project and Run the function locally
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;To create the local project, choose the Azure icon in the Activity Bar, then choose "Create New project..." in the "Azure:Fuctions" area, then choose the location for the workspace and select. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uhqI_KFn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3lgtob0cc6cngz7xch9e.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uhqI_KFn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3lgtob0cc6cngz7xch9e.jpg" alt="Screenshot (7)_LI"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After selecting the location, It will prompt for some information. Provide this information at the prompts,&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;language for the project: Python &lt;/li&gt;
&lt;li&gt;Select python alias to create virtual environment: Select the location for python interpreter.&lt;/li&gt;
&lt;li&gt;Template: HTTP Trigger&lt;/li&gt;
&lt;li&gt;Function name: (Choose any unique name of your choice).&lt;/li&gt;
&lt;li&gt;Authorization: Anonymous&lt;/li&gt;
&lt;li&gt;Choose how you would prefer to open this project from the given options.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With the information that you have given above, VScode creates an azure function project with HTTP trigger. &lt;/p&gt;

&lt;p&gt;To run this function,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Press F5 key or Choose the Run&amp;gt; Start Debugging to start the function app project, Output is displayed in the Terminal Panel. 
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pSws2wBw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/m2mhlvzbdki81h7ottu1.png" alt="Screenshot (8)"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here you can see the URL endpoint that HTTP triggered function running locally.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to "Azure:Fuctions" through Azure icon from the workspace and choose Local Prject&amp;gt;Functions&amp;gt;(your Function) right click on it and select "Execute Function Now..." &lt;/li&gt;
&lt;li&gt;Then, Enter request Body will be prompted and you'll see {"name": "azure"}, press Enter to send the request to your function. This will take you to..
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LuP6SLxj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ppbxitz43aktan87d9nh.png" alt="Screenshot (5)"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In the URL type &lt;code&gt;?name=(any name)&lt;/code&gt; and Press Enter, then&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9-eYsFZ8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4xtswgp03y8y7mea5y1b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9-eYsFZ8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4xtswgp03y8y7mea5y1b.png" alt="Screenshot (4)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see that the HTTP triggered Successfully. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go back to the visual studio code and you will see "Function executed successfully" in the terminal panel. Press Ctrl+C to stop and disconnect the debugger. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now you have verified that the function runs perfectly on your local computer. Now, lets publish the project to azure using Visual Studio Code. &lt;/p&gt;

&lt;h2&gt;
  
  
  Publish the Project
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Choose the Azure Icon in the Activity Bar and select the "Deploy to function app..." button in the "Azure:Functions" area. &lt;/li&gt;
&lt;li&gt;Give this information at the prompts,&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Select the folder in which you function exist.&lt;/li&gt;
&lt;li&gt;Select your azure Subscription &lt;/li&gt;
&lt;li&gt;Choose "Create new Function app" from the prompts. &lt;/li&gt;
&lt;li&gt;Enter the name for your project based on requirements.&lt;/li&gt;
&lt;li&gt;Select the runtime version of python.&lt;/li&gt;
&lt;li&gt;Select the location for new resources.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The extension will show the status of individual resources as they are being created,&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZPNKTOoh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5wsdvxl66scadalpkkq6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZPNKTOoh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5wsdvxl66scadalpkkq6.png" alt="Screenshot (2)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After completion,&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6ewz9BeF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ictix2mswwsw0utjhktg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6ewz9BeF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ictix2mswwsw0utjhktg.png" alt="Screenshot (6)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is how you can create an Azure Function using python with the help of visual studio code. You can also create the azure functions with command line using Azure CLI and Azure powershell. &lt;/p&gt;

</description>
      <category>python</category>
      <category>azure</category>
      <category>vazuredevstories</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>First Experience with MLH Local Hack Day</title>
      <dc:creator>Swarna Krishnan K</dc:creator>
      <pubDate>Sat, 16 Jan 2021 10:48:39 +0000</pubDate>
      <link>https://dev.to/swarnakrishnan/first-experience-with-mlh-local-hack-day-3f0i</link>
      <guid>https://dev.to/swarnakrishnan/first-experience-with-mlh-local-hack-day-3f0i</guid>
      <description>&lt;p&gt;Hello guys, In this blog post I'm going to discuss about my experience with MLH Local Hack Day. Before getting started with my experience let's first understand what MLH Local hack Day means. &lt;/p&gt;

&lt;h2&gt;
  
  
  What is MLH?
&lt;/h2&gt;

&lt;p&gt;MLH stands for Major League Hacking and It is a global hacker community whose mission is to empower hackers. Also It is the official hackathon league for Students. This league power more than 200 weekend-long hackathons which inspire innovation, cultivate healthy communities and teach computer science to different enthusiasts around the world. &lt;br&gt;
By participating in these hackathons a student can benefit in ways like mentorship and advice, Onsite hackathon support, Hardware and Swags fulfilment and shipping (This is one of the most exciting practices to encourage students to participate and learn more..😀). &lt;/p&gt;

&lt;h2&gt;
  
  
  What is Local Hack Day?
&lt;/h2&gt;

&lt;p&gt;Local Hack is an event which is divided into 3 parts which are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Learn(October 2020): Learn is a global day-long conference that allows your community to pick up new skills and show off how much you’ve learned on a leaderboard.&lt;/li&gt;
&lt;li&gt;Build(January 2021): Build is a week-long celebration of creating hacks/projects both big and small.&lt;/li&gt;
&lt;li&gt;Share(Spring 2021): Yet to happen..&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What are Guilds?
&lt;/h2&gt;

&lt;p&gt;MLH Local Hack Day is a huge community with lakhs of students from different countries, therefore the concept of guilds has been introduced where each guild has a goal and the guild members help each other with the challenges and strive to be in the top of leaderboard. Guilds follow the concept of community inside the community. &lt;/p&gt;

&lt;h2&gt;
  
  
  How is my experience with MLH Local hack day?
&lt;/h2&gt;

&lt;p&gt;I started this week by registering myself in the MLH local hack day for  the first time and joined the DevScript Winter of Code Guild. Everyday I have checked-in the events and workshops. Also I have challenged myself to complete the Build Challenges within the deadlines, which I have completed successfully. Also the guild members were amazingly supportive and I have learnt a lot from them and from the challenges of Build. I have registered myself in the hackathons of MLH like Rose hack, Hack the northeast. I'm planning to participate more in the hackathons in future. Today morning(16th January), I woke up and read this mail from swift from MLH saying that I'm receiving a letter swag. &lt;br&gt;
A letter swag will have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An MLH Sticker&lt;/li&gt;
&lt;li&gt;An Ellie Season Sticker&lt;/li&gt;
&lt;li&gt;A Local Hack Day: Build Hexagon Sticker&lt;/li&gt;
&lt;li&gt;A Thank You Postcard
This letter is separate from additional swags that one might get by checking in to events everyday. By doing this one can get a bonus of 6 hexagon stickers. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I am really excited to participate in Share(Spring 2021) and know more about it. Also I would like to thank all my guildmates, support staff and MLH coaches for making this entire hackathon fun and insightful. &lt;/p&gt;

</description>
      <category>mlh</category>
      <category>majorleaguehacking</category>
      <category>localhackday</category>
    </item>
    <item>
      <title>All you need to know about TERMUX</title>
      <dc:creator>Swarna Krishnan K</dc:creator>
      <pubDate>Mon, 21 Sep 2020 15:02:43 +0000</pubDate>
      <link>https://dev.to/swarnakrishnan/all-you-need-to-know-about-termux-58a3</link>
      <guid>https://dev.to/swarnakrishnan/all-you-need-to-know-about-termux-58a3</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdr6i5hnqfk4gl5dwo1t4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdr6i5hnqfk4gl5dwo1t4.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hello guys, this blog post is about the famous application emulator of android "Termux". &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is Termux?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Termux is an android application which is an emulator and it is also a Linux environment app. There is no particular need of setting it up or rooting the phone, It works directly. The additional packages are available using APT package manager. Termux repositories are hosted by JFrog Bintray. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What are the uses of Termux?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;There are many uses of termux, Some of them are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data processing with Python.&lt;/li&gt;
&lt;li&gt;Programming in a development environment.&lt;/li&gt;
&lt;li&gt;Downloading and managing files and pages using time-established tools.&lt;/li&gt;
&lt;li&gt;Learning the basics of the Linux command line environment.&lt;/li&gt;
&lt;li&gt;Running an SSH client.&lt;/li&gt;
&lt;li&gt;Synchronizing and backing up your files. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Some of the basic commands of Termux are:&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;To Update&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;To check whether app is properly installed, we use:&lt;/strong&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pkg install sl
sl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the termux is properly installed, we will be seeing a moving train.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;To see all the processes which are running in Termux, we use&lt;/strong&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;top
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;To display the text in a different style, we use&lt;/strong&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install figlet
figlet word
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;To see matrix backgroud animation, we use&lt;/strong&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install cmatrix
cmatrix + ENTER
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using termux we can also find the factors of numbers, To do that we need to install coreutils.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install coreutils
factor 2020
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One of the commands that I personally like is w3m. It is used to open any url from this termux.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install w3m
w3m tdummies.blogspot.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can also install metasploit using termux. To do that we first need to install curl.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install curl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After installing curl, we need to transfer data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -LO https://raw.githubusercontent.com/Hax4us/Metasploit_termux/master/metasploit.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To get the access permission.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod 777 metasploit.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;./metasploit.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To learn more about different commands that can be used in linux terminal &lt;a href="https://linuxjourney.com/" rel="noopener noreferrer"&gt;click here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above mentioned manner you can install any packages to your smart phone based on your need. To learn more about different packages available &lt;a href="https://github.com/termux/termux-packages" rel="noopener noreferrer"&gt;you can read it here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>linux</category>
      <category>computerscience</category>
    </item>
  </channel>
</rss>
