<?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>E.V.I.C.T. B.V. &#187; Search Results  &#187;  comdoc</title>
	<atom:link href="http://evict.nl/?s=comdoc&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://evict.nl</link>
	<description>Playground of Edwin Vermeer</description>
	<lastBuildDate>Sun, 04 Jul 2010 21:57:13 +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>404 urlrewrite and WordPress search</title>
		<link>http://evict.nl/web/404-urlrewrite-and-wordpress-search/</link>
		<comments>http://evict.nl/web/404-urlrewrite-and-wordpress-search/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 00:28:12 +0000</pubDate>
		<dc:creator>Edwin Vermeer</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[urlrewrite]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://evict.nl/?p=235</guid>
		<description><![CDATA[Today I thought about my problem of having my old site still 1/2 alive next to my new WordPress site. On the internet there are still a couple of links that directly point to various files that aren&#8217;t used anymore. Wouldn&#8217;t it be nice if you could just remove all those old files and still [...]]]></description>
			<content:encoded><![CDATA[<p>Today I thought about my problem of having my old site still 1/2 alive next to my new WordPress site. On the internet there are still a couple of links that directly point to various files that aren&#8217;t used anymore. Wouldn&#8217;t it be nice if you could just remove all those old files and still come up with the right WordPress page?</p>
<p>I just made this possible by changing my custom 404 urlrewrite page. This is what my page now does:<br />
1. get whatever is after the domain name from the url and open the wordpress index.php with that part behind it.<br />
2. if the result is not a regular page, then get the words from the url and perform a search.</p>
<p>for instance the link <a href="http://evict.nl/error">http://evict.nl/error</a> will search for the word error because there is no page named error. One of my old pages <a href="http://evict.nl/comdoc/default.asp">http://evict.nl/comdoc/default.asp</a> will now search for &#8216;comdoc&#8217; and still find the comdoc content (below this post).</p>
<p>Here is the complete sourcecode of my error.asp</p>
<pre class="brush: vb">
&lt;%
Response.Buffer = True
Response.Status = &quot;200 OK&quot;
Response.CharSet = &quot;UTF-8&quot;
Session.CodePage = 65001
myurl = QueryPath()
content = ReturnPage(myurl)
notfound = &quot;Sorry, but you are looking for something that isn&#039;t here. You can search again by using the form on upper right of the page...&quot;
if instr(content, notfound) &gt; 1 or len(trim(content)) &lt; 1 then
	Response.Write ReturnPage(SearchQueryPath())
else
	Response.Write content
end if
Response.End()

Function QueryPath()
	&#039; The WordPress location
	w = &quot;http://&quot; + Request.ServerVariables(&quot;HTTP_HOST&quot;) + &quot;/index.php&quot;
	&#039; Take whatever is after the host name
	q = mid(request.QueryString, instr(request.QueryString, Request.ServerVariables(&quot;HTTP_HOST&quot;)) , 999)
	&#039; Take the part behind the first /
	QueryPath = w + mid(q, instr(q, &quot;/&quot;) , 999)
End Function

Function SearchQueryPath()
	&#039; The WordPress location
	w = &quot;http://&quot; + Request.ServerVariables(&quot;HTTP_HOST&quot;) + &quot;/index.php?submit=Find&amp;s=&quot;
	&#039; Take whatever is after the host name
	q = mid(request.QueryString, instr(request.QueryString, Request.ServerVariables(&quot;HTTP_HOST&quot;)) , 999)
	&#039; Take the part behind the first / and remove all / and \
	c = LCase(replace(replace(mid(q, instr(q, &quot;/&quot;) + 1 , 999),&quot;/&quot;,&quot; &quot;),&quot;\&quot;,&quot; &quot;))
	&#039; Remove the default.asp or .asp or .
	SearchQueryPath = w + replace(replace(replace(c,&quot;default.asp&quot;,&quot;&quot;),&quot;.asp&quot;,&quot;&quot;),&quot;.&quot;,&quot; &quot;)
End Function

Function ReturnPage(myPage)
    on error resume next
	br = Request.ServerVariables(&quot;HTTP_USER_AGENT&quot;)
	set xmlhttp = CreateObject(&quot;MSXML2.ServerXMLHTTP&quot;)
	xmlhttp.open &quot;GET&quot;, myPage, false
	xmlhttp.setRequestHeader &quot;Content-Type&quot;, &quot;text/HTMI&quot;
	xmlhttp.setRequestHeader &quot;CharSet&quot;, &quot;UTF-8&quot;
	xmlhttp.setRequestHeader &quot;User-Agent&quot;,br 	&#039; Required for the WPtouch iPhone Theme
	xmlhttp.send &quot;&quot;
	if err.number &lt;&gt; 0 then
		Response.Status = &quot;404 Page not found&quot;
		ReturnPage = &quot;404 Page not found&quot;
	else
		ReturnPage = xmlhttp.responseText  &#039;responseBody
	end if
	set xmlhttp = nothing
End Function
%&gt;
</pre>
<h2  class="related_post_title">Related posts</h2><ul class="related_post"><li>January 28, 2010 -- <a href="http://evict.nl/web/two-new-websites-live/" title="Two new websites live!">Two new websites live!</a> (0)</li><li>January 6, 2010 -- <a href="http://evict.nl/web/configuring-wordpress/" title="Configuring WordPress">Configuring WordPress</a> (0)</li><li>January 5, 2010 -- <a href="http://evict.nl/announcements/wordpress-website-now-live/" title="WordPress website now live">WordPress website now live</a> (0)</li><li>December 29, 2009 -- <a href="http://evict.nl/announcements/welcome/" title="Welcome&#8230;">Welcome&#8230;</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://evict.nl/web/404-urlrewrite-and-wordpress-search/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ComDoc</title>
		<link>http://evict.nl/open-source/comdoc/</link>
		<comments>http://evict.nl/open-source/comdoc/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 23:51:24 +0000</pubDate>
		<dc:creator>Edwin Vermeer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://evict.nl/wordpress/?page_id=150</guid>
		<description><![CDATA[If you have a OLE/COM component (dll or ocx) and you want to write documentation for it, then ComDoc is the tool for you. ComDoc will use the component itself for building the structure of the documentation and can also make use of the descriptions that are part of the component. For the publication ComDoc [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a OLE/COM component (dll or ocx) and you want to write documentation for it, then ComDoc is the tool for you.</p>
<p>ComDoc will use the component itself for building the structure of the documentation and can also make use of the descriptions that are part of the component.</p>
<p>For the publication ComDoc uses the <a href="http://evict.nl/open-source/dbpublisher">DBPublisher</a> object. Because all the publications are based on templates the outcome is 100% customizable.</p>
<p>There is also support for compiling the HTML help using the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp">Microsoft HTML help workshop</a></p>
<p>You can download a <strong>6.1MB</strong> installable file by clicking <a href="http://www.evict.nl/ComDoc.exe">here</a> and the source code from <a href="http://www.evict.nl/ComDoc.zip">here</a>.</p>
<table>
<tbody>
<tr>
<td><a href="http://evict.nl/wp-content/uploads/2010/01/comdoc1.png"><img class="alignnone size-thumbnail wp-image-153" title="comdoc 1" src="http://evict.nl/wp-content/uploads/2010/01/comdoc1-150x150.png" alt="comdoc 1" width="150" height="150" /></a></td>
<td><a href="http://evict.nl/wp-content/uploads/2010/01/comdoc2.png"><img class="alignnone size-thumbnail wp-image-154" title="comdoc2" src="http://evict.nl/wp-content/uploads/2010/01/comdoc2-150x150.png" alt="" width="150" height="150" /></a></td>
<td><a href="http://evict.nl/wp-content/uploads/2010/01/comdoc3.png"><img class="alignnone size-thumbnail wp-image-155" title="comdoc3" src="http://evict.nl/wp-content/uploads/2010/01/comdoc3-150x150.png" alt="" width="150" height="150" /></a></td>
</tr>
</tbody>
</table>
<h2  class="related_post_title">Related posts</h2><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://evict.nl/open-source/comdoc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open source (VB6)</title>
		<link>http://evict.nl/open-source/</link>
		<comments>http://evict.nl/open-source/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 19:22:44 +0000</pubDate>
		<dc:creator>Edwin Vermeer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://evict.nl/wordpress/?page_id=60</guid>
		<description><![CDATA[In the period 2000 &#8211; 2004 I have done a lot of Visual Basic 6 programming which also resulted in a nice collection of reusable code. I did my best to make this code as generic and reusable as possible. Below you can see a short explanation of those portions plus a download link for [...]]]></description>
			<content:encoded><![CDATA[<p>In the period 2000 &#8211; 2004 I have done a lot of Visual Basic 6 programming which also resulted in a nice collection of reusable code. I did my best to make this code as generic and reusable as possible. Below you can see a short explanation of those portions plus a download link for the source code.</p>
<ul>
<li style="z-index: 1;" class="page_item page-item-128"><a href="http://evict.nl/open-source/automating-internet-explorer/" title="Automating Internet Explorer">Automating Internet Explorer</a> You can open and fully control a Internet Explorer window. Unless you want to know how to hook into IE, i can advice using <a href="http://watin.sourceforge.net/">WatiN</a> instead of this library.</li>
<li style="z-index: 1;" class="page_item page-item-74"><a href="http://evict.nl/open-source/client-server-communications/" title="Client Server communications">Client Server communications</a> This library let you create a client or a server in an easy to use object oriented way. By calling the wininet.dll directly instead of using the winsock control this dll excells in performance and memory usage.</li>
<li class="page_item page-item-150"><a href="http://evict.nl/open-source/comdoc/" title="ComDoc">ComDoc</a> If you have a OLE/COM component (dll or ocx) and you want to write documentation for it, then ComDoc is the tool for you. ComDoc will use the component itself for building the structure of the documentation and can also make use of the descriptions that are part of the component. For the publication ComDoc uses the <a href="http://evict.nl/open-source/dbpublisher/" title="DBPublisher">DBPublisher</a>object. Because all the publications are based on templates the outcome is 100% customizable.</li>
<li style="z-index: 1;" class="page_item page-item-46"><a href="http://evict.nl/open-source/dbpublisher/" title="DBPublisher">DBPublisher</a> is a template driven database publication tool. with support for email and ftp.</li>
<li class="page_item page-item-113"><a href="http://evict.nl/open-source/encryption/" title="Encryption">Encryption</a> is a very easy to use ActiveX dll for encrypting and decrypting data. It can be used from almost any programing language. It Has support For RC2, RC4, DES, Triple DES and Triple DES 112.</li>
<li class="page_item page-item-85"><a href="http://evict.nl/open-source/error-handling/" title="Error handling">Error handling</a> You can bennefit a lot if you use a generic method for your error handling in your application. Using line numbers in VB is undervalued. You will only get a 10% bigger .exe but it will make your life much easier to debug your application. The demo will also show you how to build an error trace and how to capture GPF errors.
</li>
<li class="page_item page-item-117"><a href="http://evict.nl/open-source/event-log/" title="Event log">Event log</a> is a module with one function that will give you some more functionality than what you can do with the App.LogEvent method in VB6.</li>
<li class="page_item page-item-146"><a href="http://evict.nl/open-source/ftp/" title="FTP">FTP</a> is a library that (like most commercial components) acts as a ‘wrapper’ around’ the wininet.dll FTP  api calls and takes that dll to its functional limits. This object makes it easy to add FTP  functionality to your application at a proffesional level.</li>
<li class="page_item page-item-139"><a href="http://evict.nl/open-source/object-browser/" title="Object browser">Object browser</a> lets you have a look at the structure of any OLE/COM object. This can be an ActiveX dll, an OCX or an ActiveX EXE. It’s even possible to read out the entire object model of any MS  Office application.</li>
<li class="page_item page-item-142"><a href="http://evict.nl/open-source/quicktip/" title="QuickTip">QuickTip</a> adds a very nice help function to your application. There is even support for getting the help text out of a chm help file.</li>
<li class="page_item page-item-109"><a href="http://evict.nl/open-source/receiving-e-mail-using-pop3/" title="Receiving e-mail using POP3">Receiving e-mail using POP3</a></li>
<li class="page_item page-item-123"><a href="http://evict.nl/open-source/scraping-the-web/" title="Scraping the web">Scraping the web</a> The WebGrabber object is meant to help you to parse table structured data into a database. This is not only usefull for html files with data in a table but it can also be used to parse a csv file into the database</li>
<li class="page_item page-item-104"><a href="http://evict.nl/open-source/sending-e-mail-using-smtp/" title="Sending e-mail using SMTP">Sending e-mail using SMTP</a></li>
<li class="page_item page-item-95"><a href="http://evict.nl/open-source/telnet/" title="Telnet">Telnet</a> is a library that will let you interact with a host using the Telnet protocol. You can send any command and get the data that is returned by it. It is also possible to react on various events that are triggered.</li>
<li class="page_item page-item-131"><a href="http://evict.nl/open-source/windows-service/" title="Windows Service">Windows Service</a> is the easiest way to create your own true NT service. Just look at the testService project. This has all the code you need.</li>
</ul>
<h2  class="related_post_title">Related posts</h2><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://evict.nl/open-source/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
