<?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 Idrees Noor on Medium]]></title>
        <description><![CDATA[Stories by Idrees Noor on Medium]]></description>
        <link>https://medium.com/@idreesnoor150?source=rss-15f66431f714------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yuMCiAgi-NwZoNYY</url>
            <title>Stories by Idrees Noor on Medium</title>
            <link>https://medium.com/@idreesnoor150?source=rss-15f66431f714------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 23:36:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@idreesnoor150/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[# Docker: A Comprehensive Guide]]></title>
            <link>https://medium.com/@idreesnoor150/docker-a-comprehensive-guide-bfcc3633469c?source=rss-15f66431f714------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfcc3633469c</guid>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Idrees Noor]]></dc:creator>
            <pubDate>Fri, 25 Oct 2024 11:45:12 GMT</pubDate>
            <atom:updated>2024-10-25T11:45:12.029Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>## 1. What is Docker?</strong><br>Docker is a platform that uses containerization technology to package applications and their dependencies together in isolated environments called containers. Think of containers like lightweight, portable, self-sufficient packages that include everything needed to run an application:<br>- The application code<br>- Runtime environment<br>- System tools<br>- System libraries<br>- Settings</p><p>## 2. Key Concepts</p><pre>### Containers vs Virtual Machines<br>```<br>Virtual Machines:<br>├── App A ├── App B<br>├── Libs ├── Libs<br>├── Guest OS ├── Guest OS<br>└── Hypervisor<br>└── Host Operating System<br>└── Infrastructure</pre><pre>Containers:<br>├── App A ├── App B<br>├── Libs ├── Libs<br>└── Docker Engine<br>└── Host Operating System<br>└── Infrastructure<br>```</pre><p><strong>### Main Components:</strong><br>1. **Docker Engine**: The runtime that runs and manages containers<br>2. **Docker Image**: A template containing instructions for creating a container<br>3. **Docker Container**: A running instance of an image<br>4. **Dockerfile**: A text file with instructions for building a Docker image<br>5. **Docker Registry**: A repository for storing and sharing Docker images<br>6. **Docker Compose**: A tool for defining and running multi-container applications</p><p><strong>## 3. Basic Docker Commands</strong></p><pre>```bash<br># Pull an image from Docker Hub<br>docker pull image-name</pre><pre># List all images<br>docker images</pre><pre># Run a container<br>docker run image-name</pre><pre># List running containers<br>docker ps</pre><pre># List all containers (including stopped)<br>docker ps -a</pre><pre># Stop a container<br>docker stop container-id</pre><pre># Remove a container<br>docker rm container-id</pre><pre># Remove an image<br>docker rmi image-name<br>```</pre><pre>## 4. Example Dockerfile</pre><pre>```dockerfile<br># Use an official Node.js runtime as the base image<br>FROM node:16</pre><pre># Set the working directory in the container<br>WORKDIR /app</pre><pre># Copy package.json and package-lock.json<br>COPY package*.json ./</pre><pre># Install dependencies<br>RUN npm install</pre><pre># Copy the rest of the application code<br>COPY . .</pre><pre># Expose port 3000<br>EXPOSE 3000</pre><pre># Command to run the application<br>CMD [“npm”, “start”]<br>```</pre><p><strong>## 5. Example Docker Compose File</strong></p><pre>```yaml<br>version: ‘3’<br>services:<br> web:<br> build: .<br> ports:<br> — “3000:3000”<br> depends_on:<br> — db<br> db:<br> image: mongo:latest<br> volumes:<br> — mongodb_data:/data/db</pre><pre>volumes:<br> mongodb_data:<br>```</pre><p><strong>## 6. Benefits of Using Docker</strong></p><p><em>1. **Consistency**</em><br> — Same environment across development, testing, and production<br> — “It works on my machine” problem solved</p><p><em>2. **Isolation**</em><br> — Applications and dependencies are contained<br> — No conflicts between different versions of libraries</p><p><em>3. **Portability**</em><br> — Containers can run anywhere Docker is installed<br> — Easy deployment across different platforms</p><p>4. **Scalability**<br> — Easy to scale applications horizontally<br> — Simple to manage multiple instances</p><p><em>5. **Version Control and Reuse**</em><br> — Images can be versioned<br> — Components can be reused between applications</p><p><em>6. **Rapid Deployment*</em>*<br> — Quick to start and stop containers<br> — Fast delivery of applications and updates</p><p><strong>## 7. Best Practices</strong></p><p>1. **Use Official Base Images**<br> — More secure and regularly updated<br> — Well documented and maintained</p><p>2. **Minimize Layer Count**<br> — Combine commands when possible<br> — Use multi-stage builds for smaller final images</p><p>3. **Keep Images Small**<br> — Only include necessary files<br> — Remove unnecessary dependencies</p><p>4. **Use .dockerignore**<br> — Exclude unnecessary files from the build context<br> — Improve build performance</p><p>5. **Set Resource Limits**<br> — Define memory and CPU constraints<br> — Prevent container from consuming too many resources</p><p>6. **Use Specific Tags**<br> — Avoid using ‘latest’ tag in production<br> — Use specific versions for reproducibility</p><p>## 8. Common Use Cases</p><p>1. **Microservices Architecture**<br> — Each service in its own container<br> — Easy to manage and scale independently</p><p>2. **Development Environments**<br> — Consistent development environment for team members<br> — Quick setup for new developers</p><p>3. **Continuous Integration/Deployment**<br> — Automated testing environments<br> — Consistent deployment process</p><p>4. **Legacy Application Migration**<br> — Package legacy applications with their dependencies<br> — Run older applications on modern infrastructure</p><p>## 9. Security Considerations</p><p>1. **Image Security**<br> — Use trusted base images<br> — Regularly scan for vulnerabilities</p><p>2. **Container Security**<br> — Run containers as non-root users<br> — Implement resource limits</p><p>3. **Network Security**<br> — Use custom networks for container communication<br> — Limit exposed ports</p><p>4. **Access Control**<br> — Implement proper authentication<br> — Use secrets management</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfcc3633469c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GUI of Ubuntu is not working and you’re currently on the TTY1 screen ubuntu 24.04.1.]]></title>
            <link>https://medium.com/@idreesnoor150/gui-of-ubuntu-is-not-working-and-youre-currently-on-the-tty1-screen-ubuntu-24-04-1-4c318c5e9dd0?source=rss-15f66431f714------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c318c5e9dd0</guid>
            <category><![CDATA[ubuntu-desktop]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[ubuntu-20-04]]></category>
            <dc:creator><![CDATA[Idrees Noor]]></dc:creator>
            <pubDate>Sat, 28 Sep 2024 19:56:24 GMT</pubDate>
            <atom:updated>2024-09-28T19:56:24.287Z</atom:updated>
            <content:encoded><![CDATA[<h3>GUI of Ubuntu is not working and you’re currently on the TTY1 screen ubuntu 24.04.1. How to fix the issue?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*NBbjRv82lcdMlajHqzBAYQ.jpeg" /></figure><p>ubuntu 24.04.1 showing black screen after login here is how to fix it</p><p>first enter a terminal session by pressing ctrl + shift + f3 enter your username and password after that enter this commands</p><pre>sudo apt-get upgrade</pre><p>then finally ;</p><pre>sudo apt-get install ubuntu-desktop</pre><p>the above command will solve the issue automatically after that reboot the pc with this command <strong>sudo reboot </strong>and that is it the black screen will be gone this is the best way i found to solve that issue ;</p><p>credits to this video :<a href="https://www.youtube.com/watch?v=pcv-3ClXmOA">https://www.youtube.com/watch?v=pcv-3ClXmOA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c318c5e9dd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install tailwind css with react vite project]]></title>
            <link>https://medium.com/@idreesnoor150/how-to-install-tailwind-css-with-react-vite-project-6f498b88ec9e?source=rss-15f66431f714------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f498b88ec9e</guid>
            <category><![CDATA[vites]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Idrees Noor]]></dc:creator>
            <pubDate>Mon, 20 May 2024 18:49:01 GMT</pubDate>
            <atom:updated>2024-05-20T18:49:01.610Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*Uv8lYKx4bUx1zUga9G1GVg.jpeg" /></figure><p><em>step 1</em></p><p><em>create vite project if you haven’t one yet by using the below comand |</em></p><pre>npm create vite@latest my-project -- --template react</pre><pre>cd my-project</pre><p><em>step 2</em></p><p><em>Install </em><strong><em>tailwindcss</em></strong><em> and its peer dependencies, then generate your </em><strong><em>tailwind.config.js</em></strong><em> and </em><strong><em>postcss.config.js</em></strong><em> files.</em></p><pre>npm install -D tailwindcss postcss autoprefixer</pre><pre>npx tailwindcss init -p</pre><p><em>step 3</em></p><p><em>Add the paths to all of your template files in your </em><strong><em>tailwind.config.js</em></strong><em> file.</em></p><pre>/** @type {import(&#39;tailwindcss&#39;).Config} */<br>export default {<br>content: [<br>&quot;./index.html&quot;,<br>&quot;./src/**/*.{js,ts,jsx,tsx}&quot;,<br>],<br>theme: {<br>extend: {},<br>},<br>plugins: [],<br>}</pre><p><em>step 4</em></p><h3><em>Add the Tailwind directives to your CSS</em></h3><p><em>Add the </em><strong><em>@tailwind</em></strong><em> directives for each of Tailwind’s layers to your </em><strong><em>./src/index.css</em></strong><em> file</em></p><pre>@tailwind base;<br>@tailwind components;<br>@tailwind utilities;</pre><p><em>step 5</em></p><h3><em>Start your build process</em></h3><pre>Run your build process with **npm run dev**.</pre><p><em>step 6 last step</em></p><h3><em>Start using Tailwind in your project</em></h3><p><em>Start using Tailwind’s utility classes to style your </em><a href="http://content.eg/"><em>content</em></a><em> eg paste this in App.jsx</em></p><pre>export default function App() {<br>return (<br>&lt;h1 className=&quot;text-3xl font-bold underline&quot;&gt;<br>Hello world!<br>&lt;/h1&gt;<br>)<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f498b88ec9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>