<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>techencoder &#187; quick tip</title>
	<atom:link href="http://techencoder.com/index.php/tag/quick-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://techencoder.com</link>
	<description>Technical ideas in a human readable format</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:19:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>		<item>
		<title>HG Style Template</title>
		<link>http://techencoder.com/index.php/2011/01/hg-style-template/</link>
		<comments>http://techencoder.com/index.php/2011/01/hg-style-template/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 04:15:22 +0000</pubDate>
		<dc:creator>r.claypool</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Mercurial]]></category>
		<category><![CDATA[quick tip]]></category>

		<guid isPermaLink="false">http://techencoder.com/?p=1239</guid>
		<description><![CDATA[The hg red-bean guide has examples to customize the output of Mecurial. It&#8217;s easy to create your own. Here&#8217;s one of mine &#8230; # This template prints the files included in each changeset. changeset = &#34;{node&#124;short}: {desc}\n{files}\n&#34; file = &#34; {file}\n&#34; Which formats the output like this &#8230; e9f2c463e105: increment version for push setup.py &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>The hg red-bean guide <a href='http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html'>has examples</a> to customize the output of Mecurial.  It&#8217;s easy to create your own.</p>
<p>Here&#8217;s one of mine &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># This template prints the files included in each changeset.</span>
changeset = <span style="color: #ff0000;">&quot;{node|short}: {desc}<span style="color: #000099; font-weight: bold;">\n</span>{files}<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">file</span> = <span style="color: #ff0000;">&quot;  {file}<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span></pre></div></div>

<p>Which formats the output like this &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">e9f2c463e105: increment version <span style="color: #000000; font-weight: bold;">for</span> push
  setup.py
&nbsp;
98c2272ab7ff: apparently sdist was broken.
repair MANIFEST to include ez_setup properly
  MANIFEST
  MANIFEST.in
  setup.py</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://techencoder.com/index.php/2011/01/hg-style-template/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress on Linux: The uploaded file could not be moved</title>
		<link>http://techencoder.com/index.php/2010/11/wordpress-on-linux-the-uploaded-file-could-not-be-moved/</link>
		<comments>http://techencoder.com/index.php/2010/11/wordpress-on-linux-the-uploaded-file-could-not-be-moved/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 06:26:06 +0000</pubDate>
		<dc:creator>r.claypool</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[quick tip]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://techencoder.com/?p=1229</guid>
		<description><![CDATA[Getting this error? The uploaded file could not be moved to /usr/local/apache2/htdocs/your-site/wp-content/uploads. Most of the advice you will find is about file and folder permissions, but this error is also displayed if your file is too big. Two MB is the default setting in php.ini for upload_max_filesize, so if this is your problem, just increase [...]]]></description>
			<content:encoded><![CDATA[<p>Getting this error?</p>
<p><code>The uploaded file could not be moved to /usr/local/apache2/htdocs/your-site/wp-content/uploads.</code></p>
<p>Most <a href="http://wordpress.org/support/topic/media-upload-problem-the-uploaded-file-could-not-be-moved-to-error">of the advice</a> you will find is about file and folder permissions, but this error is also displayed if your file is too big.</p>
<p>Two MB is the default setting in php.ini for <code>upload_max_filesize</code>, so if this is your problem, just increase the value and restart apache.</p>
<p>Happy Programming!</p>
]]></content:encoded>
			<wfw:commentRss>http://techencoder.com/index.php/2010/11/wordpress-on-linux-the-uploaded-file-could-not-be-moved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Delete Multiple Builds in Hudson</title>
		<link>http://techencoder.com/index.php/2010/06/how-to-delete-multiple-builds-in-hudson/</link>
		<comments>http://techencoder.com/index.php/2010/06/how-to-delete-multiple-builds-in-hudson/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 04:35:40 +0000</pubDate>
		<dc:creator>r.claypool</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[quick tip]]></category>

		<guid isPermaLink="false">http://techencoder.com/?p=1201</guid>
		<description><![CDATA[Hudson is great for managing scheduled builds, but after a while the artifacts start to take up a considerable amount of space. Deleting them one by one is possible, but Hudson will do this for you: Note that this works retroactively. If you have 300 old builds and set the job to keep just 20, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hudson-ci.org"><img class="alignnone size-full wp-image-1203" title="hudson-butler" src="http://techencoder.com/wp-content/uploads/2010/06/hudson-butler.png" alt="" width="96" height="96" /></a></p>
<p>Hudson <a href="http://stackoverflow.com/questions/616149/how-and-why-do-i-set-up-a-c-build-machine/616230#616230">is great</a> for managing scheduled builds, but after a while the artifacts start to take up a considerable amount of space.</p>
<p>Deleting them one by one is possible, but Hudson will do this for you:</p>
<p><img class="aligncenter size-full wp-image-1202" title="discard-old-builds" src="http://techencoder.com/wp-content/uploads/2010/06/discard-old-builds.png" alt="" width="562" height="147" /></p>
<p>Note that this works retroactively.  If you have 300 old builds and set the job to keep just 20, the next build will delete 281 builds.</p>
]]></content:encoded>
			<wfw:commentRss>http://techencoder.com/index.php/2010/06/how-to-delete-multiple-builds-in-hudson/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>401.x errors on IIS: Authentication Required</title>
		<link>http://techencoder.com/index.php/2010/03/iis-authentication-required/</link>
		<comments>http://techencoder.com/index.php/2010/03/iis-authentication-required/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 13:15:48 +0000</pubDate>
		<dc:creator>r.claypool</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[quick tip]]></category>

		<guid isPermaLink="false">http://techencoder.com/?p=1128</guid>
		<description><![CDATA[Quick Tip: Is your site suddenly requesting a user name and password? Most likely this is triggered by insufficient file system permissions. The error logs at %SYSTEMROOT%\System32\LogFiles\W3SVC###\*.log will narrow down your search and give the substatus and Win32 error codes for each HTTP 401. David Wang has a great write up about this on his [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://techencoder.com/wp-content/uploads/2010/03/iis-authentiction-required.png"><img class="aligncenter size-full wp-image-1129" title="iis-authentiction-required" src="http://techencoder.com/wp-content/uploads/2010/03/iis-authentiction-required-watermarked.png" alt="iis-authentiction-required" width="600" height="169" /></a></p>
<p><em>Quick Tip: <strong>Is your site suddenly requesting a user name and password?</strong></em></p>
<p>Most likely this is triggered by insufficient file system permissions.  The error logs at<br />
<code>%SYSTEMROOT%\System32\LogFiles\W3SVC###\*.log</code> will narrow down your search and give the <code>substatus</code> and <code>Win32</code><br />
error codes for each HTTP 401.  </p>
<p>David Wang has <a href="http://blogs.msdn.com/b/david.wang/archive/2005/07/14/howto-diagnose-iis-401-access-denied.aspx">a great write up</a> about this on his blog.  Check it out for more details.</p>
]]></content:encoded>
			<wfw:commentRss>http://techencoder.com/index.php/2010/03/iis-authentication-required/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>T-SQL: Cannot drop the index because it does not exist or you do not have permission.</title>
		<link>http://techencoder.com/index.php/2010/02/tsql-cannot-drop-theindex/</link>
		<comments>http://techencoder.com/index.php/2010/02/tsql-cannot-drop-theindex/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 12:20:43 +0000</pubDate>
		<dc:creator>r.claypool</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[quick tip]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://techencoder.com/?p=1085</guid>
		<description><![CDATA[Quick tip:&#160;&#160; The table name and index name are required to drop an index, otherwise SQL Server will return an error. e.g. DROP INDEX &#91;dbo&#93;.&#91;IX_MyIndex&#93; fails with &#8230; Msg 3701, Level 11, State 6, Line XX Cannot drop the index 'dbo.IX_MyIndex', because it does not exist or you do not have permission. However, DROP INDEX [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://techencoder.com/wp-content/uploads/2010/02/database.jpg"><img src="http://techencoder.com/wp-content/uploads/2010/02/database.jpg" alt="database" title="database" width="600" height="153" class="aligncenter size-full wp-image-1123" /></a></p>
<p><strong>Quick tip:</strong>&nbsp;&nbsp; The table name <em>and</em> index name are required to drop an index, otherwise SQL Server will return an error.</p>
<p>e.g.</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">DROP</span> <span style="color: #0000FF;">INDEX</span> <span style="color: #808080;">&#91;</span>dbo<span style="color: #808080;">&#93;</span>.<span style="color: #808080;">&#91;</span>IX_MyIndex<span style="color: #808080;">&#93;</span></pre></div></div>

<p> fails with &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Msg 3701, Level 11, State 6, Line XX
Cannot drop the index 'dbo.IX_MyIndex', 
because it does not exist or you do not have permission.</pre></div></div>

<p>However,</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">DROP</span> <span style="color: #0000FF;">INDEX</span> <span style="color: #808080;">&#91;</span>dbo<span style="color: #808080;">&#93;</span>.<span style="color: #808080;">&#91;</span>MyTable<span style="color: #808080;">&#93;</span>.<span style="color: #808080;">&#91;</span>IX_MyIndex<span style="color: #808080;">&#93;</span></pre></div></div>

<p> will work fine if it exists and you have sufficient permissions.   (Use <code>Select user_name()</code> to determine your user context, which will help to verify the permissions being used.)</p>
]]></content:encoded>
			<wfw:commentRss>http://techencoder.com/index.php/2010/02/tsql-cannot-drop-theindex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Batch file error: ∩╗┐is not recognized</title>
		<link>http://techencoder.com/index.php/2009/10/batch-file-formatting/</link>
		<comments>http://techencoder.com/index.php/2009/10/batch-file-formatting/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 13:15:47 +0000</pubDate>
		<dc:creator>r.claypool</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ANSI]]></category>
		<category><![CDATA[Batch Files]]></category>
		<category><![CDATA[quick tip]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://techencoder.com/?p=903</guid>
		<description><![CDATA[Is your batch file reporting an error like this? Open the file in Notepad++, select &#8216;Format -&#62; Encode in ANSI&#8217; and save. Hope that helps someone.  Happy Programming!]]></description>
			<content:encoded><![CDATA[<p>Is your batch file reporting an error like this?</p>
<div id="attachment_905" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-905" title="cmd-prompt-error" src="http://techencoder.com/wp-content/uploads/2009/10/cmd-prompt-error.png" alt="'n++ECHO' is not recognized as an internal or external command, operable program or batch file." width="600" height="180" /><p class="wp-caption-text">&#39;n++ECHO&#39; is not recognized as an internal or external command, operable program or batch file.</p></div>
<p>Open the file in <a title="Notepad ++ Home Page" href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a>, select &#8216;Format -&gt; Encode in ANSI&#8217; and save.</p>
<p><img class="aligncenter size-full wp-image-910" title="encode-file-in-ansi" src="http://techencoder.com/wp-content/uploads/2009/10/encode-file-in-ansi.png" alt="encode-file-in-ansi" width="600" height="300" /></p>
<p>Hope that helps someone.  Happy Programming!</p>
]]></content:encoded>
			<wfw:commentRss>http://techencoder.com/index.php/2009/10/batch-file-formatting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

