<?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: Grant McNamara</title>
    <description>The latest articles on DEV Community by Grant McNamara (@grantrocks).</description>
    <link>https://dev.to/grantrocks</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%2F766642%2Fb483a5de-8d0f-4372-9430-24a09b537948.png</url>
      <title>DEV Community: Grant McNamara</title>
      <link>https://dev.to/grantrocks</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/grantrocks"/>
    <language>en</language>
    <item>
      <title>Why Owning a Website is a Good Idea</title>
      <dc:creator>Grant McNamara</dc:creator>
      <pubDate>Mon, 09 Oct 2023 15:04:17 +0000</pubDate>
      <link>https://dev.to/grantrocks/why-owning-a-website-is-a-good-idea-5c7e</link>
      <guid>https://dev.to/grantrocks/why-owning-a-website-is-a-good-idea-5c7e</guid>
      <description>&lt;p&gt;This article is from my website &lt;a href="//Grants%20Electronics."&gt;https://grantselectronics.com/why-owning-a-website-is-a-good-idea/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In today’s digital age, having a strong online presence is crucial for businesses and individuals alike. Whether you are a small business owner, a freelancer, or simply someone who wants to showcase their work or ideas, owning a website can provide numerous benefits. In this article, we will explore why owning a website is a good idea and how it can help you achieve your goals.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Establishes Credibility
&lt;/h2&gt;

&lt;p&gt;Having a website gives you a professional edge and establishes credibility. It shows that you are serious about your business or personal brand and are willing to invest in it. Potential clients, customers, or employers are more likely to trust and take you seriously when they see that you have a well-designed and functional website.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Increases Visibility
&lt;/h2&gt;

&lt;p&gt;A website helps you reach a wider audience and increases your visibility. With billions of people using the internet every day, having an online presence allows you to showcase your products, services, or portfolio to a global audience. This opens up opportunities for growth and expansion that would not be possible with traditional marketing methods alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Improves Customer Engagement
&lt;/h2&gt;

&lt;p&gt;A website provides a platform for you to engage with your customers or audience. You can include features such as contact forms, comment sections, or live chat to encourage interaction and gather feedback. By listening to your customers and responding to their needs, you can build strong relationships and improve customer satisfaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Showcases Your Work or Ideas
&lt;/h2&gt;

&lt;p&gt;Whether you are an artist, a writer, a photographer, or a business owner, a website allows you to showcase your work or ideas in a centralized and organized manner. You can create portfolios, galleries, or blogs to display your creations, share your knowledge, or provide valuable information to your target audience. This helps you build a strong online presence and attract potential clients or customers.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Boosts Marketing Efforts
&lt;/h2&gt;

&lt;p&gt;A website is a powerful marketing tool that can enhance your overall marketing efforts. You can optimize your website for search engines, use social media integration to reach a wider audience, and implement various digital marketing strategies to drive traffic and convert visitors into customers. By combining your website with other marketing channels, you can create a comprehensive and effective marketing strategy.&lt;/p&gt;

&lt;p&gt;Owning a website is no longer an option but a necessity in today’s digital landscape. It allows you to establish credibility, increase visibility, engage with customers, showcase your work or ideas, and boost your marketing efforts. Whether you are a business owner, a freelancer, or an individual with a passion, owning a website can help you achieve your goals and take your online presence to the next level.&lt;/p&gt;

&lt;p&gt;If you have some more reasons why owning a website is a good idea, feel free to share!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>website</category>
      <category>beginners</category>
      <category>discuss</category>
    </item>
    <item>
      <title>How to make a Solana Token in just 3 minutes!</title>
      <dc:creator>Grant McNamara</dc:creator>
      <pubDate>Fri, 10 Feb 2023 18:09:33 +0000</pubDate>
      <link>https://dev.to/grantrocks/how-to-make-a-solana-token-in-just-3-minutes-3c36</link>
      <guid>https://dev.to/grantrocks/how-to-make-a-solana-token-in-just-3-minutes-3c36</guid>
      <description>&lt;p&gt;Before I begin with this post, I am asking people to donate some Solana. I just recently used this method to make myself a token and I am trying to get it on the market. Im poor so any donation to help me get it published will help a ton. ALSO anyone that donates will get 1k &lt;a href="https://explorer.solana.com/address/ASnY1xvjDnyJLdTbWoGmsnsCiqncYazcWWnuQ4sgrA6u"&gt;GDVC&lt;/a&gt; for free. I will send the token to the address that sends me some solana. THIS IS NOT A SCAM!! Send solana here: Fmxpd5adjh7iXnNvhByAWKjvLthRCA4DBNFFbsupesGd&lt;/p&gt;

&lt;p&gt;FIRST TO COMMENT GETS 10K GDVC!&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;In order to create a token on the solana blockchain you will want around 0.005 SOL so that all fees are covered. If you cant directly purchase some solana I recommend using FaucetPay to get some cryptocurrency fast and easy. I would also recommend signing up for Freecash to send some crypto your faucet pay account. Completing 1 survey will normally get you $0.50 which is more than enough solana. If you dont want to do a survey than just go to several faucets on faucetpay and claim. That takes much much longer though. Once you have obtained enough solana you need a web3 crypto wallet to interact with the dapp. I recommend using the Exodus Wallet extension as it offers compatibility with phantom connections, exodus connections, etc.&lt;/p&gt;

&lt;p&gt;Now before you create your currency you need to do some research to make sure that the name of the currency you want to make doesn't already exist! I would also highly recommend creating a logo for your token as it makes it look a lot better.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating Your Token
&lt;/h2&gt;

&lt;p&gt;Timer starts now! Head over to &lt;a href="https://app.strataprotocol.com/launchpad"&gt;https://app.strataprotocol.com/launchpad&lt;/a&gt; and select create new token and then self managed. Connect your wallet and approve all the requests. Then fill out the details for your currency. If the token you want to make already exists it will fail to be created and you will be charged fees still! Once the form is filled out just click create token and approve all transaction requests. It will send several of these and you have to approve all of them. Those are fees for creating the token, creating an account for the token, and publishing metadata. Once it finishes you can go to your wallet, add the token contract and BOOM. You have just created your own currency.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next Steps
&lt;/h2&gt;

&lt;p&gt;Everything below is optional. &lt;/p&gt;

&lt;p&gt;Disable minting on your token.&lt;/p&gt;

&lt;p&gt;Get a OpenBook Market ID: &lt;a href="https://www.serumexplorer.xyz/market/create"&gt;https://www.serumexplorer.xyz/market/create&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add your token to exchanges such as Raydium.io&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>A Cryptocurrency That Can Be Mined With a Arduino?</title>
      <dc:creator>Grant McNamara</dc:creator>
      <pubDate>Thu, 10 Feb 2022 21:42:19 +0000</pubDate>
      <link>https://dev.to/grantrocks/a-cryptocurrency-that-can-be-mined-with-a-arduino-h18</link>
      <guid>https://dev.to/grantrocks/a-cryptocurrency-that-can-be-mined-with-a-arduino-h18</guid>
      <description>&lt;p&gt;Yes you read the title right. There is a cryptocurrency that can be mined with the arduino. This cryptocurrency is called Duino Coin or DUCO. Its a somewhat new cryptocurrency that operates on the ERC-20 chain. Its very easy to mine and I will tell you how to do that. &lt;/p&gt;

&lt;h2&gt;
  
  
  A Little Info
&lt;/h2&gt;

&lt;p&gt;The cryptocurrency duino coin was designed so that there would be low electricity costs and be eco friendly. Its very simple and easy to use. All you have to do is go to the website &lt;a href="https://duinocoin.com"&gt;https://duinocoin.com&lt;/a&gt; and click web wallet or get started make a wallet and then follow the next steps. &lt;/p&gt;

&lt;h2&gt;
  
  
  Mining Duino Coin
&lt;/h2&gt;

&lt;p&gt;If you want to mine duino coin you should not mine it with high end hardware. You want to mine it with low end hardware such as the arduino uno or raspberry pi pico. The reason for this is duino coin aims to be a eco-friendly cryptocurrency so they reward you with less crypto than you would get mining with a 5 dollar computer so that you dont use as much energy mining with a expensive pc. This is truly a great thing to do and you should give duino coin a look. The steps to mining duino coin are fairly simple. Download their repo which &lt;a href="https://github.com/revoxhere/duino-coin/archive/refs/heads/master.zip"&gt;you can do right here&lt;/a&gt;. Then install arduino which I will have a article on my site for and setup your arduino with the program. Once your arduino has the mining program installed launch the avr miner program and watch yourself mine duino coin on a small board that uses pretty much no electricity. And if you want to take this even further you can setup a standalone mining rig which can be found in their getting started page.&lt;br&gt;
Mining on a raspberry pi? The setup is simple. Use the following command and it will install everything for you. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;cd&lt;br&gt;
wget https://raw.githubusercontent.com/Grantrocks/duino-coin/master/Tools/duco-install-rpi.sh&lt;br&gt;
sudo chmod a+x duco-install-rpi.sh&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Let me know how this script worked for you because I am trying to add it to the official duino coin repository for everyone to use too.&lt;/p&gt;

&lt;p&gt;Please follow and go check &lt;a href="https://cryptoandpi.cf"&gt;out my website&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>arduino</category>
      <category>blockchain</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How To Mine XMR On A Raspberry Pi In 2022</title>
      <dc:creator>Grant McNamara</dc:creator>
      <pubDate>Tue, 25 Jan 2022 12:13:26 +0000</pubDate>
      <link>https://dev.to/grantrocks/how-to-mine-xmr-on-a-raspberry-pi-in-2022-updated-from-the-old-article-1gon</link>
      <guid>https://dev.to/grantrocks/how-to-mine-xmr-on-a-raspberry-pi-in-2022-updated-from-the-old-article-1gon</guid>
      <description>&lt;p&gt;It's 2022 now and the world of crypto currency has never been more popular. Crypto currency is almost everywhere now. Its advertised online and heck crypto.com purchased a basketball stadium down in california. But all of these new words such as NFT, crypto, address, private key, safe, secure ,etc are a bit confusing to the beginners. So if you are new to this kind of stuff, &lt;a href="https://cryptoandpi.cf/blog/posts"&gt;check out my site and watch the blog&lt;/a&gt; to see if a new article about this is posted. If you already know about crypto and you currently use it but would like to know how to mine it then read on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Note
&lt;/h2&gt;

&lt;p&gt;So I just launched one of my old sites, &lt;a href="https://cryptoandpi.cf"&gt;cryptoandpi.cf&lt;/a&gt;, again. It's not doing very well right now in traffic so a small visit would help. I try to regularly publish content there as well as possible too though so it is still growing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;If you want to mine monero on your raspberry pi then there are a few details I should tell you. Now you are not going to get rich by mining on the raspberry pi. Its a low-powered, single board computer, with a arm processor that runs a special operating system. Yes it needs a special os to mine. The regular raspberry pi 32-bit os wont cut it. It used to but not anymore. In october 2021 the terminal that was used for apps like xmrig, was shutdown. It is no longer available to install on your pi. But you can get around this by simply using the 64-bit raspberry pi os. Just look it up on google and you'll find it easily. Once you have that setup on your sd, boot it up, set it up and then your raspberry pi is ready to mine, almost. &lt;/p&gt;

&lt;h2&gt;
  
  
  Tweaks
&lt;/h2&gt;

&lt;p&gt;There are still a few things that you might want to do with your raspberry pi before you mine, to improve your hashrate. First thing you will want to do is overclock it. This is super simple to do. Just type in the command&lt;code&gt;sudo nano /boot/config.txt&lt;/code&gt;. Then go down to the section that says something about the &lt;code&gt;arm_freq=800&lt;/code&gt; and then do the following. Uncomment to &lt;code&gt;arm_freq=800&lt;/code&gt; and change the number to 2147 and then below it add &lt;code&gt;gpu_freq=750&lt;/code&gt; and then below that add &lt;code&gt;over_voltage=6&lt;/code&gt;. Now look through your boot config and look for something that says &lt;code&gt;arm_boost=1&lt;/code&gt; and that is usually at the bottom. But if you don't see it just add it to the bottom of the file. Now save it and then reboot. When your raspberry pi boots back up, it should now be overclocked. In the event that your raspberry pi fails to boot, plug it in to another computer and edit the config file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Packages
&lt;/h2&gt;

&lt;p&gt;Xmrig won't run just by itself. It will need a few packages to compile and it will need some for running too. To install the packages that you need just run the following command. sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev &lt;br&gt;
That will install the needed packages such as cmake and git.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Xmrig
&lt;/h2&gt;

&lt;p&gt;The last thing that you want to do is install the mining software. To do this you need to first download the program and then set build configuration files and then build it or install it. This is extremely simple to do. The following commands will do this. &lt;br&gt;
&lt;code&gt;git clone https://github.com/xmrig/xmrig.git &lt;br&gt;
mkdir xmrig/build &amp;amp;&amp;amp; cd xmrig/build &lt;br&gt;
cmake .. &lt;br&gt;
make -j4&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Once these commands finish up you are just about ready to mine. You first need to make a monero wallet and then head over to the &lt;a href="https://xmrig.com/wizard"&gt;xmrig config wizard&lt;/a&gt; and setup a file there. Just a small tip I recommend using the pool xmrpool.eu as it is fast and easier on the pi. Mining here will result in much faster mining. There is one last thing you need to do now. Put the downloaded config file in the build directory and then close all other programs head over to the terminal, make sure your in the xmrig build directory and then run &lt;code&gt;sudo ./xmrig&lt;/code&gt;. It will also work without root privileges but using root makes your pi mine faster. &lt;/p&gt;

&lt;p&gt;That's all for today's article and please follow so you don't miss any more great content. &lt;a href="https://cryptoandpi.cf"&gt;Also go visit my site that I just relaunched.&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>tutorial</category>
      <category>opensource</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>How To Make A Extension For Edge or Chrome</title>
      <dc:creator>Grant McNamara</dc:creator>
      <pubDate>Mon, 13 Dec 2021 13:38:37 +0000</pubDate>
      <link>https://dev.to/grantrocks/how-to-make-a-extension-for-edge-or-chrome-35ok</link>
      <guid>https://dev.to/grantrocks/how-to-make-a-extension-for-edge-or-chrome-35ok</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ya12bhvuf5cuse95nsx.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%2F6ya12bhvuf5cuse95nsx.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
Ever install a extension on your web browser. A ad blocker, a game, a tool? Its almost guaranteed that you have installed a extension for your web browser sometime in your life. Extensions are a great way to add useful features to your browser or personalize it. Sometimes you can't find what you need and you would like to make one yourself but you don't know how. That's what we are going to be going over.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Should You Make One?
&lt;/h2&gt;

&lt;p&gt;Making a extension is a great idea as it can grow to be a great source of income. Extensions also can act as previous work proof that you can use to get into a good college or job that you would like. While making a extension you may learn a new programming language and it may be something to do on the side if you dont have something already. And to be honest, it's pretty easy to do.&lt;/p&gt;
&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;Before you make a extension you need to have a IDE or some file editor. That will be used to edit the files for your extension. You will also need a idea of what to do with your extension such as making it a game or weather app. Once you are ready to start making it read the following.&lt;/p&gt;
&lt;h2&gt;
  
  
  Manifest.json
&lt;/h2&gt;

&lt;p&gt;Before you start to make your extension you need a file to specify details about your extension. In the manifest file you need to declare the name of your app, the description, the version, needed permissions(if used), needed external sources(if used), etc. Making the manifest file is the easiest step of making your extension. The format for your manifest.json file is below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "name": "Current Weather",
  "description": "Get the current weather from this small extension. This extension needs your location to get the weather for your area.",
  "version": "1.0",
  "manifest_version": 3,
  "action": {
    "default_popup": "index.html",
    "default_icon": "cwlogo.png"
  },
  "options_ui": {
    "page": "settings.html"
  },
  "permissions": [
          "geolocation",
          "notifications"
  ],
  "host_permissions": [
  "https://api.openweathermap.org/",
  "https://translate.google.com/"
  ],
  "commands": {
    "_execute_action": {
      "suggested_key": {
        "default": "Ctrl+Shift+F",
        "mac": "MacCtrl+Shift+F"
      },
      "description": "Opens index.html"
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the manifest.json file for one of my extensions Current Weather which you can download on &lt;a href="https://microsoftedge.microsoft.com/addons/detail/current-weather/idnopmbgjahabdlbihbjeinagcldodbg" rel="noopener noreferrer"&gt;Edge here&lt;/a&gt;. As you can see, it uses the external source api.openweathermap.org and it uses services such as geolocation. It also has a settings page, which is not needed. &lt;a href="http://adfoc.us/57024782096130" rel="noopener noreferrer"&gt;You can view all of the permissions here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Looking at the manifest.json you can see that it has a icon and a action page. The icon is the small little picture that you see when you have a extension installed. The action page is the little page that pops up when you click on the extension. Those are the pages that are the actual extension itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making The UI
&lt;/h2&gt;

&lt;p&gt;This step is pretty easy. The popup page uses HTML and HTML can use other sources. My extension uses HTML and the HTML uses javascript. If you are unfamiliar with HTML than view my &lt;a href="https://dev.to/grantrocks/how-to-start-a-website-from-scratch-using-html-2pj7"&gt;other article about HTML.&lt;/a&gt; You first need to make the layout for a HTML page and then you need to make sure that the name of the HTML file is in the manifest.json file so that way it works when you click on it. The layout for my HTML page is below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width"&amp;gt;
    &amp;lt;title&amp;gt;Current Weather&amp;lt;/title&amp;gt;
    &amp;lt;link href="style.css" rel="stylesheet" type="text/css" /&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="body"&amp;gt;
    &amp;lt;table&amp;gt;
    &amp;lt;thead&amp;gt;
      &amp;lt;th&amp;gt;Tempature&amp;lt;/th&amp;gt;
      &amp;lt;th&amp;gt;Humidity&amp;lt;/th&amp;gt;
      &amp;lt;th&amp;gt;Description&amp;lt;/th&amp;gt;
      &amp;lt;th&amp;gt;Icon&amp;lt;/th&amp;gt;
    &amp;lt;/thead&amp;gt;
    &amp;lt;tbody&amp;gt;
      &amp;lt;tr&amp;gt;
        &amp;lt;td id="temp"&amp;gt;&amp;lt;/td&amp;gt;
        &amp;lt;td id="humidity"&amp;gt;&amp;lt;/td&amp;gt;
        &amp;lt;td id="description"&amp;gt;&amp;lt;/td&amp;gt;
        &amp;lt;td id="icon" style="background-color: gray;"&amp;gt;&amp;lt;/td&amp;gt;
      &amp;lt;/tr&amp;gt;
    &amp;lt;/tbody&amp;gt;  
    &amp;lt;/table&amp;gt;
    &amp;lt;table&amp;gt;
      &amp;lt;thead&amp;gt;
        &amp;lt;th&amp;gt;Min Temp&amp;lt;/th&amp;gt;
        &amp;lt;th&amp;gt;Max Temp&amp;lt;/th&amp;gt;
        &amp;lt;th&amp;gt;Windspeed | Degree&amp;lt;/th&amp;gt;
        &amp;lt;th&amp;gt;Pressure&amp;lt;/th&amp;gt;
      &amp;lt;/thead&amp;gt;
      &amp;lt;tbody&amp;gt;
        &amp;lt;tr&amp;gt;
        &amp;lt;td id="mintemp"&amp;gt;&amp;lt;/td&amp;gt;
        &amp;lt;td id="maxtemp"&amp;gt;&amp;lt;/td&amp;gt;
        &amp;lt;td id="wspdg"&amp;gt;&amp;lt;/td&amp;gt;  
        &amp;lt;td id="pressure"&amp;gt;&amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
      &amp;lt;/tbody&amp;gt;
    &amp;lt;/table&amp;gt;
    &amp;lt;center&amp;gt;&amp;lt;div id="result" style="font-size: 20px;"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div id="google_translate_element"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/center&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="script.js"&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you can see I use a javascript file to get the weather from api.openweathermap.org. The HTML page that I have set up has a table for the weather data. The javascript file uses the resources from the HTML page. Which brings us to the next section.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Backend
&lt;/h2&gt;

&lt;p&gt;Now that you got a nice and fancy UI you now need to make a less appealing file for the fancy UI. Make a file named script.js and make sure that it is in the same directory with the rest of the files. Now make your js file the way you want your app to work and then you should link it to your HTML file and you should be good to go with the html. The backend for my extension is below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, 'google_translate_element');
}
  navigator.geolocation.getCurrentPosition(function(position) {

        const latitude = position.coords.latitude;
        const longitude = position.coords.longitude;
        const altitude = position.coords.altitude;
        const accuracy = position.coords.accuracy;
        const altitudeAccuracy = position.coords.altitudeAccuracy;
        const heading = position.coords.height;
        const speed = position.coords.speed;
        const timestamp = position.timestamp;

        // work with this information however you'd like!
    });
   function locationSuccess(position) {
        const latitude = position.coords.latitude;
        const longitude = position.coords.longitude;
        const altitude = position.coords.altitude;
        const accuracy = position.coords.accuracy;
        const altitudeAccuracy = position.coords.altitudeAccuracy;
        const heading = position.coords.height;
        const speed = position.coords.speed;
        const timestamp = position.timestamp;
        getweather(latitude, longitude);
        // work with this information however you'd like!
    }

    function locationError(error) {
        const code = error.code;
        const message = error.message;
        // read the code and message and decide how you want to handle this!
        document.getElementById('result').innerHTML = message;
    }

    navigator.geolocation.getCurrentPosition(locationSuccess, locationError);
function getweather(latitude, longitude){
const key = "6ea81243e055f1218d43cb862f1da44c";
const link = "https://api.openweathermap.org/data/2.5/weather?lat="+latitude+"&amp;amp;lon="+longitude+"&amp;amp;units=imperial&amp;amp;apikey="+key+"&amp;amp;lang="+localStorage.lang;
let request = new XMLHttpRequest();
request.open('GET', link);
request.responseType = 'json';
request.send();
request.onload = function() {
  const data = request.response;
  showweather(data)
}};
function showweather(obj) {
  var date = new Date(obj.dt * 1000);
// Hours part from the timestamp
var hours = date.getHours();
// Minutes part from the timestamp
var minutes = "0" + date.getMinutes();
// Seconds part from the timestamp
var seconds = "0" + date.getSeconds();
var formattedTime = hours + ':' + minutes.substr(-2) + ':' + seconds.substr(-2);

  const weather = obj['weather'];
  var mt = obj.main.temp_min;
  for (let i = 0; i &amp;lt; weather.length; i++) {
    var icon = weather[i].icon;
    document.getElementById("temp").innerHTML = obj.main.temp+"&amp;amp;deg;F";
    document.getElementById("humidity").innerHTML = obj.main.humidity+"%";
    document.getElementById("description").innerHTML = weather[i].description;
    iconshow(icon,mt)
    document.getElementById("mintemp").innerHTML = mt+"&amp;amp;deg;F";
    document.getElementById("maxtemp").innerHTML = obj.main.temp_max+"&amp;amp;deg;F";
    document.getElementById("wspdg").innerHTML = obj.wind.speed+"MPH | "+obj.wind.deg+"&amp;amp;deg;";
    document.getElementById("pressure").innerHTML = obj.main.pressure;
  }
};
function iconshow(icon, mt) {
            var img = new Image();
            img.src = 
'https://openweathermap.org/img/wn/'+icon+'@2x.png';
            img.style.width = "20px";
            img.style.height = "20px";
            document.getElementById('icon').appendChild(img);
            if (mt&amp;gt;=85){
              document.getElementById("result").innerHTML="Its gonna be hot today. Bring some water wherever you go outside.";
              chrome.notifications.create('hotoutside', {
              type: 'basic',
              iconUrl: 'images/1.png',
              title: 'Test Message',
              message: 'You are awesome!',
              priority: 2
              });
            }else if(mt&amp;lt;=50){
              document.getElementById("result").innerHTML="Its going to be chilly today. Wear some warm clothes.";
            }
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It uses the service geolocation which is a permission, to get the users location to get the weather in their area. Then using the html file it displays it in the table for the user to read. If you would like to make a settings page for your extension too than keep reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making A Settings Page
&lt;/h2&gt;

&lt;p&gt;Want your user to have some options? Make another HTML page and js file and declare it in your manifest. You can give the user the option to change colors, language, etc. You can see mine below.&lt;br&gt;
HTML:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
&amp;lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;meta charset="utf-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width"&amp;gt;
    &amp;lt;title&amp;gt;Current Weather&amp;lt;/title&amp;gt;
    &amp;lt;link href="style.css" rel="stylesheet" type="text/css" /&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="body"&amp;gt;
      &amp;lt;center&amp;gt;
        &amp;lt;h1&amp;gt;Settings&amp;lt;/h1&amp;gt;
        &amp;lt;p&amp;gt;View and set the settings for the current weather app.&amp;lt;/p&amp;gt;
        &amp;lt;h2&amp;gt;Language&amp;lt;/h2&amp;gt;
        &amp;lt;p&amp;gt;Set the extensions language to your preferance.&amp;lt;/p&amp;gt;
        &amp;lt;select name="language" id="language"&amp;gt;
          &amp;lt;option value="en" selected&amp;gt;English&amp;lt;/option&amp;gt;
          &amp;lt;option value="de"&amp;gt;German&amp;lt;/option&amp;gt;
          &amp;lt;option value="sp"&amp;gt;Spanish&amp;lt;/option&amp;gt;
          &amp;lt;option value="ja"&amp;gt;Japanese&amp;lt;/option&amp;gt;
          &amp;lt;option value="fr"&amp;gt;French&amp;lt;/option&amp;gt;
        &amp;lt;/select&amp;gt;
        &amp;lt;div id="currentlang"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;button id="submitlang"&amp;gt;Set Language&amp;lt;/button&amp;gt;
        &amp;lt;h2&amp;gt;Privacy&amp;lt;/h2&amp;gt;
        &amp;lt;p&amp;gt;I will never share/sell you location or information to anybody because it is your information and only you shall decide what you would like to do with your privacy. If you decide that you do not want the extension to see your location anymore go to the three dots in the upper right corner, click more tools, click on details for the extension, disable location access. Please note that the extension does not work without location access.&amp;lt;/p&amp;gt;
        &amp;lt;h3&amp;gt;Help/Support&amp;lt;/h3&amp;gt;
        &amp;lt;p&amp;gt;If you are having problems with the extension then please go to the following site as it contains a forum with help and support. &amp;lt;a href="https://github.com/Grantrocks/Current-Weather/discussions" target="_blank"&amp;gt;https://github.com/Grantrocks/Current-Weather/discussions&amp;lt;/a&amp;gt;. That is the github discussion page contatining the files for the project and help and support for anyone that needs it.&amp;lt;/p&amp;gt;
      &amp;lt;/center&amp;gt;
      &amp;lt;div id="google_translate_element"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="settings.js"&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;JS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, 'google_translate_element');
}
document.getElementById("submitlang").addEventListener("click", function(){
  var sellang = document.getElementById("language").value;
  var curl = document.getElementById("currentlang");
  if (sellang=="en"){
    curl.innerHTML = "English";
    localStorage.lang = "en";
  }else if(sellang=="de"){
    curl.innerHTML = "German";
    localStorage.lang = "de";
  }else if(sellang=="sp"){
    curl.innerHTML = "Spanish";
  }else if(sellang=="ja"){
    curl.innerHTML="Japanese";
  }else if(sellang=="fr"){
    curl.innerHTML="French";
  }else{
    curl.innerHTML="None Selected!";
  }
});

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Your Done
&lt;/h2&gt;

&lt;p&gt;Now that your extension is made you can publish it where you would like to publish it. Google's chrome web store needs a $5 fee, Microsoft edge is free to publish and so is firefox but if you publish here you will need to change the manifest.json a little bit as it uses version 2.&lt;br&gt;
&lt;a href="https://nowpayments.io/embeds/donation-widget?api_key=RS7T409-E6FMVXP-GP5K7YQ-W8PT55H" rel="noopener noreferrer"&gt;Donations are nice.&lt;/a&gt;&lt;br&gt;
Also I use a link shortener that is paid and if you would like to use it too &lt;a href="http://adfoc.us/?refid=570247" rel="noopener noreferrer"&gt;sign up here.&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>html</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How To Start A Website From Scratch Using HTML</title>
      <dc:creator>Grant McNamara</dc:creator>
      <pubDate>Fri, 10 Dec 2021 13:03:00 +0000</pubDate>
      <link>https://dev.to/grantrocks/how-to-start-a-website-from-scratch-using-html-2pj7</link>
      <guid>https://dev.to/grantrocks/how-to-start-a-website-from-scratch-using-html-2pj7</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;A simple follow is where it begins&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;No really please follow otherwise you might be missing some great content. Also, follow me on &lt;a href="https://theoverpoweredpc.medium.com"&gt;medium&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://faucetcrypto.com/ref/671908"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KTj3EN0X--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1izg73dgfwx9zolzopgr.gif" alt="Sign Up Here For Some Crypto" width="728" height="90"&gt;&lt;/a&gt;&lt;br&gt;
It's 2021 and the world is still under attack from the corona-virus. Most of us have picked up a new hobby and interest. Maybe one of them might have been making websites or even making one to have an extra source of income. But either way, you still should know how to use HTML to make yourself a site.&lt;/p&gt;
&lt;h2&gt;
  
  
  A Basic Understanding
&lt;/h2&gt;

&lt;p&gt;Html is a very simple and easy-to-understand programming language that makes up most of the content of the internet these days. Everyone can simply look up some tutorials or guides on how to use HTML. Heck even you just did otherwise why would you find this. Everybody also has the capability to understand how HTML and its elements work. You open an element and then you have to close the element. For example, when you open the fridge you should shut it because if you don't shut it everything inside of it will go bad. Just like HTML if you open a tag but don't close it, the element won't appear or may break your site. But you don't just yet know what an element is so that may have sounded a bit confusing.&lt;/p&gt;
&lt;h2&gt;
  
  
  Simple Facts
&lt;/h2&gt;

&lt;p&gt;When you look at a site you see text and text that is bold or underlined, text that has a link attached to it, text that is big and or small, you see images and graphics to help you understand. All of those “elements” require some kind of tag. Text or paragraphs require the &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tag so that the site or server knows that that text is a paragraph because it is inside of a &lt;code&gt;&amp;lt;p&lt;/code&gt;&amp;gt; tag. The site will know when to stop reading the text as a paragraph when the user adds a &lt;code&gt;&amp;lt;/p&amp;gt;&lt;/code&gt; to the end of the paragraph tag. The reason that you use a &lt;code&gt;&amp;lt;/p&amp;gt;&lt;/code&gt; is that that is what closes the element and if you don't what is described above will happen to your site. So take the time after every element you use to close it. To close elements whatever tag you use add a &amp;lt;/(element you used)&amp;gt; to the end of it to close it. Also as mentioned above I said tags, not tags so that brings us into the rest of the tags.&lt;/p&gt;
&lt;h2&gt;
  
  
  Tags
&lt;/h2&gt;

&lt;p&gt;There are many different tags that you can use on your website. One for an image, one for a paragraph, one for a video, one to underline, one to make text bold, one to improve your site SEO, one to add tables and lists. These are some of the most popular tags across the internet.&lt;/p&gt;
&lt;h2&gt;
  
  
  Header 1
&lt;/h2&gt;

&lt;p&gt;This is the tag that will make text large. You use an h1 tag wherever you would like but only once, usually, the name of an article or site, to stand out. &lt;code&gt;&amp;lt;h1&amp;gt;&amp;lt;/h1&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Header 2
&lt;/h2&gt;

&lt;p&gt;These tags usually are used for labeling elements on your site or more. Don't use to many though.&lt;/p&gt;
&lt;h2&gt;
  
  
  Header 3
&lt;/h2&gt;

&lt;p&gt;This is the most common type of tag. Most people use this kind of tag for article sections or names of articles on a homepage.&lt;/p&gt;

&lt;p&gt;Those are some of the most common header tags used on different websites that people use. When making a website, they are actually important if you plan for your website to be popular or just be discovered in general. Make sure that you dont overuse these as doing so will result in bad seo habbits and you will not rank well.&lt;/p&gt;
&lt;h2&gt;
  
  
  Image
&lt;/h2&gt;

&lt;p&gt;This tag is used to add an image to a website to help people understand your site or just to keep people interested in your site. Most users of a website will be more likely to leave if there aren't any kind of images or visuals. Using this tag is a bit different though than what you are used to. Before you close up the &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; you need to add an src=”” to add the img file. Do so by using the following and using your own img and directory. The closing tag is not needed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;img src=”/path/to/your/file.jpg”&amp;gt;&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;p&gt;Now this tag, in a way, is like the img tag. To use it you need to use a special string inside of it to add a link to the text. It's very easy to use and most search engines love it when you add links to your content but not too many links. You can add a &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag to your site using the following.&lt;br&gt;
&lt;code&gt;&amp;lt;a href=”https://example.com”&amp;gt;links text here&amp;lt;/a&amp;gt;&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;a href=”/path/to/a/html/file/in/your/site.html”&amp;gt;link text here&amp;lt;/a&amp;gt;&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Bold
&lt;/h2&gt;

&lt;p&gt;If you would like to make some text on your site bold you need to use the &lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt; tag. It's very simple and easy to use. Find the text that you would like to make bold and put it between the &lt;code&gt;&amp;lt;strong&amp;gt;&amp;lt;/strong&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;
&lt;h2&gt;
  
  
  Meta
&lt;/h2&gt;

&lt;p&gt;This is a very important tag to use if you would like your site to be on google. Basically, the meta tags are what add keywords and a description, and more to your site. Users of your site cant see the content from these tags since they are in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of your site. Search engines such as Google, use these tags to rank your site and search it.&lt;/p&gt;
&lt;h2&gt;
  
  
  Title
&lt;/h2&gt;

&lt;p&gt;Another very important tag for your website. It makes the current page that you are on and makes the tab name look nice and neat instead of an ugly file and directory. Required by most search engines.&lt;/p&gt;
&lt;h2&gt;
  
  
  Head
&lt;/h2&gt;

&lt;p&gt;Any SEO tags such as the meta and title tag go here. The content inside of this element will not be shown to users of your site. It contains the content for search engines such as the site description and SEO data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FsLrmkqi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8msenvahalihc1b89jiw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FsLrmkqi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8msenvahalihc1b89jiw.png" alt="Image description" width="627" height="158"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Body
&lt;/h2&gt;

&lt;p&gt;The site's content that you will show to your users will be inside this element. It's needed as the content won't really be shown if you don't use this tag.&lt;br&gt;
Now that you know some of HTML’s most important tags, it's time to actually make a site with HTML. It might seem a bit confusing at first but it's very simple to understand once you know.&lt;/p&gt;
&lt;h2&gt;
  
  
  Making The Site
&lt;/h2&gt;

&lt;p&gt;To make an HTML site you need a simple layout first to make sure you have the right tags. Using the following snippet you will see the document type, HTML tags to declare the HTML content and then the head and body tags.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE HTML&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;TOP Tutorial&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;Hello World!&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;site content here&amp;lt;/p&amp;gt;
&amp;lt;img src="https://theoverpoweredpc.tk/images/raspberry-pi.jpg"&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you want to add the title inside the head tag and then some content inside of the body tag. Once you have that in there you are good to go. Congrats you just made a simple HTML site. Now go ahead learn CSS and js and make some amazing stuff. Learn more about HTML to expand your site.&lt;/p&gt;

&lt;p&gt;See the full source code here: &lt;a href="https://github.com/Grantrocks/htmltutorial/blob/main/index.html"&gt;https://github.com/Grantrocks/htmltutorial/blob/main/index.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>html</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>4 Ways To Be Constantly Improving Your Code</title>
      <dc:creator>Grant McNamara</dc:creator>
      <pubDate>Fri, 10 Dec 2021 02:29:07 +0000</pubDate>
      <link>https://dev.to/grantrocks/4-ways-to-be-constantly-improving-your-code-15om</link>
      <guid>https://dev.to/grantrocks/4-ways-to-be-constantly-improving-your-code-15om</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;A Follow Helps Everyone &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;No Really if you follow now, more and better quality content will be published. Also follow medium so you don't miss out.&lt;br&gt;
See more amazing content here: &lt;a href="https://theoverpoweredpc.medium.com"&gt;https://theoverpoweredpc.medium.com&lt;/a&gt;&lt;br&gt;
Not much of world’s population is made up of programmers. In fact, only 22.1% of the population are programmers. This might make you think, “How is that possible? How can there be so little programmers but so many programs and apps?,” well at least it got me thinking. If there are so little programmers what could 1 programmer do to make their code be like a team of 100 programmers. There are 4 simple ways to easily improve your code.&lt;/p&gt;

&lt;h2&gt;
  
  
  1 Stay Organized
&lt;/h2&gt;

&lt;p&gt;There is no way to describe how important keeping your code in an organized manner is. The organization of your code will give you a much more readable piece of software and it will also be a lot easier to fix bugs and or improve performance. Not only will it be easier to read but it will also be easier to spot out something that seems of or unwanted. When you have more organized code people are more willing to pitch in some ideas too because they will be able to understand what is going on and be able to help if they want to.&lt;/p&gt;

&lt;p&gt;Keeping your code organized will also improve the development of your program because it will be easier to find things to edit, add, remove, change, etc. I am not just talking about the code but also the files and the directory’s because that will also help you out when you are trying to find a script that is external that you need to link to your current script.&lt;/p&gt;

&lt;h2&gt;
  
  
  2 Read Documentation
&lt;/h2&gt;

&lt;p&gt;I know that reading documentation may not be the funnest thing to do but it can really help you out with a problem or struggle. Say you are trying to connect to a database for say Mongo DB, you are not going to know how to do it instantly by heart. You need to learn how to use the SDK and how to integrate it into your code for your program to work. It also really helps you out when you need help with something for say a tutorial, in our case, on how to connect to Mongo DB and read and write data to it.&lt;/p&gt;

&lt;h2&gt;
  
  
  3 Stack Overflow
&lt;/h2&gt;

&lt;p&gt;This may sound ridiculous, but it is not. Stack overflow is a site where people can share information on software and programs of all kinds, and you can also ask a question about a problem that you have and get an answer speedy fast. It may also seem like people do not know what they are doing there but plenty of people out there that got their jobs on stack overflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  4 Tools
&lt;/h2&gt;

&lt;p&gt;Using simple tools to help your code is another fantastic way to improve your code. The tools that are out there can help you find and solve bugs, organize, script, lower lines of code for better performance, etc. Tools are also another wonderful way to find some code library’s that you may have never heard of before. For example, the site replit they have a smart code ide which I consider a tool that helped me out and I discovered jQuery and I accessed a whole new level of programming.&lt;br&gt;
Find the article also on my medium site: &lt;a href="https://theoverpoweredpc.medium.com/4-ways-to-be-constantly-improving-your-code-f5b05ddac433"&gt;https://theoverpoweredpc.medium.com/4-ways-to-be-constantly-improving-your-code-f5b05ddac433&lt;/a&gt;&lt;/p&gt;

</description>
      <category>codequality</category>
      <category>help</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How To Mine XMR on a Raspberry PI</title>
      <dc:creator>Grant McNamara</dc:creator>
      <pubDate>Thu, 02 Dec 2021 13:15:00 +0000</pubDate>
      <link>https://dev.to/grantrocks/how-to-mine-xmr-on-a-raspberry-pi-515m</link>
      <guid>https://dev.to/grantrocks/how-to-mine-xmr-on-a-raspberry-pi-515m</guid>
      <description>&lt;p&gt;See the article on my site: &lt;a href="https://cryptoandpi.netlify.app/how-to-mine-monero-on-your-raspberry-pi"&gt;https://cryptoandpi.netlify.app/how-to-mine-monero-on-your-raspberry-pi&lt;/a&gt;&lt;br&gt;
Happen to own raspberry pi and you would like to mine monero on it? This is how you can easily mine xmr on a raspberry pi. It should only take a few minutes to complete.&lt;/p&gt;

&lt;p&gt;Requirements&lt;/p&gt;

&lt;p&gt;You are going to need a library and tools to mine xmr on a raspberry pi. Please note that this is a raspberry pi it will not mine fast at all. You are going to need to have an updated raspberry pi, and the rest will be installed and downloaded in the install/setup process.&lt;/p&gt;

&lt;p&gt;Updating&lt;/p&gt;

&lt;p&gt;For your raspberry pi to have the latest software in order to mine xmr, you need to update everything through a small command. Run the following command in a terminal:&lt;/p&gt;

&lt;p&gt;sudo apt-get update sudo apt-get upgrade sudo apt-get full-upgrade&lt;/p&gt;

&lt;p&gt;When finished, make sure that you reboot if you had over 100 updates/upgrades. Once everything is updated and ready to start mining read the following below to install the miner.&lt;/p&gt;

&lt;p&gt;Dependencies&lt;/p&gt;

&lt;p&gt;To mine xmr on a raspberry pi, you need to have some packages that run with the mining software. They are the most common ones like CMake and git. But we're not going to install them through a normal terminal, we are going to install them from a special 64bit terminal. The following commands below install the 64bit terminal.&lt;/p&gt;

&lt;p&gt;sudo apt-get install -y raspbian-nspawn-64&lt;/p&gt;

&lt;p&gt;When the 64bit terminal finishes the install, make sure that you run the command below in a normal terminal as it starts up the 64bit terminal and gets it ready for use.&lt;/p&gt;

&lt;p&gt;ds64-shell&lt;/p&gt;

&lt;p&gt;Once you have the 64bit terminal ready and set up, run the following command to update packages in the 64bit terminal. This command will also install the dependencies for the xmr miner to run.&lt;/p&gt;

&lt;p&gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade &amp;amp;&amp;amp; sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev&lt;/p&gt;

&lt;p&gt;Once your 64bit terminal has finished up, reboot your raspberry pi as it enables all of the new packages on your raspberry pi and then you will be ready to install the miner.&lt;/p&gt;

&lt;p&gt;Now Mine XMR On A Raspberry Pi&lt;br&gt;
Monero&lt;/p&gt;

&lt;p&gt;You are all set and good to go now to install xmrig and mine xmr on a raspberry pi. This part will take a little bit though as xmrig needs to compile and install itself on your pi. Run the following command:&lt;/p&gt;

&lt;p&gt;git clone &lt;a href="https://github.com/xmrig/xmrig.git%C2%A0cd"&gt;https://github.com/xmrig/xmrig.git cd&lt;/a&gt; xmrig &amp;amp;&amp;amp; mkdir build  &amp;amp;&amp;amp; cd build &amp;amp;&amp;amp; cmake .. &amp;amp;&amp;amp; make&lt;/p&gt;

&lt;p&gt;That process will take from 16-30 minutes to complete depending on ram size and CPU speed. Once it finishes though, your pi will be able to mine xmr. Run the command below to run the miner. Make sure to set the -u as the username it's currently set to be mine and set the -o field to the xmr pool of your choice.&lt;/p&gt;

&lt;p&gt;./xmrig --donate-level 1 -o pool.minexmr.com:4444 -u 47HqXyfRx6HAhazGSaDp5p3VFyNMtDviQCPo1xHn5hVgezGY1eLiNW4bep9wmi2gKrH8BWXeGH9bYPU9NKcbehRqJSdKWLc -p Pi&lt;/p&gt;

&lt;p&gt;Have fun when you mine xmr on a raspberry pi. And you can also set this up on several raspberry pi's to increase speed. Please donate as this site is free to use but the hosting is not.&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>computerscience</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
