<?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/"
><channel><title>[protofusion] &#187; Nathan Phillip Brink</title> <atom:link href="http://protofusion.org/wordpress/author/ohnobinki/feed/" rel="self" type="application/rss+xml" /><link>http://protofusion.org/wordpress</link> <description>Generally Interesting</description> <lastBuildDate>Thu, 09 Feb 2012 19:23:09 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Downloading wget Without wget: Use bash</title><link>http://protofusion.org/wordpress/2011/01/downloading-wget-with-bash/</link> <comments>http://protofusion.org/wordpress/2011/01/downloading-wget-with-bash/#comments</comments> <pubDate>Fri, 14 Jan 2011 07:16:59 +0000</pubDate> <dc:creator>Nathan Phillip Brink</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Quick Tips]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[download]]></category> <category><![CDATA[from irc]]></category> <category><![CDATA[networking]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[wget]]></category><guid
isPermaLink="false">http://protofusion.org/wordpress/?p=816</guid> <description><![CDATA[There are many ways to download and install wget without having wget itself installed. For example, one can use curl, ]]></description> <content:encoded><![CDATA[<p> There are many ways to download and install <a
href="http://www.gnu.org/software/wget/">wget</a> without having wget itself installed. For example, one can use <a
href="http://curl.haxx.se/">curl</a>, a sort of competitor to wget, or a package manager with <span
title="what is this lib's homepage?">libfetch or some other library-level downloader integrated (such as <a
href="http://archlinux.org/pacman/">pacman</a>). One may be able to use SSH&#8217;s scp or sftp utility or even use netcat to transfer a wget tarball over a network. But these methods of obtaining wget are not always feasible or even possible whereas a <a
href="http://gnu.org/software/bash/">bash</a> shell and a few core utilities are often readily available.<br
/> </span></p><p><span
id="more-816"></span></p><p> I was introduced to the bash builtin <tt>/dev/tcp</tt> by <a
href="http://forums.unrealircd.com/viewtopic.php?f=9&amp;t=6498#p32272" title="formerly known as aegis">warg</a> the other day on <a
href="irc://irc.x-tab.org/chat">x-tab#chat</a>. He explained a basic use of this device by demonstrating how to download wget&#8217;s compressed tarball. The download process itself can be done with pure bash, but some post-processing of the downloaded file must be done to remove HTTP headers. I document warg&#8217;s application of <tt>/dev/tcp</tt> here because I found the idea fascinating and want this documentation for myself <img
src='http://pf-wordpress.s3.amazonaws.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p><h2>Connecting and Downloading</h2><p> To read about the <tt>/dev/tcp</tt> builtin for yourself, check out the following:</p><p><code>$ info '<a
href="http://gnu.org/software/bash/manual/bash.html#Redirections">(bash) Redirections</a>'</code></p><p> With the <tt>exec</tt> line we initiate the connection, allocating a file descriptor and storing the numeic file descriptor into the HTTP_FD variable. Then, with the <tt>echo</tt> line, we send an HTTP request through the descriptor to the server. After sending the request, we process the server&#8217;s response with the <tt>sed</tt> line which skips over the HTTP headers sent by the server and stows the results into <tt>wget-latest.tar.gz</tt>. Note that this last command will sit around for a while. It is with this command that the builk of the data transfer is performed. And, since you&#8217;re using shell redirections to download the file, you cannot see the download progress. Instead, wait for the command to complete. This also involves waiting for the server to time out your connection since it supports pipelining. After this process is completed, the wget-latest.tar.gz file is as your disposal.</p><p><code><pre>
$ WGET_HOSTNAME='ftp.gnu.org'
$ exec {HTTP_FD}&lt;&gt;/dev/tcp/${WGET_HOSTNAME}/80
$ echo -ne 'GET /gnu/wget/wget-latest.tar.gz HTTP/1.1\r\nHost: '\
    ${WGET_HOSTNAME}'\r\nUser-Agent: '\
    'bash/'${BASH_VERSION}'\r\n\r\n'  &gt;&amp;${HTTP_FD}
$ sed -e '1,/^.$/d' &lt;&amp;${HTTP_FD} &gt;wget-latest.tar.gz
</pre><p></code></p><p> Now you have a wget source tarball on your machine. As long as you have tar and a compiler on the machine, you are well on your way to downloading stuff using a self-compiled wget. In the commands above, you may replace &#8220;gz&#8221; with &#8220;bz2&#8243; or &#8220;lzma&#8221; for smaller downloads if the machine you&#8217;re using has bzip2 or xz-utils installed. And, of course, it should not be too hard to repurpose the above code to download a particular version of wget or even a completely unrelated software package.</p><p> Please feel free to point out problems with this approach or give pointers on porting this to other environments <img
src='http://pf-wordpress.s3.amazonaws.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p> ]]></content:encoded> <wfw:commentRss>http://protofusion.org/wordpress/2011/01/downloading-wget-with-bash/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Archlinux Chroot on Gentoo Guide</title><link>http://protofusion.org/wordpress/2010/04/archlinux-chroot-on-gentoo-guide/</link> <comments>http://protofusion.org/wordpress/2010/04/archlinux-chroot-on-gentoo-guide/#comments</comments> <pubDate>Sat, 01 May 2010 02:09:09 +0000</pubDate> <dc:creator>Nathan Phillip Brink</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[archlinux]]></category> <category><![CDATA[gentoo]]></category> <category><![CDATA[Grammar]]></category> <category><![CDATA[pacman]]></category><guid
isPermaLink="false">http://protofusion.org/wordpress/?p=310</guid> <description><![CDATA[Archlinux is quite a popular distribution among the geekier crowd of GNU/Linux users. I understand that Ubuntu is the most ]]></description> <content:encoded><![CDATA[<p><a
href="http://archlinux.org/">Archlinux</a> is quite a popular distribution among the geekier crowd of <a
href="http://gnu.org/">GNU</a>/<a
href="http://kernel.org/">Linux</a> users. I understand that <a
href="http://ubuntu.com/">Ubuntu</a> is the most popular GNU/Linux distribution in general. It may supposedly fit the needs of the populace, but that attempt to support getting grandma on the keyboard is the reason that this distro is unattractive to us geeks <img
src='http://pf-wordpress.s3.amazonaws.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .<br
/> <span
id="more-310"></span></p><p>As a Gentoo user, I value the ability to compile and install things from source. Yet I don&#8217;t want the messiness of a completely manual &#8220;distribution&#8221; such as <a
href="http://linuxfromscratch.org/">LFS</a>. Yet I feel like I&#8217;m missing out of a big chunk of the GNU/Linux experience when I have to tell people that I&#8217;ve only ever used Gentoo. Also, if one wants to make his package available from multiple distributions, he may find more success if he is able to facilitate creation of the binary packages for these other distributions.</p><p>Thus, I have committed <a
href="http://archlinux.org/pacman/">sys-apps/pacman</a> into <a
href="http://overlays.gentoo.org/proj/sunrise">Sunrise</a>. I still have to get permission to commit a few fixes (hopefully by tomorrow). Also, archlinux&#8217;s take on <a
href="http://gentoo-portage.com/ap-portage/mirrorselect/">mirrorselect</a>, <a
href="http://xyne.archlinux.ca/projects/reflector">reflector</a>, has been <a
href="http://overlays.gentoo.org/proj/sunrise/changeset/10513">committed</a> but awaits <a
href="http://overlays.gentoo.org/proj/sunrise/browser/reviewed/www-misc/reflector">review</a>. When these things get through, the following may actually be worth something:</p><p>I have attempted to write a <a
href="http://ohnopub.net/~ohnobinki/gentoo/arch/">guide to setting up an archlinux chroot on Gentoo</a>. Don&#8217;t actually try the guide until about a week from now, when my stuff clears review, of course <img
src='http://pf-wordpress.s3.amazonaws.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> . However, in the meantime, I would gladly accept:</p><ul><li>Technical criticisms</li><li>(if you are tommy[d], please ignore the following) Alerts about the misuse of the apostrophe or general grammatical problems</li><li>Documentation storage format suggestions &mdash; I suppose it would be a good exercise for me to learn <a
href="http://docbook.org/">docbook</a> someday. Should I start now?</li></ul> ]]></content:encoded> <wfw:commentRss>http://protofusion.org/wordpress/2010/04/archlinux-chroot-on-gentoo-guide/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ridik: libtool-archives</title><link>http://protofusion.org/wordpress/2010/03/ridik-libtool-archives/</link> <comments>http://protofusion.org/wordpress/2010/03/ridik-libtool-archives/#comments</comments> <pubDate>Mon, 08 Mar 2010 04:47:52 +0000</pubDate> <dc:creator>Nathan Phillip Brink</dc:creator> <category><![CDATA[ridik]]></category> <category><![CDATA[bug]]></category> <category><![CDATA[gentoo]]></category> <category><![CDATA[libtool]]></category><guid
isPermaLink="false">http://protofusion.org/wordpress/?p=257</guid> <description><![CDATA[bug 293921. I&#8217;m afraid that I&#8217;ve misrepresented flameeyes to some people and even vapier feels he needs to qualify my ]]></description> <content:encoded><![CDATA[<p><img
style="background: #ffffee; color: #000000;" src="http://ohnopub.net/~ohnobinki/ridik/2010.03.07-libtool-archives.0.png" alt="Gentoo devs: These libtool archive files are so frustrating!" /></p><p><span
id="more-257"></span> <a
href="https://bugs.gentoo.org/293921"></a></p><p><a
href="https://bugs.gentoo.org/293921"><img
style="background: #ffffee; color: #000000;" src="http://ohnopub.net/~ohnobinki/ridik/2010.03.07-libtool-archives.1.png" alt="Me: I think today is a good a day as any to run $ rm /usr/lib*/*.la ; bug 293921" /></a></p><p><img
style="background: #ffffee; color: #000000;" src="http://ohnopub.net/~ohnobinki/ridik/2010.03.07-libtool-archives.2.png" alt="Gentoo devs: Those things are important! (but they can be quite a hassle)" /><br
/> <a
href="https://bugs.gentoo.org/293921">bug 293921</a>. I&#8217;m afraid that I&#8217;ve <a
href="https://bugs.gentoo.org/293921#c5">misrepresented flameeyes</a> to some people and even vapier feels he <a
href="http://lists.gnu.org/archive/html/bug-libtool/2010-03/msg00000.html">needs to qualify</a> my <a
href="http://lists.gnu.org/archive/html/bug-libtool/2010-02/msg00046.html">overly-general statements</a> :-/. But I have a lot of respect for tommy, who insists that ltdl.la isn&#8217;t a good idea. But for the sake of portage-multilib, he&#8217;s <a
href="http://github.com/TommyD/gentoo-portage-multilib/commit/ae83e666a2955cb2adcea2692c976bebecf66ece">wavering a little</a> <img
src='http://pf-wordpress.s3.amazonaws.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p> ]]></content:encoded> <wfw:commentRss>http://protofusion.org/wordpress/2010/03/ridik-libtool-archives/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ridik: qt4-multilib</title><link>http://protofusion.org/wordpress/2010/03/ridik-qt4-multilib/</link> <comments>http://protofusion.org/wordpress/2010/03/ridik-qt4-multilib/#comments</comments> <pubDate>Mon, 08 Mar 2010 04:18:04 +0000</pubDate> <dc:creator>Nathan Phillip Brink</dc:creator> <category><![CDATA[ridik]]></category> <category><![CDATA[gentoo]]></category> <category><![CDATA[multilib]]></category> <category><![CDATA[portage]]></category> <category><![CDATA[qt4]]></category><guid
isPermaLink="false">http://protofusion.org/wordpress/?p=246</guid> <description><![CDATA[Gentoo multilib-overlay—please try the portage-multilib branch (see topic)]]></description> <content:encoded><![CDATA[<p><img
style="background: #ffffee; color: #000000;" src="http://ohnopub.net/~ohnobinki/ridik/2010.02.28-qt4-multilib.1.png" alt="centOS user: freakin' the Qt4 rpm was everywhere in January but now it's gone" /></p><p><span
id="more-246"></span></p><p><img
style="background: #ffffee; color: #000000;" src="http://ohnopub.net/~ohnobinki/ridik/2010.02.28-qt4-multilib.2.png" alt="Gentoo user: I can't wait for proper multilib support in Portage!" /><br
/> <a
href="irc://chat.freenode.net/gentoo-multilib-overlay">Gentoo multilib-overlay</a>—please try the portage-multilib branch <img
src='http://pf-wordpress.s3.amazonaws.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> (see topic).</p> ]]></content:encoded> <wfw:commentRss>http://protofusion.org/wordpress/2010/03/ridik-qt4-multilib/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Kind of or Kind&#8217;ve?</title><link>http://protofusion.org/wordpress/2009/08/kind-of-or-kindve/</link> <comments>http://protofusion.org/wordpress/2009/08/kind-of-or-kindve/#comments</comments> <pubDate>Sat, 29 Aug 2009 22:30:56 +0000</pubDate> <dc:creator>Nathan Phillip Brink</dc:creator> <category><![CDATA[Grammar]]></category> <category><![CDATA[english]]></category> <category><![CDATA[from irc]]></category> <category><![CDATA[habits]]></category><guid
isPermaLink="false">http://protofusion.org/wordpress/?p=74</guid> <description><![CDATA[Do you remember when you were told in English grammar class that &#8220;would of&#8221; is incorrect? You were corrected and ]]></description> <content:encoded><![CDATA[<p>Do you remember when you were told in English grammar class that &#8220;would of&#8221; is incorrect? You were corrected and informed that the speaker is saying &#8220;would&#8217;ve&#8221; which is a phonetic identity of &#8220;would of&#8221;. You probably made this mistake because of the abundance of the preposition &#8220;of&#8221; in sentences that you had both vocalized and written. Also, identically spelled homophones such as &#8220;The boat <em>rocks</em> an alarming amount!&#8221; and &#8220;The <em>rocks</em> on the shore braced themselves against the currents&#8221; would further suggest that the phonetic identity indicates a spelling identity.</p><p>Recently, however, I have wondered about the validity of the phrase &#8220;kind of&#8221;:<br
/> <span
id="more-74"></span></p><pre>
&lt;ohnobinki&gt;     and he hangs out on #bangladesh kind've
&lt;ohnobinki&gt;     oh, btw
&lt;zimjimmy&gt;      hm
&lt;ohnobinki&gt;     I've discovered that the whole time I've been using kindeof when I should've used kind've
&lt;zimjimmy&gt;      ...?
&lt;zimjimmy&gt;      why would there be an e
&lt;zimjimmy&gt;      ?
&lt;ohnobinki&gt;     kindoef is wrong, kind've is correct
&lt;ohnobinki&gt;     idk
&lt;ohnobinki&gt;     I wondered that myself
&lt;zimjimmy&gt;      i never noticed you do that
&lt;zimjimmy&gt;      oh
&lt;zimjimmy&gt;      you mean kind of?
&lt;ohnobinki&gt;     no
&lt;ohnobinki&gt;     kind've=&gt;kind have
&lt;ohnobinki&gt;     I kind have like pizza
&lt;ohnobinki&gt;     right?
&lt;zimjimmy&gt;      that... makes no sense
&lt;ohnobinki&gt;     kind of like pizza makes less sense
&lt;zimjimmy&gt;      um
&lt;zimjimmy&gt;      well
&lt;zimjimmy&gt;      i think it's an idiom
&lt;ohnobinki&gt;     maybe kind've liked pizza=&gt; I kind have liked pizza b4
&lt;ohnobinki&gt;     ugh
&lt;HonestBot&gt;      get over it
&lt;ohnobinki&gt;     only idiots use idiom
&lt;ohnobinki&gt;     *idioms <img src='http://pf-wordpress.s3.amazonaws.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
&lt;ohnobinki&gt;     honestbot: no!
</pre><p>&mdash;<em>2009/05/13 on <a
href="irc:irc.protofusion.org/#protofusion">#protofusion</a></em></p><p>Which reminds me&mdash;I used to spell &#8220;kind of&#8221; as &#8220;kindeof&#8221;. I thought &#8220;kind of&#8221; should be merged into one word by the agency that controls English as the <a
href="http://w3.org/">W3C</a> controls XHTML.</p><p>Of course, I was wrong to say that &#8220;kind&#8217;ve&#8221; is the correct notation for &#8220;kind of&#8221;. I recently realized that &#8220;have&#8221; doesn&#8217;t fit into sentences containing &#8220;kind of&#8221;. If such a sentence exists, it would probably change its meaning; &#8220;have&#8221; can not act as a drop-in replacement for &#8220;of&#8221; in the phrase &#8220;kind of&#8221;:</p><pre>
&lt;ohnobinki&gt; I think I'm wrong about ``kind've''
&lt;normaldotcom&gt; lol
&lt;normaldotcom&gt; waddayamena
&lt;normaldotcom&gt; ?
&lt;ohnobinki&gt; well
&lt;ohnobinki&gt; when people say ``it is kind of green'', they mean ``It is a kind of green''
&lt;ohnobinki&gt; i.e., ``it is greenish'' or ``a modified green'', which would be a ``type of green''
&lt;normaldotcom&gt; lol yeah
&lt;ohnobinki&gt; and ``have'' doesn't fit into there are all
&lt;ohnobinki&gt; so ``kind've''=&gt;``kind have'' doesn't work
&lt;ohnobinki&gt; wp article <img src='http://pf-wordpress.s3.amazonaws.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> C
&lt;ohnobinki&gt; ?
&lt;normaldotcom&gt; yeah
&lt;normaldotcom&gt; lol sure
</pre><p>&mdash;<em>2009/08/29 on <a
href="irc:irc.protofusion.org/#protofusion">#protofusion</a></em></p> ]]></content:encoded> <wfw:commentRss>http://protofusion.org/wordpress/2009/08/kind-of-or-kindve/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 601/712 objects using disk: basic
Content Delivery Network via Amazon Web Services: S3: pf-wordpress.s3.amazonaws.com

Served from: zserver1.protofusion.org @ 2012-02-10 17:08:38 -->
