<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>Geekality</title>
	<atom:link href="http://www.geekality.net/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.geekality.net</link>
	<description>With a hint of Social Ineptitude</description>
	<lastBuildDate>Tue, 02 May 2023 10:47:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
	<item>
		<title>How to split an earlier git commit into multiple ones</title>
		<link>https://www.geekality.net/2021/12/22/how-to-split-an-earlier-git-commit-into-multiple-ones/</link>
					<comments>https://www.geekality.net/2021/12/22/how-to-split-an-earlier-git-commit-into-multiple-ones/#comments</comments>
		
		<dc:creator><![CDATA[Torleif]]></dc:creator>
		<pubDate>Wed, 22 Dec 2021 20:25:28 +0000</pubDate>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Git]]></category>
		<guid isPermaLink="false">https://www.geekality.net/?p=3440</guid>

					<description><![CDATA[As usual, keep having to google this, so finally writing it down here&#8230; Last commit Simply do git reset HEAD~ and make new commits as needed. Commit further back Perform an interactive rebase (e.g. git rebase -i main), and change the commit from pick to edit. Reset the commit with git reset HEAD~. Make new &#8230; <a href="https://www.geekality.net/2021/12/22/how-to-split-an-earlier-git-commit-into-multiple-ones/" class="more-link">Continue reading <span class="screen-reader-text">How to split an earlier git commit into multiple ones</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>As usual, keep having to google this, so finally writing it down here&#8230;</p>
<h2>Last commit</h2>
<p>Simply do <code class="codecolorer text default"><span class="text">git reset HEAD~</span></code> and make new commits as needed.</p>
<h2>Commit further back</h2>
<ol>
<li>Perform an interactive rebase (e.g. <code class="codecolorer text default"><span class="text">git rebase -i main</span></code>), and change the commit from <code class="codecolorer text default"><span class="text">pick</span></code> to <code class="codecolorer text default"><span class="text">edit</span></code>.</li>
<li>Reset the commit with <code class="codecolorer text default"><span class="text">git reset HEAD~</span></code>.</li>
<li>Make new commits as needed.</li>
<li>Complete the rebase with <code class="codecolorer text default"><span class="text">git rebase --continue</span></code></li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://www.geekality.net/2021/12/22/how-to-split-an-earlier-git-commit-into-multiple-ones/feed/</wfw:commentRss>
			<slash:comments>55</slash:comments>
		
		
		<enclosure url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" length="3819541" type="image/png"/><media:content url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" width="3840" height="1200" medium="image" type="image/png"/>	</item>
		<item>
		<title>When did my Windows 10 last boot up?</title>
		<link>https://www.geekality.net/2021/10/15/when-did-my-windows-10-last-boot-up/</link>
					<comments>https://www.geekality.net/2021/10/15/when-did-my-windows-10-last-boot-up/#comments</comments>
		
		<dc:creator><![CDATA[Torleif]]></dc:creator>
		<pubDate>Fri, 15 Oct 2021 12:07:47 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Power Management]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://www.geekality.net/?p=3436</guid>

					<description><![CDATA[Sometimes curious about this, usually because I forgot to note what time I arrived at the office, and I keep forgetting how to check. So, here&#8217;s some commands I found on SuperUser which seem to do the trick: &#62; systeminfo &#124; find /i &#34;Boot Time&#34; System Boot Time: &#160; &#160; &#160; &#160; &#160;15.10.2021, 08:37:29 &#62; &#8230; <a href="https://www.geekality.net/2021/10/15/when-did-my-windows-10-last-boot-up/" class="more-link">Continue reading <span class="screen-reader-text">When did my Windows 10 last boot up?</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Sometimes curious about this, usually because I forgot to note what time I arrived at the office, and I keep forgetting how to check. So, here&#8217;s some commands I found on <a href="https://superuser.com/q/523726/62">SuperUser</a> which seem to do the trick:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;">&gt; systeminfo | find /i &quot;Boot Time&quot;<br />
System Boot Time: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;15.10.2021, 08:37:29<br />
&gt; wmic os get lastbootuptime<br />
LastBootUpTime<br />
20211015083729.500000+120<br />
&gt; net statistics workstation | find /i &quot;Statistics since&quot;<br />
Statistics since 15.10.2021 08:37:45</div></div>
<p>Also discovered <a href="https://superuser.com/a/1350900/62">this one</a>, which will create a more thorough report, which can be interesting to look at:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;">&gt; powercfg /sleepstudy /output report.html &amp;&amp; start report.html</div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.geekality.net/2021/10/15/when-did-my-windows-10-last-boot-up/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<enclosure url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" length="3819541" type="image/png"/><media:content url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" width="3840" height="1200" medium="image" type="image/png"/>	</item>
		<item>
		<title>NVDA shortcuts I keep forgetting</title>
		<link>https://www.geekality.net/2021/08/02/nvda-shortcuts-i-keep-forgetting/</link>
					<comments>https://www.geekality.net/2021/08/02/nvda-shortcuts-i-keep-forgetting/#respond</comments>
		
		<dc:creator><![CDATA[Torleif]]></dc:creator>
		<pubDate>Mon, 02 Aug 2021 12:05:35 +0000</pubDate>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[NVDA]]></category>
		<category><![CDATA[Shortcuts]]></category>
		<guid isPermaLink="false">https://www.geekality.net/?p=3429</guid>

					<description><![CDATA[Testing your web projects with a screen reader is quite important and informative, but can also be quite annoying while jumping back and forth between developing and testing. Here are some shortcuts I keep forgetting to make NVDA a bit less annoying during development: Ctrl Stops current reading Ins + S Switches between off-, sound-, &#8230; <a href="https://www.geekality.net/2021/08/02/nvda-shortcuts-i-keep-forgetting/" class="more-link">Continue reading <span class="screen-reader-text">NVDA shortcuts I keep forgetting</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Testing your web projects with a screen reader is quite important and informative, but can also be quite annoying while jumping back and forth between developing and testing. Here are some shortcuts I keep forgetting to make NVDA a bit less annoying during development:</p>
<table>
<tr>
<th><kbd>Ctrl</kbd></th>
<td>Stops current reading</td>
</tr>
<tr>
<th><kbd>Ins</kbd> + <kbd>S</kbd></th>
<td>Switches between off-, sound-, and speech-mode (while stuff keeps being listed in log and braille view</td>
</tr>
<tr>
<th><kbd>Ins</kbd> + <kbd>Q</kbd></th>
<td>Quite NVDA</td>
</tr>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.geekality.net/2021/08/02/nvda-shortcuts-i-keep-forgetting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" length="3819541" type="image/png"/><media:content url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" width="3840" height="1200" medium="image" type="image/png"/>	</item>
		<item>
		<title>How to increase heap size for node</title>
		<link>https://www.geekality.net/2021/05/10/how-to-increase-heap-size-for-node/</link>
					<comments>https://www.geekality.net/2021/05/10/how-to-increase-heap-size-for-node/#respond</comments>
		
		<dc:creator><![CDATA[Torleif]]></dc:creator>
		<pubDate>Mon, 10 May 2021 11:55:25 +0000</pubDate>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ESLint]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[TypeScript]]></category>
		<guid isPermaLink="false">https://www.geekality.net/?p=3425</guid>

					<description><![CDATA[Experienced getting fatal build errors on our build server during ESLint linting of our React project: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed &#8211; JavaScript heap out of memory [10012:0000000001DA2080] 184320 ms: Mark-sweep 2035.1 (2051.8) -> 2034.3 (2051.8) MB, 2297.9 / 0.0 ms (average mu = 0.114, current mu = 0.001) allocation failure &#8230; <a href="https://www.geekality.net/2021/05/10/how-to-increase-heap-size-for-node/" class="more-link">Continue reading <span class="screen-reader-text">How to increase heap size for node</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Experienced getting fatal build errors on our build server during ESLint linting of our React project:</p>
<blockquote><p>
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed &#8211; JavaScript heap out of memory</p>
<p><--- Last few GCs ---></p>
<p>[10012:0000000001DA2080]   184320 ms: Mark-sweep 2035.1 (2051.8) -> 2034.3 (2051.8) MB, 2297.9 / 0.0 ms  (average mu = 0.114, current mu = 0.001) allocation failure scavenge might not succeed<br />
[10012:0000000001DA2080]   185393 ms: Mark-sweep 2035.3 (2051.8) -> 2033.6 (2051.8) MB, 1068.8 / 0.0 ms  (average mu = 0.077, current mu = 0.003) allocation failure scavenge might not succeed
</p></blockquote>
<p>The MB values looked <em>very</em> suspicious in that they were on either side of 2048 MB (2 GB), so suspected our project had run into some sort of limit. And seems there is indeed a max limit of ~2 GB by default on the heap size.</p>
<p>To increase the node heap size limit, set the <code class="codecolorer text default"><span class="text">--max-old-space-size</span></code> to something more than 2048, e.g. like this on Windows:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;">setx NODE_OPTIONS &quot;--max-old-space-size=4096&quot; /m</div></div>
<p>To verify that it actually works (or check what it is by default), this command seems to do it:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;">node -e &quot;console.log(require('v8').getHeapStatistics().total_available_size / 1024 / 1024)&quot;</div></div>
<p>Note that the output for some reason always seem to be a bit more than what&#8217;s set as the limit. Not sure what that&#8217;s about, but anyways&#8230; ???????</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.geekality.net/2021/05/10/how-to-increase-heap-size-for-node/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" length="3819541" type="image/png"/><media:content url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" width="3840" height="1200" medium="image" type="image/png"/>	</item>
		<item>
		<title>Node: Control depth when logging objects</title>
		<link>https://www.geekality.net/2020/11/25/node-control-depth-when-logging-objects/</link>
					<comments>https://www.geekality.net/2020/11/25/node-control-depth-when-logging-objects/#comments</comments>
		
		<dc:creator><![CDATA[Torleif]]></dc:creator>
		<pubDate>Wed, 25 Nov 2020 14:50:04 +0000</pubDate>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Logging]]></category>
		<category><![CDATA[Node.js]]></category>
		<guid isPermaLink="false">https://www.geekality.net/?p=3420</guid>

					<description><![CDATA[For debugging it&#8217;s often useful to do console.log(someObjectOrArray). However, if the array is long or the object deep, a lot will be truncated. Apparently there&#8217;s a util one can use to get a bit more control over this though: import util from 'util' console.log&#40; &#160; util.inspect&#40;someObjectOrArray, &#123; &#160; &#160; colors: true, &#160; &#160; depth: 3, &#8230; <a href="https://www.geekality.net/2020/11/25/node-control-depth-when-logging-objects/" class="more-link">Continue reading <span class="screen-reader-text">Node: Control depth when logging objects</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>For debugging it&#8217;s often useful to do <code class="codecolorer text default"><span class="text">console.log(someObjectOrArray)</span></code>. However, if the array is long or the object deep, a lot will be truncated. Apparently there&#8217;s a util one can use to get a bit more control over this though:</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;"><span style="color: #FF0000;">import</span> util from <span style="color: #3366CC;">'util'</span><br />
<br />
console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><br />
&nbsp; util.<span style="color: #660066;">inspect</span><span style="color: #009900;">&#40;</span>someObjectOrArray<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; colors<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; depth<span style="color: #339933;">:</span> <span style="color: #CC0000;">3</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; compact<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#41;</span></div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.geekality.net/2020/11/25/node-control-depth-when-logging-objects/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<enclosure url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" length="3819541" type="image/png"/><media:content url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" width="3840" height="1200" medium="image" type="image/png"/>	</item>
		<item>
		<title>Drop in use SQL Server database</title>
		<link>https://www.geekality.net/2020/11/03/drop-in-use-sql-server-database/</link>
					<comments>https://www.geekality.net/2020/11/03/drop-in-use-sql-server-database/#respond</comments>
		
		<dc:creator><![CDATA[Torleif]]></dc:creator>
		<pubDate>Tue, 03 Nov 2020 14:44:14 +0000</pubDate>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.geekality.net/?p=3398</guid>

					<description><![CDATA[ALTER DATABASE name SET single_user WITH ROLLBACK immediate; DROP DATABASE name;]]></description>
										<content:encoded><![CDATA[<div class="codecolorer-container sql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> name <span style="color: #993333; font-weight: bold;">SET</span> single_user <span style="color: #993333; font-weight: bold;">WITH</span> <span style="color: #993333; font-weight: bold;">ROLLBACK</span> immediate;<br />
<span style="color: #993333; font-weight: bold;">DROP</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> name;</div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.geekality.net/2020/11/03/drop-in-use-sql-server-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" length="3819541" type="image/png"/><media:content url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" width="3840" height="1200" medium="image" type="image/png"/>	</item>
		<item>
		<title>How to clear local NuGet cache</title>
		<link>https://www.geekality.net/2020/08/10/how-to-clear-local-nuget-cache/</link>
					<comments>https://www.geekality.net/2020/08/10/how-to-clear-local-nuget-cache/#comments</comments>
		
		<dc:creator><![CDATA[Torleif]]></dc:creator>
		<pubDate>Mon, 10 Aug 2020 11:57:16 +0000</pubDate>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[NuGet]]></category>
		<guid isPermaLink="false">https://www.geekality.net/?p=3391</guid>

					<description><![CDATA[dotnet nuget locals -Clear all # or nuget locals all -Clear]]></description>
										<content:encoded><![CDATA[<div class="codecolorer-container powershell default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="powershell codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;">dotnet nuget locals <span style="color: pink;">-</span><span style="color: #008080; font-weight: bold;">Clear</span> all<br />
<span style="color: #008000;"># or</span><br />
nuget locals all <span style="color: pink;">-</span><span style="color: #008080; font-weight: bold;">Clear</span></div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.geekality.net/2020/08/10/how-to-clear-local-nuget-cache/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<enclosure url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" length="3819541" type="image/png"/><media:content url="https://www.geekality.net/wp-content/uploads/2015/04/Liriope.png" width="3840" height="1200" medium="image" type="image/png"/>	</item>
	</channel>
</rss>
