<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[www.colin.geek.nz]]></title><description><![CDATA[www.colin.geek.nz]]></description><link>https://www.colin.geek.nz/</link><image><url>https://www.colin.geek.nz/favicon.png</url><title>www.colin.geek.nz</title><link>https://www.colin.geek.nz/</link></image><generator>Ghost 1.22</generator><lastBuildDate>Tue, 16 Oct 2018 02:46:12 GMT</lastBuildDate><atom:link href="https://www.colin.geek.nz/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Using KiwiVoIP with Orcon's Netcomm NF4V Router]]></title><description><![CDATA[<div class="kg-card-markdown"><p>I wanted to use <a href="http://www.kiwivoip.co.nz/">KiwiVoIP</a> with my Netcomm NF4V router supplied by <a href="https://www.orcon.net.nz/">Orcon</a>. However, the fields to modify the settings are readonly. Luckily that can be solved a little JavaScript :)</p>
<p>Log on to the router and head to the Voice -&gt; SIP Basic Setting. Once there run the following</p></div>]]></description><link>https://www.colin.geek.nz/using-kiwivoip-with-orcons-netcomm-nf4v-router/</link><guid isPermaLink="false">5af673eb8535ba37349b348b</guid><category><![CDATA[orcon]]></category><category><![CDATA[netcomm]]></category><category><![CDATA[nf4v]]></category><category><![CDATA[router]]></category><category><![CDATA[modem]]></category><category><![CDATA[voip]]></category><category><![CDATA[javascript]]></category><category><![CDATA[unlock]]></category><category><![CDATA[god mode]]></category><category><![CDATA[kiwivoip]]></category><category><![CDATA[netcomm nf4v]]></category><category><![CDATA[hack]]></category><dc:creator><![CDATA[Colin Campbell]]></dc:creator><pubDate>Fri, 09 Feb 2018 23:30:20 GMT</pubDate><content:encoded><![CDATA[<div class="kg-card-markdown"><p>I wanted to use <a href="http://www.kiwivoip.co.nz/">KiwiVoIP</a> with my Netcomm NF4V router supplied by <a href="https://www.orcon.net.nz/">Orcon</a>. However, the fields to modify the settings are readonly. Luckily that can be solved a little JavaScript :)</p>
<p>Log on to the router and head to the Voice -&gt; SIP Basic Setting. Once there run the following JavaScript in the developer console.</p>
<pre><code class="language-javascript">(function() {
	var readonly = document
		.querySelectorAll('frame[name=&quot;basefrm&quot;]')[0]
		.contentWindow
		.document
		.querySelectorAll('input[readonly]');

	for (var i = 0; i &lt; readonly.length; i++)	{
		readonly[i].removeAttribute('readonly')
	}
})();
</code></pre>
<p>Now there are no more readonly fields and you can change the configuration to work with <a href="http://www.kiwivoip.co.nz/">KiwiVoIP</a> as shown below.</p>
<p><img src="//i.imgur.com/xMOH9oU.png" alt="Kiwi VoIP Configuration"></p>
<p>You can check to see if it worked by going to Voice -&gt; VoIP Status</p>
<p><img src="//i.imgur.com/UM6d2zQ.png" alt="Kiwi VoIP Status"></p>
<p>Hope someone finds this useful.</p>
<p><em>Disclaimer, don't blame me if you do it wrong or get in trouble :)</em></p>
</div>]]></content:encoded></item><item><title><![CDATA[Jacinda Ardern Slogan Generator]]></title><description><![CDATA[<div class="kg-card-markdown"><p>With only two more sleeps until election day, why not find out your personalised Jacinda Ardern slogan.</p>
<p>Just enter your name and date of birth below.</p>
<script src="//cdn.rawgit.com/davidjbradshaw/iframe-resizer/v3.5.5/js/iframeResizer.min.js"></script>
<iframe src="//cdn.rawgit.com/geeknz/ardern-slogan-generator/a7eed3/index.html" class="iframe-resizer" width="100%" scrolling="no" frameborder="0" onload="iFrameResize();"></iframe>
<p>Inspired by <a href="https://www.facebook.com/permalink.php?story_fbid=693607204182020&amp;id=447462752129801">https://www.facebook.com/permalink.php?story_fbid=693607204182020&amp;id=447462752129801</a></p>
</div>]]></description><link>https://www.colin.geek.nz/jacinda-ardern-slogan-generator/</link><guid isPermaLink="false">5af673eb8535ba37349b348a</guid><category><![CDATA[politics]]></category><dc:creator><![CDATA[Colin Campbell]]></dc:creator><pubDate>Wed, 20 Sep 2017 15:49:47 GMT</pubDate><content:encoded><![CDATA[<div class="kg-card-markdown"><p>With only two more sleeps until election day, why not find out your personalised Jacinda Ardern slogan.</p>
<p>Just enter your name and date of birth below.</p>
<script src="//cdn.rawgit.com/davidjbradshaw/iframe-resizer/v3.5.5/js/iframeResizer.min.js"></script>
<iframe src="//cdn.rawgit.com/geeknz/ardern-slogan-generator/a7eed3/index.html" class="iframe-resizer" width="100%" scrolling="no" frameborder="0" onload="iFrameResize();"></iframe>
<p>Inspired by <a href="https://www.facebook.com/permalink.php?story_fbid=693607204182020&amp;id=447462752129801">https://www.facebook.com/permalink.php?story_fbid=693607204182020&amp;id=447462752129801</a></p>
</div>]]></content:encoded></item><item><title><![CDATA[Proxy Settings Registry Generator]]></title><description><![CDATA[<div class="kg-card-markdown"><p>A year or so ago while I was studying I came across a problem with the computers in the University computer lab. I was unable to connect to the web application I was working on via localhost.</p>
<p>I found that this was caused by the proxy settings. Specifically the checkbox</p></div>]]></description><link>https://www.colin.geek.nz/proxy-settings-registry-generator/</link><guid isPermaLink="false">5af673eb8535ba37349b3487</guid><category><![CDATA[proxy]]></category><category><![CDATA[reg]]></category><category><![CDATA[registry]]></category><category><![CDATA[windows]]></category><category><![CDATA[hex]]></category><category><![CDATA[hexadecimal]]></category><category><![CDATA[generator]]></category><dc:creator><![CDATA[Colin Campbell]]></dc:creator><pubDate>Sun, 27 Nov 2016 02:03:14 GMT</pubDate><content:encoded><![CDATA[<div class="kg-card-markdown"><p>A year or so ago while I was studying I came across a problem with the computers in the University computer lab. I was unable to connect to the web application I was working on via localhost.</p>
<p>I found that this was caused by the proxy settings. Specifically the checkbox &quot;Bypass proxy server for local addresses&quot; was not selected. Unfortunately, there was a group policy preventing me from changing this setting.</p>
<p>Luckily, you can get around this policy by bypassing the UI and changing the settings directly via the registry. But there is one problem, the key to edit looks like this.</p>
<pre><code>Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections]
&quot;DefaultConnectionSettings&quot;=hex:46,00,00,00,00,00,00,00,09,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
</code></pre>
<p>If your lucky enough and have access to another machine without this policy you can set the settings on that machine then export the key. Otherwise, you are suck with editing the hexadecimal. Therefore, I started creating an application that would generate the hexadecimal for me.</p>
<p>Like most projects it got forgotten about until just recently when I started revisiting my old abandoned projects. Lately, I've been doing some development is <a href="https://angularjs.org/">AngularJS</a> so I thought why not finish this project using that.</p>
<p>So I did. A copy of the application has been embedded below. You can also checkout the code on <a href="https://github.com/geeknz/internet-settings">github</a>.</p>
<script src="//cdn.rawgit.com/davidjbradshaw/iframe-resizer/v3.5.5/js/iframeResizer.min.js"></script>
<iframe src="//cdn.rawgit.com/geeknz/internet-settings/1d395a/index.html" class="iframe-resizer" width="100%" scrolling="no" frameborder="0" onload="iFrameResize();"></iframe>
<p>I hope that you find it useful.</p>
<p><em>Disclaimer, make sure this is OK with your system administrator/company or whatever. Also you should probably backup your registry before making changes. I'm just saying it's not my fault if you get in trouble or break something.</em></p>
</div>]]></content:encoded></item><item><title><![CDATA[Installing RStudio on Ubuntu/Debian]]></title><description><![CDATA[For those who like R and Linux. I've made it a little easier to install RStudio. At least for Ubuntu/Debian.]]></description><link>https://www.colin.geek.nz/installing-rstudio-on-ubuntu-debian/</link><guid isPermaLink="false">5af673eb8535ba37349b3486</guid><category><![CDATA[ubuntu]]></category><category><![CDATA[debain]]></category><category><![CDATA[apt]]></category><category><![CDATA[aptitude]]></category><category><![CDATA[R]]></category><category><![CDATA[rstudio]]></category><category><![CDATA[repository]]></category><category><![CDATA[ppa]]></category><dc:creator><![CDATA[Colin Campbell]]></dc:creator><pubDate>Sun, 20 Nov 2016 09:14:40 GMT</pubDate><content:encoded><![CDATA[<div class="kg-card-markdown"><p>First add my proxy repository to your apt sources.</p>
<pre><code class="language-bash">sudo sh -c &quot;echo deb http://repo.colin.geek.nz/rstudio devel main &gt; /etc/apt/sources.list.d/rstudio.list&quot;
</code></pre>
<p>This repository does not host any of the RStudio packages but instead will redirect your apt client to the official packages hosted by RStudio.</p>
<p>You will also need to add a R repository to your apt sources. There are many mirrors, such as this one hosted by RStudio.</p>
<pre><code class="language-bash">sudo sh -c &quot;echo deb http://cran.rstudio.com/bin/linux/ubuntu xenial/ &gt;&gt; /etc/apt/sources.list.d/rstudio.list&quot;
</code></pre>
<p>You will also need to add the public keys</p>
<pre><code class="language-bash">wget -O - http://repo.colin.geek.nz/rstudio/rstudio-apt.asc | sudo apt-key add -
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 
</code></pre>
<p>Now finally, install rstudio and enjoy.</p>
<pre><code class="language-bash">sudo aptitude update
sudo aptitude install rstudio
</code></pre>
</div>]]></content:encoded></item><item><title><![CDATA[Using guake as the default terminal emulator]]></title><description><![CDATA[<div class="kg-card-markdown"><pre><code class="language-bash">sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/guake 80

sudo update-alternatives --config x-terminal-emulator
</code></pre>
</div>]]></description><link>https://www.colin.geek.nz/using-guake-as-default-terminal-emulator/</link><guid isPermaLink="false">5af673eb8535ba37349b3485</guid><category><![CDATA[ubuntu]]></category><category><![CDATA[trusty]]></category><category><![CDATA[guake]]></category><category><![CDATA[terminal]]></category><dc:creator><![CDATA[Colin Campbell]]></dc:creator><pubDate>Sat, 25 Apr 2015 10:36:45 GMT</pubDate><content:encoded><![CDATA[<div class="kg-card-markdown"><pre><code class="language-bash">sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/guake 80

sudo update-alternatives --config x-terminal-emulator
</code></pre>
</div>]]></content:encoded></item></channel></rss>