<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: David S</title>
    <description>The latest articles on DEV Community by David S (@dshumw).</description>
    <link>https://dev.to/dshumw</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4009636%2F0b0c5163-def0-4086-888f-f6f2b6ad388a.png</url>
      <title>DEV Community: David S</title>
      <link>https://dev.to/dshumw</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dshumw"/>
    <language>en</language>
    <item>
      <title>Postgres earthdistance</title>
      <dc:creator>David S</dc:creator>
      <pubDate>Fri, 04 Sep 2026 16:45:11 +0000</pubDate>
      <link>https://dev.to/dshumw/postgres-earthdistance-23g0</link>
      <guid>https://dev.to/dshumw/postgres-earthdistance-23g0</guid>
      <description>&lt;p&gt;One PostgreSQL feature I recently revisited is earthdistance, a nice reminder that not every problem involving latitude and longitude requires a full GIS stack.&lt;/p&gt;

&lt;p&gt;The earthdistance extension provides a straightforward way to calculate great-circle distances between locations on Earth. Combined with PostgreSQL’s cube extension, ll_to_earth() converts latitude and longitude into a representation that earth_distance() can use to calculate distance in meters.&lt;/p&gt;

&lt;p&gt;It also provides earth_box(), which is useful for nearby-location searches. An indexed bounding-box search can quickly narrow the candidates, followed by earth_distance() to determine which points actually fall within the desired radius.&lt;/p&gt;

&lt;p&gt;There’s also a simpler approach using PostgreSQL’s built-in point type and the &amp;lt;@&amp;gt; operator, which returns distances in statute miles.&lt;/p&gt;

&lt;p&gt;There are limitations: earthdistance models Earth as a sphere, and it isn’t a replacement for PostGIS when you need complex geometries, coordinate systems, spatial relationships, or serious GIS analysis.&lt;/p&gt;

&lt;p&gt;But that’s exactly why I like it.&lt;/p&gt;

&lt;p&gt;If your application just needs to answer something like “Which locations are within 10 miles of this point?”, PostgreSQL may already have all the geospatial functionality you need.&lt;/p&gt;

</description>
      <category>database</category>
      <category>postgres</category>
      <category>sql</category>
    </item>
    <item>
      <title>One PostgreSQL feature I recently revisited is earthdistance—a nice reminder that not every problem involving latitude and longitude requires a full GIS stack.

The earthdistance extension provides a straightforward way to calculate great-circle distances</title>
      <dc:creator>David S</dc:creator>
      <pubDate>Fri, 04 Sep 2026 16:41:57 +0000</pubDate>
      <link>https://dev.to/dshumw/one-postgresql-feature-i-recently-revisited-is-earthdistance-a-nice-reminder-that-not-every-problem-4m0j</link>
      <guid>https://dev.to/dshumw/one-postgresql-feature-i-recently-revisited-is-earthdistance-a-nice-reminder-that-not-every-problem-4m0j</guid>
      <description></description>
      <category>backend</category>
      <category>database</category>
      <category>sql</category>
    </item>
    <item>
      <title>Postgres</title>
      <dc:creator>David S</dc:creator>
      <pubDate>Tue, 01 Sep 2026 15:19:02 +0000</pubDate>
      <link>https://dev.to/dshumw/postgres-m39</link>
      <guid>https://dev.to/dshumw/postgres-m39</guid>
      <description></description>
    </item>
    <item>
      <title>Cloudflare, This "Verification" Loop is a Lie</title>
      <dc:creator>David S</dc:creator>
      <pubDate>Mon, 03 Aug 2026 13:06:06 +0000</pubDate>
      <link>https://dev.to/dshumw/cloudflare-this-verification-loop-is-a-lie-4nk2</link>
      <guid>https://dev.to/dshumw/cloudflare-this-verification-loop-is-a-lie-4nk2</guid>
      <description>&lt;p&gt;"If the verification still does not complete, refresh this page."&lt;/p&gt;

&lt;p&gt;I did. Four times. Still stuck.&lt;/p&gt;

&lt;p&gt;Your own error page tells me to refresh, but refreshing just resets the infinite spinner. That's not troubleshooting, that's gaslighting.&lt;/p&gt;

&lt;p&gt;For VPN users, this isn't a "slow connection" problem. It's a hard block disguised as a waiting room.&lt;/p&gt;

&lt;p&gt;Cloudflare:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stop telling me to refresh when it doesn't work.&lt;/li&gt;
&lt;li&gt;Give me a CAPTCHA fallback or a real error.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A spinner that never resolves isn't security. It's a wall.&lt;/p&gt;

</description>
      <category>ux</category>
      <category>webdev</category>
      <category>vpn</category>
    </item>
  </channel>
</rss>
