<?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: Trevor Davis</title>
    <description>The latest articles on DEV Community by Trevor Davis (@threesevenths).</description>
    <link>https://dev.to/threesevenths</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F283289%2F57d4c11e-99a4-4734-9320-aa4c1c2ad8a0.jpeg</url>
      <title>DEV Community: Trevor Davis</title>
      <link>https://dev.to/threesevenths</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/threesevenths"/>
    <language>en</language>
    <item>
      <title>What actors appeared in both Jupiter Ascending and Game of Thrones?</title>
      <dc:creator>Trevor Davis</dc:creator>
      <pubDate>Fri, 28 Feb 2025 14:12:13 +0000</pubDate>
      <link>https://dev.to/threesevenths/what-actors-appeared-in-both-jupiter-ascending-and-game-of-thrones-4ldm</link>
      <guid>https://dev.to/threesevenths/what-actors-appeared-in-both-jupiter-ascending-and-game-of-thrones-4ldm</guid>
      <description>&lt;p&gt;There I was lying in bed last night trying to form a connecting between the Seals and Signets Minister in Jupiter Ascending and Grand Maester Pycell in Game of Thrones. My tired brain thought they might be the same actor who portrayed both characters. They are not. Terry Gilliam is the former, Julian Glover the latter. &lt;/p&gt;

&lt;p&gt;I decided to look this information up this morning. I could have gone to IMDB or Wikipedia to read about the film and show and their respective casts. This is 2025, so I gave AI a shot at it first.&lt;/p&gt;

&lt;p&gt;First up, chat.com from OpenAI.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnbx1ujmhz4v2xt8jejvn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnbx1ujmhz4v2xt8jejvn.png" alt="A screenshot of OpenAIs chat.com user interface posing the question What actors appeared in both Jupiter Ascending and Game of Thrones" width="800" height="805"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not a great start. Chat decides Edward Hogg was in the movie and the show. Edward is indeed credited in Jupiter Ascending. He was not credited in Game of Thrones. Moreover, the specificity of the answer leads me to believe this is an indication that a hallucination took place. The final sentence also contradicts itself sating there are no overlaps, but Edward Hogg is a notable connection. &lt;/p&gt;

&lt;p&gt;Next up, perplexity.com. I had high hopes for the answer from perplexity.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffl9pf3lbuxz3fiwdl3sm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffl9pf3lbuxz3fiwdl3sm.png" alt="A screenshot of perplexity.com user interface posing the question What actors appeared in both Jupiter Ascending and Game of Thrones" width="800" height="805"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I want to love these new search engine services like perplexity. This kind of a response gives me pause. The first line, "There are no actors who appeared in both Jupiter Ascending and Game of Thrones" is already incorrect. Worse still, In the second paragraph, perplexity gets the correct answer, Sean Bean, though does not in fact make the connection. The paragraph ends with "However, he is not a common actor between the two series." The prose ends with "Therefore, there are no actors who have appeared in both Jupiter Ascending and Game of Thrones." Quickly scanning these results as an information worker might do during research would lead you to the wrong conclusion. Disappointing. &lt;/p&gt;

&lt;p&gt;Finally, I tried some local AI. I used Ollama v0.5.7 and llama3.3-latest from the model repository.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxj5k86x8bow319q7agts.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxj5k86x8bow319q7agts.png" alt="A screenshot of a terminal program executing a query to the llama model using the ollama command line program" width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Llama is the first model to get the correct answer of Sean Bean, including the characters he played in the movie and the show. It should have stopped here.&lt;/p&gt;

&lt;p&gt;Llama also hallucinated. It first gave Gugu Mbatha-Raw as a second answer. Gugu Mbatha-Raw is in Jupiter Ascending, but not Game of Thrones. Interestingly, throw the course of answering, Llama realizes this, and hallucinates another connection, David Ajala, who is also in Jupiter Ascending but not Game of Thrones. &lt;/p&gt;

&lt;p&gt;Generated text from large language models have their uses. For reference information, I am going to stick with curated sources for reliable information for the time being. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Cover art generated using Adobe® Firefly&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
    </item>
    <item>
      <title>Ollama Environment Variables</title>
      <dc:creator>Trevor Davis</dc:creator>
      <pubDate>Wed, 29 Jan 2025 13:18:28 +0000</pubDate>
      <link>https://dev.to/threesevenths/ollama-environment-variables-362j</link>
      <guid>https://dev.to/threesevenths/ollama-environment-variables-362j</guid>
      <description>&lt;p&gt;If you're writing an integration with Ollama or want to influence its function on your device, there are several environment variables you can set to configure how Ollama operates.  &lt;/p&gt;

&lt;p&gt;Source (2025-01-29): &lt;a href="https://github.com/ollama/ollama/blob/main/envconfig/config.go" rel="noopener noreferrer"&gt;https://github.com/ollama/ollama/blob/main/envconfig/config.go&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OLLAMA_HOST&lt;/strong&gt;- defaults to &lt;a href="http://127.0.0.1:11434" rel="noopener noreferrer"&gt;http://127.0.0.1:11434&lt;/a&gt;. Can be http/https. Host returns the scheme and host. Host can be configured via the OLLAMA_HOST environment variable.&lt;br&gt;
&lt;strong&gt;OLLAMA_ORIGINS&lt;/strong&gt;- comma separated values. Always appends http(s)://localhost, 127.0.0.1, 0.0.0.0, app://&lt;em&gt;, file://&lt;/em&gt;, tauri://&lt;em&gt;, vscode-webview://&lt;/em&gt;. Origins returns a list of allowed origins. Origins can be configured via the OLLAMA_ORIGINS environment variable.&lt;br&gt;
&lt;strong&gt;OLLAMA_MODELS&lt;/strong&gt;- Models returns the path to the models directory. Models directory can be configured via the OLLAMA_MODELS environment variable. Default is $HOME/.ollama/models&lt;br&gt;
&lt;strong&gt;OLLAMA_KEEP_ALIVE&lt;/strong&gt;- KeepAlive returns the duration that models stay loaded in memory. KeepAlive can be configured via the OLLAMA_KEEP_ALIVE environment variable. Negative values are treated as infinite. Zero is treated as no keep alive. Default is 5 minutes.&lt;br&gt;
&lt;strong&gt;OLLAMA_LOAD_TIMEOUT&lt;/strong&gt;- LoadTimeout returns the duration for stall detection during model loads. LoadTimeout can be configured via the OLLAMA_LOAD_TIMEOUT environment variable. Zero or Negative values are treated as infinite. Default is 5 minutes.&lt;/p&gt;

&lt;p&gt;Boolean flags. It accepts 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False. Any other value returns an error. (&lt;a href="https://pkg.go.dev/strconv#ParseBool" rel="noopener noreferrer"&gt;https://pkg.go.dev/strconv#ParseBool&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OLLAMA_DEBUG&lt;/strong&gt; - Debug enabled additional debug information.&lt;br&gt;
&lt;strong&gt;OLLAMA_FLASH_ATTENTION&lt;/strong&gt; - FlashAttention enables the experimental flash attention feature.&lt;br&gt;
&lt;strong&gt;OLLAMA_KV_CACHE_TYPE&lt;/strong&gt; - KvCacheType is the quantization type for the K/V cache.&lt;br&gt;
&lt;strong&gt;OLLAMA_NOHISTORY&lt;/strong&gt; - NoHistory disables readline history.&lt;br&gt;
&lt;strong&gt;OLLAMA_NOPRUNE&lt;/strong&gt; - NoPrune disables pruning of model blobs on startup.&lt;br&gt;
&lt;strong&gt;OLLAMA_SCHED_SPREAD&lt;/strong&gt; - SchedSpread allows scheduling models across all GPUs.&lt;br&gt;
&lt;strong&gt;OLLAMA_INTEL_GPU&lt;/strong&gt; - IntelGPU enables experimental Intel GPU detection.&lt;br&gt;
&lt;strong&gt;OLLAMA_MULTIUSER_CACHE&lt;/strong&gt; - MultiUserCache optimizes prompt caching for multi-user scenarios&lt;/p&gt;

&lt;p&gt;Library Settings&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OLLAMA_LLM_LIBRARY&lt;/strong&gt; - Set LLM library to bypass autodetection&lt;br&gt;
&lt;strong&gt;CUDA_VISIBLE_DEVICES&lt;/strong&gt; - Set which NVIDIA devices are visible&lt;br&gt;
&lt;strong&gt;HIP_VISIBLE_DEVICES&lt;/strong&gt; - Set which AMD devices are visible by numeric ID&lt;br&gt;
&lt;strong&gt;ROCR_VISIBLE_DEVICES&lt;/strong&gt; - Set which AMD devices are visible by UUID or numeric ID&lt;br&gt;
&lt;strong&gt;GPU_DEVICE_ORDINAL&lt;/strong&gt; - Set which AMD devices are visible by numeric ID&lt;br&gt;
&lt;strong&gt;HSA_OVERRIDE_GFX_VERSION&lt;/strong&gt; - Override the gfx used for all detected AMD GPUs&lt;/p&gt;

&lt;p&gt;Performance Settings&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OLLAMA_NUM_PARALLEL&lt;/strong&gt; - Maximum number of parallel requests. Defaults to unlimited&lt;br&gt;
&lt;strong&gt;OLLAMA_MAX_LOADED_MODELS&lt;/strong&gt; - Maximum number of loaded models per GPU. Defaults to unlimited.&lt;br&gt;
&lt;strong&gt;OLLAMA_MAX_QUEUE&lt;/strong&gt; - Maximum number of queued requests. Defaults to 512. &lt;br&gt;
&lt;strong&gt;OLLAMA_MAX_VRAM&lt;/strong&gt; - Maximum amount of VRAM that can be consumed per GPU. Default is unlimited&lt;br&gt;
&lt;strong&gt;OLLAMA_GPU_OVERHEAD&lt;/strong&gt; - Set aside VRAM per GPU. Default is 0&lt;/p&gt;

&lt;p&gt;Proxy Settings&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTTP_PROXY&lt;/strong&gt; - HTTP proxy&lt;br&gt;
&lt;strong&gt;HTTPS_PROXY&lt;/strong&gt; - HTTPS proxy&lt;br&gt;
&lt;strong&gt;NO_PROXY&lt;/strong&gt; - No proxy&lt;/p&gt;

</description>
      <category>ollama</category>
      <category>configuration</category>
      <category>tooling</category>
    </item>
    <item>
      <title>netsh int ip reset - for when you don't need to know what the problem was</title>
      <dc:creator>Trevor Davis</dc:creator>
      <pubDate>Sun, 02 Feb 2020 22:55:20 +0000</pubDate>
      <link>https://dev.to/threesevenths/netsh-int-ip-reset-for-when-you-don-t-need-to-know-what-the-problem-was-1bo2</link>
      <guid>https://dev.to/threesevenths/netsh-int-ip-reset-for-when-you-don-t-need-to-know-what-the-problem-was-1bo2</guid>
      <description>&lt;p&gt;There is something to be said for finding the problem and fixing it. And there is also something to be said for hitting it with a hammer until it works/fits.&lt;/p&gt;

&lt;p&gt;I use this command in the latter category. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;netsh&lt;/code&gt; is an amazing command that is a complete toolbox for the Windows networking stack covering most areas of functionality in numbing nuance. It is for this reason that when things go wrong, this is the command that will fix it or tell you what is going on.&lt;/p&gt;

&lt;p&gt;That's all well and good, except you don't always have time and patience for finding the problem, and often, a quick fix is just what you need.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;netsh int ip reset&lt;/code&gt; is a &lt;em&gt;mostly&lt;/em&gt; safe reset of the whole network stack. I use it to fix connection problems with WiFi, DHCP lease problems, and VPN connections that refuse to connect. After a quick reboot, the issues are mostly fixed for me.&lt;/p&gt;

&lt;p&gt;This magical command isn't going to fix any real problems like an unplugged cable for an internet issue; it's good for those times when things should be working and you can't see why. Use it like a hammer.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Hello World</title>
      <dc:creator>Trevor Davis</dc:creator>
      <pubDate>Thu, 23 Jan 2020 22:13:08 +0000</pubDate>
      <link>https://dev.to/threesevenths/hello-world-3g5f</link>
      <guid>https://dev.to/threesevenths/hello-world-3g5f</guid>
      <description>&lt;p&gt;This is my first post.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
