<?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"
	>

<channel>
	<title>TyskJohan's random thoughts</title>
	<atom:link href="http://www.almqvist.net/johan/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.almqvist.net/johan/blog</link>
	<description>Johan's wandering mind, in blog form...</description>
	<pubDate>Wed, 07 May 2008 12:48:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Creating a PDF with XML Publisher without using files</title>
		<link>http://www.almqvist.net/johan/blog/2008/05/creating-a-pdf-with-xml-publisher-without-using-files/</link>
		<comments>http://www.almqvist.net/johan/blog/2008/05/creating-a-pdf-with-xml-publisher-without-using-files/#comments</comments>
		<pubDate>Tue, 06 May 2008 14:23:33 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/?p=195</guid>
		<description><![CDATA[

public void xdoPdf(
	oracle.apps.fnd.common.AppsContext	appsContext,
	String								datatemplateName,
	String								templateName,
	java.util.Properties				params,
{

	java.sql.Connection conn;
	conn = appsContext.getJDBCConnection();

	java.io.InputStream datatemplate = null;

	java.sql.Blob blob = null;

	java.sql.CallableStatement stmt =
		conn.prepareCall(
			"select file_data from xdo_lobs where lob_code = :1 and lob_type = :2");
	stmt.setString(1, datatemplateName);
	stmt.setString(2, "DATA_TEMPLATE");

	stmt.execute();

	java.sql.ResultSet rs = stmt.getResultSet();

	rs.next();

	blob = rs.getBlob(1);
	datatemplate = blob.getBinaryStream();
	stmt.close();

	oracle.apps.xdo.dataengine.DataProcessor dataProcessor = new DataProcessor();

	dataProcessor.setDataTemplate(datatemplate);

	ArrayList parameters;

	parameters = dataProcessor.getParameters();

	for (Iterator it = parameters.iterator(); it.hasNext();)
	{
		Parameter p = (Parameter) it.next();

		if (params.get(p.getName()) != null)
		{
			p.setValue(params.get(p.getName()));
		}
	}

	dataProcessor.setParameters(parameters);

	ByteArrayOutputStream dataOut = [...]]]></description>
			<content:encoded><![CDATA[<p><small></p>
<pre>
public void xdoPdf(
	oracle.apps.fnd.common.AppsContext	appsContext,
	String								datatemplateName,
	String								templateName,
	java.util.Properties				params,
{

	java.sql.Connection conn;
	conn = appsContext.getJDBCConnection();

	java.io.InputStream datatemplate = null;

	java.sql.Blob blob = null;

	java.sql.CallableStatement stmt =
		conn.prepareCall(
			"select file_data from xdo_lobs where lob_code = :1 and lob_type = :2");
	stmt.setString(1, datatemplateName);
	stmt.setString(2, "DATA_TEMPLATE");

	stmt.execute();

	java.sql.ResultSet rs = stmt.getResultSet();

	rs.next();

	blob = rs.getBlob(1);
	datatemplate = blob.getBinaryStream();
	stmt.close();

	oracle.apps.xdo.dataengine.DataProcessor dataProcessor = new DataProcessor();

	dataProcessor.setDataTemplate(datatemplate);

	ArrayList parameters;

	parameters = dataProcessor.getParameters();

	for (Iterator it = parameters.iterator(); it.hasNext();)
	{
		Parameter p = (Parameter) it.next();

		if (params.get(p.getName()) != null)
		{
			p.setValue(params.get(p.getName()));
		}
	}

	dataProcessor.setParameters(parameters);

	ByteArrayOutputStream dataOut = new ByteArrayOutputStream();

	ByteArrayInputStream dataIn;

	dataProcessor.setConnection(conn);
	dataProcessor.setOutput(dataOut);

	dataProcessor.processData();

	dataIn = new ByteArrayInputStream(dataOut.toByteArray());

	blob = null;

	java.io.InputStream template = null;

	CallableStatement stmt =
		conn.prepareCall(
			"select file_data from xdo_lobs where lob_code = :1 and lob_type = :2");
	stmt.setString(1, templateName);
	stmt.setString(2, "TEMPLATE");

	stmt.execute();

	ResultSet rs = stmt.getResultSet();

	rs.next();

	blob = rs.getBlob(1);
	template = blob.getBinaryStream();
	stmt.close();

	ByteArrayOutputStream pdfOut = new ByteArrayOutputStream();

	ByteArrayInputStream pdfIn;

	oracle.apps.xdo.template.FOProcessor processor = new FOProcessor();

	processor.setTemplate(template);
	processor.setConfig(new Properties());
	processor.setData(dataIn);
	processor.setOutput(pdfOut);
	processor.setOutputFormat(FOProcessor.FORMAT_PDF);

	processor.generate();

	pdfIn = new ByteArrayInputStream(pdfOut.toByteArray());
}
</pre>
<p></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2008/05/creating-a-pdf-with-xml-publisher-without-using-files/feed/</wfw:commentRss>
		</item>
		<item>
		<title>When adapcctl.sh restart won&#8217;t do</title>
		<link>http://www.almqvist.net/johan/blog/2008/05/when-adapcctlsh-restart-wont-do/</link>
		<comments>http://www.almqvist.net/johan/blog/2008/05/when-adapcctlsh-restart-wont-do/#comments</comments>
		<pubDate>Sat, 03 May 2008 12:44:01 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[English]]></category>

		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/?p=194</guid>
		<description><![CDATA[Sometimes, when you&#8217;ve rolled out new pages to the Application server and use adapcctl.sh restart, the web server won&#8217;t respond at all any more.
This is usually caused by a hanging fcgi process. Find the port number in $IAS_APACHE_HOME/Apache/Apache/logs/error_log* and use netstat -p -l &#124; grep &#60;port&#62; to find the culprit.
If that works, but JSP&#8217;s still [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, when you&#8217;ve rolled out new pages to the Application server and use <code>adapcctl.sh restart</code>, the web server won&#8217;t respond at all any more.</p>
<p>This is usually caused by a hanging <code>fcgi</code> process. Find the port number in <code>$IAS_APACHE_HOME/Apache/Apache/logs/error_log*</code> and use <code>netstat -p -l | grep &lt;port&gt;</code> to find the culprit.</p>
<p>If that works, but JSP&#8217;s still aren&#8217;t showing, you have a hanging Jserv. More on that later.</p>
<p><small><br />
<strong>Disclaimer</strong><br />
Any Oracle-related tips are meant for development environments, not production.<br />
</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2008/05/when-adapcctlsh-restart-wont-do/feed/</wfw:commentRss>
		</item>
		<item>
		<title>10 ting &#229; forbedre i kollektivtrafikken</title>
		<link>http://www.almqvist.net/johan/blog/2007/05/10-ting-a-forbedre-i-kollektivtrafikken/</link>
		<comments>http://www.almqvist.net/johan/blog/2007/05/10-ting-a-forbedre-i-kollektivtrafikken/#comments</comments>
		<pubDate>Thu, 03 May 2007 06:21:39 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Norsk]]></category>

		<category><![CDATA[Politics]]></category>

		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2007/05/10-ting-a-forbedre-i-kollektivtrafikken/</guid>
		<description><![CDATA[Siden det n&#229; er store endringer likevel, og hele jernbanetorget er gravd opp, tenkte jeg at jeg legger dette ut selv hvis jeg ikke har 10 punkt enda.

Fler avganger p&#229; linje 34 og 54 i rushen
Her er det altid fullt fra Oslo S og oppover Iladalen.
De nye t-bane-vognene har ikke plass til ski
Oslo sporveier har [...]]]></description>
			<content:encoded><![CDATA[<p>Siden det n&#229; er store endringer likevel, og hele jernbanetorget er gravd opp, tenkte jeg at jeg legger dette ut selv hvis jeg ikke har 10 punkt enda.</p>
<dl>
<dt>Fler avganger p&#229; linje 34 og 54 i rushen</dt>
<dd>Her er det altid fullt fra Oslo S og oppover Iladalen.</dd>
<dt>De nye t-bane-vognene har ikke plass til ski</dt>
<dd>Oslo sporveier har sikkert tenkt at dette ikke er et problem siden det er gamle vogner som g&#229;r til Frognerseteren. Men hva med Sognsvann m.fl.</dd>
<dt>Mere beinplass</dt>
<dd>Hvorfor skal det v&#230;re slik at det for meg som er 192 cm lang bare finnes 8 (av over 40) sitteplasser som er mulige &#229; sitte p&#229; p&#229; de nye bussene?</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2007/05/10-ting-a-forbedre-i-kollektivtrafikken/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dealing with Comment Spam</title>
		<link>http://www.almqvist.net/johan/blog/2007/05/dealing-with-comment-spam/</link>
		<comments>http://www.almqvist.net/johan/blog/2007/05/dealing-with-comment-spam/#comments</comments>
		<pubDate>Thu, 03 May 2007 06:19:02 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[English]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2007/05/dealing-with-comment-spam/</guid>
		<description><![CDATA[After the ham-to-spam ration in my comments reached 100:1 I decided something needed to be done. I didn&#8217;t want CAPTCHA, so I installed Bad Behaviour and a new http:BL plugin, and things got much better!
(The 100 spam per real comment never really showed, of course: Akismet caught them. But they were still creating unnecessary load.)
]]></description>
			<content:encoded><![CDATA[<p>After the ham-to-spam ration in my comments reached 100:1 I decided something needed to be done. I didn&#8217;t want CAPTCHA, so I installed Bad Behaviour and a new http:BL plugin, and things got much better!</p>
<p>(The 100 spam per real comment never really showed, of course: Akismet caught them. But they were still creating unnecessary load.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2007/05/dealing-with-comment-spam/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vi har k&#246;pt l&#228;genhet i Oslo</title>
		<link>http://www.almqvist.net/johan/blog/2007/03/vi-har-kopt-lagenhet-i-oslo/</link>
		<comments>http://www.almqvist.net/johan/blog/2007/03/vi-har-kopt-lagenhet-i-oslo/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 11:25:24 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Photos]]></category>

		<category><![CDATA[Svenska]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2007/03/vi-har-kopt-lagenhet-i-oslo/</guid>
		<description><![CDATA[&#8230;och alla &#228;r hj&#228;rtligt v&#228;lkomna att hj&#228;lpa till med renoveringen!








]]></description>
			<content:encoded><![CDATA[<p>&#8230;och alla &#228;r hj&#228;rtligt v&#228;lkomna att hj&#228;lpa till med renoveringen!</p>
<p style="text-align: center">
<a href="http://www.flickr.com/photos/tyskjohan/435390548/" class="tt-flickr"><img src="http://farm1.static.flickr.com/154/435390548_5ea9066655_m.jpg" alt="Vardagsrum" width="240" height="160" border="0" /></a><br />
<br />
<a href="http://www.flickr.com/photos/tyskjohan/435391320/" class="tt-flickr"><img src="http://farm1.static.flickr.com/182/435391320_b1c3695264_m.jpg" alt="K&#246;k" width="160" height="240" border="0" /></a><br />
<br />
<a href="http://www.flickr.com/photos/tyskjohan/435392629/" class="tt-flickr"><img src="http://farm1.static.flickr.com/165/435392629_9d62aa051b_m.jpg" alt="Bad" width="160" height="240" border="0" /></a><br />
<br />
<a href="http://www.flickr.com/photos/tyskjohan/435391056/" class="tt-flickr"><img src="http://farm1.static.flickr.com/155/435391056_6477558273.jpg" alt="Sovrum" width="240" height="160" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2007/03/vi-har-kopt-lagenhet-i-oslo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Igitt!</title>
		<link>http://www.almqvist.net/johan/blog/2007/02/igitt/</link>
		<comments>http://www.almqvist.net/johan/blog/2007/02/igitt/#comments</comments>
		<pubDate>Sun, 11 Feb 2007 14:57:36 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2007/02/igitt/</guid>
		<description><![CDATA[Yesterday night, someone placed a half-eaten hamburger in our mailbox. Sheesh.
]]></description>
			<content:encoded><![CDATA[<p>Yesterday night, someone placed a half-eaten hamburger in our mailbox. Sheesh.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2007/02/igitt/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Crash, boom, bang</title>
		<link>http://www.almqvist.net/johan/blog/2006/12/crash-boom-bang/</link>
		<comments>http://www.almqvist.net/johan/blog/2006/12/crash-boom-bang/#comments</comments>
		<pubDate>Fri, 15 Dec 2006 18:15:26 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Computers &#038; co]]></category>

		<category><![CDATA[EHEA]]></category>

		<category><![CDATA[English]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2006/12/crash-boom-bang/</guid>
		<description><![CDATA[Uh. It seems MySQL has botched the main data file for one of my pet projects, the Bologna Process web site.
There wasn&#8217;t much there anyway, but it&#8217;s still sad. I need to find an automatic backup option, I guess. And I didn&#8217;t really like TextPattern anyway. I think I&#8217;d rather go to using WordPress as [...]]]></description>
			<content:encoded><![CDATA[<p>Uh. It seems MySQL has botched the main data file for one of my pet projects, the <a href="http://www.bologna-process.org/">Bologna Process</a> web site.</p>
<p>There wasn&#8217;t much there anyway, but it&#8217;s still sad. I need to find an automatic backup option, I guess. And I didn&#8217;t really like <a href="http://www.textpattern.com/">TextPattern</a> anyway. I think I&#8217;d rather go to using <a href="http://wordpress.org/">WordPress</a> as a CMS, and hack a call to the built-in backup into every write or edit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2006/12/crash-boom-bang/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Et pepperkakehus</title>
		<link>http://www.almqvist.net/johan/blog/2006/12/et-pepperkakehus/</link>
		<comments>http://www.almqvist.net/johan/blog/2006/12/et-pepperkakehus/#comments</comments>
		<pubDate>Sun, 10 Dec 2006 13:09:44 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Norsk]]></category>

		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2006/12/et-pepperkakehus/</guid>
		<description><![CDATA[Dette pepperkakehuset er n&#229; stilt ut p&#229; Nasjonalgalleriet&#8230;

]]></description>
			<content:encoded><![CDATA[<p>Dette pepperkakehuset er n&#229; stilt ut p&#229; Nasjonalgalleriet&#8230;</p>
<p style="text-align: center"><img id="image185" src="http://www.almqvist.net/johan/blog/wp-content/uploads/2006/12/pepperkakehus.jpg" alt="Pepperkakehus" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2006/12/et-pepperkakehus/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sie haben mich nicht genommen&#8230;</title>
		<link>http://www.almqvist.net/johan/blog/2006/12/sie-haben-mich-nicht-genommen/</link>
		<comments>http://www.almqvist.net/johan/blog/2006/12/sie-haben-mich-nicht-genommen/#comments</comments>
		<pubDate>Sun, 10 Dec 2006 13:02:11 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Deutsch]]></category>

		<category><![CDATA[Jobs]]></category>

		<category><![CDATA[Politics]]></category>

		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2006/12/sie-haben-mich-nicht-genommen/</guid>
		<description><![CDATA[Beim m&#252;ndlichen Auswahlverfahren f&#252;r den h&#246;heren Ausw&#228;rtigen Dienst bin ich leider nicht genommen worden. Aber das Auswahlverfahren an sich war auch ganz interessant&#8230;

Ihr Ergebnis des schrftlichen
Auswahlverfahrens:


DGP-Test:
121,76
(von 130)


Fachtest Allgemeinwissen:
6,00
(von 25)


Fachtest Recht:
12,00
(von 25)


Fachtest VWL:
13,00
(von 25)


Fachtest Politik/Geschichte:
8,00
(von 25)


Summe Fachtests:
39,00
(von 100)


Sprachtest Englich:
62,50
(von 70)


Sprachtest Zweitsprache*:
60,00
(von 70)


Aufsatz Note:
3,00
(Noten 1-6, wie Schulnoten)


* Franz&#246;sisch

]]></description>
			<content:encoded><![CDATA[<p>Beim m&#252;ndlichen Auswahlverfahren f&#252;r den h&#246;heren Ausw&#228;rtigen Dienst bin ich leider nicht genommen worden. Aber das Auswahlverfahren an sich war auch ganz interessant&#8230;</p>
<blockquote>
<p>Ihr Ergebnis des schrftlichen<br />
Auswahlverfahrens:</p>
<table>
<tr>
<td>DGP-Test:</td>
<td>121,76</td>
<td>(von 130)</td>
</tr>
<tr>
<td>Fachtest Allgemeinwissen:</td>
<td>6,00</td>
<td>(von 25)</td>
</tr>
<tr>
<td>Fachtest Recht:</td>
<td>12,00</td>
<td>(von 25)</td>
</tr>
<tr>
<td>Fachtest VWL:</td>
<td>13,00</td>
<td>(von 25)</td>
</tr>
<tr>
<td>Fachtest Politik/Geschichte:</td>
<td>8,00</td>
<td>(von 25)</td>
</tr>
<tr>
<td>Summe Fachtests:</td>
<td>39,00</td>
<td>(von 100)</td>
</tr>
<tr>
<td>Sprachtest Englich:</td>
<td>62,50</td>
<td>(von 70)</td>
</tr>
<tr>
<td>Sprachtest Zweitsprache*:</td>
<td>60,00</td>
<td>(von 70)</td>
</tr>
<tr>
<td>Aufsatz Note:</td>
<td>3,00</td>
<td>(Noten 1-6, wie Schulnoten)</td>
</tr>
</table>
<p>* Franz&#246;sisch
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2006/12/sie-haben-mich-nicht-genommen/feed/</wfw:commentRss>
		</item>
		<item>
		<title>In-flight Internet access</title>
		<link>http://www.almqvist.net/johan/blog/2006/09/in-flight-internet-access/</link>
		<comments>http://www.almqvist.net/johan/blog/2006/09/in-flight-internet-access/#comments</comments>
		<pubDate>Mon, 11 Sep 2006 23:41:40 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Computers &#038; co]]></category>

		<category><![CDATA[English]]></category>

		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2006/09/in-flight-internet-access/</guid>
		<description><![CDATA[On my way to Chicago for Accenture training in St. Charles. In-flight Internet access is great, and I can&#8217;t understand my Connexion (the Boeing subsidiary that runs this) is going out of business.
Part of the reason might be that I seem to be the only one using it &#8212; there&#8217;s good bandwidth anyway. 
 
Technorati tags: Connexion, [...]]]></description>
			<content:encoded><![CDATA[<p>On my way to Chicago for Accenture training in St. Charles. In-flight Internet access is great, and I can&#8217;t understand my Connexion (the Boeing subsidiary that runs this) is going out of business.</p>
<p>Part of the reason might be that I seem to be the only one using it &#8212; there&#8217;s good bandwidth anyway. </p>
<p> <div class="tags">
Technorati tags: <a href="http://technorati.com/tag/Connexion" rel="tag">Connexion</a>, <a href="http://technorati.com/tag/Boeing" rel="tag">Boeing</a>, <a href="http://technorati.com/tag/in-flight+internet" rel="tag">in-flight internet</a>
<br />
Taggar på Bloggar.se: <a href="http://bloggar.se/om/Connexion" rel="tag">Connexion</a>, <a href="http://bloggar.se/om/Boeing" rel="tag">Boeing</a>, <a href="http://bloggar.se/om/in-flight+internet" rel="tag">in-flight internet</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2006/09/in-flight-internet-access/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Alt er Enoksens feil</title>
		<link>http://www.almqvist.net/johan/blog/2006/08/alt-er-enoksens-feil/</link>
		<comments>http://www.almqvist.net/johan/blog/2006/08/alt-er-enoksens-feil/#comments</comments>
		<pubDate>Thu, 31 Aug 2006 06:43:57 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Norsk]]></category>

		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2006/08/alt-er-enoksens-feil/</guid>
		<description><![CDATA[Neppe.
Under overskiften Str&#248;mkrisen kunne ha v&#230;rt unng&#229;tt skriver VG m.fl. idag:

Olje- og energiminister Odd Roger Enoksen har visst i lang tid at str&#248;mkrisen ville komme. Likevel har han ikke grepet inn n&#229;r Norge har solgt to milliarder kilowattimer til utlandet.


Enoksen innr&#248;mmer at han ikke har gjort nok for &#229; unng&#229; str&#248;mkrisen.
- Vi visste at str&#248;mkrisen [...]]]></description>
			<content:encoded><![CDATA[<p>Neppe.</p>
<p>Under overskiften <strong>Str&#248;mkrisen kunne ha v&#230;rt unng&#229;tt</strong> skriver <a href="http://www.vg.no/pub/vgart.hbs?artid=128279">VG</a> m.fl. idag:</p>
<blockquote><p>
Olje- og energiminister Odd Roger Enoksen har visst i lang tid at str&#248;mkrisen ville komme. Likevel har han ikke grepet inn n&#229;r Norge har solgt to milliarder kilowattimer til utlandet.
</p></blockquote>
<blockquote><p>
Enoksen innr&#248;mmer at han ikke har gjort nok for &#229; unng&#229; str&#248;mkrisen.<br />
<em>- Vi visste at str&#248;mkrisen ville komme og gjorde ikke nok</em>, sier Enoksen til Aftenposten.<br />
<br />
<small><a href="http://www.vg.no/pub/vgart.hbs?artid=128279">VG</a></small>
</p></blockquote>
<p>Tror VG at &#8220;<em>vi</em>&#8221; refererer til Enoksen selv og hans familie? Neppe. Han mener regjeringen, b&#229;de den n&#229;v&#230;rende og de tidligere.</p>
<div class="tags">
Technorati tags: <a href="http://technorati.com/tag/VG" rel="tag">VG</a>, <a href="http://technorati.com/tag/Enoksen" rel="tag">Enoksen</a>, <a href="http://technorati.com/tag/str%C3%B8mkrise" rel="tag">str&#248;mkrise</a>, <a href="http://technorati.com/tag/energikrise" rel="tag">energikrise</a>
<br />
Taggar på Bloggar.se: <a href="http://bloggar.se/om/VG" rel="tag">VG</a>, <a href="http://bloggar.se/om/Enoksen" rel="tag">Enoksen</a>, <a href="http://bloggar.se/om/str%C3%B8mkrise" rel="tag">str&#248;mkrise</a>, <a href="http://bloggar.se/om/energikrise" rel="tag">energikrise</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2006/08/alt-er-enoksens-feil/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Technorati vs. Knuff</title>
		<link>http://www.almqvist.net/johan/blog/2006/08/technorati-vs-knuff/</link>
		<comments>http://www.almqvist.net/johan/blog/2006/08/technorati-vs-knuff/#comments</comments>
		<pubDate>Thu, 24 Aug 2006 11:08:58 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[English]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2006/08/technorati-vs-knuff/</guid>
		<description><![CDATA[I was just fiddling a bit more with my MoreSimpleTags WordPress plugin that supports several services (Technorati and Knuff, in my case). I noted in one of my previous posts that the letter &#228; wasn&#8217;t coming out right.
It turns out Technorati and Knuff expect non 7-bit characters encoded differently: Knuff wants them in ISO-8859-1 URI [...]]]></description>
			<content:encoded><![CDATA[<p>I was just fiddling a bit more with my <a href="http://www.almqvist.net/johan/blog/more-simple-tags/">MoreSimpleTags</a> WordPress plugin that supports several services (<a href="http://www.technorati.com/">Technorati</a> and <a href="http://knuff.se">Knuff</a>, in my case). I noted in <a href="http://www.almqvist.net/johan/blog/2006/08/saft/">one of my previous posts</a> that the letter <strong>&#228;</strong> wasn&#8217;t coming out right.</p>
<p>It turns out Technorati and Knuff expect non 7-bit characters encoded differently: Knuff wants them in ISO-8859-1 URI encoding like this <a href="http://bloggar.se/om/vinb%E4r" rel="tag">vinb&#228;r</a> [<code>http://bloggar.se/om/vinb%E4r</code>] while Technorati prefers them URI encoded UTF8, like <a href="http://technorati.com/tag/vinb%C3%A4r" rel="tag">vinb&#228;r</a> [<code>http://technorati.com/tag/vinb%C3%A4r</code>].</p>
<p>D'oh.</p>
<p><strong>Update</strong></p>
<p>Seems I was a bit hasty or not paying attention. Both work with UTF-8. So the code is now <code>urlencode(utf8_encode(html_entity_decode(trim($tag))))</code>.</p>
<p><strong>Update #2</strong></p>
<p>Ok, I snug a <code>utf8_decode</code> in there for good measure too. Turns out part of the problem is that Knuff won&#8217;t eat accented characters (which is a bit weird because they are quite common in last names in Sweden).</p>
<div class="tags">
Technorati tags: <a href="http://technorati.com/tag/Technorati" rel="tag">Technorati</a>, <a href="http://technorati.com/tag/utf8" rel="tag">utf8</a>, <a href="http://technorati.com/tag/utf-8" rel="tag">utf-8</a>, <a href="http://technorati.com/tag/ISO-8859-1" rel="tag">ISO-8859-1</a>, <a href="http://technorati.com/tag/knuff" rel="tag">knuff</a>, <a href="http://technorati.com/tag/knuff.se" rel="tag">knuff.se</a>, <a href="http://technorati.com/tag/tagging" rel="tag">tagging</a>
<br />
Taggar på Bloggar.se: <a href="http://bloggar.se/om/Technorati" rel="tag">Technorati</a>, <a href="http://bloggar.se/om/utf8" rel="tag">utf8</a>, <a href="http://bloggar.se/om/utf-8" rel="tag">utf-8</a>, <a href="http://bloggar.se/om/ISO-8859-1" rel="tag">ISO-8859-1</a>, <a href="http://bloggar.se/om/knuff" rel="tag">knuff</a>, <a href="http://bloggar.se/om/knuff.se" rel="tag">knuff.se</a>, <a href="http://bloggar.se/om/tagging" rel="tag">tagging</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2006/08/technorati-vs-knuff/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Was Bologna alles kann!</title>
		<link>http://www.almqvist.net/johan/blog/2006/08/was-bologna-alles-kann/</link>
		<comments>http://www.almqvist.net/johan/blog/2006/08/was-bologna-alles-kann/#comments</comments>
		<pubDate>Thu, 24 Aug 2006 08:50:30 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Deutsch]]></category>

		<category><![CDATA[EHEA]]></category>

		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2006/08/was-bologna-alles-kann/</guid>
		<description><![CDATA[Die Zeit berichtet &#252;ber ein neues Informationssystem an der Uni Hamburg, Stine, &#252;ber das man sich zum Beispiel R&#252;ckmelden und Immatrikulieren kann. Nach den langen Schlangen, die ich an manchen Unis in Deutschland gesehen habe, kann ich da nur sagen: endlich (oder vielleicht &#196;ntligen!).
Aber nur ein paar Zeilen weiter mu&#223; ich mich schon wieder tierisch [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.zeit.de/">Die Zeit</a> berichtet &#252;ber ein neues Informationssystem an der Uni Hamburg, Stine, &#252;ber das man sich zum Beispiel R&#252;ckmelden und Immatrikulieren kann. Nach den langen Schlangen, die ich an manchen Unis in Deutschland gesehen habe, kann ich da nur sagen: endlich (oder vielleicht <b>&#196;ntligen!</b>).</p>
<p>Aber nur ein paar Zeilen weiter mu&#223; ich mich schon wieder tierisch &#228;rgern:</p>
<blockquote><p>Ein System, das vorschreiben will, welchen Kurs man belegen soll, klingt nach Einschr&#228;nkung der Wahlfreiheit. Schlie&#223;lich konnte man bisher fast immer mit dem Prof reden, wenn man im Grundstudium bereits ein Hauptseminar besuchen wollte. Oder wenn man sich f&#252;r ein Seminar nicht angemeldet hatte und in der dritten Semesterwoche doch daf&#252;r entschied. Das neue System l&#228;sst nicht so leicht mit sich verhandeln. <strong>Das aber liegt am System der neuen Studieng&#228;nge Bachelor und Master und nicht am Computersystem selbst.</strong></p></blockquote>
<blockquote><p><strong>&#8220;Stine kann nichts f&#252;r Flexibilit&#228;tsbeschneidungen - die Software setzt lediglich die Bologna-Anforderungen um&#8221;</strong>, so Thorsten H&#246;nisch vom Hamburger Asta.<br />
<small>(<a href="http://www.zeit.de/online/2006/34/stine_campusnetz">ZEIT Campus</a>)</small></p></blockquote>
<p>Wo in den Bologna-Dokumenten steht bitte, das man unflexibel zu sein hat? Sowohl der AStA-Mensch als auch die Journalistin nehmen das jedenfalls ohne Nachfrage hin.</p>
<p>Vielleicht ist es doch an der Zeit, meine <a href="http://www.bologna-process.org/">Info-Seite zum Bologna-Prozess</a> irgendwie in die G&#228;nge zu bringen.</p>
<div class="tags">
Technorati tags: <a href="http://technorati.com/tag/Bologna+Process" rel="tag">Bologna Process</a>, <a href="http://technorati.com/tag/Bolognaprozess" rel="tag">Bolognaprozess</a>, <a href="http://technorati.com/tag/Uni+Hamburg" rel="tag">Uni Hamburg</a>, <a href="http://technorati.com/tag/Stine" rel="tag">Stine</a>
<br />
Taggar på Bloggar.se: <a href="http://bloggar.se/om/Bologna+Process" rel="tag">Bologna Process</a>, <a href="http://bloggar.se/om/Bolognaprozess" rel="tag">Bolognaprozess</a>, <a href="http://bloggar.se/om/Uni+Hamburg" rel="tag">Uni Hamburg</a>, <a href="http://bloggar.se/om/Stine" rel="tag">Stine</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2006/08/was-bologna-alles-kann/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Saft</title>
		<link>http://www.almqvist.net/johan/blog/2006/08/saft/</link>
		<comments>http://www.almqvist.net/johan/blog/2006/08/saft/#comments</comments>
		<pubDate>Tue, 22 Aug 2006 14:04:53 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Norsk]]></category>

		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2006/08/saft/</guid>
		<description><![CDATA[
Idag har jeg laget ripssaft. Godt!

Technorati tags: rips, saft, ripssaft, vinb&#228;r, redcurrant

Taggar p&#229; Bloggar.se: rips, saft, ripssaft, vinb&#228;r, redcurrant

]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img id="image174" src="http://www.almqvist.net/johan/blog/wp-content/uploads/2006/08/juice.jpg" alt="Juice" /></p>
<p>Idag har jeg laget ripssaft. Godt!</p>
<div class="tags">
Technorati tags: <a href="http://technorati.com/tag/rips" rel="tag">rips</a>, <a href="http://technorati.com/tag/saft" rel="tag">saft</a>, <a href="http://technorati.com/tag/ripssaft" rel="tag">ripssaft</a>, <a href="http://technorati.com/tag/vinb%C3%A4r" rel="tag">vinb&#228;r</a>, <a href="http://technorati.com/tag/redcurrant" rel="tag">redcurrant</a>
<br />
Taggar på Bloggar.se: <a href="http://bloggar.se/om/rips" rel="tag">rips</a>, <a href="http://bloggar.se/om/saft" rel="tag">saft</a>, <a href="http://bloggar.se/om/ripssaft" rel="tag">ripssaft</a>, <a href="http://bloggar.se/om/vinb%C3%A4r" rel="tag">vinb&#228;r</a>, <a href="http://bloggar.se/om/redcurrant" rel="tag">redcurrant</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2006/08/saft/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ah, ma Normandie&#8230;</title>
		<link>http://www.almqvist.net/johan/blog/2006/08/ah-ma-normandie/</link>
		<comments>http://www.almqvist.net/johan/blog/2006/08/ah-ma-normandie/#comments</comments>
		<pubDate>Sun, 13 Aug 2006 15:55:20 +0000</pubDate>
		<dc:creator>TyskJohan</dc:creator>
		
		<category><![CDATA[Français]]></category>

		<category><![CDATA[Photos]]></category>

		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.almqvist.net/johan/blog/2006/08/ah-ma-normandie/</guid>
		<description><![CDATA[Photo by Christer Almqvist taken from Regnéville.net

Technorati tags: Regnéville, Normandie, Cotentin, Manche

Taggar p&#229; Bloggar.se: Regnéville, Normandie, Cotentin, Manche

]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><small><img id="image172" src="http://www.almqvist.net/johan/blog/wp-content/uploads/2006/08/regneville.jpg" alt="Regnéville" /><br />Photo by <a href="/chris/">Christer Almqvist</a> taken from <a href="http://www.regneville.net/">Regnéville</a>.net</small></p>
<div class="tags">
Technorati tags: <a href="http://technorati.com/tag/Regn%C3%A9ville" rel="tag">Regnéville</a>, <a href="http://technorati.com/tag/Normandie" rel="tag">Normandie</a>, <a href="http://technorati.com/tag/Cotentin" rel="tag">Cotentin</a>, <a href="http://technorati.com/tag/Manche" rel="tag">Manche</a>
<br />
Taggar på Bloggar.se: <a href="http://bloggar.se/om/Regn%C3%A9ville" rel="tag">Regnéville</a>, <a href="http://bloggar.se/om/Normandie" rel="tag">Normandie</a>, <a href="http://bloggar.se/om/Cotentin" rel="tag">Cotentin</a>, <a href="http://bloggar.se/om/Manche" rel="tag">Manche</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.almqvist.net/johan/blog/2006/08/ah-ma-normandie/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
