<?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 Kent Edoloverio on Medium]]></title>
        <description><![CDATA[Stories by Kent Edoloverio on Medium]]></description>
        <link>https://medium.com/@kent_edoloverio?source=rss-83ed9ad2e06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1bqdNDyx34epti7QSfEA-Q.jpeg</url>
            <title>Stories by Kent Edoloverio on Medium</title>
            <link>https://medium.com/@kent_edoloverio?source=rss-83ed9ad2e06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 13:50:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kent_edoloverio/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[How to make PS1 Style in Blender]]></title>
            <link>https://medium.com/@kent_edoloverio/how-to-make-ps1-style-in-blender-9e3d719f80c9?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e3d719f80c9</guid>
            <category><![CDATA[ps1]]></category>
            <category><![CDATA[blender3d]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[blender]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Sat, 13 Jul 2024 14:30:07 GMT</pubDate>
            <atom:updated>2026-05-09T11:40:11.733Z</atom:updated>
            <content:encoded><![CDATA[<p>The low-poly, pixelated aesthetic of early 3D games on the PlayStation 1 was a defining characteristic of that era. Due to the hardware limitations of the time, game developers had to work with a low number of polygons and blurry, low-resolution textures to create 3D environments and characters. While the technical limitations of the time forced this aesthetic, many modern indie developers now deliberately emulate the PS1 look as a stylistic choice, tapping into the nostalgia and charm of those early 3D gaming experiences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hPy8E9kOUGF7IE-YERD-mw.png" /></figure><p>In this tutorial, you will learn how to implement a PlayStation 1 style in Blender. To begin, you will need to download a texture ripper software, which is Shoebox. This old software allows you to extract textures from a photograph or screenshot. You will need a photo editing software. In this tutorial, I use Photoshop to reduce the size of the textures and limit the number of colors using the indexing feature.</p><h4><strong>Configuring Blender Settings</strong></h4><p>On the right side of the Blender interface locate the Properties panel. This panel has several tabs represented by icons. Click on the Render Properties tab that’s look like a small camera icon. To Adjust the Viewport Samples In the Render Properties tab, scroll down to find the Sampling section. In the Viewport subsection, set the Viewport samples to 1. To Adjust the Film Size scroll down to find the Film section. In the Film section, locate the Filter Size setting. Set the Filter Size to zero point zero one. In the Color Management section, locate the View Transform dropdown menu. Set the View Transform to Standard. To Emulate the Numpad Go to the Edit menu at the top of the Blender interface. Select Preferences from the dropdown menu. In the Preferences window navigate to the Input tab on the left side. In the Keyboard section, check the box labeled Emulate Numpad.</p><figure><img alt="Setup Settings" src="https://cdn-images-1.medium.com/max/1024/1*ytIami1A12psmYeS0_vOrw.gif" /><figcaption>Setup Settings</figcaption></figure><h4>Texture Ripping/Editing</h4><p>For texture ripping you will need this application called “Shoebox” this will extract textures from a photograph or screenshot, and “Photoshop” to adjust the index color of the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GaX2RVi5Oi1IUNNFk837zQ.gif" /><figcaption>Shoebox</figcaption></figure><p>Note: To download Shoebox you need Adobe Air in order to use it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qv28Bh2NSFVPeNm2pGxghg.gif" /><figcaption>Photoshop</figcaption></figure><h4>Modeling ( Shader )</h4><p>Open the shader editor, select New Material, switch Principled BSDF to Diffuse BSDF, add Image texture, and connect our image texture’s output to our Diffuse BSDF’s first input. We’ll use the closest to prevent blurriness in our Image. To add a vertex painting into our model add Mix Color node and Connect the<strong> </strong>Image Texture node to the Mix Color node, then add a Color Attribute node in the Shader Editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*0UVdsGq0LTMcLtgOD1kW_g.png" /><figcaption>Shader Setup</figcaption></figure><h4>What is Vertex Color</h4><p>Vertex colors are a way to store color information directly on the vertices of a 3D model. Unlike textures that are mapped onto the surface of a model, vertex colors are assigned to each vertex and then interpolated across the faces of the mesh. This technique can be used for various purposes, such as adding color detail, masking, or controlling effects in shaders.</p><p>In a PS1-style scene in Blender, lighting often uses vertex colors to simulate lighting effects, where colors are painted directly on the vertices to mimic light and shadow, rather than relying on complex lighting systems.</p><h4>Kwobbler Addon</h4><p>The Kwobbler addon will automatically make your models wobble using geometry nodes. You can download it on my <a href="http://knty.gumroad.com/l/kwobbler">Gumroad</a>. Make sure no objects are selected in your collection, click on the Scene Collection in the outliner, and click the Setup PS1 button in the Kwobbler panel. This will generate a new collection containing a plane mesh where you can set up the wobble effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHQ12Fj9aZPnws0N6MXVvg.gif" /><figcaption>Kwobbler Preview</figcaption></figure><h4>Compositing</h4><p>For a PS1-style look with noise and pixelation, go to the Compositing tab and check “Use nodes” to generate a node tree and press tab to view edit mode and view on material preview and under the viewport shading select the compositor to “always”. This allows you to add effects and view edits in a 3D viewport in real time.</p><ul><li>Add a Transform Scale node and connect its output to the first input node in the composite.</li><li>Add a Value node for each x and y nodes in transforms scale and for another Transform Scale node and link between the two scale nodes. Connect the image to color, then link the Transform Scale’s image output to the Render Layers image node. and we can now adjust the pixelation level.</li><li>To add noise, insert a Mix Color node between the Render Layers and Transform Scale nodes. Connect the first image output, and for the second image, add a Texture node followed by a Math node set to “Add.”</li><li>Create a new texture in the Properties tab under Texture Properties. Select “Noise” as the type. In the compositor, the Texture node will now display your new texture.</li></ul><p>That’s it! You’ve created a PS1 style in Blender, Here are some of my works using the Kwobbler addon…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pvk9mxqGOiHGIlOJNSPgWw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-W2f4fIGCAUpzOqcNflFA.gif" /></figure><p>Leave a <strong>👏 </strong>and comment and let me know what you think.</p><p>Do you enjoy what you’ve read so far?<a href="https://knty.gumroad.com/"> visit Gumroad</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e3d719f80c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Law of Productivity]]></title>
            <link>https://medium.com/@kent_edoloverio/law-of-productivity-319a0d1f95d4?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/319a0d1f95d4</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Sat, 08 Jun 2024 15:37:55 GMT</pubDate>
            <atom:updated>2024-06-08T15:41:49.532Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, life is tougher than ever. With the increasing cost of living and stiff job competition, including AI replacing jobs, people are feeling more pressure. Despite working hard, wages don’t stretch as far as they used to, leading some to think that our generation might be poorer than the last. This situation has made productivity a top priority for everyone. People are eager to find ways to do more and better just to keep up. In many chase productivity in a superficial way with tools and apps that don’t lead to real progress. True productivity comes from understanding new knowledge and learning deeper principles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WjLwFtjCl0zoc5Lu.png" /><figcaption>Image credit by Crossover</figcaption></figure><p>Productivity becomes the guiding principle in this world. The essence of productivity is closely connected to the motives behind our actions. In simple terms, the quality and efficiency of our results are directly influenced by the genuineness and purity of our intentions. Our intentions significantly impact how we view the world, what we take away from it, and ultimately define our level of productivity in reaching our objectives.</p><p>Let’s take an example, Henry started his coffee shop with the sole intention of making as much money as possible. He focused on tactics that maximized his profits, even if it meant being deceptive about the quality of his coffee. This approach brought short-term success, but eventually, his dishonesty was uncovered, leading to his downfall and bankruptcy.</p><p>On the other hand, Paul aimed to serve his community by offering the best coffee possible. She concentrated on perfecting his product despite its high cost and initially deterring potential customers. His commitment paid off when a popular blogger praised his coffee, resulting in a thriving business.</p><p>This conclusion leads us to believe that Henry’s short-term success was undermined by his selfish intentions, while Paul’s long-term success was fueled by his genuine desire to serve others and make a positive impact.</p><p>To be truly productive, start with good intentions. Our intentions influence how we see and learn from the world, which then shapes our productivity. Selfish intentions lead to short-term, unproductive outcomes that can harm the community. Selfless intentions, however, foster a supportive community and lead to genuine, sustainable productivity.Leave a <strong>👏 </strong>and comment and let me know what you think.</p><p>Do you enjoy what you’ve read so far? <a href="https://ko-fi.com/kents_workof_art">Join and buy me a ko-fi</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=319a0d1f95d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Become 10x more Productive using this Prompt]]></title>
            <link>https://medium.com/@kent_edoloverio/become-10x-more-productive-using-this-prompt-a06b6a80ba02?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/a06b6a80ba02</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 09:05:49 GMT</pubDate>
            <atom:updated>2024-01-28T09:09:06.871Z</atom:updated>
            <content:encoded><![CDATA[<p>In this age of Artificial Intelligence, things are changing fast. Imagine a world where we can easily handle multiple tasks with the help of advanced AI-powered language models like ChatGPT. But let’s get real — there’s a catch. Writing prompts can be tricky. Sometimes, they might lead us into inaccuracies or even hallucinations. So, how do we navigate this and ensure our prompts hit the mark? Join me as we explore some effective strategies to creating prompts that simplify our workload and keep us on track.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*siRCf80VK1EycJLc.png" /></figure><h4><strong>Clear and Specific Instructions</strong></h4><p>When creating questions, it’s important to use straightforward language. Using simple words and clear sentences will help the model give better answers. It’s also important to check your writing for mistakes in spelling, context clarity, and grammar.</p><pre>&gt; Create a program that will wake me up in the morning ❌<br><br>&gt; Create Python program using classes to help me wake up in the morning ✔️</pre><h4><strong>Adopt Persona</strong></h4><p>Creating a persona lets people pretend to be someone else, so they can have interesting chats with historical figures, understand fictional characters better, connect more deeply with professionals. This can be used for wide range of applications like simulating job interview, role-playing games, marketing campaigns or even real world scenarios.</p><pre>&gt; I want you to act as a mathematical history teacher and provide information about the historical development of mathematical concepts and the contributions of different mathematicians. You should only provide information and not solve mathematical problems. Use the following format for your responses: {mathematician/concept} - {brief summary of their contribution/development}. My first question is &quot;What is the contribution of Pythagoras in mathematics?</pre><h4>Avoid leading the answer</h4><p>Creating prompts involves a bit of art and science. One key principle is to avoid leading answers. Instead of asking yes/no questions or providing too much information in the prompt, it’s better to craft open-ended queries. This encourages the model to generate more creative and thoughtful responses.</p><pre>&gt; Is Python a dynamically typed language? ❌<br><br>&gt; Can you explain the characteristics of Python&#39;s typing system? ✔️</pre><h4>Limiting the Scope</h4><p>This involves restricting the model to certain topics or fields, making responses more accurate and contextually relevant. This is helpful for things like customer support, code generation, or any situation where a focused and coherent conversation is needed.</p><pre>&gt; Tell me a joke ❌<br><br>Output: In quantum physics, two atoms bump into each other. One says, <br>        &#39;I lost an electron!&#39; The other asks, &#39;Are you sure?&#39; <br>        The first replies, &#39;Yes, I&#39;m positive!&#39;<br><br><br>&gt; What are the symptoms of the flu? ✔️<br><br>Output: Common flu symptoms include fever, cough, and fatigue.</pre><p>In summary, when creating prompts in LLMS like ChatGPT, you may encounter inaccuracies. Therefore, it is important to ensure that your prompt is correctly structured and written.</p><p>Leave a <strong>👏 </strong>and comment and let me know what you think.</p><p>Do you enjoy what you’ve read so far? <a href="https://ko-fi.com/kents_workof_art">Join and buy me a ko-fi</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a06b6a80ba02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feeling too unmotivated to write code]]></title>
            <link>https://medium.com/@kent_edoloverio/feeling-too-unmotivated-to-write-code-0edc624713ee?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/0edc624713ee</guid>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Tue, 16 Jan 2024 03:34:57 GMT</pubDate>
            <atom:updated>2024-01-16T03:34:57.892Z</atom:updated>
            <content:encoded><![CDATA[<p>I tend to be quite laid-back, often using any excuse to relax and indulge in watching anime after a long day at work or school. Despite my intentions of being productive, I struggle with sticking to my planned schedule for coding and learning new frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*ggK9TinKUSGZwbAx.jpeg" /></figure><p>The idea of committing two hours each for coding and studying feels overwhelming and daunting, leading to inconsistency in my efforts. I believe that one’s habits shape their life over time. To address this challenge, instead of seeking motivation or meticulously planning on Google Calendar, I adopted what I call the “one commit per day” policy: even when feeling tired, lazy, or frustrated — make an effort to push just one update on GitHub (without updating readmes).It’s not easy transitioning overnight towards higher discipline and productivity; however,embedding the habit of making one daily commit can pave the way for progress through small victories that hold more value than some sensational results.</p><p>Leave a <strong>👏 </strong>and comment and let me know what you think.</p><p>Do you enjoy what you’ve read so far? <a href="https://ko-fi.com/kents_workof_art">Join and buy me a ko-fi</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0edc624713ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Taking Notes]]></title>
            <link>https://medium.com/@kent_edoloverio/stop-taking-notes-f016d68fd07f?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/f016d68fd07f</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Fri, 01 Dec 2023 07:52:46 GMT</pubDate>
            <atom:updated>2023-12-01T07:52:46.077Z</atom:updated>
            <content:encoded><![CDATA[<p>When I was learning to code, I would take a million notes and try to memorize everything. I would try to memorize the definition of a Classes or what functions do. I would spend hours writing notes, color coding, and drawing diagrams. But when I opened up my editor, it felt challenging to code simple projects. That was until I developed a rule: default to code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*BfR7RrXPJZoPTAZDvkZYSg.jpeg" /></figure><p>Whenever there was something new for me to learn about programming, I kept my editor open right next to the tutorial; that way if there was anything unclear, all needed is just writing out the code and playing with it then figuring out for example how Classes work by copying some codes into an editor while modifying certain parts in order to understand every feature thoroughly because every tool in programming depends on its utilization by developers.This is known as applied learning, and this method of learning taught me so much more than taking notes and trying to memorize, which are just forms of passive learning because you aren’t applying your knowledge anywhere.</p><p>Notes are great for high-level concepts such as math or understanding algorithms, and drawing diagrams can really help visualize these concepts. But fundamentally, the best way to learn and remember what you learn is by getting your hands dirty.</p><p>Leave a <strong>👏 </strong>and comment and let me know what you think.</p><p>Do you enjoy what you’ve read so far? <a href="https://ko-fi.com/kents_workof_art">Join and buy me a ko-fi</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f016d68fd07f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Docker: A Step-by-Step Guide for Beginners — Part 2]]></title>
            <link>https://medium.com/@kent_edoloverio/mastering-docker-a-step-by-step-guide-for-beginners-part-2-eabdfaf97b2e?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/eabdfaf97b2e</guid>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Fri, 10 Nov 2023 13:44:39 GMT</pubDate>
            <atom:updated>2023-11-10T13:44:39.328Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Docker: A Step-by-Step Guide for Beginners — Part 2</h3><p>The first article discusses containers and their functionality, including running multiple images inside them, as well as removing containers you can check it <a href="https://medium.com/@kent_edoloverio/mastering-docker-a-step-by-step-guide-for-beginners-part-1-7df11b366571">here</a>. In this article we will creating an image using a Dockerfile. Once the image is built, it can be pushed to a central registry for deployment in other environments. Additionally, you’ll gain insight into image layers and how Docker efficiently stores images and runs containers using copy-on-write technology and the union file system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ofei5LlkgPuhTQ3E.jpg" /><figcaption><a href="https://www.booleanworld.com/">https://www.booleanworld.com</a></figcaption></figure><h4>Setup your Environment</h4><p>You can use either <a href="https://www.docker.com/products/personal/">Docker Personal</a> and <a href="https://labs.play-with-docker.com/">Play with Docker</a> while following in this article</p><h3>What is Docker Image</h3><p>Docker Images play a crucial role in defining the application environment. They act as comprehensive blueprints that are virtually unchangeable, ensuring consistency and reliability. However, when containers are instantiated from these images, they can be modified to cater specifically to the needs of an application.</p><p>Docker Images fall into two primary categories: Official Base Images and Customized Images. The former is readily available for download through registries like Docker Hub, serving as a foundation for various applications. On the other hand, Customized Images leverage base images to create tailored environments that align precisely with specific application requirements.</p><p>Often likened to snapshots of an entire ecosystem, Docker Images encapsulate all indispensable components such as libraries, binaries, configuration files.</p><h4>Difference between Image and Containers</h4><p>Docker containers are powerful entities that encapsulate self-contained, fully functional software applications or services. These containers leverage Docker images as templates, which contain a precise set of instructions necessary to execute the application within the container.</p><p>While Docker images serve as repositories for sharing and reusing these templates, it is in creating and destroying containers throughout an application’s lifecycle where their true value shines. Containers provide a dynamic environment that can easily adapt to changing requirements and facilitate seamless deployment and scaling processes.</p><p>For this example, we will use a simple Flask Application. We’ll start by creating an image of the application and then running it inside a Docker image.</p><h4>Create a Python Application (Without Docker)</h4><p>To create a file named “app.py”, run this command in the terminal.</p><pre>echo &#39;from flask import Flask<br><br>app = Flask(__name__)<br><br>@app.route(&quot;/&quot;)<br>def hello():<br>    return &quot;hello world!&quot;<br><br>if __name__ == &quot;__main__&quot;:<br>    app.run(host=&quot;0.0.0.0&quot;)&#39; &gt; app.py</pre><p>This is a simple Python application that uses Flask to expose an HTTP web server on port 5000. (The default port for Flask is 5000.) It’s important to note that the concepts we’ll be discussing can be applied to applications written in any programming language, so don’t worry if you’re not too familiar with Python or Flask. To run the simple flask application use this command:</p><pre>python app.py</pre><h4>Create and Build the Docker Image</h4><p>To create an empty Dockerfile, use the command ‘touch Dockerfile’. The Dockerfile is a text document that contains all the necessary commands to build an image.</p><pre>touch Dockerfile</pre><p>Insert the following content inside the Dockerfile. I’ll explain its purpose later on:</p><pre>FROM python:3.6.1-alpine<br>RUN pip install --upgrade pip<br>RUN pip install flask<br>CMD [&quot;python&quot;,&quot;app.py&quot;]<br>COPY app.py /app.py</pre><p>If you are using Play With Docker, you can locate the Dockerfile by clicking on the <strong>Editor</strong> button in the instance window.</p><p>Now, let’s break down the commands in the Dockerfile line by line.</p><ul><li><strong>FROM python:3.6.1-alpine</strong></li></ul><p>This is the starting point for your Dockerfile. Every Dockerfile typically starts with a FROM line that is the starting image to build your layers on top of. In this case, you are selecting the python:3.6.1-alpine base layer because it already has the version of Python and pip that you need to run your application. The alpine version means that it uses the alpine distribution, which is significantly smaller than an alternative flavor of Linux. A smaller image means it will download (deploy) much faster, and it is also more secure because it has a smaller attack surface.</p><p>Here you are using the 3.6.1-alpine tag for the Python image. Look at the available tags for the official <a href="https://hub.docker.com/_/python/">Python image</a> on the Docker Hub. It is best practice to use a specific tag when inheriting a parent image so that changes to the parent dependency are controlled. If no tag is specified, the latest tag takes effect, which acts as a dynamic pointer that points to the latest version of an image.</p><p>For security reasons, you must understand the layers that you build your docker image on top of. For that reason, it is highly recommended to only use official images found in the Docker Hub, or noncommunity images found in the Docker Store. These images are <a href="https://docs.docker.com/docker-hub/official_repos/">vetted</a> to meet certain security requirements, and also have very good documentation for users to follow. You can find more information about this <a href="https://hub.docker.com/_/python/">Python base image</a> and other images that you can use on the <a href="https://hub.docker.com/">Docker store</a>.</p><p>For a more complex application, you might need to use a FROM image that is higher up the chain. For example, the parent <a href="https://github.com/docker-library/python/blob/88ba87d31a3033d4dbefecf44ce25aa1b69ab3e5/3.6/alpine/Dockerfile">Dockerfile</a> for your Python application starts with FROM alpine, then specifies a series of CMD and RUN commands for the image. If you needed more control, you could start with FROM alpine (or a different distribution) and run those steps yourself. However, to start, it&#39;s recommended that you use an official image that closely matches your needs.</p><ul><li><strong>RUN pip install flask</strong></li></ul><p>The RUN command executes commands needed to set up your image for your application, such as installing packages, editing files, or changing file permissions. In this case, you are installing Flask. The RUN commands are executed at build time and are added to the layers of your image.</p><ul><li><strong>CMD [&quot;python&quot;,&quot;app.py&quot;]</strong></li></ul><p>CMD is the command that is executed when you start a container. Here, you are using CMD to run your Python applcation.</p><p>There can be only one CMD per Dockerfile. If you specify more than one CMD, then the last CMD will take effect. The parent python:3.6.1-alpine also specifies a CMD (CMD python2). You can look at the Dockerfile for the <a href="https://github.com/docker-library/python/blob/88ba87d31a3033d4dbefecf44ce25aa1b69ab3e5/3.6/alpine/Dockerfile">official python:alpine image</a>.</p><p>You can use the official Python image directly to run Python scripts without installing Python on your host. However, in this case, you are creating a custom image to include your source so that you can build an image with your application and ship it to other environments.</p><ul><li><strong>COPY app.py /app.py</strong></li></ul><p>This line copies the app.py file in the local directory (where you will run docker image build) into a new layer of the image. This instruction is the last line in the Dockerfile. Layers that change frequently, such as copying source code into the image, should be placed near the bottom of the file to take full advantage of the Docker layer cache. This allows you to avoid rebuilding layers that could otherwise be cached. For instance, if there was a change in the FROM instruction, it will invalidate the cache for all subsequent layers of this image. You&#39;ll see this little later in this lab.</p><p>It seems counter-intuitive to put this line after the CMD [&quot;python&quot;,&quot;app.py&quot;] line. Remember, the CMD line is executed only when the container is started, so you won&#39;t get a file not found error here.</p><h4>Build the Docker Image</h4><p>To build a docker image use this command:</p><pre>docker image build -t python-hello-world .</pre><p>Pass the parameter -t to name your image python-hello-world</p><blockquote><strong>Note:</strong> You need to copy the entire command till the ‘ . ‘ at the end of command — this is required and indicates the root path</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kgkYjCXuAxt-tXvgeKivzQ.png" /><figcaption>Build and use the parameter -t to name the image</figcaption></figure><p>To verify and show your latest image you can use this command:</p><pre>docker image ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*m2omxKTXRot5QP5kdfVbMA.png" /><figcaption>It will display the most current image you’ve generated</figcaption></figure><h4>Run the Docker Image</h4><p>To run the docker image you can use this command bellow:</p><pre>docker run -p 5001:5000 -d python-hello-world</pre><p>The -p flag allows you to map a port from inside the container to your host. In this case, the Python app is being mapped from port 5000 inside the container to port 5001 on your host. If port 5001 is already in use by another application on your host, consider using a different value like 5002.</p><p>Navigate to <a href="http://localhost:5001/">http://localhost:5001</a> in a browser to see the results.</p><p>You should see “hello world!” in your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*66e35P3zhA6QTCHtK8L4WA.png" /><figcaption>The image is successfully running</figcaption></figure><p>To view the logs of the container, simply access your Docker Personal and navigate to the containers. Click on the recently created container and select “Logs” to see its output. You can also view inside the terminal by simply typing this command:</p><pre>docker container logs [container id]</pre><p>The Dockerfile is used to create reproducible builds for your application. A common workflow is to have your CI/CD automation run docker image build as part of its build process. After images are built, they will be sent to a central registry where they can be accessed by all environments (such as a test environment) that need to run instances of that application. In the next section, you will push your custom image to the public Docker registry, which is the Docker Hub, where it can be consumed by other developers and operators.</p><h4>Push to a Central Registry</h4><p>To get started, go to <a href="https://hub.docker.com/">Docker Hub’s </a>website and sign up for a free account.</p><p>Authenticate your access to the Docker registry by logging in using the docker login command on your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*Kib42nCcTPixYzzk8LKGbg.png" /><figcaption>In my situation, if you install and login to Docker Desktop, it will automatically login; otherwise, it will prompt you for your username.</figcaption></figure><p>Tag the image with your username.</p><p>The Docker Hub naming convention is to tag your image with [dockerhub username]/[image name]. To do this, tag your previously created image python-hello-world to fit that format.</p><pre>docker tag python-hello-world [dockerhub username]/python-hello-world</pre><p>After correctly tagging the image, run the docker push command to upload it to the Docker Hub registry:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*XkF8ApeIuG6ia1nlVy7VUw.png" /><figcaption>It will automatically upload your image into Docker Hub</figcaption></figure><p>In your browser, look for your image on Docker Hub.</p><p>To view your uploaded image, go to Docker Hub and select your profile.</p><p>Now that your image is on Docker Hub, other developers and operators can use the docker pull command to deploy your image to other environments.</p><blockquote><strong>Remember:</strong> Docker images are a convenient solution for managing application dependencies. They eliminate the concern of environment drift and remove the need for multiple provisioning steps. With Docker, all you have to do is install it in one simple step and you’re good to go.</blockquote><p>Leave a <strong>👏 </strong>and comment and let me know what you think.</p><p>Do you enjoy what you’ve read so far? <a href="https://ko-fi.com/kents_workof_art">Join and buy me a ko-fi</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eabdfaf97b2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Docker: A Step-by-Step Guide for Beginners — Part 1]]></title>
            <link>https://medium.com/@kent_edoloverio/mastering-docker-a-step-by-step-guide-for-beginners-part-1-7df11b366571?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/7df11b366571</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programmer]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Sun, 05 Nov 2023 09:36:35 GMT</pubDate>
            <atom:updated>2023-11-05T09:37:06.976Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Docker: A Step-by-Step Guide for Beginners — Part 1</h3><p>In this article, you will learn the fundamentals of using containers for your applications. We will cover creating and running Docker containers as a starting point. By the end, you will have a solid understanding of deploying containers in production and handling complex orchestration challenges like high availability, service discovery, and reconciliation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7QmbWTSIgcXMoZ7a.png" /><figcaption><a href="https://www.docker.com/blog/">https://www.docker.com/blog/</a></figcaption></figure><h4>Setup your Environment</h4><p>You can use either <a href="https://www.docker.com/products/personal/">Docker Personal</a> and <a href="https://labs.play-with-docker.com/">Play with Docker</a> while following in this article</p><h3>What are Containers</h3><p>Containers are a powerful tool in computing, providing isolation for processes running on Linux through the use of namespaces and control groups. These features are built directly into the Linux kernel, making containers accessible and versatile. However, it is important to note that containers do not possess any inherent special qualities beyond these fundamental components.</p><p>The true value of containers lies in the surrounding ecosystem and supporting tools they offer. Docker provides developers and operators with an intuitive interface for creating, distributing, and executing containerized applications across various environments. These additional features enhance ease-of-use and facilitate seamless deployment within diverse computing infrastructures.</p><h4>Running Container</h4><blockquote><strong>Note :</strong> Use the Docker Cli to run this container, if you are using Play with Docker click the “Add new Instance” to create a new terminal</blockquote><p>Open a terminal on your computer or if you are using Play with Docker, create a new instance and open the terminal inside. Run the following command in the terminal:</p><pre>docker container run -t ubuntu top</pre><p>To run a container with the Ubuntu image and use the top command, you can simplify by using the docker container run command with the -t flag to allocate a pseudo-TTY. This is necessary for the top command to function properly.</p><p>The docker <strong>run</strong> command downloads the Ubuntu image onto your host and starts the container. The output for the running container should resemble like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*fnIccQYTyg3hCxz64HSGXg.png" /><figcaption>Output Container</figcaption></figure><p><strong>top</strong> is a Linux tool that displays and sorts the processes on a system based on resource usage. The output only shows the top process, which is the top process itself, because of PID namespace isolation.</p><p>Containers use Linux namespaces to isolate system resources from other containers or the host. The PID namespace specifically isolates process IDs. When running top inside a container, it will show processes within that container’s PID namespace, which differs greatly from what you would see if you ran top on the host machine.</p><p>It should be noted that even though we are using an Ubuntu image for our container, it does not have its own kernel. Instead, it uses the kernel of the host machine while utilizing tools and file systems available in an Ubuntu environment.</p><p>To connect to a new terminal on Play with Docker, click “Add New Instance” and then use the IP listed by node1 to SSH from node2 into node1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*IlbsNIKdhY90wmbahv_Lrw.png" /><figcaption>Connecting Node 2 to Node 1</figcaption></figure><p>In the terminal, retrieve the ID of the running container you created by using this command:</p><pre>docker container ls </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*DatmumSkNOZhhz_cUXBRJw.png" /><figcaption>Displaying the information you created inside the container</figcaption></figure><p>To execute bash within the container, utilize the docker container exec command and incorporate the given container ID. In order to enable interaction with the container through your terminal, make use of the<strong> -it</strong> flag to allocate a pseudo-terminal while running in interactive mode.</p><pre>docker container exec -it 935d717c162d bash </pre><p>Using the <strong>docker container exec</strong> command and entering the container’s namespaces using <strong>bash </strong>is a commonly used method to inspect a Docker container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*KXLTpJhImXYXLgjmd-TpMg.png" /><figcaption>Running inside the container</figcaption></figure><p>Notice the change in the prefix of your terminal, for example, root@935d717c162d:/. This is an indication that you are running bash inside the container.</p><blockquote><strong>Tip :</strong> Interacting with a bash process within a container is not the same as using ssh to connect to a separate host or VM. Unlike an ssh server, you do not require any specific setup for connecting to a bash process in your container. It’s important to keep in mind that containers leverage kernel-level features for achieving isolation and run on top of the host’s kernel. A container essentially consists of processes running independently in isolation on the same host, allowing you to utilize the docker container exec command and gain access to this isolated environment through the bash process. Once executed, this command will include both topand’bash’ within the group of processes operating within this isolated context.</blockquote><p>To inspect the running process use this command:</p><pre>ps -ef</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*KkPgx7sdSIs68jtp5khFKA.png" /><figcaption>You should only see the main process, bash process, and your ps command. PID is a Linux namespace that isolates containers from system resources.</figcaption></figure><p>Other Linux namespaces include:</p><ul><li>MNT: Mount and unmount directories without affecting other namespaces.</li><li>NET: Containers have their own network stack.</li><li>IPC: Isolated interprocess communication mechanisms such as message queues.</li><li>User: Isolated view of users on the system.</li><li>UTC: Set hostname and domain name per container.</li></ul><p>These namespaces provide the isolation for containers that allow them to run together securely and without conflict with other containers running on the same system.</p><p>To compare, exit the container and run <strong>ps -ef </strong>or top on the host. These commands will work on both Linux and Mac. You may inspect the running processes in Windows by using <strong>tasklist</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*ot3z678VRRXqukOi-x7wgw.png" /><figcaption>exit inside the container</figcaption></figure><blockquote><strong>Tip:</strong> Namespaces serve as a notable feature in the Linux kernel. However, Docker offers the ability to run containers on both Windows and Mac operating systems. The key lies in the incorporation of a Linux subsystem within Docker’s software package. Leveraging this integration, using Docker for containerization provides an advantage of running containers across various platforms.</blockquote><p>Moreover, aside from running Linux containers on Windows through a Linux subsystem, it is now possible to execute native Windows containers by utilizing container primitives integrated into the Windows operating system. With this enhancement, users can run native Windows containers on compatible versions like Windows 10 or later generations such as Windows Server 2016 or above</p><h3>Running Multiple Containers</h3><p>Explore the <a href="https://hub.docker.com/explore/">Docker Hub</a>.</p><p>The Docker Hub is the public central registry for Docker images. Anyone can share images here publicly. The Docker Store contains community and official images that can also be found on the <a href="https://hub.docker.com/explore/">Docker Hub</a>.</p><p>When searching for images, you will find filters for Store and Community images. Store images include content that has been verified and scanned for security vulnerabilities by Docker. Go one step further and search for Certified images that are deemed enterprise-ready and are tested with Docker Enterprise Edition.</p><p>It is important to avoid using unverified content from the Docker Store when you develop your own images that are intended to be deployed into the production environment. These unverified images might contain security vulnerabilities or possibly even malicious software.</p><p>In this demonstration, we will use NGINX and MongoDB as an example to showcase how multiple containers can be run concurrently.</p><p>To run an NGINX server, you can use the official NGINX image available on the Docker Store.</p><pre>docker container run --detach --publish 8080:80 --name nginx nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*642myrYlxZECeuUyYx8p1Q.png" /><figcaption>Installing nginx inside the terminal</figcaption></figure><p>You are using some new flags. The <strong>— detach</strong> flag runs this container in the background. The <strong>— publish</strong> flag exposes port 80 in the container (default for NGINX) on <strong>port 8080</strong> of your host machine. Note that the NET namespace provides a separate network stack for processes within the container. The <strong>— publish</strong> flag allows networking from the container to be accessed from outside through the host machine.</p><p>How do you know port 80 is the default port for NGINX? Because it is listed in the <a href="https://store.docker.com/images/nginx">documentation</a> on the Docker Store. In general, the documentation for the verified images is very good, and you will want to refer to it when you run containers using those images.</p><p>Specify the <strong>— name</strong> flag to name your container. This makes it convenient for running commands on your container as you can reference the name instead of the ID. For instance, use docker container inspect nginx instead of docker container inspect 102l if you have named your container nginx.</p><p>Because this is the first time you are running the NGINX container, it will pull down the NGINX image from the Docker Store. Subsequent containers created from the NGINX image will use the existing image located on your host.</p><p>NGINX is a lightweight web server. You can access it on port 8080 on your localhost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*RLhv9EKFa9uvvb9JXGn3gw.png" /><figcaption>Accessing Nginx in localhost port 8080</figcaption></figure><p>Run a MongoDB, the official MongoDB image from the Docker Store will be used. Instead of using the most recent tag (which is the default if no tag is supplied), utilize 3.4 of the Mongo image.</p><pre>docker container run --detach --publish 8081:27017 --name mongo mongo:3.4</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*mV6LMoXBaMQsN_vI6NsseQ.png" /><figcaption>Installing MongoDB inside the terminal</figcaption></figure><p>Because this is your first time operating a Mongo container, download the Mongo image from the Docker Store. The — publish flag is used to expose the 27017 Mongo port on your server. Because 8080 is already available on your host, you must choose a different port for the host mapping. See the <a href="https://github.com/docker-library/docs/blob/master/mongo/README.md">documentation</a> on the Docker Store to get more information about using the Mongo image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*dSZD67KaK6zVS3Ko8-sUFA.png" /><figcaption>Accessing MongoDB in localhost port 8081</figcaption></figure><p>Checking the running containers</p><pre>docker container ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*A6sucqmBf4QtPdrdciJNKA.png" /><figcaption>List of containers</figcaption></figure><p>You have an NGINX web server container and a MongoDB container running on your host. Note that these containers are not yet configured to communicate with each other.</p><p>The names you assigned for the containers are “nginx” and “mongo”.The port mappings specified with the “ — publish” flag can also be observed. To obtain more details about these running containers, use the command “docker container inspect [container id]”.</p><p>One thing you might notice is that the Mongo container is running the docker-entrypoint command. This is the name of the executable that is run when the container is started. The Mongo image requires some prior configuration before kicking off the DB process. You can see exactly what the script does by looking at it on <a href="https://github.com/docker-library/mongo/blob/master/docker-entrypoint.sh">GitHub</a>. Typically, you can find the link to the GitHub source from the image description page on the Docker Store website.</p><p>Containers are self-contained and isolated, which means you can avoid potential conflicts between containers with different system or runtime dependencies. For example, you can deploy an app that uses Java 7 and another app that uses Java 8 on the same host. Or you can run multiple NGINX containers that all have port 80 as their default listening ports. (If you’re exposing on the host by using the --publish flag, the ports selected for the host must be unique.) Isolation benefits are possible because of Linux namespaces.</p><blockquote><strong>Remember</strong>: You didn’t have to install anything on your host (other than Docker) to run these processes! Each container includes the dependencies that it needs within the container, so you don’t need to install anything on your host directly.</blockquote><blockquote>Running multiple containers on the same host gives us the ability to use the resources (CPU, memory, and so on) available on single host. This can result in huge cost savings for an enterprise.</blockquote><blockquote>Although running images directly from the Docker Store can be useful at times, it is more useful to create custom images and refer to official images as the starting point for these images.</blockquote><h3>Remove the Containers</h3><p>Check all the running containers</p><pre>docker container ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*A6sucqmBf4QtPdrdciJNKA.png" /><figcaption>List of containers</figcaption></figure><p>To stop the containers by running this command for each container</p><pre>docker container stop [container id]</pre><blockquote><strong>Tip:</strong> You need to enter only enough digits of the ID to be unique. Three digits is typically adequate.</blockquote><p>You can also use names of the container</p><pre>docker container stop mongo nginx</pre><p>To clean up your environment, the following command can be used to remove any stopped containers, unused volumes and networks, as well as dangling images</p><pre>docker system prune</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*-SuiOPVbVNp6PVwW-pRd2w.png" /><figcaption>Deleting all containers and dangling images</figcaption></figure><p>Leave a <strong>👏 </strong>and comment and let me know what you think.</p><p>Do you enjoy what you’ve read so far? <a href="https://ko-fi.com/kents_workof_art">Join and buy me a ko-fi</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7df11b366571" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ways to Make your Code Clean]]></title>
            <link>https://medium.com/@kent_edoloverio/ways-to-make-your-code-clean-5718c7ea4f24?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/5718c7ea4f24</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Sun, 15 Oct 2023 07:57:26 GMT</pubDate>
            <atom:updated>2023-10-15T07:57:26.687Z</atom:updated>
            <content:encoded><![CDATA[<p>Clean code is commonly linked to software development practices and is distinguished by its readability, maintainability, and simplicity. It emphasizes the importance of writing code that can be easily comprehended, modified, and streamlined for optimal performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*phCoOKPa5pXr7M3AN33zuw.png" /></figure><p>Clean code, we all know how it feels to read your code like reading a book of a fifth-grade textbook readable and simple design. In the field of programming, working on a team can feel like navigating through a complex web of symbols and punctuation marks. Your code is more than just your personal creation; it is a collaborative piece that must be comprehensible to others.</p><h4><strong>Clean code Is obvious</strong></h4><p>Maintaining conciseness and clarity in code is crucial for effective collaboration within a team. Clean coding practices, such as properly naming variables and methods, ensuring consistency with numbers, can greatly benefit both individual developers and the entire team.</p><h4>Clean code has no duplication</h4><p>Each time you encounter duplicated code, the burden of ensuring that every instance is updated falls on your shoulders. This not only adds to your mental workload but also hampers productivity and efficiency in making progress towards desired goals. Reducing instances of duplicated code would alleviate these challenges, enabling smoother and more streamlined development processes.</p><h4>Clean code has small moving parts</h4><p>Reducing the amount of code in a project offers several advantages. First, it minimizes mental overload as there is less information to remember and manage. Having fewer lines of code reduces the need for maintenance, ultimately making development more efficient. Another benefit lies in the fact that with decreased complexity comes a decrease in potential bugs or errors within the codebase.</p><p>Leave a <strong>👏 </strong>and comment and let me know what you think.</p><p>Do you enjoy what you’ve read so far? <a href="https://ko-fi.com/kents_workof_art">Join and buy me a ko-fi</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5718c7ea4f24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Your First Blender Addon]]></title>
            <link>https://medium.com/@kent_edoloverio/create-your-first-blender-addon-4fa84944199c?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fa84944199c</guid>
            <category><![CDATA[blender3d]]></category>
            <category><![CDATA[blender]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Sun, 26 Mar 2023 13:36:20 GMT</pubDate>
            <atom:updated>2023-03-26T13:36:20.868Z</atom:updated>
            <content:encoded><![CDATA[<p>Blender is a popular 3D modeling and animation software that enables creative young people to create visually stunning animations and visuals. Blender has one feature in which you can create your own program that can be extended through addons, which are small programs that add functionality to the software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Isup9WnT1NlRICdbkdmCqA.png" /></figure><p>In this tutorial, we’ll walk through the steps of creating a basic Blender addon from scratch. We will go over the fundamentals, such as how to set up the addon and add basic mesh and materials. By the end of this tutorial, you should have a good understanding of how to make your first Blender addon.</p><h4>ADDON SETUP</h4><p>To begin, launch Blender and navigate to the scripting tab, then click &quot;New&quot; to create a new text file. Name the file something like &quot;mesh_material_addon.py.&quot; In this file, we will write the code for our addon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YrNT6oUWWI3WB5FCtfUJwA.gif" /></figure><p>Let’s define some basic information about the addon at the top of the file, such as its name, version, and author:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c5e678bb9ff2dcf2944a8ba5faf2079f/href">https://medium.com/media/c5e678bb9ff2dcf2944a8ba5faf2079f/href</a></iframe><h4>ADDING MESH</h4><p>Now let’s write the code for adding a default cube. We will define a class called “AddCubeOperator” and inside the class there is a variablebl_idname which it will defines the name used to access the operator within Blender and bl_label this would be our label for the operator itself, the execute function will add the default cube at the center of our 3D view.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d24c70dea7c850275c3b16a6b85a710/href">https://medium.com/media/8d24c70dea7c850275c3b16a6b85a710/href</a></iframe><h4>CREATING PANEL</h4><p>To create a panel in Blender we just import a library called panel inside the bpy.types we also add new variables like bl_space_type this will especifies that the panel will be displayed in the 3D viewbl_region_type panel will be displayed in the UI region of the 3D view and bl_options panel’s header layout will expand to fill the available space.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f20c1bf1240daacc56fafd47fe177a4/href">https://medium.com/media/3f20c1bf1240daacc56fafd47fe177a4/href</a></iframe><p>Inside the draw function we call our operator by using the bl_idname and also I added a icon “MESH_CUBE”</p><h4>ADDING MATERIAL</h4><p>Adding a new material to an object using Python code involves creating a new material object, assigning its properties, such as color and texture, and then assigning the material to the object’s mesh data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce4e1f898b204ef128f5d3ebcecf94cc/href">https://medium.com/media/ce4e1f898b204ef128f5d3ebcecf94cc/href</a></iframe><p>This operator adds a new material slot to the selected object, creates a new material with nodes enabled and the name “Sample Material,” clears all existing materials from the object’s mesh data, and appends the new material to the mesh data.</p><h4><strong>FINAL OUTPUT</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDeu0VJhYQUScCaEw_-kng.gif" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc41f79a3430b68ff4656b06ea2dfdcc/href">https://medium.com/media/cc41f79a3430b68ff4656b06ea2dfdcc/href</a></iframe><h4><strong>INSTALLING YOUR ADDON</strong></h4><p>To install your own addon, follow these steps:</p><ul><li>First, convert your add-on in the form of a .zip file</li><li>Open Blender and go to the Edit menu and click on Preferences.</li><li>In the Preferences window, select the Add-ons tab.</li><li>Click on the Install button located at the top right corner of the window.</li><li>Navigate to the downloaded .zip file and select it.</li><li>Click on the Install Add-on button to install the add-on.</li><li>Once installed, enable the add-on by checking the checkbox next to its name in the list of add-ons.</li><li>Finally, save the preferences by clicking on the Save Preferences button located at the bottom of the window.</li></ul><p>Leave a <strong>👏 </strong>and leave a comment to let me know what you think.</p><p>Do you enjoy what you’ve read so far? <a href="https://ko-fi.com/kents_workof_art">Join and buy me a ko-fi</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fa84944199c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn Programming Language Easily]]></title>
            <link>https://medium.com/@kent_edoloverio/learn-programming-language-easily-5bc1726f1655?source=rss-83ed9ad2e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bc1726f1655</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programming-tips]]></category>
            <dc:creator><![CDATA[Kent Edoloverio]]></dc:creator>
            <pubDate>Sat, 10 Dec 2022 06:43:06 GMT</pubDate>
            <atom:updated>2022-12-10T06:43:06.704Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many different ways to learn programming languages, and the best approach will depend on your individual learning style and needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OV9lPNB_7bDiYAC2.png" /><figcaption><a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fwww.codecademy.com%2Fresources%2Fblog%2Fprogramming-languages%2F&amp;psig=AOvVaw1H8K52M3qXgLvuYJ_k6Hff&amp;ust=1670740357713000&amp;source=images&amp;cd=vfe&amp;ved=0CBEQjRxqFwoTCPipvv-27vsCFQAAAAAdAAAAABAE">Codecademy</a></figcaption></figure><p>Here are some general tips for learning programming languages include:</p><h4>Start With The Basics:</h4><p>Before diving into complex topics, it is important to have a solid understanding of the fundamentals of programming. This includes concepts such as variables, data types, control structures, and algorithms.</p><h4>Practice, Practice, Practice:</h4><p>The best way to learn programming is to actually write code. Try to find or create problems to solve, and then use your new skills to write programs to solve those problems. This will help you gain a better understanding of the language and develop your problem-solving skills.</p><h4>Use Online Resources:</h4><p>There are many online resources available that can help you learn programming, such as tutorials, videos, and books. These resources can provide valuable insights and guidance as you learn the language.</p><h4>Join a Community:</h4><p>Many programming languages have active online communities where you can connect with other programmers, ask questions, and share your experiences. These communities can provide valuable support and advice as you learn the language.</p><h4>Seek Help When Needed:</h4><p>If you get stuck or have questions, don’t be afraid to ask for help. There are many experienced programmers who are willing to help others learn, so don’t hesitate to reach out to them for guidance.</p><p>Leave a <strong>👏 </strong>and leave a comment to let me know what you think.</p><p>Do you enjoy what you’ve read so far? <a href="https://ko-fi.com/kents_workof_art">Join and buy me a ko-fi</a></p><p><strong>© </strong>All Rights Reserved Kent Edoloverio</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bc1726f1655" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>