<?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>David Smeringe weblog</title>
	<atom:link href="http://people.merea.se/david/feed/" rel="self" type="application/rss+xml" />
	<link>http://people.merea.se/david</link>
	<description>programming and web design centric weblog</description>
	<lastBuildDate>Mon, 28 Feb 2011 08:59:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Speed up your basic work for new sites</title>
		<link>http://people.merea.se/david/2011/02/24/speed-up-your-basic-work-for-new-sites/</link>
		<comments>http://people.merea.se/david/2011/02/24/speed-up-your-basic-work-for-new-sites/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 08:24:57 +0000</pubDate>
		<dc:creator>David Smeringe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Markups and javascripts]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[web life]]></category>
		<category><![CDATA[boilertemplate]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[grid960]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=101</guid>
		<description><![CDATA[From time to time I create a new site (actually, that&#8217;s kind of what my job is all about.. ). Such job is usually quite similar from one site to another. In order to simplify this process and &#8211; perhaps even more valuable &#8211; increase the production quality, I use frameworks and boiler templates. Currently [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time I create a new site (actually, that&#8217;s kind of what my job is all about.. <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). Such job is usually quite similar from one site to another. In order to simplify this process and &#8211; perhaps even more valuable &#8211; increase the production quality, I use frameworks and boiler templates. Currently my favourite setup is the HTML5 Boilertemplate together with grid960. </p>
<p>Let me introduce the two of them for you.</p>
<p>HTML5 Boilerplate:</p>
<p>This is what it sounds like. A basic proof-of-concept foundation for any website what so ever. No need to invent the wheel all over again. It&#8217;s important to notice though that it&#8217;s not a framework, but a ready made template setup which you then can (usually) scale down safely as well as add on to, to fit your needs. </p>
<p>That&#8217;s where the nice CSS Framework grid960 comes in! <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The Grid960 is much more of a framework (as far as you can speak of frameworks in CSS). It gives you ready made CSS classes for a grid-splitted layout with a set width (960). Quoting their site;</p>
<blockquote><p>&#8220;All modern monitors support at least 1024 × 768 pixel resolution. 960 is divisible by 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 20, 24, 30, 32, 40, 48, 60, 64, 80, 96, 120, 160, 192, 240, 320 and 480. This makes it a highly flexible base number to work with.&#8221;</p>
</blockquote>
<p>There are really nice plugins for Photoshop/AI/Fireworks/Dreamweaver that makes life even easier. </p>
<p>Applying the 960 grid to your boiler template is just a matter of adding the 960.css right after the boilerplates style.css link-tag (Ignore the reset and text css).</p>
<p>Read more about these two at</p>
<p><a href="http://mashable.com/2010/09/02/html5-boilerplate-guide/">http://mashable.com/2010/09/02/html5-boilerplate-guide/</a> &#8211; Short intro</p>
<p><a href="http://html5boilerplate.com/">http://html5boilerplate.com/</a>- Home of the boilerplate</p>
<p><a href="http://960.gs/">http://960.gs/</a> &#8211; Home of the CSS grid</p>
<p>..and Some <a href="https://github.com/paulirish/html5-boilerplate/issues/50/#issue/50">QA for boilertemplate @github</a></p>
<p>Next up will be chopping it upp all again to fit the CMS or whatever system it needs to fit into <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  (TYPO3 maybe?!)</p>
<p>Updates 24 feb 2011:</p>
<p>Here are some adjustments or additions when working with boilerplate and TYPO3:</p>
<p><code lang="ts"></p>
<p>config.doctype = &lt;!doctype html&gt;</p>
<p>config.renderCharset = utf-8</p>
<p>config.htmlTag_langKey = sv</p>
<p>config.htmlTag_setParams = class='no-js.js'</p>
<p>[browser = msie] &#038;&#038; [version = <7]</p>
<p>config.htmlTag_setParams = class='no-js.js ie6'</p>
<p>[global]</p>
<p>[browser = msie] &#038;&#038; [version = 7]</p>
<p>config.htmlTag_setParams = class='no-js.js ie7'</p>
<p>[global]</p>
<p>[browser = msie] &#038;&#038; [version = 8]</p>
<p>config.htmlTag_setParams = class='no-js.js ie8'</p>
<p>[global]</p>
<p>[browser = msie] &#038;&#038; [version = 9]</p>
<p>config.htmlTag_setParams = class='no-js.js ie9'</p>
<p>[global]</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2011/02/24/speed-up-your-basic-work-for-new-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skywriter or Bespin as bookmarklet</title>
		<link>http://people.merea.se/david/2010/11/16/skywriter-bookmarklet/</link>
		<comments>http://people.merea.se/david/2010/11/16/skywriter-bookmarklet/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 13:06:25 +0000</pubDate>
		<dc:creator>David Smeringe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[editors/ides/rads]]></category>
		<category><![CDATA[web life]]></category>
		<category><![CDATA[bespin]]></category>
		<category><![CDATA[mozilla labs]]></category>
		<category><![CDATA[skywriter]]></category>
		<category><![CDATA[web standards]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=95</guid>
		<description><![CDATA[Skywriter (Bespin) is an on line pure web standards code editor from the Mozilla ppl.. It&#8217;s also available as a bookmarklet (apart from an embedded release). The bookmarklet is pritty cool, allowing you to click the bookmarklet when visiting any site with a textarea in it and then transform them into code editors with highlightning [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mozillalabs.com/skywriter/">Skywriter (Bespin)</a> is an on line pure web standards code editor from the Mozilla ppl.. It&#8217;s also available <a href="https://bespin.mozillalabs.com/bookmarklet/">as a bookmarklet</a> (apart from an embedded release). The bookmarklet is pritty cool, allowing you to click the bookmarklet when visiting any site with a textarea in it and then transform them into code editors with highlightning etc..</p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2010/11/16/skywriter-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>fun drawing on the web..</title>
		<link>http://people.merea.se/david/2010/09/14/fun-drawing-on-the-web/</link>
		<comments>http://people.merea.se/david/2010/09/14/fun-drawing-on-the-web/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 07:26:10 +0000</pubDate>
		<dc:creator>David Smeringe</dc:creator>
				<category><![CDATA[web life]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[harmony]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=87</guid>
		<description><![CDATA[Just stumbled (surfed) upon this link http://mrdoob.com/projects/harmony/.]]></description>
			<content:encoded><![CDATA[<p>Just stumbled (surfed) upon this link<a href="http://mrdoob.com/projects/harmony/"> http://mrdoob.com/projects/harmony/</a>.<div id="attachment_88" class="wp-caption alignnone" style="width: 310px"><a href="http://people.merea.se/david/wp-content/uploads/2010/09/hämta.png"><img src="http://people.merea.se/david/wp-content/uploads/2010/09/hämta-300x182.png" alt="" title="hämta" width="300" height="182" class="size-medium wp-image-88" /></a><p class="wp-caption-text">Monkey</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2010/09/14/fun-drawing-on-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Render cObj RECORDS fully or slimmed</title>
		<link>http://people.merea.se/david/2010/05/24/render-cobj-records-fully-or-slimmed/</link>
		<comments>http://people.merea.se/david/2010/05/24/render-cobj-records-fully-or-slimmed/#comments</comments>
		<pubDate>Mon, 24 May 2010 07:21:14 +0000</pubDate>
		<dc:creator>David Smeringe</dc:creator>
				<category><![CDATA[Typo3]]></category>
		<category><![CDATA[Typoscript snippets]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[typoscript]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=77</guid>
		<description><![CDATA[Short share of TypoScript know-how.. TYPO3 comes with a handfull different cObjects, such as TEXT, IMAGE etc.. (see the tsref) and then there are the more general cObjects for content rendering; CONTENT and RECORDS. The CONTENTS object focuses on a more widely rendering process, where you find your data with a select property, and a [...]]]></description>
			<content:encoded><![CDATA[<p>Short share of TypoScript know-how..</p>
<p>TYPO3 comes with a handfull different cObjects, such as TEXT, IMAGE etc.. (see the tsref) and then there are the more general cObjects for content rendering; CONTENT and RECORDS. The CONTENTS object focuses on a more widely rendering process, where you find your data with a select property, and a renderObj output.. ..then there is the little bit simpler variant RECORDS that allows you to find and output records from one or more tables in a bit more raw way thant CONTENT allows you to.. anyway.. what I wanted to share today was this difference when outputing a RECORDS object..</p>
<p>Take this TypoScript:</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1">lib.addressline = RECORDS
</div>
</li>
<li class="li1">
<div class="de1">lib.addressline.source = 47
</div>
</li>
<li class="li1">
<div class="de1">lib.addressline.tables = tt_content</div>
</li>
</ol>
</div>
<p>It outputs a tt_content record with uid 47 like this:</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1">&lt;div id=&quot;c47&quot;&gt;&lt;p&gt;My content with uid 47&lt;/p&gt;&lt;/div&gt;</div>
</li>
</ol>
</div>
<p>Quite often you might want it a bit more trimmed.. (especially when you map it with typoscript object path in templavoila into a predifend position in a template). Then you can do like this</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1">lib.addressline = RECORDS
</div>
</li>
<li class="li1">
<div class="de1">lib.addressline.source = 47
</div>
</li>
<li class="li1">
<div class="de1">lib.addressline.tables = tt_content
</div>
</li>
<li class="li1">
<div class="de1">lib.addressline.conf.tt_content = TEXT
</div>
</li>
<li class="li2">
<div class="de2">lib.addressline.conf.tt_content.field = bodytext</div>
</li>
</ol>
</div>
<p>Which renders this instead:</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1">My content with uid 47</div>
</li>
</ol>
</div>
<p>The basic thing is &#8211; define what you want in your output, and ignore the rest. The same could be done with a logotype image or similar (mapping an image content outputs a lot of extra wrappings by default..)</p>
<p>Another small notice; If you map a ts object from templavoila and get HTML output as text, then edit DS/TO and uncheck &#8220;as content through htmlSpecialChars (HSC)&#8221; for that field&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2010/05/24/render-cobj-records-fully-or-slimmed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new era &#8211; I&#8217;m converting to the Mac&#8217;s</title>
		<link>http://people.merea.se/david/2010/05/10/a-new-era-im-converting-to-the-macs/</link>
		<comments>http://people.merea.se/david/2010/05/10/a-new-era-im-converting-to-the-macs/#comments</comments>
		<pubDate>Mon, 10 May 2010 07:19:57 +0000</pubDate>
		<dc:creator>David Smeringe</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[MacBookProo]]></category>
		<category><![CDATA[new world]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=74</guid>
		<description><![CDATA[I recently decided to be dary &#8211; I ordered a MacBook Pro &#8211; the 15&#8243; i7, 2.66ghz, with the highres (1680) screen. I got it last week, and so far all I can say is actually &#8211; WOW It does feel like &#8216;*Nix made right&#8217;. Of cource, there are some bridges to cross, but I [...]]]></description>
			<content:encoded><![CDATA[<p>I recently decided to be dary &#8211; I ordered a MacBook Pro &#8211; the 15&#8243; i7, 2.66ghz, with the highres (1680) screen. I got it last week, and so far all I can say is actually &#8211; WOW <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  It does feel like &#8216;*Nix made right&#8217;. Of cource, there are some bridges to cross, but I didn&#8217;t expect anything else anyway.</p>
<p>I thought it&#8217;d be cool to post my experiences so far, and the stuff I&#8217;ve so far has bloated the computer with, so here we go <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<ul>
<li>The little characters commonly used by developers &#8211; the (in swedish at least) so called seagul wings &#8211; { and }. They can be found with the combination shift+alt+8or9. I would prefer one less key in the combo &#8211; but I&#8217;m getting used to it..</li>
<li>The brackets [ and ] are under 8 and 9 as well, but solely with alt+number.. Still teaching my fingers that..</li>
<li>The dollar sign.. On my swedish keyboard there is a € char above number 4. Found out that the $ char is there as well, but with alt+4.</li>
<li>Change primary screen when using an external screen? first it seemed a bit problematic when I found solutions like, &#8220;close the computer, and press space bar on the keyboard which activates the computer a gain&#8221;. It&#8217;s far esier. Open dislpay settings and drag the toolbar to the screen that should be primary. Done..</li>
<li>Clearing the DNS settings is done with (terminal) dscacheutil -flushcache</li>
</ul>
<p>Some settings I&#8217;ve quicly changed&#8230;</p>
<ul>
<li>
<div>I quickly changed so that the F[1..12] keyboard buttons are F[1..12] buttons and not function keys. Now the function button is used to reach the function buttons behaviour instead. Better&#8230;</div>
</li>
<li>Changed so that double clicking on window list minimizes the window.</li>
<li>Changed size on dock (The menu list on a mac) and set it to auto hide (which also means that maximizing a window really uses the entire space and not just down to the top of the dock).</li>
<li>The setup on the Dock &#8211; a lot of rearly used apps there, removed them (they are still in the Applications folder), and added the terminal (I use it a lot!) and some other more commonly used apps (like all browsers etc)</li>
</ul>
<p>AAANND the apps <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<ul>
<li>Adium for chatting &#8211; It&#8217;s a superb IM client for most protocols</li>
<li>Growl &#8211; a really cool notification app that integrates with most apps</li>
<li>FileZilla client (FTP) &#8211; I&#8217;ve used under both Linux and Windows. By far the best FTP client. Easy to transfer from the PC by exporting/import the settings as XML.</li>
<li>Skype</li>
<li>NetBeans &#8211; my current IDE of choice</li>
<li>Subversion &#8211; command line version so far.. Still missing a good client (would prefer an OSE one, otherwise the <a title="Versions SVN Client fo MacOsX" href="http://versionsapp.com/">Versions</a> app seems good)</li>
<li>Microsofts RDP client</li>
<li>MySQL server (also remember to copy/create a config file under /etc for admin apps to work..)</li>
<li>MySQL Workbench</li>
<li>Firefox with some of the common add ons for a web developer <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>Chrome</li>
<li>TextMate (heard it should be the developers best friend on a mac) &#8211; trying it out still.</li>
<li>Smultron (a dev editor as well. testing that too)</li>
<li>Tomboy. One of my favourite apps from the Linux world. A note taking app based on the wiki concept. really smooth.</li>
<li>The Adobe CS5 Web package.. (I actually hoped that I could convert my CS4 license to a Mac one, but apperantly that&#8217;s not possibly now since they released the version 5.. buhu.. <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </li>
<li> I&#8217;m about to install the VirtualBox, but I&#8217;ve not come that far yet..</li>
</ul>
<p>I think that&#8217;s it for now.. btw:</p>
<ul>
<li>four fingers sliding down &#8211; show all open windows..</li>
<li>three fingers sliding left/right. Browser back/fwd (and such)</li>
<li>two fingers sliding down/up. scroll</li>
<li>two fingers clicking &#8211; right click</li>
</ul>
<p>- I like it.</p>
<p>The only downside so far is my configuration mess up with my external keyboard. less than/greater then (&lt;&gt;) becomes §° instead (the key is actually lost in the mapping for some reason). Havn&#8217;t found a solution to that yet.</p>
<p>Cheers.</p>
<p> <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2010/05/10/a-new-era-im-converting-to-the-macs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Generate page as PDF from TYPO3 with the webkitpdf extension</title>
		<link>http://people.merea.se/david/2010/02/24/generate-page-as-pdf-from-typo3-with-the-webkitpdf-extension/</link>
		<comments>http://people.merea.se/david/2010/02/24/generate-page-as-pdf-from-typo3-with-the-webkitpdf-extension/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 09:08:45 +0000</pubDate>
		<dc:creator>David Smeringe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[Typoscript snippets]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[typoscript]]></category>
		<category><![CDATA[webkitpdf]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=64</guid>
		<description><![CDATA[I&#8217;ve been digging quite a lot into this thing about generating a TYPO3 page as a PDF file. There are a few extensions in TER that does this in various ways. The two best shots I came up with after some fiddeling was PDF Generator 2 (pdf_generator2) WebkitPDF (webkitpdf) There are some others but, afaik [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been digging quite a lot into this thing about generating a TYPO3 page as a PDF file. There are a few extensions in TER that does this in various ways. The two best shots I came up with after some fiddeling was</p>
<ul>
<li>PDF Generator 2 (pdf_generator2)</li>
<li>WebkitPDF (webkitpdf)</li>
</ul>
<p>There are some others but, afaik they lack CSS support.</p>
<p>I started out with the first one, which was really  easy to set up and use, but when I launched it on my production server it throw memory errors, so I started to play with <a title="TYPO3 extension WebkitPDF" href="http://typo3.org/extensions/repository/view/webkitpdf/current/">WebkitPDF</a> instead. This extension is a simple but powerfull wrapping around the Wkhtmltopdf project (<a title="Wkhtmltopdf" href="http://code.google.com/p/wkhtmltopdf/">http://code.google.com/p/wkhtmltopdf/</a>) which basically takes the <a title="Webkit engine" href="http://webkit.org/">Webkit HTML engine</a> and generates a print out from that.</p>
<p>The documentation instructs you put the FE plugin on a new page, and  then add a short TS into you TS Setup. I thought I&#8217;d post my TS setup here for example on how to use it slightly different (mostly since I wanted to have the current page title as filename). Note that I&#8217;m forwarding the PDF link to a ts object &#8211; lib.pdfLink. I&#8217;ve mapped that in an FCE with links in my case. Instead of adding the FE plugin on a separate page I include it on all pages (last row in TS) &#8211; since I need the ouput possibility on most pages anyway.</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1">plugin.tx_webkitpdf_pi1.scriptParams {
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; print-media-type =
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; margin-top = 0mm
</div>
</li>
<li class="li1">
<div class="de1">}
</div>
</li>
<li class="li2">
<div class="de2">//set current page title as output filename
</div>
</li>
<li class="li1">
<div class="de1">plugin.tx_webkitpdf_pi1.staticFileName = TEXT
</div>
</li>
<li class="li1">
<div class="de1">plugin.tx_webkitpdf_pi1.staticFileName.data = page : title
</div>
</li>
<li class="li1">
<div class="de1">//generate link
</div>
</li>
<li class="li1">
<div class="de1">includeLibs.webkit = EXT:webkitpdf/res/user_webkitpdf.php
</div>
</li>
<li class="li2">
<div class="de2">lib.pdf = USER
</div>
</li>
<li class="li1">
<div class="de1">lib.pdf.userFunc = user_webkitpdf-&gt;user_getPDFLink
</div>
</li>
<li class="li1">
<div class="de1">lib.pdf {
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; //pid =
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; linkText = produktblad i pdf-format
</div>
</li>
<li class="li2">
<div class="de2">}
</div>
</li>
<li class="li1">
<div class="de1">lib.pdfLink &lt; lib.pdf
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">//include the renderer. we do this on the same page, since we want to fetch the correct page title as filename
</div>
</li>
<li class="li1">
<div class="de1">page.100 &lt; plugin.tx_webkitpdf_pi1</div>
</li>
</ol>
</div>
<p><strong>Additional notes:</strong></p>
<p>I just realized that the CSS attribute page-break-after/before is a bit kinky with the pdf converter (actually it&#8217;s the webkit engine, and Firefox has the same problem. I didn&#8217;t bother to check if IE suffers from the same, but I guess it does&#8230;).<br />
If you want to break a page somewhere, then make sure the page break doesn&#8217;t reside in floated elements. This is a bit tricky since a modern HTML template normally consists of floated divs and by that there is no natural position for such page break. This was fairly easy to solve for me in my current case since I really didn&#8217;t need the other columns in my output. Therefore I could first set the divs like:</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1"><span class="br0">&#91;</span>.<span class="re1">.general</span> CSS layout setup..<span class="br0">&#93;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">@media screen {</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">.leftColumn</span> <span class="br0">&#123;</span> <span class="kw1">float</span>: <span class="kw1">left</span>; <span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2"><span class="re1">.rightColumn</span> <span class="br0">&#123;</span> <span class="kw1">float</span>: <span class="kw1">right</span>; <span class="br0">&#125;</span> <span class="coMULTI">/*or whatever*/</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">.pagebreak</span> <span class="br0">&#123;</span> <span class="kw1">visibility</span>: <span class="kw2">hidden</span>; <span class="br0">&#125;</span> <span class="coMULTI">/*pagebreak elements should not show up in browser*/</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">@media print {</span></div>
</li>
<li class="li2">
<div class="de2"><span class="re1">.rightColum</span> <span class="br0">&#123;</span> <span class="kw1">visibility</span>: <span class="kw2">hidden</span>; <span class="br0">&#125;</span><span class="coMULTI">/*dont want it in print mode*/</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">.pagebreak</span> <span class="br0">&#123;</span> <span class="kw1">visibility</span>: <span class="kw2">show</span>; <span class="kw1">page-break-after</span>: <span class="kw2">always</span>; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>I made a small FCE in TYPO3 containing a div with class .pagebreak, which I could insert anywhere on a page. It&#8217;s hidden in media screen, but breaks the page when printing. Pritty nifty if you ask me <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2010/02/24/generate-page-as-pdf-from-typo3-with-the-webkitpdf-extension/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Finally a decent MessageBox!</title>
		<link>http://people.merea.se/david/2009/12/08/finally-a-decent-messagebox/</link>
		<comments>http://people.merea.se/david/2009/12/08/finally-a-decent-messagebox/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 20:46:05 +0000</pubDate>
		<dc:creator>josef</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JEditorPane]]></category>
		<category><![CDATA[JOptionPane]]></category>
		<category><![CDATA[MessageBox]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=58</guid>
		<description><![CDATA[by Josef from Eden Foundation. There is one frustration every Swing programmer shares: The message box system. The class JOptionPane, that comes with the Java Runtime Environment, is indeed versatile &#8211; but at the same time agonizing because of a very basic problem. Long messages don&#8217;t wrap&#8230; (click on the image to see what I [...]]]></description>
			<content:encoded><![CDATA[<p>by Josef from <a href="http://www.edenfoundation.org/">Eden Foundation</a>.</p>
<p>There is one frustration every Swing programmer shares: The message box system. The class JOptionPane, that comes with the Java Runtime Environment, is indeed versatile &#8211; but at the same time agonizing because of a very basic problem. Long messages don&#8217;t wrap&#8230; (click on the image to see what I mean)</p>
<p><a href="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane1.png"><img class="alignnone size-full wp-image-59" title="How JOptionPane can frustrate" src="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane1.png" alt="a far too wide message dialog" width="500" height="34" /></a></p>
<p>This is the default behavior. There are various workarounds, the best that I&#8217;ve read about being to override the getMaxCharactersPerLineCount() method through a subclass. It&#8217;s a decent solution.</p>
<p>But once you start thinking about a bad class, you start getting wishful. And my wishlist came to include:</p>
<ul>
<li>HTML-formatting for my messages (so some things can be written in bold or italic).</li>
<li>Possibility for the user to select and copy parts of the message, or it&#8217;s entirety, for sending in chats or emails when communicating with support.</li>
<li>Support for really, really long messages, the ones that are as long as License agreement! for the cases where this actually is desirable. If so, the message box should not disappear partly outside the screen. Instead, the message should be scrollable.</li>
</ul>
<p>As I couldn&#8217;t find my dreambox anywhere on the net, I finally took the time to fix my own. I found it especially challenging because of the LayoutManagers that just didn&#8217;t seem to want to do what I want, but in the end, a tip from Stanislav Lapitsky helped me sort it out. He had a quick-and-dirty on how to figure out the height of a JEditorPane if you are locking it&#8217;s width:</p>
<p><a href="http://java-sl.com/tip_text_height_measuring.html">http://java-sl.com/tip_text_height_measuring.html</a></p>
<p>So I&#8217;ve made a wrapper class that I call instead of JOptionPane, that wraps my message strings into a JEditorPane before displaying them. The key part of the code was to embed the text messages in a nice component.</p>
<div class="dean_ch" style="white-space: nowrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp; <span class="kw2">public</span> <span class="kw2">static</span> <span class="kw4">void</span> error<span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AComponent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Component</span></a> owner, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> message, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> title<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJOptionPane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JOptionPane</span></a>.<span class="me1">showMessageDialog</span><span class="br0">&#40;</span>owner, wrap<span class="br0">&#40;</span>message, <span class="st0">&quot;Error Encountered:&quot;</span><span class="br0">&#41;</span>,</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; title == <span class="kw2">null</span> ? <span class="st0">&quot;Error&quot;</span> : title, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJOptionPane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JOptionPane</span></a>.<span class="me1">ERROR_MESSAGE</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="kw2">private</span> <span class="kw2">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComponent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JComponent</span></a> wrap<span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> message, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> shortTitle<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw4">int</span> maxWidth = <span class="nu0">400</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw4">int</span> maxHeight = <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AToolkit+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Toolkit</span></a>.<span class="me1">getDefaultToolkit</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">getScreenSize</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">height</span> * <span class="nu0">2</span> / <span class="nu0">3</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> htmlizedMessage = <span class="kw2">null</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>message.<span class="me1">contains</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;p&gt;&quot;</span><span class="br0">&#41;</span> || message.<span class="me1">contains</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;P&gt;&quot;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; || message.<span class="me1">contains</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;br&gt;&quot;</span><span class="br0">&#41;</span> || message.<span class="me1">contains</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;BR&gt;&quot;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; || message.<span class="me1">contains</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;Br&gt;&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; htmlizedMessage = message;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">else</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; htmlizedMessage = message.<span class="me1">replace</span><span class="br0">&#40;</span><span class="st0">&quot;<span class="es0">\n</span>&quot;</span>, <span class="st0">&quot;&lt;BR&gt;&quot;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw4">int</span> h = getContentHeight<span class="br0">&#40;</span>htmlizedMessage, maxWidth<span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJPanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JPanel</span></a> pnl = <span class="kw2">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJPanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JPanel</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; pnl.<span class="me1">setLayout</span><span class="br0">&#40;</span><span class="kw2">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ABorderLayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">BorderLayout</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJEditorPane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JEditorPane</span></a> text = <span class="kw2">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJEditorPane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JEditorPane</span></a><span class="br0">&#40;</span><span class="st0">&quot;text/html&quot;</span>, htmlizedMessage<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; text.<span class="me1">setBorder</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; text.<span class="me1">setBackground</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; text.<span class="me1">setEditable</span><span class="br0">&#40;</span><span class="kw2">false</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw4">int</span> titleHeight = <span class="nu0">0</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>shortTitle != <span class="kw2">null</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJLabel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JLabel</span></a> lblTitle = <span class="kw2">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJLabel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JLabel</span></a><span class="br0">&#40;</span>shortTitle<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; lblTitle.<span class="me1">setFont</span><span class="br0">&#40;</span>lblTitle.<span class="me1">getFont</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">deriveFont</span><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lblTitle.<span class="me1">getFont</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">getSize</span><span class="br0">&#40;</span><span class="br0">&#41;</span> * <span class="nu0">1</span>.5f<span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; lblTitle.<span class="me1">setBorder</span><span class="br0">&#40;</span><span class="kw2">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AEmptyBorder+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">EmptyBorder</span></a><span class="br0">&#40;</span><span class="nu0">0</span>, <span class="nu0">0</span>, <span class="nu0">10</span>, <span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; lblTitle.<span class="me1">setMaximumSize</span><span class="br0">&#40;</span>lblTitle.<span class="me1">getPreferredSize</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; titleHeight = lblTitle.<span class="me1">getPreferredSize</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">height</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; pnl.<span class="me1">add</span><span class="br0">&#40;</span>lblTitle, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ABorderLayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">BorderLayout</span></a>.<span class="me1">PAGE_START</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJScrollPane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JScrollPane</span></a> scroll = <span class="kw2">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJScrollPane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">JScrollPane</span></a><span class="br0">&#40;</span>text<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; scroll.<span class="me1">setBorder</span><span class="br0">&#40;</span><span class="kw2">null</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; scroll.<span class="me1">setMaximumSize</span><span class="br0">&#40;</span><span class="kw2">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADimension+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Dimension</span></a><span class="br0">&#40;</span>maxWidth, maxHeight<span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; scroll.<span class="me1">setPreferredSize</span><span class="br0">&#40;</span><span class="kw2">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADimension+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Dimension</span></a><span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Math</span></a>.<span class="me1">min</span><span class="br0">&#40;</span>maxWidth, text</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; .<span class="me1">getPreferredSize</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">width</span><span class="br0">&#41;</span>, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMath+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Math</span></a>.<span class="me1">min</span><span class="br0">&#40;</span>maxHeight, getContentHeight<span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; htmlizedMessage, maxWidth<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; pnl.<span class="me1">add</span><span class="br0">&#40;</span>scroll, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ABorderLayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">BorderLayout</span></a>.<span class="me1">CENTER</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw2">return</span> pnl;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>The result looks like this:</p>
<p><a href="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane2.png"><img class="alignnone size-full wp-image-60" title="joptionpane2" src="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane2.png" alt="" width="473" height="407" /></a></p>
<p>&#8230;like this&#8230;</p>
<p><a href="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane3.png"><img class="alignnone size-full wp-image-61" title="joptionpane3" src="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane3.png" alt="" width="473" height="164" /></a></p>
<p>&#8230;or this&#8230;</p>
<p><a href="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane4.png"><img class="alignnone size-full wp-image-62" title="joptionpane4" src="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane4.png" alt="" width="268" height="141" /></a></p>
<p>&#8230;or if the message is really, really long and almost qualifies to be an End User License Agreement (as if any end users ever have the time and legal knowledge to understand those), like this:</p>
<p><a href="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane6.png"><img class="alignnone size-full wp-image-63" title="joptionpane6" src="http://people.merea.se/david/wp-content/uploads/2009/12/joptionpane6.png" alt="" width="473" height="614" /></a></p>
<p>You can find the full source here:</p>
<p><a title="http://www.edenfoundation.org/products/code/MsgDlg.java" href="http://www.edenfoundation.org/products/code/MsgDlg.java">http://www.edenfoundation.org/products/code/MsgDlg.java</a></p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2009/12/08/finally-a-decent-messagebox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>svn over ssh with another port than 22</title>
		<link>http://people.merea.se/david/2009/12/02/svn-over-ssh-with-another-port-than-22/</link>
		<comments>http://people.merea.se/david/2009/12/02/svn-over-ssh-with-another-port-than-22/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 13:04:34 +0000</pubDate>
		<dc:creator>David Smeringe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[editors/ides/rads]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=57</guid>
		<description><![CDATA[A client of mine has their own SVN repository and they where running ssh over another port than the normal 22. Doing this can be a bit tricky since svn doesn&#8217;t really like the common host:port style when using svn+ssh protocoll (or whatever you call that combo). I&#8217;m using NetBeans (6.7.1) in Ubuntu, so was [...]]]></description>
			<content:encoded><![CDATA[<p>A client of mine has their own SVN repository and they where running ssh over another port than the normal 22. Doing this can be a bit tricky since svn doesn&#8217;t really like the common host:port style when using svn+ssh protocoll (or whatever you call that combo).</p>
<p>I&#8217;m using NetBeans (6.7.1) in Ubuntu, so was eager to get svn working directly from there. Since svn itself doesn&#8217;t like special ports, neither did NB. But after a simple search on &#8220;netbeans svn ssh port number&#8221; I surfed into (not stumbled &#8211; you know &#8211; I surf the web..) a subject in the <a title="Subversion mail archive" href="http://svn.haxx.se/users/archive-2004-09/0574.shtml">subversion mailing list</a> which reviled a simple solution. With ssh you can add some kind of alias for hosts for which you also can define a port etc, then it&#8217;s as simple as one two three to use custom ports with svn+ssh. I&#8217;m taking the liberty to sum the mail archive post here:</p>
<p>create (if not already there) a file in you home folder ~/.ssh/config</p>
<p>Adopt the following to your needs and add them to that file</p>
<p><code><br />
host mysvnhost<br />
Hostname svn.onthehost.tld<br />
Port 80<br />
ForwardAgent no<br />
ForwardX11 no</code></p>
<p>Then just use svn+ssh://mysvnhost/path/to/repo with svn.</p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2009/12/02/svn-over-ssh-with-another-port-than-22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Those where the days</title>
		<link>http://people.merea.se/david/2009/10/08/those-where-the-days/</link>
		<comments>http://people.merea.se/david/2009/10/08/those-where-the-days/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 21:19:52 +0000</pubDate>
		<dc:creator>David Smeringe</dc:creator>
				<category><![CDATA[web life]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[on topic]]></category>
		<category><![CDATA[sierra]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=56</guid>
		<description><![CDATA[Long time since last post, and by then it&#8217;s this really on topic link: http://sarien.net/ Just had to post it. Brings those old memories back to life. Those where the days, right? Thanks Martin Kool for bringing it all back]]></description>
			<content:encoded><![CDATA[<p>Long time since last post, and by then it&#8217;s this really on topic link: <a title="Sarien.net" href="http://sarien.net/">http://sarien.net/</a> <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Just had to post it. Brings those old memories back to life. Those where the days, right?</p>
<p>Thanks <a href="http://martinkool.com/">Martin Kool</a> for bringing it all back <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2009/10/08/those-where-the-days/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>nominate FLOW3 and TYPO3 for SF community awards</title>
		<link>http://people.merea.se/david/2009/05/19/nominate-flow3-and-typo3-for-sf-community-awards/</link>
		<comments>http://people.merea.se/david/2009/05/19/nominate-flow3-and-typo3-for-sf-community-awards/#comments</comments>
		<pubDate>Tue, 19 May 2009 21:26:12 +0000</pubDate>
		<dc:creator>David Smeringe</dc:creator>
				<category><![CDATA[Typo3]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[award]]></category>

		<guid isPermaLink="false">http://people.merea.se/david/?p=55</guid>
		<description><![CDATA[Show your support for TYPO3 and the upcoming framework FLOW3 and nominate them for a soure forge community award. Hit this image to nominate FLOW3 for &#8220;Best New Project&#8221; and &#8220;Most Likely to Change the Way You Do Everything&#8221; ..or, hit this button to nominate TYPO3 for &#8220;Best Project&#8221; and &#8220;Best Project for the Enterprise&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Show your support for TYPO3 and the upcoming framework FLOW3 and nominate them for a <a title="SF community award" href="http://ir.corp.sourceforge.com/phoenix.zhtml?c=82629&amp;p=irol-newsArticle&amp;ID=1285349">soure forge community award</a>.</p>
<p>Hit this image to nominate FLOW3 for &#8220;Best New Project&#8221; and &#8220;Most Likely to Change the Way You Do Everything&#8221;<br />
<a href="http://sourceforge.net/community/cca09/nominate/?project_name=FLOW3&amp;project_url=http://flow3.typo3.org/"> <img src="http://sourceforge.net/images/cca/cca_nominate.png" border="0" alt="" /></a></p>
<p>..or, hit this button to nominate TYPO3 for &#8220;Best Project&#8221; and &#8220;Best Project for the Enterprise&#8221;<a href="http://sourceforge.net/community/cca09/nominate/?project_name=TYPO3&amp;project_url=http://typo3.org/"><br />
<img src="http://sourceforge.net/images/cca/cca_nominate.png" border="0" alt="" /></a></p>
<p>There aint much more to say about that <img src='http://people.merea.se/david/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://people.merea.se/david/2009/05/19/nominate-flow3-and-typo3-for-sf-community-awards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

