<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[NerdOfCode - Medium]]></title>
        <description><![CDATA[Tech News and Suggestions - Medium]]></description>
        <link>https://medium.com/nerdofcode?source=rss----9bb908e9884f---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>NerdOfCode - Medium</title>
            <link>https://medium.com/nerdofcode?source=rss----9bb908e9884f---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 05:10:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/nerdofcode" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Hidden Pitfalls of Using a VPN: What You Need to Know]]></title>
            <link>https://medium.com/nerdofcode/the-hidden-pitfalls-of-using-a-vpn-what-you-need-to-know-67741a8713b2?source=rss----9bb908e9884f---4</link>
            <guid isPermaLink="false">https://medium.com/p/67741a8713b2</guid>
            <category><![CDATA[virtual-private-network]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[pitfalls]]></category>
            <dc:creator><![CDATA[NerdOfCode]]></dc:creator>
            <pubDate>Sun, 26 Mar 2023 04:29:14 GMT</pubDate>
            <atom:updated>2023-03-26T04:29:14.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_YgbWB3jzSjej--4" /><figcaption>Photo by <a href="https://unsplash.com/@dulhiier?utm_source=medium&amp;utm_medium=referral">Nastya Dulhiier</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Virtual Private Networks (VPNs) have gained popularity over the years as tools to enhance privacy and security while browsing the internet. However, like any technology, VPNs come with their own set of drawbacks. In this blog post, we will uncover some common pitfalls of using a VPN and provide tips on how to navigate these issues.</p><h4>Performance Issues</h4><p>One of the main drawbacks of using a VPN is the potential decrease in internet speed. VPNs reroute your traffic through their servers, which may be located far away from your actual location, leading to increased latency and reduced bandwidth. To mitigate this, choose a VPN provider with servers close to your geographical location and opt for a premium subscription, which often provides better performance.</p><h4>Data Logging and Privacy</h4><p>While VPNs are designed to enhance your privacy, not all VPN providers adhere to a strict no-logging policy. Some VPN services may log your activity, exposing you to the very privacy risks you sought to avoid. Always research the logging policies of your chosen VPN provider and opt for a service with a transparent, no-logging policy to ensure your data remains private.</p><h4>Security Vulnerabilities</h4><p>VPNs can offer robust security features, but they are not immune to vulnerabilities. Leaks, such as DNS leaks or WebRTC leaks, can expose your real IP address, compromising your privacy. Additionally, VPNs can’t protect against malicious websites or phishing attacks. To minimize these risks, use a reputable VPN with built-in leak protection, and always maintain proper internet hygiene by avoiding suspicious websites and using strong, unique passwords.</p><h4>Legal and Geographical Restrictions</h4><p>While VPNs can help you bypass geo-restrictions and access blocked content, doing so might not always be legal in your jurisdiction. Using a VPN to access copyrighted material or bypass government censorship could lead to fines or legal repercussions. Be aware of the laws and regulations in your country and use VPNs responsibly.</p><h4>Free VPNs: The Hidden Costs</h4><p>While free VPNs may seem attractive, they often come with their own set of issues. In addition to poor performance, free VPNs may rely on advertising revenue, exposing you to unwanted ads or selling your data to third parties. It is advisable to invest in a reputable, paid VPN service to ensure a more secure and private browsing experience.</p><h4>The Pitfalls of VPNs</h4><p>VPNs can be valuable tools for privacy and security, but they are not without their pitfalls. By understanding these drawbacks and making informed decisions when choosing a VPN, you can enjoy the benefits of a secure and private internet connection without the associated risks. Always do thorough research before committing to a VPN provider, and stay informed about potential issues to ensure a safe and secure online experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67741a8713b2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nerdofcode/the-hidden-pitfalls-of-using-a-vpn-what-you-need-to-know-67741a8713b2">The Hidden Pitfalls of Using a VPN: What You Need to Know</a> was originally published in <a href="https://medium.com/nerdofcode">NerdOfCode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You should use Shopify, seriously]]></title>
            <link>https://medium.com/nerdofcode/you-should-use-shopify-9bfe0d20353?source=rss----9bb908e9884f---4</link>
            <guid isPermaLink="false">https://medium.com/p/9bfe0d20353</guid>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[amazon]]></category>
            <dc:creator><![CDATA[NerdOfCode]]></dc:creator>
            <pubDate>Mon, 16 Aug 2021 03:10:13 GMT</pubDate>
            <atom:updated>2021-08-16T03:18:34.304Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve all heard of Shopify, but can it one-day replace the all-mighty Amazon?</p><h3>What/Who is Shopify?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ekYbQv6gm1XcyDko2iYwQ.png" /><figcaption>Shopify Homepage</figcaption></figure><p>Shopify’s tagline is “Anyone, anywhere, can start a business,” and I especially think this is a really fitting motto because in my personal experience, Shopify makes it extremely easy to setup an online presence to start earning money. Moreover, Shopify empowers it’s merchants by allowing them to sell pretty much anything to anyone. I mean you can sell Digital Goods, Physical goods and so much more immediately after starting your free trial.</p><h4>Shopify’s Growth</h4><p>In Q2 of 2021, Shopify saw a massive spike in revenue of $1.2 Billion Dollars, which is up <strong>57</strong>%<strong> </strong>on a year-over-year basis. This spike is likely attributed to the whole Covid situation but I doubt even when Covid passes their revenue will shrink. Additionally, Shopify’s subscription products grew 70% this quarter alone. Now, these numbers may not sound too impressive to a non-market savvy individual, however I can assure you, these numbers give me the feeling that Shopify has a lot of growth potential in the pipelines.</p><p>Also, another reason these numbers are rather significant, is the fact that they’re competing for the same customer/merchant base as Amazon. Merchants who choose to sell their original products on Amazon, likely also have a Shopify store setup to mitigate the fees Amazon charges on every sell they make. Furthermore, it’s a very common approach for these merchants to utilize both Amazon, and Shopify to sell their products, however on their Shopify store they likely have more incentives to purchase the item and most likely have it listed at a cheaper price because they won’t have to pay any fees to anyone besides the payment gateway.</p><h4>Shopify Fees</h4><p>When a merchant sells one of their products on Shopify, they only have to pay the payment processor — the middleman who handles the payment, whether it be credit card, PayPal, etc… — the fees to process these transactions are rather low and typically start around 2.9% + $.30 of the overall transaction. On top of these low fees, high volume merchants can typically strike deals with these payment processors and get even lower commission rates such as 2.4% of the transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZHs3hZulSZub4EZcd0ovw.png" /><figcaption>Shopify Pricing Page</figcaption></figure><p>The only other fee a merchant has to pay is the Shopify subscription fee, which starts at a rather low monthly cost of $29, which is rather generous since you get nearly the full functionality of Shopify behind your store.</p><p>To conclude this section, Shopify has rather low fees, which make selling products with low profit margins, a viable solution, albeit you will need to have a higher volume of orders to make any money.</p><h3>🤗 Shopify 🤗</h3><p>Please let me know your thoughts in the comments on your take of Shopify and especially Shopify vs Amazon ordeal.</p><p><a href="https://medium.com/subscribe/@NathanCarnegie">https://medium.com/subscribe/@NathanCarnegie</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bfe0d20353" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nerdofcode/you-should-use-shopify-9bfe0d20353">You should use Shopify, seriously</a> was originally published in <a href="https://medium.com/nerdofcode">NerdOfCode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Simple Bash Introduction — Part 1!]]></title>
            <link>https://medium.com/nerdofcode/a-simple-bash-introduction-part-1-4f5aeb3e7e5f?source=rss----9bb908e9884f---4</link>
            <guid isPermaLink="false">https://medium.com/p/4f5aeb3e7e5f</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[shell]]></category>
            <dc:creator><![CDATA[NerdOfCode]]></dc:creator>
            <pubDate>Tue, 12 Nov 2019 20:31:11 GMT</pubDate>
            <atom:updated>2019-11-13T14:36:59.030Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Simple Bash Introduction — Part 1!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yGDkS93c0od2YaGr" /><figcaption>Photo by <a href="https://unsplash.com/@umby?utm_source=medium&amp;utm_medium=referral">Umberto</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As the Linux and Apple community grows, more and more people are becoming interested in how to use the terminal interface… As of 2018, this will require you to have an understanding of how to use Bash…</p><h3>What is Bash?</h3><p>So, let’s jump right in — what is Bash and what is it’s purpose?</p><p>According to Wikipedia, they define Bash as a</p><blockquote><em>UNIX shell and command language</em></blockquote><p>In Layman’s terms, this basically means that Bash accepts commands inputted by the user, and then it interprets the commands and executes them accordingly. This would also mean that Bash is an <strong>interpreted language</strong> rather than compiled…</p><p>You will be able to find more information on interpreted vs compiled languages in a later post!</p><p>Anyways, Bash stands for “Bourne-Again SHell,” as <strong>Brian Fox</strong>, the creator of Bash, decided to create a free-software replacement for the original UNIX “Bourne-Shell(SH),” ironically including “the -Again” part to represent it as new piece of free-software!!!</p><p>Now that you have had a little introduction to Bash, it’s time to dive into learning the basics of mastering it!</p><h3>The Basics</h3><p>So, essentially, all the commands below will be very basic commands that any average terminal user should now how to use and navigate!</p><h3>1.) clear</h3><p>Although this command may seem obvious to some, and not so obvious to others, it basically clear the terminal screen, and begins a fresh line at the very top of the interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*BmuiaqtnQxdqZ6tQ" /></figure><h3>2.) echo</h3><p>In the previous example, we used a command called “echo.” This command basically outputs the given arguments to standard output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*cQCgbP0GNWe-omWh" /></figure><h3>3.) ls</h3><p>The “ls” command will be most likely be one of your most used commands… Basically all it does is list directory contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*eDCx5HCEFIeV8N-0" /></figure><h3>4.) pwd</h3><p>The previous command listed the contents of a directory… But the contents are pointless if we don’t know the absolute location of the files. We can find this by using the “pwd” command. Oh and by the way, “pwd” stands for “ <strong>print working directory</strong>.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*LshAiqQi4khFCzXL" /></figure><h3>5.) mkdir</h3><p>Now, changing the current directory is great and all… But, how do we create our own directories? Use the “mkdir” command. It stands for make directory 🙂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*pqzThs4vGKG_Wpxk" /></figure><h3>6.) cd</h3><p>Now, seeing the files and directories in a directory is pretty useful, but how do we change our current directory to a new one? The answer… The “cd” command, a.k.a. “change directory.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*4Dh02x9G-eUGh7oZ" /></figure><h3>Conclusion</h3><p>Reaching the end of the part 1 Bash introduction guide, we have now been introduced to Bash and we know how to use 6 basic Bash commands! If you’re worried about remembering each and every command don’t be… Like all skills, it takes time and practice to master!</p><p>What are you waiting for? Oh, part 2 is in the process of being written 🙂 ! I recommend subscribing if you want to stay up to date with this tutorial!</p><p>Source: <a href="https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29">Wikipedia</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f5aeb3e7e5f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nerdofcode/a-simple-bash-introduction-part-1-4f5aeb3e7e5f">A Simple Bash Introduction — Part 1!</a> was originally published in <a href="https://medium.com/nerdofcode">NerdOfCode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should you blog on Medium?]]></title>
            <link>https://medium.com/nerdofcode/should-you-blog-on-medium-bcf7e6c1a2e6?source=rss----9bb908e9884f---4</link>
            <guid isPermaLink="false">https://medium.com/p/bcf7e6c1a2e6</guid>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[passive]]></category>
            <dc:creator><![CDATA[NerdOfCode]]></dc:creator>
            <pubDate>Sat, 21 Sep 2019 20:10:18 GMT</pubDate>
            <atom:updated>2019-09-21T20:10:18.624Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lately, it seems to me that Medium’s (a.k.a. medium.com) popularity has been exploding, that is in terms of popularity with the writers and viewers. Which leads to the question, as a writer, should you blog on Medium or not?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eSCBAtSVQqtRcUiYYxEUxw.png" /></figure><h3>What is Medium?</h3><p>For those of you who don’t know, or haven’t made any searches about anything on the Internet in the past year or two, you probably haven’t heard of Medium?</p><p>So… You’re probably wondering what is this <strong>Medium platform</strong> you keep hearing about? And if you should be writing for it, as opposed to your personal blog?</p><p>Well, for a more formal description of Medium by <strong>WikiPedia</strong>, they depict the platform as an “online publishing platform”. Which I guess only partially describes the full-extent of what Medium has to offer.</p><p>If I were to explain Medium in my own terms, <em>informally</em> I mean, Medium is just another content site that anyone, <em>professional</em> or <em>amateur</em>, can <strong>contribute</strong> to.</p><h3>Should you Blog on Medium?</h3><p>Before I even begin talking about whether or not you should be using your own blog or Medium, I recommend that you should first <strong>seriously</strong> re-consider what your goals of writing are. This will seriously help you apply the following information to your current circumstances.</p><p>Anyways, let’s go ahead and start discussing if Medium is the right platform for you or not.</p><h3>Time.</h3><p>The most <strong>influential</strong> factor when choosing between using Medium or your own blogging platform, is the <strong>time</strong> your willing to commit to the process of writing and maintaining the platform! After all, time is our the only truly unrenewable resource.</p><p>Luckily, Medium is a fully mature-platform for writing, which means that you will have to do literally <em>next-to-nothing </em>to make sure the platform is operating at its maximum efficiency, it’s fully-functional, with the fastest load times.</p><p>Furthermore, this means that you will not have to worry about the maintenance required to keep the platform up, as Medium has dozens of employees that are constantly monitoring it. With this in mind, if you were running your own blogging platform you would be responsible for making sure that the site is running smoothly, correctly, etc…</p><h4>Medium vs. Personal Blog in Time</h4><p>The clear winner to this category (time) is Medium, because it will require tens-to-hundreds of less hours of work.</p><p><strong>Note: </strong>Depending on the hosting you use for your blog, you will experience different amounts of work required to maintain the platform.</p><h3>Money!</h3><p>Next up, we have the money required for blogging on each platform! While money-required to blog should not be viewed as a turn-off factor for not blogging, it should still be considered before you commit.</p><h4>Medium*</h4><p>Medium makes this nice and simple for it’s users, as posting to the platform is completely free for everyone. Something even better though, is that Medium will even allow you to earn money off of their platform, without you having to <em>pay</em> a dime to do so.</p><h4>Your Platform</h4><p>It’s slightly more complicated when it comes to the money necessary to operate your own platform — as there are many different solutions to running your blog. So, in order to keep this simple, running your own blog is going to cost some money, but not that much.</p><p>Personally, I pay around $15 per year to run my blog, which isn’t too shabby if you ask me, but, your mileage will vary.</p><h3>Potential Revenues</h3><p>Another factor to take into account, is the potential revenues you can earn from each, and the ways of earning it.</p><h4>On Medium</h4><p>As of September 2019, Medium has only one method for it’s writers to earn money, and that is from the “applause” button. What they or I mean by mentioning “applauses” or “claps”, is that paid-members (people who pay the $5/month fee) who click the said button, will contribute a portion of that $5 to that particular writer they “applauded” for.</p><p>Furthermore, the variation of earning money off of the Medium platform is definitely a little more restricted, as opposed to running your own gig.</p><p>Setting this aside, writers can still earn some serious money off of the platform, with some of the best writers earning upwards of <strong>$5000</strong> on a single post.</p><h4>Personal Blog*</h4><p>While the Medium platform is a bit restricted in terms of variation in revenue earnings, a personal blog is completely un-locked and is up to you to decide where your income flows from.</p><p>Moreover, on your personal blog you can unrestrictedly earn money off of using any of the following: advertisements, pay-walls, affiliate marketing, and more… Without anyone telling what you can and cannot due.</p><p>This allows writers to cater more towards what their unique user-base wants, in contrast to just generalizing one source of income for everybody, and hoping that everybody is happy with it.</p><p>Subscribe to our newsletter!</p><h3>Marketing</h3><p>Marketing is a key factor when it comes to your writing</p><p>. How can you get your content out to the most people, with the minimum amount of work.</p><h4>Medium*</h4><p>Using Medium as your platform of choice would allow you to worry less about marketing, and more about your writing. This is because Medium will automatically dispense your content to readers they think will be interested in your content, which is a huge help!</p><h4>Your Blog</h4><p>Marketing your own posts on your own blog will probably be one of the most difficult things you have to do for your platform. This is because your site will start off with a low domain authority, which means that your posts will often not show up in search engines, because your domain doesn’t have a very strong online presence.</p><p>After some time of consistent, high quality-writing, your blog will soon gain more authority, and you will begin showing up in search engines. But first, you will need to make sure your blog is correctly optimized for competiting.</p><p>If you’re interested in learning how to do so, I recommend opening Google and just searching something about: “How to do SEO”</p><h3>Writer’s Security</h3><p>I’m not sure if “Writer’s Security” is a real term or not, but what I mean by this, is basically the job security of your writing.</p><h4>On Medium</h4><p>Since writers don’t own the Medium platform, this means that your account can be <em>legally</em> suspended or deleted by Medium admins if they feel like doing-so.</p><p>Now, of course they probably wouldn’t delete your account without good reason, you’re still leaving it up to their digression.</p><h4>Your Platform*</h4><p>If you’re using your own platform, the job security of your writing will be a whole lot more secure, because nobody can just decide that your account is in violation, and needs to be deleted.</p><p>Furthermore, this means that you’re your own boss, employee, and admin.</p><h3>Building a brand</h3><p>Lastly, building a brand is one of the most-motivating factors when it comes to blogging.</p><p>What I mean by building a brand is that, you’re building a community where your readers can depend on your posts, and look-forward to reading them.</p><h4>On Medium</h4><p>If you’re trying to build a brand on Medium, then you’re going to have to realize that you will be competition with potentially tens-of-thousands of other writers who are also trying to build a brand on the platform. Moreover, you will have to write consistent high-quality content, in order for people to even consider following you on the platform.</p><p>And even once you do build a following on Medium, you still won’t own that following — Medium will.</p><h4>Personal Platform Blog*</h4><p>While building a brand on your own platform will be equally as hard, if not harder than on Medium… But, at least you will own that following you built, not some middleman, as you’re in charge of the platform.</p><h3>Using multiple platforms?</h3><p>While the purpose of this post was to provide useful information for helping writers to decide between which platform to use, there is another alternative solution if you’re still stuck deciding like I was when I first discovered Medium.</p><p>The alternative solution, is that Medium will actually allow you to <strong>cross-post</strong> your content… Which means that you can post to both your blog and to Medium concurrently. This seems ideal to most writers, because you’ll be getting the both of best worlds. Which is technically right, but just keep in mind that your blog and Medium are both competitors to each other, meaning that will be competing in search engines for better positions in rankings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcf7e6c1a2e6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nerdofcode/should-you-blog-on-medium-bcf7e6c1a2e6">Should you blog on Medium?</a> was originally published in <a href="https://medium.com/nerdofcode">NerdOfCode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Linode!]]></title>
            <link>https://medium.com/nerdofcode/getting-started-with-linode-97ac155e3ccf?source=rss----9bb908e9884f---4</link>
            <guid isPermaLink="false">https://medium.com/p/97ac155e3ccf</guid>
            <category><![CDATA[digitalocean]]></category>
            <category><![CDATA[linode]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[NerdOfCode]]></dc:creator>
            <pubDate>Mon, 05 Aug 2019 21:03:54 GMT</pubDate>
            <atom:updated>2019-08-05T21:04:23.519Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*reLbTer2_pFV3Bfr" /><figcaption>Photo by <a href="https://unsplash.com/@aligns?utm_source=medium&amp;utm_medium=referral">Jordan Harrison</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Having troubles deciding on an <strong>I</strong>aa<strong>S</strong>( <strong>I</strong>nfrastructure <strong>a</strong>s <strong>a</strong> <strong>S</strong>ervice) provider in 2019? Well, check this problem off your list as by the end of this post, I will have solved it!</p><h3>Where to Start?</h3><h4>The Background!</h4><p>First off, Linode is by far, one of the big brothers in the <strong>Iaas</strong> game. Linode started off in mid 2003, with only <strong>three</strong> data centers to its name. Fast forward to 2018, and Linode has expanded to a vastly decentralized <strong>nine</strong> data-centers!</p><p>This is compared to <a href="https://m.do.co/c/a0df6d3eab79">DigitalOcean</a>, and <a href="https://www.vultr.com/?ref=7621659">Vultr</a>, who were founded in 2011, and 2014 respectively.</p><h3>Fact check Linode!</h3><p>Some brief facts about Linode:</p><ul><li>+100 employees</li><li>+$100 million in revenue</li><li>Founded in mid 2003</li><li>Iaas provider, or infrastructure cloud</li><li>$45 million investment in 2013 to switch to SSDs, double all server’s RAM, and incorporate faster processors. (Same prices)</li></ul><h3>How do I get started?</h3><p>Getting started with Linode is extremely straight-forward and painless. Seriously, Linode has overly simplified the process of deploying and managing your server instances with scale and reliability. This is probably the main reason I have chosen to make Linode my primary hosting provider in 2019.</p><p>In order to deploy your first server, you will need to register for an account on Linode. You can do so using the following link (it supports this site), which can be found there -&gt; <a href="https://www.linode.com/?r=2d384c16ec76fe4103402732dd80082fd0f42195">Linode Signup</a>.</p><h3>Deploying your First Instance!</h3><p>After creating your account, you can deploy your first server instance by navigating to Linode’s Cloud Manager ( <a href="http://cloud.linode.com/">cloud.linode.com</a>), and then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/0*mAHJFjx2_1csUGry" /></figure><h3>Choosing your server image?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/0*51TSROBEsEya55gy" /></figure><p>After completing the previous step, you will be prompted to first choose an image for your server. Don’t worry, I’ll make this decision for you…</p><h3>Choosing the right image!</h3><p>If you’re new to managing servers as a whole, I’d recommend that you choose “Ubuntu 18.04,” as it is by far the easiest server-side operating system (OS) for beginners to work with.</p><p>On the other hand, If you have experience in the server world, feel free to choose any image you like.</p><h3>Choosing a Region!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/0*8pqtucKULAt78kFw" /></figure><p>Next up on the list, is to choose the region where you want your server to be deployed! I recommend if you are just experimenting with Linode and it’s capabilities, to deploy a server in the region closest to your location.</p><p>The only reason I recommend this, is because it will most likely have the fastest upload/download speeds for you.</p><p>Otherwise, I recommend deploying your server in a region, where you think the majority of your users are located(so they get the fastest upload/download speeds).</p><h3>Server Plan</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/0*myX9g9fd-yNz3fkr" /></figure><p>After choosing the region for our server, it is now time for us to choose our server’s plan. Basically, this just means “what are the specs for your server”.</p><p>Before we go ahead and choose our plan, it is noteworthy to say that Linode uses “hourly billing,” which means that you can literally deploy and delete your server instance at anytime, and you’ll only be billed for the amount of hours it existed(if you power-off your instance and don’t destroy it, you will still be billed).</p><p>Again, I’ll give my recommendations:</p><p><strong>If you’re new to server management:</strong></p><p>Choose the <strong>Nanode</strong> tab -&gt; <strong>Nanode</strong></p><p>This server will cost <strong>$5/month</strong></p><p><strong>If you’re experience in server management:</strong></p><p>I recommend that you choose the plan that will fit your needs, based on what you will be using this server for.</p><h3>Choosing a label!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/0*w5j8oxf1wNCHyi8e" /></figure><p>Now we have to choose a label for our Linode instance. Basically, all a label is, is that it’s just a way of organizing what each of your instances do. Setting a label only reflects in Linode’s Cloud Manager… It does not affect the actual server in any way.</p><p>And the second part to a label, is the tag. Basically, tags are just ways to group your instances in Linode. So, if you have multiple instances you can group them by “web server”, “load balancer”, “storage” per se.</p><p>I promise, we’re almost done…</p><h3>Root Password?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/0*nw8mEpbeFe2mEvSn" /></figure><p>Finally, what is a root password? Basically a “root password” is the password for the root user. The root user can be considered the default “administrator” of a server. So, you’ll want to make a pretty strong root password(No pun intended — password gauge meter).</p><p>Note: I purposely skipped the optional section, as it doesn’t offer any advantages to new users.</p><h3>Like the Content?</h3><p>If you enjoyed the post, feel free to leave a comment below telling me so. Also, feel free to follow me on Medium -&gt; <a href="https://medium.com/@NerdOfCode">medium.com/@nerdofcode</a>.</p><p><a href="https://www.linode.com/?r=2d384c16ec76fe4103402732dd80082fd0f42195">Linode Signup</a></p><p>Sources: WikiPedia, <a href="https://techcrunch.com/2014/04/17/linode-invests-45m-to-switch-to-ssds-double-ram/">TechCrunch</a></p><p><em>Originally published at </em><a href="https://nerdofcode.com/cloud/getting-started-with-linode/"><em>https://nerdofcode.com</em></a><em> on December 22, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97ac155e3ccf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nerdofcode/getting-started-with-linode-97ac155e3ccf">Getting Started with Linode!</a> was originally published in <a href="https://medium.com/nerdofcode">NerdOfCode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Importance of Source Control!]]></title>
            <link>https://medium.com/nerdofcode/the-importance-of-source-control-modernge-8a3745b7f9b1?source=rss----9bb908e9884f---4</link>
            <guid isPermaLink="false">https://medium.com/p/8a3745b7f9b1</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[source-control]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[NerdOfCode]]></dc:creator>
            <pubDate>Mon, 05 Aug 2019 18:27:01 GMT</pubDate>
            <atom:updated>2019-08-05T18:28:01.996Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V4EsbUgmNEJhPsC1" /><figcaption>Photo by <a href="https://unsplash.com/@jayrheike?utm_source=medium&amp;utm_medium=referral">Jay Heike</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The latest and greatest pieces of software have all sorts of intricate components that are written by thousands upon thousands of developers, which can bring the project size to millions upon millions of lines of code.</p><blockquote>So how are developers supposed to manage a behemoth-size project?</blockquote><p>Well, this is exactly where <strong>source control</strong> comes into play.</p><h3>Briefing on Source Control</h3><p>If I were to put “Source Control” into Laymen’s terms, I’d describe it as a means of tracking and distributing changes to a project.</p><p>A professor also once told me that source control is simply a means of taking snapshots of a project at milestones.</p><p>Further, source control can just be thought of, as a way of inhibiting users to manage their projects, albeit small or large.</p><h3>Git</h3><p>Now, it’s important to note that not all pieces of source control software do the same things. Some may do things that others just aren’t capable of, and vice versa.</p><p>To ensure that we’re all on the same page throughout the rest of this post, we’ll be talking about Git.</p><p><strong>P.S.</strong> I’ve chosen Git because it’s the most popular piece of source control software in the world at the time of the writing.</p><h3>What is Git?</h3><p>As described by the official <a href="https://git-scm.com/">Git website</a>, they describe Git as:</p><blockquote><em>Git is a </em><a href="https://git-scm.com/about/free-and-open-source"><em>free and open source</em></a><em> distributed version control system designed to handle everything from small to very large projects with speed and efficiency.</em></blockquote><p>Basically Git is just another source control piece of software that is capable of efficiently managing your project.</p><h3>Why do we Need it?</h3><p><strong>Have you ever heard of Linux?</strong></p><p>If not, let’s just consider it as a very big coding project that has millions upon millions lines of code.</p><p>The Linux Developers weren’t using a very good set of tools that helped with source control at the time, and due to events surrounding these tools, they were forced to develop their own.</p><p>This is why Git was birthed. Basically to track, distribute, and offer revision histories of the Linux project.</p><h4>Git Further Explained…</h4><p>If you still haven’t grasped what Git does, and it&#39;s importance... I&#39;ve broken it down into the simplest explanation I possibly could right below.</p><p>So, for the sake of this explanation, let’s say that we’re working on an English project that will be due in 3 days time. and let’s also say that we write a draft the first night, and then expand on it each night until it’s due.</p><blockquote><em>1st Night: At the start of the first night, we tell Git to start tracking our English paper, and we begin writing our first draft. At the end of the night, we tell Git that our first draft is done.</em></blockquote><blockquote><em>2nd Night: At the start of the second night, we are really </em>tired<em>, but we trudge along writing our second draft. Again, at the end of the night we tell Git that our second draft is now done.</em></blockquote><blockquote><em>3rd Night: Finally, we start working on our final draft, until we realize that our second draft is horribly wrong and we need to revert to our 1st draft. Easy, we tell Git to simply revert our changes to the first draft, and we start writing again.</em></blockquote><p>As you can see, Git saved our paper, because it allowed us to go back to that working version.</p><p>Just as it would allow the Linux developers, or any other “git-user” to revert to a working snapshot of the code or project.</p><h3>What are the Advantages and Disadvantages?</h3><p>Before I begin listing off the advantages and disadvantages of using source control in your project, let me just say that using source control will always outweigh the benefits of not using it.</p><p>But, also like everything else we know, there are always associated advantages and disadvantages.</p><p>Anyways, here is my list of the advantages and disadvantages of using source control:</p><p><strong>Advantages:</strong></p><ul><li>Tracks all changes made to a project</li><li>Creates a version history, that allows you to revert to different milestones</li><li>Allows for easy distribution of the project</li><li>Allows simultaneous versions of the project to exist at any given point</li><li>A lot of major projects use some sort of source control these days</li></ul><p><strong>Disadvantages:</strong></p><ul><li>Takes time to get used to using source control</li><li>Can be slow if you have a slow network-connection</li><li>Takes up slightly more space than the project would by itself</li></ul><h3>Common Misconceptions about Git</h3><p>Traveling through my everyday life, I hear a lot of misconceptions regarding Git.</p><p>It’s all too common to hear people mention things like how Git depends on GitHub to function. Or even just aliasing Git’s functionality to GitHub. To clear the air, GitHub employs Git under the hood to manage any repositories you may have, not the other way around.</p><p>It’s also not out of the ordinary to hear that Git can’t operate independently of GitHub, or it at least needs a server to operate correctly. This is also incorrect, as Git is described as being “decentralized,” or requires no centralized source to function.</p><p>Basically, you can run track, save, and push your code all on the same computer.</p><h3>Real Life Examples of Source Control</h3><p>Moreover, Source control is just a fancy way of talking about a piece of software that tracks, and distributes changes in a project.</p><p>In the example provided earlier, we talked about writing an English project using source control. Although this doesn’t seem too realistic for kids to be doing in 2019, this is because we have an even easier way of accessing source control.</p><p>Google Docs. Yes, Google Docs is basically its own form of source control, that employs its own methods of allowing the user to take their “snapshots” of their project.</p><p>Source control is a whole lot more popular than you think, just take it from these companies that employ Git in their everyday work-cycles:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/79/0*yTt_i2oFmv2QKKZu" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/54/0*XhiDvGV5YjLFiVYl" /></figure><h3>Other Cool Features of Git</h3><p>Git is not only used to take “snapshots” of a project during its milestones, but it also has some really cool less-known features it possesses:</p><p>git blame -&gt; Git has a really cool features called blame, what this allows you to do is see who made what changes to a given line of code. This is very useful if you&#39;re trying to hunt down somebody who created a bug, or if you simply just want to find out more information about the code they wrote.</p><p>git config -&gt; Git is extremely customizable using the config parameter. For example: you can literally modify the way that Git lists pending files.</p><h3>Consider Supporting the Blog!</h3><p>Thanks for reading this post, I <em>really</em> hope you enjoyed it.</p><p>If you enjoyed it a little too much, please feel free to leave a comment below, and support me on <a href="https://patreon.com/nerdofcode">Patreon</a> <a href="https://patreon.com/nerdofcode">here</a>!</p><p><strong>Sources</strong> used in this post: <a href="https://git-scm.com/">Git-scm</a></p><p><em>Originally published at </em><a href="https://nerdofcode.com/informative/the-importance-of-source-control/"><em>https://nerdofcode.com</em></a><em> on May 25, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a3745b7f9b1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nerdofcode/the-importance-of-source-control-modernge-8a3745b7f9b1">The Importance of Source Control!</a> was originally published in <a href="https://medium.com/nerdofcode">NerdOfCode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When should you use Linux over Windows?]]></title>
            <link>https://medium.com/nerdofcode/when-should-you-use-linux-over-windows-4d149c35e26c?source=rss----9bb908e9884f---4</link>
            <guid isPermaLink="false">https://medium.com/p/4d149c35e26c</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[comparison]]></category>
            <dc:creator><![CDATA[NerdOfCode]]></dc:creator>
            <pubDate>Sun, 21 Jul 2019 00:40:00 GMT</pubDate>
            <atom:updated>2019-07-21T00:40:00.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7QHgGFiemwijz4aS" /><figcaption>Photo by <a href="https://unsplash.com/@mudmanuk?utm_source=medium&amp;utm_medium=referral">Paul Carroll</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A lot of tech oriented blogs out there on the internet are constantly advising that everyone should <strong><em>always</em></strong> be using Linux and that there are no buts’ about it.</p><p>These blogs usually go on to spew something like(I totally don’t do that in this post): Linux can offer this or that feature, it’s secure, and it shows that you’re .</p><p>But when should you actually be using Linux as opposed to Windows to maximize your productivity with the operating system?</p><h3>What is Linux?</h3><p>Similar to Windows, Linux or rather GNU/Linux is an operating system that enables people to effectively command their computers without any pre-requisite low-level knowledge of how the computer works. The computers (installed with Linux or Windows) allow their operators to easily perform mundane tasks such as: browsing the web, installing software, and reading email.</p><p><strong>NOTE:</strong> it’s important to realize that “Linux” and “GNU/Linux” have entirely different meanings. “Linux” itself refers directly to the kernel developed by Linus Torvalds, while “GNU/Linux” refers to an entire operating system; including the kernel.</p><h3>When to use Linux over Windows</h3><p>Although Linux can be compared to Windows in terms of similarity, it can <strong>certainly</strong> provide many features that differentiate itself from Windows.</p><p>Below you will find the “short versions” of situations in which you would want to use Linux over Windows and then below that, you will find the relative “longer versions” of such a situation.</p><h3>Short Versions of such Situations</h3><p>With this being said, here’s a list of functionality and features that Linux is able to bring to the table that Windows doesn’t have or simply cant provide:</p><ol><li>Developing for Linux will always be more clean-cut then developing for Linux on a non-Linux platform</li><li>It’s open-source</li><li>Fast security patches</li><li>Runs smoothly on older computers (may depend on the chosen distro as-well)</li><li>Guaranteed privacy from data-hungry companies such as Microsoft</li></ol><p>And now for the longer versions of the shorter versions!?</p><h3>Longer Versions of situations</h3><p><strong>Developing applications for use on a Linux Environment?</strong></p><ul><li>You’re going to want to use Linux for this one because developing, debugging, and testing on Linux guarantees that your environment is going to be as close as it can be to your target environment. It’s also much easier to setup a virtual environment on Linux which emulates your target environment than doing so on Windows.</li><li>Cross-compiling — Compiling Linux software on Windows to be used on Linux just sounds like a nightmare waiting to happen, although Windows has been trying to make this easier lately; probably because they’re worried about developers moving away.</li></ul><p><strong>Want to support the open-source community?</strong></p><ul><li>If you don’t want to support private companies such as Microsoft who will sell your data the instant they get it; you’re going to want to support Linux as it provides a 100% completely transparent environment in which you’re the boss of.</li><li>Also, supporting the open-source community is a rather good idea because just about all of the popular software out there that you and I use everyday most likely include some aspect of open source software.</li><li>Basically you want to say thanks to the open-source community</li></ul><p><strong>Access to fast security patches?</strong></p><ul><li>When the Linux kernel developers are contacted about potential security vulnerabilities, the devs don’t sit around waiting for the vulnerability to be exploited in the wild. They hop-to and start working on a patch the same day, and will most likely release the patch the same week they get the notice.</li></ul><p><strong>Want more privacy?</strong></p><ul><li>Microsoft and more importantly Microsoft Windows are known to spy on its users; harvesting their data without their knowledge. I mean who knew you had to jump through so many hoops just to disable analytics reporting in Windows? Anyways, Linux provides the maximum amount of privacy to it’s users, as their is no type of logging or interaction with a 3rd-party built directly into the kernel/OS.</li></ul><p><strong>Have an older computer?</strong></p><ul><li>Then chances are massive that Linux will run much smoother, and more efficiently on an older machine.</li><li>Also, if you want to turn an old computer into a server, then Linux should be your go-to.</li></ul><p><strong>Want to save some money?</strong></p><ul><li>Did you know that when buy a computer with Windows pre-installed, you’re most likely going to be paying for that Windows license, as it’s included in the paying-price? No? Well, compare the prices of laptops with Linux and then laptops with Windows. This is a sure way to save $100 on your next computer purchase.</li></ul><h3>Goodbye</h3><p>Thanks for reading the post! I hope you’ve learned a thing or two about using Linux over Windows, and hopefully soon I’ll be able to write a post covering when you should be using Windows over Linux!</p><p>Leave a comment below if you want a Windows over Linux post!</p><p>Cheers!</p><p><em>Originally published at </em><a href="https://nerdofcode.com/linux/when-should-you-use-linux-over-windows/"><em>https://nerdofcode.com</em></a><em> on July 21, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d149c35e26c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nerdofcode/when-should-you-use-linux-over-windows-4d149c35e26c">When should you use Linux over Windows?</a> was originally published in <a href="https://medium.com/nerdofcode">NerdOfCode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing a Pointless Linux Module]]></title>
            <link>https://medium.com/nerdofcode/writing-a-pointless-linux-module-8f3ee2db5a5a?source=rss----9bb908e9884f---4</link>
            <guid isPermaLink="false">https://medium.com/p/8f3ee2db5a5a</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[kernel]]></category>
            <category><![CDATA[modules]]></category>
            <category><![CDATA[diy]]></category>
            <dc:creator><![CDATA[NerdOfCode]]></dc:creator>
            <pubDate>Fri, 19 Jul 2019 21:58:46 GMT</pubDate>
            <atom:updated>2019-07-20T04:22:44.681Z</atom:updated>
            <content:encoded><![CDATA[<h4>Writing your first Linux module can appear to be a very daunting and challenging task. That’s mainly because it is. But, hey if it was easy, then everyone would do it.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SPC-Vptax05myjDm" /><figcaption>Photo by <a href="https://unsplash.com/@_imkiran?utm_source=medium&amp;utm_medium=referral">Sai Kiran Anagani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Getting Started</h4><p>In this post, you will hopefully create a very simple Linux kernel module that outputs some traditional messages like “Hello, World!” and “Goodbye, World!”.</p><p>I’ll try to focus on explaining the details of every line of code, as opposed to writing a complex module without much explanation.</p><p>Like most coding projects, there are some prerequisite tools that you need to install before developing. Luckily for this project, there aren’t that many, but you’ll still need to have access to the following:</p><ul><li>Linux machine</li><li>make installed</li><li>sudo access</li></ul><h4>Header Files</h4><p>To get started, we’ll need to first #include some header files to get the bare-minimum functionality of our “Hello, World!” module. We can do so by creating a file named hello_module.c with the following contents:</p><pre>#include &lt;linux/module.h&gt; // Allows us to define Macros to replace init_module() and cleanup_module()</pre><pre>#include &lt;linux/kernel.h&gt; // Gives us access to KERN_INFO</pre><p>The &lt;linux/module.h&gt; header file will basically allow us to define what our description does, while the &lt;linux/kernel.h&gt; header file will allow us to provide output from our module.</p><h4>How to Init</h4><p>Next, we’ll need to define how the kernel is supposed to initialize our module. We can do so by creating a static init function (you can use whatever function name you want):</p><pre>static int __init hello_world_init(void)<br> {<br>  /* This is the entry initialization function of our module that runs when the module is first inserted into the kernel */</pre><pre>  return 0; // 0 =&gt; Indicate success to the kernel<br>}</pre><p>Inside this function, we’ll want to add the code that prints the “Hello, World!” remark. One important drawback to note is that we can&#39;t use the traditional printf() function, as the kernel has no header file that defines it. Instead, we’ll use a function calledprintk() which offers a similar way of printing.</p><p>Moreover, we can output “Hello, World!” to the kernel ring buffer (this is what KERN_INFOdoes) from our module by adding the following to our init function:</p><pre>printk(KERN_INFO &quot;Hello, World!&quot;);</pre><p>This brings the total code so far to the following:</p><pre>#include &lt;linux/module.h&gt;<br>#include &lt;linux/kernel.h&gt;</pre><pre>static int __init hello_world_init(void)<br>{<br>  printk(KERN_INFO &quot;Hello, World!&quot;);<br>  return 0;<br>}</pre><h4>How to Exit</h4><p>Now that we have successfully provided an initialization point that runs when our module is loaded, we will also have to define the exit point from when our module is unloaded or removed.</p><p>This time we can define the exit function with the following:</p><pre>static void __exit hello_world_exit(void)<br>{<br>  /* This is the function that will be ran when the module is being unloaded from the kernel */<br>}</pre><p>This time we’ll want to add the code that prints the “Goodbye, World!” in this function. We can do so in the same manner as before, with the following:</p><pre>printk(KERN_INFO &quot;Goodbye, World!&quot;);</pre><p>Adding this line will bring the current exit function to:</p><pre>static void __exit hello_world_exit(void)<br>{<br>  printk(KERN_INFO &quot;Goodbye, World!&quot;);<br>}</pre><p>Notice how we didn’t add the return 0; in this function? This is because we defined the function that specified it wouldn’t return anything with the C void keyword.</p><p>If you followed all of the aforementioned steps, you should have come up with the following code:</p><pre>#include &lt;linux/kernel.h&gt;<br>#include &lt;linux/module.h&gt;</pre><pre>static int __init hello_world_init(void)<br>{<br>  printk(KERN_INFO &quot;Hello, World!\n&quot;);<br>  return 0;<br>}</pre><pre>static void __exit hello_world_exit(void)<br>{<br>  printk(KERN_INFO &quot;Goodbye, World!\n&quot;);<br>}</pre><p>Although this code looks pretty solid, it won’t compile successfully for a few reasons. The first of being that we have to tell the kernel that we aren’t using the default init and exit function names. We also still need to create the Makefile that will compile our code, and turn it into a .ko file that the kernel can actually understand. Lastly, we will need to define macros which specify various details of our module.</p><h4>Defining the custom init and exit functions</h4><p>As mentioned previously, we’re not using the default entry and exit points in a Linux kernel module. This is because I think it will be slightly easier for beginners to grasp.</p><p>Anyways, since we included the &lt;linux/module.h&gt; header file, all we have to do to define the custom init and exit functions is add the following to the bottom of our module:</p><pre>module_init(hello_world_init);<br>module_exit(hello_world_exit);</pre><p>This is self-explanatory code, but if you’re like me you’ll still want an explanation. So, the line module_init(hello_world_init); basically provides a <strong><em>pass-by-reference </em></strong>value of the hello_world_init <strong><em>static</em></strong> function(this is why the init function is defined with the static keyword) to the module_init(); function.</p><p>The module_exit(); function does the same exit thing, but with the hello_world_exit reference.</p><p>With the addition of the two previous lines of code, our total code now stands with this:</p><pre>#include &lt;linux/kernel.h&gt;<br>#include &lt;linux/module.h&gt;</pre><pre>static int __init hello_world_init(void)<br>{<br>  printk(KERN_INFO &quot;Hello, World!\n&quot;);<br>  return 0;<br>}</pre><pre>static void __exit hello_world_exit(void)<br>{<br>  printk(KERN_INFO &quot;Goodbye, World!\n&quot;);<br>}</pre><pre>module_init(hello_world_init);<br>module_exit(hello_world_exit);</pre><h4>Creating the Makefile</h4><p>Now instead of running a bunch of commands to compile our module in a specific way, we can just define a Makefile which will automate this compilation process for us. I’m not going to go much in detail about how and why we do what we do in this Makefile</p><p>But the key-take-away value is that it compiles our module to the requirements of a Linux kernel module using some built-in tools on Linux.</p><p>Now, let’s create the Makefile by simply creating a file named-so, and add the following contents:</p><pre>obj-m += hello_module.o<br><br>all:<br>	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules<br><br>clean:<br>	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean</pre><p>In order to make use of this Makefile we can simply type and run make command.</p><p>Once this command finishes executing, we should a few files in our current directory. If all goes to plan, the compiled kernel module will be named hello_module.ko</p><h4>Inserting the module</h4><p>Now it’s time to actually insert our module into the kernel!</p><p>This is a rather simple process thanks to built-in commands in Linux. You can insert your module by running:</p><p>sudo insmod hello_module.ko</p><p>insmod simply stands for “insert module”</p><p>If your computer doesn’t catch fire, then your module has most likely been inserted.</p><h4>Viewing the results</h4><p>If you want to see if the module has actually worked (your Linux machine would crash if you did something wrong when inserting), then simply run the following:</p><p>dmesg | grep &quot;Hello, World!&quot;</p><p>If you see “Hello, World!” outputted back at you, then your module has been successfully loaded into the kernel!!! Although, if you don’t see the magical “Hello, World!” then make sure to re-read the tutorial.</p><h4>Removing the module</h4><p>Once your excitement of writing and loading your first Linux kernel module wears off, you might want to remove it from the kernel. I mean it’s surely not doing it too many favors!</p><p>To remove the module, we can simply run:</p><p>sudo rmmod hello_module</p><p>rmmod stands for “remove module”</p><h4>Viewing the results again!</h4><p>Again, if you wanted to view the results of removing your module from the Linux kernel, then simply run:</p><p>dmesg</p><p>If you see the “Goodbye, World!” message, then you know that your module has successfully unloaded from the kernel.</p><h4>Defining our module</h4><p>Lastly, we’ll want to define what our module does, that way your users can grasp a better understanding of it if they were to use it.</p><p>In order to start defining our module, we’ll need to include another header file that allows us to define macros. So, add #include &lt;linux/init.h&gt; into the top of your hello_module.c file.</p><p>Next, we need to define some macros which define our module. We can do so by adding the following right under all of our #include statements:</p><pre>#define MOD_AUTHOR &quot;Nathan Carnegie&quot;<br>#define MOD_DESCRIPTION &quot;Pointless Module&quot;</pre><p>After adding these macros, we’ll want to call the defined macros from the included &lt;linux/init.h&gt; header file that will actually make use of our macros.</p><p>We can do so by adding the following code to the <strong>bottom</strong> of our module:</p><pre>MODULE_AUTHOR(MOD_AUTHOR);<br>MODULE_DESCRIPTION(MOD_DESCRIPTION);</pre><p>We can also define what license our module is under by making use of adding the following macro below:</p><pre>MODULE_LICENSE(&quot;GPL&quot;);</pre><p>Adding all of the aforementioned code in this tutorial will result in:</p><pre>#include &lt;linux/kernel.h&gt;<br>#include &lt;linux/module.h&gt;<br>#include &lt;linux/init.h&gt;</pre><pre>#define MOD_AUTHOR &quot;Nathan Carnegie&quot;<br>#define MOD_DESCRIPTION &quot;Pointless Module&quot;</pre><pre>static int __init hello_world(void)<br>{<br>  printk(KERN_INFO &quot;Hello, World!\n&quot;);<br>  return 0;<br>}</pre><pre>static void __exit hello_world_exit(void)<br>{<br>printk(KERN_INFO &quot;Goodbye, World!\n&quot;);<br>}</pre><pre>MODULE_AUTHOR(MOD_AUTHOR);<br>MODULE_DESCRIPTION(MOD_DESCRIPTION);<br>MODULE_LICENSE(&quot;GPL&quot;);</pre><pre>module_init(hello_world);<br>module_exit(hello_world_exit);</pre><p>After running make one last time, we can now insert our newly improved module(you need to remove the previous module with rmmod first). Again we can do so by running the following:</p><p>sudo insmod hello_module.ko</p><p>Lastly, we can view the newly defined information regarding our module, by making use of modinfo</p><p>Just run the following to get the details of the module:</p><p>modinfo hello_module.ko</p><h3>Where to go from here?</h3><p>Reaching this point in the post, you have most likely created your first kernel module and are now looking for more information to continue your development.</p><p>If this is the case, I recommend obtaining a copy of “Linux Kernel Development“ by Robert Love which can be found <a href="https://amzn.to/2Y93pmp">here</a> (← That’s an affiliate link).</p><p>Thanks for reading!</p><p><strong>Credit:</strong> Some Information was expanded upon from the <a href="https://amzn.to/2Y93pmp">“Linux Kernel Development” book </a>(← Same affiliate link), and from <a href="https://www.tldp.org/LDP/lkmpg/2.6/html/x121.html">tldp</a>!</p><p><strong>Disclaimer: </strong>As an Amazon Associate I earn from qualifying purchases.</p><p>This is no way changes the actual cost of the item to you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f3ee2db5a5a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nerdofcode/writing-a-pointless-linux-module-8f3ee2db5a5a">Writing a Pointless Linux Module</a> was originally published in <a href="https://medium.com/nerdofcode">NerdOfCode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should you consider a “Private Cloud” in 2019?]]></title>
            <link>https://medium.com/nerdofcode/should-you-private-cloud-in-2019-3fb9270e1f7?source=rss----9bb908e9884f---4</link>
            <guid isPermaLink="false">https://medium.com/p/3fb9270e1f7</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[nextcloud]]></category>
            <category><![CDATA[internet]]></category>
            <dc:creator><![CDATA[NerdOfCode]]></dc:creator>
            <pubDate>Fri, 19 Jul 2019 20:53:56 GMT</pubDate>
            <atom:updated>2019-07-20T23:22:16.585Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V60RnniqfFOwg5TB" /><figcaption>Photo by <a href="https://unsplash.com/@samuelzeller?utm_source=medium&amp;utm_medium=referral">Samuel Zeller</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Due to recent skyrockets in data privacy interests, thanks to scandals from Facebook and the release of tracking techniques used by Google, the users of the internet have become increasingly privacy conscientious when it comes who is allowed and not allowed to have their hands on their personal data.</p><h3>Background info</h3><p>Recent news headlines in the tech sector have depicted large tech companies as <strong><em>evil</em></strong> agencies that track every move and click its users make. Which I have no doubt is true to the fullest extent.</p><p>Now these are companies that you and I use everyday, which include: Google, Facebook, Amazon, Huawei, etc…</p><p>But what makes these companies evil isn’t the fact that they serve a countless number of ads, they’re <strong>evil</strong> because they’re doing it at the expense of your <strong>data</strong>. They obtain this data via tracking you on their site, and throughout the internet.</p><h3>How do they make money off of tracking users</h3><p>Different companies have different money making practices, so let’s take Google into consideration here. I’ve chosen Google as the <strong>flagship</strong> partly out of <em>bias</em>, but also as they are considered the best money maker when it comes to making money off of their user’s data.</p><h4>Wheres this so-called data come from</h4><p>Well, anytime you do anything on any one of Google’s vast number of platforms, they take everything you <strong>do</strong> into account. Let me rephrase that… “ <strong>THEY LOG EVERYTHING</strong> “.</p><p>This is where they gather the rich-data on their users from.</p><h4>Why do companies (Google) do this</h4><p>They do this because it allows them to generate a unique portfolio of every single one of their users, which then allows them to serve<strong> targeted ads </strong>towards those unique users with the intent that these users are more likely to click an ad that’s related to them in some form. Then, if and once the user clicks an ad, Google will receive a much larger paycheck as opposed to if the user just looked at the ad.</p><p>This is why <strong>CPC</strong>, or <strong>C</strong>ost <strong>P</strong>er <strong>C</strong>lick results in a higher payout per unit as opposed to <strong>CPM </strong>or <strong>C</strong>ost <strong>P</strong>er <strong>Mille, </strong>which is the amount the advertiser pays per 1,000 impressions/views.</p><h3>What makes this a problem</h3><p>As I’ve said previously, these advertising companies <strong>LOG</strong> everything you do on their platforms, and they can even log what you do on other websites around the internet (that’s a post for another time though).</p><p>Going back to the case with Google; Google has<strong> billions</strong> of users that use their platforms because they’re <em>free</em>. The only reason the platforms are free are because they are able to target their users with ads, ads which Google knows that the user has a high chance of clicking.</p><p>Furthermore, with the gathered data as evidence; they may be able to accurately predict what you were thinking based on what you were doing on the platform (This may or may not be over-exaggerated in some cases), which is thanks to artificial intelligence and machine-learning.</p><p>Anyways.</p><p>Ultimately, the problem comes down to this: “Not only does Google have access to everything you do on their platform, they have access to any and everything you upload to their platforms.”</p><h4>How does this apply to me</h4><p>Let’s take Gmail into account here. Recent evidence shows that Google has unrestricted access to your entire Gmail account; which means that they can read all your emails.</p><p>Don’t care about your Gmail? <strong>Pffff.</strong></p><p>Well, what about your files in Google Drive? Yes, Google even has unrestricted access to any of your files in your Google Drive account.</p><p>Just take a <strong><em>long</em></strong> minute and think about everything you have stored in your Drive account. If you actually took a minute and thought about what you have in your Drive account, then chances are that you have some stuff in there that you wouldn’t want some Google employee looking at. If not, then you probably don’t want to continue looking into setting up a private cloud, but hey; who knows.</p><h3>How can we stop this</h3><p>If you’re like me, then you want to know how you can stop or at least limit your surface area to these advertising platforms.</p><p>And since we can’t replace the entire Google technology stack in one post, we’re going to be discussing if replacing Google Drive with a private self-hosted cloud is worth it in 2019.</p><p>Time for the “ <strong>Next Cloud</strong> “ talk!</p><h3>A viable self-hosted private cloud</h3><p>In my opinion, the answer to the easiest and best option for self-hosting a private cloud in 2019 is Nextcloud.</p><p>As the product name hints, Nextcloud is literally meant to be the<strong> Next Cloud</strong>.</p><h3>What is it</h3><p>If we were to put a definition on Nextcloud, we can simply say that Nextcloud is a piece of open-source software that enables its users to create a “self-hosted private cloud,” which entails users taking back ownership of their private data.</p><h3>Is it worth it</h3><p>The real question comes down to: “Is Nextcloud worth the hassle to setup and keep maintained.”</p><p>And of course, the answer to that type of question is always: “it depends.” The short answer: if you’re a technical geek who values their digital privacy, then the answer is “absolutely.” But, if you’re just an average online user, then you’ll have to decide for yourself.</p><p>And for anyone who want’s more supporting evidence weighing their decision; I’ve already wrote a post discussing the advantages and disadvantages of hosting a private cloud via Nextcloud <a href="https://nerdofcode.com/cloud/advantages-vs-disadvantages-of-using-nextcloud/">here</a>!</p><p>Hopefully this post has given you a little insight into how the online world works, and has provided you a little advice into whether you should Nextcloud in 2019 or not!</p><p>Cheers!</p><p><em>Originally published at </em><a href="https://nerdofcode.com/google/should-you-private-cloud-in-2019/"><em>https://nerdofcode.com</em></a><em> on July 19, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fb9270e1f7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nerdofcode/should-you-private-cloud-in-2019-3fb9270e1f7">Should you consider a “Private Cloud” in 2019?</a> was originally published in <a href="https://medium.com/nerdofcode">NerdOfCode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>