<?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 Salma on Medium]]></title>
        <description><![CDATA[Stories by Salma on Medium]]></description>
        <link>https://medium.com/@salmasaaiou?source=rss-8b6b75fe9a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WCr_zVIpY3CiQuHy6g59Dg.jpeg</url>
            <title>Stories by Salma on Medium</title>
            <link>https://medium.com/@salmasaaiou?source=rss-8b6b75fe9a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:11:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@salmasaaiou/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[Among the Tomatoes and Frogs: Productivity Lessons From Mother Nature]]></title>
            <link>https://salmasaaiou.medium.com/among-the-tomatoes-and-frogs-productivity-lessons-from-mother-nature-8647872669db?source=rss-8b6b75fe9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8647872669db</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Salma]]></dc:creator>
            <pubDate>Tue, 26 Dec 2023 19:31:29 GMT</pubDate>
            <atom:updated>2023-12-26T19:31:29.748Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sQYCf_BGXd7sAi9sALZ5fA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@sahinsezerdincer?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Şahin Sezer Dinçer</a> on <a href="https://unsplash.com/photos/grayscale-photo-of-hour-glass-on-rock-YhoQj_EUi50?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><blockquote>You might be wondering why there’s a tomato 🍅 in the title. Well, it’s not just any ordinary tomato — it represents a powerful productivity technique known as the Pomodoro Method. “Pomodoro” is the Italian word for tomato, and this method gets its name from the tomato-shaped kitchen timer that its creator, Francesco Cirillo, used when he first developed the technique.</blockquote><p>Oh man, the <em>Pomodoro</em> Technique is one that really saved me when I was feeling overwhelmed with a project a while back. For those who haven’t tried it, basically the idea is that you focus on a single task for a set period of time, like 25 minutes, then take a short break. This helps you power through things that feel daunting.</p><p>Personally, I started with the standard 25 minutes intervals but found I needed a bit longer to really dig into coding challenges. That’s when I came across a YouTube video suggesting 45 minutes instead, with 15 minutes breaks. Figured it was worth a shot since the shorter intervals weren’t cutting it for complex work.</p><p>I have to say, the 45/15 method really helped me stay focused and motivated to complete this big algorithm I was struggling with for a project. There’s something so satisfying about that timer going off, knowing it’s time to take a break before diving back in. I found breaking tasks into seemingly more manageable chunks also helped relieve that mental block of not knowing where to start.</p><p>Now whenever I’m feeling overwhelmed with a task, the <em>Pomodoro</em> Technique is my go-to. Even just committing to one <em>Pomodoro</em> sets the intention to make progress. I’d definitely recommend giving those longer intervals a try if you work on more involved problems. Sometimes 25 minutes really isn’t enough! But somehow just that timer and short break is all it takes to keep me on track.</p><blockquote>Well, just like tomatoes, frogs 🐸 symbolize another productivity strategy called the “Eat the Frog” method. The phrase “eat the frog” comes from a famous quote by Mark Twain: “Eat a live frog first thing in the morning, and nothing worse will happen to you the rest of the day.”</blockquote><p>I was yesterday years old when I realized that I have been eating lots of frogs for a while without even realizing it was an official productivity method.</p><p>Basically the idea behind it is that you tackle your most difficult, important, or unpleasant task as early as possible in the day. This could be something scary like a complex work project, Important call you’ve been avoiding, or even cleaning the bathroom! The reasoning is that once you’ve eaten that “frog”, the rest of your to-dos become a lot more palatable in comparison.</p><p>I will say it takes willpower to start with something unpleasant rather than saving it for later in an attempt to procrastinate. But if you can commit to eating just one frog each morning, it really does make you feel more in control and accomplished for the rest of the day. Maybe not the most appetizing metaphor, but it works!</p><p>I hope you’ve enjoyed hearing about my journeys amidst the tomatoes and frogs! To wrap things up, I just want to say that experimenting with these productivity techniques really changed my perspective.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8647872669db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside the Habit Loop: How Our Bodies and Minds Get Hooked?]]></title>
            <link>https://salmasaaiou.medium.com/inside-the-habit-loop-how-our-bodies-and-minds-get-hooked-07825a17bc8f?source=rss-8b6b75fe9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/07825a17bc8f</guid>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Salma]]></dc:creator>
            <pubDate>Tue, 19 Dec 2023 18:02:37 GMT</pubDate>
            <atom:updated>2023-12-26T20:16:19.367Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ahqr3EpVkISuqIQvT7IlJA.jpeg" /><figcaption>Image taken by <strong>lil artsy</strong>, found on <strong>pexels</strong></figcaption></figure><p>You ever wonder why some things you do just become total habits while other stuff never seems to stick, no matter how hard you try? I’ve been thinking a lot about habits lately and what exactly is going on inside our bodies and minds to turn an action into something we do without even realizing.</p><p>As someone who’s searched a lot about human behavior and tried to understand why certain patterns take hold so easily, I’ve come to realize it’s not actually that complicated when you break it down to the basics of reward and routine. Our bodies and brains are designed in such a way that certain neural pathways strengthen over time based on repetition and positive feedback. This habit loop is what keeps us coming back for more without much conscious thought.</p><p>It starts with a simple cue — maybe you finish work each evening and that’s your signal to head to the gym. Or you always scroll social media first thing in the morning over coffee. <br>This is where the reward comes in. At the gym, you feel a sense of accomplishment after your workout. On social media, you get a dopamine hit from likes and comments. Our brains are wired to seek out rewards, so when these positive feelings are consistently tied to a routine, it strengthens the neural pathway between the cue and action.</p><p>Over time, through repetition, this loop gets ingrained in our subconscious. The cue and routine become so automatic that willpower is no longer required — we’re on autopilot. And because habits satisfy both our need for efficiency and reward-seeking nature, they provide an escape from having to continually make decisions.</p><p>So while willpower is needed to form habits at first, our <em>amazing</em> yet <em>flawed</em> human bodies and minds eventually take over to keep us stuck in potentially unhealthy loops. But understanding the habit mechanism gives us power too — we can choose to disrupt old patterns and consciously build better routines that serve us in the long run. It just may take a bit more <strong>effort</strong> up front to let those new neural pathways stick.</p><blockquote><strong>The cue triggers a routine</strong> .</blockquote><p>Thanks for reading. I’m curious to hear how habits have helped each of you as well as where they may be steering you off course without your say-so.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07825a17bc8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Things I Wish I Knew at 21]]></title>
            <link>https://salmasaaiou.medium.com/7-things-i-wish-i-knew-at-21-c3767a73823b?source=rss-8b6b75fe9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3767a73823b</guid>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Salma]]></dc:creator>
            <pubDate>Sat, 16 Dec 2023 11:58:51 GMT</pubDate>
            <atom:updated>2023-12-26T20:17:24.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ILKpkWksryKVF0DREUi4fQ.jpeg" /><figcaption>Image taken by Mathieu Stern, found on pexels</figcaption></figure><p>Hello! Thanks for stopping by. As I approach my 32nd birthday next month, I’ve been doing a lot of reflecting on the past decade. While my 20s brought me many wonderful experiences and memories, there were also a few key lessons I wish I had learned sooner. Here are <em>7 things</em> that, in hindsight, I believe would have served 21-year-old me well. I’m sharing them in case any of you out there in your early 20s can benefit from my mistakes.</p><ol><li><strong><em>Take care of your health early.</em> </strong><br>I spent a lot of time in my early-to-mid 20s having fun and not thinking much about wellness basics like sleep, nutrition, exercise and self-care. Looking back, I regret not treating my body with more kindness and respect when I was younger. Developing healthy habits from a young age makes such a difference as you get older.</li><li><strong><em>Anger and resentment are poison. </em></strong><br>It’s so easy to hold on to petty grudges and negativity, especially when you’re still figuring life out. But harboring those emotions really weighs you down. These days, I try my best to let go of what I can’t control and not waste energy on what doesn’t serve me.</li><li><strong><em>Power is found in simple actions. </em></strong><br>In my late 20s I picked up some game-changing daily routines like reading, exercise, quality sleep, drinking more water and limiting screen time. These small acts have surprising power when they become habit. I definitely didn’t appreciate their importance 10 years ago.</li><li><strong><em>Daily habits determine your future. </em></strong><br>Related to #3 — the things we do every single day really do shape our lives in profound ways, both physically and mentally. I only started paying attention to my habits in my late 20s, and it’s been life-changing. Formation of powerful routines is so valuable at a younger age.</li><li><strong><em>You’re allowed to be happy now. </em></strong><br>We’re taught that happiness lies ahead, once we reach certain achievements or milestones. But the truth is happiness is a journey, and we can seek it anywhere, at any time — even now, as a 21-year-old, your happiness matters.</li><li><strong><em>You don’t have to have it all figured out. </em></strong><br>It’s so reassuring to realize that everyone, no matter how put together they seem, is just making it up as they go along. We’re all still learning. So don’t be so hard on yourself, enjoy the journey of discovery.</li><li><strong><em>Surround yourself with people who are better than you. </em></strong><br>The company you keep influences who you become. Learning from and uplifting others is so important for growth. Make it a priority to find mentors and spend quality time with people who challenge and inspire you to improve.</li></ol><blockquote>Oops, I May Have Misled You!</blockquote><p>When I sat down to write, I thought it would be interesting to reflect on lessons learned later in life. But upon reviewing my <em>7 things</em>, I see they are all fundamentals that are so important to focus on right now, as a young adult. Things like prioritizing health, avoiding resentment, focusing on empowering daily habits and routines. So in <strong><em>reality</em></strong>, I’m not sharing things I wish I knew a decade ago — rather, insights I’m committed to embracing right now at 21. My hope is that any of you reading this who are also just starting out in your adult years can do the same. Let’s make the most of our youth by setting ourselves up for lifelong wellbeing, growth and success.</p><p><em>Title:</em> 7 Things I’m Glad I Know Now At 21</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3767a73823b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File uploads using Cloudinary and Multer]]></title>
            <link>https://salmasaaiou.medium.com/file-uploads-using-cloudinary-and-multer-eb22bf928f18?source=rss-8b6b75fe9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb22bf928f18</guid>
            <dc:creator><![CDATA[Salma]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 17:47:19 GMT</pubDate>
            <atom:updated>2023-12-14T19:53:15.440Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iwKS_uJs-Tpb7fkII_H3Qw.png" /><figcaption>Image created by Author using OpenAI’s DALL-E.</figcaption></figure><p><strong>Introduction</strong>:</p><p>In this tutorial, we will walk through the process of uploading files to Cloudinary, a cloud-based media management platform, using Multer, a middleware for handling multipart/form-data. We’ll cover the setup and configuration of Cloudinary, Multer, and demonstrate how to handle file uploads with custom folder structures and validations.</p><p><strong>Prerequisites:</strong></p><p>Before getting started, ensure that you have the following:</p><ol><li>Node.js and npm installed on your machine.</li><li>A Cloudinary account. If you don’t have one, sign up for free at <a href="https://cloudinary.com/">https://cloudinary.com</a>.</li></ol><p><strong>Step 1: Set up Cloudinary Account</strong></p><ol><li>Go to <a href="https://cloudinary.com/">https://cloudinary.com</a> and sign in to your account.</li><li>Once signed in, navigate to your dashboard.</li><li>Retrieve your Cloudinary credentials, including the cloud name, API key, and API secret. You’ll need these to configure the Cloudinary SDK.</li></ol><p><strong>Step 2: Project Setup</strong></p><ol><li>Create a new Node.js project or use an existing one.</li><li>Open your project in a code editor of your choice.</li><li>Install the required dependencies by running the following command in your project directory:</li></ol><pre>npm install cloudinary multer multer-storage-cloudinary</pre><p><strong>Step 3: Configure Cloudinary</strong></p><ol><li>Create a new JavaScript file, e.g., cloudinaryConfig.js, and require the necessary modules:</li></ol><pre>const cloudinary = require(&quot;cloudinary&quot;).v2;<br>const { CloudinaryStorage } = require(&quot;multer-storage-cloudinary&quot;);<br>const path = require(&quot;path&quot;);<br><br>// Cloudinary Configuration<br>cloudinary.config({<br>  cloud_name: process.env.CLOUD_NAME,<br>  api_key: process.env.CLOUDINARY_API_KEY,<br>  api_secret: process.env.CLOUDINARY_API_SECRET,<br>});</pre><p>2. Replace process.env.CLOUD_NAME, process.env.CLOUDINARY_API_KEY, and process.env.CLOUDINARY_API_SECRET with your Cloudinary credentials. Alternatively, you can store these values in a .env file and use a library like dotenv to load them.</p><p><strong>Step 4: Implement the Upload Middleware</strong></p><ol><li>Create a new JavaScript file, e.g., uploadMiddleware.js, and require the necessary modules and helper functions:</li></ol><pre>const multer = require(&quot;multer&quot;);<br>const { CloudinaryStorage } = require(&quot;multer-storage-cloudinary&quot;);<br>const cloudinary = require(&quot;./cloudinaryConfig&quot;);<br><br>function uploadMiddleware(folderName) {<br>  const storage = new CloudinaryStorage({<br>    cloudinary: cloudinary,<br>    params: (req, file) =&gt; {<br>      const folderPath = `${folderName.trim()}`; // Update the folder path here<br>      const fileExtension = path.extname(file.originalname).substring(1);<br>      const publicId = `${file.fieldname}-${Date.now()}`;<br>      <br>      return {<br>        folder: folderPath,<br>        public_id: publicId,<br>        format: fileExtension,<br>      };<br>    },<br>  });<br><br>  return multer({<br>    storage: storage,<br>    limits: {<br>      fileSize: 5 * 1024 * 1024, // keep images size &lt; 5 MB<br>    },<br>  });<br>}<br><br>module.exports = uploadMiddleware;</pre><p><strong>Step 5: Using the Upload Middleware</strong></p><p>To utilize the upload middleware in your application, follow these steps:</p><ol><li>Require the uploadMiddleware function in your desired file:</li></ol><pre>const uploadMiddleware = require(&quot;./uploadMiddleware&quot;);</pre><p>2. Initialize the middleware by calling the function and passing the desired folder name as an argument:</p><pre>const upload = uploadMiddleware(&quot;folderName&quot;);</pre><p>Replace &quot;folderName&quot; with the actual name of the folder where you want to store the uploaded files.</p><p>3. Attach the middleware to the desired route or endpoint where you want to handle file uploads:</p><pre>app.post(&quot;/upload&quot;, upload.single(&quot;file&quot;), (req, res) =&gt; {<br>  // Handle file upload logic here<br>});</pre><p>Replace /upload with the endpoint where you want to handle file uploads, and additionally, replace &quot;file&quot; with the name of the field in your HTML form that contains the file input.</p><p><strong>Step 7: Handling File Uploads</strong></p><p>In the route or endpoint where you attached the upload middleware, you can access the uploaded file(s) using req.file or req.files depending on whether you used upload.single() or upload.array().</p><p>Here’s an example of handling a single uploaded file:</p><pre>app.post(&quot;/upload&quot;, upload.single(&quot;file&quot;), (req, res) =&gt; {<br>  if (!req.file) {<br>    // No file was uploaded<br>    return res.status(400).json({ error: &quot;No file uploaded&quot; });<br>  }<br><br>  // File upload successful<br>  const fileUrl = req.file.path; // URL of the uploaded file in Cloudinary<br>  <br>  // Perform any additional logic or save the file URL to a database<br><br>  res.status(200).json({ success: true, fileUrl: fileUrl });<br>});</pre><p><strong>Step 8: Test the File Upload</strong></p><ol><li>Start your Node.js server by running the command:</li></ol><pre>node app.js</pre><p>Replace app.js with the name of your main server file.</p><p>2. Ensure that you have a form with a file input field in your application’s frontend.</p><p>3. Submit the form with a file selected for upload.</p><p>4. Verify that the file is successfully uploaded to your Cloudinary account and that the response from the server contains the file URL or any desired additional logic.</p><p><strong>Conclusion:</strong></p><p>Congratulations! You have successfully implemented a file upload functionality using Multer and Cloudinary. Now you can handle file uploads in your Node.js application and store the files in the cloud for easy management and retrieval. Feel free to customize the code and explore more features provided by Multer and Cloudinary to enhance your file upload experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb22bf928f18" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>