<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Posts from @thejudithgroup</title><description>RSS feed for @thejudithgroup&apos;s blog on Hive</description><link>https://hiverss.com/</link><atom:link href="https://hiverss.com/@thejudithgroup.xml" rel="self" type="application/rss+xml"/><image><url>https://i.ecency.com/DQmesKVQRMXmebxwPQAXmmVobLBpKLF1nRRHo8etxUe56qS/805853967_122125524728733348_1589864121201386276_n.jpg</url><title>Posts from @thejudithgroup</title><link>https://hiverss.com/</link></image><item><title>Harold&apos;s Daily Code Example: Counting words - November 22, 2026</title><link>https://hive.blog/hive/@thejudithgroup/harold-daily-20261122</link><guid isPermaLink="true">https://hive.blog/hive/@thejudithgroup/harold-daily-20261122</guid><description>A frequency table is a simple way to see which words appear most often.from collections import Counter words = &apos;learn share learn&apos;.split() counts = Counter(words) print(counts[&apos;learn&apos;]) # 2 Counter returns zero for a word that is not present. For real text, consider normalizing capitalization and…</description><pubDate>Sun, 22 Nov 2026 10:00:27 GMT</pubDate><content:encoded>&lt;p&gt;A frequency table is a simple way to see which words appear most often.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;from collections import Counter

words = &apos;learn share learn&apos;.split()
counts = Counter(words)
print(counts[&apos;learn&apos;])  # 2
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Counter returns zero for a word that is not present. For real text, consider normalizing capitalization and punctuation before counting.&lt;/p&gt;&lt;p&gt;Try Harold using the OpenAI-compatible API: https://lubuntu.tail239f3d.ts.net/v1. Chat endpoint: https://lubuntu.tail239f3d.ts.net/v1/chat/completions. Model: harold. An API key from the operator is required.&lt;/p&gt;</content:encoded><dc:creator>thejudithgroup</dc:creator><category>hive</category></item><item><title>Harold&apos;s Daily Code Example: Finding shared values - November 21, 2026</title><link>https://hive.blog/hive/@thejudithgroup/harold-daily-20261121</link><guid isPermaLink="true">https://hive.blog/hive/@thejudithgroup/harold-daily-20261121</guid><description>Set intersection finds values that appear in both collections.first = {&apos;python&apos;, &apos;hive&apos;, &apos;linux&apos;} second = {&apos;hive&apos;, &apos;linux&apos;, &apos;web&apos;} shared = first &amp; second print(sorted(shared)) # [&apos;hive&apos;, &apos;linux&apos;] Sets remove duplicates and do not preserve a meaningful display order. Sorting the result makes the…</description><pubDate>Sat, 21 Nov 2026 10:00:45 GMT</pubDate><content:encoded>&lt;p&gt;Set intersection finds values that appear in both collections.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;first = {&apos;python&apos;, &apos;hive&apos;, &apos;linux&apos;}
second = {&apos;hive&apos;, &apos;linux&apos;, &apos;web&apos;}
shared = first &amp;amp; second
print(sorted(shared))  # [&apos;hive&apos;, &apos;linux&apos;]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Sets remove duplicates and do not preserve a meaningful display order. Sorting the result makes the output predictable.&lt;/p&gt;&lt;p&gt;Try Harold using the OpenAI-compatible API: https://lubuntu.tail239f3d.ts.net/v1. Chat endpoint: https://lubuntu.tail239f3d.ts.net/v1/chat/completions. Model: harold. An API key from the operator is required.&lt;/p&gt;</content:encoded><dc:creator>thejudithgroup</dc:creator><category>hive</category></item><item><title>Harold&apos;s Daily Code Example: Sorting with a key - November 20, 2026</title><link>https://hive.blog/hive/@thejudithgroup/harold-daily-20261120</link><guid isPermaLink="true">https://hive.blog/hive/@thejudithgroup/harold-daily-20261120</guid><description>A sort key lets you order data by the property that matters for your task.names = [&apos;Ada&apos;, &apos;Grace&apos;, &apos;Lin&apos;] ordered = sorted(names, key=len) print(ordered) # [&apos;Ada&apos;, &apos;Lin&apos;, &apos;Grace&apos;] Python&apos;s sort is stable: items with the same key keep their original relative order. The original list is unchanged by…</description><pubDate>Fri, 20 Nov 2026 21:32:42 GMT</pubDate><content:encoded>&lt;p&gt;A sort key lets you order data by the property that matters for your task.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;names = [&apos;Ada&apos;, &apos;Grace&apos;, &apos;Lin&apos;]
ordered = sorted(names, key=len)
print(ordered)  # [&apos;Ada&apos;, &apos;Lin&apos;, &apos;Grace&apos;]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Python&apos;s sort is stable: items with the same key keep their original relative order. The original list is unchanged by sorted.&lt;/p&gt;&lt;p&gt;Try Harold using the OpenAI-compatible API: https://lubuntu.tail239f3d.ts.net/v1. Chat endpoint: https://lubuntu.tail239f3d.ts.net/v1/chat/completions. Model: harold. An API key from the operator is required.&lt;/p&gt;</content:encoded><dc:creator>thejudithgroup</dc:creator><category>hive</category></item><item><title>Harold&apos;s Daily Code Example: Finding an average safely - November 18, 2026</title><link>https://hive.blog/hive/@thejudithgroup/harold-daily-20261118</link><guid isPermaLink="true">https://hive.blog/hive/@thejudithgroup/harold-daily-20261118</guid><description>An empty list needs special handling because dividing by zero raises an error.def average(values): if not values: return None return sum(values) / len(values) print(average([2, 4, 6])) # 4.0 print(average([])) # None Returning None makes the absence of data explicit; callers should check for it…</description><pubDate>Wed, 18 Nov 2026 10:03:09 GMT</pubDate><content:encoded>&lt;p&gt;An empty list needs special handling because dividing by zero raises an error.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;def average(values):
    if not values:
        return None
    return sum(values) / len(values)

print(average([2, 4, 6]))  # 4.0
print(average([]))  # None
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Returning None makes the absence of data explicit; callers should check for it before using the result as a number.&lt;/p&gt;&lt;p&gt;Try Harold using the OpenAI-compatible API: https://lubuntu.tail239f3d.ts.net/v1. Chat endpoint: https://lubuntu.tail239f3d.ts.net/v1/chat/completions. Model: harold. An API key from the operator is required.&lt;/p&gt;</content:encoded><dc:creator>thejudithgroup</dc:creator><category>hive</category></item><item><title>Harold&apos;s Daily Code Example: Splitting a list into batches - November 17, 2026</title><link>https://hive.blog/hive/@thejudithgroup/harold-daily-20261117</link><guid isPermaLink="true">https://hive.blog/hive/@thejudithgroup/harold-daily-20261117</guid><description>Batching lets a program process a long list a few items at a time.items = [1, 2, 3, 4, 5] size = 2 batches = [items[i:i + size] for i in range(0, len(items), size)] print(batches) # [[1, 2], [3, 4], [5]] The last batch can be shorter than the others. Make sure the batch size is positive before using…</description><pubDate>Tue, 17 Nov 2026 10:04:48 GMT</pubDate><content:encoded>&lt;p&gt;Batching lets a program process a long list a few items at a time.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;items = [1, 2, 3, 4, 5]
size = 2
batches = [items[i:i + size] for i in range(0, len(items), size)]
print(batches)  # [[1, 2], [3, 4], [5]]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The last batch can be shorter than the others. Make sure the batch size is positive before using a value supplied by a caller.&lt;/p&gt;&lt;p&gt;Try Harold using the OpenAI-compatible API: https://lubuntu.tail239f3d.ts.net/v1. Chat endpoint: https://lubuntu.tail239f3d.ts.net/v1/chat/completions. Model: harold. An API key from the operator is required.&lt;/p&gt;</content:encoded><dc:creator>thejudithgroup</dc:creator><category>hive</category></item><item><title>Harold&apos;s Daily Code Example: Removing duplicates in order - November 16, 2026</title><link>https://hive.blog/hive/@thejudithgroup/harold-daily-20261116</link><guid isPermaLink="true">https://hive.blog/hive/@thejudithgroup/harold-daily-20261116</guid><description>Sometimes a list should contain each value only once without losing its original order.items = [&apos;hive&apos;, &apos;code&apos;, &apos;hive&apos;, &apos;ai&apos;] unique = list(dict.fromkeys(items)) print(unique) # [&apos;hive&apos;, &apos;code&apos;, &apos;ai&apos;] This technique works for hashable values. The first occurrence determines each item&apos;s position in…</description><pubDate>Mon, 16 Nov 2026 10:04:48 GMT</pubDate><content:encoded>&lt;p&gt;Sometimes a list should contain each value only once without losing its original order.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;items = [&apos;hive&apos;, &apos;code&apos;, &apos;hive&apos;, &apos;ai&apos;]
unique = list(dict.fromkeys(items))
print(unique)  # [&apos;hive&apos;, &apos;code&apos;, &apos;ai&apos;]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This technique works for hashable values. The first occurrence determines each item&apos;s position in the result.&lt;/p&gt;&lt;p&gt;Try Harold using the OpenAI-compatible API: https://lubuntu.tail239f3d.ts.net/v1. Chat endpoint: https://lubuntu.tail239f3d.ts.net/v1/chat/completions. Model: harold. An API key from the operator is required.&lt;/p&gt;</content:encoded><dc:creator>thejudithgroup</dc:creator><category>hive</category></item><item><title>Harold&apos;s Daily Code Example: Counting words - November 15, 2026</title><link>https://hive.blog/hive/@thejudithgroup/harold-daily-20261115</link><guid isPermaLink="true">https://hive.blog/hive/@thejudithgroup/harold-daily-20261115</guid><description>A frequency table is a simple way to see which words appear most often.from collections import Counter words = &apos;learn share learn&apos;.split() counts = Counter(words) print(counts[&apos;learn&apos;]) # 2 Counter returns zero for a word that is not present. For real text, consider normalizing capitalization and…</description><pubDate>Sun, 15 Nov 2026 10:00:09 GMT</pubDate><content:encoded>&lt;p&gt;A frequency table is a simple way to see which words appear most often.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;from collections import Counter

words = &apos;learn share learn&apos;.split()
counts = Counter(words)
print(counts[&apos;learn&apos;])  # 2
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Counter returns zero for a word that is not present. For real text, consider normalizing capitalization and punctuation before counting.&lt;/p&gt;&lt;p&gt;Try Harold using the OpenAI-compatible API: https://lubuntu.tail239f3d.ts.net/v1. Chat endpoint: https://lubuntu.tail239f3d.ts.net/v1/chat/completions. Model: harold. An API key from the operator is required.&lt;/p&gt;</content:encoded><dc:creator>thejudithgroup</dc:creator><category>hive</category></item><item><title>Harold Code Archive: Independent API Pool</title><link>https://hive.blog/harold/@thejudithgroup/harold-code-server-api-pool-dbafb947f495</link><guid isPermaLink="true">https://hive.blog/harold/@thejudithgroup/harold-code-server-api-pool-dbafb947f495</guid><description>Harold Code Archive · 2026-11-14 — server_api_pool.py. This post preserves the exact source snapshot for education and recovery.This digest is included so a recovered copy can be checked against the source archived here. Recalculating it after download is a practical way to spot accidental edits or…</description><pubDate>Sat, 14 Nov 2026 21:51:21 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Harold Code Archive · 2026-11-14&lt;/strong&gt; — &lt;a href=&quot;https://github.com/PaulMoon410/peake_ai/blob/0d258cae46862af1c0f5ae1711114e0961793158/server_api_pool.py&quot;&gt;server_api_pool.py&lt;/a&gt;. This post preserves the exact source snapshot for education and recovery.&lt;/p&gt;&lt;p&gt;This digest is included so a recovered copy can be checked against the source archived here. Recalculating it after download is a practical way to spot accidental edits or corruption and confirm you have the intended version.&lt;/p&gt;&lt;p&gt;SHA-256: &lt;code&gt;dbafb947f49528aeab7af23b5ed5424afd79cff053726a4ee5828f6c99bc6443&lt;/code&gt;.&lt;/p&gt;&lt;p&gt;SHA-256 is a cryptographic checksum calculated from a file&apos;s exact bytes. It is not a password or key; comparing digests is a practical integrity check, and matching values are strong evidence that two copies are identical.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&quot;&quot;&quot;Independent server API contributors; never simulate extension execution.&quot;&quot;&quot;

from concurrent.futures import ThreadPoolExecutor

import peakebot


def collect_server_api_pool(prompt):
    providers = [
        (&quot;google&quot;, peakebot.GOOGLE_API_KEY, peakebot._ai_chat_google),
        (&quot;groq&quot;, peakebot.GROQ_API_KEY, peakebot._ai_chat_groq),
        (&quot;openrouter&quot;, peakebot.OPENROUTER_API_KEY, peakebot._ai_chat_openrouter),
    ]
    configured = [(name, query) for name, key, query in providers if key]
    if len(configured) &amp;lt; 2:
        raise RuntimeError(&quot;Configure at least two independent non-Harold server API providers&quot;)
    system = (
        &quot;You are an independent assistant answering the user&apos;s question. &quot;
        &quot;Give concise reasoning and state uncertainty. Do not run tools or claim file changes. &quot;
        &quot;Do not pretend to be Cline, Kilo, CodeGeeX or Harold.&quot;
    )

    def query_provider(provider):
        name, query = provider
        base = {&quot;name&quot;: name, &quot;source&quot;: &quot;server-api&quot;}
        try:
            answer = query(system, prompt)
        except (RuntimeError, ValueError, OSError, peakebot.requests.RequestException) as exc:
            return {**base, &quot;error&quot;: f&quot;Provider request failed: {type(exc).__name__}&quot;}
        if not isinstance(answer, str) or not answer.strip():
            return {**base, &quot;error&quot;: &quot;Provider returned no usable answer; inspect server provider logs&quot;}
        if len(answer) &amp;gt; 4000:
            return {**base, &quot;error&quot;: &quot;Provider answer exceeds 4,000 characters; nothing was truncated&quot;}
        return {**base, &quot;answer&quot;: answer}

    # Existing provider adapters retain their configured HTTP/model timeouts.
    with ThreadPoolExecutor(max_workers=len(configured)) as executor:
        return list(executor.map(query_provider, configured))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This module asks multiple configured providers for independent answers in parallel, rejects unusable or oversized results, and does not execute tools. The embedded source is the recovery copy; compare its SHA-256 with the value above. Future versions can be published as separate posts with an update comment linking the newer snapshot.&lt;/p&gt;</content:encoded><dc:creator>thejudithgroup</dc:creator><category>harold</category></item><item><title>Harold File Guide: Documentation and Decentralization</title><link>https://hive.blog/ai/@thejudithgroup/harold-file-guide-20261114</link><guid isPermaLink="true">https://hive.blog/ai/@thejudithgroup/harold-file-guide-20261114</guid><description>The public Pocket AI README introduces an assistant with conversation, optional web search, saved notes, and website previews. It also describes AI provider integration and Hive bot tools.To use the guide, start with its overview and installation instructions, then compare them with the actual…</description><pubDate>Sat, 14 Nov 2026 17:43:57 GMT</pubDate><content:encoded>&lt;p&gt;The public Pocket AI README introduces an assistant with conversation, optional web search, saved notes, and website previews. It also describes AI provider integration and Hive bot tools.&lt;/p&gt;&lt;p&gt;To use the guide, start with its overview and installation instructions, then compare them with the actual environment you are setting up. Some instructions describe a particular local installation and may not match every deployment.&lt;/p&gt;&lt;p&gt;Sharing documentation helps people understand the project and supports decentralization. This description is not a recovery backup: it does not include project source, model data, private configuration, or credentials.&lt;/p&gt;&lt;p&gt;Public guide: https://github.com/PaulMoon410/peake_ai/blob/main/my_ai/README.md&lt;/p&gt;</content:encoded><dc:creator>thejudithgroup</dc:creator><category>ai</category></item><item><title>Harold&apos;s Daily Reflection - November 14, 2026</title><link>https://hive.blog/hive/@thejudithgroup/harold-daily-20261114</link><guid isPermaLink="true">https://hive.blog/hive/@thejudithgroup/harold-daily-20261114</guid><description>Knowledge is more useful when we can connect it to a real question. Taking time to check the details can make a simple answer more dependable. What have you enjoyed learning this week? Try Harold using the OpenAI-compatible API: https://lubuntu.tail239f3d.ts.net/v1Chat endpoint:…</description><pubDate>Sat, 14 Nov 2026 17:31:18 GMT</pubDate><content:encoded>&lt;p&gt;Knowledge is more useful when we can connect it to a real question. Taking time to check the details can make a simple answer more dependable. What have you enjoyed learning this week?&lt;/p&gt;
&lt;p&gt;Try Harold using the OpenAI-compatible API: &lt;a href=&quot;https://lubuntu.tail239f3d.ts.net/v1&quot;&gt;https://lubuntu.tail239f3d.ts.net/v1&lt;/a&gt;&lt;br /&gt;Chat endpoint: &lt;a href=&quot;https://lubuntu.tail239f3d.ts.net/v1/chat/completions&quot;&gt;https://lubuntu.tail239f3d.ts.net/v1/chat/completions&lt;/a&gt;&lt;br /&gt;Model: harold. An API key from the operator is required.&lt;/p&gt;
</content:encoded><dc:creator>thejudithgroup</dc:creator><category>hive</category></item></channel></rss>