<?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: Tawanda Nyahuye</title>
    <description>The latest articles on DEV Community by Tawanda Nyahuye (@towernter).</description>
    <link>https://dev.to/towernter</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%2F393559%2Fe536d6a8-f2a6-47dd-a600-682c1ea4a48e.jpg</url>
      <title>DEV Community: Tawanda Nyahuye</title>
      <link>https://dev.to/towernter</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/towernter"/>
    <language>en</language>
    <item>
      <title>Exploring Connections: How Meeting People Enriched My Master's Journey</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Wed, 30 Aug 2023 13:57:37 +0000</pubDate>
      <link>https://dev.to/towernter/exploring-connections-how-meeting-people-enriched-my-masters-journey-4bcm</link>
      <guid>https://dev.to/towernter/exploring-connections-how-meeting-people-enriched-my-masters-journey-4bcm</guid>
      <description>&lt;p&gt;I recently completed my 2-year master's degree in Big Data Analytics and I would like to take you on a ride through my experience in the world of Big Data Analytics. This won't be about crunching numbers, and datasets or building machine learning models; it's about the incredible individuals I crossed paths with. The connections that I made along the way and how these connections turned out to be like golden tickets to new perspectives that have had a big impact on my entire life.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Meeting Diverse People: Unlocking Valuable Career Insights&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;During my learning journey, I met people from all sorts of fields - social sciences, finance, engineering, healthcare, HR, and more. It was like stepping into different universes. Talking to people in social sciences showed me how data and human behavior are connected. The finance people taught me how data fuels financial decisions. Tech-savvy engineers shared ways to solve problems that blew my mind. Healthcare experts proved how data literally saves lives. Chatting with HR professionals helped me to get a backstage pass on how data makes managing people a breeze. Coming from a technical background, honestly, I thought doing such a program was for people with programming and other IT-related skills only. In the end, it was these people from different fields who had an upper hand since for them it was about applying big data skills in their respective fields.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Opening Doors to Future Collaborations&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;While pursuing this master's, I got to meet professors who taught me different courses and life skills. They were not just names on a list, they were people who shared their wisdom and stories. This wasn't just in class; it was in the real world. These connections are like keys to doors that lead to future collaborations and exciting research opportunities.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;The Challenge of Juggling Work and Learning&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;I will be honest, juggling a full-time job while learning part-time wasn't a walk in the park. It was tough. But guess what? Challenges aren't always bad. They pushed me to my limits and made me sharper. Learning how to manage my time and balance responsibilities turned out to be a skill that's super valuable.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;The Payoff: Career Growth and Personal Development&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Let's talk about the good stuff. The connections I made with people are like treasures. They've opened up a world of possibilities for my career, especially when it comes to future jobs. Employers love to see a network of diverse connections. And those professors and experts I met? They're like mentors who guide me and help me think outside the box.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Embracing the Challenge: A Transformative Experience&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Was it easy? No, it was not. But was it worth it? Absolutely! Balancing work and learning was like a boot camp for my time management and multitasking skills. It might have been challenging, but it was also rewarding. The experience has made me resilient, adaptable, and ready to tackle anything that comes my way.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Consider the Journey: Your Next Big Adventure&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;If you're wondering whether a Master's in Big Data Analytics is for you, let me tell you, it's more than just a degree. It's a chance to meet incredible people who can shape your future. It's about opening doors to collaborations and research that you might never have imagined. And it's about facing challenges head-on and coming out stronger on the other side. The field of big data is very diverse and it can be applied in any field that you can think of be it soccer, hairdressing, cooking, gardening, and any career that you may think of. I highly recommend doing any master's degree not just Big Data analytics. Pursuing postgraduate programs helps you meet different people from different careers which will help you build valuable connections.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;So, here's to meeting people, opening doors, and taking on challenges! My Master's journey has been about more than just data, it's been about growth, connections, and a whole lot of learning. If this journey sounds like your kind of adventure, a Master's in Big Data Analytics or any other postgraduate program might just be the next step you've been looking for. Let's embrace the possibilities together!&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>programming</category>
      <category>machinelearning</category>
      <category>bigdata</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Is using AI tools really good for your career?</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Wed, 24 May 2023 11:31:12 +0000</pubDate>
      <link>https://dev.to/towernter/is-using-ai-tools-really-good-for-your-career-1a82</link>
      <guid>https://dev.to/towernter/is-using-ai-tools-really-good-for-your-career-1a82</guid>
      <description>&lt;p&gt;Gone are the days when gaining a skill through spending some time learning in order to know stuff separated developers from great developers. In this day and era, your skill to prompt the AI is what makes you a super coder. &lt;/p&gt;

&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%2Fuploads%2Farticles%2Ftkutpdz67ezjtbqdhnlq.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%2Fuploads%2Farticles%2Ftkutpdz67ezjtbqdhnlq.png" alt="who wants to learn new skills?"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this article I will be rumbling about what I think about the use of AI, is it good for your career (beginners vs experts), and of course the most controversial question (will AI takeover our jobs)&lt;/p&gt;

&lt;h3&gt;
  
  
  Is AI really good for your career?
&lt;/h3&gt;

&lt;p&gt;Well, it depends. For me AI is a tool that you should use to assist you to do your job not heavily rely on it to do your entire job. Using AI tools like ChatGPT is great if you are in later stages of your career than when you are still a beginner. If you are using AI to do your entire job you should not be having a job (you are just lucky your boss does not know you can be replaced by AI)&lt;/p&gt;

&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%2Fuploads%2Farticles%2Fpsgraufi0e8p4qd3xzea.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%2Fuploads%2Farticles%2Fpsgraufi0e8p4qd3xzea.png" alt="you gettin' replaced"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tools like ChatGPT should come in handy when you are stuck with a bug and need a way out. If you are still learning to code you need to avoid abusing the use of such tools for every problem that you will face. This will help you master whatever are learning and help with building your creativity.&lt;/p&gt;

&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%2Fuploads%2Farticles%2Feptnjgckxn2ie9fkbzwp.jpeg" 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%2Fuploads%2Farticles%2Feptnjgckxn2ie9fkbzwp.jpeg" alt="Change my mind"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I know you are already saying to yourself, "this guy is crazy, ChatGPT was created to do that. If I cannot use it to do that then what is the point of having it?". Well, that actually makes sense and it is supposed to do that. Is having AI doing everything for you good for you though? I do not think so.&lt;/p&gt;

&lt;p&gt;I was recently doing my MSc degree the past 2 years and I realized that if ChatGPT had been released before I commenced my MSc degree I would have become an empty head. Considering my levels of laziness, I would have dodged doing all the assignments on my own and that would have costed me all the knowledge that I have now. When you are learning something new you need to limit the use of AI tools, suffer a little bit trying to figure out things on your own.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“There is no growth without pain. No life without suffering.”&lt;br&gt;
   ― Cynthia Eden, Burn For Me&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Will AI takeover our jobs?
&lt;/h3&gt;

&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%2Fuploads%2Farticles%2F9xl1kwcj77r7opkm20g0.jpeg" 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%2Fuploads%2Farticles%2F9xl1kwcj77r7opkm20g0.jpeg" alt="Machine learning coder chilling like nothing is happening"&gt;&lt;/a&gt;&lt;br&gt;
That actually depends with the job. Some people have already lost their jobs because of AI but as developers I do not think AI will never be able to replace us.  As developers I think we are &lt;strong&gt;users of AI&lt;/strong&gt; therefore we will never be replaced. The worst thing AI will do to us is cut our jobs that is instead of having a team of 10 developers we might end up having a team of 1 10x super coder and god level ChatGPT user.&lt;/p&gt;

&lt;p&gt;Though AI might not takeover our jobs, i think we a heading to an AI dystopia. The use of tools like ChatGPT will improve our productivity but ruin our creativity. &lt;/p&gt;

&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%2Fuploads%2Farticles%2Ft5ra78iyylg7j4b7ply4.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%2Fuploads%2Farticles%2Ft5ra78iyylg7j4b7ply4.png" alt="Civilization in the mud"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A world where an AI tool can generate an entire application for you would be great right? well i dont think so, i believe that suffering makes you a great thinker and being a great thinker makes you creative.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>development</category>
      <category>ai</category>
    </item>
    <item>
      <title>How I became a successful meme account and the benefits it has provided</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Fri, 08 Jul 2022 11:00:52 +0000</pubDate>
      <link>https://dev.to/towernter/how-i-became-a-successful-meme-account-and-the-benefits-it-has-provided-1n4e</link>
      <guid>https://dev.to/towernter/how-i-became-a-successful-meme-account-and-the-benefits-it-has-provided-1n4e</guid>
      <description>&lt;p&gt;&lt;code&gt;Originally published on&lt;/code&gt; &lt;a href="https://doc.clickup.com/20646114/d/h/kp272-200/3cb5a1933d51775?utm_campaign=tw_value_1&amp;amp;utm_medium=community&amp;amp;utm_source=twitter&amp;amp;utm_content=thread_value_towernter" rel="noopener noreferrer"&gt;ClickUp&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;You probably looked at the title and you were like, "huh, this guy calls himself successful?"&lt;/p&gt;

&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%2Fmedia0.giphy.com%2Fmedia%2FlkdH8FmImcGoylv3t3%2F200.gif%3Fcid%3Da7595362rv8dcqdgu420w67o79xtxqbytvhqkjj6se5qmad7%26rid%3D200.gif%26ct%3Dg" 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%2Fmedia0.giphy.com%2Fmedia%2FlkdH8FmImcGoylv3t3%2F200.gif%3Fcid%3Da7595362rv8dcqdgu420w67o79xtxqbytvhqkjj6se5qmad7%26rid%3D200.gif%26ct%3Dg" alt="confused"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Yes, when it comes to memeing, I can beat Elon Musk at this game.&lt;/p&gt;

&lt;p&gt;Let's jump straight into it. I have had several people approach me, mostly those who admire my work on Twitter. Most of their questions were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  How did you manage to get quite a number of followers?&lt;/li&gt;
&lt;li&gt;  How do you manage to get those banger memes?&lt;/li&gt;
&lt;li&gt;  Are there any benefits to doing this?&lt;/li&gt;
&lt;li&gt;  Can I have your account when you die?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I then decided, why not write something to answer all the questions and then share it with everyone? In this write-up, I will mainly focus on how I have managed to build my Twitter account and the surprising benefits it has provided.&lt;/p&gt;

&lt;h3&gt;
  
  
  How did you manage to get quite a number of followers?
&lt;/h3&gt;

&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%2Ft20646114.p.clickup-attachments.com%2Ft20646114%2F715014ec-396f-48bf-9f09-9ee3ee7afcc7%2Fshitposting-shitposting-everywhere.jpg" 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%2Ft20646114.p.clickup-attachments.com%2Ft20646114%2F715014ec-396f-48bf-9f09-9ee3ee7afcc7%2Fshitposting-shitposting-everywhere.jpg" alt="sh*tposting "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Running a meme account on Twitter is not really different from running any other account. You just need to understand the following (not really a standard, but that's what I do and what has worked for me):&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. Admiring others in the game/role model(s)&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;When I started using Twitter, there were a few accounts that I looked up to, both tech accounts and non-tech accounts. One of the accounts I admired was &lt;a href="https://twitter.com/markdalgleish" rel="noopener noreferrer"&gt;markdalgleish&lt;/a&gt; (who used to post memes). The trick is not just to admire your favorite accounts; notice how they do it; comment; plug your own unfunny tweets in the comment section to get noticed by others (it's low but well it works). Commenting in context with the tweet helps you to get noticed by people who are fans of the tweet author or topic as well as the tweet author. This will probably help you get followed by people who have the same interests as you and most likely the tweet author (yeah, that's the prize you get for being a top fan).&lt;/p&gt;

&lt;p&gt;That being said, if you want to be a fellow memer, you know who to idolize.&lt;/p&gt;

&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%2Fmedia3.giphy.com%2Fmedia%2FrVZEejvVWEbug%2F200.gif%3Fcid%3Da759536284m38hg3k4614vdvn6v8ilsl5q29j907e4415i7x%26rid%3D200.gif%26ct%3Dg" 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%2Fmedia3.giphy.com%2Fmedia%2FrVZEejvVWEbug%2F200.gif%3Fcid%3Da759536284m38hg3k4614vdvn6v8ilsl5q29j907e4415i7x%26rid%3D200.gif%26ct%3Dg" alt="im the captain now"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;2. Tricking the Algorithm&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Tricking the Twitter algorithm increases your chances of coming up with a banger (Also answers the second question on how to come up with banger tweets). You need to play some games with the Twitter algorithm, that is, know when to post and what to post. In terms of knowing when to post, it depends on your time zone and your audience. Take note of your audience and when they are likely to be active. If you post when the guy who likes your tweets for no reason is asleep, your post will disappear into a sinkhole. Remember, going viral starts with one click, and going viral gives you new followers.&lt;/p&gt;

&lt;p&gt;In terms of what to post, you need to pay attention to the trends. Don't post about Linux when Windows is trending, unless of course you are bashing Linux, but remember to include the keyword Windows (be creative). I remember posting the following tweet when Facebook changed its name to Meta.&lt;/p&gt;

&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%2Ft20646114.p.clickup-attachments.com%2Ft20646114%2F9f613e46-4c9f-4341-a5cc-7641cf381b45%2FScreenshot%25202022-06-27%2520210306.jpg" 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%2Ft20646114.p.clickup-attachments.com%2Ft20646114%2F9f613e46-4c9f-4341-a5cc-7641cf381b45%2FScreenshot%25202022-06-27%2520210306.jpg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  3. Keep it simple
&lt;/h4&gt;

&lt;p&gt;Don't go too deep. Most of us on Twitter are not that smart and are not slacking off at work to hear you shout about quantum physics.&lt;/p&gt;

&lt;p&gt;As a developer, do you breathe while coding?&lt;/p&gt;

&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%2Fmedia2.giphy.com%2Fmedia%2FxT9IgzoKnwFNmISR8I%2F200.gif%3Fcid%3Da7595362ju89v6vt2khtod2pt2ntyica0z79gn6l9le48h98%26rid%3D200.gif%26ct%3Dg" 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%2Fmedia2.giphy.com%2Fmedia%2FxT9IgzoKnwFNmISR8I%2F200.gif%3Fcid%3Da7595362ju89v6vt2khtod2pt2ntyica0z79gn6l9le48h98%26rid%3D200.gif%26ct%3Dg" alt="coding"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Consistency
&lt;/h3&gt;

&lt;p&gt;What has helped me a lot is being consistent. I post memes and only memes. As a result, the people who follow me do it for the memes, and they will end up staying for the memes. If you post vegan tips today and then post a steak tomorrow, you will scare your audience. Take note that my account posts mostly about technology, and it's very important for me to stick to the topic of technology, as my audience is likely to be a bunch of geeks, nerds, and printer fixers who are not familiar with football. Posting memes about Lionel Messi will probably scare the majority of them. While going viral gives you new followers, being consistent keeps the followers.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you manage to get banger memes?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Trick the algorithm.&lt;/li&gt;
&lt;li&gt; Be creative.&lt;/li&gt;
&lt;li&gt; Understand your audience and post when they are active and post what they like the most.&lt;/li&gt;
&lt;li&gt; Use a trending meme template (for example, when Squid Game was trending).&lt;/li&gt;
&lt;/ol&gt;

&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%2Ft20646114.p.clickup-attachments.com%2Ft20646114%2F0a6eb12a-4646-49f4-a4c0-92e9a57ff307%2Fimage.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%2Ft20646114.p.clickup-attachments.com%2Ft20646114%2F0a6eb12a-4646-49f4-a4c0-92e9a57ff307%2Fimage.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Are there any benefits to doing this?
&lt;/h2&gt;

&lt;p&gt;I post memes for fun, but I get a lot of opportunities that I actually never thought someone who just posts images and videos captioned with silly text would ever get. Some of the opportunities include:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Job opportunities&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You are probably thinking of job opportunities to post memes while sitting on a rotating chair somewhere, but no, these are actually opportunities to do with my career, especially software development opportunities. I am not sure how this works, but hey, iris wat iris&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Marketing&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When it comes to marketing, memers are highly demanded. I get a lot of opportunities to promote different products for several companies (especially startups). There is a high chance you once liked a meme that was part of a promotion and did not even notice it. Usually, with most of these, the company running the promotion gets to post it on their page. Memers just handle the memeing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I have your account when you die?
&lt;/h3&gt;

&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%2Fmedia2.giphy.com%2Fmedia%2FTfKuJzSVrB9bfaNgQf%2F200.gif%3Fcid%3Da7595362fy8aeqoc15dwk0thbdm5woxz2zvi6hyk37zplhp5%26rid%3D200.gif%26ct%3Dg" 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%2Fmedia2.giphy.com%2Fmedia%2FTfKuJzSVrB9bfaNgQf%2F200.gif%3Fcid%3Da7595362fy8aeqoc15dwk0thbdm5woxz2zvi6hyk37zplhp5%26rid%3D200.gif%26ct%3Dg"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Building a C# Blazor App with NoSQL and SQL Using HarperDB</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Tue, 01 Mar 2022 14:29:13 +0000</pubDate>
      <link>https://dev.to/towernter/building-a-c-blazor-app-with-nosql-and-sql-using-harperdb-lc</link>
      <guid>https://dev.to/towernter/building-a-c-blazor-app-with-nosql-and-sql-using-harperdb-lc</guid>
      <description>&lt;p&gt;This tutorial describes how to use &lt;strong&gt;&lt;a href="https://harperdb.io/" rel="noopener noreferrer"&gt;HarperDB&lt;/a&gt;&lt;/strong&gt; Database and &lt;strong&gt;&lt;a href="https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor" rel="noopener noreferrer"&gt;Blazor&lt;/a&gt;&lt;/strong&gt;. For this tutorial, we are going to build a simple &lt;strong&gt;Blazor&lt;/strong&gt; .Net Core app using HarperDB. The final source code for this tutorial can be found on this &lt;a href="https://github.com/Towernter/HarperDB_BlazorAPP" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is required to follow along this tutorial
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Basic knowledge of &lt;a href="https://docs.microsoft.com/en-us/dotnet/csharp/" rel="noopener noreferrer"&gt;C#&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://visualstudio.microsoft.com/" rel="noopener noreferrer"&gt;Visual studio&lt;/a&gt; (in my case I am using Visual Studio 2019)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://studio.harperdb.io/sign-up" rel="noopener noreferrer"&gt;HarperDB&lt;/a&gt; account&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why HarperDB?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://harperdb.io/docs/overview/" rel="noopener noreferrer"&gt;HarperDB&lt;/a&gt; has an easy to use REST API which supports both &lt;strong&gt;SQL&lt;/strong&gt; and &lt;strong&gt;NoSQL&lt;/strong&gt;. It is very simple to use with a wide range of tutorials, support and documentation in different languages like &lt;code&gt;Python&lt;/code&gt;, &lt;code&gt;Javascript&lt;/code&gt; and &lt;code&gt;CSharp&lt;/code&gt;. &lt;/p&gt;

&lt;h2&gt;
  
  
  Setting up our HarperDB database
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Create your &lt;a href="https://studio.harperdb.io/sign-up" rel="noopener noreferrer"&gt;HarperDB account&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;Go to the &lt;a href="https://studio.harperdb.io/sign-up" rel="noopener noreferrer"&gt;HarperDB Studio&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Create your Organisation&lt;/li&gt;
&lt;li&gt;Create new HarperDB Cloud instance&lt;/li&gt;
&lt;li&gt;Create a Schema dev&lt;/li&gt;
&lt;li&gt;Create two tables dog and breed and set the &lt;code&gt;hash attr&lt;/code&gt; to &lt;code&gt;id&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;NB:&lt;/strong&gt; To make it simple, for our pets app we are going to use dogs only&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Video tutorial on how to setup your &lt;a href="https://www.youtube.com/watch?v=W4pvuyp-2tk&amp;amp;t=314s" rel="noopener noreferrer"&gt;HarperDB&lt;/a&gt; cloud&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating our project
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open Visual Studio &lt;/li&gt;
&lt;li&gt;Click: Create a new Project -&amp;gt; Blazor Web Assembly App&lt;/li&gt;
&lt;/ol&gt;

&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%2Fuploads%2Farticles%2Fp4rqht9x8p6rf96sl82r.jpg" 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%2Fuploads%2Farticles%2Fp4rqht9x8p6rf96sl82r.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click Next&lt;/li&gt;
&lt;/ol&gt;

&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%2Fuploads%2Farticles%2Fqc4xjhx66ryfzzj47fgf.jpg" 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%2Fuploads%2Farticles%2Fqc4xjhx66ryfzzj47fgf.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Name your Project &lt;code&gt;**MyPets**&lt;/code&gt; and click Next&lt;/li&gt;
&lt;/ol&gt;

&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%2Fuploads%2Farticles%2Fyxj6sk9cfad0z5zei0i9.jpg" 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%2Fuploads%2Farticles%2Fyxj6sk9cfad0z5zei0i9.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select .Net Core 5 and configurations then click create&lt;/li&gt;
&lt;/ol&gt;

&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%2Fuploads%2Farticles%2Fhz0kd8irtmctayv0bymf.jpg" 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%2Fuploads%2Farticles%2Fhz0kd8irtmctayv0bymf.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuring our project
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Edit Navigation menu (&lt;code&gt;NavMenu.razor&lt;/code&gt;)
Let’s edit our &lt;code&gt;MyPets&lt;/code&gt; navigation App by opening the &lt;code&gt;NavMenu.razor&lt;/code&gt; in the &lt;code&gt;Shared&lt;/code&gt; folder. We want to add three options, our &lt;code&gt;Home&lt;/code&gt;, &lt;code&gt;Add Pets&lt;/code&gt; and lastly the page to &lt;code&gt;Display Pets&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Edit the URLs as shown below&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"@NavMenuCssClass"&lt;/span&gt; &lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"ToggleNavMenu"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;ul&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav flex-column"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-item px-3"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;NavLink&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-link"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="na"&gt;Match=&lt;/span&gt;&lt;span class="s"&gt;"NavLinkMatch.All"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"oi oi-home"&lt;/span&gt; &lt;span class="na"&gt;aria-hidden=&lt;/span&gt;&lt;span class="s"&gt;"true"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/span&amp;gt;&lt;/span&gt; Home
            &lt;span class="nt"&gt;&amp;lt;/NavLink&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-item px-3"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;NavLink&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-link"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"AddPet"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"oi oi-plus"&lt;/span&gt; &lt;span class="na"&gt;aria-hidden=&lt;/span&gt;&lt;span class="s"&gt;"true"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/span&amp;gt;&lt;/span&gt; Add Pets
            &lt;span class="nt"&gt;&amp;lt;/NavLink&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-item px-3"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;NavLink&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-link"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"fetchdata"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"oi oi-list-rich"&lt;/span&gt; &lt;span class="na"&gt;aria-hidden=&lt;/span&gt;&lt;span class="s"&gt;"true"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/span&amp;gt;&lt;/span&gt; Display Pets
            &lt;span class="nt"&gt;&amp;lt;/NavLink&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After running the project, our app looks like this&lt;/p&gt;

&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%2Fuploads%2Farticles%2Fyabedumq787qjober72o.jpg" 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%2Fuploads%2Farticles%2Fyabedumq787qjober72o.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Setting up a Home page
Let's rename the &lt;code&gt;SurveyPrompt.razor&lt;/code&gt; to &lt;code&gt;HomePage&lt;/code&gt; as follows&lt;/li&gt;
&lt;/ol&gt;

&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%2Fuploads%2Farticles%2Fwzx9w9eaw95rividgp5w.jpg" 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%2Fuploads%2Farticles%2Fwzx9w9eaw95rividgp5w.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change the last line of &lt;code&gt;Index.razor&lt;/code&gt;. &lt;code&gt;Index.razor&lt;/code&gt; is found under pages as shown above&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;SurveyPage&lt;/span&gt; &lt;span class="n"&gt;Title&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"How is Blazor working for you?"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;HomePage&lt;/span&gt; &lt;span class="n"&gt;Title&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Explore"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Adding important imports
&lt;/h2&gt;

&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%2Fuploads%2Farticles%2F38av8t5xivh5scroz1k1.jpg" 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%2Fuploads%2Farticles%2F38av8t5xivh5scroz1k1.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
Open &lt;code&gt;_Imports.razor&lt;/code&gt; and add the following imports&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;@using&lt;/span&gt; &lt;span class="n"&gt;MyPets&lt;/span&gt;
&lt;span class="n"&gt;@using&lt;/span&gt; &lt;span class="n"&gt;MyPets&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Shared&lt;/span&gt;
&lt;span class="n"&gt;@using&lt;/span&gt; &lt;span class="n"&gt;MyPets&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Helpers&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;@using&lt;/span&gt; &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create a Pet class to help us pass the object data from DB
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Right click your project -&amp;gt; add folder&lt;/li&gt;
&lt;li&gt;Name the folder &lt;code&gt;Helpers&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Right click &lt;code&gt;Helpers&lt;/code&gt; folder and add a new Class&lt;/li&gt;
&lt;li&gt;Name it &lt;code&gt;Pet&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&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%2Fuploads%2Farticles%2Fgekf4ivku48ewkdytcuz.jpg" 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%2Fuploads%2Farticles%2Fgekf4ivku48ewkdytcuz.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add the following code to your &lt;code&gt;pet&lt;/code&gt; class&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;System&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;System.Collections.Generic&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;System.Linq&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;System.Threading.Tasks&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;namespace&lt;/span&gt; &lt;span class="nn"&gt;MyPets.Helpers&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Pet&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;get&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;dog_name&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;get&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;breed_id&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;get&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;get&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;NB: To setup your database, DB URL and token can be found in the HarperDB studio account under &lt;code&gt;config&lt;/code&gt; tab&lt;br&gt;
To find your DB URL and token:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;Login to &lt;a href="https://studio.harperdb.io/" rel="noopener noreferrer"&gt;HarperDB Studio&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Click on your instance (if you do not have any instances, click &lt;code&gt;Create New HarperDB Cloud Instance&lt;/code&gt; to create a new instance&lt;/li&gt;
&lt;li&gt;Click on the &lt;code&gt;config&lt;/code&gt; tab&lt;/li&gt;
&lt;li&gt;Your &lt;strong&gt;HDB URL&lt;/strong&gt; is the &lt;code&gt;Instance URL&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Your &lt;strong&gt;Authentication token&lt;/strong&gt; is the &lt;code&gt;Instance API Auth Header (this user)&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Adding pets to our database
&lt;/h2&gt;

&lt;p&gt;We are going to make use of the existing pages created by our default Razor app. Rename &lt;code&gt;Counter.Razor&lt;/code&gt;  to &lt;code&gt;AddPet.razor&lt;/code&gt; in the &lt;code&gt;Pages&lt;/code&gt; folder and edit it as shown below:&lt;br&gt;
&lt;strong&gt;HTML Section&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@page "/AddPet"

&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Add a new Dog&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"form-group"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"form-control"&lt;/span&gt; &lt;span class="na"&gt;Placeholder=&lt;/span&gt;&lt;span class="s"&gt;"Id"&lt;/span&gt; &lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="na"&gt;bind-value=&lt;/span&gt;&lt;span class="s"&gt;"@id"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"form-group"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"form-control"&lt;/span&gt; &lt;span class="na"&gt;Placeholder=&lt;/span&gt;&lt;span class="s"&gt;"Dog Name"&lt;/span&gt; &lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="na"&gt;bind-value=&lt;/span&gt;&lt;span class="s"&gt;"@dog_name"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"form-group"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"form-control"&lt;/span&gt; &lt;span class="na"&gt;Placeholder=&lt;/span&gt;&lt;span class="s"&gt;"BreedID"&lt;/span&gt; &lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="na"&gt;bind-value=&lt;/span&gt;&lt;span class="s"&gt;"@breed_id"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"form-group"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"form-control"&lt;/span&gt; &lt;span class="na"&gt;Placeholder=&lt;/span&gt;&lt;span class="s"&gt;"Age"&lt;/span&gt; &lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="na"&gt;bind-value=&lt;/span&gt;&lt;span class="s"&gt;"@age"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;@result&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"btn btn-primary"&lt;/span&gt; &lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"AddPets"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Add New Pet&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;C# Code Section&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;@code&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="c1"&gt;//Variables for our inputs&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;dog_name&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;breed_id&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
   &lt;span class="c1"&gt;//Request and response variables&lt;/span&gt;
    &lt;span class="n"&gt;HttpRequestMessage&lt;/span&gt; &lt;span class="n"&gt;requestMessage&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;HttpResponseMessage&lt;/span&gt; &lt;span class="n"&gt;responseMessage&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;HttpClient&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;AddPets&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;postBody&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="c1"&gt;//our request body&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;

                &lt;span class="n"&gt;operation&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;  &lt;span class="s"&gt;"insert"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"dev"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;  &lt;span class="s"&gt;"dog"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="n"&gt;dog_name&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;dog_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="n"&gt;breed_id&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;breed_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt;
                    &lt;span class="p"&gt;}&lt;/span&gt;

                &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;};&lt;/span&gt;
            &lt;span class="n"&gt;http&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;HttpClient&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
            &lt;span class="n"&gt;requestMessage&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;HttpRequestMessage&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;Method&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;HttpMethod&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Post&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;RequestUri&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;Uri&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;@"YOUR_HDB_URL_HERE"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;//DB URl&lt;/span&gt;
            &lt;span class="p"&gt;};&lt;/span&gt;

            &lt;span class="n"&gt;requestMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Content&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;JsonContent&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;postBody&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DefaultRequestHeaders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Basic put_your_token_here"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;responseMessage&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;SendAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;requestMessage&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;responseMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IsSuccessStatusCode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"New pet added"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="n"&gt;responseMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;** NB: **To setup your database, DB URL and token can be found in the HarperDB studio account under &lt;code&gt;config&lt;/code&gt; tab&lt;br&gt;
To find your DB URL and token:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;Login to &lt;a href="https://studio.harperdb.io/" rel="noopener noreferrer"&gt;HarperDB Studio&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Click on your instance (if you do not have any instances, click &lt;code&gt;Create New HarperDB Cloud Instance&lt;/code&gt; to create a new instance&lt;/li&gt;
&lt;li&gt;Click on the &lt;code&gt;config&lt;/code&gt; tab&lt;/li&gt;
&lt;li&gt;Your &lt;strong&gt;HDB URL&lt;/strong&gt; is the &lt;code&gt;Instance URL&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Your &lt;strong&gt;Authentication token&lt;/strong&gt; is the &lt;code&gt;Instance API Auth Header (this user)&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Display Pets from the database
&lt;/h2&gt;

&lt;p&gt;Edit the code in &lt;code&gt;FetchData.razor&lt;/code&gt; in the &lt;code&gt;Pages&lt;/code&gt; folder as shown below &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;NB:&lt;/strong&gt; For this section we will use the HarperDB SQL functionality&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;HTML Section&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@page "/fetchdata"

&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Dogs&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;This section demonstrates fetching data from HarperDB&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt; @result&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
@if (pets == null) //display nothing when our DB is empty
{
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;&lt;/span&gt;Loading...&lt;span class="nt"&gt;&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
}
else
{
    &lt;span class="nt"&gt;&amp;lt;table&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"table"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;thead&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Id&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Dog Name&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Breed&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Age&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Action&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/thead&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;tbody&amp;gt;&lt;/span&gt;
            @foreach (var pet in pets)
            {
                &lt;span class="nt"&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;@pet.id&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;@pet.dog_name&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;@pet.breed_id&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;@pet.age&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
               &lt;span class="nt"&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;
            }
        &lt;span class="nt"&gt;&amp;lt;/tbody&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;C# Code Section&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;@code&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;HttpRequestMessage&lt;/span&gt; &lt;span class="n"&gt;requestMessage&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;HttpResponseMessage&lt;/span&gt; &lt;span class="n"&gt;responseMessage&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;HttpClient&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;List&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Pet&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;pets&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;//Pets list to store our pets retrieved from the database&lt;/span&gt;
    &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;protected&lt;/span&gt; &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt; &lt;span class="nf"&gt;OnInitializedAsync&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; 
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;postBody&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;operation&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"sql"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;sql&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"SELECT * FROM dev.dog WHERE 1"&lt;/span&gt;
            &lt;span class="p"&gt;};&lt;/span&gt;
            &lt;span class="n"&gt;http&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;HttpClient&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
            &lt;span class="n"&gt;requestMessage&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;HttpRequestMessage&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;Method&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;HttpMethod&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Post&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;RequestUri&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;Uri&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;@"YOUR_HDB_URL_HERE"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;};&lt;/span&gt;
            &lt;span class="n"&gt;requestMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Content&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;JsonContent&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;postBody&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DefaultRequestHeaders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Basic put_your_token_here"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;responseMessage&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;SendAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;requestMessage&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;pets&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;JsonSerializer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Deserialize&lt;/span&gt; &lt;span class="c1"&gt;// for our HTML table&lt;/span&gt;
                    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;List&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Pet&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;responseMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Content&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ReadAsStringAsync&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;responseMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Test addition and Display functionality
&lt;/h2&gt;

&lt;p&gt;Let's test out what we have so far:&lt;br&gt;
Start your project in Visual Studio&lt;/p&gt;

&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%2Fuploads%2Farticles%2Fxm59ywshgpff0swv6iux.jpg" 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%2Fuploads%2Farticles%2Fxm59ywshgpff0swv6iux.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&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%2Fuploads%2Farticles%2Frk6odg7kcarkzf532nd3.jpg" 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%2Fuploads%2Farticles%2Frk6odg7kcarkzf532nd3.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;** NB: **To setup your database, DB URL and token can be found in the HarperDB studio account under &lt;code&gt;config&lt;/code&gt; tab&lt;br&gt;
To find your DB URL and token:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;Login to &lt;a href="https://studio.harperdb.io/" rel="noopener noreferrer"&gt;HarperDB Studio&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Click on your instance (if you do not have any instances, click &lt;code&gt;Create New HarperDB Cloud Instance&lt;/code&gt; to create a new instance&lt;/li&gt;
&lt;li&gt;Click on the &lt;code&gt;config&lt;/code&gt; tab&lt;/li&gt;
&lt;li&gt;Your &lt;strong&gt;HDB URL&lt;/strong&gt; is the &lt;code&gt;Instance URL&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Your &lt;strong&gt;Authentication token&lt;/strong&gt; is the &lt;code&gt;Instance API Auth Header (this user)&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  Deleting our Pets
&lt;/h2&gt;

&lt;p&gt;We will add the functionality to delete a pet in the display &lt;code&gt;FetchData.razor&lt;/code&gt; page&lt;br&gt;
Edit the HTML in &lt;code&gt;FetchData.razor&lt;/code&gt; to add the following table data to your HTML page&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;td&amp;gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"btn btn-danger"&lt;/span&gt; &lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"() =&amp;gt; DeletePet(pet.id)"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Delete&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After adding the line your page should look like the one below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@page "/fetchdata"

&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Dogs&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;This section demonstrates fetching data from HarperDB&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt; @result&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
@if (pets == null)
{
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;&lt;/span&gt;Loading...&lt;span class="nt"&gt;&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
}
else
{
    &lt;span class="nt"&gt;&amp;lt;table&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"table"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;thead&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Id&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Dog Name&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Breed&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Age&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;th&amp;gt;&lt;/span&gt;Action&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/thead&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;tbody&amp;gt;&lt;/span&gt;
            @foreach (var pet in pets)
            {
                &lt;span class="nt"&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;@pet.id&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;@pet.dog_name&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;@pet.breed_id&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;@pet.age&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"btn btn-danger"&lt;/span&gt; &lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"() =&amp;gt; DeletePet(pet.id)"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Delete&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;
            }
        &lt;span class="nt"&gt;&amp;lt;/tbody&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the following &lt;code&gt;DeletePet()&lt;/code&gt; method to your &lt;code&gt;@code&lt;/code&gt; section under &lt;code&gt;OnInitializedAsync()&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt; &lt;span class="c1"&gt;//Delete a pet &lt;/span&gt;
    &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;DeletePet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;

        &lt;span class="k"&gt;try&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;postBody&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;

                &lt;span class="n"&gt;operation&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;  &lt;span class="s"&gt;"delete"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"dev"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;  &lt;span class="s"&gt;"dog"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;hash_values&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;};&lt;/span&gt;
            &lt;span class="n"&gt;http&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;HttpClient&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
            &lt;span class="n"&gt;requestMessage&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;HttpRequestMessage&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;Method&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;HttpMethod&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Post&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;RequestUri&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;Uri&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;@"YOUR_HDB_URL_HERE"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;};&lt;/span&gt;
            &lt;span class="n"&gt;requestMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Content&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;JsonContent&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;postBody&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DefaultRequestHeaders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Basic put_your_token_here"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;responseMessage&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;SendAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;requestMessage&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;responseMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IsSuccessStatusCode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"Pet has been deleted"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="n"&gt;responseMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Test Deletion
&lt;/h2&gt;

&lt;p&gt;Start your project in Visual Studio &lt;br&gt;
Let’s add another pet&lt;/p&gt;

&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%2Fuploads%2Farticles%2Fctxfayf1pazgmv2bqoen.jpg" 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%2Fuploads%2Farticles%2Fctxfayf1pazgmv2bqoen.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&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%2Fuploads%2Farticles%2Fii3lw2ixyl84f21qlidl.jpg" 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%2Fuploads%2Farticles%2Fii3lw2ixyl84f21qlidl.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We now have two dogs, test by deleting any of the two&lt;/p&gt;

&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%2Fuploads%2Farticles%2Fdfc4oaw2qvv324bo8y8y.jpg" 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%2Fuploads%2Farticles%2Fdfc4oaw2qvv324bo8y8y.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
After deleting Bruno we are now left with one dog (Harper) in the database.&lt;/p&gt;

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

&lt;p&gt;This tutorial demonstrated how to create a basic C# Blazor app and how to use HarperDB SQL and NoSQL operations in C#.&lt;/p&gt;

&lt;p&gt;The Purpose of the &lt;code&gt;DisplayPets&lt;/code&gt; function was to demonstrate how you can communicate with HarperDB SQL operations and provide an example to make it easy to use other SQL operations provided in the HarperDB API. &lt;/p&gt;

&lt;p&gt;Finally, the &lt;code&gt;AddPet&lt;/code&gt; and &lt;code&gt;DeletePet&lt;/code&gt; functions demonstrate how you can add and alter data using HarperDB’s NoSQL operations and to help you get started for any NoSQL reference in HarperDB using C#.&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>blazor</category>
      <category>harperdb</category>
      <category>database</category>
    </item>
    <item>
      <title>Getting started with a project written by another developer</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Fri, 09 Jul 2021 19:25:24 +0000</pubDate>
      <link>https://dev.to/towernter/getting-started-with-a-project-written-by-another-developer-1l61</link>
      <guid>https://dev.to/towernter/getting-started-with-a-project-written-by-another-developer-1l61</guid>
      <description>&lt;h2&gt;
  
  
  Lets get into this
&lt;/h2&gt;

&lt;p&gt;I have been there and if you are not a newbie, you have probably been there but if you haven't been there, don't worry you will be there. There will always be a time in your life when you inherit code that was written by another developer. If the developer is smarter than you, that's a problem and if they are not, well that's a huge problem. This is a problem most developers face when they start a new job at a different company.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu9k41x9qf46u8o10rs3o.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu9k41x9qf46u8o10rs3o.jpg" alt="Alt Text" width="500" height="733"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How did we get here?
&lt;/h2&gt;

&lt;p&gt;Recently I was given a task to maintain a project that was written by another developer using a programming language that I am not familiar with. This article has some few things that helped me get up to speed with this new project as well as explaining these ways in case you encounter the same problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  You have been given a project written by another Developer. What should you do?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftr2s5kqldtl4x1mryb84.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftr2s5kqldtl4x1mryb84.jpg" alt="Alt Text" width="650" height="434"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;&lt;em&gt;We don't run away from the code, we run the code&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Study the programming language used
&lt;/h4&gt;

&lt;p&gt;The first thing you have to do before trying to add functionality to a project written by someone else is to understand the programming language that was used to write the project. Most people say programming languages are the same, learn one and you are good with all of them. I disagree, programming languages are different in terms of syntax but they use the same concepts like , OOP, if statements exception handling etc. Take your time to understand the syntax of the language before you try changing some lines of code in a project and this will save you a lot of time. This applies to all programming languages, Python, JavaScript, PHP, C# etc.&lt;/p&gt;

&lt;h4&gt;
  
  
  Study the source code
&lt;/h4&gt;

&lt;p&gt;Once you get an understanding of the programming language, take your time to read through the project code. Go through the code as much as you can if possible from line 1 to line n, file 1 to file n. Going through the code thoroughly will help you understand the way the developer structures their code, their commenting style, strength and weaknesses. This will also help you know where to edit when you want to edit any features of the project. &lt;/p&gt;

&lt;h4&gt;
  
  
  Experiment with the project
&lt;/h4&gt;

&lt;p&gt;Experiment with the project, make a backup then break it and fix it. If you break the project you will suffer, the suffering is necessary because it will help you understand the concepts and technologies used in the project when you are trying to fix the project. This will also help you to understand several modules of the project and their connection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NB:&lt;/strong&gt; There are several ways that can help one to get started with a project that was written by another developer but this is what worked for me. &lt;/p&gt;

</description>
      <category>productivity</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to recover a project or files deleted when running git commands</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Fri, 02 Oct 2020 14:56:47 +0000</pubDate>
      <link>https://dev.to/towernter/how-to-recover-a-project-or-files-deleted-when-running-git-commands-40je</link>
      <guid>https://dev.to/towernter/how-to-recover-a-project-or-files-deleted-when-running-git-commands-40je</guid>
      <description>&lt;p&gt;This week as I was working on a project, I made a terrible mistake running some random Git commands that I copied from the internet and ended up deleted the whole project. &lt;/p&gt;

&lt;h3&gt;
  
  
  How did we end up here?
&lt;/h3&gt;

&lt;p&gt;Ok, the story is, I was trying to back up my project to my remote repository using git commands. I initialized my remote repository with a &lt;code&gt;.gitignore&lt;/code&gt; file and I don't usually do this. When trying to push the project after committing my changes I got the following error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What deleted my project?
&lt;/h3&gt;

&lt;p&gt;Just like any other software developers when your house is on fire you think of one place, &lt;a href="https://google.com/"&gt;Google&lt;/a&gt;. I typed some stuff and ended up on &lt;a href="https://stackoverflow.com/"&gt;Stack Overflow&lt;/a&gt;. I was so happy when I found a question relating to my struggle (you know the feeling right?). The worst thing I did was picking the wrong answer. I copied and pasted the following command on my Git cmd:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git fetch --all &amp;amp;&amp;amp; git reset --hard origin/master &amp;amp;&amp;amp; git pull
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After hitting enter my project was gone.&lt;/p&gt;

&lt;h3&gt;
  
  
  How I recovered my project?
&lt;/h3&gt;

&lt;p&gt;I followed the following steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Checking when the tip of my branches was updated
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git reflog
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gave me the following information:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;94e51c5 (HEAD -&amp;gt; master, origin/master) HEAD@{0}: reset: moving to HEAD@{1}
94e51c5 (HEAD -&amp;gt; master, origin/master) HEAD@{1}: reset: moving to HEAD@{2}
94e51c5 (HEAD -&amp;gt; master, origin/master) HEAD@{2}: reset: moving to HEAD@{1}
94e51c5 (HEAD -&amp;gt; master, origin/master) HEAD@{3}: reset: moving to HEAD@{0}
94e51c5 (HEAD -&amp;gt; master, origin/master) HEAD@{4}: reset: moving to 94e51c5
94e51c5 (HEAD -&amp;gt; master, origin/master) HEAD@{5}: reset: moving to HEAD
94e51c5 (HEAD -&amp;gt; master, origin/master) HEAD@{6}: reset: moving to origin/master
52d867f HEAD@{7}: commit: added a new link
80e3e2a HEAD@{8}: commit (initial): initial commit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;I wanted to go back to the first and what I did was:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git reset HEAD@{8}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;HEAD@{8}&lt;/code&gt; was for my initial commit (last line on the results above)&lt;/p&gt;

&lt;p&gt;This listed all the files that I had added and committed with a &lt;code&gt;D&lt;/code&gt; on my CMD, showing that they were deleted.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To recover them I ran the command below:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git restore .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;My project was back&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>How to view .Net application source code and hiding it [Updated]</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Sat, 05 Sep 2020 13:13:39 +0000</pubDate>
      <link>https://dev.to/towernter/how-to-view-net-application-source-code-and-hiding-it-2903</link>
      <guid>https://dev.to/towernter/how-to-view-net-application-source-code-and-hiding-it-2903</guid>
      <description>&lt;p&gt;Have you ever liked an application to the point that you want to view its source code? Well, I have been there. For .Net executable files and libraries such as DLL files, viewing the source code is a piece of cake as long as the code is not obfuscated by the developer. In this article, we are going to view the source code of a .Net DLL file as well as obfuscating it. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The process of viewing the source code of an executable file is the same.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To create a DLL you can check &lt;a href="https://dev.to/towernter/how-to-create-a-dynamic-link-library-dll-and-use-it-in-net-and-python-31oo"&gt;this article&lt;/a&gt; of mine&lt;/p&gt;

&lt;h3&gt;
  
  
  Viewing source code using JetBrains dotPeek
&lt;/h3&gt;

&lt;p&gt;JetBrains dotPeek decompiles an executable file or DLL/.exe file written using .Net to their equivalent C# code. &lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Installing dotPeek&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Download JetBrains dotPeek from &lt;a href="https://www.jetbrains.com/decompiler/" rel="noopener noreferrer"&gt;JetBrains&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Run the setup and install the free .Net decompiler and assembly tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Decompiling the code&lt;/strong&gt;
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Open dotPeek &lt;/li&gt;
&lt;li&gt;File -&amp;gt; Open -&amp;gt; navigate to your project -&amp;gt; select your .DLL/.exe file&lt;/li&gt;
&lt;li&gt;Your project will be listed in the projects on our dotPeek under &lt;code&gt;Assembly Explorer&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Click your project and find the classes to view the source code&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;My file is called &lt;code&gt;MyCalculator.dll&lt;/code&gt; and below is the source code&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6da5sj524v3yunqtvk2o.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6da5sj524v3yunqtvk2o.PNG" alt="Alt Text" width="800" height="341"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Obfuscating the source code&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;For more obfuscating tools both open source and paid versions check this &lt;a href="https://nugetmusthaves.com/Package?q=obfuscator" rel="noopener noreferrer"&gt;NuGet obfuscator article&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this article, I'm using two .Net Obfuscation tools &lt;a href="https://www.armdot.com/download.html" rel="noopener noreferrer"&gt;ArmDot&lt;/a&gt; and &lt;a href="https://www.gapotchenko.com/eazfuscator.net/download" rel="noopener noreferrer"&gt;Eazfuscator&lt;/a&gt;. ArmDot works on both &lt;code&gt;Windows&lt;/code&gt; and &lt;code&gt;Linux&lt;/code&gt;. You can check a &lt;a href=""&gt;full article&lt;/a&gt; where I cover using Armdot in full detail. &lt;/p&gt;

&lt;p&gt;To demonstrate the tools, I will be using a simple C# calculator DLL I wrote some time ago. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NB:&lt;/strong&gt; ArmDot and Eazfuscator.NET are not free software but both have free trials.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;em&gt;Obfuscating With ArmDot&lt;/em&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open your application in Visual Studio&lt;/li&gt;
&lt;li&gt;Right Click Project -&amp;gt; Manage Nuget Packages&lt;/li&gt;
&lt;li&gt;Under Browse Section -&amp;gt; Search for ArmDot&lt;/li&gt;
&lt;li&gt;Install &lt;code&gt;ArmDot.Client&lt;/code&gt; and &lt;code&gt;ArmDot.Engine.MSBuildTasks&lt;/code&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg433sed7nda0iinyd4ed.png" alt="Install ArmDot Nuget packages" width="800" height="310"&gt;
&lt;/li&gt;
&lt;li&gt;Add ArmDot Metadata Annotation to your classes that you want to obfuscate
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;System&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;namespace&lt;/span&gt; &lt;span class="nn"&gt;MyCalculator&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ArmDot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;VirtualizeCode&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="c1"&gt;//ArmDot Annotation&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Calculator&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="c1"&gt;//class code goes here&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Add the MSBuildTask to your project file &lt;code&gt;.csproj&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;Target&lt;/span&gt; &lt;span class="na"&gt;Name=&lt;/span&gt;&lt;span class="s"&gt;"Protect"&lt;/span&gt; &lt;span class="na"&gt;AfterTargets=&lt;/span&gt;&lt;span class="s"&gt;"AfterCompile"&lt;/span&gt; &lt;span class="na"&gt;BeforeTargets=&lt;/span&gt;&lt;span class="s"&gt;"BeforePublish"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;ItemGroup&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;Assemblies&lt;/span&gt; &lt;span class="na"&gt;Include=&lt;/span&gt;&lt;span class="s"&gt;"$(ProjectDir)$(IntermediateOutputPath)$(TargetFileName)"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/ItemGroup&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;ArmDot.Engine.MSBuildTasks.ObfuscateTask&lt;/span&gt;
        &lt;span class="na"&gt;Inputs=&lt;/span&gt;&lt;span class="s"&gt;"@(Assemblies)"&lt;/span&gt;
        &lt;span class="na"&gt;ReferencePaths=&lt;/span&gt;&lt;span class="s"&gt;"@(_ResolveAssemblyReferenceResolvedFiles-&amp;gt;'%(RootDir)%(Directory)')"&lt;/span&gt;
        &lt;span class="na"&gt;SkipAlreadyObfuscatedAssemblies=&lt;/span&gt;&lt;span class="s"&gt;"true"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/Target&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;If you open and check your .exe/.DLL file using dotPeek you will notice that your source code is now obfuscated.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8s2nbh9q8fyspe7uz7lv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8s2nbh9q8fyspe7uz7lv.png" alt="ArmDot Obfuscated code" width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;em&gt;Obfuscating With Eazfuscator.NET&lt;/em&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open your application in Visual Studio&lt;/li&gt;
&lt;li&gt;Change your project from &lt;code&gt;debug&lt;/code&gt; mode to &lt;code&gt;Release&lt;/code&gt; mode
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fo5kn9zhy4jsjilor2n8j.PNG" alt="Alt Text" width="608" height="112"&gt;
&lt;/li&gt;
&lt;li&gt;Open Eazfuscator.NET then drag and drop your project from 
solution explorer to protect it
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frwlgllitbnd0i5lsnp7g.PNG" alt="Alt Text" width="800" height="533"&gt;
&lt;/li&gt;
&lt;li&gt;Rebuild your project and click reload all&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;If you open and check your .exe/.DLL file using dotPeek you will notice that your source code is now obfuscated.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; &lt;em&gt;I am not affiliated with Softanics (ArmDot) or Gapotchenko (Eazfuscator.NET). This article is for educational purposes&lt;/em&gt;.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>beginners</category>
      <category>csharp</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Tweeting with Python</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Sat, 29 Aug 2020 15:59:25 +0000</pubDate>
      <link>https://dev.to/towernter/tweeting-with-python-5fj5</link>
      <guid>https://dev.to/towernter/tweeting-with-python-5fj5</guid>
      <description>&lt;p&gt;Besides the usual apps, twitter has an API that allows you to send tweets or manipulate twitter data with it. In this article, we are going to send tweets using the Twitter API and Python. Assuming you already have a twitter account, here are other things you need:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.python.org/downloads/"&gt;Python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.twitter.com/"&gt;Twitter developer account&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Setting up python on your computer is straight forward, all you need is the download the latest version suitable for the operating system from &lt;a href="https://www.python.org/downloads/"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Setting up a twitter developer account
&lt;/h3&gt;

&lt;p&gt;First, you need to apply for a &lt;a href="https://developer.twitter.com/"&gt;twitter developer account&lt;/a&gt;. Fill the forms accordingly and put in mind that the reasons you give for why you need the developer account affects the approval time of your developer account. The approval of your developer account may take a day or more.&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating an app
&lt;/h3&gt;

&lt;p&gt;Once your developer account is ready, go to your twitter developer account and do the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go developer portal then apps and create a new app. 
Twitter will ask some questions to describe what your app will 
be used for, website and others(answer accordingly and for the 
website, all you need is just a valid URL)&lt;/li&gt;
&lt;li&gt;Generate API keys under keys and tokens and save them well labeled in a separate file on your computer. &lt;/li&gt;
&lt;li&gt;Give your app read and write access rights under permissions&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Writing the code
&lt;/h3&gt;

&lt;p&gt;In this tutorial, we will be using Python's &lt;a href="http://docs.tweepy.org/en/latest/"&gt;tweepy&lt;/a&gt; library to communicate with the Twitter API&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Create your python project&lt;/em&gt;&lt;/strong&gt; I recommend creating a project in a separate &lt;a href="https://dev.to/towernter/setting-up-a-python-virtual-environment-on-windows-1l4p"&gt;virtual environment&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Install tweepy&lt;/em&gt;&lt;/strong&gt; &lt;code&gt;pip install tweepy&lt;/code&gt; or &lt;code&gt;pip install git+https://github.com/tweepy/tweepy.git@2efe385fc69385b57733f747ee62e6be12a1338b&lt;/code&gt; (recommended)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In your Python script: Import the tweepy library that we have installed earlier.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;tweepy&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Initialize the API keys that we generated earlier (you should have them ready saved in a separate file) if not you can still generate them from your developer account.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;consumer_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your consumer key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;consumer_secret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your consumer secret key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;access_token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your access token&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;access_token_secret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your access token secret&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create an authentication to your twitter account. Your app authenticates with your twitter account using your API keys.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;auth&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tweepy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OAuthHandler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;consumer_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;consumer_secret&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set_access_token&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;access_token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;access_token_secret&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tweepy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;API&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a function to tweet some text (your text should be &amp;lt;128 characters)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;tweet_some_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tweet&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;API&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tweet&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to tweet text with a media file like an image use the following function&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;tweet_with_media&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;filename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tweet&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;API&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update_with_media&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;tweet&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a main method to your script (where we are going to call our tweeting functions) replace &lt;code&gt;my_meme.jpg&lt;/code&gt; with your image and location if not in the same folder with your script&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;__main__&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;tweet_some_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Tweeting from backend, isn&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;t that cool?&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;tweet_with_media&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;my_meme.jpg&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;This is a meme&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Full code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;tweepy&lt;/span&gt;

&lt;span class="n"&gt;consumer_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your consumer key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;consumer_secret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your consumer secret key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;access_token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your access token&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;access_token_secret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your access token secret&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="n"&gt;auth&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tweepy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OAuthHandler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;consumer_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;consumer_secret&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set_access_token&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;access_token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;access_token_secret&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tweepy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;API&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;tweet_some_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tweet&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;API&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tweet&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;tweet_with_media&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;filename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tweet&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;API&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update_with_media&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;tweet&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;__main__&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;tweet_some_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Tweeting from backend, isn&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;t that cool?&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# tweet_with_media("my_meme.jpg", "This is a meme")
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If anything goes wrong I will be &lt;a href="https://twitter.com/towernter"&gt;here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>twitter</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Setting up a python virtual environment on Windows</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Sat, 22 Aug 2020 14:49:04 +0000</pubDate>
      <link>https://dev.to/towernter/setting-up-a-python-virtual-environment-on-windows-1l4p</link>
      <guid>https://dev.to/towernter/setting-up-a-python-virtual-environment-on-windows-1l4p</guid>
      <description>&lt;h2&gt;
  
  
  Why create a virtual environment?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fetul41q3tmkm3rtxosel.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fetul41q3tmkm3rtxosel.jpg" alt="Alt Text" width="400" height="242"&gt;&lt;/a&gt;&lt;br&gt;
We create a virtual environment in order to isolate each Python project from other projects on our computer so that each project has its own dependencies.&lt;/p&gt;

&lt;p&gt;Open your CMD and run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python -m venv c:\path\to\yourenvironment
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Example:&lt;/em&gt; &lt;code&gt;python -m venv c:\pythonprojects\myproject&lt;/code&gt;&lt;br&gt;
This will create the following folders/files in your environment&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fb8t87cltibw8y3sfyv09.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fb8t87cltibw8y3sfyv09.PNG" alt="Alt Text" width="631" height="148"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  Creating our python project
&lt;/h4&gt;

&lt;blockquote&gt;
&lt;p&gt;You can create your virtual environment inside an existing project, it will work the same&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Create your python script in your virtual environment (in this case I created a virtual environment first). You can also create the script within a folder inside your virtual environment.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fbx9tkkyzipze2qcc4jxn.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fbx9tkkyzipze2qcc4jxn.PNG" alt="Alt Text" width="638" height="159"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  Running your project
&lt;/h4&gt;

&lt;blockquote&gt;
&lt;p&gt;If your script is inside a folder within your virtual environment, go inside the folder first using your CMD.&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd your-folder-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Activate your virtual environment using your CMD while inside your virtual environment folder using the following commands&lt;/p&gt;

&lt;p&gt;First, navigate to the folder with your virtual environment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd c:\path\to\yourenvironment
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.\Scripts\activate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Mine looks like this:&lt;/em&gt; &lt;code&gt;c:\pythonprojects\myproject&amp;gt;.\Scripts\activate&lt;/code&gt;&lt;br&gt;
Run your script using the following command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python script.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;python name-of-your-script.py&lt;/code&gt; in this case my script is &lt;code&gt;sript.py&lt;/code&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Programming is not easy, here is the secret to mastering programming.</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Sat, 22 Aug 2020 10:00:35 +0000</pubDate>
      <link>https://dev.to/towernter/programming-is-not-easy-here-is-the-secret-to-mastering-programming-1k4b</link>
      <guid>https://dev.to/towernter/programming-is-not-easy-here-is-the-secret-to-mastering-programming-1k4b</guid>
      <description>&lt;p&gt;We've all watched movies where they fix a programming bug like it's a piece of cake. Guess what? it's a lie. If you are a beginner or someone who wants to start a career as a software developer you need to know that programming is not easy and never let anyone tell you otherwise. Discussions among software developers usually involve two lovely words, COPY and PASTE. Its true, programming involves a lot of copying and pasting, and having the power to copy and paste code as well as making it work is like enjoying a view from a mountain top. However to enjoy the view you have to climb the mountain first which is the difficult part and the secret in this article.&lt;/p&gt;

&lt;p&gt;There are many ways of mastering programming but here are some of the ways that I think are very helpful in becoming a better software developer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Be enthusiastic
&lt;/h3&gt;

&lt;p&gt;Breath programming, speak about programming, write about programming, and live a programming life. To become a better programmer you have to enjoy programming, you need to be strongly interested and make it part of your life. Most great developers have no social life but however, you need to know your limits and have other social activities to help you clear your mind since writing code requires a strong, fresh, and active mind.&lt;/p&gt;

&lt;h3&gt;
  
  
  Be part of programming communities
&lt;/h3&gt;

&lt;p&gt;Be part of programming communities as well as surrounding yourself with other programmers. Read articles on programming, watch podcasts, and be part of programming meetups. There are great programming communities on every social media platform be part of them even a community of programming memes is a good idea, memes can teach you new concepts. &lt;/p&gt;

&lt;h3&gt;
  
  
  Ask questions
&lt;/h3&gt;

&lt;p&gt;Do not hesitate to ask questions to your fellow programmers, we all learn through asking questions. You can ask questions on a platform like twitter you will get responses from experts though communities like &lt;a href="https://stackoverflow.com/"&gt;Stackoverflow&lt;/a&gt; and &lt;a href="https://quora.com"&gt;Quora&lt;/a&gt; are the best for programming questions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Start with the basics
&lt;/h3&gt;

&lt;p&gt;When you start learning to program do not skip the first pages of a book or the first minutes of a video tutorial. Start with how to declare a variable before trying to save data in a database. Always learn the fundamentals then jump into frameworks and this will make your life easier.&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenge yourself
&lt;/h3&gt;

&lt;p&gt;To master programming, there is a need for consistency. You need to practice every day. The twitter dev community has a &lt;code&gt;100DaysOfCode&lt;/code&gt; challenge which is very helpful. You can use it for consistency sharing of updates on your programming journey and you will be able to meet experts that can help you become a better programmer.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Lastly, remember counting starts from zero and the root is at the top of the tree.  &lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>100daysofcode</category>
      <category>codenewbie</category>
      <category>beginners</category>
      <category>career</category>
    </item>
    <item>
      <title>How to create a dynamic link library (DLL) and use it in .Net and Python</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Sun, 09 Aug 2020 13:43:32 +0000</pubDate>
      <link>https://dev.to/towernter/how-to-create-a-dynamic-link-library-dll-and-use-it-in-net-and-python-31oo</link>
      <guid>https://dev.to/towernter/how-to-create-a-dynamic-link-library-dll-and-use-it-in-net-and-python-31oo</guid>
      <description>&lt;h3&gt;
  
  
  What is a DLL file?
&lt;/h3&gt;

&lt;p&gt;A library is a collection of non-volatile resources that are used for software development. In this tutorial, we are going to create our own dynamic link library(DLL) using c#. A &lt;a href="https://support.microsoft.com/en-us/help/815065/what-is-a-dll"&gt;DLL&lt;/a&gt; is a library used on Microsoft platforms that contains code and data that can be used by more than one program at the same time. If you open the program information of most applications installed on Microsoft Windows you will notice DLL files. These DLL files store different functionalities for the application. Some of the advantages of DLL files are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Code reuse &lt;/li&gt;
&lt;li&gt;Efficient memory usage&lt;/li&gt;
&lt;li&gt;Reduced disk space &lt;/li&gt;
&lt;li&gt;Fast loading of applications&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Making a DLL file
&lt;/h3&gt;

&lt;p&gt;In this tutorial, we are going to make a simple calculator library that does addition, subtraction, multiplication, and division using C# in &lt;a href="https://visualstudio.microsoft.com/"&gt;Visual Studio&lt;/a&gt;.&lt;/p&gt;

&lt;h5&gt;
  
  
  Create the project (library) in Visual Studio as follows
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;Create new project&lt;/li&gt;
&lt;li&gt;Select C# Class Library (.Net Standard)&lt;/li&gt;
&lt;li&gt;Project name -&amp;gt; MyCalculator&lt;/li&gt;
&lt;/ol&gt;

&lt;h5&gt;
  
  
  The code for your library
&lt;/h5&gt;

&lt;p&gt;Add the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;System&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;namespace&lt;/span&gt; &lt;span class="nn"&gt;MyCalculator&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Calculator&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;//Our addition function&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="k"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;num_one&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;num_two&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;num_one&lt;/span&gt; &lt;span class="p"&gt;+&lt;/span&gt; &lt;span class="n"&gt;num_two&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="c1"&gt;//Our subtraction function&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="nf"&gt;subtract&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;num_one&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;num_two&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;num_one&lt;/span&gt; &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="n"&gt;num_two&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="c1"&gt;//Our multiplication function&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="nf"&gt;multiply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;num_one&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;num_two&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;num_one&lt;/span&gt; &lt;span class="p"&gt;*&lt;/span&gt; &lt;span class="n"&gt;num_two&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="c1"&gt;//Our division function&lt;/span&gt;
        &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="nf"&gt;divide&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;num_one&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;num_two&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;num_one&lt;/span&gt; &lt;span class="p"&gt;/&lt;/span&gt; &lt;span class="n"&gt;num_two&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;         
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  Building your library project
&lt;/h5&gt;

&lt;p&gt;Click on: Build -&amp;gt; Build Solution&lt;/p&gt;

&lt;h5&gt;
  
  
  Locating your Calculator Library
&lt;/h5&gt;

&lt;p&gt;Your &lt;code&gt;MyCalculator.dll&lt;/code&gt; is located in:&lt;/p&gt;

&lt;p&gt;Your project folder -&amp;gt; MyCalculator -&amp;gt; MyCalculator -&amp;gt; bin -&amp;gt; debug&lt;/p&gt;

&lt;h3&gt;
  
  
  Using the DLL file in .Net
&lt;/h3&gt;

&lt;p&gt;We are going to use our Calculator library &lt;code&gt;MyCalculator.dll&lt;/code&gt; in a simple C# application.&lt;/p&gt;

&lt;h5&gt;
  
  
  Create a c# console application in Visual Studio as follows:
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;File -&amp;gt; New -&amp;gt; Project&lt;/li&gt;
&lt;li&gt;Select: C# Console App &lt;/li&gt;
&lt;li&gt;Project name: MyProject&lt;/li&gt;
&lt;/ol&gt;

&lt;h5&gt;
  
  
  Importing our calculator library
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;Copy &lt;code&gt;MyCalculator.dll&lt;/code&gt; from: Your library project folder -&amp;gt; MyCalculator -&amp;gt; MyCalculator -&amp;gt; bin -&amp;gt; debug&lt;/li&gt;
&lt;li&gt;Paste &lt;code&gt;MyCalculator.dll&lt;/code&gt; to Your project folder -&amp;gt; MyProject -&amp;gt; MyProject -&amp;gt; bin -&amp;gt; debug&lt;/li&gt;
&lt;li&gt;Add reference to your dll file:
In solution explorer: Under MyProject -&amp;gt; Right click MyProject
-&amp;gt; add -&amp;gt; Project reference&lt;/li&gt;
&lt;li&gt;Browse: Go to (Your project folder -&amp;gt; MyCalculator -&amp;gt; MyCalculator -&amp;gt; bin -&amp;gt; debug -&amp;gt; &lt;code&gt;MyCalculator.dll&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Click add&lt;/li&gt;
&lt;/ol&gt;

&lt;h5&gt;
  
  
  The code for your project (MyProject)
&lt;/h5&gt;

&lt;p&gt;Edit your code as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;System&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;MyCalculator&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// importing our calculator library&lt;/span&gt;

&lt;span class="k"&gt;namespace&lt;/span&gt; &lt;span class="nn"&gt;MyProject&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Program&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;Main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;Calculator&lt;/span&gt; &lt;span class="n"&gt;calc&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;Calculator&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="c1"&gt;//Our Acalculator class object&lt;/span&gt;

            &lt;span class="n"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;WriteLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Addition: "&lt;/span&gt;&lt;span class="p"&gt;+&lt;/span&gt;&lt;span class="n"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
            &lt;span class="n"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;WriteLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Subtraction: "&lt;/span&gt; &lt;span class="p"&gt;+&lt;/span&gt; &lt;span class="n"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subtract&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
            &lt;span class="n"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;WriteLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Multiplication: "&lt;/span&gt; &lt;span class="p"&gt;+&lt;/span&gt; &lt;span class="n"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;multiply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
            &lt;span class="n"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;WriteLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Division: "&lt;/span&gt; &lt;span class="p"&gt;+&lt;/span&gt; &lt;span class="n"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;divide&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Using the DLL file in Python
&lt;/h3&gt;

&lt;p&gt;Install &lt;code&gt;pythonnet&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h4&gt;
  
  
  Python code
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;clr&lt;/span&gt; &lt;span class="c1"&gt;#import clr from pythonnet
&lt;/span&gt;
&lt;span class="c1"&gt;#load our dll file(mine is in my C:\\ folder)
&lt;/span&gt;&lt;span class="n"&gt;clr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddReference&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;C:&lt;/span&gt;&lt;span class="se"&gt;\\&lt;/span&gt;&lt;span class="s"&gt;MyCalculator.dll&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;#import our calculator class from Our C# namespace MyCalculator
&lt;/span&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;MyCalculator&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Calculator&lt;/span&gt;

&lt;span class="n"&gt;calc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Calculator&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="c1"&gt;#create our Calculator object
&lt;/span&gt;
&lt;span class="c1"&gt;#calling our methoths and printing
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Addition: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nf"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Subtraction: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nf"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subtract&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Multiplication: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nf"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;multiply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Division: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nf"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;calc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;divide&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>dotnet</category>
      <category>beginners</category>
      <category>csharp</category>
      <category>python</category>
    </item>
    <item>
      <title>Handling a viral tweet and how you can benefit from it</title>
      <dc:creator>Tawanda Nyahuye</dc:creator>
      <pubDate>Mon, 27 Jul 2020 11:59:58 +0000</pubDate>
      <link>https://dev.to/towernter/handling-a-viral-tweet-and-how-you-can-benefit-from-it-2fj7</link>
      <guid>https://dev.to/towernter/handling-a-viral-tweet-and-how-you-can-benefit-from-it-2fj7</guid>
      <description>&lt;p&gt;A viral tweet, a dream of every twitter user. It gives a great feeling, this article gives you some of the tips to help you benefit from such a great moment.&lt;/p&gt;

&lt;p&gt;It's quite tricky to define what a viral tweet is, therefore in this article a viral tweet refers to a tweet with a performance that is enough to pump you up. It depends on an account, for some accounts, a viral tweet is a tweet that is performing or has performed well and is likely to reach or has reached thousands of likes but for some accounts, a tweet with hundred likes or even less is viral tweet. &lt;/p&gt;

&lt;p&gt;Here is how you can benefit from a viral tweet and how to achieve it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Increasing your following&lt;/li&gt;
&lt;li&gt;Promoting your other social media accounts&lt;/li&gt;
&lt;li&gt;Promoting your business&lt;/li&gt;
&lt;li&gt;Promoting your blog&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Increasing your following
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Putting your profile in order&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whenever one of your tweets goes viral people will start following you, notifications will blow up and you can start panicking. Some thoughts will suggest you post more content or turning off your notifications. If you ever go through this you need to hold your horses. When you get a viral tweet people will visit your profile therefore you need to put your profile in order. Update your profile to make it look interesting, it is a good idea to make your profile relate to your viral tweet so that people can relate to both your tweet and your profile.&lt;/p&gt;

&lt;p&gt;Update your header if it is not looking good. Put a link to your blog or website on your profile in order to look legit. A nice profile will attract people visiting your profile and they are likely to follow you.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Show people your best tweets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Stop retweeting a lot of stuff especially tweets that do not relate to your viral tweet or profile. People visiting your profile will check what you have tweeted recently, therefore, make it easy and avoid wasting their time. It is a good idea to retweet a few of your tweets that have performed well recently. Pin one of your best tweets to your profile, people like following users who get a lot of impressions. There is no need for you to pin the currently well-performing tweet, people visiting your profile are already aware of it. &lt;/p&gt;

&lt;p&gt;Never beg to be followed that's a turn-off, people don't follow you because you told them to, they follow you because they are interested in your content. Many people make this mistake by replying to a viral tweet with a tweet that says, "follow me". Instead, you can reply to your viral tweet with your best tweet or a link to your recent tweets(twitter usually picks the best ones). You can achieve this as follows: &lt;strong&gt;Check out some of my tweets&lt;/strong&gt; then add a link to the same reply as follows: &lt;code&gt;&lt;br&gt;
https://twitter.com/search/?q=from:put-your-user-name-here/exclude:replies&lt;/code&gt;&lt;br&gt;
An example, of how this works, &lt;a href="https://twitter.com/search/?q=from:towernter/exclude:replies"&gt;this link&lt;/a&gt; will direct you to my tweets excluding replies.&lt;/p&gt;

&lt;h4&gt;
  
  
  Promoting your other social media accounts
&lt;/h4&gt;

&lt;p&gt;Whenever one of your tweets starts going viral, make use of it to promote your other social media accounts like your youtube channel or Instagram account. You can easily achieve this by replying to the tweet with a link to the social media account that you want to promote. Do not reply with the link only, add some text for example: "check out my youtube channel" then add a link to the same reply. You can also use this technique to promote your friend's twitter or social media account.&lt;/p&gt;

&lt;h4&gt;
  
  
  Promoting your business
&lt;/h4&gt;

&lt;p&gt;Never let your viral tweet be pointless, a viral tweet is a way of marketing yourself or business for free. You will be surprised that some people will be interested in your products or services. All you need to do is to reply to your tweet showing what you do or your business website. Adding some pictures, if you make music add a link to your SoundCloud if you have an account. &lt;/p&gt;

&lt;h4&gt;
  
  
  Promoting your blog
&lt;/h4&gt;

&lt;p&gt;A viral tweet is a chance for you to drive traffic to your blog. Just like promoting your business or social media, you can also reply with your favorite blog post or a link to the whole blog.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This does not apply to your tweets only, but you can also do the same using someone else's viral tweet. It sounds lame but why not do it if you can benefit from it. &lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>twitter</category>
      <category>tips</category>
      <category>socialmedia</category>
      <category>hacks</category>
    </item>
  </channel>
</rss>
