<?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>Personal blog of Seph Soliman &#187; tips and tricks</title>
	<atom:link href="http://www.seph.dk/tag/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seph.dk</link>
	<description>Thoughts, Tinkerings and Tips</description>
	<lastBuildDate>Mon, 08 Mar 2010 21:36:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Digital signatur i Safari med Mac</title>
		<link>http://www.seph.dk/uncategorized/digital-signatur-i-safari-med-mac/</link>
		<comments>http://www.seph.dk/uncategorized/digital-signatur-i-safari-med-mac/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 23:15:38 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[digital signatur]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.seph.dk/?p=378</guid>
		<description><![CDATA[This article is only in danish and contain information that is specific to digital signatures in Denmark.
Problemstilling
Nogen gange kan det være svært at få resten af verden til at forstå, at Internet Explorer ikke er den eneste browser. TDC var en af de tungnemme, da de blev sat på opgaven. Mac brugere oplever ofte at [...]]]></description>
			<content:encoded><![CDATA[<p><em>This article is only in danish and contain information that is specific to digital signatures in Denmark.</em></p>
<h2>Problemstilling</h2>
<p>Nogen gange kan det være svært at få resten af verden til at forstå, at Internet Explorer ikke er den eneste browser. TDC var en af de tungnemme, da de blev sat på opgaven. Mac brugere oplever ofte at få beskeden "Vi understøtter ikke Mac med digital signatur". Det er dog ikke helt sandheden, da de fleste offentlige institutter rent faktisk godtager det, hvis man installerer den korrekt. Som regel virker det, hvis den installeres i Firefox, men det er dog ikke altid. Installering i ens Keychain er desværre ikke nok til, at det fungerer i Safari.</p>
<p>Løsningen er dog enkel... <span id="more-378"></span>Når signaturen placeres korrekt på maskinen kan de fleste signatur Java applets finde signaturen uden problemer, og man behøver derfor ikke at trykke "Gennemse..", hvilket i nogen tilfælde heller ikke er muligt (eksmepelvis på dele af personregistrering.dk).</p>
<h2>Fremgangsmåde</h2>
<p>Åbn din signatur i Safari (f.eks. <em>Digital Signatur for Jens Jensen.html</em>).</p>
<p><a href="http://www.seph.dk/wp-content/uploads/gem-signatur.png"><img class="alignnone size-medium wp-image-380" title="gem-signatur" src="http://www.seph.dk/wp-content/uploads/gem-signatur-300x161.png" alt="" width="300" height="161" /></a></p>
<p>Tryk på <strong>Gem Digital Signatur</strong> knappen, Tryk OK til Advarslen om formatet. En dialog om placering kommer op.</p>
<p><a href="/wp-content/uploads/pkcs-alert.png"><img class="alignnone size-medium wp-image-382" title="pkcs-alert" src="http://www.seph.dk/wp-content/uploads/pkcs-alert-300x57.png" alt="" width="300" height="57" /></a></p>
<p>Tryk herefter <strong>CMD+Shift+G</strong>. En dialog om sti kommer op.</p>
<p><a href="/wp-content/uploads/goto-oces.png"><img class="alignnone size-medium wp-image-381" title="goto-oces" src="http://www.seph.dk/wp-content/uploads/goto-oces-300x84.png" alt="" width="300" height="84" /></a></p>
<p>Tast: <strong>~/.oces</strong> og tryk enter.</p>
<p>Tryk <strong>enter</strong> for at bekræfte placeringen i denne særlige mappe.</p>
<p>Færdig. Fremover skulle det se nogenlunde sådan ud:</p>
<p><a href="/wp-content/uploads/signatur-dropdown.png"><img class="alignnone size-medium wp-image-383" title="signatur-dropdown" src="http://www.seph.dk/wp-content/uploads/signatur-dropdown-300x93.png" alt="" width="300" height="93" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/digital-signatur-i-safari-med-mac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TimeTrack widget for Basecamp released</title>
		<link>http://www.seph.dk/uncategorized/timetrack-widget-for-basecamp-released/</link>
		<comments>http://www.seph.dk/uncategorized/timetrack-widget-for-basecamp-released/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 17:25:26 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[basecamp]]></category>
		<category><![CDATA[timetrack]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.seph.dk/?p=332</guid>
		<description><![CDATA[I've just released TimeTrack for Basecamp version 1.0. Changes since version 0.9:

Faster login process using Basecamps new features
New, slim interface design
Bug fixes

Go ahead, Download a copy, it's free!
Update: Version 1.1 released. Contains some minor fixes and additions.
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-334" style="margin-right: 20px; border: 0px" title="widget_shot" src="http://www.seph.dk/wp-content/uploads/widget_shot1.png" alt="widget_shot" width="150" height="127" />I've just released <a href="http://bitbucket.org/seph/basecamp-time-widget/downloads/">TimeTrack for Basecamp version 1.0</a>. Changes since version 0.9:</p>
<ul>
<li>Faster login process using Basecamps new features</li>
<li>New, slim interface design</li>
<li>Bug fixes</li>
</ul>
<p>Go ahead, <a href="http://bitbucket.org/seph/basecamp-time-widget/downloads/">Download a copy</a>, it's free!</p>
<p>Update: <a href="http://bitbucket.org/seph/basecamp-time-widget/downloads/">Version 1.1 released</a>. Contains some minor fixes and additions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/timetrack-widget-for-basecamp-released/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Pruning Django-tagging</title>
		<link>http://www.seph.dk/uncategorized/pruning-django-tagging/</link>
		<comments>http://www.seph.dk/uncategorized/pruning-django-tagging/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 18:41:36 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.mijav.dk/?p=312</guid>
		<description><![CDATA[A great application for Django is django-tagging. However using tagging and removing the items to which they refer will lead to a lot of unused Tags and TaggedItems lying around.
So I wrote a small function to prune Django. There's a good chance I'll clean up the code for submission to the django-tagging codebase.
Download source
]]></description>
			<content:encoded><![CDATA[<p>A great application for <a href="http://www.djangoproject.com/">Django</a> is <a href="http://code.google.com/p/django-tagging/">django-tagging</a>. However using tagging and removing the items to which they refer will lead to a lot of unused Tags and TaggedItems lying around.</p>
<p>So I wrote a small function to prune Django. There's a good chance I'll clean up the code for submission to the django-tagging codebase.</p>
<p><a href="/wp-content/uploads/utils.py">Download source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/pruning-django-tagging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shortcomings of SourceForge</title>
		<link>http://www.seph.dk/uncategorized/shortcomings-of-sourceforge/</link>
		<comments>http://www.seph.dk/uncategorized/shortcomings-of-sourceforge/#comments</comments>
		<pubDate>Tue, 05 May 2009 19:59:19 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bitbucket]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[sourceforge]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://www.mijav.dk/?p=275</guid>
		<description><![CDATA[Sourceforge got a make-over. A fresh coat of paint and what else? A couple of clicks aways a blog post describes in short that sf.net has changed it's looks and the front page now has more statistics. But is the frontpage really the most important place to improve upon?
“
A large font doesn't improve usability or [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/wp-content/uploads/sfnet.png"><img class="size-medium wp-image-276 alignleft" style="margin: 0pt 12px 6px 0pt;" title="sfnet" src="/wp-content/uploads/sfnet.png" alt="sfnet" width="261" height="31" /></a><a href="http://sf.net/">Sourceforge</a> got a make-over. A fresh coat of paint and what else? A couple of clicks aways <a href="http://apps.sourceforge.net/wordpress/sourceforge/2009/05/04/site-ui-plus-look-and-feel-changes-released-2009-05-04/">a blog post</a> describes in short that sf.net has changed it's looks and the front page now has more statistics. But is the frontpage really the most important place to improve upon?</p>
<div style="margin: 0pt 0pt 6px 12px; float: right; width: 200px; line-height: 18px; font-size: 150%; font-family: Times,serif;"><span style="font-size: 180%; ">“</span><br />
A large font doesn't improve usability or add value - your content and layout does.<span style="font-size: 180%; float: right;">”</span></div>
<p>With respects to the people behind sf.net for the good work they've done over the years I feel there are still major issues that are so basic that I simply wouldn't consider sf.net as a place to host my projects.</p>
<p>But it's easy to throw stones at abstract problems - let me be specific. <strong>SourceForge devs, here's a few suggestions</strong>:</p>
<h3>"Remember Me" broken</h3>
<p>I'm a developer of <a href="http://www.jedit.org/">jEdit</a> where I take care of Mac-related issues. Being so, I follow the devel-list and at least once a week I visit the tracker to read up on issues. It seems that each time I visit I have to log in. Each time I check "Remember Me" but apparently so with no effect.</p>
<h3>Login redirection</h3>
<p>Related to the issue about "Remember Me" I am always redirected to "My Personal Page" upon login, not the link I came from or tried to access. This means having to click through several pages and refreshing before I can do whatever I need on the tracker.</p>
<h3>Bad performance</h3>
<p>I think it's a general complaint with sf.net but I am still bothered by the slow performance of the tracker. I haven't used the new tracker that much - it's certainly a better one but the general performance of the site could still be greatly improved.</p>
<p>If you must change the frontpage, here's a few suggestions to improve the relevance:</p>
<h3>Global statistics</h3>
<p>Remove them. It may be fun to watch for sf.net devs but really - what's the relevance for users? Users need something they can relate to but the numbers are unfamiliar and can't be compared to anything a regular user or dev know of. The graphical bars still doesn't give a context that seems interesting.</p>
<p>If you really insist on keeping this, make "Popular" the default display.</p>
<h3>Recent releases</h3>
<p>Consider adding user-engaging information such as "Most recent Project releases" - it would be a helpful and fun way to discover new projects and will give sf.net a feel of "being alive".</p>
<h3>Keep "Project of the Month"</h3>
<p>This is the primary part of the front page I find relevant.</p>
<h3>Rename "Build"</h3>
<p>"Build" is not a psychological trigger word for someone looking for a place to host their project. Usability is about user tendency and expectation. The word Build doesn't really say "get your open-source project hosted here for free"... it says get your project built. If the primary product was automated nightly builds, I would use the word "Build" or the like. But this really isn't the core of sf.net, is it?</p>
<p>SourceForge needs to catch up with the tendencies and features around the world. It seems that only recently they've waken up and discovered they are lacking behind. Depending on the preferred source version control system I would prefer <a href="http://www.bitbucket.org">Bitbucket.org</a> or <a href="http://code.google.com/">Google Code</a> - overall simplicity wins me over regardless of the frontpage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/shortcomings-of-sourceforge/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Denmark in vector</title>
		<link>http://www.seph.dk/uncategorized/denmark-in-vector/</link>
		<comments>http://www.seph.dk/uncategorized/denmark-in-vector/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 10:48:41 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.mijav.dk/?p=258</guid>
		<description><![CDATA[Ever wondered where you can get a vector map version of Denmark? I took a quick look around with no luck but plenty of rasterized versions, so I took a random one and generated a vectorized version.
Download it
I owe some credit to Inkscape, which is an open-source vector drawing program. It actually has a bitmap [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/wp-content/uploads/danmarkskort1.svg"><img class="size-full wp-image-260 alignleft" style="margin-right: 12px;" title="danmarkskort" src="/wp-content/uploads/danmarkskort1.png" alt="danmarkskort" width="82" height="90" /></a>Ever wondered where you can get a vector map version of Denmark? I took a quick look around with no luck but plenty of rasterized versions, so I took a random one and generated a vectorized version.</p>
<p><strong><a href="/wp-content/uploads/danmarkskort.svg">Download it</a></strong></p>
<p>I owe some credit to <a href="http://www.inkscape.org">Inkscape</a>, which is an open-source vector drawing program. It actually has a bitmap vector tracing function.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/denmark-in-vector/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Scrollbars Anywhere for Firefox 3.5/3.1</title>
		<link>http://www.seph.dk/uncategorized/scrollbars-anywhere-for-firefox-3531/</link>
		<comments>http://www.seph.dk/uncategorized/scrollbars-anywhere-for-firefox-3531/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 14:11:05 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.mijav.dk/?p=254</guid>
		<description><![CDATA[I've modified Marc Boullet's Firefox add-on, Scrollbar Anywhere, to work with Firefox 3.1/3.5 (the version name will change soon). All I did this time was modify the installation file to allow installation.
Download it.
]]></description>
			<content:encoded><![CDATA[<p>I've modified <a href=" 	http://pagesperso-orange.fr/marc.boullet/">Marc Boullet</a>'s Firefox add-on, <a href="http://pagesperso-orange.fr/marc.boullet/ext/extensions-en.html">Scrollbar Anywhere</a>, to work with Firefox 3.1/3.5 (the version name will change soon). All I did this time was modify the installation file to allow installation.</p>
<p><a href="/wp-content/uploads/scrollbaranywhere.xpi">Download it</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/scrollbars-anywhere-for-firefox-3531/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Styling input elements based on type without breaking IE6</title>
		<link>http://www.seph.dk/uncategorized/styling-input-elements-based-on-type-without-breaking-ie6/</link>
		<comments>http://www.seph.dk/uncategorized/styling-input-elements-based-on-type-without-breaking-ie6/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 13:48:55 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[gmta]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>Imagine that you could style all input types without manually adding a class to each input element. And do it without breaking the design for older browsers like IE6.</p>
]]></description>
			<content:encoded><![CDATA[<p>Imagine that you could style all input types without manually adding a class to each input element. And do it without breaking the design for older browsers like IE6. Here is how...</p>
<p><span id="more-36"></span>I've come across a few Javascript libraries that tries to make frontend work easier. Since I began using <a href="http://www.jquery.com">jQuery</a> (Thanks to <a href="http://www.gensmann.dk">Oscar</a> from <a href="http://www.gmta.dk">GMTA</a>) I've discovered a few ways to make life easier.</p>
<p>Usually you would style a text input element something like this in CSS:</p>
<p><code>input[type=text] { border: 2px dashed #f00; background: #ff0; }<br />
</code></p>
<p>But IE6 doesn't do attribute-selectors. So until the marketshare of IE6 is low enough (and customers stop insisting) we need alternatives. But how?</p>
<h2>The immediate replacement</h2>
<p>With jQuery you can actually do a query for all input types much like the CSS selector. Doing this together with a little CSS, and you've got a powerful replacement:</p>
<p><code>&lt;script type="text/javascript"&gt;<br />
$("input[@type=text]").addClass("text");<br />
&lt;/script&gt;<br />
&lt;style type="text/css"&gt;<br />
input.text { border: 2px dashed #f00; background: #ff0; }<br />
&lt;style&gt;<br />
</code></p>
<h2>The result</h2>
<p>And the result is as expected, fully automated:</p>
<p><img title="example of styled input field" src="/img/inputtypeexample.png" alt="example" /></p>
<h2>Other input types?</h2>
<p>So what about other input types? I usually just repeat the process, since it's a nice and clean way, so I have the following snipplet in my base.js, which is included on all pages like we do on <a href="http://media.pagegangster.com/shared/js/base.js">Pagegangster.com</a>:</p>
<p><code>$(document).ready(function() {<br />
// * Enable ability to custom style all input elements based on their type<br />
// * The equivalent CSS selectors doesn't work in IE 6 (and 7?)<br />
$("input[@type=text]").add("input[@type=password]").addClass("text");<br />
$("input[@type=checkbox]").addClass("checkbox");<br />
$("input[@type=radio]").addClass("radio");<br />
$("input[@type=submit]").addClass("submit");<br />
$("input[@type=button]").addClass("button");<br />
$("input[@type=image]").addClass("image");<br />
$("input[@type=file]").addClass("file");<br />
// .......<br />
}<br />
</code></p>
<h2>The non-jQuery and independent way</h2>
<p>But to be honest the most optimal way of doing this would be to create a small script that uses document.getElementsByTagName('input') and matches on the 'type' attribute... So here it is a bit more generic but without the dependency on jQuery:</p>
<p><code>&lt;script type="text/javascript"&gt;<br />
var inputs = document.getElementsByTagName("input");<br />
for(var i in inputs) {<br />
inputs[i].className += " " + inputs[i].type;<br />
}<br />
&lt;/script&gt;<br />
</code></p>
<p><script type="text/javascript"><!--
	function checkTypes() {
		var inputs = document.getElementsByTagName("input");
		for(var i in inputs) {
			inputs[i].className += " " + inputs[i].type;
		}
	}
// --></script></p>
<style type="text/css"> input.text { border: 2px dashed #f00; background: #ff0; } </style>
<input size="30" type="text" value="This is an example" />
<input class="button" onclick="checkTypes()" type="button" value="Try it out!" />
<p>It's actually a bit faster this way, so one would argue the latter method is better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/styling-input-elements-based-on-type-without-breaking-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java doubleclick time in X.org/XFree86</title>
		<link>http://www.seph.dk/uncategorized/java-doubleclick-time-in-x-orgxfree86/</link>
		<comments>http://www.seph.dk/uncategorized/java-doubleclick-time-in-x-orgxfree86/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 22:31:44 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[					The doubleclick time in Java applications should be read from GTK or KDE settings, but aren't.<br />
I had this problem since I use Gnome 2.10.2 on Debian. Sun has a <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5076635">bugreport on this</a>.<br />
<br />
The solution is to add the following to <b>~/.Xdefaults</b>:<br />
<code>
<b>*.multiClickTime: 500</b>
</code><br />
and run:<br />

<code>
<b>xrdb -merge ~/.Xdefaults</b>
</code><br />
to merge the newly created settings into the running X server. Settings will apply at next Java app. startup.<br />
]]></description>
			<content:encoded><![CDATA[<p>					The doubleclick time in Java applications should be read from GTK or KDE settings, but aren't.<br />
I had this problem since I use Gnome 2.10.2 on Debian. Sun has a <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5076635">bugreport on this</a>.</p>
<p>The solution is to add the following to <b>~/.Xdefaults</b>:<br />
<code><br />
<b>*.multiClickTime: 500</b><br />
</code><br />
and run:</p>
<p><code><br />
<b>xrdb -merge ~/.Xdefaults</b><br />
</code><br />
to merge the newly created settings into the running X server. Settings will apply at next Java app. startup.</p>
<p>You can replace 500 with a number in milliseconds that you wish to set the doubleclick time(out) to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/java-doubleclick-time-in-x-orgxfree86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JEdit &#8211; Performance tips</title>
		<link>http://www.seph.dk/uncategorized/jedit-performance-tips/</link>
		<comments>http://www.seph.dk/uncategorized/jedit-performance-tips/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 22:24:19 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jedit]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[				jEdit starts a "jedit server" that loads your settings, environment and basicly loads everything but the GUI.<br/>
				This process is what slows it down, but there are several things you can do to speed up the process:<br/>
				<ol>
					<li><a href="http://download.java.net/jdk7/binaries/">Upgrade to Java 1.7</a> <b> (beta)</b>. I find it rock stable, but you might not.</li>
					<li>On Linux, you may enable OpenGL rendering by passing the following arguments: <code>java -Dsun.java2d.opengl=True -jar jedit.jar</code></li>
]]></description>
			<content:encoded><![CDATA[<p>				jEdit starts a "jedit server" that loads your settings, environment and basicly loads everything but the GUI.<br/><br />
				This process is what slows it down, but there are several things you can do to speed up the process:<br/></p>
<ol>
<li><a href="http://download.java.net/jdk7/binaries/">Upgrade to Java 1.7</a> <b> (beta)</b>. I find it rock stable, but you might not.</li>
<li>On Linux, you may enable OpenGL rendering by passing the following arguments: <code>java -Dsun.java2d.opengl=True -jar jedit.jar</code></li>
<li>Keep the number of plugins low. Don't install too many auto-complete plugins such as DotComplete. It takes time to load the language-dictionaries in these plugins.</li>
<li>
						<b>Last but not least</b>: to have the jedit "server" running as a daemon in the background seriously decreases startup-time!<br/><br />
						However, it comes with a catch: Some plugins still require you to restart jedit in order to use them. 4.2 includes a new plugin-API that allows dynamic loading, so with time this isn't an issue. Also: certain setting-changes require you to restart jedit.<br/><br />
						Restarting jedit isn't just closing the window. You need to kill the jedit-server process, but it's just labeled "java"/"javaw" in most task-manager tools on both Linux and Windows. Just kill those you can find, but be warned that you may kill other java programs if you get the wrong process.<br/></p>
<p>						<br/><br />
						Run this command to start the server-daemon:<br/><br />
						<code style="font-weight: bold;">java -jar jedit.jar -nogui -background</code><br/>
					</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/jedit-performance-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scrollwheel with Firefox in Xorg</title>
		<link>http://www.seph.dk/uncategorized/scrollwheel-with-firefox-in-xorg/</link>
		<comments>http://www.seph.dk/uncategorized/scrollwheel-with-firefox-in-xorg/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 21:53:12 +0000</pubDate>
		<dc:creator>Seph Soliman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>
					<i>How do I get my scrollwheel to work in Firefox/Mozilla in Xorg on Linux?</i>
					<br/>
					- Log on as root<br/>
					- Edit file <code><b>/etc/X11/xorg.conf</b></code> with your favorite editor:<br/>

					<br/>
					The MS Explorer 3.0 really has 7 buttons: left, right, middle, scroll up, scroll down and 2 thumb buttons, which X needs to know.<br/>
					My section looks like this, which should work for you as well.
					</p>]]></description>
			<content:encoded><![CDATA[<p>
					<i>How do I get my scrollwheel to work in Firefox/Mozilla in Xorg on Linux?</i><br />
					<br/><br />
					- Log on as root<br/><br />
					- Edit file <code><b>/etc/X11/xorg.conf</b></code> with your favorite editor:<br/></p>
<p>					<br/><br />
					The MS Explorer 3.0 really has 7 buttons: left, right, middle, scroll up, scroll down and 2 thumb buttons, which X needs to know.<br/><br />
					My section looks like this, which should work for you as well.
					</p>
<p><code>Section "InputDevice"<br />
	Identifier      "Configured Mouse"<br />
	Driver         "mouse"<br />
	Option         "Device" "/dev/input/mice"<br />
	Option         "ButtonMapping" "1 2 3 6 7 4 5"<br />
	Option         "Buttons" "7"<br />
	Option         "ZAxisMapping" "4 5"<br />
EndSection</code></p>
<p>				Please note that certain options might vary from distro to distro, such as the <code>Device</code> and <code>Protocol</code> options.<br/></p>
<p>				I use both Debian (unstable) and Ubuntu (5.10), on which this sections work perfectly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seph.dk/uncategorized/scrollwheel-with-firefox-in-xorg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
