<?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>Johan Känngård &#187; Windows</title>
	<atom:link href="http://johankanngard.net/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://johankanngard.net</link>
	<description>Useful tips for developers</description>
	<lastBuildDate>Thu, 19 May 2011 18:40:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Log File Roller For Microsoft Windows</title>
		<link>http://johankanngard.net/2008/12/11/log-file-roller-for-microsoft-windows/</link>
		<comments>http://johankanngard.net/2008/12/11/log-file-roller-for-microsoft-windows/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 13:50:43 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[batch]]></category>

		<guid isPermaLink="false">http://johankanngard.net/?p=330</guid>
		<description><![CDATA[A simple log file roller, that rolls/rotates a file from FILENAME.0, to FILENAME.1, onwards to FILENAME.9. If FILENAME.9 exists, it is deleted. Can be used to keep log files small and managable, and delete old ones. The code is not pretty, I could not get it work with loops. If anyone has a better way [...]]]></description>
			<content:encoded><![CDATA[<p>
A simple log file roller, that rolls/rotates a file from FILENAME.0, to FILENAME.1, onwards to FILENAME.9. If FILENAME.9 exists, it is deleted. Can be used to keep log files small and managable, and delete old ones. The code is not pretty, I could not get it work with loops. If anyone has a better way of doing this, please let me know! :-)
</p>
<p>Usage:<br />
<code><br />
rollLog LOGDIRECTORY LOGFILENAME<br />
</code><br />
For instance, if you have a log at c:\log\at.log, you can run:<br />
<code><br />
rollLog c:\logs at.log<br />
</code></p>
<p>
Afterwards, you have one file named c:\logs\at.log.0. The next time you run it (and there has been something written to at.log) you get two files, at.log.0 and at.log.1.
</p>
<p>
The <a href='http://johankanngard.net/wp-content/uploads/2008/12/rolllog.cmd'>rollLog.cmd file is here</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2008/12/11/log-file-roller-for-microsoft-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mozilla Firefox 1.5.0.1 is out!</title>
		<link>http://johankanngard.net/2006/02/02/mozilla-firefox-1501-out/</link>
		<comments>http://johankanngard.net/2006/02/02/mozilla-firefox-1501-out/#comments</comments>
		<pubDate>Thu, 02 Feb 2006 10:13:52 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://johankanngard.net/2006/02/02/mozilla-firefox-1501-out/</guid>
		<description><![CDATA[It&#8217;s now released, and not only pre-released :-D The release notes and the detailed list contains a bunch of bug and security fixes. So go and grab it! Note that the about dialog is the same as in the pre release. [tags]Mozilla, Firefox[/tags]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/kanngard/89050450/" title="Mozilla Firefox 1.5.0.1 About Dialog"><img src="http://static.flickr.com/13/89050450_5e4239b39e_m.jpg" alt="Mozilla Firefox 1.5.0.1 About Dialog" /></a><br />
It&#8217;s now released, and not only <a href="http://johankanngard.net/2006/01/21/mozilla-firefox-1501/">pre-released</a> :-D The <a href="http://www.mozilla.com/firefox/releases/1.5.0.1.html">release notes</a> and the <a href="http://www.squarefree.com/burningedge/releases/1.5.0.1.html">detailed list</a> contains a bunch of bug and security fixes. So go and <a href="http://www.mozilla.com/firefox/">grab it</a>! Note that the about dialog is the same as in the pre release.</p>
<p>[tags]Mozilla, Firefox[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2006/02/02/mozilla-firefox-1501-out/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>VNC with encryption and file transfer</title>
		<link>http://johankanngard.net/2006/01/31/vnc-with-encryption-and-file-transfer/</link>
		<comments>http://johankanngard.net/2006/01/31/vnc-with-encryption-and-file-transfer/#comments</comments>
		<pubDate>Tue, 31 Jan 2006 16:36:42 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://johankanngard.net/2006/01/31/vnc-with-encryption-and-file-transfer/</guid>
		<description><![CDATA[I have used the free edition of RealVNC until I did some research about how to get the connection encrypted. I have tried RealVNC Personal Edition with encryption, but it doesn&#8217;t have built in file transfer capability. Meet UltraVNC! It is GPL&#8216;ed, has encryption and built in file transfer! [tags]VNC[/tags]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/kanngard/96334881/"><img src="http://static.flickr.com/32/96334881_3bb47d8616_m.jpg" width="240" height="223" title="Ultra VNC 1.0.1 Connection dialog" /></a><br />
I have used the free edition of <a href="http://www.realvnc.com">RealVNC</a> until I did some research about how to get the connection encrypted. I have tried RealVNC Personal Edition with encryption, but it doesn&#8217;t have built in file transfer capability. Meet <a href="http://ultravnc.sourceforge.net">UltraVNC</a>! It is <a href="http://www.gnu.org/copyleft/gpl.html">GPL</a>&#8216;ed, has <a href="http://www.uvnc.com/features/encryption.html">encryption</a> and built in <a href="http://www.uvnc.com/features/filetransfer.html">file transfer</a>!</p>
<p>[tags]VNC[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2006/01/31/vnc-with-encryption-and-file-transfer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mozilla Firefox 1.5.0.1</title>
		<link>http://johankanngard.net/2006/01/21/mozilla-firefox-1501/</link>
		<comments>http://johankanngard.net/2006/01/21/mozilla-firefox-1501/#comments</comments>
		<pubDate>Fri, 20 Jan 2006 22:29:01 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://johankanngard.net/2006/01/21/mozilla-firefox-1501/</guid>
		<description><![CDATA[I got it via the automatic update system, but it doesn&#8217;t mention it on the official website. I found a release candidate of 1.5.0.1 on the FTP site though. Strange&#8230; Not so strange after all, it&#8217;s all explained in the &#8220;What the heck is with this 1.5.0.1 update?&#8221; article at developer.mozilla.org.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/kanngard/89050450/" title="Mozilla Firefox 1.5.0.1 About Dialog"><img src="http://static.flickr.com/13/89050450_5e4239b39e_m.jpg" alt="Mozilla Firefox 1.5.0.1 About Dialog" /></a></p>
<p style="">I got it via the automatic update system, but it doesn&#8217;t mention it on the official <a href="http://www.mozilla.com/firefox">website</a>. I found a <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.1rc1/">release candidate</a> of 1.5.0.1 on the <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/">FTP site</a> though. Strange&#8230;</p>
<p><ins datetime="2006-01-22T22:01:26+00:00">Not so strange after all, it&#8217;s all explained in the &#8220;<a href="http://developer.mozilla.org/devnews/index.php/2006/01/19/what-the-heck-is-with-this-1501-update/">What the heck is with this 1.5.0.1 update?</a>&#8221; article at <a href="http://developer.mozilla.org">developer.mozilla.org</a>.</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2006/01/21/mozilla-firefox-1501/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Applications and tools I use (almost) daily</title>
		<link>http://johankanngard.net/2005/11/19/applications-and-tools-i-use-almost-daily/</link>
		<comments>http://johankanngard.net/2005/11/19/applications-and-tools-i-use-almost-daily/#comments</comments>
		<pubDate>Fri, 18 Nov 2005 23:59:31 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://johankanngard.net/?p=26</guid>
		<description><![CDATA[I&#8217;ve done this before, but it&#8217;s time for a new list with a selection of the tools and applications I&#8217;m using: jEdit, text editor written in Java with BeanShell execution support, edit modes, syntax highlightning, seearch and replace with regular expressions xplorer2 Pro, The Windows Explorer replacement, with a multitude of shortcuts and features Process [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve done this <a href="http://dev.kanngard.net/Permalinks/ID_20021031010901.html">before</a>, but it&#8217;s time for a new list with a selection of the tools and applications I&#8217;m using:</p>
<ul>
<li><a href="http://www.jedit.org">jEdit</a>, text editor written in Java with <a href="http://www.beanshell.org">BeanShell</a> execution support, edit modes, syntax highlightning, seearch and replace with regular expressions</li>
<li><a href="http://www.zabkat.com">xplorer2 Pro</a>, <strong>The</strong> Windows Explorer replacement, with a multitude of shortcuts and features</li>
<li><a href="http://www.sysinternals.com/Utilities/ProcessExplorer.html">Process Explorer</a>, a better Task Manager, that shows processes in a hierarchy</li>
<li><a href="http://www.mozilla.org/firefox">Firefox</a>, of course</li>
<li><a href="http://www.mozilla.org/thunderbird">Thunderbird</a>, of course</li>
<li><a href="http://www.gimp.org">GIMP</a>, I&#8217;ve not launched my old Photoshop since I discovered this magnificent application!</li>
<li><a href="http://www.friedemann-schmidt.com/software/exifer/">Exifer</a>, great when renaming photos from the digital camera</li>
<li><a href="http://gaim.sf.net">Gaim</a>, superb <acronym title="Instant Messaging">IM</acronym> client with support for multiple accounts</li>
<li><a href="http://www.brainsystems.com/capsunlock/">CapsUnlock</a></li>
<li><a href="http://ultravnc.sf.net">UltraVNC</a></li>
<li><a href="http://www.cygwin.com">Cygwin</a>, the Linux-like environment for Windows</li>
<li><a href="http://www.7-zip.org">7-zip</a>, <a href="http://www.gnu.org/licenses/lgpl.html">LGPL</a>:ed compressing/uncompressing software, that makes really small archives</li>
<li><a href="http://filezilla.sf.net">Filezilla</a></li>
<li><a href="http://www.winamp.com">Winamp</a>, big, clumsy, but it works. I&#8217;m looking for a better alternative though</li>
<li><a href="http://musicbrainz.org/tagger/">MusicBrainz Tagger</a>, to tag my ripped MP3:s so it can be recognized by <a href="http://www.last.fm">last.fm</a> when I play them</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2005/11/19/applications-and-tools-i-use-almost-daily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mark has moved the mountain!</title>
		<link>http://johankanngard.net/2005/11/16/mark-has-moved-the-mountain/</link>
		<comments>http://johankanngard.net/2005/11/16/mark-has-moved-the-mountain/#comments</comments>
		<pubDate>Wed, 16 Nov 2005 20:58:05 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://johankanngard.net/?p=24</guid>
		<description><![CDATA[Well done, Mark! Your deep digging has been rewarded at last!]]></description>
			<content:encoded><![CDATA[<p>Well done, <a href="http://www.sysinternals.com/blog/2005/11/victory.html">Mark</a>! Your deep <a href="http://www.sysinternals.com/blog/2005/10/sony-rootkits-and-digital-rights.html">digging</a> has been rewarded at last!</p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2005/11/16/mark-has-moved-the-mountain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WinHTTPRequest COM object options constants</title>
		<link>http://johankanngard.net/2005/11/11/winhttprequest-com-object-options-constants/</link>
		<comments>http://johankanngard.net/2005/11/11/winhttprequest-com-object-options-constants/#comments</comments>
		<pubDate>Fri, 11 Nov 2005 11:45:26 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[LotusScript]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://johankanngard.net/?p=20</guid>
		<description><![CDATA[I have tried to search for the literal values of some of the options to <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/winhttp.asp">WinHTTP</a> that handles SSL server certificates errors. In my case I have a development server that has a certificate with the wrong name in it, and I want to ignore the usual "The host name in the certificate is invalid or does not match" error. At last, I find the values to use!]]></description>
			<content:encoded><![CDATA[<p>I have tried to search for the literal values of some of the options to <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/winhttp.asp">WinHTTP</a> that handles SSL server certificates errors. In my case I have a development server that has a certificate with the wrong name in it, and I want to ignore the usual &#8220;The host name in the certificate is invalid or does not match&#8221; error. Since I am using LotusScript to access the COM class <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/using_the_winhttprequest_com_object.asp">WinHTTP.WinHTTPRequest</a>, I can&#8217;t simply use:<br />
<code><br />
Dim http As Variant<br />
Set http = CreateObject("WinHTTP.WinHTTPRequest.5.1")<br />
http.Option(WinHttpRequestOption_SslErrorIgnoreFlags) = 13056<br />
</code><br />
This of course generates an error, since the WinHttpRequestOption_SslErrorIgnoreFlags constant can not be found in LotusScript.<br />
The answer couldn&#8217;t be found anywhere on MSDN, but some searching on Google led me to <a href="http://www.fastbugtrack.com/support/misc/default.asp">a page</a> at <a href="http://www.fastbugtrack.com/">fastbugtrack.com</a> with some code that contains the constant I needed! So here they are for future reference:<br />
<code><br />
' WinHTTPRequest options:<br />
Const WinHttpRequestOption_UserAgentString = 0<br />
Const WinHttpRequestOption_URL = 1<br />
Const WinHttpRequestOption_URLCodePage = 2<br />
Const WinHttpRequestOption_EscapePercentInURL = 3<br />
Const WinHttpRequestOption_SslErrorIgnoreFlags = 4<br />
Const WinHttpRequestOption_SelectCertificate = 5<br />
Const WinHttpRequestOption_EnableRedirects = 6<br />
Const WinHttpRequestOption_UrlEscapeDisable = 7<br />
Const WinHttpRequestOption_UrlEscapeDisableQuery = 8<br />
Const WinHttpRequestOption_SecureProtocols = 9<br />
Const WinHttpRequestOption_EnableTracing = 10<br />
</code><br />
The actual value for http.Option(WinHttpRequestOption_SslErrorIgnoreFlags) that I have set to 13056 (hexadecimal 0&#215;3300) is an addition of all switches found at the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/winhttprequestoption.asp">WinHttpRequestOption</a> documentation at WinHttpRequestOption_SslErrorIgnoreFlags.</p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2005/11/11/winhttprequest-com-object-options-constants/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Prevent Windows from stealing focus</title>
		<link>http://johankanngard.net/2005/11/11/prevent-windows-from-stealing-focus/</link>
		<comments>http://johankanngard.net/2005/11/11/prevent-windows-from-stealing-focus/#comments</comments>
		<pubDate>Fri, 11 Nov 2005 09:17:41 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://johankanngard.net/2005/11/11/prevent-windows-from-stealing-focus/</guid>
		<description><![CDATA[Useful BAT file to use when starting Windows.]]></description>
			<content:encoded><![CDATA[<p>I want to be able to work in the program I have open at the moment, and not being interrupted by other applications that want automatic focus. So I have used <a href="http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx">TweakUI</a> quite a while. The problem is that some applications tend to overwrite the crucial registry settings with their own (read: steal focus ON).<br />
To get around this, I now have a BAT file that is run whenever I log in:<br />
<code><br />
@echo off<br />
reg ADD "HKEY_CURRENT_USER\Control Panel\Desktop" /v<br />
ForegroundFlashCount /t REG_DWORD /d 0x00000000 /f > nul<br />
reg ADD "HKEY_CURRENT_USER\Control Panel\Desktop" /v<br />
ForegroundLockTimeout /t REG_DWORD /d 0x00030d40 /f > nul<br />
</code><br />
Note that there shouldn&#8217;t be a newline after the /v&#8217;s&#8230;<br />
Put a shortcut to the BAT file in your Startup folder in the Start menu, and it will silently run whenever you login.<br />
Thanks to <a href="http://useful-sounds.de/pivot/entry.php?id=102">Adrian</a> that made me (and others?) aware of the <a href="http://support.microsoft.com/kb/322756#XSLTH4260121121120121120120">reg</a> command. This way, I don&#8217;t have to use a .REG file.</p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2005/11/11/prevent-windows-from-stealing-focus/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>VarfÃ¶r just 19.00?</title>
		<link>http://johankanngard.net/2005/10/12/varfor-just-1900/</link>
		<comments>http://johankanngard.net/2005/10/12/varfor-just-1900/#comments</comments>
		<pubDate>Wed, 12 Oct 2005 11:49:07 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://johankanngard.net/wordpress/2005/10/12/varfor-just-1900/</guid>
		<description><![CDATA[DN skriver att man mÃ¥ste uppdatera sina Windows-system innan kl. 19.00 idag, annars blir man attackerad av hackers. Vad sjutton menar de med det??? VarfÃ¶r just 19.00? Microsoft har lagt upp en sida om det hela.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dn.se/DNet/jsp/polopoly.jsp?d=678&#038;a=473020&#038;previousRenderType=6">DN skriver</a> att man mÃ¥ste uppdatera sina Windows-system innan kl. 19.00 idag, annars blir man attackerad av hackers. Vad sjutton menar de med det??? VarfÃ¶r just 19.00?<br />
<ins datetime="2005-10-12T11:50:57+00:00">Microsoft har <a href="http://www.microsoft.com/technet/security/bulletin/ms05-oct.mspx">lagt upp en sida</a> om det hela.</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2005/10/12/varfor-just-1900/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

