<?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 The Python Dude on Medium]]></title>
        <description><![CDATA[Stories by The Python Dude on Medium]]></description>
        <link>https://medium.com/@PythonDude?source=rss-e89f0c79ded9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DI95954FYlitAD4X-zdbIQ.png</url>
            <title>Stories by The Python Dude on Medium</title>
            <link>https://medium.com/@PythonDude?source=rss-e89f0c79ded9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:47:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@PythonDude/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[After I Graduated, What were my Top Two-Job Options, As an Electrical & Electronics Engineer?]]></title>
            <link>https://medium.com/@PythonDude/after-i-graduated-what-were-my-top-two-job-options-as-an-electrical-electronics-engineer-2646a450cd43?source=rss-e89f0c79ded9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2646a450cd43</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[university]]></category>
            <dc:creator><![CDATA[The Python Dude]]></dc:creator>
            <pubDate>Sun, 05 Nov 2023 12:31:56 GMT</pubDate>
            <atom:updated>2023-11-05T12:31:56.484Z</atom:updated>
            <content:encoded><![CDATA[<h3>After I Graduated, What were my Top Two-Job Options, As an Electrical &amp; Electronics Engineer? | With Learning Resources</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*z4BPqOUMQAhxp-iRvE1qdQ.png" /><figcaption>Graduating Electrical And Electronics Engineering</figcaption></figure><p>Graduating as an Electrical And Electronics Engineer, or even as a Technician from this Science Field, will have your Future filled with Job Options.</p><p>Here,<strong> I will summarize top Two fields</strong>, that have the most opportunities, and where you can learn all about them.</p><h3>1.Industrial Automation:</h3><p><strong>Where is it required?</strong></p><p>Any Production Line, Factory, or machine builder, needs a way to control their Mechanical Machine Design through Electronics. We call those Industrial Controllers, PLC.</p><p>For Example, an Automated Bottles Filling &amp; Capping Production Line, has multiple stages to be Automated. From Feeding bottles, conveying, filling, adding Caps, adding labels, all the way to Boxing. <br>Mechanical Machines does all the job, and the PLC, is the Brain to all of that.<br>The Production Line Operator, controls the whole line through what’s called HMI, or through a SCADA system.</p><p>A simplified flow looks as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ELGSR6ifNVI1U_K-OMwppw.png" /><figcaption>Industrial Automation Workflow</figcaption></figure><p><strong>What would your day to day tasks would look like?</strong></p><p>Tasks varies between the following, depending on the company</p><ul><li>Designing Electrical Control Panels to drive different the different Motors that are causing the machine motion. This includes Sizing Protection and driving elements like Contactors, Relays, Circuit Breakers, Sizing Cables , and all related electrical Parts</li><li>Programming PLC and designing algorithms to control the different Machines</li><li>Programming and Designing User Interfaces to operate the machine through HMI And/Or SCADA systems</li></ul><p><strong>What other skills is needed to grow in this career?</strong></p><p>Robotics, Machine Vision, 3D CAD Design, and Virtual Commissioning/Digital Twinning.</p><p>You can learn more about Robotics, Production lines and 3D CAD in my previous article</p><p><a href="https://medium.com/@PythonDude/i-designed-6-industrial-machines-used-in-every-factory-out-there-you-can-too-17a687b42633">I designed 6 Industrial Machines Used In Every Factory Out there | You can too</a></p><p><strong>Drawbacks:</strong></p><ul><li>Probably, this field would required you to travel around different cities or even countries, so it is the least stable. Because factories, are not always within the same city as your company</li><li>Overnight hours. Since you will be travelling abroad, most likely, there will be longer than usual working hours on site.</li></ul><h3><strong>Where can I learn Industrial Automation?</strong></h3><p>If you are fresh graduate, and need to learn those skills, you can either find an Entry-Job as a PLC Programmer, Control Panel Builder or an Industrial Automation Technician.</p><p>If you would like, to learn all of that through Courses, here is your Best Options:</p><p><strong>From Wire to PLC, A Bootcamp In Industrial Automation:</strong></p><p>In this course you will learn Everything Related to Industrial Automation, including :</p><ol><li>Basic Components</li><li>Motor Driving Techniques</li><li>Sensors and Actuators</li><li>PLC Programming using 4 Different Programming Languages</li><li>HMI</li><li>Remote Control</li><li>Electrical Panel design and Troubleshooting</li><li>And more</li></ol><figure><a href="https://www.udemy.com/course/from-wire-to-plc-a-to-z-compilation/?referralCode=0E7EE8E289AB71EA7873"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*to_imVC3iIkk90fiBbJbJw.png" /></a><figcaption>Industrial Automation</figcaption></figure><p><a href="https://www.udemy.com/course/from-wire-to-plc-a-to-z-compilation/?referralCode=0E7EE8E289AB71EA7873">https://www.udemy.com/course/from-wire-to-plc-a-to-z-compilation/?referralCode=0E7EE8E289AB71EA7873</a></p><h3>2.Embedded Systems Engineer:</h3><p><strong>Where is it required?</strong></p><p>Any company, that designs, and manufactures, <strong>ANY, </strong>Electronic Product need Embedded Systems engineers. <br>Embedded systems deals with Programming Microcontrollers , Configuring Communication Protocols, and should have a good foundation in Computer Architecture.</p><p>For example, in the Automotive industry, an Embedded systems engineer is responsible for programming Microcontroller responsible that will control Cruise system, Brakes, ADAS systems and Auto-parking, Car Smart vision. Each of those requires a dedicated electronics called an ECU. this ECU main brain, is microcontrollers.</p><p><strong>What would your day to day tasks would look like?</strong></p><ul><li>Configuring Communication Protocols which both, sensors and Microcontrollers use to exchange data</li><li>Writing Embedded Software and Software Testing</li><li>Writing Firmware</li><li>Adapting to different Real-Time Operating Systems, like RTOS</li></ul><p><strong>Drawbacks:</strong></p><ul><li>You have tons to learn to become fully professional. As this field intersects with Software Engineering, in a lot of its design process. So you need to jump between those two fields without you noticing</li></ul><h3>Where can I learn Embedded Systems?</h3><figure><a href="https://www.udemy.com/course/embedded-electronics-bootcamp-from-bit-to-deep-learning/?referralCode=E923FCD40379274830E0"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CIa7JMw-GLc2FvaAdGLNZg.png" /></a><figcaption>Embedded Systems Bootcamp</figcaption></figure><p>This course covers all the Entry-Level microcontrollers, including AI and Deep learning applications. So you will have a lot of hands-on experience, because all the theory and programming is explained step by step. You can follow and reapply what you have learned.</p><p>Topics covered:</p><ul><li>Arduino</li><li>RTOS</li><li>ESP32</li><li>FPGA</li><li>AI &amp; Deep Learning</li><li>Linux</li><li>Android Control</li><li>And more</li></ul><h3>Join our Industrial Automation Community:</h3><p>Reddit:<br><a href="https://www.reddit.com/r/PLCAutomation/">https://www.reddit.com/r/PLCAutomation/</a></p><p>LinkedIn:<br><a href="https://www.linkedin.com/in/hamsho-mouhammad/">https://www.linkedin.com/in/hamsho-mouhammad/</a></p><p>Udemy:<br><a href="https://www.udemy.com/user/mohammad-hamsho/?kw=hamsho&amp;src=sac">https://www.udemy.com/user/mohammad-hamsho/?kw=hamsho&amp;src=sac</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2646a450cd43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I designed 6 Industrial Machines Used In Every Factory Out there | You can too]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@PythonDude/i-designed-6-industrial-machines-used-in-every-factory-out-there-you-can-too-17a687b42633?source=rss-e89f0c79ded9------2"><img src="https://cdn-images-1.medium.com/max/981/1*IOlDB3K0ySHeoBq8YlHJIg.png" width="981"></a></p><p class="medium-feed-snippet">I visited over +100 Factories, and those are the most common machines used, so I designed them, and anyone can too. Step by step.</p><p class="medium-feed-link"><a href="https://medium.com/@PythonDude/i-designed-6-industrial-machines-used-in-every-factory-out-there-you-can-too-17a687b42633?source=rss-e89f0c79ded9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@PythonDude/i-designed-6-industrial-machines-used-in-every-factory-out-there-you-can-too-17a687b42633?source=rss-e89f0c79ded9------2</link>
            <guid isPermaLink="false">https://medium.com/p/17a687b42633</guid>
            <category><![CDATA[robots]]></category>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[prototyping]]></category>
            <category><![CDATA[robotics]]></category>
            <dc:creator><![CDATA[The Python Dude]]></dc:creator>
            <pubDate>Mon, 30 Oct 2023 16:50:43 GMT</pubDate>
            <atom:updated>2024-01-05T07:14:21.798Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[New to Python Databases? Start here. SQLAlchemy Tutorial]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@PythonDude/new-to-python-databases-start-here-sqlalchemy-tutorial-75be365e4989?source=rss-e89f0c79ded9------2"><img src="https://cdn-images-1.medium.com/max/1600/1*qqkQevbi9Y5ZormNt-hnWw.png" width="1600"></a></p><p class="medium-feed-snippet">Databases is the essence of Social Media Backends.</p><p class="medium-feed-link"><a href="https://medium.com/@PythonDude/new-to-python-databases-start-here-sqlalchemy-tutorial-75be365e4989?source=rss-e89f0c79ded9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@PythonDude/new-to-python-databases-start-here-sqlalchemy-tutorial-75be365e4989?source=rss-e89f0c79ded9------2</link>
            <guid isPermaLink="false">https://medium.com/p/75be365e4989</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[sqlalchemy]]></category>
            <dc:creator><![CDATA[The Python Dude]]></dc:creator>
            <pubDate>Sat, 17 Dec 2022 18:13:48 GMT</pubDate>
            <atom:updated>2024-01-05T07:14:40.048Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[7 PLC Courses You Must Check it]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@PythonDude/7-plc-courses-you-must-check-it-48d7bd31a47a?source=rss-e89f0c79ded9------2"><img src="https://cdn-images-1.medium.com/max/1228/1*LaJyOD_Qyytg662N0qKI3g.png" width="1228"></a></p><p class="medium-feed-link"><a href="https://medium.com/@PythonDude/7-plc-courses-you-must-check-it-48d7bd31a47a?source=rss-e89f0c79ded9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@PythonDude/7-plc-courses-you-must-check-it-48d7bd31a47a?source=rss-e89f0c79ded9------2</link>
            <guid isPermaLink="false">https://medium.com/p/48d7bd31a47a</guid>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[industry-4-0]]></category>
            <category><![CDATA[plc-training]]></category>
            <category><![CDATA[plc]]></category>
            <category><![CDATA[electronics]]></category>
            <dc:creator><![CDATA[The Python Dude]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 11:09:34 GMT</pubDate>
            <atom:updated>2024-01-05T07:14:54.025Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Python UI Reusability — With Code]]></title>
            <link>https://medium.com/@PythonDude/python-ui-reusability-with-code-9ec0f822bec?source=rss-e89f0c79ded9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ec0f822bec</guid>
            <dc:creator><![CDATA[The Python Dude]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 10:44:31 GMT</pubDate>
            <atom:updated>2023-01-09T08:37:06.022Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python UI Reusability using Flet — With Code</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wByMRwLY_jvye3zzQwVtDg.jpeg" /><figcaption>Python UI reusability — Flet</figcaption></figure><p>Re-usability is a key when it comes to UI design. You create a widget once, and it should be at your disposal at anytime through out your code with the least code possible.</p><p>Take the example of a navigation bar at the top of your App or Webpage. This bar requirement maybe to be displayed on every page or every view of your app. If usability is not taken into account, your code will turn into a giant spaghetti, because you will be reimplementing unnecessary details for this navigation-bar in every view or page of your app.</p><p>The essence of reusability is to utilize Object Oriented Programming Techniques. by the least, you need to treat every widget you have as a separate class.</p><p>Utilizing only functions to create and pass around widgets is what will be harming your reusability on the long run.</p><p>Take for example a <strong>Tasking App </strong>where you can write your daily tasks one by one through a text field, and then the app will generate that task as a check box with the text your typed next to it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uRBCN36sJXQJAkpTublcGw.png" /><figcaption>Figure1: Tasking App-Adding Task Work-Flow</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*baSfPpzjEqdo1sbzmPYsAw.png" /><figcaption>Figure2: Tasking App- Editing a Task Work-Flow</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJvZD_Vrt-XEaQOuJyiwfQ.png" /><figcaption>Figure3: Tasking App- Deleting Task Work-Flow</figcaption></figure><p>This is a very simple example on Usability Our elements are:</p><ol><li><strong>Text Field</strong> to type your task in</li><li><strong>Add Button</strong> which will trigger a widget to be generated containing your <strong>Task Text</strong>, and a <strong>Check box</strong>, <strong>Delete</strong> and <strong>Edit</strong> Buttons</li><li>Generated Task</li></ol><p><strong>View Modes:</strong></p><p>We have two view modes for every created task:</p><ol><li><strong>Display Mode</strong>: This is the default mode we see in Figure 1. It simply shows our task , with a <strong>Delete </strong>and <strong>Edit </strong>Buttons next to it</li><li><strong>Edit Mode : </strong>This is the mode we see in Figure 2, where it will pop up when we click on the <strong>Edit </strong>Button of a task. <br>This mode shows a TextField where the user can edit the previously added task. <br>There is also a <strong>Save </strong>Button next to it to save the edited text after</li></ol><p>Only one of the modes can be active at a time.</p><p><strong>Code Design:</strong></p><p>Let’s consider the <strong>User Text Field </strong>where we type in our task as a separate widget, and create a class for it. It will also hold any created Tasks.</p><p>A second class will be created which will be used to generate <strong>Task Text </strong>with its buttons (Delete and Edit).<br>This second class should also support both <strong>View Modes.</strong></p><h3><strong>Flutter for Python — Flet:</strong></h3><p>We will be using the amazing <strong>Flet library </strong>to demonstrate this concept.<br>Flet is a python library a based on the Famous UI Tool Kit from Google (uses Dart Programming language). It used to create cool Cross-Platform UI seamlessly.</p><p>If you are new to Flutter, check out this 30-min Video to get you started.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTucr8Ta-kq4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTucr8Ta-kq4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTucr8Ta-kq4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a49952496753e02099fced9ad5c8197/href">https://medium.com/media/3a49952496753e02099fced9ad5c8197/href</a></iframe><h3>Let’s write some code!</h3><p>Let’s create the logic to <strong>Add </strong>a new Task by typing to the Text Field.<br>We will create a class called <strong>TasksApp </strong>which will handle adding a new Task to the view, and will serve as the <strong>UserTextField (</strong>Text Field and Add Button) <strong>Widget.</strong></p><pre>import flet as ft<br><br>#Create a TasksApp Class inheriting from ft.UserControl<br>class TasksApp(ft.UserControl):<br>    <br>    #Build must be implemented which will return the UserTextField along with<br>    #The Add Button<br>    def build(self):<br>        <br>        #Column that will contain every created Task<br>        self.tasks = ft.Column()<br><br>        #Text Field to type our task in<br>        self.textField = ft.TextField(width=350)<br><br>        #Define Add Button with an Icon next to it<br>        #This will trigger addClicked method when clicked<br>        self.addBtn = ft.FloatingActionButton(icon= ft.icons.ADD, <br>                                              on_click=self.addClicked)<br>        <br>        #Create a row containing your TextField and the button you <br>        #Created Above<br>        taskRow=ft.Column(controls=[<br>            ft.Row(controls=[self.textField, self.addBtn, ]),self.tasks], )<br>        return taskRow<br>    <br>    #Function to be triggered when clicking Add Button<br>    def addClicked(self,e):<br>        #Create a task Object (we will program it later below)<br>        #It receives the text the user typed, and a we pass<br>        #taskDelete Methode to it. Which will be used as a reference<br>        #To delete the task<br>        task=Task(self.textField.value, self.taskDelete)<br>        self.tasks.controls.append(task)<br>        <br>        #After typing in a task, reset the textField to be ready for <br>        #a new task to be written<br>        self.textField.value=&quot;&quot;<br>       <br>        #Call update method from the inherited UserControl to<br>        #Update the view<br>        self.update()<br>    #Method to be passed to Task Object which will remove<br>    #The task from the View when pressing Delete<br>    def taskDelete(self,task):<br>        self.tasks.controls.remove(task)<br>        self.update()</pre><p>Next we will create the <strong>Task </strong>Class which will handle the <strong>New Task </strong>created. Including handling both <strong>View Modes.</strong></p><p>Since a new task should be created with Every <strong>Add </strong>Click, we are treating that task a seperate widget. Which makes sense.<br>This widget Class is like a living creature. It has methods to <strong>Edit, Save, and Delete. </strong>This will make our life easier since every task will maintain its state and will take care of it self. All we need to do is trigger an action using a Button.<br>It will also take care of the <strong>View Mode. </strong>By hiding or showing a certain mode depending on the button pressed.</p><p>e.g:<br>If Edit is pressed, Edit mode should be visible.<br>Otherwise, display mode should be visible.</p><p>Note that we are creating both modes in the same class and our job is to only write the logic to when to show each mode.</p><pre>class Task(ft.UserControl):<br> <br>    #Call super since we are passing extra parameters to the<br>    #Inherited UserControl<br>    #Handle TaskName(The text we typed)<br>    #And taskDelete (The task delete function reference we passed above)<br>    def __init__(self, taskName,taskDelete):<br>        super().__init__()<br>        self.taskName=taskName<br>        self.taskDelete= taskDelete<br>    <br>    #Implement the Compulsery Build Method<br>    #Which will return a Task Widget (The text your wrote with edit and <br>    #Delete Buttons)<br>    def build(self):<br>        #Add a check box with the text next to it(the text is taskname)<br>        #Which is the text you typed in<br>        #Makse sure vlaue is False. So that the box is unchecked<br>        self.displayTask =ft.Checkbox(value=False, label= self.taskName)<br>        self.editName = ft.TextField()<br>        <br>        #Those are the modes, editView and displayView<br>        #It consist of a Row, containing the text you have writted<br>        #And another row containing the Edit and Delete buttons<br>        <br>        #This display view is initially visible<br>        #Note that The first button will trigger editClick Method<br>        #And second button will trigger deleteClick Method<br>        self.displayView= ft.Row(alignment=ft.MainAxisAlignment.SPACE_BETWEEN,<br>                                 controls=[self.displayTask,<br>                                 ft.Row(controls=[ft.IconButton(ft.icons.CREATE_OUTLINED,<br>                                                                on_click=self.editClick),<br>                                                  ft.IconButton(ft.icons.DELETE_OUTLINED,<br>                                                                on_click=self.deleteClick<br>                                                                 )])])<br>        #Edit view is initially invisible.<br>        #Notce that it consist of a row containing, the text you have written<br>        #and a save button<br>        #Save button will trigger saveClickMethod<br>        self.editView = ft.Row(visible=False,<br>                               controls=[self.editName,<br>                                         ft.IconButton(icon=ft.icons.DONE_OUTLINED,<br>                                                       on_click=self.saveClick<br>                                                       )])<br>        #We are returning both views as a column<br>        #Even though only one of the views is visible at a time<br>        return ft.Column(controls=[self.displayView, self.editView])<br>    <br>    #This method is triggered when edit button is pressed<br>    #It reads whatever text the Task contained<br>    #And move it to the edit view (You don&#39;t want the Task text to be<br>    #Empty when clicking on edit right)<br>    #Next it sets the editView to visible and displayView to invisible<br>    #And we update the view<br>    def editClick(self,e):<br>        self.editName.value=self.displayTask.label<br>        self.displayView.visible=False<br>        self.editView.visible=True<br>        self.update()<br>    <br>    #This is triggerd when we click on the save button in editMode<br>    # we set back displayView to visible and editView to invisible. <br>    #Beause well, we are done with editing<br>    def saveClick(self,e):<br>        self.displayTask.label=self.editName.value<br>        self.displayView.visible=True<br>        self.editView.visible=False<br>        self.update()<br>    <br>    #This is triggered when we click on delete in displayView<br>    #This method will trigger the reference we passed through TasksApp <br>    #And will remove the Task from the list<br>    def deleteClick(self,e):<br>        self.taskDelete(self)<br>        </pre><p>Now we will simply wirte our main and run the program.</p><pre>def main(page: ft.page):<br>    page.window_width=500<br>    page.window_height=700<br>    page.bgcolor =&quot;WHITE&quot;<br>    app = TasksApp()<br> <br>    page.add(app )<br>    <br>ft.app(target=main)</pre><p>And this is the final look ( We can still work on making it look nicer)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*oGYw4kmEA5JVXeitdYjnBg.png" /><figcaption>Tasking App By PythonDude</figcaption></figure><p>And that’s it. This how we can easily create a re-usable UI.</p><p>The example was for a simple app, but those work-flow concepts can be generalized to any App you are creating.</p><p>If this was to be created using Pure Functions, it would’ve been a mess. Handling Edit, delete and Save can be a nightmare because we would need to pass references for every created task all over the place. Which gets ugly pretty quickly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ec0f822bec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python UI with Flutter (Flet)- Banking App -Part 1]]></title>
            <link>https://medium.com/@PythonDude/python-ui-with-flutter-flet-banking-app-part-1-15cc697e4537?source=rss-e89f0c79ded9------2</link>
            <guid isPermaLink="false">https://medium.com/p/15cc697e4537</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[The Python Dude]]></dc:creator>
            <pubDate>Sun, 04 Dec 2022 11:40:00 GMT</pubDate>
            <atom:updated>2023-01-09T08:36:22.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*kZXF0Yln3g9_NToajGNk-Q.png" /><figcaption>Python Flutter With Flet</figcaption></figure><h3>What is Flutter?</h3><p>Flutter is a development Kit released by Google for Fron-End Cross Platform UI (user Interface) Development.<br>Meaning that you can design User Interfaces once, and run it directly on Windows, Linux, Android and iOS.</p><p>This Tool uses a programming language called <strong>Dart </strong>which is very famous for UI out there.</p><h3><strong>Flutter is now Available for Python and is called Flet</strong></h3><p><strong>Flet</strong> is powered by Flutter, meaning that you can easily build any UI you want easily.</p><p>Here is a small Demo:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F21LIdut7Lg8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D21LIdut7Lg8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F21LIdut7Lg8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/95d49d1246d9b9fe47928c3cdf5c66a7/href">https://medium.com/media/95d49d1246d9b9fe47928c3cdf5c66a7/href</a></iframe><h3>Let’s dig into some Code!</h3><p>make sure you install flet.</p><pre>pip install flet</pre><p>Now let’s build our first Window</p><pre>import flet as ft<br><br><br>def main(page: ft.Page):<br>#set window dimensions<br>    page.window_width=600<br>    page.window_height=850<br><br>#set background color<br>    page.bgcolor=&quot;#DFF6FF&quot;<br><br>#set window title name<br>    page.title=&quot;World Bank App&quot;<br><br>#apply all the changes<br>    page.update()<br><br>#run the App (make sure you have a folder called asset for future use<br>ft.app(target=main,assets_dir=&quot;assets&quot;)</pre><p>Let’s add a function to create a navigation bar below.</p><p>Note that all Flet related functions are defined in <strong>main</strong></p><pre># -*- coding: utf-8 -*-<br>&quot;&quot;&quot;<br>@author: Python Dude<br>&quot;&quot;&quot;<br><br>import flet as ft<br><br><br>def main(page: ft.Page):<br>    def addNavBar():<br>#adding navigation bar to page when this function is called<br>        page.navigation_bar = ft.NavigationBar(<br>        destinations=[<br>#icon 1 , with Flet built-in icon image and Label<br>            ft.NavigationDestination(icon=ft.icons.HOME_ROUNDED ,label=&quot;Home&quot;, ),<br>#icon 1 , with Flet built-in icon image and Label           <br>            ft.NavigationDestination(<br>                icon=ft.icons.SETTINGS_ROUNDED,<br>                label=&quot;Settings&quot;,<br>            ),<br>            <br>        ]<br>        ,bgcolor=&quot;Blue&quot;<br>    )<br>    page.window_width=600<br>    page.window_height=850<br>    page.bgcolor=&quot;#DFF6FF&quot;<br>    page.title=&quot;World Bank App&quot;<br><br>#add navigation bar   <br>    addNavBar()<br>    page.update()<br>    <br>ft.app(target=main,assets_dir=&quot;assets&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*ppMzylIBrp7YujH2EtGGVA.png" /><figcaption>Python Flutter, Flet navigation Bar</figcaption></figure><p>As you can see now we have a navigation bar below. So far it does nothing when we click.</p><p>Let’s create a function to create the Card Template</p><pre># -*- coding: utf-8 -*-<br>&quot;&quot;&quot;<br>@author: Python Dude<br>&quot;&quot;&quot;<br><br>import flet as ft<br><br>def main(page: ft.Page):<br>    def addNavBar():<br>        page.navigation_bar = ft.NavigationBar(<br>        destinations=[<br>            ft.NavigationDestination(icon=ft.icons.HOME_ROUNDED ,<br>                                     label=&quot;Home&quot;, ),<br>            ft.NavigationDestination(<br>                icon=ft.icons.SETTINGS_ROUNDED,<br>                label=&quot;Settings&quot;,<br>            ),<br>            <br>        ]<br>        ,bgcolor=&quot;Blue&quot;<br>    )<br>        <br>    # this function utilizes Rows, columns and containers to create a card<br>    def createCard(bal,exp,color):<br>            card=ft.Row([ft.IconButton(icon=ft.icons.ARROW_LEFT_SHARP, <br>                                        icon_color=ft.colors.BLUE,<br>                                        icon_size=50 ),<br>                ft.Container(<br>                ref=cardRef,<br>                padding=(10),   <br>                margin=(10),<br>                width=400,<br>                height=250,<br>                bgcolor=color,<br>                border_radius=10,<br>                animate_opacity=300,<br>                  <br>                content=ft.Column( controls=[<br>                        ft.Row( controls=[ft.Text( <br>                          value=&quot;World Bank&quot;,<br>                          size=24,<br>                           color=&quot;YELLOW&quot;,),]),<br>                          <br>                        ft.Row(  controls=[ft.Text(&quot;Balance: &quot;,<br>                                 <br>                                 size=22,<br>                                 color=&quot;WHITE&quot;,<br>                                 weight=ft.FontWeight.W_600,),<br>                                 ft.Text(bal,<br>                                         ref=balanceRef,<br>                                         size=28,<br>                                         color=&quot;WHITE&quot;,<br>                                         weight=ft.FontWeight.W_600,)]),                                                  <br>                                <br>                          ft.Row( alignment=ft.MainAxisAlignment.CENTER, <br>                                              controls=[ft.Text( &quot;1234    4555    2788    9715&quot;,<br>                                              ref=cardNumRef,<br>                                               size=20,<br>                                               color=ft.colors.CYAN_100,<br>                                               weight=ft.FontWeight.W_600,)]),<br>                 <br>                <br>        <br>               <br>                ft.Row( alignment=ft.MainAxisAlignment.SPACE_BETWEEN, <br>                                                  controls=[ft.Text(&quot;Exp.date: &quot;, <br>                                                   size=18,<br>                                                   color=ft.colors.CYAN_100,<br>                                                   weight=ft.FontWeight.W_600,),<br>                                           ft.Text(exp,ref=expDateRef,<br>                                                   size=18,<br>                                                   color=ft.colors.CYAN_100,<br>                                                   weight=ft.FontWeight.W_600,),<br>                                          ft.Image(<br>                                              src=f&quot;/images/visa64.png&quot;,<br>                                          <br>                                          )<br>        <br>                                          ]),                          <br>                ],<br>                                  <br>                              <br>                                  alignment=ft.MainAxisAlignment.SPACE_AROUND)<br>            ),ft.IconButton(icon=ft.icons.ARROW_RIGHT_SHARP, icon_color=ft.colors.BLUE,icon_size=50 ),])<br>            return card<br>    <br>    page.window_width=600<br>    page.window_height=850<br>    page.bgcolor=&quot;#DFF6FF&quot;<br>    page.title=&quot;World Bank App&quot;<br>    <br>    #create references for every element, so that it can be accessed by a callback<br>    cardRef=ft.Ref[ft.Column]()<br>    balanceRef= ft.Ref[ft.Text]()<br>    amount= ft.Ref[ft.Text]()<br>    expDateRef= ft.Ref[ft.Text]()<br>    cardNumRef= ft.Ref[ft.Text]()<br>    #create a card<br>    currentCard=createCard(&quot;500$&quot;,&quot;01/25&quot;,&quot;Green&quot;)<br><br>    #create page content by adding a card to it<br>    page1=[currentCard]<br>    <br>    #add all elements to the Flet Page<br>    for item in page1:<br>        b=page.add(item )<br>    addNavBar()<br>    page.update()<br>    <br>ft.app(target=main,assets_dir=&quot;assets&quot;)</pre><h3>Result so far:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*KS8yRzQNHHobPyA9Oyh26w.png" /><figcaption>Python Flutter — Flet Banking App</figcaption></figure><p><strong>We will continue with the app in part 2. Coming soon!</strong></p><h3>Would you like to learn all of this, and even more?</h3><p>You definitely should check<strong> </strong><a href="https://www.udemy.com/course/python-the-ultimate-course-2023-everything-youll-ever-need/?couponCode=PY2023ALONMED"><strong>This Course out.</strong></a><br>This is the only course on the internet that gets weekly updates with a new section.<br>Since the goal here, is that this course includes everything that you would ever need in python. You don’t need to buy 20 courses to master python.</p><p>Y<strong>ou can ask the instructor to add any topic regarding Python and he will add it within a week!! No additional costs!</strong></p><figure><a href="https://www.udemy.com/course/python-the-ultimate-course-2023-everything-youll-ever-need/?couponCode=PY2023ALLSCONE"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePk02dUy6MFl3KOWHgQe3Q.png" /></a><figcaption>Python All In-One 2023 ™️ -Everything You’ll Ever Need</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15cc697e4537" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python The 2024 Road Map To Master It All]]></title>
            <link>https://medium.com/@PythonDude/python-the-2023-road-map-to-master-it-all-2ed2460efa6f?source=rss-e89f0c79ded9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ed2460efa6f</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[The Python Dude]]></dc:creator>
            <pubDate>Thu, 01 Dec 2022 07:38:43 GMT</pubDate>
            <atom:updated>2024-01-05T07:15:46.716Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="https://www.udemy.com/course/python-the-ultimate-course-2023-everything-youll-ever-need/?couponCode=PY2023ALLSCONE"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePk02dUy6MFl3KOWHgQe3Q.png" /></a><figcaption>Python Road-map</figcaption></figure><p>Python can do anything. All including Data Science, Machine Learning, Deep Learning, NLP, Image/Video Processing for both Detection and Segmentation, Games, Android, Web Apps , Desktop GUI , You Just name it.</p><p>The thing is, if you want to learn it all, this can be a bit overwhelming. By the end of this article, you will see how you can master all of those topics.</p><h3>The Python 2023 Roadmap:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2lmaQ6YidowvE6rM6akoMw.png" /></figure><p>This mind map summarizes all the libraries (and basic python concepts) that you can learn to master it all. This is not a very long run. You should be able to master all of those topic in a shorter amount of time than you think, because python takes care of most of the code for you, due to its HUGE library support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHX1giTt2CbFqobOL8-QWw.png" /></figure><h3>1. Let’s start with Python Basics:</h3><ol><li>Learn all about Variables and String Manipulation. This is essential for any topic that comes later.</li><li>Conditional statements and how to make program decisions</li><li>Loops, and focus on for loops advanced syntaxes like <strong>zip </strong>and <strong>enumerate. </strong>Those are utterly useful if you want to code in the “Pythonic” way.</li><li>You MUST master data structures like <strong>Lists </strong>and <strong>Dictionaries, </strong>less important structures would be <strong>Tuples </strong>and <strong>Sets</strong></li><li>Learn all about <strong>Functions</strong> and how to <strong>Return </strong>values from them. Make sure you understand data scopes and <strong>Global </strong>variables</li><li>Learn Advanced Built-in functions like <strong>List Comprehension, Maps </strong>and <strong>Lambda Functions</strong></li><li><strong>Exceptions </strong>are essential to write a code that is , as much as possible crash Free</li><li><strong>Directory Management </strong>which is used to create directory trees for your project files. And it is very useful for Tasks Automation, File Navigation ..etc. Read about it.</li></ol><h3>2. Python Object Oriented Programming (OOP):</h3><p>In the world of modern software, one cannot ignore the importance of maintainable easy to extend code.</p><p>So here is what you need to know:</p><ol><li><strong>Classes</strong> and how to create class <strong>methods</strong>, <strong>class variables </strong>and Class initializer</li><li><strong>Object</strong>, which is nothing but a class in play</li><li><strong>Inheritance</strong></li><li><strong>Super keyword</strong></li><li><strong>Polymorphism</strong></li><li><strong>Encapsulation</strong></li><li>If you really want to go the extra mile, check out <strong>Design Patterns</strong></li><li>This one is not really related to OOP, but <strong>Decorators </strong>which are Python specific techniques can be very helpful when working with a lot with external libraries like <strong>Unittest. </strong>Which is very popular for testing your software.</li></ol><h3>3. Python File Handling:</h3><p>The following files formats are essential to work with. And Python is the best programming language to edit, script and automate whatever realted to those file formats.</p><ol><li>.txt</li><li>.csv</li><li>.pdf</li><li>.json</li><li>.zip</li></ol><h3>4.Python Math Library:</h3><p>It is necessary that math computation should be fast, and python, kind has the reputation of being slow compared to C/C++.</p><p>Well, this is not entirely true. In Python we use a library called <strong>Numpy </strong>to perform almost any Complex math operation. Be it matrix multiplication, be it searching an array for an element or finding Max/Min elements.</p><p>The library is huge, but here is some highlights on what you need to learn to get started:</p><ol><li>Single <strong>Arrays</strong></li><li>Multi-dim <strong>Arrays</strong></li><li><strong>numpy Search Functions</strong></li><li>numpy <strong>max/min functions</strong></li><li>numpy sorting functions</li><li>converting string_to_array and vica versa</li><li><strong>Split</strong></li><li>Randomized arrays</li><li><strong>Reshaping arrays</strong></li><li>Inverting an array</li><li>Array multiplication techniques</li></ol><h3>5. Python Tabular Data Manipulation with Pandas:</h3><p><strong>Pandas </strong>is the to-go library when handling any Tabular data (like excel files, csv..etc).</p><p>Imagine being able to automate anything that excel can do, and add it to the vast enormous Python world.. well that is exactly what is this library all about. Here is some highlights on where you need to start:</p><ol><li>Pandas <strong>Dataframes</strong></li><li>Reading <strong>csv files</strong></li><li>Data <strong>filters</strong></li><li>Column manipulation</li><li>Rows manipulation</li><li>Renaming elements</li><li><strong>Series</strong></li><li>Internal Plotting Functions</li><li>Generating CSV files</li></ol><h3>6. Python Image and Video Processing:</h3><p>It is a wild statement to say that Python can replicate all of those Photo/Video Apps you see around. Because Python combined with <strong>OpenCV</strong> is a giant monster when it comes to media file manipulation.</p><p>Here is some highlights on what’s necessary to start with:</p><ol><li>Understand Color Spaces (RGB, HSV, LAB)</li><li>Reading/Writing Images</li><li>Display Images</li><li>Binarizing images</li><li>Thresholding Techniques</li><li>Image Manipulation (Rotate, Scale…)</li><li>Array to image conversion and vice versa</li><li>Dilation and erosion</li><li>Contour Detection</li><li>Contour Drawing</li><li>Shape Approximation</li><li>Contour Area calculation</li><li>Masking</li></ol><p>Now everything you applied to images, can be applied to video, because a video is nothing but a series of images displayed at a certain rate.</p><p>The only thing I can add here is <strong>Object Tracking , </strong>take a look at it.</p><h3>7. Python User Interfaces (UI):</h3><p>How would you get rid of that “code view” and use some Interactive interfaces instead. Isn’t that what all software have in common?</p><p>Python has multiple forms of user interface.</p><ol><li>Command Line Interfaces, which is as the name implies, it is based on a command line window, where you type instructions which your python script would execute. <br>You can use <strong>Argparse </strong>library for that</li><li>Desktop GUI, or graphical user interfaces. This would make your software look like any other software you download and install with interactive button, text fields, dropdown lists and menus.<br>You can use <strong>PySimpleGUI or Tkinter.</strong></li><li>This will create a user interface in your browser. The advantage of that type of UI is that you can simply deploy your project on the web later along with that interface. This advantage cannot be found in <strong>Argparse</strong> or <strong>Tkinter</strong></li></ol><h3>8. Python Data Visualization:</h3><p>Having data, be it internal python data or external tabular data requires some visualization right?</p><p>The most important two libs are:</p><ol><li>Matplotlib</li><li>Seaborn</li></ol><p>Matplotlib is more flexible to use, but Seaborn has a more beautiful visualization. In general here is the most important topics to learn about any of them</p><ol><li><strong>Histograms</strong></li><li>Scatter Plotting</li><li>History Formation</li><li>Pair plots</li><li>Coloring Data</li><li>Multiple Plots</li><li>Live Plots</li></ol><h3>9. Python Multithreading:</h3><p>Now that you have learned some Python coding, you will realize that executing’s one instruction at a time is not practical in most large applications. Like sometimes you would like to have your GUI running independently of the python other functions.</p><p>And here comes multithreading.</p><ol><li>Starting a thread</li><li>Join</li><li>Thread pool</li><li>Semaphores</li></ol><p>The topic is pretty large, but those should be enough to get you started.</p><h3>10. Python Task Automation</h3><p>Automating the “Boring Tasks’ , like Excel File , webforms and GUI logging can be easily automated with python. You can even create python scripts just to play your favorite Android/OS game and collect all the daily rewards for you!</p><p>The following libraries are the most famous for this:</p><ol><li><strong>Selenium</strong></li><li><strong>pyautogui</strong></li><li><strong>OpenCV</strong> can prove very useful when integrated with the above mentioned</li></ol><p>Here is a highlight of what you need to start with:</p><ol><li>XPATH web-page Extraction to interact using selenium</li><li>filling text fields</li><li>clicking</li><li>finding an element either by xpath or using a template image</li><li>handling dropdown menus</li><li>Handling file uploads</li><li>learning template matching in OpenCV</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*0nkOQmIF2tlSdMjmz2vPCA.png" /><figcaption>Python All In-One</figcaption></figure><h3>11. Python Data Science and Machine Learning:</h3><p>Supervised learning, unsupervised learning, Reinforcement learning , all of those exciting topics can be learned through programming them with python. Since programming with hands on application will increase your learning rate x10 folds, consider learning the algorithm and playing around with in python immediately.</p><p>The two most famous library for data science and machine learning are:</p><ol><li><strong>scipy</strong></li><li><strong>sklearn </strong>which is built upon <strong>scipy</strong></li></ol><p>Initially you can stick to <strong>sklearn. </strong>Here are the top algorithms that you can start with:</p><ol><li><strong>Supervised learning:<br></strong>a. Naive Bayes<br>b. Linear Regression<br>c. SVM</li><li><strong>Unsupervised Learning:<br></strong>a. K-means clustering<br>b. PCA<br>c. LDA<br>d. t-SNE</li><li><strong>Reinforcement Learning:</strong><br>a. Q-learning<br>b. Genetic Learning</li></ol><p>It’s important also to familiarize your self with Machine Learning models evaluation techniques :</p><ol><li>Accuracy</li><li>Confusion Matrix</li><li>AUC/ROC Curves</li><li>Cross fold</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*I_V_TY6BC_xgV5Wqq9C9jw.png" /></figure><h3>12. Python Deep Learning:</h3><p>This topic is built on Python Machine Learning, and it utilizes essentially Neural Networks. This is a whole domain of specialization now.</p><p>You need to check out <strong>Tensor Flow, Keras and Pytorch.<br></strong>Start with <strong>Keras</strong> (built on<strong> Tensor flow</strong>) then you can jump to<strong> Pytorch</strong>.<br>Since <strong>Keras</strong> functions are easier to handle than <strong>Pytorch.</strong></p><p>Here are the first algorithms that you need to start with</p><ol><li>Deep Artificial Neural Networks (ANN). Perfect for regression prediction tasks</li><li>Convolutional Neural Networks (CNN) this is perfect for image classification</li><li>Generative Adversarial Networks (GAN). The basis of Deep Fake and fake data generation</li></ol><p>Make sure you learn all the common technicalities that comes with all deep learning models like:</p><ol><li>Loss Functions and Backpropagation</li><li>Activation Functions</li><li>Training/Testing Accuracy/Loss</li><li>Fine Tuning</li></ol><p>Those should be enough to get you started</p><h3>13. Python Web Design:</h3><p>Yes, you can actually design backend for your web pages with Python. Actually libraries like <strong>Flask </strong>can be the most user friendly one to get you started. To be honest, it would be super helpful to have some knowledge in at least HTML/CSS to be able to test out what’s going on through your Font-End (Front end being all of flashy buttons and menus you see on a page).</p><p>However, if you are fine with writing super dummy pages using Flask internal functions, then be my guest and get started!</p><p>Here is what you need to start with:</p><ol><li>Routes</li><li>Navigation</li><li>Templates</li><li>Updating Page elements through Python</li><li>Session</li><li>Authentication</li></ol><h3><strong>Would you like to learn all of this, and even more?</strong></h3><p>You definitely should check<strong> Thi</strong><a href="https://www.udemy.com/course/python-the-ultimate-course-2023-everything-youll-ever-need/?couponCode=PY2023ALLSCONE"><strong>s Course out</strong></a><strong>.</strong><br>This is the only course on the internet that gets weekly updates with a new section. <br>Since the goal here, is that this course includes everything that you would ever need in python. You don’t need to buy 20 courses to master python.</p><p><strong>You can ask the instructor to add any topic regarding Python and he will add it within a week!! No additional costs!</strong></p><figure><a href="https://www.udemy.com/course/python-the-ultimate-course-2023-everything-youll-ever-need/?couponCode=PY2023ALLSCONE"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePk02dUy6MFl3KOWHgQe3Q.png" /></a><figcaption>Python All In-One 2023 ™️ -Everything You’ll Ever Need</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ed2460efa6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>