<?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: charles</title>
    <description>The latest articles on DEV Community by charles (@cizu64).</description>
    <link>https://dev.to/cizu64</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%2F56327%2Fb037b839-b785-47f8-aea5-9672689496a4.jpeg</url>
      <title>DEV Community: charles</title>
      <link>https://dev.to/cizu64</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cizu64"/>
    <language>en</language>
    <item>
      <title>React, Vue or Angular</title>
      <dc:creator>charles</dc:creator>
      <pubDate>Tue, 30 Apr 2024 17:13:55 +0000</pubDate>
      <link>https://dev.to/cizu64/react-vue-or-angular-3iki</link>
      <guid>https://dev.to/cizu64/react-vue-or-angular-3iki</guid>
      <description>&lt;p&gt;React, Vue and Angular has been used to build robust web applications and mobile apps and sometimes when it comes to making decisions based on which platform to use can be challenging. So, let's have a pool. What is your preferred web development libraries. &lt;/p&gt;

&lt;p&gt;React, Angular or Vue?&lt;/p&gt;

&lt;p&gt;For me it's surely, React plus Typescript and NextJs. After going through this free course on &lt;a href="https://www.udemy.com/course/all-in-one-beginners-guide-to-typescript-react-nextjs/?couponCode=4E12528314"&gt;Udemy&lt;/a&gt;, i have been creating amazing ReactJs application. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Hosting multiple websites on Ec2 using IIS</title>
      <dc:creator>charles</dc:creator>
      <pubDate>Mon, 19 Feb 2018 11:24:06 +0000</pubDate>
      <link>https://dev.to/cizu64/hosting-multiple-websites-on-ec2-using-iis--3nad</link>
      <guid>https://dev.to/cizu64/hosting-multiple-websites-on-ec2-using-iis--3nad</guid>
      <description>

&lt;p&gt;Hosting multiple websites on Amazon Ec2 using IIS is simple, all you need to do is add a firewall inbound rule, edit the site binding in IIS, add a custom TCP rule in the ec2 security group to support the port you are going to be using.&lt;/p&gt;

&lt;p&gt;For example, you have two websites, one is the web app and the other is the Web API, and you need to use the same IIS server, the first thing to do is:&lt;/p&gt;

&lt;p&gt;1) Add a custom TCP Rule in the ec2 dashboard under NETWORK &amp;amp; SECURITY tab and set the port to 81&lt;/p&gt;

&lt;p&gt;2) Configure open IIS and create the two websites, after creating the websites,&lt;br&gt;
you edit the binding for the two websites using port 81 on the API and port 80 on the web app.&lt;/p&gt;

&lt;p&gt;3) Add a firewall inbound rule to support access from port 81&lt;/p&gt;

&lt;p&gt;For a full-detailed information, &lt;a href="http://techcerberus.blogspot.com.ng/2018/02/how-to-host-multiple-website-on-amazon.html"&gt;check this out&lt;/a&gt;&lt;/p&gt;


</description>
      <category>amazon</category>
      <category>ec2</category>
      <category>aws</category>
      <category>cloudhosting</category>
    </item>
    <item>
      <title>Building a Bitcoin Calculator with Javascript</title>
      <dc:creator>charles</dc:creator>
      <pubDate>Sat, 03 Feb 2018 13:50:32 +0000</pubDate>
      <link>https://dev.to/cizu64/building-a-bitcoin-calculator-with-javascript-1jjc</link>
      <guid>https://dev.to/cizu64/building-a-bitcoin-calculator-with-javascript-1jjc</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Hey guys, I am going to show you how to use Bitcoin exchange rates and currency conversion that supports all major currencies. I am currently using Coindesk which provides API to make data programmatically available to others. &lt;/p&gt;

&lt;p&gt;To use the  API, you don't need to register, it is free!&lt;/p&gt;

&lt;p&gt;You can check out the supported currencies available on their website (&lt;a href="http://coindesk.com" rel="noopener noreferrer"&gt;http://coindesk.com&lt;/a&gt;). To use the endpoint, you make a request to:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://api.coindesk.com/v1/bpi/currentprice/%5Bcode%5D.json" rel="noopener noreferrer"&gt;https://api.coindesk.com/v1/bpi/currentprice/[code].json&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The code parameter accepts a valid ISO 4217 currency code &lt;/p&gt;

&lt;h2&gt;
  
  
  A sample request
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2F3.bp.blogspot.com%2F-57hNfi3JTYE%2FWl9ubE5FpFI%2FAAAAAAAAAfM%2FbKnAXzbWLVQhMViDXs-FiDKxsZNr55X6wCLcBGAs%2Fs1600%2FUntitled.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%2F3.bp.blogspot.com%2F-57hNfi3JTYE%2FWl9ubE5FpFI%2FAAAAAAAAAfM%2FbKnAXzbWLVQhMViDXs-FiDKxsZNr55X6wCLcBGAs%2Fs1600%2FUntitled.png" alt="sample"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Take a look at the result, you would notice the rate and the rate_float object, which contains the exchange rate for the local currency to BTC. Below is a formula to convert BTC to your local currency.&lt;/p&gt;

&lt;h6&gt;
  
  
  Formula = BTC Amount * Exchange Rate = Local currency Price
&lt;/h6&gt;

&lt;h1&gt;
  
  
  Building the Bitcoin Calculator
&lt;/h1&gt;

&lt;p&gt;Using a client to consume the JSON data returned from the endpoint is the first thing to do. You can use Asp.Net HttpClient class, Jquery getJson() function which we are going to use here or you can use others you already know.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$.getJSON( "https://api.coindesk.com/v1/bpi/currentprice/usd.json", function( data) {
   var amountInBtc = 0.005; //convert 0.005 btc to usd
   var exchangeRate = parseInt(data.bpi.USD.rate_float);
   var amount = amountInBtc * exchangeRate;
   console.log(amount);
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Follow Me: &lt;/p&gt;

&lt;p&gt;Blog: &lt;a href="https://techcerberus.blogspot.com" rel="noopener noreferrer"&gt;https://techcerberus.blogspot.com&lt;/a&gt;&lt;br&gt;
Twitter: &lt;a href="https://twitter.com/charlesnnaji" rel="noopener noreferrer"&gt;https://twitter.com/charlesnnaji&lt;/a&gt;&lt;br&gt;
Medium: &lt;a href="https://medium.com/@cizu64" rel="noopener noreferrer"&gt;https://medium.com/@cizu64&lt;/a&gt;&lt;/p&gt;

</description>
      <category>bitcoin</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
