<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-05-06:301081</id>
  <title>Darkoshi</title>
  <subtitle>Darkoshi</subtitle>
  <author>
    <name>Darkoshi</name>
  </author>
  <link rel="alternate" type="text/html" href="https://darkoshi.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://darkoshi.dreamwidth.org/data/atom"/>
  <updated>2021-02-03T06:35:13Z</updated>
  <dw:journal username="darkoshi" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-05-06:301081:794433</id>
    <link rel="alternate" type="text/html" href="https://darkoshi.dreamwidth.org/794433.html"/>
    <link rel="self" type="text/xml" href="https://darkoshi.dreamwidth.org/data/atom/?itemid=794433"/>
    <title>maybe the view is more than the one table...</title>
    <published>2021-02-03T05:57:36Z</published>
    <updated>2021-02-03T06:35:13Z</updated>
    <category term="programming"/>
    <category term="debugging"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">The reason why I'm still debugging code at 12:52am is that&lt;br /&gt;&lt;br /&gt;I've built a precarious sand castle in my mind &lt;br /&gt;where each grain of sand is a method call or a variable value or some interaction &lt;br /&gt;and if I stop now, the ocean waves will wash the sand castle away,&lt;br /&gt;and I won't be able to get back to it again tomorrow&lt;br /&gt;without having to build it up again from scratch&lt;br /&gt;&lt;br /&gt;and anyway, I'm closer now than ever before&lt;br /&gt;at having reached the top of the castle,&lt;br /&gt;so maybe just maybe &lt;br /&gt;the jewel in the upper tower &lt;br /&gt;will be mine&lt;br /&gt;if I reach &lt;br /&gt;a little bit&lt;br /&gt;further&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;achievement reached!&lt;br /&gt;the view is the table&lt;br /&gt;but the 700 table is not the 701 view.&lt;br /&gt;of course, of course!&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=darkoshi&amp;ditemid=794433" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-05-06:301081:788998</id>
    <link rel="alternate" type="text/html" href="https://darkoshi.dreamwidth.org/788998.html"/>
    <link rel="self" type="text/xml" href="https://darkoshi.dreamwidth.org/data/atom/?itemid=788998"/>
    <title>blankets of white</title>
    <published>2021-01-14T08:03:01Z</published>
    <updated>2021-01-14T08:33:24Z</updated>
    <category term="programming"/>
    <category term="language"/>
    <category term="debugging"/>
    <category term="weather"/>
    <category term="words"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">A layer of fog persisted here past noon today.  It felt quiet and muted and calm, like after a snowfall. &lt;br /&gt;&lt;br /&gt;An Austrian radio station mentioned a "Schneeflockdown".  Schneeflocke is German for 'snowflake'. So Schneeflockdown is a cute bilingual way of saying "snowed in".&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;While debugging, I came across this comment in angular.js:&lt;br /&gt;&lt;br /&gt;   // Insanity Warning: scope depth-first traversal&lt;br /&gt;   // yes, this code is a bit crazy, but it works and we have tests to prove it!&lt;br /&gt;&lt;br /&gt;(I didn't write down what version of the file we are using, so am not able to find it online right now.)&lt;br /&gt;&lt;br /&gt;This is the code that followed the comment. After that comment, I didn't bother trying to make sense of it. It wasn't related to what I was debugging anyway:&lt;br /&gt;&lt;pre&gt;
   if (!(next = ((current.$$watchersCount &amp;&amp; current.$$childHead) ||
         (current !== target &amp;&amp; current.$$nextSibling)))) {
       while (current !== target &amp;&amp; !(next = current.$$nextSibling)) {
         current = current.$parent;
       }
     }
   } while ((current = next));&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=darkoshi&amp;ditemid=788998" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-05-06:301081:587116</id>
    <link rel="alternate" type="text/html" href="https://darkoshi.dreamwidth.org/587116.html"/>
    <link rel="self" type="text/xml" href="https://darkoshi.dreamwidth.org/data/atom/?itemid=587116"/>
    <title>lovely goose chase</title>
    <published>2017-03-14T03:49:51Z</published>
    <updated>2017-03-14T03:49:51Z</updated>
    <category term="programming"/>
    <category term="debugging"/>
    <dw:mood>amused/relieved</dw:mood>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">I finally figured out that the problem I've been debugging for the last 2 days, was only happening due to me having set a breakpoint in a certain place. One module was writing data to a cache. When another module tried to read the data, it wasn't found. The cache is configured with a "timeToLive" value of 180 seconds (which was unbeknownst to me before, but NOW I KNOW).  My breakpoint was causing the data to expire before it could be read, which then caused other errors.&lt;br /&gt;&lt;br /&gt;It makes perfect sense now.  Back when this problem started happening, it didn't make any sense at all. What I was testing had been working fine before, and then it started getting these strange unexpected errors for no discernible reason.&lt;br /&gt;&lt;br /&gt;The ironic part is that I had set the breakpoint in order to change some data on a database row, in order to force an error, as I was trying to test the module's error handling. But then, instead of getting the expected error, I started getting unexpected errors, even when I didn't change the row. At least all this did allow me to find and fix some other problems with the error handling.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=darkoshi&amp;ditemid=587116" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
