<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 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">
    <channel>
        <title>Mehdi’s articles (excerpts only)</title>
        <link>https://blog.mehdi.cc</link>
        <description>Excerpt of my articles.</description>
        <lastBuildDate>Fri, 20 Feb 2026 20:05:57 GMT</lastBuildDate>
        <docs>https://www.rssboard.org/rss-specification</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <ttl>2880</ttl>
        <copyright>Copyright © 2023-present, Mehdi Merah</copyright>
        <atom:link href="https://blog.mehdi.cc/feed-articles-excerpts-only.xml" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[Seeding a MySQL 8 table with geographic coordinates using Laravel]]></title>
            <link>https://blog.mehdi.cc/articles/laravel-mysql-geography-seed</link>
            <guid isPermaLink="false">https://blog.mehdi.cc/articles/laravel-mysql-geography-seed</guid>
            <pubDate>Fri, 10 May 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[Who would expect there’s a SQL column type for this?]]></description>
            <content:encoded><![CDATA[<p>Today I learned that MySQL 8 has column types to store geographic coordinates, the simplest of them probably being <a href="https://dev.mysql.com/doc/refman/8.3/en/gis-point-property-functions.html" target="_blank" rel="noreferrer"><code>POINT</code></a>. It’s less straightforward than what I expected, so here’s how I managed to seed my database using <a href="https://laravel.com" target="_blank" rel="noreferrer">Laravel</a>.</p>
]]></content:encoded>
            <author>hi@mehdi.cc (Mehdi Merah)</author>
        </item>
        <item>
            <title><![CDATA[GitHub Markdown syntax for alerts considered harmful]]></title>
            <link>https://blog.mehdi.cc/articles/github-alerts-markdown-syntax</link>
            <guid isPermaLink="false">https://blog.mehdi.cc/articles/github-alerts-markdown-syntax</guid>
            <pubDate>Sat, 03 Feb 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[I’ve decided to not use it, it’s confusing and poorly designed.]]></description>
            <content:encoded><![CDATA[<div class="info custom-block"><p class="custom-block-title">Article updated on <datetime date="2024-02-04" formatter="longdate"/></p>
<p><a href="./../articles/github-alerts-markdown-syntax.html#updates-to-this-article">Read all about the changes</a>.</p>
</div>
<p>I had multiple options for the title of this note, from being neutral to opinionated, or even pedantic. I deliberately kept <a href="https://meyerweb.com/eric/comment/chech.html" target="_blank" rel="noreferrer">the worst</a>.</p>
<p>The rant has been written before having discovered <a href="https://github.com/orgs/community/discussions/16925#discussioncomment-2791869" target="_blank" rel="noreferrer">this comment and its answers</a> on the related GitHub community discussion. If you’ve already read what’s there, you won’t learn anything new here. (I am actually glad my observations were all backed by others before I even published them.)</p>
]]></content:encoded>
            <author>hi@mehdi.cc (Mehdi Merah)</author>
        </item>
        <item>
            <title><![CDATA[Downloading Xcode Simulators on macOS Sonoma when the bandwidth is slow]]></title>
            <link>https://blog.mehdi.cc/articles/macos-sonoma-download-xcode-simulators-slow-bandwidth</link>
            <guid isPermaLink="false">https://blog.mehdi.cc/articles/macos-sonoma-download-xcode-simulators-slow-bandwidth</guid>
            <pubDate>Sat, 18 Nov 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[It shouldn’t be a pain in the ass, but it is.]]></description>
            <content:encoded><![CDATA[<div class="info custom-block"><p class="custom-block-title">Article updated on <datetime date="2025-02-07" formatter="longdate"/></p>
<p><a href="./../articles/macos-sonoma-download-xcode-simulators-slow-bandwidth.html#updates-to-this-article">Read all about the changes</a>.</p>
</div>
<p>Since <a href="https://www.apple.com/macos/sonoma/" target="_blank" rel="noreferrer">macOS Sonoma</a> (macOS 14), <a href="https://developer.apple.com/xcode/" target="_blank" rel="noreferrer">Xcode</a> doesn’t include any iOS Simulator anymore, so it’s now 50% lighter to download (3.2 GB instead of 7 GB), which is nice… except that downloading the Simulator separately sucks <del datetime="2025-06-07">if your bandwidth is slow</del> <ins datetime="2025-06-07">and will peak below 5 MB/s no matter your bandwidth</ins>.</p>
]]></content:encoded>
            <author>hi@mehdi.cc (Mehdi Merah)</author>
        </item>
        <item>
            <title><![CDATA[Recover a lost Git stash in two steps]]></title>
            <link>https://blog.mehdi.cc/articles/recover-a-lost-git-stash</link>
            <guid isPermaLink="false">https://blog.mehdi.cc/articles/recover-a-lost-git-stash</guid>
            <pubDate>Wed, 15 Nov 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[A technique to retrieve lost stashes from the limbos.]]></description>
            <content:encoded><![CDATA[<p>Losing in-progress work is one of the fastest ways to feel helpless in front of a computer. This article about recovering lost <a href="https://css-irl.info/how-git-stash-can-help-you-juggle-multiple-branches" target="_blank" rel="noreferrer">git stashes</a> was <a href="https://dev.to/meduzen/recover-a-lost-git-stash-in-two-steps-569" target="_blank" rel="noreferrer">initially published</a> 5 years ago on <em>Dev.to</em> and has a steady 10000 views per year, so I guess it happens to a lot of persons.</p>
]]></content:encoded>
            <author>hi@mehdi.cc (Mehdi Merah)</author>
        </item>
        <item>
            <title><![CDATA[Using Vitepress `cleanUrls` option on a Nginx server]]></title>
            <link>https://blog.mehdi.cc/articles/vitepress-cleanurls-on-nginx-environment</link>
            <guid isPermaLink="false">https://blog.mehdi.cc/articles/vitepress-cleanurls-on-nginx-environment</guid>
            <pubDate>Fri, 10 Nov 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[We share, receive and see URLs all the time, so it’s nice to have human-readable URLs. Here’s my Nginx configuration for this in Vitepress.]]></description>
            <content:encoded><![CDATA[<p>We share, receive and see URLs all the time, so it’s nice to have <a href="https://en.wikipedia.org/wiki/Clean_URL" target="_blank" rel="noreferrer">human-readable URLs</a> like <code>example.tld/yeah</code> instead of <code>example.tld/yeah.html</code>.</p>
<p>On this blog using <a href="https://vitepress.dev" target="_blank" rel="noreferrer">Vitepress</a> on a <a href="https://nginx.org/" target="_blank" rel="noreferrer">Nginx</a> environment, it works rather well (with a minor trade-off).</p>
]]></content:encoded>
            <author>hi@mehdi.cc (Mehdi Merah)</author>
        </item>
    </channel>
</rss>