﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Lex's blog</title>
    <description>A day in a developers life</description>
    <link>http://www.travsys.com/Blog/tabid/184/BlogId/7/Default.aspx</link>
    <language>en-US</language>
    <webMaster>lex.loep@lokasoft.nl</webMaster>
    <pubDate>Sun, 05 Feb 2012 08:44:55 GMT</pubDate>
    <lastBuildDate>Sun, 05 Feb 2012 08:44:55 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.5.1.19887</generator>
    <item>
      <title>Some experiments with windows 7 virtual XP</title>
      <description>&lt;p&gt;The new windows 7 RC has a cool feature called Virtual XP. Under the surfice this is just a more integrated version of windows virtual PC. One of the things that sparkeled my interest was the promise it could redirect USB devices. This would be very usefull for running old legacy hardware.&lt;/p&gt;&lt;a href=http://www.travsys.com/Blog/tabid/184/EntryId/17/Some-experiments-with-windows-7-virtual-XP.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.travsys.com/Blog/tabid/184/EntryId/17/Some-experiments-with-windows-7-virtual-XP.aspx</link>
      <comments>http://www.travsys.com/Blog/tabid/184/EntryId/17/Some-experiments-with-windows-7-virtual-XP.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.travsys.com/Blog/tabid/184/EntryId/17/Some-experiments-with-windows-7-virtual-XP.aspx</guid>
      <pubDate>Thu, 07 May 2009 23:00:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.travsys.com/DesktopModules/Blog/Trackback.aspx?id=17</trackback:ping>
    </item>
    <item>
      <title>Updated webskin</title>
      <description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Yesterday I spend some time to update the look and feel of the Travsys site. To save me some time and the lack the design skils, I decided to buy a skin package.&lt;/p&gt;
&lt;p&gt;After downloading the package I could simply upload a singe zip file to the website. Once that was done it was faily simple to change the site to use the new skin. Only problem was the old site had the content imported from word, this caused the font to look ugly. After some cleanup action the results where very good.&lt;/p&gt;&lt;a href=http://www.travsys.com/Blog/tabid/184/EntryId/16/Updated-webskin.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.travsys.com/Blog/tabid/184/EntryId/16/Updated-webskin.aspx</link>
      <comments>http://www.travsys.com/Blog/tabid/184/EntryId/16/Updated-webskin.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.travsys.com/Blog/tabid/184/EntryId/16/Updated-webskin.aspx</guid>
      <pubDate>Tue, 05 May 2009 23:00:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.travsys.com/DesktopModules/Blog/Trackback.aspx?id=16</trackback:ping>
    </item>
    <item>
      <title>Upgrading website</title>
      <description>&lt;p&gt;Today I have upgrade the portal software behind the travsys website. We where running on DNN 4.5.1 and now its upgraded to 4.9.3.  I did this because we did not want to lack to many versions behind. The upgrade had some problems mainly related to directory security. Eventually the upgrade went OK. The next step is to change skins, this is for a next round.&lt;/p&gt;&lt;a href=http://www.travsys.com/Blog/tabid/184/EntryId/15/Upgrading-website.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.travsys.com/Blog/tabid/184/EntryId/15/Upgrading-website.aspx</link>
      <comments>http://www.travsys.com/Blog/tabid/184/EntryId/15/Upgrading-website.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.travsys.com/Blog/tabid/184/EntryId/15/Upgrading-website.aspx</guid>
      <pubDate>Sun, 03 May 2009 23:00:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.travsys.com/DesktopModules/Blog/Trackback.aspx?id=15</trackback:ping>
    </item>
    <item>
      <title>Some Java experiments</title>
      <description>&lt;p&gt;Today I have experimented a bit with a java to com bridge. The aim was to make the CCP accesable from a Java application.&lt;/p&gt;
&lt;p&gt;After some webseach I found various free and comercial tools. Eventually I choose to experiment with com4j which is a opensource toolset to create wrappers between Java and com.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://com4j.dev.java.net/"&gt;https://com4j.dev.java.net/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Look a the tutorial is looked like exactly what we needed, so first I started of trying one of the included samples. This was not very successfull as I got none of them to work. Later I tried to create a wrapper for the CCP using there include tool. This worked fine, so now I have a wrapper..&lt;/p&gt;
&lt;p&gt;I wrote the following small text applicatio:&lt;/p&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;!--StartFragment--&gt;&lt;font color="#0000ff"&gt;import com4j.COM4J;&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"&gt;&lt;font color="#0000ff"&gt;//import ICCPApp;&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;font color="#0000ff"&gt;//import ISession;&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;font color="#0000ff"&gt;//import ClassFactory;&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"&gt;&lt;font color="#0000ff"&gt; &lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty"&gt;&lt;font color="#0000ff"&gt;public class Main {&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;font color="#0000ff"&gt;  public static void main(String[] args) {&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;font color="#0000ff"&gt;    com4j.Com4jObject obj = ClassFactory.createCCPApplication();&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;font color="#0000ff"&gt;    ICCPApp app = obj.queryInterface(ICCPApp.class);&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;font color="#0000ff"&gt;    app.showWindow((short)7);&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;font color="#0000ff"&gt;    app.openSession("test");&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;font color="#0000ff"&gt;  }&lt;/font&gt;&lt;/pre&gt;
&lt;pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;font color="#0000ff"&gt;}&lt;/font&gt;&lt;/pre&gt;
&lt;p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt; &lt;/p&gt;
&lt;p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;And tried to run it. Unfortunately whatever I did it always throwded an exception. Aftler long and frustation debug sessions I found the included com4j.dll needed to be regsvr32'd, I am still not sure why this is but this was one of the last things I did before its started working.&lt;/p&gt;
&lt;p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;Now there is one issue left, It works when I run it under eclipse but when I start it standalone it still does not work. This is problly a missing classpath or other command line option I have to pass. Anyway I left this as an excercise for the reader.&lt;/p&gt;
&lt;p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt; &lt;/p&gt;
&lt;p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;Conclusion: It is possible to create I Java to CCP bridge.&lt;/p&gt;
&lt;p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;Other comment I like to make, the same experiment but then to bridge C# .NET to the CCP took me less than 5 minutes!&lt;/p&gt;
&lt;p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0"&gt;&lt;!--EndFragment--&gt;&lt;/p&gt;</description>
      <link>http://www.travsys.com/Blog/tabid/184/EntryId/14/Some-Java-experiments.aspx</link>
      <comments>http://www.travsys.com/Blog/tabid/184/EntryId/14/Some-Java-experiments.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.travsys.com/Blog/tabid/184/EntryId/14/Some-Java-experiments.aspx</guid>
      <pubDate>Mon, 17 Sep 2007 22:00:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.travsys.com/DesktopModules/Blog/Trackback.aspx?id=14</trackback:ping>
    </item>
    <item>
      <title>Version info application and ClickOnce deployment</title>
      <description>&lt;p&gt;Today I have expermented with Microsofts click once application installation technique.&lt;/p&gt;
&lt;p&gt;We have an in house version information application that we use to keep track of the various version of the Global Connect product. This application stores its information in a xml datafile. As we sometime got questions like "I have module version x.y.z to which version of Global Connect does it belong ?".&lt;/p&gt;
&lt;p&gt;My first thought was to store this xml file on our webserver and use a standard XSLT conversion to show it. I played with this for several hours but it turned out the XSL syntax was a bit hard to use for what I wanted to do with it.&lt;/p&gt;
&lt;p&gt;Next I thought, hey lets try ClickOnce and put a version of this in house utility on the site. This utility is written in .NET 2.0 so in order to deplay it al that was needed is to check a few options in Visual Studio and publish it. Thats wat I did and yes, 10 minutes later I had a webpage with a RUN button that downloaded and exected our version utility.&lt;/p&gt;
&lt;p&gt;In order to make it really work I had to spend another couple of hours, most difficult was to find out how to pass parameters to this application, I wanted to have it load the versions data from the webservers. Eventually I found the solution:&lt;/p&gt;
&lt;pre&gt;NameValueCollection nameValueTable = new NameValueCollection();
if (ApplicationDeployment.IsNetworkDeployed)
{
  string queryString = ApplicationDeployment.CurrentDeployment.ActivationUri.Query;
  nameValueTable = HttpUtility.ParseQueryString(queryString);
  string v = nameValueTable.Get("load");
  if (v != null)
    frm.m_SourceFile = v;
  else
  {
    string url = ApplicationDeployment.CurrentDeployment.ActivationUri.ToString();
    frm.m_SourceFile = url.Substring(0, url.LastIndexOf('/') + 1) + "TravsysVersions.xml";
  }
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;&lt;p&gt;You can try it for your self from the Knowledgebase - Versions page&lt;/p&gt;</description>
      <link>http://www.travsys.com/Blog/tabid/184/EntryId/13/Version-info-application-and-ClickOnce-deployment.aspx</link>
      <comments>http://www.travsys.com/Blog/tabid/184/EntryId/13/Version-info-application-and-ClickOnce-deployment.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.travsys.com/Blog/tabid/184/EntryId/13/Version-info-application-and-ClickOnce-deployment.aspx</guid>
      <pubDate>Thu, 06 Sep 2007 22:00:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.travsys.com/DesktopModules/Blog/Trackback.aspx?id=13</trackback:ping>
    </item>
    <item>
      <title>2nd entry</title>
      <description>&lt;p&gt;Just learning how this blogging module works.&lt;/p&gt;</description>
      <link>http://www.travsys.com/Blog/tabid/184/EntryId/12/2nd-entry.aspx</link>
      <comments>http://www.travsys.com/Blog/tabid/184/EntryId/12/2nd-entry.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.travsys.com/Blog/tabid/184/EntryId/12/2nd-entry.aspx</guid>
      <pubDate>Wed, 22 Aug 2007 22:00:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.travsys.com/DesktopModules/Blog/Trackback.aspx?id=12</trackback:ping>
    </item>
    <item>
      <title>First entry</title>
      <description>&lt;p&gt;Just setup the Blog module, I will try to add some usefull info from time to time.&lt;/p&gt;</description>
      <link>http://www.travsys.com/Blog/tabid/184/EntryId/11/First-entry.aspx</link>
      <comments>http://www.travsys.com/Blog/tabid/184/EntryId/11/First-entry.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.travsys.com/Blog/tabid/184/EntryId/11/First-entry.aspx</guid>
      <pubDate>Wed, 22 Aug 2007 22:00:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.travsys.com/DesktopModules/Blog/Trackback.aspx?id=11</trackback:ping>
    </item>
  </channel>
</rss>
