<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Jacques Marneweck&apos;s Blog</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/" />
    <link rel="self" type="application/atom+xml" href="http://www.powertrip.co.za/blog/atom.xml" />
   <id>tag:www.powertrip.co.za,2010:/blog//1</id>
    <link rel="service.post" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1" title="Jacques Marneweck's Blog" />
    <updated>2010-05-18T20:23:07Z</updated>
    <subtitle>PHP, FreeBSD, MySQL, python and whatever I else that I just happen to be busy with</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.32-en</generator>
 

<entry>
    <title>OpenSolaris and VMWare boot issues</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000624.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=624" title="OpenSolaris and VMWare boot issues" />
    <id>tag:www.powertrip.co.za,2010:/blog//1.624</id>
    
    <published>2010-05-18T19:41:01Z</published>
    <updated>2010-05-18T20:23:07Z</updated>
    
    <summary><![CDATA[When running OpenSolaris SX:CE &gt;= snv_100 on different flavours of VMWare (Fusion, ESX, etc.) one needs to change edit the grub menu to include "disable-pcieb=true" at the end of the kernel line. To do this you will need to hit...]]></summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="OpenSolaris" />
    
        <category term="Sun" />
    
        <category term="Systems Administration" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>When running OpenSolaris SX:CE &gt;= snv_100 on different flavours of VMWare (Fusion, ESX, etc.) one needs to change edit the grub menu to include "disable-pcieb=true" at the end of the kernel line.  To do this you will need to hit "e" to edit on the grub menu item, and then "e" on the line for the kernel.  At the end of the line if there is no "-B" with options after that, add the "-B disable-pcieb=true".  Once you have installed OpenSolaris, you can go ahead and edit your /boot/grub/menu.lst and add this there as well.</p>]]>
        
    </content>
</entry>

<entry>
    <title>How many drafts do you have in your blog software?</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000623.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=623" title="How many drafts do you have in your blog software?" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.623</id>
    
    <published>2009-12-22T21:07:34Z</published>
    <updated>2009-12-22T21:09:33Z</updated>
    
    <summary>I currently have 43 draft entries in my blog software (movable type) that I&apos;ve not yet published as I have not gotten round to posting some of the posts....</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="Blogging" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>I currently have 43 draft entries in my blog software (movable type) that I've not yet published as I have not gotten round to posting some of the posts.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Google &quot;Public DNS&quot; to compete against OpenDNS</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000622.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=622" title="Google &quot;Public DNS&quot; to compete against OpenDNS" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.622</id>
    
    <published>2009-12-03T17:36:28Z</published>
    <updated>2009-12-03T17:56:19Z</updated>
    
    <summary>Google have launched their &quot;Public DNS&quot; service - a similar service to the OpenDNS public dns resolvers. It is going to be interesting to see how much competition occurs. It is usually faster to use the OpenDNS public dns resolvers...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="Google" />
    
        <category term="Internet Industry" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p><a href="http://www.google.com/">Google</a> have launched their "<a href="http://code.google.com/speed/public-dns/">Public DNS</a>" service - a similar service to the <a href="http://www.opendns.com/">OpenDNS</a> public dns resolvers.  It is going to be interesting to see how much competition occurs.  It is usually faster to use the OpenDNS public dns resolvers than one's upstream ISP's one.  Not sure when Google will start adding additional features like OpenDNS like blocking access to malware sites, ability to see how many DNS queries you are making, etc.</p>

<p>If you want a non-filtered service at this point in time use the Google Public DNS servers (they are using Level3 for their upstream connectivity):</p>

<blockquote>8.8.8.8 and 8.8.4.4</blockquote>

<p>And if you like filtered DNS results you would want to use the OpenDNS ones:</p>

<blockquote>208.67.222.222 and 208.67.220.220</blockquote>

<p><strong>UPDATE</strong>:</p>

<p>Quick stat from doing DNS queries against Google, IS and OpenDNS's cache servers:</p>

<p>Google: 546ms and 243ms<br />
IS: 303ms and 36ms<br />
OpenDNS: 432ms and 297ms</p>

<p>Looks like all three cache the results on their anycast clusters.</p>]]>
        
    </content>
</entry>

<entry>
    <title>How do you use MySQL as a DBA?</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000621.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=621" title="How do you use MySQL as a DBA?" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.621</id>
    
    <published>2009-12-03T17:18:21Z</published>
    <updated>2009-12-03T17:27:44Z</updated>
    
    <summary>Interesting question for MySQL DBA&apos;s: do you prefer using the mysql cli interface and know the SQL statements to execute in order to do your admin work like creating databases or do you prefer using the mysqladmin interface? Personally I...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="MySQL" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>Interesting question for <a class="extlink" href="http://www.mysql.com/" title="MySQL" rel="homepage">MySQL</a> DBA's: do you prefer using the mysql cli interface and know the SQL statements to execute in order to do your admin work like creating databases or do you prefer using the mysqladmin interface?  Personally I prefer using the mysql cli interface and executing things like 'CREATE DATABASE foo' rather than 'mysqladmin create blah' - I suppose I like the SQL queries over remembering the other way of doing things.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Upgraded Movable Type</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000619.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=619" title="Upgraded Movable Type" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.619</id>
    
    <published>2009-11-08T22:12:13Z</published>
    <updated>2009-11-08T22:26:56Z</updated>
    
    <summary>Finally managed to get round to upgrading movable type - need to hack my wpcp function to add files that haven&apos;t been added with svn add for some odd reason. I must admit that I like the cleaner appearance of...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="Movable Type" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>Finally managed to get round to upgrading movable type - need to hack my wpcp function to add files that haven't been added with svn add for some odd reason.  I must admit that I like the cleaner appearance of the admin interface.</p>

<p>Added bonus is not having to spend a few hours upgrading the templates - it seems that they've fixed that broken feature this time around.</p>]]>
        
    </content>
</entry>

<entry>
    <title>jot gotcha</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000618.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=618" title="jot gotcha" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.618</id>
    
    <published>2009-08-11T19:24:17Z</published>
    <updated>2009-08-11T19:25:07Z</updated>
    
    <summary>Seeing that I run into this jot gotcha every couple of months while writing shell scripts, I thought I would add a reminder for myself here (and so that google can pick this up for me next time). On FreeBSD,...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="FreeBSD" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>Seeing that I run into this jot gotcha every couple of months while writing shell scripts, I thought I would add a reminder for myself here (and so that google can pick this up for me next time).</p>

<p>On FreeBSD, by default you don't get access to the seq command to generate sequences, so you naturally will use jot for your shell scripting needs for generating number sequences.</p>

<p>So for example, we want to start with 0 and increment to 4 (one cannot use variables in the bash sequence generator, so {0..$max} won't work here.  So for example we have 5 logfiles that we want to grok on a server and another has 6 so instead of hardcoding the varible on each server like {0..4} where we have 4, {0..6} where we have 6, we use jot and some nasty piping commands to get that number.</p>

<blockquote>
<pre>
root# jot 4     
1
2
3
4
</blockquote>
</pre>

<p>Okay so misread the manual very quickly and try:</p>

<blockquote>
<pre>
root# jot 0 4
4
5
6
7
8
9
10
*snip*
93211
93212
93213
93214
</pre>
</blockquote>

<p>Pass the number of iterations (5), start (0) and where it ends (4):</p>

<blockquote>
<pre>
root# jot 5 0 4
0
1
2
3
4
</pre>
</blockquote>]]>
        
    </content>
</entry>

<entry>
    <title>Firefox 3.5 Regression issues with wildcard SSL certificates</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000617.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=617" title="Firefox 3.5 Regression issues with wildcard SSL certificates" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.617</id>
    
    <published>2009-07-04T14:30:31Z</published>
    <updated>2009-07-04T14:44:42Z</updated>
    
    <summary> I really hate educating people how to do the following, but a bit of an explanation around this. Mozilla Firefox 3.5 now does not play nice with wildcard SSL certificates where you do things like service.servername.example.com when you only...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="Mozilla" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>
I really hate educating people how to do the following, but a bit of an explanation around this.  Mozilla Firefox 3.5 now does not play nice with wildcard SSL certificates where you do things like service.servername.example.com when you only have a wildcard SSL certificate for *.example.com - the guys at Mozilla have marked the bug as "Won't Fix" which basically means that one now needs to teach people how to bypass this warning.
</p>

<p>
<img alt="firefox-wildcard-untrusted.jpg" src="http://www.powertrip.co.za/blog/firefox-wildcard-untrusted.jpg" width="687" height="627" />
</p>

<blockquote>
<p>
The latest version of Mozilla Firefox 3.5 has issues with wildcard SSL certificates and is giving warnings that "This Connection is Untrusted" when visiting https://service.servername.example.com/ - this is unfortunately an issue with the Mozilla Firefox 3.5 web browser. You will need to click on the "Add Exception..." link, ignore the warning about "You are about to override how Firefox identifies this site. Legitimate banks, stores, and other public sites will not ask you to do this.". Click on "Get Certificate" and then click on "Confirm Security Exception". A bug is being filled with Mozilla about this regression in their software.
</p>
</blockquote>

<p>
<img alt="firefox-wildcard-exception.jpg" src="http://www.powertrip.co.za/blog/firefox-wildcard-exception.jpg" width="516" height="275" />
</p>

<p>Hopefully Mozilla can release a patch Firefox 3.5.1 which reverts this regression in their software.</p>

<p>Anyway here is the list of bugs I'm going to be keeping an eye on for this issue:</p>

<ul>
  <li><a class="extlink" href="https://bugzilla.mozilla.org/show_bug.cgi?id=495339">Bug 495339 -  wildcards in SSL certificates no longer match multiple levels of subdomain</a></li>
  <li><a class="exlink" href="https://bugzilla.mozilla.org/show_bug.cgi?id=159483"> Bug 159483 -  cert name matching: RFC 2818 vs. backwards compatibility (wildcards)</a></li>
  <li><a class="exlink" href="https://bugzilla.mozilla.org/show_bug.cgi?id=491406">Bug 491406 -  *.wiki.sourceforge.net not valid site for *.sourceforge.net SSL certificate  </a></li>
<!--  <li><a class="exlink" href=""></a></li>-->
</ul>]]>
        
    </content>
</entry>

<entry>
    <title>Deploying sites in seconds</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000616.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=616" title="Deploying sites in seconds" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.616</id>
    
    <published>2009-07-03T18:48:32Z</published>
    <updated>2009-07-03T19:24:02Z</updated>
    
    <summary>Currently playing around with the private beta of the Smart Platform from Joyent - took less than 2 minutes to deploy their hello world app (apart from me getting a bit annoyed with git). Need to still work on getting...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="Joyent" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>Currently playing around with the private beta of the <a href="http://smart.joyent.com/">Smart Platform</a> from <a href="http://www.joyent.com/">Joyent</a> - took less than 2 minutes to deploy their hello world app (apart from me getting a bit annoyed with git).  Need to still work on getting git to not warn me about:</p>

<blockquote>
<pre>
$ git push
warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated.  This may
warning: not necessarily be what you want to happen.
warning: 
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring 'push.default' to:
warning:   'nothing'  : Do not push anything
warning:   'matching' : Push all matching branches (default)
warning:   'tracking' : Push the current branch to whatever it is tracking
warning:   'current'  : Push the current branch
Everything up-to-date
</pre>
</blockquote>

<p>A basically static site took a while longer as I misread a page in the documentation and then had files sitting in the incorrect location.  One still needs a bootstrap.js file even if you intend on just serving up static files.</p>

<p>Seems like one needs to tell git to only attempt to push the currrent branch using the following command gets rid of the warning when using git push in future:</p>

<blockquote>
<pre>
$ git config push.default current
</pre>
</blockquote>]]>
        
    </content>
</entry>

<entry>
    <title>FreeBSD vr network card issues</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000615.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=615" title="FreeBSD vr network card issues" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.615</id>
    
    <published>2009-04-18T21:38:37Z</published>
    <updated>2009-04-18T21:50:53Z</updated>
    
    <summary>Sort of a note to self for the next time I bump into a very annoying issue with network cards that use the VIA Technologies Rhine I/II/III controller chips on network cards like the quite popular dlink (shows up under...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="FreeBSD" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>Sort of a note to self for the next time I bump into a very annoying issue with network cards that use the VIA Technologies Rhine I/II/III controller chips on network cards like the quite popular dlink (shows up under vrX in ifconfig -a) is that when you start binding multiple IP addresses on a vr card a few seconds later the card stops working.</p>

<p>Turns out there is a bug of sorts with the FreeBSD vr driver which needs some fixing so moral of the story for the moment is not using vr based network cards till this is fixed.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Twitter Search the posterchild for 500&apos;s</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000614.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=614" title="Twitter Search the posterchild for 500's" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.614</id>
    
    <published>2009-03-04T20:20:52Z</published>
    <updated>2009-03-20T10:07:12Z</updated>
    
    <summary>One of my pet peeves is currently when Twitter Search is down - there goes being able to zone into conversations on any given topic from bsdisms, following cloud computing, etc. Tired of seeing: Status: 500 Internal Server Error Content-Type:...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="Blogging" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>One of my pet peeves is currently when <a class="extlink" href="http://search.twitter.com/">Twitter Search</a> is down - there goes being able to zone into conversations on any given topic from bsdisms, following cloud computing, etc.</p>

<p>Tired of seeing:</p>

<blockquote>
Status: 500 Internal Server Error Content-Type: text/html
500 Internal Server Error
</blockquote>

<p>How difficult is it to fix something that was not broken when it was Summize?</p>

<p>This is what a reply from twitter looks like:</p>

<blockquote>
<pre>
HTTP/1.1 200 OK
Date: Wed, 04 Mar 2009 20:52:44 GMT
Server: hi
Content-Type: text/html; charset=UTF-8
Cache-Control: max-age=300
Expires: Wed, 04 Mar 2009 20:57:44 GMT
Vary: Accept-Encoding
X-Varnish: 1089043412
Age: 0
X-Cache-Svr: searchweb008.twitter.com
X-Cache: MISS
Via: 1.1 varnish, 1.1 bc1-rba
Content-Length: 122
Connection: Keep-Alive
Set-Cookie: _search_twitter_sess=*snipped*; path=/

<p>Status: 500 Internal Server Error<br />
Content-Type: text/html</p>

<p><html><body><h1>500 Internal Server Error</h1></body></html><br />
</pre><br />
</blockquote></p>

<p><strong>UPDATE:</strong></p>

<p>Okay it's up if I go via reverse proxy in the USA - so it's just down for South Africans.</p>

<p><strong>UPDATE:</strong></p>

<p>IS have added some rules to their netcaches and search.twitter.com is working again.</p>]]>
        
    </content>
</entry>

<entry>
    <title>No Smarty</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000613.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=613" title="No Smarty" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.613</id>
    
    <published>2009-02-22T17:38:42Z</published>
    <updated>2009-02-22T17:42:12Z</updated>
    
    <summary>If you&apos;ve not heard about it yet, there is now a website advocating not using Smarty. The time for using smarty has gone - but makes one wonder if Flickr, Facebook, etc. are still using it....</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="PHP" />
    
        <category term="Smarty Template Engine" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>If you've not heard about it yet, there is now a website advocating not using <a href="http://www.nosmarty.net/">Smarty</a>.  The time for using smarty has gone - but makes one wonder if Flickr, Facebook, etc. are still using it.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Happy New Year!</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000612.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=612" title="Happy New Year!" />
    <id>tag:www.powertrip.co.za,2009:/blog//1.612</id>
    
    <published>2009-01-01T21:44:33Z</published>
    <updated>2009-01-01T21:46:56Z</updated>
    
    <summary>Just a quick blog post to say Happy New Year! 2008 seems to have flow by quite quickly and at the start of 2009 I&apos;ve made a resolution to not make any resolutions as I never tend to be able...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="Personal" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>Just a quick blog post to say Happy New Year!  2008 seems to have flow by quite quickly and at the start of 2009 I've made a resolution to not make any resolutions as I never tend to be able to keep any of my new years resolutions.  Hopefully this year I can get round to blogging more often which is something which I've not been following through on.</p>]]>
        
    </content>
</entry>

<entry>
    <title>MRTG missing SNMP_util</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000610.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=610" title="MRTG missing SNMP_util" />
    <id>tag:www.powertrip.co.za,2008:/blog//1.610</id>
    
    <published>2008-10-26T20:14:32Z</published>
    <updated>2008-10-26T20:21:09Z</updated>
    
    <summary>One of the joys of installing ports on FreeBSD is the odd occasion that the dependencies list is missing a dependency. is not installed you get nice perl errors in the case of the following # cfgmaker public@127.0.0.1 Can&apos;t locate...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="FreeBSD" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>One of the joys of installing ports on FreeBSD is the odd occasion that the dependencies list is missing a dependency.   is not installed you get nice perl errors in the case of the following</p>

<pre>
# cfgmaker public@127.0.0.1
Can't locate SNMP_util.pm in @INC (@INC contains: /usr/local/bin/../lib/mrtg2 /usr/local/bin /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/bin/cfgmaker line 105.
</pre>

<p>Turned out SNMP_util is missing and required a quick install of SNMP_Session to make cfgmaker work.</p>

<pre>
cd /usr/ports/*/p5-SNMP_Session
make install clean
</pre>

<p>One can see that the dependency list for mrtg excludes SNMP_Session:</p>

<pre>
# pkg_info -rR mrtg-2.16.2,1
Information for mrtg-2.16.2,1:

<p>Depends on:<br />
Dependency: perl-5.8.8_1<br />
Dependency: p5-Socket6-0.22<br />
Dependency: p5-Pod-Parser-1.35_2<br />
Dependency: p5-IO-Socket-INET6-2.56<br />
Dependency: p5-Digest-SHA1-2.11<br />
Dependency: p5-Digest-HMAC-1.01<br />
Dependency: p5-Crypt-CBC-2.30<br />
Dependency: p5-Crypt-DES-2.05<br />
Dependency: p5-Net-SNMP-5.2.0<br />
Dependency: png-1.2.32<br />
Dependency: jpeg-6b_7<br />
Dependency: pkg-config-0.23_1<br />
Dependency: freetype2-2.3.7<br />
Dependency: libiconv-1.11_1<br />
Dependency: gd-2.0.35,1<br />
</pre></p>

<p>Anyways I need to send-pr a patch for the port to get this fixed in the ports tree.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Patches to update rails 2.1.0 to 2.1.1</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000609.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=609" title="Patches to update rails 2.1.0 to 2.1.1" />
    <id>tag:www.powertrip.co.za,2008:/blog//1.609</id>
    
    <published>2008-09-07T23:04:13Z</published>
    <updated>2008-09-07T23:40:38Z</updated>
    
    <summary>I&apos;ve made some patches to update Ruby On Rails version 2.1.0 to 2.1.1 where you make use of the unpacked gems and a subversion repository (running &apos;rake rails:freeze:gems&apos; has a bad habit of leaving your working copy in a mess...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="Ruby on Rails" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>I've made some patches to update <a class="extlink" href="http://www.rubyonrails.org/">Ruby On Rails</a> version 2.1.0 to 2.1.1 where you make use of the unpacked gems and a subversion repository (running 'rake rails:freeze:gems' has a bad habit of leaving your working copy in a mess as it blows away your 'vendor/rails' directory and recreates it).</p>

<p>Download the patch files by using the following script and apply them into each directory under vendor/rails by running <a href="http://www.powertrip.co.za/patches/rails-updater.sh">rails-updater.sh</a>.</p>

<p>If you have issues with patching files (like when using svn eol-style:native for files) you may need to grab the failed files by doing 'gem unpack component' and copying those files over and removing the reject files.  I've tested the patches on a couple of open source apps and it applied cleanly except to one working copy.</p>

<p><code><br />
<pre><br />
patching file CHANGELOG<br />
patching file Rakefile<br />
patching file lib/action_mailer/base.rb<br />
patching file lib/action_mailer/vendor/text-format-0.6.3/text/format.rb<br />
Hunk #1 FAILED at 1.<br />
1 out of 1 hunk FAILED -- saving rejects to file lib/action_mailer/vendor/text-format-0.6.3/text/format.rb.rej<br />
patching file lib/action_mailer/vendor/tmail-1.2.3/tmail/parser.rb<br />
Hunk #1 FAILED at 12.<br />
1 out of 1 hunk FAILED -- saving rejects to file lib/action_mailer/vendor/tmail-1.2.3/tmail/parser.rb.rej<br />
patching file lib/action_mailer/version.rb<br />
patching file test/abstract_unit.rb<br />
</pre><br />
</code></p>

<p>Another way to fetch the files is to fetch them from the github website using url's like:</p>

<blockquote>
<code>
http://github.com/rails/rails/tree/v2.1.1/<component>/<file>?raw=true
</code>
</blockquote>

<p>i.e. for the failed lib/action_mailer/vendor/text-format-0.6.3/text/format.rb mentioned above we would fetch it from the following URL - <a class="extlink" href="http://github.com/rails/rails/tree/v2.1.1/actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb?raw=true">http://github.com/rails/rails/tree/v2.1.1/actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb?raw=true</a>.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Exim gotcha with SMTP Auth</title>
    <link rel="alternate" type="text/html" href="http://www.powertrip.co.za/blog/archives/000608.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.powertrip.co.za/blog/mt-atom.cgi/weblog/blog_id=1/entry_id=608" title="Exim gotcha with SMTP Auth" />
    <id>tag:www.powertrip.co.za,2008:/blog//1.608</id>
    
    <published>2008-09-03T12:35:06Z</published>
    <updated>2008-09-03T12:42:35Z</updated>
    
    <summary>One gotcha when using exim to do authenticated SMTP one wonders why you keep seeing the following: Return-path: *snipped* Sender: &quot;email@add.re.ss&quot;@server.host.name *snipped* One needs to modify your acl for acl_check_rcpt for authenticated SMTP connections to contain the sender_retain bit like...</summary>
    <author>
        <name>Jacques Marneweck</name>
        <uri>http://www.powertrip.co.za/</uri>
    </author>
    
        <category term="Exim" />
    
        <category term="Systems Administration" />
    
    <content type="html" xml:lang="en" xml:base="http://www.powertrip.co.za/blog/">
        <![CDATA[<p>One gotcha when using exim to do authenticated SMTP one wonders why you keep seeing the following:</p>

<pre>
Return-path: <"email@add.re.ss"@server.host.name>
*snipped*
Sender: "email@add.re.ss"@server.host.name
*snipped*
</pre>

<p>One needs to modify your acl for acl_check_rcpt for authenticated SMTP connections to contain the sender_retain bit like below:</p>

<pre>
  accept  authenticated = *
          control       = submission/sender_retain
</pre>

<p>Restart your exim (in my case on FreeBSD I used /usr/local/etc/rc.d/exim restart) and send a email:</p>

<pre>
Return-path: &lt;email@add.re.ss&gt;
*snipped*
Sender: email@add.re.ss
*snipped*
</pre>]]>
        
    </content>
</entry>

</feed> 

