<?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>Nongraphical.com &#187; Projects</title>
	<atom:link href="http://nongraphical.com/category/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://nongraphical.com</link>
	<description>A dynamic trapeze of web design, programming, and randomness.</description>
	<lastBuildDate>Wed, 09 Jun 2010 18:15:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Grace, an original composition</title>
		<link>http://nongraphical.com/2009/02/grace-an-original-composition/</link>
		<comments>http://nongraphical.com/2009/02/grace-an-original-composition/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 20:45:30 +0000</pubDate>
		<dc:creator>fyhuang</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[composition]]></category>
		<category><![CDATA[hymn]]></category>

		<guid isPermaLink="false">http://nongraphical.com/?p=208</guid>
		<description><![CDATA[Here is an orig&#173;i&#173;nal com&#173;po&#173;si&#173;tion I wrote, called Grace, for flute, clar&#173;inet (in Bb) and pi&#173;ano, based some&#173;what on the hymn &#8220;Amaz&#173;ing Grace&#8221;. I&#8217;m pro&#173;vid&#173;ing it for free, un&#173;der copy&#173;right, but if you de&#173;cide to per&#173;form it, I would ap&#173;pre&#173;ci&#173;ate it if you would let me know!

Grace (PDF)
]]></description>
			<content:encoded><![CDATA[<p>Here is an orig&shy;i&shy;nal com&shy;po&shy;si&shy;tion I wrote, called <em>Grace</em>, for flute, clar&shy;inet (in Bb) and pi&shy;ano, based some&shy;what on the hymn &#8220;Amaz&shy;ing Grace&#8221;. I&#8217;m pro&shy;vid&shy;ing it for free, un&shy;der copy&shy;right, but if you de&shy;cide to per&shy;form it, I would ap&shy;pre&shy;ci&shy;ate it if you would let me know!</p>

<p><a href='http://nongraphical.com/blog/wp-content/uploads/2009/02/grace.pdf'>Grace (PDF)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nongraphical.com/2009/02/grace-an-original-composition/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Updated Squid 3 configuration</title>
		<link>http://nongraphical.com/2008/11/updated-squid-3-configuration/</link>
		<comments>http://nongraphical.com/2008/11/updated-squid-3-configuration/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 03:54:51 +0000</pubDate>
		<dc:creator>fyhuang</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[squid3-chain]]></category>

		<guid isPermaLink="false">http://nongraphical.com/?p=130</guid>
		<description><![CDATA[Here is the up&#173;dat&#173;ed ver&#173;sion of my pre&#173;vi&#173;ous au&#173;then&#173;ti&#173;cat&#173;ing/for&#173;ward&#173;ing Squid 3 con&#173;fig. It adds some things and fix&#173;es some things. In par&#173;tic&#173;u&#173;lar, the peer ex&#173;clu&#173;sion rules from the pre&#173;vi&#173;ous con&#173;fig were not work&#173;ing - this one should cor&#173;rect&#173;ly not use the par&#173;ent prox&#173;ies when query&#173;ing &#8220;lo&#173;cal ad&#173;dress&#173;es&#8221;. As be&#173;fore, the con&#173;fig&#173;u&#173;ra&#173;tion file con&#173;tains two proxy [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the up&shy;dat&shy;ed ver&shy;sion of my <a href="http://nongraphical.com/2008/09/squid-3-proxy-chaining/">pre&shy;vi&shy;ous au&shy;then&shy;ti&shy;cat&shy;ing/for&shy;ward&shy;ing Squid 3 con&shy;fig</a>. It adds some things and fix&shy;es some things. In par&shy;tic&shy;u&shy;lar, the peer ex&shy;clu&shy;sion rules from the pre&shy;vi&shy;ous con&shy;fig were not work&shy;ing - this one should cor&shy;rect&shy;ly <em>not use</em> the par&shy;ent prox&shy;ies when query&shy;ing &#8220;lo&shy;cal ad&shy;dress&shy;es&#8221;. As be&shy;fore, the con&shy;fig&shy;u&shy;ra&shy;tion file con&shy;tains two proxy servers for load bal&shy;anc&shy;ing; it can be ex&shy;tend&shy;ed easi&shy;ly to in&shy;clude more.<span id="more-130"></span> Here it is for your en&shy;joy&shy;ment:</p>

<pre><code>cache_ef&shy;fec&shy;tive_user proxy
cache_ef&shy;fec&shy;tive_group proxy

http_port 3128
http_ac&shy;cess al&shy;low all

acl lo&shy;cal_ips dst 127.0.0.0/8 192.168.0.0/24 10.10.0.0/16
acl lo&shy;cal_servers dst&shy;do&shy;main lo&shy;cal&shy;host my.lo&shy;cal.do&shy;main
nev&shy;er_di&shy;rect al&shy;low all
al&shy;ways_di&shy;rect al&shy;low lo&shy;cal_ips
al&shy;ways_di&shy;rect al&shy;low lo&shy;cal_servers

acl http-on&shy;ly port 80
cache_peer first&shy;Proxy.site.com par&shy;ent 3128 3190 no-query proxy-on&shy;ly login=User&shy;name:Pass&shy;word name=prx1
cache_peer sec&shy;ond&shy;Proxy.site.com par&shy;ent 3128 3190 no-query proxy-on&shy;ly login=User&shy;name:Pass&shy;word de&shy;fault name=prx2

# This makes on&shy;ly HTTP load bal&shy;anced
cache_peer_ac&shy;cess prx1 deny all
cache_peer_ac&shy;cess prx1 al&shy;low http-on&shy;ly
cache_peer_ac&shy;cess prx2 al&shy;low all

# Re&shy;in&shy;force&shy;ment of di&shy;rect rules
cache_peer_ac&shy;cess prx1 deny lo&shy;cal_ips
cache_peer_ac&shy;cess prx1 deny lo&shy;cal_servers
cache_peer_ac&shy;cess prx2 deny lo&shy;cal_ips
cache_peer_ac&shy;cess prx2 deny lo&shy;cal_servers

# Some time&shy;outs
con&shy;nect_time&shy;out 8 sec&shy;onds
peer_con&shy;nect_time&shy;out 3 sec&shy;onds

hier&shy;ar&shy;chy_sto&shy;plist cgi-bin ?

cache_mem 64 MB
max&shy;i&shy;mum_ob&shy;ject_size_in_mem&shy;o&shy;ry 64 KB

cache_re&shy;place&shy;ment_pol&shy;i&shy;cy heap GDSF
cache_dir aufs /var/spool/squid3 6000 16 256  # Make sure to check this path
max&shy;i&shy;mum_ob&shy;ject_size 16384 KB

ac&shy;cess_log /var/log/squid3/ac&shy;cess.log squid  # Make sure to check this path

shut&shy;down_life&shy;time 3 sec&shy;onds

de&shy;bug_op&shy;tions ALL,1
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://nongraphical.com/2008/11/updated-squid-3-configuration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMware &amp; Ubuntu 8.04</title>
		<link>http://nongraphical.com/2008/09/vmware-ubuntu-804/</link>
		<comments>http://nongraphical.com/2008/09/vmware-ubuntu-804/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 18:04:18 +0000</pubDate>
		<dc:creator>fyhuang</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[rants]]></category>

		<guid isPermaLink="false">http://blog.nongraphical.com/?p=73</guid>
		<description><![CDATA[I have been hav&#173;ing, to put it light&#173;ly, some prob&#173;lems with VMware server and an Ubun&#173;tu guest. My guess as to why is this: VMware server is, in my eyes, built for pro&#173;duc&#173;tion-level server vir&#173;tu&#173;al&#173;iza&#173;tion. It&#8217;s not re&#173;al&#173;ly built for on-the-side home server vir&#173;tu&#173;al&#173;iza&#173;tion, like the kind that I&#8217;m do&#173;ing, and on fair&#173;ly desk&#173;top-ori&#173;ent&#173;ed hard&#173;ware [...]]]></description>
			<content:encoded><![CDATA[<p>I have been hav&shy;ing, to put it light&shy;ly, some prob&shy;lems with VMware server and an Ubun&shy;tu guest. My guess as to why is this: VMware server is, in my eyes, built for pro&shy;duc&shy;tion-level server vir&shy;tu&shy;al&shy;iza&shy;tion. It&#8217;s not re&shy;al&shy;ly built for on-the-side home server vir&shy;tu&shy;al&shy;iza&shy;tion, like the kind that I&#8217;m do&shy;ing, and on fair&shy;ly desk&shy;top-ori&shy;ent&shy;ed hard&shy;ware to boot. Ba&shy;si&shy;cal&shy;ly, my Ubun&shy;tu in&shy;stall often has trou&shy;ble with disk ac&shy;cess, and some&shy;times net&shy;work ac&shy;cess as well. (I&#8217;m run&shy;ning a Vis&shy;ta Home Premi&shy;um host with an Ubun&shy;tu Server 8.04 guest.)
<span id="more-73"></span></p>

<p>My disk ac&shy;cess prob&shy;lems prob&shy;a&shy;bly stem from the fact that my VMware disk and my sys&shy;tem boot disk are both the same par&shy;ti&shy;tion and the same disk. This prob&shy;a&shy;bly caus&shy;es all sorts of ac&shy;cess is&shy;sues, espe&shy;cial&shy;ly while my com&shy;put&shy;er is boot&shy;ing (I have no&shy;ticed that my com&shy;put&shy;er takes forever to stop thrash&shy;ing the disk after log&shy;ging in). The net&shy;work prob&shy;lems are more eva&shy;sive, how&shy;ev&shy;er. I&#8217;m us&shy;ing the NAT net&shy;work&shy;ing in&shy;ter&shy;face so that I can as&shy;sign my Ubun&shy;tu a stat&shy;ic IP ad&shy;dress that will nev&shy;er change, even if my phys&shy;i&shy;cal com&shy;put&shy;er changes lo&shy;ca&shy;tion (and it will, often). How&shy;ev&shy;er, pret&shy;ty fre&shy;quent&shy;ly the DNS &#8220;server&#8221; that VMware pro&shy;vides breaks down, and while Ubun&shy;tu is able to send pack&shy;ets to the net&shy;work, it can&shy;not per&shy;form DNS queries through the lo&shy;cal DNS ser&shy;vice. Oc&shy;ca&shy;sion&shy;al&shy;ly, the net&shy;work will fail to op&shy;er&shy;ate al&shy;to&shy;geth&shy;er, and Ubun&shy;tu will be un&shy;able to send any pack&shy;ets any&shy;where (in&shy;clud&shy;ing to the host com&shy;put&shy;er!). This is a prob&shy;lem which I&#8217;ve looked for so&shy;lu&shy;tions for on&shy;line, but have so far come up with noth&shy;ing.</p>

<p>Fi&shy;nal&shy;ly, I would like to be able to serve files from the host com&shy;put&shy;er through a web server on Ubun&shy;tu, and my cur&shy;rent method of mount&shy;ing the host shares with CIFS and then shar&shy;ing them with Apache is not op&shy;ti&shy;mal (the least of the prob&shy;lems with this method is re&shy;dun&shy;dant net&shy;work usage). I would like to get the VMware shared fold&shy;ers fea&shy;ture work&shy;ing, ex&shy;cept that I can&shy;not seem to com&shy;pile the VMware tools&#8217; ker&shy;nel mod&shy;ules on Ubun&shy;tu 8.04 (even fol&shy;low&shy;ing other ref&shy;er&shy;ences on&shy;line). VMware&#8217;s ker&shy;nel mod&shy;ule builder is not quite as pol&shy;ished, ev&shy;i&shy;dent&shy;ly, as others&#8217; (like nVidia).</p>

<p>Hope&shy;ful&shy;ly I will find so&shy;lu&shy;tions to the&shy;se prob&shy;lems soon, as I re&shy;al&shy;ly like the idea of run&shy;ning a vir&shy;tu&shy;al&shy;ized Lin&shy;ux server on a Win&shy;dows host, and hope that this sort of ar&shy;range&shy;ment will prove fruit&shy;ful.</p>
]]></content:encoded>
			<wfw:commentRss>http://nongraphical.com/2008/09/vmware-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>crarchive 0.1</title>
		<link>http://nongraphical.com/2008/08/crarchive-01/</link>
		<comments>http://nongraphical.com/2008/08/crarchive-01/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 16:10:29 +0000</pubDate>
		<dc:creator>fyhuang</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://blog.nongraphical.com/?p=21</guid>
		<description><![CDATA[Down&#173;load crar&#173;chive ver&#173;sion 0.1.

Here&#8217;s a lit&#173;tle pro&#173;gram I wrote to solve a small prob&#173;lem I&#8217;ve been hav&#173;ing with cron. Say one has in one&#8217;s crontab the fol&#173;low&#173;ing line:

0 0 * * * /usr/bin/rsync -avz dir1/ /back&#173;up/dir1/


This backs up dir1 to a back&#173;up di&#173;rec&#173;to&#173;ry. rsync, how&#173;ev&#173;er, cre&#173;ates a lot of out&#173;put (espe&#173;cial&#173;ly with the -v switch)&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://nongraphical.com/media/uploads/crarchive-0.1.tar.gz">Down&shy;load <code>crarchive</code> ver&shy;sion 0.1.</a></p>

<p>Here&#8217;s a lit&shy;tle pro&shy;gram I wrote to solve a small prob&shy;lem I&#8217;ve been hav&shy;ing with cron. Say one has in one&#8217;s crontab the fol&shy;low&shy;ing line:</p>

<pre><code>0 0 * * * /usr/bin/rsync -avz dir1/ /back&shy;up/dir1/
</code></pre>

<p>This backs up <code>dir1</code> to a back&shy;up di&shy;rec&shy;to&shy;ry. <code>rsync</code>, how&shy;ev&shy;er, cre&shy;ates a lot of out&shy;put (espe&shy;cial&shy;ly with the <code>-v</code> switch)&#8230; and cron sends that out&shy;put to your email, so ev&shy;ery day, you&#8217;ll be get&shy;ting an email mes&shy;sage from cron with the re&shy;sults of the back&shy;up. To avoid this, most peo&shy;ple sim&shy;ply redi&shy;rect the out&shy;put to <code>/dev/null</code>. What if I do ac&shy;tu&shy;al&shy;ly want to see the out&shy;put though, just not in my in&shy;box?
<span id="more-21"></span>
<code>crar&shy;chive</code> is a lit&shy;tle script that will log the re&shy;sults of cron runs in a fold&shy;er, gzip old logs, and delete re&shy;al&shy;ly old logs au&shy;to&shy;mat&shy;i&shy;cal&shy;ly. It al&shy;lows the out&shy;put of com&shy;mands run in cron to be saved and archived, but with&shy;out clog&shy;ging up your in&shy;box. Even&shy;tu&shy;al&shy;ly, it will al&shy;so sup&shy;port more cus&shy;tomiz&shy;abil&shy;i&shy;ty, but be&shy;cause this is on&shy;ly the first re&shy;lease, it has the fol&shy;low&shy;ing lim&shy;i&shy;ta&shy;tions&#8230;</p>

<ul>
<li>Max&shy;i&shy;mum one run per day</li>
<li>Logs to <code>$HOME/logs</code> (un&shy;change&shy;able)</li>
<li>Gzips logs that are one day old, deletes logs that are thir&shy;ty (un&shy;change&shy;able)</li>
</ul>

<p><code>crar&shy;chive</code> <em>will</em>, how&shy;ev&shy;er, email you if some&shy;thing goes wrong (un&shy;for&shy;tu&shy;nate&shy;ly, again, er&shy;ror check&shy;ing in this ear&shy;ly ver&shy;sion is prim&shy;i&shy;tive). Here&#8217;s a usage ex&shy;am&shy;ple with the crontab from ear&shy;lier (as&shy;sum&shy;ing we&#8217;ve in&shy;stalled <code>crar&shy;chive.py</code> in&shy;to <code>/usr/bin</code>):</p>

<pre><code>0 0 * * * /usr/bin/rsync -avz dir1/ /back&shy;up/dir1/ | /usr/bin/crar&shy;chive.py rsync-dir1
</code></pre>

<p>Where <em><code>rsync-dir1</code></em> is an ar&shy;bi&shy;trary name that you choose.</p>

<p>I&#8217;m cur&shy;rent&shy;ly us&shy;ing <code>crar&shy;chive</code> to log an <a href="http://awstats.sourceforge.net/">aw&shy;stats</a> up&shy;date that I&#8217;m run&shy;ning in my crontab. If you think that <code>crar&shy;chive</code> would be of some use to you, <a href="http://nongraphical.com/media/uploads/crarchive-0.1.tar.gz">down&shy;load ver&shy;sion 0.1</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://nongraphical.com/2008/08/crarchive-01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.659 seconds -->
