<?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>coders &#187; tools</title>
	<atom:link href="http://www.gehacktes.net/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gehacktes.net</link>
	<description>The Limits of My Language Mean the Limits of My World - Ludwig Wittgenstein</description>
	<lastBuildDate>Sat, 31 Jul 2010 12:33:02 +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>visual studio breakpoint dependency hierarchy</title>
		<link>http://www.gehacktes.net/2009/06/visual-studio-breakpoint-dependency-hierarchy/</link>
		<comments>http://www.gehacktes.net/2009/06/visual-studio-breakpoint-dependency-hierarchy/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 16:27:28 +0000</pubDate>
		<dc:creator>fschaper</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.gehacktes.net/?p=402</guid>
		<description><![CDATA[A serious amount of time during software development is spent with debugging. Visual Studio makes the task of debugging native applications already a lot more comfortable but as with all things there is still room for improvement. One feature that I was missing of late was the concept of hierarchical breakpoints. Often during debugging I want [...]]]></description>
			<content:encoded><![CDATA[<p>A serious amount of time during software development is spent with debugging. Visual Studio makes the task of debugging native applications already a lot more comfortable but as with all things there is still room for improvement.</p>
<p>One feature that I was missing of late was the concept of <em>hierarchical breakpoints</em>.<br />
Often during debugging I want the debugger to break in some method or function but only coming from an specific path.</p>
<p>To give you an example:</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">void</span> some_function<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
<span style="color: #ff0000; font-style: italic;">/* breakpoint here */</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">void</span> some_other_function<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
<span style="color: #ff0000; font-style: italic;">/* breakpoint here */</span>
    some_function<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">int</span> main<span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> argc, <span style="color: #0000ff;">char</span><span style="color: #000040;">*</span> argv<span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    some_function<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    some_other_function<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #0000ff;">return</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>What I&#8217;d like to do now is to break in &#8220;some_function&#8221; but only coming from &#8220;some_other_function&#8221;.<br />
In this easy example I could happily press F5 a couple of times and be done with it. I could also use the breakpoints hit-counter to accomplish that goal.<br />
But for more complex software this quickly becomes unpractical.</p>
<p>Luckily for me Visual Studio provides an rich extension framework.</p>
<p><a href="http://www.gehacktes.net/wp-content/uploads/2009/06/breakpoints.jpg"><img class="alignnone size-full wp-image-461" title="breakpoints" src="http://www.gehacktes.net/wp-content/uploads/2009/06/breakpoints.jpg" alt="breakpoints" width="631" height="793" /></a></p>
<p>You see two breakpoints in the image above. By Draging&#8217;n'Droping the breakpoint in line 7 on the one in line 11 the one in line 7 got disabled. Once the program hits line 11 during a debug run the AddIn will in turn enable all child breakpoints (the one in line 7 in this case).</p>
<h2>tutorial</h2>
<p>We have created a quick tutorial video <a href="http://www.gehacktes.net/bdh-tutorial/" target="_self">here</a>.</p>
<h2>download</h2>
<p>You can download the project (source only) from <a href="https://sourceforge.net/projects/bdh/" target="_blank">sourceforge</a>. Drop me a visit at <a href="https://www.ohloh.net/p/BDH" target="_blank">ohloh</a> if you like the software.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gehacktes.net/2009/06/visual-studio-breakpoint-dependency-hierarchy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>automatic source formatting</title>
		<link>http://www.gehacktes.net/2009/02/automatic-source-formatting/</link>
		<comments>http://www.gehacktes.net/2009/02/automatic-source-formatting/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 15:40:02 +0000</pubDate>
		<dc:creator>fschaper</dc:creator>
				<category><![CDATA[productivity improvement]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.gehacktes.net/?p=318</guid>
		<description><![CDATA[like most larger companies, we have a set of coding guidelines that every developer working for us is bound to comply with. I don&#8217;t really care how the code is formatted in the end as long as it is consistent. But then again, it also helps to be the one defining the standard for your [...]]]></description>
			<content:encoded><![CDATA[<p>like most larger companies, we have a set of coding guidelines that every developer working for us is bound to comply with. I don&#8217;t really care how the code is formatted in the end as long as it is consistent. But then again, it also helps to be the one defining the standard for your co-workers to feel at ease with it.</p>
<p>On that note, I&#8217;d like to point you to an interesting link where you will find a <a title="coding standard generator" href="http://www.rosvall.ie/cgi-bin/genCodeStd.pl" target="_blank">coding standard generator</a>. After choosing from a lot of options your will end up with an generated document that can serve pretty well as a draft four your own needs.</p>
<p>To make compliance with that standard easier for me and my fellow co-workers, I have created an <a title="astyle" href="http://astyle.sourceforge.net/" target="_blank">astyle</a> configuration file and let astyle (A Free, Fast and Small Automatic     Formatter) run over my code every time I create a build (visual studio pre-build event). At least for my current project, the amount of time needed for the tool to crawl all my files does not become noticeable on my machine.</p>
<p>For sure astyle is no silver bullet. There where a couple of incidents where code wasn&#8217;t correctly formatted (at least not by our definition) and we would have to customize the tool a bit. Changing astyle to fit your needs however is pretty straight forward. What you gain however is that everybody is more or less free to code as he is used to. The result will always conform to the same standard since everybody&#8217;s code is formatted after a predefined set of rules.</p>
<p>At least for us this approach proved beneficial.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gehacktes.net/2009/02/automatic-source-formatting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>urlify http basic authentication protected websites</title>
		<link>http://www.gehacktes.net/2009/02/urlify-http-basic-authentication-protected-websites/</link>
		<comments>http://www.gehacktes.net/2009/02/urlify-http-basic-authentication-protected-websites/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 17:37:13 +0000</pubDate>
		<dc:creator>fschaper</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[basic authentication]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.gehacktes.net/?p=169</guid>
		<description><![CDATA[I recently needed to access an RSS resource on the web that was protected via http basic authentication. Well, my feed-reader of choice doesn&#8217;t really support that. To work around the problem I wrote the following small PHP script that serves as a proxy. Now you can pass the username/password from the basic authentication login [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to access an RSS resource on the web that was protected via http basic authentication. Well, my feed-reader of choice doesn&#8217;t really support that. To work around the problem I wrote the following small PHP script that serves as a proxy. Now you can pass the username/password from the basic authentication login as part of the URL.</p>
<p><strong>Update:</strong> now supports https connections.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php
&nbsp;
<span style="color: #666666; font-style: italic;">// determine if connections to other servers</span>
<span style="color: #666666; font-style: italic;">// are to be allowed. change this password! seriously!</span>
<span style="color: #000088;">$allow_foreign</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'proxy_pass'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'master_password'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #990000;">parse_url</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'feed'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// connect to an ssl encrypted site?</span>
<span style="color: #000088;">$use_ssl</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'scheme'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;https&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// determine the port to use based on passed URL</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'port'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$port</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$use_ssl</span> ? <span style="color: #cc66cc;">443</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">80</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$port</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'port'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// determine the host to connect to.</span>
<span style="color: #666666; font-style: italic;">// only allow connections to servers other</span>
<span style="color: #666666; font-style: italic;">// than localhost when the proxy_pass has been</span>
<span style="color: #666666; font-style: italic;">// correctly passed.</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$allow_foreign</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'host'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;127.0.0.1&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// is this supposed to be an ssl connection?</span>
<span style="color: #666666; font-style: italic;">// then use the ssl protocol.</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$use_ssl</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;ssl://&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$host</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// try to open a connection to the requested host</span>
<span style="color: #000088;">$fh</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fsockopen</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$host</span><span style="color: #339933;">,</span> <span style="color: #000088;">$port</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;GET &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'path'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; HTTP/1.0<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// in case we deal with virtual hosts pass the domain we are interested in.</span>
	<span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Host: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'host'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// rfc2617: basic authorization header plus base64 encoded username:password</span>
	<span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Authorization: Basic &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">base64_encode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// end of the request header</span>
	<span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 <span style="color: #666666; font-style: italic;">// practically ignore all answering headers send by the server</span>
	<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">feof</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$debug</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">/*echo $debug*/</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// display only the body of the message</span>
	<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">feof</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$fh</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Piece of advice:</h3>
<ul>
<li>Please note that if you use this in your web-browser your username/password might accidentally end up in some peoples web-server logs when your browser passes the reffer header around.</li>
<li><strong>Change &#8220;master_password&#8221;</strong> to something secure. Otherwise you will open your server as a proxy to others to do all kinds of nasty things under your IP address.  <em>If you don&#8217;t provide the &#8220;proxy_pass&#8221; parameter when you invoke the URL later you will only be able to access the local server where your script is placed!</em></li>
<li>If your script is publicly accessible you also might want to change the  ($url['port'] ? $url['port'] : 80) part to always point to &#8220;80&#8243;.</li>
</ul>
<h3>How to use the script:</h3>
<p>Save the script to your webserver. You can now invoke your protected? HTTP web resource via:<br />
script_name.php?feed=[URL_TO_QUERY]&amp;user=[YOUR_USERNAME]&amp;pass=[YOUR_PASSWORD]</p>
<p>f.ex.:</p>
<p>http://www.default-route.de/proxy.php?feed=http://www.google.com/&amp;user=myname&amp;pass=mypassword</p>
<h3>References:</h3>
<p style="text-align: left;"><a href="http://www.faqs.org/rfcs/rfc2617.html" target="_blank">rfc2617</a> &#8211; HTTP Authentication: Basic and Digest Access Authentication<br />
<a href="http://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank">basic authentication</a> &#8211; article on wikipedia</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gehacktes.net/2009/02/urlify-http-basic-authentication-protected-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speeding up filesystem performance under Windows Vista/Server</title>
		<link>http://www.gehacktes.net/2008/11/speeding-up-filesystem-performance-under-windows-vistaserver/</link>
		<comments>http://www.gehacktes.net/2008/11/speeding-up-filesystem-performance-under-windows-vistaserver/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 15:34:14 +0000</pubDate>
		<dc:creator>fschaper</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[fsutil]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[memoryusage]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[server 2008]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://www.gehacktes.net/?p=91</guid>
		<description><![CDATA[Got a lot of spare RAM and want to put it to good use? If you have some spare memory on your Windows Vista or Server2008 system and have to deal with frequent file access .. say you need to compile your development project every once in a while .. you might want to tune [...]]]></description>
			<content:encoded><![CDATA[<p>Got a lot of spare RAM and want to put it to good use? If you have some spare memory on your Windows Vista or Server2008 system and have to deal with frequent file access .. say you need to compile your development project every once in a while .. you might want to tune your system a bit.</p>
<p>Again there is little to be gathered from the <a href="http://technet.microsoft.com/en-us/library/cc773059.aspx">Microsoft documentation</a> as it&#8217;s not very specific on this topic (at least I&#8217;m unable to find anything in an reasonable amount of time).</p>
<p>To increase the amount of memory available to the NTFS start up the command line with administrator privileges.<br />
The command <code>fsutil behavior query memoryusage</code> will show you the current setting of your system with &#8220;0&#8243; or &#8220;1&#8243; being the default behavior.</p>
<p>from the documentation of fsutil: <cite>&#8230; Configures the internal cache levels of NTFS paged pool and NTFS non-paged pool memory. Set to 1 or 2. When set to 1 (the default), NTFS uses the default amount of paged pool memory. When set to 2, NTFS increases the size of its lookaside lists and memory thresholds. A lookaside list is a pool of fixed-size kernel memory buffers that the kernel and device drivers create as private memory caches for file system operations, such as reading a file. &#8230;</cite></p>
<p>So, changing the value to &#8220;2&#8243; should tell the NTFS handler to use more memory. To do that we make use of our administrative console again:<code><br />
fsutil behavior set memoryusage 2</code><br />
<code><br />
</code></p>
<p><a href="http://www.gehacktes.net/wp-content/uploads/2008/11/fsutil_admin_console1.jpg"><img class="alignnone size-full wp-image-96" title="fsutil under admin console" src="http://www.gehacktes.net/wp-content/uploads/2008/11/fsutil_admin_console1.jpg" alt="" width="500" height="251" /></a></p>
<p>Alternatively you can change the setting in the registry directly using regedit.</p>
<p><a href="http://www.gehacktes.net/wp-content/uploads/2008/11/regedit1.jpg"><img class="alignnone size-full wp-image-97" title="regedit ntfs setting" src="http://www.gehacktes.net/wp-content/uploads/2008/11/regedit1.jpg" alt="" width="500" height="376" /></a></p>
<p>As of yet, I for myself have to see if the change of settings actually does something noticeable. If you have gained some experience (positive or bad) feel free to comment. I&#8217;d love to hear from you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gehacktes.net/2008/11/speeding-up-filesystem-performance-under-windows-vistaserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the case of the lost window</title>
		<link>http://www.gehacktes.net/2008/07/the-case-of-the-lost-window/</link>
		<comments>http://www.gehacktes.net/2008/07/the-case-of-the-lost-window/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 19:38:42 +0000</pubDate>
		<dc:creator>fschaper</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.gehacktes.net/?p=3</guid>
		<description><![CDATA[here is this problem with the windows OS that is known amongst most people regularly working with multiple screens. Some programs will remember their last on screen position and keep on popping up there, even when the display is no longer attached to the computer and/or disabled in the OS display settings.  Some graphic card [...]]]></description>
			<content:encoded><![CDATA[<p>here is this problem with the windows OS that is known amongst most people regularly working with multiple screens. Some programs will <em>remember</em> their last on screen position and keep on popping up there, even when the display is no longer attached to the computer and/or disabled in the OS display settings.  Some graphic card vendors (I believe nvidia at least) provide you with some additional software which can be configured to prevent dialogs and windows from opening outside the visible desktop space.</p>
<p>For the rest of us I have written a <a href="http://www.gehacktes.net/wp-content/uploads/2008/07/windowreset.zip" target="_blank">little tool</a> (<span style="color: #c0c0c0;">md5 windowreset.exe bff8b54a89a188793eb9b6bfbe9e8526) </span>which tries to detect all off-screen windows and dialogs and moves them to the primary display.</p>
<p>edit (thanks hans):<br />
another (not well known) option that works at least for windows that appear in the windows taskbar is to right click the offending window and to choose &#8220;move&#8221; from the context menu. Now you can use your arrow keys to navigate the window to the primary display. Again, this will not work for some dialogs that appear off screen.</p>
<p><span style="text-decoration: underline;">Usage</span>: when you start the program it will open in an console window. While running it will try to move all windows and dialogs that are currently outside the visible desktop to the primary screens upper-left point.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gehacktes.net/2008/07/the-case-of-the-lost-window/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
