<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on sorenmat.dev</title>

    

    <link>https://sorenmat.dev/posts/</link>
    <description>Recent content in Posts on sorenmat.dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Tue, 24 Nov 2026 11:10:00 +0100</lastBuildDate>
    
	<atom:link href="https://sorenmat.dev/posts/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Prompt Injection Is an Inside Job: How AI Agents Move Attacks Inside</title>
      <link>https://sorenmat.dev/posts/2026-11-24-prompt-injection-inside-job/</link>
      <pubDate>Tue, 24 Nov 2026 11:10:00 +0100</pubDate>
      
      <guid>https://sorenmat.dev/posts/2026-11-24-prompt-injection-inside-job/</guid>
      <description>
        
          
          
          
        

        
          AI agents let outside attackers act through trusted internal tools and credentials. The security boundary moves from the network perimeter to the agent&#39;s tools and permissions.
          
        
        </description>
    </item>
    
    <item>
      <title>The Time We Got Back: What AI Coding Means for How We Spend Our Days</title>
      <link>https://sorenmat.dev/posts/2026-08-18-the-time-we-got-back/</link>
      <pubDate>Tue, 18 Aug 2026 18:47:00 +0200</pubDate>
      
      <guid>https://sorenmat.dev/posts/2026-08-18-the-time-we-got-back/</guid>
      <description>
        
          
          
          
        

        
          If the LLM handles the writing of the code, our day job should shift toward understanding the product and the domain we are building for.
          
        
        </description>
    </item>
    
    <item>
      <title>How I Structure My Coding Agents: Separating Subagents from Skills</title>
      <link>https://sorenmat.dev/posts/2026-05-21-agent-setup/</link>
      <pubDate>Thu, 21 May 2026 13:15:00 +0200</pubDate>
      
      <guid>https://sorenmat.dev/posts/2026-05-21-agent-setup/</guid>
      <description>
        
          
          
          
        

        
          A look under the hood of a cross-platform AI agent setup that separates isolated subagents from reusable procedural skills.
          
        
        </description>
    </item>
    
    <item>
      <title>Kimi K2.5 vs Claude 4.6 in OpenCode: Why &#39;Smarter&#39; Doesn&#39;t Win</title>
      <link>https://sorenmat.dev/posts/2026-03-26/</link>
      <pubDate>Thu, 26 Mar 2026 08:48:00 +0100</pubDate>
      
      <guid>https://sorenmat.dev/posts/2026-03-26/</guid>
      <description>
        
          
          
          
        

        
          A practical comparison of Kimi K2.5 and Claude 4.6 code plans. Why rate limits and availability matter more than benchmark scores.
          
        
        </description>
    </item>
    
    <item>
      <title>Battle of the Bots: To-Do App LLM Reviews &amp; Comparison</title>
      <link>https://sorenmat.dev/posts/2025-04-25-evaluation_of_llm/</link>
      <pubDate>Fri, 25 Apr 2025 12:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/2025-04-25-evaluation_of_llm/</guid>
      <description>
        
          
          
          
        

        
          We put seven leading LLMs to the test on a standard To-Do app coding challenge. See their scores, strengths, and weaknesses side by side!
          
        
        </description>
    </item>
    
    <item>
      <title>Asus Vivobook Pro 14x</title>
      <link>https://sorenmat.dev/posts/2022-05-31-asusvivobook/</link>
      <pubDate>Tue, 31 May 2022 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/2022-05-31-asusvivobook/</guid>
      <description>
        
          
          
          
        

        
          Setting up my new laptop
          
        
        </description>
    </item>
    
    <item>
      <title>My Essential Software</title>
      <link>https://sorenmat.dev/posts/essential-software2021/</link>
      <pubDate>Fri, 17 Dec 2021 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/essential-software2021/</guid>
      <description>
        
          
          
          
        

        
          Just a list of my essential software
          
        
        </description>
    </item>
    
    <item>
      <title>Starting at Tradeshift</title>
      <link>https://sorenmat.dev/posts/2014-09-03-starting-at-tradeshift/</link>
      <pubDate>Wed, 03 Sep 2014 09:17:12 +0200</pubDate>
      
      <guid>https://sorenmat.dev/posts/2014-09-03-starting-at-tradeshift/</guid>
      <description>
        
          
          
          
        

        
          &lt;p&gt;After almost 8 years at Schantz, i thought it was time for something new. So after a couple of nice talks with the Tradeshift CTO Gert Sylvest, I&amp;rsquo;ve decided to join Tradeshift.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m starting this week at a new company with a new domain, so i guess i&amp;rsquo;ll be very busy. My guess is that most of the week will be spent on setting up the computer, and learn the new organisation and domain.&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title>Using Snap CI with Golang</title>
      <link>https://sorenmat.dev/posts/2014-07-17-golang-snapci/</link>
      <pubDate>Thu, 17 Jul 2014 09:17:12 +0200</pubDate>
      
      <guid>https://sorenmat.dev/posts/2014-07-17-golang-snapci/</guid>
      <description>
        
          
          
          
        

        
          &lt;p&gt;I&amp;rsquo;m finding myself writing more and more code in go, so i thought it were about time i got some CI up and running.
Pretty much when that idea popped into my head, i got a mail from snap-ci. So i thought i would give it a go.&lt;/p&gt;
&lt;p&gt;Snap is a product developed by ThoughtWorks, and it seems like a nice take on the whole CI thing.&lt;/p&gt;
&lt;p&gt;But it seems that golang isn&amp;rsquo;t supported out of the box, however we can hack it a little bit to make it work :)&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title>Java upgrade</title>
      <link>https://sorenmat.dev/posts/2013-09-3-please-upgrade-java/</link>
      <pubDate>Tue, 03 Sep 2013 09:17:12 +0200</pubDate>
      
      <guid>https://sorenmat.dev/posts/2013-09-3-please-upgrade-java/</guid>
      <description>
        
          
          
          
        

        
          &lt;h1 id=&#34;why-should-i-run-the-latest-java-version&#34;&gt;Why should i run the latest java version&lt;/h1&gt;
&lt;p&gt;In Scala community there have been talks about what java version the next scalac should target. That got me thinking, why should we run the latest version of java, and by latest i mean the latest major version.&lt;/p&gt;
&lt;p&gt;It turned out it was easier to argument why you shouldn&amp;rsquo;t run an old version, so here goes !&lt;/p&gt;
&lt;h2 id=&#34;security&#34;&gt;Security&lt;/h2&gt;
&lt;p&gt;Nobody wants to be on the cover of some newspaper because your application has been compromised. That&amp;rsquo;s why Oracle is using some many resource to keep java bug free. They actually are using so many resource to fix bugs, that the next java version has been pushed, due to lack of resources internally at Oracle.&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title>Setting modules dir as  default</title>
      <link>https://sorenmat.dev/posts/2014-09-02-modules-dir-intellij/</link>
      <pubDate>Mon, 02 Sep 2013 09:17:12 +0200</pubDate>
      
      <guid>https://sorenmat.dev/posts/2014-09-02-modules-dir-intellij/</guid>
      <description>
        
          
          
          
        

        
          &lt;p&gt;When running code from IntelliJ i often run into the issue, that my project file is not located in the same directory  as the code. This will mess up code that are looking for locale files since the don&amp;rsquo;t exists in the project directory.&lt;/p&gt;
&lt;p&gt;The solution is quite simple and easy, but for some reason it has taken me for ever to find it.&lt;/p&gt;
&lt;p&gt;You have to go the edit run / debug configuration, and go under the defaults. Find e.i. JUnit, and enter $MODULE_DIR$ in the working directory field. This will use the module directory as the default value when creating new JUnit run / debug configuration.&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title>Repository pattern</title>
      <link>https://sorenmat.dev/posts/2013-08-28-repository-pattern/</link>
      <pubDate>Wed, 28 Aug 2013 09:17:12 +0200</pubDate>
      
      <guid>https://sorenmat.dev/posts/2013-08-28-repository-pattern/</guid>
      <description>
        
          
          
          
        

        
          &lt;h1 id=&#34;repository-pattern&#34;&gt;Repository pattern&lt;/h1&gt;
&lt;p&gt;The basic idea of the repository pattern is to seperate buisness logic and persistence logic through a list like sematic.&lt;/p&gt;
&lt;p&gt;The great thing about this, as asposded to the way orm&amp;rsquo;s does things is that you force the developer to think about when and how do i access data.You just can&amp;rsquo;t navigate around in the model, and expect some framework to handle it magiccally for you.&lt;/p&gt;
&lt;p&gt;The idea of a repository teams up well with aggregates. Imagine the repository as an interface of List[Aggregate], where you can add, remove, delete etc. from.&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title>Logging</title>
      <link>https://sorenmat.dev/posts/2013-08-15-logging/</link>
      <pubDate>Thu, 15 Aug 2013 09:17:12 +0200</pubDate>
      
      <guid>https://sorenmat.dev/posts/2013-08-15-logging/</guid>
      <description>
        
          
          
          
        

        
          &lt;p&gt;#Logging&lt;/p&gt;
&lt;p&gt;I was browsing through our code at Schantz were i do my daytime hacking. I found something that&amp;rsquo;s not unusual in our code base. To be fair it&amp;rsquo;s not unusual in most codebases.&lt;/p&gt;
&lt;p&gt;The issue is logging, and more specific what log level should be used when.&lt;/p&gt;
&lt;p&gt;So i&amp;rsquo;ve decided to give you my take on it.&lt;/p&gt;
&lt;h2 id=&#34;error&#34;&gt;Error&lt;/h2&gt;
&lt;p&gt;The error statement should only be used for actual errors. So if the system will fail catastrophically, and there is no known way to recover, a error is written.&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title></title>
      <link>https://sorenmat.dev/posts/claude_sonnet_3.7/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/claude_sonnet_3.7/</guid>
      <description>
        
          
          
          
        

        
          &lt;!DOCTYPE html&gt;
&lt;html lang=&#34;en&#34;&gt;
&lt;head&gt;
    &lt;meta charset=&#34;UTF-8&#34;&gt;
    &lt;meta name=&#34;viewport&#34; content=&#34;width=device-width, initial-scale=1.0&#34;&gt;
    &lt;title&gt;Priority To-Do App&lt;/title&gt;
    &lt;!-- Tailwind CSS via CDN --&gt;
    &lt;script src=&#34;https://cdn.tailwindcss.com&#34;&gt;&lt;/script&gt;
    &lt;!-- jQuery --&gt;
    &lt;script src=&#34;https://code.jquery.com/jquery-3.6.0.min.js&#34;&gt;&lt;/script&gt;
    &lt;!-- jQuery UI for drag and drop --&gt;
    &lt;script src=&#34;https://code.jquery.com/ui/1.13.1/jquery-ui.min.js&#34;&gt;&lt;/script&gt;
    &lt;!-- Font Awesome for icons --&gt;
    &lt;link rel=&#34;stylesheet&#34; href=&#34;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css&#34;&gt;
&lt;/head&gt;
&lt;body class=&#34;bg-gray-100 min-h-screen font-sans&#34;&gt;
    &lt;div class=&#34;container mx-auto px-4 py-8&#34;&gt;
        &lt;h1 class=&#34;text-3xl font-bold text-center mb-8 text-gray-800&#34;&gt;Priority To-Do App&lt;/h1&gt;
        
        &lt;div class=&#34;flex flex-col md:flex-row gap-6&#34;&gt;
            &lt;!-- Low Priority Column --&gt;
            &lt;div class=&#34;flex-1 bg-green-50 rounded-lg shadow-md p-4&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-4 text-green-700 flex items-center&#34;&gt;
                    &lt;span class=&#34;w-3 h-3 bg-green-500 rounded-full mr-2&#34;&gt;&lt;/span&gt;
                    Low Priority
                &lt;/h2&gt;
                &lt;div id=&#34;low-priority&#34; class=&#34;priority-column min-h-[200px]&#34; data-priority=&#34;low&#34;&gt;
                    &lt;!-- To-do items will be added here dynamically --&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mt-4&#34;&gt;
                    &lt;button class=&#34;add-todo w-full py-2 px-4 bg-green-100 hover:bg-green-200 text-green-700 rounded flex items-center justify-center transition&#34; data-priority=&#34;low&#34;&gt;
                        &lt;i class=&#34;fas fa-plus mr-2&#34;&gt;&lt;/i&gt; Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;

            &lt;!-- Medium Priority Column --&gt;
            &lt;div class=&#34;flex-1 bg-yellow-50 rounded-lg shadow-md p-4&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-4 text-yellow-700 flex items-center&#34;&gt;
                    &lt;span class=&#34;w-3 h-3 bg-yellow-500 rounded-full mr-2&#34;&gt;&lt;/span&gt;
                    Medium Priority
                &lt;/h2&gt;
                &lt;div id=&#34;medium-priority&#34; class=&#34;priority-column min-h-[200px]&#34; data-priority=&#34;medium&#34;&gt;
                    &lt;!-- To-do items will be added here dynamically --&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mt-4&#34;&gt;
                    &lt;button class=&#34;add-todo w-full py-2 px-4 bg-yellow-100 hover:bg-yellow-200 text-yellow-700 rounded flex items-center justify-center transition&#34; data-priority=&#34;medium&#34;&gt;
                        &lt;i class=&#34;fas fa-plus mr-2&#34;&gt;&lt;/i&gt; Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;

            &lt;!-- High Priority Column --&gt;
            &lt;div class=&#34;flex-1 bg-red-50 rounded-lg shadow-md p-4&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-4 text-red-700 flex items-center&#34;&gt;
                    &lt;span class=&#34;w-3 h-3 bg-red-500 rounded-full mr-2&#34;&gt;&lt;/span&gt;
                    High Priority
                &lt;/h2&gt;
                &lt;div id=&#34;high-priority&#34; class=&#34;priority-column min-h-[200px]&#34; data-priority=&#34;high&#34;&gt;
                    &lt;!-- To-do items will be added here dynamically --&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mt-4&#34;&gt;
                    &lt;button class=&#34;add-todo w-full py-2 px-4 bg-red-100 hover:bg-red-200 text-red-700 rounded flex items-center justify-center transition&#34; data-priority=&#34;high&#34;&gt;
                        &lt;i class=&#34;fas fa-plus mr-2&#34;&gt;&lt;/i&gt; Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;!-- Create/Edit To-Do Modal --&gt;
    &lt;div id=&#34;todo-modal&#34; class=&#34;fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50&#34;&gt;
        &lt;div class=&#34;bg-white rounded-lg p-6 w-full max-w-md&#34;&gt;
            &lt;h2 id=&#34;modal-title&#34; class=&#34;text-2xl font-bold mb-4&#34;&gt;Add New To-Do&lt;/h2&gt;
            &lt;form id=&#34;todo-form&#34;&gt;
                &lt;input type=&#34;hidden&#34; id=&#34;todo-id&#34;&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;todo-title&#34; class=&#34;block text-gray-700 mb-2&#34;&gt;Title&lt;/label&gt;
                    &lt;input type=&#34;text&#34; id=&#34;todo-title&#34; class=&#34;w-full p-2 border border-gray-300 rounded&#34; required&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;todo-description&#34; class=&#34;block text-gray-700 mb-2&#34;&gt;Description&lt;/label&gt;
                    &lt;textarea id=&#34;todo-description&#34; class=&#34;w-full p-2 border border-gray-300 rounded h-24&#34;&gt;&lt;/textarea&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;todo-due-date&#34; class=&#34;block text-gray-700 mb-2&#34;&gt;Due Date&lt;/label&gt;
                    &lt;input type=&#34;date&#34; id=&#34;todo-due-date&#34; class=&#34;w-full p-2 border border-gray-300 rounded&#34;&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label class=&#34;block text-gray-700 mb-2&#34;&gt;Priority&lt;/label&gt;
                    &lt;div class=&#34;flex space-x-4&#34;&gt;
                        &lt;label class=&#34;flex items-center&#34;&gt;
                            &lt;input type=&#34;radio&#34; name=&#34;todo-priority&#34; value=&#34;low&#34; class=&#34;mr-2&#34;&gt;
                            &lt;span class=&#34;w-3 h-3 bg-green-500 rounded-full mr-1&#34;&gt;&lt;/span&gt;
                            Low
                        &lt;/label&gt;
                        &lt;label class=&#34;flex items-center&#34;&gt;
                            &lt;input type=&#34;radio&#34; name=&#34;todo-priority&#34; value=&#34;medium&#34; class=&#34;mr-2&#34;&gt;
                            &lt;span class=&#34;w-3 h-3 bg-yellow-500 rounded-full mr-1&#34;&gt;&lt;/span&gt;
                            Medium
                        &lt;/label&gt;
                        &lt;label class=&#34;flex items-center&#34;&gt;
                            &lt;input type=&#34;radio&#34; name=&#34;todo-priority&#34; value=&#34;high&#34; class=&#34;mr-2&#34;&gt;
                            &lt;span class=&#34;w-3 h-3 bg-red-500 rounded-full mr-1&#34;&gt;&lt;/span&gt;
                            High
                        &lt;/label&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&#34;flex justify-end space-x-3&#34;&gt;
                    &lt;button type=&#34;button&#34; id=&#34;cancel-todo&#34; class=&#34;py-2 px-4 bg-gray-200 text-gray-800 rounded hover:bg-gray-300 transition&#34;&gt;Cancel&lt;/button&gt;
                    &lt;button type=&#34;submit&#34; id=&#34;save-todo&#34; class=&#34;py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition&#34;&gt;Save&lt;/button&gt;
                &lt;/div&gt;
            &lt;/form&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;script&gt;
        $(document).ready(function() {
            // Initialize drag and drop
            $(&#34;.priority-column&#34;).sortable({
                connectWith: &#34;.priority-column&#34;,
                placeholder: &#34;task-placeholder&#34;,
                receive: function(event, ui) {
                    // Update the todo&#39;s priority when it&#39;s moved to a different column
                    const todoId = ui.item.attr(&#39;data-id&#39;);
                    const newPriority = $(this).attr(&#39;data-priority&#39;);
                    updateTodoPriority(todoId, newPriority);
                }
            }).disableSelection();

            // Load initial todos from local storage
            loadTodos();

            // Add new todo button click
            $(&#34;.add-todo&#34;).on(&#34;click&#34;, function() {
                const priority = $(this).data(&#34;priority&#34;);
                openCreateModal(priority);
            });

            // Cancel button click
            $(&#34;#cancel-todo&#34;).on(&#34;click&#34;, function() {
                closeModal();
            });

            // Save todo
            $(&#34;#todo-form&#34;).on(&#34;submit&#34;, function(e) {
                e.preventDefault();
                saveTodo();
            });

            // Handle todo item click for editing
            $(document).on(&#34;click&#34;, &#34;.todo-item-content&#34;, function() {
                const todoId = $(this).parent().attr(&#34;data-id&#34;);
                openEditModal(todoId);
            });

            // Handle delete button click
            $(document).on(&#34;click&#34;, &#34;.delete-todo&#34;, function(e) {
                e.stopPropagation();
                const todoId = $(this).parent().attr(&#34;data-id&#34;);
                deleteTodo(todoId);
            });
        });

        // Get todos from local storage
        function getTodos() {
            const todos = localStorage.getItem(&#39;todos&#39;);
            return todos ? JSON.parse(todos) : [];
        }

        // Save todos to local storage
        function saveTodosToStorage(todos) {
            localStorage.setItem(&#39;todos&#39;, JSON.stringify(todos));
        }

        // Load todos from storage to UI
        function loadTodos() {
            const todos = getTodos();
            
            // Clear existing todos
            $(&#34;.priority-column&#34;).empty();
            
            // Add todos to appropriate columns
            todos.forEach(todo =&gt; {
                addTodoToUI(todo);
            });
        }

        // Add a single todo to the UI
        function addTodoToUI(todo) {
            const priorityClass = getPriorityClass(todo.priority);
            const dueDate = todo.dueDate ? new Date(todo.dueDate).toLocaleDateString() : &#39;No due date&#39;;
            
            const todoElement = `
                &lt;div class=&#34;todo-item ${priorityClass} p-3 mb-3 rounded shadow-sm cursor-pointer&#34; data-id=&#34;${todo.id}&#34;&gt;
                    &lt;div class=&#34;todo-item-content&#34;&gt;
                        &lt;h3 class=&#34;font-semibold text-gray-800&#34;&gt;${todo.title}&lt;/h3&gt;
                        &lt;p class=&#34;text-sm text-gray-600 mt-1&#34;&gt;${todo.description || &#39;No description&#39;}&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title></title>
      <link>https://sorenmat.dev/posts/deepseek_3.7_0324/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/deepseek_3.7_0324/</guid>
      <description>
        
          
          
          
        

        
          &lt;!DOCTYPE html&gt;
&lt;html lang=&#34;en&#34;&gt;
&lt;head&gt;
    &lt;meta charset=&#34;UTF-8&#34;&gt;
    &lt;meta name=&#34;viewport&#34; content=&#34;width=device-width, initial-scale=1.0&#34;&gt;
    &lt;title&gt;To-Do App&lt;/title&gt;
    &lt;script src=&#34;https://cdn.tailwindcss.com&#34;&gt;&lt;/script&gt;
    &lt;script src=&#34;https://code.jquery.com/jquery-3.6.0.min.js&#34;&gt;&lt;/script&gt;
    &lt;script src=&#34;https://code.jquery.com/ui/1.13.1/jquery-ui.min.js&#34;&gt;&lt;/script&gt;
    &lt;style&gt;
        .todo-item {
            cursor: move;
            transition: all 0.2s ease;
        }
        .todo-item:hover {
            transform: scale(1.02);
        }
        .priority-column {
            min-height: 300px;
        }
        #edit-modal, #add-modal {
            transition: opacity 0.3s ease;
        }
        .modal-content {
            transform: translateY(-50px);
            transition: transform 0.3s ease;
        }
        .modal-open {
            opacity: 1;
            pointer-events: all;
        }
        .modal-open .modal-content {
            transform: translateY(0);
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body class=&#34;bg-gray-100 min-h-screen p-4&#34;&gt;
    &lt;div class=&#34;container mx-auto max-w-6xl&#34;&gt;
        &lt;h1 class=&#34;text-3xl font-bold text-center mb-8 text-indigo-700&#34;&gt;My To-Do List&lt;/h1&gt;
        
        &lt;div class=&#34;grid grid-cols-1 md:grid-cols-3 gap-6&#34;&gt;
            &lt;!-- Low Priority Column --&gt;
            &lt;div class=&#34;priority-column bg-blue-50 rounded-lg p-4 shadow&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-4 text-center text-blue-600&#34;&gt;Low Priority&lt;/h2&gt;
                &lt;div class=&#34;todos-container&#34; id=&#34;low-priority-todos&#34; data-priority=&#34;low&#34;&gt;
                    &lt;!-- Todos will be added here --&gt;
                &lt;/div&gt;
                &lt;div class=&#34;add-todo-form mt-4&#34;&gt;
                    &lt;button class=&#34;add-todo-btn w-full py-2 bg-blue-100 hover:bg-blue-200 text-blue-700 rounded-lg flex items-center justify-center gap-2 transition-colors&#34;
                            data-priority=&#34;low&#34;&gt;
                        &lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; class=&#34;h-5 w-5&#34; viewBox=&#34;0 0 20 20&#34; fill=&#34;currentColor&#34;&gt;
                            &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z&#34; clip-rule=&#34;evenodd&#34; /&gt;
                        &lt;/svg&gt;
                        Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;

            &lt;!-- Medium Priority Column --&gt;
            &lt;div class=&#34;priority-column bg-yellow-50 rounded-lg p-4 shadow&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-4 text-center text-yellow-600&#34;&gt;Medium Priority&lt;/h2&gt;
                &lt;div class=&#34;todos-container&#34; id=&#34;medium-priority-todos&#34; data-priority=&#34;medium&#34;&gt;
                    &lt;!-- Todos will be added here --&gt;
                &lt;/div&gt;
                &lt;div class=&#34;add-todo-form mt-4&#34;&gt;
                    &lt;button class=&#34;add-todo-btn w-full py-2 bg-yellow-100 hover:bg-yellow-200 text-yellow-700 rounded-lg flex items-center justify-center gap-2 transition-colors&#34;
                            data-priority=&#34;medium&#34;&gt;
                        &lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; class=&#34;h-5 w-5&#34; viewBox=&#34;0 0 20 20&#34; fill=&#34;currentColor&#34;&gt;
                            &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z&#34; clip-rule=&#34;evenodd&#34; /&gt;
                        &lt;/svg&gt;
                        Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;

            &lt;!-- High Priority Column --&gt;
            &lt;div class=&#34;priority-column bg-red-50 rounded-lg p-4 shadow&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-4 text-center text-red-600&#34;&gt;High Priority&lt;/h2&gt;
                &lt;div class=&#34;todos-container&#34; id=&#34;high-priority-todos&#34; data-priority=&#34;high&#34;&gt;
                    &lt;!-- Todos will be added here --&gt;
                &lt;/div&gt;
                &lt;div class=&#34;add-todo-form mt-4&#34;&gt;
                    &lt;button class=&#34;add-todo-btn w-full py-2 bg-red-100 hover:bg-red-200 text-red-700 rounded-lg flex items-center justify-center gap-2 transition-colors&#34;
                            data-priority=&#34;high&#34;&gt;
                        &lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; class=&#34;h-5 w-5&#34; viewBox=&#34;0 0 20 20&#34; fill=&#34;currentColor&#34;&gt;
                            &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z&#34; clip-rule=&#34;evenodd&#34; /&gt;
                        &lt;/svg&gt;
                        Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;!-- Add Todo Modal --&gt;
    &lt;div id=&#34;add-modal&#34; class=&#34;fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50 opacity-0 pointer-events-none&#34;&gt;
        &lt;div class=&#34;modal-content bg-white rounded-lg shadow-xl max-w-md w-full p-6&#34;&gt;
            &lt;h3 class=&#34;text-xl font-semibold mb-4&#34;&gt;Add New To-Do&lt;/h3&gt;
            &lt;form id=&#34;add-todo-form&#34;&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;title&#34; class=&#34;block text-sm font-medium text-gray-700 mb-1&#34;&gt;Title&lt;/label&gt;
                    &lt;input type=&#34;text&#34; id=&#34;title&#34; name=&#34;title&#34; class=&#34;w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500&#34; required&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;description&#34; class=&#34;block text-sm font-medium text-gray-700 mb-1&#34;&gt;Description&lt;/label&gt;
                    &lt;textarea id=&#34;description&#34; name=&#34;description&#34; class=&#34;w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500&#34; rows=&#34;3&#34;&gt;&lt;/textarea&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;due-date&#34; class=&#34;block text-sm font-medium text-gray-700 mb-1&#34;&gt;Due Date&lt;/label&gt;
                    &lt;input type=&#34;date&#34; id=&#34;due-date&#34; name=&#34;due-date&#34; class=&#34;w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500&#34; required&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label class=&#34;block text-sm font-medium text-gray-700 mb-1&#34;&gt;Priority&lt;/label&gt;
                    &lt;div class=&#34;flex gap-2&#34;&gt;
                        &lt;label class=&#34;inline-flex items-center&#34;&gt;
                            &lt;input type=&#34;radio&#34; name=&#34;priority&#34; value=&#34;low&#34; checked class=&#34;h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded&#34;&gt;
                            &lt;span class=&#34;ml-2 text-sm text-gray-700&#34;&gt;Low&lt;/span&gt;
                        &lt;/label&gt;
                        &lt;label class=&#34;inline-flex items-center&#34;&gt;
                            &lt;input type=&#34;radio&#34; name=&#34;priority&#34; value=&#34;medium&#34; class=&#34;h-4 w-4 text-yellow-600 focus:ring-yellow-500 border-gray-300 rounded&#34;&gt;
                            &lt;span class=&#34;ml-2 text-sm text-gray-700&#34;&gt;Medium&lt;/span&gt;
                        &lt;/label&gt;
                        &lt;label class=&#34;inline-flex items-center&#34;&gt;
                            &lt;input type=&#34;radio&#34; name=&#34;priority&#34; value=&#34;high&#34; class=&#34;h-4 w-4 text-red-600 focus:ring-red-500 border-gray-300 rounded&#34;&gt;
                            &lt;span class=&#34;ml-2 text-sm text-gray-700&#34;&gt;High&lt;/span&gt;
                        &lt;/label&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&#34;flex justify-end gap-2&#34;&gt;
                    &lt;button type=&#34;button&#34; id=&#34;cancel-add-btn&#34; class=&#34;px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 rounded-md&#34;&gt;
                        Cancel
                    &lt;/button&gt;
                    &lt;button type=&#34;submit&#34; class=&#34;px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 rounded-md&#34;&gt;
                        Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/form&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;!-- Edit Todo Modal --&gt;
    &lt;div id=&#34;edit-modal&#34; class=&#34;fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50 opacity-0 pointer-events-none&#34;&gt;
        &lt;div class=&#34;modal-content bg-white rounded-lg shadow-xl max-w-md w-full p-6&#34;&gt;
            &lt;h3 class=&#34;text-xl font-semibold mb-4&#34;&gt;Edit To-Do&lt;/h3&gt;
            &lt;form id=&#34;edit-todo-form&#34;&gt;
                &lt;input type=&#34;hidden&#34; id=&#34;edit-id&#34;&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;edit-title&#34; class=&#34;block text-sm font-medium text-gray-700 mb-1&#34;&gt;Title&lt;/label&gt;
                    &lt;input type=&#34;text&#34; id=&#34;edit-title&#34; name=&#34;edit-title&#34; class=&#34;w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500&#34; required&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;edit-description&#34; class=&#34;block text-sm font-medium text-gray-700 mb-1&#34;&gt;Description&lt;/label&gt;
                    &lt;textarea id=&#34;edit-description&#34; name=&#34;edit-description&#34; class=&#34;w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500&#34; rows=&#34;3&#34;&gt;&lt;/textarea&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;edit-due-date&#34; class=&#34;block text-sm font-medium text-gray-700 mb-1&#34;&gt;Due Date&lt;/label&gt;
                    &lt;input type=&#34;date&#34; id=&#34;edit-due-date&#34; name=&#34;edit-due-date&#34; class=&#34;w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500&#34; required&gt;
                &lt;/div&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label class=&#34;block text-sm font-medium text-gray-700 mb-1&#34;&gt;Priority&lt;/label&gt;
                    &lt;div class=&#34;flex gap-2&#34;&gt;
                        &lt;label class=&#34;inline-flex items-center&#34;&gt;
                            &lt;input type=&#34;radio&#34; name=&#34;edit-priority&#34; value=&#34;low&#34; class=&#34;h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded&#34;&gt;
                            &lt;span class=&#34;ml-2 text-sm text-gray-700&#34;&gt;Low&lt;/span&gt;
                        &lt;/label&gt;
                        &lt;label class=&#34;inline-flex items-center&#34;&gt;
                            &lt;input type=&#34;radio&#34; name=&#34;edit-priority&#34; value=&#34;medium&#34; class=&#34;h-4 w-4 text-yellow-600 focus:ring-yellow-500 border-gray-300 rounded&#34;&gt;
                            &lt;span class=&#34;ml-2 text-sm text-gray-700&#34;&gt;Medium&lt;/span&gt;
                        &lt;/label&gt;
                        &lt;label class=&#34;inline-flex items-center&#34;&gt;
                            &lt;input type=&#34;radio&#34; name=&#34;edit-priority&#34; value=&#34;high&#34; class=&#34;h-4 w-4 text-red-600 focus:ring-red-500 border-gray-300 rounded&#34;&gt;
                            &lt;span class=&#34;ml-2 text-sm text-gray-700&#34;&gt;High&lt;/span&gt;
                        &lt;/label&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&#34;flex justify-end gap-2&#34;&gt;
                    &lt;button type=&#34;button&#34; id=&#34;cancel-edit-btn&#34; class=&#34;px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 rounded-md&#34;&gt;
                        Cancel
                    &lt;/button&gt;
                    &lt;button type=&#34;submit&#34; class=&#34;px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 rounded-md&#34;&gt;
                        Save Changes
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/form&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;script&gt;
        $(document).ready(function() {
            // Sample data to start with (optional)
            let todos = [
                { id: 1, title: &#34;Finish project&#34;, description: &#34;Complete the final touches&#34;, dueDate: &#34;2023-12-15&#34;, priority: &#34;high&#34; },
                { id: 2, title: &#34;Buy groceries&#34;, description: &#34;Milk, eggs, bread&#34;, dueDate: &#34;2023-12-10&#34;, priority: &#34;medium&#34; },
                { id: 3, title: &#34;Read book&#34;, description: &#34;Chapter 5-7&#34;, dueDate: &#34;2023-12-20&#34;, priority: &#34;low&#34; }
            ];

            // Initialize the app
            function initApp() {
                renderTodos();
                setupDragAndDrop();
                setupEventListeners();
            }

            // Render todos in their respective columns
            function renderTodos() {
                // Clear all columns first
                $(&#39;.todos-container&#39;).empty();

                // Sort todos by due date
                todos.sort((a, b) =&gt; new Date(a.dueDate) - new Date(b.dueDate));

                // Render each todo in the appropriate column
                todos.forEach(todo =&gt; {
                    const todoElement = createTodoElement(todo);
                    $(`#${todo.priority}-priority-todos`).append(todoElement);
                });
            }

            // Create a todo element
            function createTodoElement(todo) {
                const priorityColors = {
                    low: { bg: &#39;bg-blue-100&#39;, border: &#39;border-blue-200&#39;, text: &#39;text-blue-800&#39; },
                    medium: { bg: &#39;bg-yellow-100&#39;, border: &#39;border-yellow-200&#39;, text: &#39;text-yellow-800&#39; },
                    high: { bg: &#39;bg-red-100&#39;, border: &#39;border-red-200&#39;, text: &#39;text-red-800&#39; }
                };

                const colors = priorityColors[todo.priority] || priorityColors.low;
                
                // Format due date
                const dueDate = new Date(todo.dueDate);
                const formattedDate = dueDate.toLocaleDateString(&#39;en-US&#39;, { month: &#39;short&#39;, day: &#39;numeric&#39;, year: &#39;numeric&#39; });

                return $(`
                    &lt;div class=&#34;todo-item mb-3 p-3 rounded-lg border ${colors.border} ${colors.bg} shadow-sm&#34; data-id=&#34;${todo.id}&#34;&gt;
                        &lt;div class=&#34;flex justify-between items-start&#34;&gt;
                            &lt;div&gt;
                                &lt;h3 class=&#34;font-medium ${colors.text}&#34;&gt;${todo.title}&lt;/h3&gt;
                                &lt;p class=&#34;text-sm text-gray-600 mt-1&#34;&gt;${todo.description || &#39;No description&#39;}&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title></title>
      <link>https://sorenmat.dev/posts/gemini_flash_2.0/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/gemini_flash_2.0/</guid>
      <description>
        
          
          
          
        

        
          &lt;!DOCTYPE html&gt;
&lt;html lang=&#34;en&#34;&gt;
&lt;head&gt;
    &lt;meta charset=&#34;UTF-8&#34;&gt;
    &lt;meta name=&#34;viewport&#34; content=&#34;width=device-width, initial-scale=1.0&#34;&gt;
    &lt;title&gt;One-Page To-Do App&lt;/title&gt;
    &lt;script src=&#34;https://code.jquery.com/jquery-3.6.0.min.js&#34;&gt;&lt;/script&gt;
    &lt;script src=&#34;https://code.jquery.com/ui/1.13.2/jquery-ui.js&#34;&gt;&lt;/script&gt;
    &lt;link href=&#34;https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css&#34; rel=&#34;stylesheet&#34;&gt;
    &lt;link rel=&#34;stylesheet&#34; href=&#34;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css&#34; integrity=&#34;sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==&#34; crossorigin=&#34;anonymous&#34; referrerpolicy=&#34;no-referrer&#34; /&gt;

    &lt;style&gt;
      .todo-item {
            cursor: grab;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body class=&#34;bg-gray-100&#34;&gt;
    &lt;div class=&#34;container mx-auto p-4&#34;&gt;
        &lt;h1 class=&#34;text-3xl font-bold mb-4 text-center&#34;&gt;One-Page To-Do App&lt;/h1&gt;

        &lt;div class=&#34;grid grid-cols-3 gap-4&#34;&gt;
            &lt;!-- Low Priority Column --&gt;
            &lt;div class=&#34;bg-white rounded-md shadow-md p-4&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-2&#34;&gt;Low&lt;/h2&gt;
                &lt;div id=&#34;low-priority-list&#34; class=&#34;space-y-2 connectedSortable&#34;&gt;
                  &lt;div class=&#34;add-todo-container mb-2&#34;&gt;
                      &lt;input type=&#34;text&#34; placeholder=&#34;+ Add To-Do&#34; class=&#34;add-todo-input w-full p-2 border rounded focus:outline-none focus:ring focus:border-blue-300&#34;&gt;
                      &lt;button data-priority=&#34;low&#34; class=&#34;add-todo-button hidden bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded mt-2&#34;&gt;Add To-Do&lt;/button&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;

            &lt;!-- Medium Priority Column --&gt;
            &lt;div class=&#34;bg-white rounded-md shadow-md p-4&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-2&#34;&gt;Medium&lt;/h2&gt;
                &lt;div id=&#34;medium-priority-list&#34; class=&#34;space-y-2 connectedSortable&#34;&gt;
                  &lt;div class=&#34;add-todo-container mb-2&#34;&gt;
                      &lt;input type=&#34;text&#34; placeholder=&#34;+ Add To-Do&#34; class=&#34;add-todo-input w-full p-2 border rounded focus:outline-none focus:ring focus:border-blue-300&#34;&gt;
                      &lt;button data-priority=&#34;medium&#34; class=&#34;add-todo-button hidden bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded mt-2&#34;&gt;Add To-Do&lt;/button&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;

            &lt;!-- High Priority Column --&gt;
            &lt;div class=&#34;bg-white rounded-md shadow-md p-4&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-2&#34;&gt;High&lt;/h2&gt;
                &lt;div id=&#34;high-priority-list&#34; class=&#34;space-y-2 connectedSortable&#34;&gt;
                    &lt;div class=&#34;add-todo-container mb-2&#34;&gt;
                        &lt;input type=&#34;text&#34; placeholder=&#34;+ Add To-Do&#34; class=&#34;add-todo-input w-full p-2 border rounded focus:outline-none focus:ring focus:border-blue-300&#34;&gt;
                        &lt;button data-priority=&#34;high&#34; class=&#34;add-todo-button hidden bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded mt-2&#34;&gt;Add To-Do&lt;/button&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;!-- Edit Modal --&gt;
    &lt;div id=&#34;edit-modal&#34; class=&#34;fixed z-10 inset-0 overflow-y-auto hidden&#34; aria-labelledby=&#34;modal-title&#34; role=&#34;dialog&#34; aria-modal=&#34;true&#34;&gt;
        &lt;div class=&#34;flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0&#34;&gt;
            &lt;div class=&#34;fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity&#34; aria-hidden=&#34;true&#34;&gt;&lt;/div&gt;
            &lt;span class=&#34;hidden sm:inline-block sm:align-middle sm:h-screen&#34; aria-hidden=&#34;true&#34;&gt;&amp;#8203;&lt;/span&gt;
            &lt;div class=&#34;inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full&#34;&gt;
                &lt;div class=&#34;bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4&#34;&gt;
                    &lt;h3 class=&#34;text-lg leading-6 font-medium text-gray-900&#34; id=&#34;modal-title&#34;&gt;
                        Edit To-Do Item
                    &lt;/h3&gt;
                    &lt;div class=&#34;mt-2&#34;&gt;
                        &lt;input type=&#34;hidden&#34; id=&#34;edit-todo-id&#34;&gt;
                        &lt;label for=&#34;edit-todo-text&#34; class=&#34;block text-sm font-medium text-gray-700&#34;&gt;Description&lt;/label&gt;
                        &lt;input type=&#34;text&#34; id=&#34;edit-todo-text&#34; class=&#34;shadow-sm focus:ring-blue-500 focus:border-blue-500 mt-1 block w-full sm:text-sm border-gray-300 rounded-md&#34;&gt;

                        &lt;label for=&#34;edit-todo-due-date&#34; class=&#34;block text-sm font-medium text-gray-700 mt-2&#34;&gt;Due Date&lt;/label&gt;
                        &lt;input type=&#34;date&#34; id=&#34;edit-todo-due-date&#34; class=&#34;shadow-sm focus:ring-blue-500 focus:border-blue-500 mt-1 block w-full sm:text-sm border-gray-300 rounded-md&#34;&gt;

                        &lt;label for=&#34;edit-todo-priority&#34; class=&#34;block text-sm font-medium text-gray-700 mt-2&#34;&gt;Priority&lt;/label&gt;
                        &lt;select id=&#34;edit-todo-priority&#34; class=&#34;shadow-sm focus:ring-blue-500 focus:border-blue-500 mt-1 block w-full sm:text-sm border-gray-300 rounded-md&#34;&gt;
                            &lt;option value=&#34;low&#34;&gt;Low&lt;/option&gt;
                            &lt;option value=&#34;medium&#34;&gt;Medium&lt;/option&gt;
                            &lt;option value=&#34;high&#34;&gt;High&lt;/option&gt;
                        &lt;/select&gt;

                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&#34;bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse&#34;&gt;
                    &lt;button id=&#34;save-edit-button&#34; type=&#34;button&#34; class=&#34;w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm&#34;&gt;
                        Save
                    &lt;/button&gt;
                    &lt;button id=&#34;cancel-edit-button&#34; type=&#34;button&#34; class=&#34;mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm&#34;&gt;
                        Cancel
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;script&gt;
        $(document).ready(function() {
            let todos = [];
            let nextTodoId = 1;

            // Function to render to-do items
            function renderTodos() {
                $(&#34;#low-priority-list&#34;).empty().append(&#39;&lt;div class=&#34;add-todo-container mb-2&#34;&gt;&lt;input type=&#34;text&#34; placeholder=&#34;+ Add To-Do&#34; class=&#34;add-todo-input w-full p-2 border rounded focus:outline-none focus:ring focus:border-blue-300&#34;&gt;&lt;button data-priority=&#34;low&#34; class=&#34;add-todo-button hidden bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded mt-2&#34;&gt;Add To-Do&lt;/button&gt;&lt;/div&gt;&#39;);
                $(&#34;#medium-priority-list&#34;).empty().append(&#39;&lt;div class=&#34;add-todo-container mb-2&#34;&gt;&lt;input type=&#34;text&#34; placeholder=&#34;+ Add To-Do&#34; class=&#34;add-todo-input w-full p-2 border rounded focus:outline-none focus:ring focus:border-blue-300&#34;&gt;&lt;button data-priority=&#34;medium&#34; class=&#34;add-todo-button hidden bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded mt-2&#34;&gt;Add To-Do&lt;/button&gt;&lt;/div&gt;&#39;);
                $(&#34;#high-priority-list&#34;).empty().append(&#39;&lt;div class=&#34;add-todo-container mb-2&#34;&gt;&lt;input type=&#34;text&#34; placeholder=&#34;+ Add To-Do&#34; class=&#34;add-todo-input w-full p-2 border rounded focus:outline-none focus:ring focus:border-blue-300&#34;&gt;&lt;button data-priority=&#34;high&#34; class=&#34;add-todo-button hidden bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded mt-2&#34;&gt;Add To-Do&lt;/button&gt;&lt;/div&gt;&#39;);

                todos.forEach(todo =&gt; {
                    const listItem = $(`
                        &lt;div class=&#34;todo-item bg-white p-3 rounded-md shadow-sm border border-gray-200 hover:shadow-md transition-shadow duration-200 ease-in-out&#34;&gt;
                            &lt;span class=&#34;todo-text&#34;&gt;${todo.text}&lt;/span&gt;
                            &lt;div class=&#34;mt-1 text-sm text-gray-600&#34;&gt;
                                Due: ${todo.dueDate}, Priority: ${todo.priority}
                                &lt;button class=&#34;delete-button text-red-500 hover:text-red-700 ml-2 float-right&#34; data-id=&#34;${todo.id}&#34;&gt;&lt;i class=&#34;fas fa-trash-alt&#34;&gt;&lt;/i&gt;&lt;/button&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    `);

                    listItem.data(&#39;id&#39;, todo.id);

                    switch (todo.priority) {
                        case &#39;low&#39;:
                            $(&#34;#low-priority-list&#34;).append(listItem);
                            break;
                        case &#39;medium&#39;:
                            $(&#34;#medium-priority-list&#34;).append(listItem);
                            break;
                        case &#39;high&#39;:
                            $(&#34;#high-priority-list&#34;).append(listItem);
                            break;
                    }
                });

                 // Re-attach event listeners after re-rendering
                 attachEventListeners();
            }

            function attachEventListeners() {

            // Delete To-Do functionality
            $(&#34;.delete-button&#34;).off(&#39;click&#39;).on(&#39;click&#39;, function() {
                const idToDelete = $(this).data(&#39;id&#39;);
                todos = todos.filter(todo =&gt; todo.id !== idToDelete);
                renderTodos();
            });

            // Edit To-Do functionality
            $(&#34;.todo-item&#34;).off(&#39;click&#39;).on(&#39;click&#39;, function(e) {
                // Prevent click on delete button from triggering edit
                if ($(e.target).hasClass(&#39;delete-button&#39;) || $(e.target).parent().hasClass(&#39;delete-button&#39;)) {
                    return;
                }

                const idToEdit = $(this).data(&#39;id&#39;);
                const todoToEdit = todos.find(todo =&gt; todo.id === idToEdit);

                if (todoToEdit) {
                    $(&#34;#edit-todo-id&#34;).val(todoToEdit.id);
                    $(&#34;#edit-todo-text&#34;).val(todoToEdit.text);
                    $(&#34;#edit-todo-due-date&#34;).val(todoToEdit.dueDate);
                    $(&#34;#edit-todo-priority&#34;).val(todoToEdit.priority);
                    $(&#34;#edit-modal&#34;).removeClass(&#39;hidden&#39;);
                }
            });

             //Edit todo input handling
            $(&#34;.add-todo-input&#34;).on(&#34;input&#34;, function() {
                const button = $(this).siblings(&#34;.add-todo-button&#34;);
                if ($(this).val().trim() !== &#34;&#34;) {
                    button.removeClass(&#34;hidden&#34;);
                } else {
                    button.addClass(&#34;hidden&#34;);
                }
            });

             $(&#34;.add-todo-button&#34;).off(&#39;click&#39;).on(&#39;click&#39;, function() {
                const priority = $(this).data(&#39;priority&#39;);
                const input = $(this).siblings(&#34;.add-todo-input&#34;);
                const text = input.val().trim();

                if (text !== &#34;&#34;) {
                    const newTodo = {
                        id: nextTodoId++,
                        text: text,
                        dueDate: new Date().toISOString().slice(0, 10), // Default due date
                        priority: priority
                    };
                    todos.push(newTodo);
                    input.val(&#34;&#34;);
                    $(this).addClass(&#34;hidden&#34;);
                    renderTodos();
                }
            });

        }

            // Save Edit Button Click Handler
            $(&#34;#save-edit-button&#34;).click(function() {
                const id = parseInt($(&#34;#edit-todo-id&#34;).val());
                const text = $(&#34;#edit-todo-text&#34;).val();
                const dueDate = $(&#34;#edit-todo-due-date&#34;).val();
                const priority = $(&#34;#edit-todo-priority&#34;).val();

                todos = todos.map(todo =&gt; {
                    if (todo.id === id) {
                        return { ...todo, text: text, dueDate: dueDate, priority: priority };
                    }
                    return todo;
                });

                $(&#34;#edit-modal&#34;).addClass(&#39;hidden&#39;);
                renderTodos();
            });

            // Cancel Edit Button Click Handler
            $(&#34;#cancel-edit-button&#34;).click(function() {
                $(&#34;#edit-modal&#34;).addClass(&#39;hidden&#39;);
            });



            // Initialize Sortable
            $(&#34;.connectedSortable&#34;).sortable({
                connectWith: &#34;.connectedSortable&#34;,
                placeholder: &#34;ui-state-highlight&#34;,
                receive: function(event, ui) {
                    const id = ui.item.data(&#39;id&#39;);
                    let newPriority;

                    if ($(this).attr(&#39;id&#39;) === &#39;low-priority-list&#39;) {
                        newPriority = &#39;low&#39;;
                    } else if ($(this).attr(&#39;id&#39;) === &#39;medium-priority-list&#39;) {
                        newPriority = &#39;medium&#39;;
                    } else {
                        newPriority = &#39;high&#39;;
                    }

                    todos = todos.map(todo =&gt; {
                        if (todo.id === id) {
                            return { ...todo, priority: newPriority };
                        }
                        return todo;
                    });
                }
            }).disableSelection();


            renderTodos(); // Initial render
        });
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
          
        
        </description>
    </item>
    
    <item>
      <title></title>
      <link>https://sorenmat.dev/posts/gemini_flash_2.5_experimental/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/gemini_flash_2.5_experimental/</guid>
      <description>
        
          
          
          
        

        
          &lt;!DOCTYPE html&gt;
&lt;html lang=&#34;en&#34;&gt;
&lt;head&gt;
    &lt;meta charset=&#34;UTF-8&#34;&gt;
    &lt;meta name=&#34;viewport&#34; content=&#34;width=device-width, initial-scale=1.0&#34;&gt;
    &lt;title&gt;One-Page To-Do App&lt;/title&gt;
    &lt;!-- Tailwind CSS CDN --&gt;
    &lt;link href=&#34;https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css&#34; rel=&#34;stylesheet&#34;&gt;
    &lt;!-- jQuery CDN --&gt;
    &lt;script src=&#34;https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js&#34;&gt;&lt;/script&gt;
    &lt;!-- jQuery UI CDN (for Draggable and Droppable) --&gt;
    &lt;script src=&#34;https://code.jquery.com/ui/1.13.2/jquery-ui.min.js&#34;&gt;&lt;/script&gt;
    &lt;style&gt;
        /* Ensure draggables have correct z-index */
        .ui-draggable-dragging {
            z-index: 1000;
        }
        /* Basic styling for droppable areas (optional visual cue) */
        .ui-droppable-active {
             background-color: #e2e8f0; /* Tailwind gray-200 */
             border: 2px dashed #cbd5e0; /* Tailwind gray-300 */
        }
        .ui-droppable-hover {
            background-color: #cbd5e0; /* Tailwind gray-300 */
        }
        /* Custom scrollbar for better appearance */
        .overflow-y-auto::-webkit-scrollbar {
            width: 8px;
        }
        .overflow-y-auto::-webkit-scrollbar-track {
            background: #e2e8f0; /* Tailwind gray-200 */
            border-radius: 10px;
        }
        .overflow-y-auto::-webkit-scrollbar-thumb {
            background: #94a3b8; /* Tailwind gray-400 */
            border-radius: 10px;
        }
        .overflow-y-auto::-webkit-scrollbar-thumb:hover {
            background: #64748b; /* Tailwind gray-500 */
        }

         /* Style for the trash icon */
        .delete-todo {
            cursor: pointer;
            color: #ef4444; /* Tailwind red-500 */
            margin-left: 10px;
            font-size: 1.1em; /* Slightly larger trash icon */
            transition: color 0.2s ease-in-out;
        }
         .delete-todo:hover {
            color: #dc2626; /* Tailwind red-600 */
        }
         /* Style for the handle (optional, for visual cue) */
         .drag-handle {
            cursor: grab;
            margin-right: 10px;
            color: #94a3b8; /* Tailwind gray-400 */
         }
          .todo-item:hover .drag-handle {
             color: #64748b; /* Tailwind gray-500 */
          }
           /* prevent text selection during drag */
           .ui-draggable-dragging {
                -webkit-user-select: none; /* Safari */
                -ms-user-select: none; /* IE 10+ and Edge */
                user-select: none; /* Standard syntax */
           }

    &lt;/style&gt;
&lt;/head&gt;
&lt;body class=&#34;bg-gray-50 font-sans antialiased&#34;&gt;

    &lt;div id=&#34;app&#34; class=&#34;container mx-auto p-4 h-screen flex flex-col&#34;&gt;
        &lt;h1 class=&#34;text-3xl font-bold text-center mb-6 text-gray-800&#34;&gt;To-Do List&lt;/h1&gt;

        &lt;div class=&#34;flex flex-1 gap-6 overflow-hidden&#34;&gt;

            &lt;!-- Low Priority Column --&gt;
            &lt;div id=&#34;low-column&#34; class=&#34;column flex-1 bg-gray-100 rounded-lg shadow-md p-4 flex flex-col h-full&#34; data-priority=&#34;low&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-4 text-gray-700 border-b pb-2 border-gray-300&#34;&gt;Low Priority&lt;/h2&gt;
                &lt;div class=&#34;todos-list flex-1 overflow-y-auto space-y-3 pb-4&#34;&gt;
                    &lt;!-- To-do items will be rendered here --&gt;
                &lt;/div&gt;
                &lt;div class=&#34;add-todo mt-auto pt-4 border-t border-gray-300&#34;&gt;
                     &lt;button class=&#34;add-todo-button w-full bg-blue-500 text-white p-3 rounded-md hover:bg-blue-600 transition duration-200 flex items-center justify-center text-lg&#34;&gt;
                         &lt;span class=&#34;mr-1&#34;&gt;+&lt;/span&gt; Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;

            &lt;!-- Medium Priority Column --&gt;
            &lt;div id=&#34;medium-column&#34; class=&#34;column flex-1 bg-gray-100 rounded-lg shadow-md p-4 flex flex-col h-full&#34; data-priority=&#34;medium&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-4 text-gray-700 border-b pb-2 border-gray-300&#34;&gt;Medium Priority&lt;/h2&gt;
                &lt;div class=&#34;todos-list flex-1 overflow-y-auto space-y-3 pb-4&#34;&gt;
                    &lt;!-- To-do items will be rendered here --&gt;
                &lt;/div&gt;
                 &lt;div class=&#34;add-todo mt-auto pt-4 border-t border-gray-300&#34;&gt;
                     &lt;button class=&#34;add-todo-button w-full bg-blue-500 text-white p-3 rounded-md hover:bg-blue-600 transition duration-200 flex items-center justify-center text-lg&#34;&gt;
                        &lt;span class=&#34;mr-1&#34;&gt;+&lt;/span&gt; Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;

            &lt;!-- High Priority Column --&gt;
            &lt;div id=&#34;high-column&#34; class=&#34;column flex-1 bg-gray-100 rounded-lg shadow-md p-4 flex flex-col h-full&#34; data-priority=&#34;high&#34;&gt;
                &lt;h2 class=&#34;text-xl font-semibold mb-4 text-gray-700 border-b pb-2 border-gray-300&#34;&gt;High Priority&lt;/h2&gt;
                &lt;div class=&#34;todos-list flex-1 overflow-y-auto space-y-3 pb-4&#34;&gt;
                    &lt;!-- To-do items will be rendered here --&gt;
                &lt;/div&gt;
                 &lt;div class=&#34;add-todo mt-auto pt-4 border-t border-gray-300&#34;&gt;
                     &lt;button class=&#34;add-todo-button w-full bg-blue-500 text-white p-3 rounded-md hover:bg-blue-600 transition duration-200 flex items-center justify-center text-lg&#34;&gt;
                        &lt;span class=&#34;mr-1&#34;&gt;+&lt;/span&gt; Add To-Do
                    &lt;/button&gt;
                &lt;/div&gt;
            &lt;/div&gt;

        &lt;/div&gt;
    &lt;/div&gt;

    &lt;!-- To-Do Modal --&gt;
    &lt;div id=&#34;todoModal&#34; class=&#34;modal fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden&#34;&gt;
        &lt;div class=&#34;modal-content bg-white p-6 rounded-lg shadow-xl w-full max-w-md relative&#34;&gt;
             &lt;button class=&#34;modal-close absolute top-3 right-3 text-gray-500 hover:text-gray-800 text-2xl font-bold&#34;&gt;&amp;times;&lt;/button&gt;
            &lt;h3 id=&#34;modal-title&#34; class=&#34;text-2xl font-bold mb-4 text-gray-800&#34;&gt;Add New To-Do&lt;/h3&gt;

            &lt;form id=&#34;todo-form&#34;&gt;
                &lt;input type=&#34;hidden&#34; id=&#34;todo-id&#34;&gt;
                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;todo-text&#34; class=&#34;block text-gray-700 text-sm font-semibold mb-2&#34;&gt;To-Do Description&lt;/label&gt;
                    &lt;textarea id=&#34;todo-text&#34; class=&#34;shadow-sm appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:ring-blue-500 focus:border-blue-500&#34; rows=&#34;3&#34; placeholder=&#34;Describe your task...&#34; required&gt;&lt;/textarea&gt;
                &lt;/div&gt;

                &lt;div class=&#34;mb-4&#34;&gt;
                    &lt;label for=&#34;todo-dueDate&#34; class=&#34;block text-gray-700 text-sm font-semibold mb-2&#34;&gt;Due Date&lt;/label&gt;
                    &lt;input type=&#34;date&#34; id=&#34;todo-dueDate&#34; class=&#34;shadow-sm appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:ring-blue-500 focus:border-blue-500&#34; required&gt;
                &lt;/div&gt;

                &lt;div class=&#34;mb-6&#34;&gt;
                    &lt;label for=&#34;todo-priority&#34; class=&#34;block text-gray-700 text-sm font-semibold mb-2&#34;&gt;Priority&lt;/label&gt;
                    &lt;select id=&#34;todo-priority&#34; class=&#34;shadow-sm appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:ring-blue-500 focus:border-blue-500&#34; required&gt;
                        &lt;option value=&#34;low&#34;&gt;Low&lt;/option&gt;
                        &lt;option value=&#34;medium&#34;&gt;Medium&lt;/option&gt;
                        &lt;option value=&#34;high&#34;&gt;High&lt;/option&gt;
                    &lt;/select&gt;
                &lt;/div&gt;

                &lt;div class=&#34;flex justify-end&#34;&gt;
                    &lt;button type=&#34;button&#34; class=&#34;modal-cancel bg-gray-300 text-gray-800 p-3 rounded-md hover:bg-gray-400 mr-2 transition duration-200&#34;&gt;Cancel&lt;/button&gt;
                    &lt;button type=&#34;submit&#34; id=&#34;save-todo-button&#34; class=&#34;bg-blue-500 text-white p-3 rounded-md hover:bg-blue-600 transition duration-200&#34;&gt;Save To-Do&lt;/button&gt;
                &lt;/div&gt;
            &lt;/form&gt;
        &lt;/div&gt;
    &lt;/div&gt;


    &lt;script&gt;
        $(document).ready(function() {
            // Dummy data (replace with local storage later if persistence is needed)
            let todos = [
                { id: 1, text: &#39;Buy groceries&#39;, dueDate: &#39;2023-12-01&#39;, priority: &#39;low&#39; },
                { id: 2, text: &#39;Finish project report&#39;, dueDate: &#39;2023-11-28&#39;, priority: &#39;high&#39; },
                { id: 3, text: &#39;Schedule team meeting&#39;, dueDate: &#39;2023-11-29&#39;, priority: &#39;medium&#39; },
                 { id: 4, text: &#39;Call Mom&#39;, dueDate: &#39;2023-12-05&#39;, priority: &#39;low&#39; },
                  { id: 5, text: &#39;Prepare presentation slides&#39;, dueDate: &#39;2023-11-27&#39;, priority: &#39;high&#39; },
                   { id: 6, text: &#39;Review code changes&#39;, dueDate: &#39;2023-11-30&#39;, priority: &#39;medium&#39; },
            ];

            // Function to render all todos
            function renderTodos() {
                $(&#39;.todos-list&#39;).empty(); // Clear existing lists

                todos.forEach(todo =&gt; {
                    const todoElement = `
                        &lt;div class=&#34;todo-item bg-white p-3 rounded-md shadow cursor-pointer border border-gray-200 hover:border-blue-400 transition duration-150 ease-in-out flex justify-between items-center&#34;
                             data-id=&#34;${todo.id}&#34;
                             data-priority=&#34;${todo.priority}&#34;&gt;
                            &lt;div class=&#34;flex-1 pr-4&#34;&gt;
                                &lt;p class=&#34;text-gray-800 font-medium&#34;&gt;${todo.text}&lt;/p&gt;
          
        
        </description>
    </item>
    
    <item>
      <title></title>
      <link>https://sorenmat.dev/posts/llama_3.3/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/llama_3.3/</guid>
      <description>
        
          
          
          
        

        
          &lt;!DOCTYPE html&gt;
&lt;html lang=&#34;en&#34;&gt;
&lt;head&gt;
    &lt;meta charset=&#34;UTF-8&#34;&gt;
    &lt;meta http-equiv=&#34;X-UA-Compatible&#34; content=&#34;IE=edge&#34;&gt;
    &lt;meta name=&#34;viewport&#34; content=&#34;width=device-width, initial-scale=1.0&#34;&gt;
    &lt;title&gt;To-Do App&lt;/title&gt;
    &lt;link href=&#34;https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css&#34; rel=&#34;stylesheet&#34;&gt;
    &lt;script src=&#34;https://code.jquery.com/jquery-3.6.0.min.js&#34;&gt;&lt;/script&gt;
    &lt;script src=&#34;https://cdn.jsdelivr.net/npm/sweetalert2@11.4.10/dist/sweetalert2.all.min.js&#34;&gt;&lt;/script&gt;
    &lt;style&gt;
        .todo-item {
            background-color: #f9f9f9;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            cursor: move;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class=&#34;container mx-auto p-4 pt-6 mt-10&#34;&gt;
        &lt;h1 class=&#34;text-3xl font-bold mb-4&#34;&gt;To-Do App&lt;/h1&gt;
        &lt;div class=&#34;flex justify-between&#34;&gt;
            &lt;div class=&#34;w-1/3 p-4 bg-white rounded-lg shadow-md&#34;&gt;
                &lt;h2 class=&#34;text-lg font-bold mb-2&#34;&gt;Low&lt;/h2&gt;
                &lt;ul id=&#34;low-column&#34; class=&#34;list-none p-0 m-0&#34;&gt;
                &lt;/ul&gt;
                &lt;button class=&#34;add-todo-button&#34; data-column=&#34;low&#34;&gt;+ Add To-Do&lt;/button&gt;
            &lt;/div&gt;
            &lt;div class=&#34;w-1/3 p-4 bg-white rounded-lg shadow-md&#34;&gt;
                &lt;h2 class=&#34;text-lg font-bold mb-2&#34;&gt;Medium&lt;/h2&gt;
                &lt;ul id=&#34;medium-column&#34; class=&#34;list-none p-0 m-0&#34;&gt;
                &lt;/ul&gt;
                &lt;button class=&#34;add-todo-button&#34; data-column=&#34;medium&#34;&gt;+ Add To-Do&lt;/button&gt;
            &lt;/div&gt;
            &lt;div class=&#34;w-1/3 p-4 bg-white rounded-lg shadow-md&#34;&gt;
                &lt;h2 class=&#34;text-lg font-bold mb-2&#34;&gt;High&lt;/h2&gt;
                &lt;ul id=&#34;high-column&#34; class=&#34;list-none p-0 m-0&#34;&gt;
                &lt;/ul&gt;
                &lt;button class=&#34;add-todo-button&#34; data-column=&#34;high&#34;&gt;+ Add To-Do&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;div id=&#34;create-modal&#34; class=&#34;hidden fixed top-0 left-0 w-full h-full bg-gray-800 bg-opacity-50 flex items-center justify-center&#34;&gt;
        &lt;div class=&#34;bg-white p-4 rounded-lg shadow-md w-1/2&#34;&gt;
            &lt;h2 class=&#34;text-lg font-bold mb-2&#34;&gt;Create To-Do&lt;/h2&gt;
            &lt;form id=&#34;create-todo-form&#34;&gt;
                &lt;label for=&#34;title&#34;&gt;Title:&lt;/label&gt;
                &lt;input type=&#34;text&#34; id=&#34;title&#34; name=&#34;title&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded-lg&#34;&gt;
                &lt;label for=&#34;due-date&#34;&gt;Due Date:&lt;/label&gt;
                &lt;input type=&#34;date&#34; id=&#34;due-date&#34; name=&#34;due-date&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded-lg&#34;&gt;
                &lt;label for=&#34;priority&#34;&gt;Priority:&lt;/label&gt;
                &lt;select id=&#34;priority&#34; name=&#34;priority&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded-lg&#34;&gt;
                    &lt;option value=&#34;low&#34;&gt;Low&lt;/option&gt;
                    &lt;option value=&#34;medium&#34;&gt;Medium&lt;/option&gt;
                    &lt;option value=&#34;high&#34;&gt;High&lt;/option&gt;
                &lt;/select&gt;
                &lt;button type=&#34;submit&#34; class=&#34;bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg&#34;&gt;Create&lt;/button&gt;
            &lt;/form&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;div id=&#34;edit-modal&#34; class=&#34;hidden fixed top-0 left-0 w-full h-full bg-gray-800 bg-opacity-50 flex items-center justify-center&#34;&gt;
        &lt;div class=&#34;bg-white p-4 rounded-lg shadow-md w-1/2&#34;&gt;
            &lt;h2 class=&#34;text-lg font-bold mb-2&#34;&gt;Edit To-Do&lt;/h2&gt;
            &lt;form id=&#34;edit-todo-form&#34;&gt;
                &lt;input type=&#34;hidden&#34; id=&#34;edit-id&#34; name=&#34;id&#34;&gt;
                &lt;label for=&#34;edit-title&#34;&gt;Title:&lt;/label&gt;
                &lt;input type=&#34;text&#34; id=&#34;edit-title&#34; name=&#34;title&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded-lg&#34;&gt;
                &lt;label for=&#34;edit-due-date&#34;&gt;Due Date:&lt;/label&gt;
                &lt;input type=&#34;date&#34; id=&#34;edit-due-date&#34; name=&#34;due-date&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded-lg&#34;&gt;
                &lt;label for=&#34;edit-priority&#34;&gt;Priority:&lt;/label&gt;
                &lt;select id=&#34;edit-priority&#34; name=&#34;priority&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded-lg&#34;&gt;
                    &lt;option value=&#34;low&#34;&gt;Low&lt;/option&gt;
                    &lt;option value=&#34;medium&#34;&gt;Medium&lt;/option&gt;
                    &lt;option value=&#34;high&#34;&gt;High&lt;/option&gt;
                &lt;/select&gt;
                &lt;button type=&#34;submit&#34; class=&#34;bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg&#34;&gt;Save&lt;/button&gt;
            &lt;/form&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;script&gt;
        let todos = [];
        let currentEditId = null;

        $(document).ready(function() {
            loadTodos();
            bindEvents();
        });

        function loadTodos() {
            $.ajax({
                type: &#34;GET&#34;,
                url: &#34;/get-todos&#34;,
                dataType: &#34;json&#34;,
                success: function(data) {
                    todos = data;
                    renderTodos();
                }
            });
        }

        function renderTodos() {
            $(&#34;#low-column, #medium-column, #high-column&#34;).empty();
            todos.forEach(function(todo) {
                let columnId = todo.priority + &#34;-column&#34;;
                let todoHtml = `&lt;li id=&#34;todo-${todo.id}&#34; class=&#34;todo-item&#34; draggable=&#34;true&#34;&gt;
                                &lt;span&gt;${todo.title}&lt;/span&gt;
                                &lt;span&gt;Due: ${todo.dueDate}&lt;/span&gt;
                                &lt;button class=&#34;delete-button&#34; data-id=&#34;${todo.id}&#34;&gt;&lt;i class=&#34;fa fa-trash&#34;&gt;&lt;/i&gt;&lt;/button&gt;
                                &lt;/li&gt;`;
                $(&#34;#&#34; + columnId).append(todoHtml);
            });
        }

        function bindEvents() {
            $(&#34;.add-todo-button&#34;).on(&#34;click&#34;, function() {
                $(&#34;#create-modal&#34;).removeClass(&#34;hidden&#34;);
                $(&#34;#priority&#34;).val($(this).data(&#34;column&#34;));
            });

            $(&#34;#create-todo-form&#34;).on(&#34;submit&#34;, function(e) {
                e.preventDefault();
                let formData = $(this).serialize();
                $.ajax({
                    type: &#34;POST&#34;,
                    url: &#34;/create-todo&#34;,
                    data: formData,
                    success: function(data) {
                        todos.push(data);
                        renderTodos();
                        $(&#34;#create-modal&#34;).addClass(&#34;hidden&#34;);
                        $(&#34;#create-todo-form&#34;)[0].reset();
                    }
                });
            });

            $(document).on(&#34;click&#34;, &#34;.todo-item&#34;, function() {
                currentEditId = $(this).attr(&#34;id&#34;).split(&#34;-&#34;)[1];
                let todo = todos.find(function(todo) {
                    return todo.id == currentEditId;
                });
                $(&#34;#edit-id&#34;).val(todo.id);
                $(&#34;#edit-title&#34;).val(todo.title);
                $(&#34;#edit-due-date&#34;).val(todo.dueDate);
                $(&#34;#edit-priority&#34;).val(todo.priority);
                $(&#34;#edit-modal&#34;).removeClass(&#34;hidden&#34;);
            });

            $(&#34;#edit-todo-form&#34;).on(&#34;submit&#34;, function(e) {
                e.preventDefault();
                let formData = $(this).serialize();
                $.ajax({
                    type: &#34;POST&#34;,
                    url: &#34;/update-todo&#34;,
                    data: formData,
                    success: function(data) {
                        let index = todos.findIndex(function(todo) {
                            return todo.id == currentEditId;
                        });
                        todos[index] = data;
                        renderTodos();
                        $(&#34;#edit-modal&#34;).addClass(&#34;hidden&#34;);
                        currentEditId = null;
                    }
                });
            });

            $(document).on(&#34;click&#34;, &#34;.delete-button&#34;, function() {
                let id = $(this).data(&#34;id&#34;);
                $.ajax({
                    type: &#34;POST&#34;,
                    url: &#34;/delete-todo&#34;,
                    data: { id: id },
                    success: function() {
                        let index = todos.findIndex(function(todo) {
                            return todo.id == id;
                        });
                        todos.splice(index, 1);
                        renderTodos();
                    }
                });
            });

            $(document).on(&#34;dragstart&#34;, &#34;.todo-item&#34;, function(e) {
                e.originalEvent.dataTransfer.setData(&#34;text&#34;, $(this).attr(&#34;id&#34;));
            });

            $(document).on(&#34;dragover&#34;, &#34;#low-column, #medium-column, #high-column&#34;, function(e) {
                e.preventDefault();
            });

            $(document).on(&#34;drop&#34;, &#34;#low-column, #medium-column, #high-column&#34;, function(e) {
                e.preventDefault();
                let columnId = $(this).attr(&#34;id&#34;);
                let priority = columnId.split(&#34;-&#34;)[0];
                let todoId = e.originalEvent.dataTransfer.getData(&#34;text&#34;).split(&#34;-&#34;)[1];
                let index = todos.findIndex(function(todo) {
                    return todo.id == todoId;
                });
                todos[index].priority = priority;
                renderTodos();
            });
        }
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
          
        
        </description>
    </item>
    
    <item>
      <title></title>
      <link>https://sorenmat.dev/posts/llama_4_maverick/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/llama_4_maverick/</guid>
      <description>
        
          
          
          
        

        
          &lt;!DOCTYPE html&gt;
&lt;html lang=&#34;en&#34;&gt;
&lt;head&gt;
    &lt;meta charset=&#34;UTF-8&#34;&gt;
    &lt;meta name=&#34;viewport&#34; content=&#34;width=device-width, initial-scale=1.0&#34;&gt;
    &lt;title&gt;To-Do App&lt;/title&gt;
    &lt;link href=&#34;https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css&#34; rel=&#34;stylesheet&#34;&gt;
    &lt;style&gt;
        .todo-item {
            cursor: move;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class=&#34;container mx-auto p-4 mt-4&#34;&gt;
        &lt;h1 class=&#34;text-3xl font-bold mb-4&#34;&gt;To-Do App&lt;/h1&gt;
        &lt;div class=&#34;flex justify-between&#34;&gt;
            &lt;div class=&#34;w-1/3 bg-gray-100 p-4 mr-2 rounded&#34; id=&#34;low-priority&#34;&gt;
                &lt;h2 class=&#34;font-bold mb-2&#34;&gt;Low&lt;/h2&gt;
                &lt;div id=&#34;low-todos&#34;&gt;&lt;/div&gt;
                &lt;input type=&#34;text&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded&#34; placeholder=&#34;To-Do title&#34; id=&#34;low-title&#34;&gt;
                &lt;button class=&#34;bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded&#34; id=&#34;add-low-todo&#34;&gt;+ Add To-Do&lt;/button&gt;
            &lt;/div&gt;
            &lt;div class=&#34;w-1/3 bg-gray-100 p-4 mx-2 rounded&#34; id=&#34;medium-priority&#34;&gt;
                &lt;h2 class=&#34;font-bold mb-2&#34;&gt;Medium&lt;/h2&gt;
                &lt;div id=&#34;medium-todos&#34;&gt;&lt;/div&gt;
                &lt;input type=&#34;text&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded&#34; placeholder=&#34;To-Do title&#34; id=&#34;medium-title&#34;&gt;
                &lt;button class=&#34;bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded&#34; id=&#34;add-medium-todo&#34;&gt;+ Add To-Do&lt;/button&gt;
            &lt;/div&gt;
            &lt;div class=&#34;w-1/3 bg-gray-100 p-4 ml-2 rounded&#34; id=&#34;high-priority&#34;&gt;
                &lt;h2 class=&#34;font-bold mb-2&#34;&gt;High&lt;/h2&gt;
                &lt;div id=&#34;high-todos&#34;&gt;&lt;/div&gt;
                &lt;input type=&#34;text&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded&#34; placeholder=&#34;To-Do title&#34; id=&#34;high-title&#34;&gt;
                &lt;button class=&#34;bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded&#34; id=&#34;add-high-todo&#34;&gt;+ Add To-Do&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;!-- Modal for creating/editing To-Do items --&gt;
    &lt;div class=&#34;fixed top-0 left-0 right-0 bottom-0 bg-black bg-opacity-50 hidden&#34; id=&#34;todo-modal&#34;&gt;
        &lt;div class=&#34;bg-white p-4 rounded shadow-lg w-1/2 mx-auto mt-20&#34;&gt;
            &lt;h2 class=&#34;font-bold mb-2&#34; id=&#34;modal-title&#34;&gt;Create To-Do&lt;/h2&gt;
            &lt;input type=&#34;text&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded&#34; placeholder=&#34;To-Do title&#34; id=&#34;todo-title&#34;&gt;
            &lt;input type=&#34;date&#34; class=&#34;w-full p-2 mb-2 border border-gray-300 rounded&#34; id=&#34;todo-due-date&#34;&gt;
            &lt;select class=&#34;w-full p-2 mb-2 border border-gray-300 rounded&#34; id=&#34;todo-priority&#34;&gt;
                &lt;option value=&#34;low&#34;&gt;Low&lt;/option&gt;
                &lt;option value=&#34;medium&#34;&gt;Medium&lt;/option&gt;
                &lt;option value=&#34;high&#34;&gt;High&lt;/option&gt;
            &lt;/select&gt;
            &lt;button class=&#34;bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded&#34; id=&#34;save-todo&#34;&gt;Save&lt;/button&gt;
            &lt;button class=&#34;bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded&#34; id=&#34;cancel-todo&#34;&gt;Cancel&lt;/button&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;script src=&#34;https://code.jquery.com/jquery-3.6.0.min.js&#34;&gt;&lt;/script&gt;
    &lt;script src=&#34;https://cdn.jsdelivr.net/npm/jquery-ui-dist@1.12.1/jquery-ui.min.js&#34;&gt;&lt;/script&gt;
    &lt;script&gt;
        let todos = JSON.parse(localStorage.getItem(&#39;todos&#39;)) || [];
        let currentTodo = null;

        // Initialize To-Do lists
        renderTodos();

        // Make To-Do items draggable and sortable
        $(&#39;#low-todos, #medium-todos, #high-todos&#39;).sortable({
            connectWith: &#39;.todo-list&#39;,
            update: function(event, ui) {
                const todoId = ui.item.data(&#39;id&#39;);
                const newPriority = $(this).data(&#39;priority&#39;);
                updateTodoPriority(todoId, newPriority);
            }
        }).disableSelection();

        // Add event listeners for adding To-Do items
        $(&#39;#add-low-todo, #add-medium-todo, #add-high-todo&#39;).on(&#39;click&#39;, function() {
            const priority = $(this).attr(&#39;id&#39;).split(&#39;-&#39;)[1];
            openCreateModal(priority);
        });

        // Add event listener for saving To-Do item
        $(&#39;#save-todo&#39;).on(&#39;click&#39;, function() {
            if (currentTodo) {
                updateTodo(currentTodo.id, {
                    title: $(&#39;#todo-title&#39;).val(),
                    dueDate: $(&#39;#todo-due-date&#39;).val(),
                    priority: $(&#39;#todo-priority&#39;).val()
                });
            } else {
                createTodo({
                    title: $(&#39;#todo-title&#39;).val(),
                    dueDate: $(&#39;#todo-due-date&#39;).val(),
                    priority: $(&#39;#todo-priority&#39;).val()
                });
            }
            closeModal();
        });

        // Add event listener for canceling To-Do item creation/editing
        $(&#39;#cancel-todo&#39;).on(&#39;click&#39;, closeModal);

        // Add event listener for editing To-Do item
        $(document).on(&#39;click&#39;, &#39;.todo-item&#39;, function() {
            const todoId = $(this).data(&#39;id&#39;);
            const todo = todos.find(t =&gt; t.id === todoId);
            openEditModal(todo);
        });

        // Add event listener for deleting To-Do item
        $(document).on(&#39;click&#39;, &#39;.delete-todo&#39;, function(e) {
            e.stopPropagation();
            const todoId = $(this).closest(&#39;.todo-item&#39;).data(&#39;id&#39;);
            deleteTodo(todoId);
        });

        // Function to render To-Do items
        function renderTodos() {
            todos.forEach(todo =&gt; {
                const todoHtml = `
                    &lt;div class=&#34;todo-item bg-white p-2 mb-2 border border-gray-300 rounded todo-list&#34; data-id=&#34;${todo.id}&#34;&gt;
                        &lt;span&gt;${todo.title}&lt;/span&gt;
                        &lt;span class=&#34;float-right&#34;&gt;${todo.dueDate}&lt;/span&gt;
                        &lt;button class=&#34;delete-todo float-right mr-2 text-red-500 hover:text-red-700&#34;&gt;
                            &lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; class=&#34;h-5 w-5&#34; viewBox=&#34;0 0 20 20&#34; fill=&#34;currentColor&#34;&gt;
                                &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z&#34; clip-rule=&#34;evenodd&#34; /&gt;
                            &lt;/svg&gt;
                        &lt;/button&gt;
                    &lt;/div&gt;
                `;
                $(`#${todo.priority}-todos`).append(todoHtml);
            });
        }

        // Function to open create modal
        function openCreateModal(priority) {
            currentTodo = null;
            $(&#39;#todo-title&#39;).val(&#39;&#39;);
            $(&#39;#todo-due-date&#39;).val(&#39;&#39;);
            $(&#39;#todo-priority&#39;).val(priority);
            $(&#39;#modal-title&#39;).text(&#39;Create To-Do&#39;);
            $(&#39;#todo-modal&#39;).removeClass(&#39;hidden&#39;);
        }

        // Function to open edit modal
        function openEditModal(todo) {
            currentTodo = todo;
            $(&#39;#todo-title&#39;).val(todo.title);
            $(&#39;#todo-due-date&#39;).val(todo.dueDate);
            $(&#39;#todo-priority&#39;).val(todo.priority);
            $(&#39;#modal-title&#39;).text(&#39;Edit To-Do&#39;);
            $(&#39;#todo-modal&#39;).removeClass(&#39;hidden&#39;);
        }

        // Function to close modal
        function closeModal() {
            $(&#39;#todo-modal&#39;).addClass(&#39;hidden&#39;);
            $(&#39;.todo-item&#39;).remove();
            todos = JSON.parse(localStorage.getItem(&#39;todos&#39;)) || [];
            renderTodos();
        }

        // Function to create To-Do item
        function createTodo(todo) {
            todo.id = Date.now().toString();
            todos.push(todo);
            localStorage.setItem(&#39;todos&#39;, JSON.stringify(todos));
        }

        // Function to update To-Do item
        function updateTodo(id, todo) {
            const index = todos.findIndex(t =&gt; t.id === id);
            if (index !== -1) {
                todos[index] = { ...todos[index], ...todo };
                localStorage.setItem(&#39;todos&#39;, JSON.stringify(todos));
            }
        }

        // Function to update To-Do item priority
        function updateTodoPriority(id, priority) {
            updateTodo(id, { priority });
        }

        // Function to delete To-Do item
        function deleteTodo(id) {
            todos = todos.filter(t =&gt; t.id !== id);
            localStorage.setItem(&#39;todos&#39;, JSON.stringify(todos));
            closeModal();
        }
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
          
        
        </description>
    </item>
    
    <item>
      <title></title>
      <link>https://sorenmat.dev/posts/openai_gpt_4.1/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/openai_gpt_4.1/</guid>
      <description>
        
          
          
          
        

        
          &lt;!DOCTYPE html&gt;
&lt;html lang=&#34;en&#34;&gt;
&lt;head&gt;
  &lt;meta charset=&#34;UTF-8&#34;&gt;
  &lt;title&gt;To-Do App - One Page&lt;/title&gt;
  &lt;meta name=&#34;viewport&#34; content=&#34;width=device-width, initial-scale=1.0&#34;&gt;
  &lt;!-- Tailwind CSS CDN --&gt;
  &lt;script src=&#34;https://cdn.tailwindcss.com&#34;&gt;&lt;/script&gt;
  &lt;!-- JQuery CDN --&gt;
  &lt;script src=&#34;https://code.jquery.com/jquery-3.6.0.min.js&#34;&gt;&lt;/script&gt;
  &lt;!-- JQuery UI CDN for Drag &amp; Drop --&gt;
  &lt;link rel=&#34;stylesheet&#34; href=&#34;https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css&#34;&gt;
  &lt;script src=&#34;https://code.jquery.com/ui/1.13.2/jquery-ui.min.js&#34;&gt;&lt;/script&gt;
  &lt;!-- Heroicons (for Trash Icon) --&gt;
  &lt;script src=&#34;https://unpkg.com/feather-icons&#34;&gt;&lt;/script&gt;
  &lt;style&gt;
    /* For draggable cursor */
    .draggable { cursor: grab; }
    .ui-draggable-dragging { opacity: 0.8; z-index: 20; }
    .droppable-highlight { background-color: #dbeafe !important; }
    /* Modal backdrop styling */
    .modal {
      background-color: rgba(31, 41, 55, 0.6);
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 50;
    }
  &lt;/style&gt;
&lt;/head&gt;
&lt;body class=&#34;bg-gray-50 min-h-screen flex flex-col&#34;&gt;

  &lt;header class=&#34;py-6 mb-4 shadow bg-white&#34;&gt;
    &lt;div class=&#34;container mx-auto px-4 flex justify-between items-center&#34;&gt;
      &lt;h1 class=&#34;text-3xl font-bold text-gray-900 tracking-tight&#34;&gt;To-Do List&lt;/h1&gt;
      &lt;span class=&#34;text-gray-600&#34;&gt;Drag and drop to re-prioritize tasks&lt;/span&gt;
    &lt;/div&gt;
  &lt;/header&gt;

  &lt;!-- Columns --&gt;
  &lt;main class=&#34;flex-1 container mx-auto px-4 pb-10&#34;&gt;
    &lt;div class=&#34;grid gap-4 grid-cols-1 md:grid-cols-3&#34;&gt;

      &lt;!-- Low Priority Column --&gt;
      &lt;section id=&#34;column-low&#34;
        class=&#34;priority-column rounded-lg bg-white shadow-md px-2 py-4 min-h-[550px] flex flex-col&#34;
        data-priority=&#34;Low&#34;&gt;
        &lt;div class=&#34;flex items-center mb-4&#34;&gt;
          &lt;span class=&#34;w-3 h-3 rounded-full bg-green-400&#34;&gt;&amp;nbsp;&lt;/span&gt;
          &lt;h2 class=&#34;ml-2 text-lg font-semibold text-green-700&#34;&gt;Low&lt;/h2&gt;
        &lt;/div&gt;
        &lt;div class=&#34;flex-1 space-y-2 todo-list&#34; data-priority=&#34;Low&#34;&gt;&lt;/div&gt;
        &lt;!-- Add new to-do button --&gt;
        &lt;button
          class=&#34;mt-4 flex items-center justify-center w-full text-green-600 border-dashed border-2 border-green-300 rounded-md py-2 hover:bg-green-50 transition&#34;
          data-priority=&#34;Low&#34;
          onclick=&#34;openTodoModal(&#39;create&#39;, &#39;Low&#39;)&#34;&gt;
          &lt;svg class=&#34;w-5 h-5 mr-2&#34; fill=&#34;none&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; viewBox=&#34;0 0 24 24&#34;&gt;
            &lt;path d=&#34;M12 4v16m8-8H4&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
          &lt;/svg&gt;
          + Add To-Do
        &lt;/button&gt;
      &lt;/section&gt;

      &lt;!-- Medium Priority Column --&gt;
      &lt;section id=&#34;column-medium&#34;
        class=&#34;priority-column rounded-lg bg-white shadow-md px-2 py-4 min-h-[550px] flex flex-col&#34;
        data-priority=&#34;Medium&#34;&gt;
        &lt;div class=&#34;flex items-center mb-4&#34;&gt;
          &lt;span class=&#34;w-3 h-3 rounded-full bg-yellow-400&#34;&gt;&amp;nbsp;&lt;/span&gt;
          &lt;h2 class=&#34;ml-2 text-lg font-semibold text-yellow-700&#34;&gt;Medium&lt;/h2&gt;
        &lt;/div&gt;
        &lt;div class=&#34;flex-1 space-y-2 todo-list&#34; data-priority=&#34;Medium&#34;&gt;&lt;/div&gt;
        &lt;!-- Add new to-do button --&gt;
        &lt;button
          class=&#34;mt-4 flex items-center justify-center w-full text-yellow-600 border-dashed border-2 border-yellow-300 rounded-md py-2 hover:bg-yellow-50 transition&#34;
          data-priority=&#34;Medium&#34;
          onclick=&#34;openTodoModal(&#39;create&#39;, &#39;Medium&#39;)&#34;&gt;
          &lt;svg class=&#34;w-5 h-5 mr-2&#34; fill=&#34;none&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; viewBox=&#34;0 0 24 24&#34;&gt;
            &lt;path d=&#34;M12 4v16m8-8H4&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
          &lt;/svg&gt;
          + Add To-Do
        &lt;/button&gt;
      &lt;/section&gt;

      &lt;!-- High Priority Column --&gt;
      &lt;section id=&#34;column-high&#34;
        class=&#34;priority-column rounded-lg bg-white shadow-md px-2 py-4 min-h-[550px] flex flex-col&#34;
        data-priority=&#34;High&#34;&gt;
        &lt;div class=&#34;flex items-center mb-4&#34;&gt;
          &lt;span class=&#34;w-3 h-3 rounded-full bg-red-400&#34;&gt;&amp;nbsp;&lt;/span&gt;
          &lt;h2 class=&#34;ml-2 text-lg font-semibold text-red-700&#34;&gt;High&lt;/h2&gt;
        &lt;/div&gt;
        &lt;div class=&#34;flex-1 space-y-2 todo-list&#34; data-priority=&#34;High&#34;&gt;&lt;/div&gt;
        &lt;!-- Add new to-do button --&gt;
        &lt;button
          class=&#34;mt-4 flex items-center justify-center w-full text-red-600 border-dashed border-2 border-red-300 rounded-md py-2 hover:bg-red-50 transition&#34;
          data-priority=&#34;High&#34;
          onclick=&#34;openTodoModal(&#39;create&#39;, &#39;High&#39;)&#34;&gt;
          &lt;svg class=&#34;w-5 h-5 mr-2&#34; fill=&#34;none&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; viewBox=&#34;0 0 24 24&#34;&gt;
            &lt;path d=&#34;M12 4v16m8-8H4&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
          &lt;/svg&gt;
          + Add To-Do
        &lt;/button&gt;
      &lt;/section&gt;
    &lt;/div&gt;
  &lt;/main&gt;

  &lt;!-- Modal for Create/Edit --&gt;
  &lt;div id=&#34;todo-modal&#34; class=&#34;modal hidden&#34;&gt;
    &lt;div class=&#34;bg-white rounded-lg shadow-lg p-6 w-full max-w-md&#34;&gt;
      &lt;form id=&#34;todo-form&#34; autocomplete=&#34;off&#34; class=&#34;space-y-4&#34;&gt;
        &lt;h2 class=&#34;font-semibold text-xl text-gray-800&#34; id=&#34;modal-title&#34;&gt;Add To-Do&lt;/h2&gt;
        &lt;input type=&#34;hidden&#34; id=&#34;todo-id&#34; value=&#34;&#34;&gt;
        &lt;div&gt;
          &lt;label for=&#34;todo-title&#34; class=&#34;block text-sm font-medium text-gray-700&#34;&gt;Title &lt;span class=&#34;text-red-400 ml-0.5&#34;&gt;*&lt;/span&gt;&lt;/label&gt;
          &lt;input id=&#34;todo-title&#34; required type=&#34;text&#34; class=&#34;mt-1 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500 shadow-sm&#34; maxlength=&#34;100&#34; placeholder=&#34;Enter to-do title&#34;&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;label for=&#34;todo-due-date&#34; class=&#34;block text-sm font-medium text-gray-700&#34;&gt;Due Date &lt;span class=&#34;text-red-400 ml-0.5&#34;&gt;*&lt;/span&gt;&lt;/label&gt;
          &lt;input id=&#34;todo-due-date&#34; required type=&#34;date&#34; class=&#34;mt-1 block w-full rounded-md border-gray-300 focus:border-blue-500 focus:ring-blue-500 shadow-sm&#34; min=&#34;&#34;&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;label class=&#34;block text-sm font-medium text-gray-700&#34;&gt;Priority&lt;/label&gt;
          &lt;div class=&#34;mt-1 flex space-x-2&#34;&gt;
            &lt;label&gt;
              &lt;input type=&#34;radio&#34; name=&#34;todo-priority&#34; value=&#34;Low&#34; class=&#34;accent-green-500&#34;&gt;
              &lt;span class=&#34;ml-1 text-green-600&#34;&gt;Low&lt;/span&gt;
            &lt;/label&gt;
            &lt;label&gt;
              &lt;input type=&#34;radio&#34; name=&#34;todo-priority&#34; value=&#34;Medium&#34; class=&#34;accent-yellow-500&#34;&gt;
              &lt;span class=&#34;ml-1 text-yellow-600&#34;&gt;Medium&lt;/span&gt;
            &lt;/label&gt;
            &lt;label&gt;
              &lt;input type=&#34;radio&#34; name=&#34;todo-priority&#34; value=&#34;High&#34; class=&#34;accent-red-500&#34;&gt;
              &lt;span class=&#34;ml-1 text-red-600&#34;&gt;High&lt;/span&gt;
            &lt;/label&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&#34;flex justify-end space-x-2 pt-2&#34;&gt;
          &lt;button type=&#34;button&#34; id=&#34;modal-cancel&#34; class=&#34;bg-gray-100 text-gray-700 px-4 py-2 rounded hover:bg-gray-200 font-medium&#34;&gt;Cancel&lt;/button&gt;
          &lt;button type=&#34;submit&#34; class=&#34;bg-blue-600 hover:bg-blue-700 text-white font-semibold px-5 py-2 rounded&#34;&gt;
            &lt;span id=&#34;modal-submit-label&#34;&gt;Add&lt;/span&gt;
          &lt;/button&gt;
        &lt;/div&gt;
      &lt;/form&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;!-- Modal Backdrop Click Close Handler --&gt;
  &lt;script&gt;
    $(document).on(&#34;mousedown&#34;, function(e){
      // Only close if clicking outside the modal content
      const $modal = $(&#39;#todo-modal&#39;);
      if(!$modal.hasClass(&#34;hidden&#34;) &amp;&amp; $(e.target).is(&#39;#todo-modal&#39;)) {
        closeTodoModal();
      }
    });
  &lt;/script&gt;

  &lt;!-- App Script --&gt;
  &lt;script&gt;
    // Utility: simple unique id generator
    function uuidv4() {
      return &#39;xxxxxxx&#39;.replace(/[x]/g, function () {
        return Math.floor(Math.random() * 10);
      });
    }

    // To-Do List State
    let todos = [];
    let editingTodoId = null; // Holds id if editing, null when creating

    // Priority colors for border cues
    const priorityColors = {
      Low:  &#39;border-green-400&#39;,
      Medium: &#39;border-yellow-400&#39;,
      High: &#39;border-red-400&#39;
    };

    // Return today&#39;s date in yyyy-mm-dd for min on due date
    function todayYMD() {
      const d = new Date();
      return d.toISOString().substr(0, 10);
    }

    // --- Rendering ---

    function renderTodos() {
      // Clear all columns
      $(&#39;.todo-list&#39;).empty();
      // Split and sort todos by due date then by title
      [&#39;Low&#39;, &#39;Medium&#39;, &#39;High&#39;].forEach(priority =&gt; {
        const $list = $(`.todo-list[data-priority=&#39;${priority}&#39;]`);
        const t = todos.filter(t =&gt; t.priority === priority)
          .sort((a, b) =&gt; (a.dueDate &gt; b.dueDate ? 1 : a.dueDate &lt; b.dueDate ? -1 : a.title.localeCompare(b.title)));
        t.forEach(todo =&gt; $list.append(renderTodoItem(todo)));
      });
      feather.replace(); // render icons
      makeTodosDraggable();
    }

    function renderTodoItem(todo) {
      return $(`
        &lt;div class=&#34;todo-card draggable rounded-lg border ${priorityColors[todo.priority]} bg-gray-50 p-3 shadow-sm flex items-center group hover:bg-gray-100 transition&#34;
          data-id=&#34;${todo.id}&#34;&gt;
          &lt;div class=&#34;flex-1 min-w-0 cursor-pointer&#34; onclick=&#34;openTodoModal(&#39;edit&#39;,&#39;${todo.priority}&#39;,&#39;${todo.id}&#39;)&#34;&gt;
            &lt;div class=&#34;font-medium text-gray-900 truncate&#34;&gt;${todo.title}&lt;/div&gt;
            &lt;div class=&#34;text-xs text-gray-500 pt-1 flex items-center space-x-1&#34;&gt;
              &lt;span&gt;
                &lt;svg class=&#34;w-4 h-4 inline text-blue-500 mr-0.5&#34; fill=&#34;none&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; viewBox=&#34;0 0 24 24&#34;&gt;
                  &lt;path d=&#34;M12 8v4l3 3&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
                  &lt;circle cx=&#34;12&#34; cy=&#34;12&#34; r=&#34;10&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
                &lt;/svg&gt;
                ${todo.dueDate}
              &lt;/span&gt;
              &lt;span class=&#34;ml-2 px-2 py-0.5 text-xs rounded ${priorityLabelClass(todo.priority)} font-bold&#34;&gt;${todo.priority}&lt;/span&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;button title=&#34;Delete To-Do&#34; class=&#34;ml-3 p-1 rounded hover:bg-red-50 text-red-500 trash-btn transition opacity-0 group-hover:opacity-100&#34; data-id=&#34;${todo.id}&#34;&gt;
            &lt;i data-feather=&#34;trash-2&#34;&gt;&lt;/i&gt;
          &lt;/button&gt;
        &lt;/div&gt;
      `);
    }

    function priorityLabelClass(priority) {
      switch (priority) {
        case &#39;Low&#39;: return &#39;bg-green-100 text-green-700&#39;;
        case &#39;Medium&#39;: return &#39;bg-yellow-100 text-yellow-700&#39;;
        case &#39;High&#39;: return &#39;bg-red-100 text-red-700&#39;;
      }
    }

    // --- Modal Logic ---
    function openTodoModal(mode, priority, todoId=null) {
      $(&#39;#todo-form&#39;)[0].reset();
      $(&#39;#todo-due-date&#39;).attr(&#39;min&#39;, todayYMD());
      editingTodoId = null;

      if (mode === &#39;create&#39;) {
        $(&#39;#modal-title&#39;).text(&#39;Add To-Do&#39;);
        $(&#34;#modal-submit-label&#34;).text(&#39;Add&#39;);
        $(&#39;input[name=&#34;todo-priority&#34;]&#39;).prop(&#39;checked&#39;, false);
        $(`input[name=&#34;todo-priority&#34;][value=&#34;${priority}&#34;]`).prop(&#39;checked&#39;, true);
        $(&#39;#todo-id&#39;).val(&#39;&#39;);
      } else if (mode === &#39;edit&#39;) {
        $(&#39;#modal-title&#39;).text(&#39;Edit To-Do&#39;);
        $(&#34;#modal-submit-label&#34;).text(&#39;Update&#39;);
        const todo = todos.find(t =&gt; t.id === todoId);
        if (!todo) return;
        editingTodoId = todo.id;
        $(&#39;#todo-id&#39;).val(todo.id);
        $(&#39;#todo-title&#39;).val(todo.title);
        $(&#39;#todo-due-date&#39;).val(todo.dueDate);
        $(&#39;input[name=&#34;todo-priority&#34;]&#39;).prop(&#39;checked&#39;, false);
        $(`input[name=&#34;todo-priority&#34;][value=&#34;${todo.priority}&#34;]`).prop(&#39;checked&#39;, true);
      }
      $(&#39;#todo-modal&#39;).removeClass(&#39;hidden&#39;);
      // Focus title
      setTimeout(()=&gt;{ $(&#39;#todo-title&#39;).trigger(&#39;focus&#39;); }, 100);
    }
    function closeTodoModal() {
      $(&#39;#todo-modal&#39;).addClass(&#39;hidden&#39;);
    }

    // --- Event Handlers ---

    // Modal Cancel Button
    $(&#39;#modal-cancel&#39;).on(&#39;click&#39;, function(e){
      e.preventDefault();
      closeTodoModal();
    });

    // Modal Submit (Add/Edit)
    $(&#39;#todo-form&#39;).on(&#39;submit&#39;, function(e){
      e.preventDefault();
      const id = $(&#39;#todo-id&#39;).val();
      const title = $(&#39;#todo-title&#39;).val().trim();
      const dueDate = $(&#39;#todo-due-date&#39;).val();
      const priority = $(&#39;input[name=&#34;todo-priority&#34;]:checked&#39;).val();
      if (!title.length || !dueDate || !priority) {
        return; // Prevent incomplete
      }

      if (!id) {
        // Add
        const todo = { id: uuidv4(), title, dueDate, priority };
        todos.push(todo);
      } else {
        // Edit
        const idx = todos.findIndex(t =&gt; t.id === id);
        if (idx &gt; -1) {
          todos[idx].title = title;
          todos[idx].dueDate = dueDate;
          todos[idx].priority = priority;
        }
      }
      renderTodos();
      closeTodoModal();
    });

    // Delete To-Do Event (delegated)
    $(document).on(&#39;click&#39;, &#39;.trash-btn&#39;, function(e){
      e.stopPropagation();
      const id = $(this).data(&#39;id&#39;);
      todos = todos.filter(t =&gt; t.id !== id);
      renderTodos();
    });

    // --- Drag &amp; Drop ---

    function makeTodosDraggable() {
      $(&#39;.draggable&#39;).draggable({
        helper: &#34;clone&#34;,
        revert: &#34;invalid&#34;,
        zIndex: 30,
        start: function (event, ui) {
        },
        stop: function(event, ui) {
          // nothing needed for now
        }
      });

      // Make columns droppable
      $(&#39;.priority-column&#39;).droppable({
        accept: &#39;.draggable&#39;,
        hoverClass: &#34;droppable-highlight&#34;,
        drop: function(event, ui) {
          const $dragged = ui.draggable;
          const todoId = $dragged.data(&#39;id&#39;);
          const newPriority = $(this).data(&#39;priority&#39;);
          if (!todoId) return;
          let idx = todos.findIndex(t =&gt; t.id === todoId);
          if (idx &gt; -1 &amp;&amp; todos[idx].priority !== newPriority) {
            todos[idx].priority = newPriority;
            renderTodos();
          }
        }
      });
    }

    // --- Startup ---

    // Add some demo todos for first time
    $(document).ready(function() {
      // Demo tasks
      todos = [
        {id: uuidv4(), title: &#39;Buy groceries&#39;, dueDate: todayYMD(), priority: &#39;Low&#39;},
        {id: uuidv4(), title: &#39;Prepare slide deck&#39;, dueDate: addDays(todayYMD(),2), priority: &#39;High&#39;},
        {id: uuidv4(), title: &#39;Renew gym membership&#39;, dueDate: addDays(todayYMD(),10), priority: &#39;Low&#39;},
        {id: uuidv4(), title: &#39;Call plumber&#39;, dueDate: addDays(todayYMD(),1), priority: &#39;Medium&#39;},
        {id: uuidv4(), title: &#39;Reply client email&#39;, dueDate: todayYMD(), priority: &#39;High&#39;},
        {id: uuidv4(), title: &#39;Team standup&#39;, dueDate: addDays(todayYMD(),1), priority: &#39;Medium&#39;},
      ];
      renderTodos();
    });

    // Helper add days
    function addDays(dateString, days) {
      let d = new Date(dateString);
      d.setDate(d.getDate() + days);
      return d.toISOString().slice(0, 10);
    }

    // Keyboard accessibility for modal (ESC)
    $(document).on(&#39;keydown&#39;, function(e){
      if(e.key === &#34;Escape&#34;) {
        closeTodoModal();
      }
    });

    // Remove native form submit when hitting Enter unintentionally
    $(&#34;#todo-title&#34;).on(&#34;keydown&#34;, function(e){
      if (e.key === &#34;Enter&#34;) {
        e.preventDefault();
        $(&#39;#todo-due-date&#39;).focus();
      }
    });
  &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
          
        
        </description>
    </item>
    
    <item>
      <title>Aggregates</title>
      <link>https://sorenmat.dev/posts/2013-08-21-aggregates/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://sorenmat.dev/posts/2013-08-21-aggregates/</guid>
      <description>
        
          
          
          
        

        
          &lt;h1 id=&#34;building-blocks-of-domain-driven-design-ddd&#34;&gt;Building blocks of Domain Driven Design (DDD)&lt;/h1&gt;
&lt;p&gt;This post will describe the main building blocks of domain driven design (Aggregates, Entities and Value Objects)&lt;/p&gt;
&lt;h2 id=&#34;entities&#34;&gt;Entities&lt;/h2&gt;
&lt;p&gt;Are objects that are defined by their identity (id). An example of this could be a ticket to a movie, it&amp;rsquo;s identity is the row / seat number.&lt;/p&gt;
&lt;p&gt;One of the more common &amp;ldquo;mistakes&amp;rdquo; in DDD, is to define to many objects as entities, so be aware of this pitfall.&lt;/p&gt;
          
        
        </description>
    </item>
    
  </channel>
</rss>
