<?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[Stories by Nayana Raju on Medium]]></title>
        <description><![CDATA[Stories by Nayana Raju on Medium]]></description>
        <link>https://medium.com/@nayanaraju?source=rss-2d44b2e6222e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sFvovVerT8TepGV_BOsV4w.jpeg</url>
            <title>Stories by Nayana Raju on Medium</title>
            <link>https://medium.com/@nayanaraju?source=rss-2d44b2e6222e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:42:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nayanaraju/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Predicting Cryptocurrency Prices with Machine Learning: A Real-World Python Application]]></title>
            <link>https://medium.com/@nayanaraju/predicting-cryptocurrency-prices-with-machine-learning-a-real-world-python-application-29f36b57ea78?source=rss-2d44b2e6222e------2</link>
            <guid isPermaLink="false">https://medium.com/p/29f36b57ea78</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Nayana Raju]]></dc:creator>
            <pubDate>Wed, 06 Mar 2024 01:47:34 GMT</pubDate>
            <atom:updated>2024-03-06T01:47:34.268Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V5rkv1LhdTTRlGTG" /><figcaption>Photo by <a href="https://unsplash.com/@jievani?utm_source=medium&amp;utm_medium=referral">Jievani Weerasinghe</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>In the rapidly evolving world of cryptocurrencies, having the ability to predict prices can be a huge advantage. This article will walk you through how to build a machine learning model for cryptocurrency price prediction using Python.</p><h3>Scenario: Cryptocurrency Trading Platform</h3><p>Imagine you’re a data scientist at a cryptocurrency trading platform. Your task is to build a model that can predict the future prices of cryptocurrencies. This model will help your platform provide valuable insights to its users and make informed decisions.</p><h3>Gathering Data</h3><p>The first step in any machine learning project is gathering data. For our task, we’ll need historical data of the cryptocurrency prices. There are many APIs available that provide this data, such as CoinGecko, CoinAPI, etc.</p><pre>import pandas as pd<br>import requests<br><br>def fetch_historical_prices(crypto):<br>    url = f&quot;https://min-api.cryptocompare.com/data/histoday?fsym={crypto}&amp;tsym=USD&amp;limit=365&quot;<br>    response = requests.get(url)<br>    data = response.json()[&quot;Data&quot;]<br>    df = pd.DataFrame(data)<br>    df[&#39;time&#39;] = pd.to_datetime(df[&#39;time&#39;], unit=&#39;s&#39;)<br>    df.set_index(&#39;time&#39;, inplace=True)<br>    return df</pre><h3>Preprocessing Data</h3><p>Once we have the data, we need to preprocess it to make it suitable for our machine learning model. This could involve cleaning the data, handling missing values, normalization, etc.</p><pre>from sklearn.preprocessing import MinMaxScaler<br><br>def preprocess_data(df):<br>    scaler = MinMaxScaler()<br>    df_scaled = pd.DataFrame(scaler.fit_transform(df), columns=df.columns)<br>    return df_scaled, scaler</pre><h3>Building the Machine Learning Model</h3><p>We’ll use a simple linear regression model for our task. While there are more complex models out there, linear regression provides a good starting point.</p><pre>from sklearn.model_selection import train_test_split<br>from sklearn.linear_model import LinearRegression<br><br>def train_model(X, y):<br>    X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)<br>    model = LinearRegression()<br>    model.fit(X_train, y_train)<br>    return model</pre><h3>Making Predictions</h3><p>With our model trained, we can now use it to predict future cryptocurrency prices.</p><pre>def predict_prices(model, X):<br>    return model.predict(X)</pre><h3>Conclusion</h3><p>This is a simplified example of how Python and machine learning can be used to predict cryptocurrency prices. In a real-world scenario, you would need to consider more factors, use more complex models, and implement robust error handling.</p><p>Remember, investing in cryptocurrencies involves risk, and this article should not be taken as financial advice. Always do your own research before making investment decisions.</p><p><em>Disclaimer: This article is for informational purposes only and should not be taken as financial advice.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29f36b57ea78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Cryptocurrency Tracker with Python]]></title>
            <link>https://medium.com/@nayanaraju/building-a-cryptocurrency-tracker-with-python-af0112d0c844?source=rss-2d44b2e6222e------2</link>
            <guid isPermaLink="false">https://medium.com/p/af0112d0c844</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[coingecko]]></category>
            <dc:creator><![CDATA[Nayana Raju]]></dc:creator>
            <pubDate>Wed, 06 Mar 2024 00:41:32 GMT</pubDate>
            <atom:updated>2024-03-06T00:41:32.998Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uYm7XDVdtokeI2Cg" /><figcaption>Photo by <a href="https://unsplash.com/@fabioha?utm_source=medium&amp;utm_medium=referral">fabio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this article, we’ll build a simple cryptocurrency tracker using Python. This tracker will fetch the latest prices of Bitcoin and Ethereum from a public API and display them.</p><h3>Setting Up</h3><p>Before we start coding, we need to install the requests library, which allows us to send HTTP requests in Python. You can install it using pip:</p><pre>pip install requests</pre><h3>Fetching Cryptocurrency Prices</h3><p>We’ll use the <a href="https://www.coingecko.com/">CoinGecko API</a>, which is a free API for cryptocurrency data. Here’s how we can fetch the price of Bitcoin and Ethereum:</p><pre>import requests<br><br>def fetch_prices():<br>    url = &quot;https://api.coingecko.com/api/v3/simple/price&quot;<br>    parameters = {<br>        &#39;ids&#39;: &#39;bitcoin,ethereum&#39;,<br>        &#39;vs_currencies&#39;: &#39;usd&#39;<br>    }<br>    response = requests.get(url, params=parameters)<br>    data = response.json()<br>    return data</pre><p>In this function, we’re sending a GET request to the CoinGecko API. The ids parameter specifies the cryptocurrencies we’re interested in (Bitcoin and Ethereum), and the vs_currencies parameter specifies the currency we want the prices in (USD).</p><p>The requests.get() function sends the HTTP request and returns the server’s response. We then convert this response into a Python dictionary using the json() method.</p><h3>Displaying the Prices</h3><p>Now that we have a function to fetch the prices, we need a function to display them:</p><pre>def display_prices(data):<br>    bitcoin_price = data[&#39;bitcoin&#39;][&#39;usd&#39;]<br>    ethereum_price = data[&#39;ethereum&#39;][&#39;usd&#39;]<br>    print(f&quot;Bitcoin price: ${bitcoin_price}&quot;)<br>    print(f&quot;Ethereum price: ${ethereum_price}&quot;)</pre><p>This function takes the data dictionary returned by fetch_prices(), extracts the prices of Bitcoin and Ethereum, and prints them.</p><h3>Putting It All Together</h3><p>Finally, we can put these functions together to create our cryptocurrency tracker:</p><pre>def main():<br>    data = fetch_prices()<br>    display_prices(data)<br><br>if __name__ == &quot;__main__&quot;:<br>    main()</pre><p>In the main() function, we fetch the prices and display them. The if __name__ == &quot;__main__&quot;: line ensures that main() is only called if the script is run directly (not imported as a module).</p><p>And that’s it! You now have a simple cryptocurrency tracker in Python. You can run this script anytime you want to check the prices of Bitcoin and Ethereum.</p><p><em>Disclaimer: This article is for informational purposes only and should not be taken as financial advice.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af0112d0c844" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cryptocurrency and Data Engineering: Powering Real-Time Analytics with Apache Kafka]]></title>
            <link>https://medium.com/@nayanaraju/cryptocurrency-and-data-engineering-powering-real-time-analytics-with-apache-kafka-036a013a857a?source=rss-2d44b2e6222e------2</link>
            <guid isPermaLink="false">https://medium.com/p/036a013a857a</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Nayana Raju]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 22:33:53 GMT</pubDate>
            <atom:updated>2024-03-05T22:33:53.918Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L5q7Hn7_A02m7tP8" /><figcaption>Photo by <a href="https://unsplash.com/@artrachen?utm_source=medium&amp;utm_medium=referral">Art Rachen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Cryptocurrency, a digital or virtual form of currency that uses cryptography for security, has revolutionized the financial world. The most well-known cryptocurrency is Bitcoin, but there are thousands of others, each with their unique features and uses. Behind the scenes, it’s the field of data engineering that powers this innovation, particularly in the area of real-time analytics.</p><h3>Understanding Cryptocurrency</h3><p>Cryptocurrencies operate on technology called blockchain, a decentralized technology spread across many computers that manage and record transactions. The appeal of this technology is its security.</p><pre>class Cryptocurrency:<br>    def __init__(self, name, symbol, market_cap, price):<br>        self.name = name<br>        self.symbol = symbol<br>        self.market_cap = market_cap<br>        self.price = price</pre><h3>Real-Time Analytics in Cryptocurrency</h3><p>Real-time analytics involves processing data as soon as it arrives, providing instant insights. In the context of cryptocurrency, this could mean tracking price changes, transaction volumes, or market trends as they happen. This real-time information can be crucial for traders and investors to make informed decisions.</p><h3>The Role of Apache Kafka</h3><p>Apache Kafka is a distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications. It’s particularly well-suited to real-time analytics tasks in the cryptocurrency domain due to its ability to handle high volumes of real-time data.</p><pre>from kafka import KafkaProducer<br>import json<br>import requests<br><br>producer = KafkaProducer(bootstrap_servers=&#39;localhost:9092&#39;,<br>                         value_serializer=lambda v: json.dumps(v).encode(&#39;utf-8&#39;))<br>while True:<br>    response = requests.get(&#39;https://api.binance.com/api/v3/ticker/price?symbol=BTCUSDT&#39;)<br>    bitcoin_data = response.json()<br>    producer.send(&#39;bitcoin_price&#39;, bitcoin_data)<br>    time.sleep(1)</pre><p>In this code snippet, we’re using the Binance API to fetch the current price of Bitcoin in USDT (Tether, a type of stablecoin). We then send this data to a Kafka topic named ‘bitcoin_price’. This data can then be consumed by other applications in real-time, enabling real-time analytics.</p><h3>Data Engineering and Cryptocurrency: A Powerful Combination</h3><p>Data engineering plays a crucial role in the world of cryptocurrency. It involves the collection, validation, storage, and analysis of vast amounts of data generated by cryptocurrency transactions. This data is then used to provide insights, make predictions, and drive strategic decision-making.</p><p>Data engineering in cryptocurrency involves several key tasks:</p><ol><li><strong>Data Collection</strong>: This involves collecting data from various sources. In the case of cryptocurrency, this could be transaction data, market data, social media data, etc.</li><li><strong>Data Processing</strong>: Once the data is collected, it needs to be processed. This could involve cleaning the data, transforming it into a suitable format, and loading it into a data warehouse.</li><li><strong>Data Storage</strong>: The processed data is then stored in a database or data warehouse. This data can then be accessed and analyzed as needed.</li><li><strong>Data Analysis</strong>: This involves analyzing the stored data to extract insights. This could involve creating visualizations, building predictive models, or generating reports.</li></ol><h3>Conclusion</h3><p>The intersection of real-time analytics, cryptocurrency, and data engineering is a fascinating area of study. As cryptocurrencies continue to evolve, the role of data engineering in enabling real-time analytics will only become more critical.</p><p>Remember, the code snippets provided are simplified examples. Real-world data engineering tasks would involve more complex operations and robust error handling. Happy coding!</p><p><em>Disclaimer: This article is for informational purposes only and should not be taken as financial advice.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=036a013a857a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My journey — Professional Engineer Australia]]></title>
            <link>https://medium.com/@nayanaraju/my-journey-professional-engineer-australia-7b153f2b035?source=rss-2d44b2e6222e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b153f2b035</guid>
            <dc:creator><![CDATA[Nayana Raju]]></dc:creator>
            <pubDate>Tue, 15 Feb 2022 05:03:14 GMT</pubDate>
            <atom:updated>2022-02-15T05:03:14.679Z</atom:updated>
            <content:encoded><![CDATA[<h3>My journey — Professional Engineer Australia</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b153f2b035" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: Electrical design for Control systems]]></title>
            <link>https://medium.com/@nayanaraju/part-1-electrical-design-for-control-systems-3b39b34ace0f?source=rss-2d44b2e6222e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b39b34ace0f</guid>
            <category><![CDATA[access-control-systems]]></category>
            <category><![CDATA[mining-industry]]></category>
            <category><![CDATA[electrical-design]]></category>
            <category><![CDATA[engineering-productivity]]></category>
            <category><![CDATA[graduate-engineer]]></category>
            <dc:creator><![CDATA[Nayana Raju]]></dc:creator>
            <pubDate>Sat, 05 Feb 2022 09:48:17 GMT</pubDate>
            <atom:updated>2022-02-05T09:48:17.302Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G19gpliHMnYSSxpl.jpg" /></figure><p>This is my Part 1 blog, in series “<strong>Electrical Designs</strong>” which I try will explain my engineering knowledge, and the intention is to help anyone stepping into the role of “<strong>Graduate Electrical Engineer</strong>”</p><h4>About me</h4><p>I am a Graduate Electrical Engineer, <strong>completed my Bachelor of Electrical &amp; Electronics Engineering in India.</strong> After that, I have completed my engineering training in Electrical Power Transmissions and then joined as a Graduate electrical design engineer at Perth Australia.</p><p>I worked majorly in providing services for mining &amp; heavy industries. <strong>Designing</strong>, <strong>Developing</strong>,<strong> &amp;</strong> <strong>Testing</strong> <strong>Electrical systems</strong> are the main duties I have performed as an Electrical engineer.</p><blockquote>“That was a graduate program , but after stepping into, I start to feel like an engineer — your thinking changes, everything changes because being an electrical engineer is not just about the technical knowledge, it’s about <strong>how you look at stuff, how do you analyze when there is a problem, how do you solve that problem</strong>,”.</blockquote><h3>Heavy machines</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LylCOJO2057xRwNy.jpg" /><figcaption>ref: BigRentz</figcaption></figure><p>In mining operations, the role of heavy machineries is vital and enhancing the applications and operational safety of machines are the major areas of my experience.</p><p>Below are the various process in developing the system</p><h4>1. Understand Projects Requirements</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*GF_Wsg2QMd4dS_0g.png" /><figcaption>[Ref BigRentz]</figcaption></figure><p>This is the first step when starting a new project, and you have to gather as much as requirements especially about the machines data, such as</p><ul><li>Powering methods,</li><li>Controlling mechanism,</li><li>Control panels</li><li>Battery capacity,</li><li>load calculations</li><li>Wiring diagrams etc.</li></ul><p>can be gathered by referring the machine manuals and inspecting the machines.</p><h4>2. Designing the harness</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Q0J9FhBAHPFK-rcf.jpg" /></figure><p>Next is the design the harness with any engineering drawing software, which you can use <a href="https://www.autodesk.com.au/solutions/cad-software">CAD</a>, <a href="https://www.smartdraw.com/">SmartDraw</a> &amp; open source tools like <a href="https://qelectrotech.org/">QElectrotech</a> etc. I developed multiple block diagrams, wiring diagrams etc. for design specifications with these software.</p><h4>3. Powering methods design</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rgaF03-c8_6LVyjH.jpg" /></figure><p>The powering methods have to be designed by considering various depending factors of the machine and the controllers. I got better knowledge of different power adoption methods in industries. The protection circuits designs and selection of wire gauge was followed by the standards<strong> AS/NZS 3000</strong>.</p><h4>4. Harness prototyping and testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ZbWY2biF-Kxf-UO7.jpg" /><figcaption>ref: Meridian Cable</figcaption></figure><p>This was did by using different industrial tools, effective use of datasheets, BOM, components selection, Australian working standards, etc.</p><h4>5. Electronics board</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8rTO3EpbwCimzbPN" /></figure><p>Understanding the IOT and its electronics board was also essential for the projects. I have used various PCB designing software&#39;s such as PROTEL, ORCAD, Eagle etc. during this process.</p><p>The machine parameters at different states was obtained by calibration of the machine by oscilloscope. Documented the calculations and graphical representations by the software Microsoft Excel.</p><h4>6. Programming</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gOdJdD8xioV3MTY6.png" /></figure><p>Its always better to understand the basics of the programming logic of the industrial controller used and I have learned “<a href="https://www.python.org/">Python</a>”, which helped me to understand working of the project very well, as well as providing the technical support and its testing.</p><h4>7. Office Productivity tools</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B8T1LXHjNJ5gHbue.jpg" /></figure><p>I have used various Microsoft office tools during my works such as Teams, Outlook, Wiki, Task Planner, Excel, Word, Presentation, etc. Out of them, Task planner and Wiki are my most liked ones, which really helped me in high productivity.</p><h4>8. Project meetings</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*BdkX1DQSgjk5ugPM.jpg" /></figure><p>This is the most vital part during the entire stages and there were many discussions I have conducted during each stage of the project with different peoples such as Mechanical engineers, Electronics engineers, Product specialists etc. for successful development of the project. General <strong>most of the people are “really friendly, helpful and intelligent.</strong></p><h4>Conclusion</h4><p>Prior to my career, <strong>I wish I knew more about the electrical devices and their functionality in different environments</strong>,” but was always a grey area. It’s not just about designing hardware, like you need to know how to code, which is also vital. I wish my articles will help the people stepping into their first stone as an Electrical Engineer and my simple advice is to <strong>get as much practical experience working in the labs as possible.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b39b34ace0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>