<?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>herbertm.ca &#187; Internet</title>
	<atom:link href="http://blog.herbertm.ca/articles/category/internet/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.herbertm.ca</link>
	<description></description>
	<lastBuildDate>Thu, 04 Mar 2010 20:23:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mercurial Central Repository with fastcgi and nginx</title>
		<link>http://blog.herbertm.ca/archives/334</link>
		<comments>http://blog.herbertm.ca/archives/334#comments</comments>
		<pubDate>Thu, 04 Mar 2010 20:23:41 +0000</pubDate>
		<dc:creator>Herb</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://blog.herbertm.ca/?p=334</guid>
		<description><![CDATA[Documentation in this arena being slim, I felt it would [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Documentation in this arena being slim, I felt it would be helpful to write a short article on my configuration. FastCGI examples are generally documented in about <a href="http://www.dikant.de/2009/07/29/running-mercurial-with-fastcgi-in-nginx/">two</a> or <a href="http://geeksharp.com/2010/01/20/mercurial-web-with-fastcgi-nginx/">three</a> blog posts on the subject, all of which have become dated. For the basic ground work take a look at <a href="http://streamhacker.com/2009/07/28/how-to-deploy-hgwebdir-fcgi-behind-nginx-with-fab/comment-page-1">streamhacker</a>.</p>

<p>Firstly, the fastcgi process is unaware whether you are using <span class="caps">HTTP </span>or <span class="caps">HTTPS, </span>another fastcgi_param must be passed to solve the following error:</p>


<pre>
searching for changes
ssl required
</pre>




<pre>
fastcgi_param   HTTPS           on;
</pre>



<p>If you are having the following error, and you have ensured that <span class="caps">HTTPS </span>is functioning and allow_push = username is specified in the repo&#8217;s <em>.hg/hgrc</em>:</p>


<pre>
searching for changes
27 changesets found
abort: authorization failed
</pre>



<p>Then the fastcgi process isn&#8217;t receiving the username from nginx. Ensure that the following lines are added to your nginx config:</p>


<pre>
fastcgi_param   AUTH_USER       $remote_user;
fastcgi_param   REMOTE_USER     $remote_user;
</pre>



<p>Nginx is also liable to spit out a:</p>


<pre>413 Request Entity Too Large</pre>


<p>on your first major commit. This is because the max_body_size is set low by default and is unacceptable for a mercurial application. Ensure to add and modify this line to your needs:</p>


<pre>
client_max_body_size    100M;
</pre>


<p><strong>my entire nginx vhost.conf</strong></p>


<pre>
server {
    listen      443;
    server_name hg.DOMAIN.COM;

    ssl                  on;
    ssl_certificate      server.crt;
    ssl_certificate_key  server.key;
    ssl_session_timeout  5m;
    ssl_protocols  SSLv2 SSLv3 TLSv1;
    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
    ssl_prefer_server_ciphers   on;

        # Increase transfer size to accommodate large pushes
        client_max_body_size    100M;

        location / {
                auth_basic &quot;Restricted Access&quot;;
                auth_basic_user_file /repo/sites/hg.DOMAIN.COM/mercurial_passwd;
                fastcgi_pass    127.0.0.1:9001;
                fastcgi_param   PATH_INFO       $fastcgi_script_name;
                fastcgi_param   AUTH_USER       $remote_user;
                fastcgi_param   REMOTE_USER     $remote_user;
                fastcgi_param   QUERY_STRING    $query_string;
                fastcgi_param   REQUEST_METHOD  $request_method;
                fastcgi_param   CONTENT_TYPE    $content_type;
                fastcgi_param   CONTENT_LENGTH  $content_length;
                fastcgi_param   SERVER_PROTOCOL $server_protocol;
                fastcgi_param   SERVER_PORT     $server_port;
                fastcgi_param   SERVER_NAME     $server_name;
                fastcgi_param   HTTPS           on;
        }
        location ~ /\.ht {
            deny  all;
        }
}
</pre>]]></content:encoded>
			<wfw:commentRss>http://blog.herbertm.ca/archives/334/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Last Tribute to Facebook</title>
		<link>http://blog.herbertm.ca/archives/37</link>
		<comments>http://blog.herbertm.ca/archives/37#comments</comments>
		<pubDate>Thu, 31 Jan 2008 20:21:18 +0000</pubDate>
		<dc:creator>Herb</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I recently completed the lengthy process of removing a  [...]]]></description>
			<content:encoded><![CDATA[<p></p>I recently completed the lengthy process of removing a <a href="http://www.facebook.com">Facebook</a> account. If you are reading this and think:<br />
<blockquote>&#8220;Why on earth would you delete a Facebook account?!?! <span class="caps">ITS THE BESTEST THING EVER</span>!</blockquote>
<p>You have some catching up to do, the rest of you skip down:</p>


<ol>
<li><a href="http://www.sophos.com/security/topic/facebook.html"><span class="caps">SOPHOS</span> Facebook Study</a> &#8211; good facts, interesting experiment</li>
<li><a href="http://www.facebook.com/policy.php">Facebook Privacy Policy</a> &#8211; I don&#8217;t suggest reading the whole thing, its quite lame.</li>
<li><a href="http://www.danah.org/papers/FacebookAndPrivacy.html">Facebook&#8217;s Privacy Trainwreck</a> &#8211; You remember people freaking out when the News Feeds came in?</li>
<li><a href="http://www-swiss.ai.mit.edu/6805/student-papers/fall05-papers/facebook.pdf">Facebook: Threats to Privacy</a> &#8211; <span class="caps">H.J</span>ones &amp; <span class="caps">J.S</span>oltren, <span class="caps">MIT </span>in 2005!</li>
</ol>



<p>And the list goes on and on, I&#8217;ve had enough. Google around yourself if you still feel cool with Facebook. All you need is &#8220;privacy&#8221; and &#8220;facebook&#8221; in one query. &#8220;Facebook&#8221; and &#8220;biometrics&#8221; is another good one, see if it produces the results you&#8217;re looking for.</p>

<h3>Deactivation</h3>

<p>If you&#8217;d like to go through the ordeal of asking  Facebook, you can do yourself a favour and check out many <a href="http://stevenmansour.com/writings//2007/jul/23/2342/2504_steps_to_closing_your_facebook_account">blog posts</a> that have already tried. Basically the process boils down to this:</p>


<ol>
<li>Reactivate your facebook account (if necessary)</li>
<li>In Profile -&gt; Edit, go through and delete every piece of information, field by field. <em>prepare to cry</em></li>
<li>Wall post by Wall post delete every one. <em>cry</em></li>
<li>Photos, not so bad go to Edit Album and check all the delete boxes for the photos then delete album.</li>
<li>Remove yourself from all networks (clever little <em>leave network</em> link at the bottom of the Networks page). This will take care of groups and events.</li>
<li>Delete all friends.</li>
</ol>



When you are done the profile page should revert to a example-like style with a preview encouraging you to start adding friends! Fight the temptation and send an e-mail to <a href="mailto:%70%72%69%76%61%63%79%40%66%61%63%65%62%6F%6F%6B%2E%63%6F%6D">privacy@facebook.com</a> with something along the lines of:<br />
<blockquote>Dear Facebook Privacy Staff,<br />
I have removed all of my profile content. Please remove my account from your database and confirm when this is complete.<br /><br />
account: <em>email login</em><br /><br />
Regards,<br /><br />
Chater</blockquote>

<h4>The Response</h4>

<blockquote>Hi Herb,

<p>Your information no longer appears on the site, and we have removed your login email address from our system.  <br />
Thanks,</p>

Paul<br /><br />
User Operations<br /><br />
Facebook</blockquote>

<h3>Other Comments</h3>

<p><typo :lightbox src="/files/facebook.png" thumbsrc="/files/facebook-thumb.png" /></p>

<p>What&#8217;s with this?</p>
<blockquote><strong>Please enter your full birthday. We are required to retrieve this information by law, but you will have control over whether others see it.</strong></blockquote>
<p>You&#8217;re not required by law to do anything. Sure in the <span class="caps">U.S </span>there is the <a href="http://www.coppa.org/coppa.htm"><span class="caps">COPPA</span></a>, but (and I quote below) if you go read the laws you might realize it only has to do with a person&#8217;s age. It is meant to protect children&#8217;s privacy, which is fair enough; I wouldn&#8217;t want any kiddies using Facebook either.
<blockquote>(1) <span class="caps">CHILD.</span>&Atilde;&cent;&acirc;‚&not;&acirc;€¯The term &#8220;child&#8221; means an individual under the age of 13<sup class="footnote"><a href="#fn1">1</a></sup>.</blockquote>
</p><p>Sounds to me like all that has to be done here is verify my age. Why don&#8217;t they just ask for that?</p>
<p>The wording that is used is interesting as well. Why is Facebook <strong>retrieving</strong> information from you? For whom? As if I am worried about the <em>noobs</em> with accounts on there viewing my info; well, aside from the identity theives and fraudsters, who can make a killing with Facebook (ref <span class="caps">SOPHOS</span>), I don&#8217;t really care, its the corporation that we should be worried about.

<span class="caps">COPPA</span> Section 1302.1</p>]]></content:encoded>
			<wfw:commentRss>http://blog.herbertm.ca/archives/37/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WHM Cpanel Create Account Error</title>
		<link>http://blog.herbertm.ca/archives/36</link>
		<comments>http://blog.herbertm.ca/archives/36#comments</comments>
		<pubDate>Mon, 21 Jan 2008 14:27:41 +0000</pubDate>
		<dc:creator>Herb</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Apparently, you can't be running the name-service cachi [...]]]></description>
			<content:encoded><![CDATA[<p></p>Apparently, you can&#8217;t be running the name-service caching daemon with Cpanel/WHM. I was trying to create an account earlier, through both the <span class="caps">WHM </span>web-ui as well as the command-line version <em>wwwacct</em>. Running either script produces no logical error messages related to nscd; at first try it says it is unable to create group. Nothing comes up in classic google search, I had to register on the <a href="http://forums.cpanel.net/showthread.php?t=67164">Cpanel Forums</a> to find some relevant information.<br /><br /><br />
<h4>Attempts to create an account:</h4>


<pre>Checking input data......Done
WWWAcct 12.0 (c) 1997-2007 cPanel, Inc.......Done
Running pre creation script (/scripts/prewwwacct)......Done
Adding User...Unable to add group deuce
</pre>


<p>The script actually manages to create the group, which can be verified in <em>/etc/groups</em>.</p>


<pre># cat /etc/group
---
deuce:x:32070:</pre>


<p>Which you have to manually remove to get the script to work again.</p>


<pre># /usr/sbin/groupdel deuce
</pre>


<p>As mentioned in the above post, (paraphrasing the Cpanel techs) the problem was that nscd is <em>running</em>.</p>


<pre># /sbin/service nscd stop</pre>


<p>Account gets created without a hitch (assuming that group is removed manually). Easily reproducible.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.herbertm.ca/archives/36/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
