<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Darkoshi</title>
  <link>https://darkoshi.dreamwidth.org/</link>
  <description>Darkoshi - Dreamwidth Studios</description>
  <lastBuildDate>Wed, 03 Feb 2021 05:57:36 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>darkoshi</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/736075/301081</url>
    <title>Darkoshi</title>
    <link>https://darkoshi.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://darkoshi.dreamwidth.org/794433.html</guid>
  <pubDate>Wed, 03 Feb 2021 05:57:36 GMT</pubDate>
  <title>maybe the view is more than the one table...</title>
  <link>https://darkoshi.dreamwidth.org/794433.html</link>
  <description>The reason why I&apos;m still debugging code at 12:52am is that&lt;br /&gt;&lt;br /&gt;I&apos;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&apos;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&apos;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=&quot;https://www.dreamwidth.org/tools/commentcount?user=darkoshi&amp;ditemid=794433&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://darkoshi.dreamwidth.org/794433.html</comments>
  <category>debugging</category>
  <category>programming</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://darkoshi.dreamwidth.org/788998.html</guid>
  <pubDate>Thu, 14 Jan 2021 08:03:01 GMT</pubDate>
  <title>blankets of white</title>
  <link>https://darkoshi.dreamwidth.org/788998.html</link>
  <description>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 &quot;Schneeflockdown&quot;.  Schneeflocke is German for &apos;snowflake&apos;. So Schneeflockdown is a cute bilingual way of saying &quot;snowed in&quot;.&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&apos;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&apos;t bother trying to make sense of it. It wasn&apos;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=&quot;https://www.dreamwidth.org/tools/commentcount?user=darkoshi&amp;ditemid=788998&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://darkoshi.dreamwidth.org/788998.html</comments>
  <category>language</category>
  <category>programming</category>
  <category>weather</category>
  <category>words</category>
  <category>debugging</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://darkoshi.dreamwidth.org/587116.html</guid>
  <pubDate>Tue, 14 Mar 2017 03:49:51 GMT</pubDate>
  <title>lovely goose chase</title>
  <link>https://darkoshi.dreamwidth.org/587116.html</link>
  <description>I finally figured out that the problem I&apos;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&apos;t found. The cache is configured with a &quot;timeToLive&quot; 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&apos;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&apos;s error handling. But then, instead of getting the expected error, I started getting unexpected errors, even when I didn&apos;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=&quot;https://www.dreamwidth.org/tools/commentcount?user=darkoshi&amp;ditemid=587116&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://darkoshi.dreamwidth.org/587116.html</comments>
  <category>programming</category>
  <category>debugging</category>
  <lj:mood>amused/relieved</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
