Monthly Archives: August 2012

Lenovo X121e – Enable WiFi after login

When I boot my Lenovo ThinkPad X121e (Intel® Core™ i3-2367M CPU @ 1.40GHz × 4) with Ubuntu 11/10 or 12/04 LTS, wake it up from standby or hibernation the wireless connection is always disabled.

I can enable it by right-clicking on the network manager icon in the panel and click on “Enable Wireless”. After I’ve done that the wireless works flawlessly.

I’ve been looking for a solution for it, especially since it is not clear to me whether this is an error in the network manager. After some research on the Ubuntu forum, I found an interesting thread, which describes the solution for my problem.

Readmore…

Tagged

Tokenize a String in XSLT 1.0

With XSLT 2.0 a method is provided, which tokenizes a string by a specific delimiter (e.q. commas, spaces or other) quite easily.

<xsl:variable name="stringList" select="tokenize('XPath is fun', ' ')"/>

This subsequently can be used to iterate over the individual String elements:

<xsl:for-each select="$stringList">
	<xsl:value-of select="." />
</xsl:for-each>

The result of this easy method call is tokenized by spaces, so we get:

"XPath", "is", "fun"

Unfortunately, this function is not provided in XSLT 1.0, but there is the possibility of realizing this without any 3rd party libraries (e.q. EXSLT). The following example shows, how this can be done with XSLT 1.0.

Readmore…

Tagged , ,