Archive for May, 2007

Jeff Han on TED Talks

Wednesday, May 30th, 2007

This is related my previous post about Microsoft Surface.

Jeff Han is a research scientist for NYU’s Courant Institute of Mathematical Sciences. Here, he demonstrates—for the first time publicly—his intuitive, “interface-free,” touch-driven computer screen, which can be manipulated intuitively with the fingertips, and responds to varying levels of pressure. (Recorded February 2006 in Monterey, CA. Duration: 09:32)

[kml_flashembed movie="http://www.youtube.com/v/QKh1Rv0PlOQ" width="425" height="350" wmode="transparent" /]

Microsoft explorers a multi-touch interface technology

Wednesday, May 30th, 2007

Microsoft Research Lab has done some cool work on “Microsoft Surface” -product. Based on multi-touch concept where they explore ideas how this could impact on future interface design. Worth of checking out.

[kml_flashembed movie="http://www.youtube.com/v/nnumOOu6JKc" width="425" height="350" wmode="transparent" /]

See more PopularMechanics there is a whole article and another video about it.

Update: Microsoft released Microsoft Surface website.

Moving back to Barcelona

Monday, May 28th, 2007

We are moving back to Barcelona next Saturday. My 6 month working trip in Copenhagen turn out to be 6 years living and enjoying in Denmark. Since it’s been almost 6 years since I moved to DK we decided to take 3 months trial period. We are moving there for 3 months first and if it feels OK, we will come back to Copenhagen and sell our apartment and move there indefinitely.

I will continue building websites in Addition but you wont be seeing me in the meetings so often.  I am hoping this summer to go back to code a bit just to brush up. I also hope to find some companies in Spain that are interested developing their web or intranet on Sitecore.

I am keen to get to know web development community in Barcelona. If you are a .NET or just any type of Web/CMS Developer in Barcelona area please drop me an email. I would like to hear what you do? In exchange tell you about Sitecore CMS and how is it to build CMS solutions.

Sorting Sitecore data to multicolumn html table

Sunday, May 27th, 2007

Sorting Sitecore data to multicolumn html table is quite hard in XSLT because data in XML is not sorted by item/@sortorder.

I finally found out how to do this so it will actually work and I am not loosing data. The trick is creating data first into a flat XML Nodeset and looping this data then to a multicolumn table using following-sibling::item commands. Here is the small sample code for this where I take abstract content structure from the Sitecore to a XML Nodeset <ul><li>xxxxxx</li></ul>.

First let’s make a variable.

<xsl:variable name=”keywords”>
<ul>
<xsl:for-each select=”$keywords”>
<xsl:for-each select=”descendant-or-self::item[(@template='keywords')]“>
<li>
<xsl:value-of select=”sc:fld(‘text’,.)”/>
</li>
</xsl:for-each>
</xsl:for-each>
</ul>
</xsl:variable>

Then using msxsl:node-set -function (http://msdn2.microsoft.com/en-us/library/hz88kef0(vs.71).aspx) I create nodeset out of the XSL variable and loop data to the html table.

<table>
<xsl:for-each select=”msxsl:node-set($keywords)/ul/li[position() mod 3 = 1]“>
<tr>
<td>
<xsl:value-of select=”.”/>
</td>
<xsl:for-each select=”following-sibling::li[position() < 3]“>
<td>
<xsl:value-of select=”.”/>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>

I would be very keen to know if you have done this in pure XSLT because msxsl:node-set seems to be quite slow.