<?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>sven.buschbeck &#187; tutorial</title>
	<atom:link href="http://svenbuschbeck.net/wordpress/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://svenbuschbeck.net/wordpress</link>
	<description>. . . .portfolio.blog. . . .human-computer-interaction. .semantic-web. .computer-science. .communication-design. . . . . . . . . . . . . . . . . . . . . . . . .</description>
	<lastBuildDate>Tue, 15 May 2012 10:16:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Multiple Projects and GWT</title>
		<link>http://svenbuschbeck.net/wordpress/2012/04/multiple-projects-and-gwt/</link>
		<comments>http://svenbuschbeck.net/wordpress/2012/04/multiple-projects-and-gwt/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 07:58:29 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[gwt]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[code reuse]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=1114</guid>
		<description><![CDATA[When working on several large scale projects (in Eclipse), it’s convenient and of course more efficient to share and reuse code via common libraries. While those are in an early stage they need to be changed a lot and therefore it’s handy to link projects in instead of creating new jars each time the library [...]]]></description>
			<content:encoded><![CDATA[<p>When working on several large scale projects (in Eclipse), it’s convenient and of course more efficient to share and reuse code via common libraries. While those are in an early stage they need to be changed a lot and therefore it’s handy to link projects in instead of creating new jars each time the library has been updated.<br />
Unfortunately, this standard approach for Java development in Eclipse does not work that straight forward as with plain old Java projects, it requires three steps in total:</p>
<ol>
<li>Link the library project to all relevant projects (“Project Preferences” -&gt; “Java Build Path” -&gt; “Projects” -&gt; “Add…”)</li>
<li>Then, add the client-side code of the library (by adding it as a module.) Therefore, edit the gwt.xml of your application and add for example <code>&lt;inherits name=&quot;net.svenbuschbeck.gwt.lib.SuperLib &quot;/&gt;</code> where SuperLib is the file name of the gwt.xml file in you library project and before that is the package it lies in.</li>
<li>Add the code to the project by linking a source folder. Unfortunately, this is required if you do not want to write an Ant script to compile your application. (If you prefer Ant <a href="http://blogs.mastergaurav.com/2010/10/28/google-app-engine-and-gwt-multi-project-application/" title="Website about how to write an Ant script to handle multiple projects in eclipse and outside" target="_blank">check this out</a>) I don’t like the idea of using such a script because if you forget to run it each time you make changes, you will end up in confusion—let’s go for the convenient, automatic way then.
<ol>
<li>Add a folder to your application project; open the “advanced” section in the folder creation dialog, select “Link to alternate location” and pick the source folder (usually “src”) of your library project. (Hint: if you work within a team using a versioning system, you can create a variable for that folder and use this instead. This way, each of your colleagues can put the library project in a different folder and accommodate for that by adjusting the variable <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</li>
<li>Right click the folder, “Build Path” -&gt; “Use as Source Folder”. Done.
</ol>
</ol>
<p>Surprisingly, the GWT plugin for Eclipse does not honor the project linking, thus all the references need to be made explicit or you will end up with lots of the following: ClassNotFoundException.</p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2012/04/multiple-projects-and-gwt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Execute Code When the GWT Application Is Going Down</title>
		<link>http://svenbuschbeck.net/wordpress/2011/02/how-to-execute-code-when-the-gwt-application-is-going-down/</link>
		<comments>http://svenbuschbeck.net/wordpress/2011/02/how-to-execute-code-when-the-gwt-application-is-going-down/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 22:10:03 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[gwt]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=1051</guid>
		<description><![CDATA[My goal was to store the UI state of my application just before it gets terminated to be able to restore it next time the way the user left it the other day. I tried to add an addAttachHandler to the RootPanel to get informed about the root panel getting detached from the DOM so [...]]]></description>
			<content:encoded><![CDATA[<p>My goal was to store the UI state of my application just before it gets terminated to be able to restore it next time the way the user left it the other day.</p>
<p>I tried to add an <code>addAttachHandler</code> to the <code>RootPanel</code> to get informed about the root panel getting detached from the DOM so that I can finalize my application. Surprisingly, that does not work in Chrome (tested Chrome and Firefox only).</p>
<p>But besides that this sounds like a bug to me, I found the “proper” way of doing things before the application ends: </p>
<pre>Window.addWindowClosingHandler(new Window.ClosingHandler() {
	@Override public void onWindowClosing(ClosingEvent event) { ... }
});</pre>
<p>In the end, I think something like <code>Document.addUnloadHandler</code> would be more suggestive… closing the window or reloading a page is both exiting the application by unloading the DOM — not closing the window.</p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2011/02/how-to-execute-code-when-the-gwt-application-is-going-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Cookies from the Future Past</title>
		<link>http://svenbuschbeck.net/wordpress/2011/02/java-going-back-to-the-future/</link>
		<comments>http://svenbuschbeck.net/wordpress/2011/02/java-going-back-to-the-future/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 13:58:03 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[pitfall]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=999</guid>
		<description><![CDATA[While working with cookies in Java/GWT and thus—to set the expire date—with Date, I found a doubtful Java behavior. My goal was to set a cookie to expire in about one month from today like this: Date expires = new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 30); Cookies.setCookie("myCookie", "myData", expires); [...]]]></description>
			<content:encoded><![CDATA[<p>While working with cookies in Java/GWT and thus—to set the expire date—with <code>Date</code>, I found a doubtful Java behavior.</p>
<p>My goal was to set a cookie to expire in about one month from today like this:</p>
<pre>Date expires = new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 30);
Cookies.setCookie("myCookie", "myData", expires);</pre>
<p>And kept wondering why the cookie never got stored.</p>
<p>And finally created a simple test case like this:</p>
<pre>Date today = new Date();
Date tomorrow = new Date(today.getTime() + 1000 * 60 * 60 * 24);
Date nextMonth = new Date(today.getTime() + 1000 * 60 * 60 * 24 * 30);</pre>
<p>And got following dates:</p>
<pre>today=Mon Feb 07 14:27:50 CET 2011
tomorrow=Tue Feb 08 14:27:50 CET 2011
nextMonth=Tue Jan 18 21:25:02 CET 2011</pre>
<p>According to Java’s calculation, the cookie was expired already before even being set. </p>
<p>Took me a bit to understand why:<br />
1000 * 60 * 60 * 24 * 30 = 2,592,000,000 = 0x9A7EC800<br />
Thus, the first bit got set to one… a classical overflow causing the integer value to become negative — just try:</p>
<pre>System.out.println(1000 * 60 * 60 * 24 * 30);</pre>
<p>It will print out <code>-1702967296</code>.</p>
<p>Fix: Add a little <code>L</code> will solve the issue by forcing the compiler to calculate using the scope of <code>long</code>:</p>
<pre>Date nextMonthLong = new Date(today.getTime() + 1000L * 60 * 60 * 24 * 30);</pre>
<p>I guess I will fall for that one again sometime as the error is not obvious in my opinion — especially because <code>getTime()</code> returns a <code>long</code> and still, the compiler sticks with an <code>int</code> for the multiplication part. </p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2011/02/java-going-back-to-the-future/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Context Menu in GWT</title>
		<link>http://svenbuschbeck.net/wordpress/2011/02/disable-context-menu-in-gwt/</link>
		<comments>http://svenbuschbeck.net/wordpress/2011/02/disable-context-menu-in-gwt/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 21:10:12 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[gwt]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=984</guid>
		<description><![CDATA[To make use of the right mouse button, it is necessary to disable the native browser context menu (the popup menu appearing on right click). This can be achieved like this: RootLayoutPanel.get().addDomHandler(new ContextMenuHandler() { @Override public void onContextMenu(ContextMenuEvent event) { event.preventDefault(); event.stopPropagation(); } }, ContextMenuEvent.getType()); Same should work for RootPanel. After that, it is possible [...]]]></description>
			<content:encoded><![CDATA[<p>To make use of the right mouse button, it is necessary to disable the native browser context menu (the popup menu appearing on right click). This can be achieved like this:</p>
<pre>RootLayoutPanel.get().addDomHandler(new ContextMenuHandler() {

	@Override public void onContextMenu(ContextMenuEvent event) {
		event.preventDefault();
		event.stopPropagation();
	}
}, ContextMenuEvent.getType());</pre>
<p>Same should work for <code>RootPanel</code>.</p>
<p>After that, it is possible to make use of the right mouse button for example like this:</p>
<pre>someWidget.addDomHandler(new MouseMoveHandler() {

	@Override public void onMouseMove(MouseMoveEvent event) {
		if (event.getNativeButton() == NativeEvent.BUTTON_RIGHT) {
		...</pre>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2011/02/disable-context-menu-in-gwt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Authentication with FlickrJ</title>
		<link>http://svenbuschbeck.net/wordpress/2011/02/authentication-with-flickrj/</link>
		<comments>http://svenbuschbeck.net/wordpress/2011/02/authentication-with-flickrj/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 22:41:18 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=961</guid>
		<description><![CDATA[When you know about username and password logins, the whole Flickr authentication process for web applications seems a little weird on first sight, nevertheless it is logical and necessary after you have done some reading (for example the official Flickr WebApp Auth HowTo). To get started and into coding quickly (using FlickrJ and Java) I [...]]]></description>
			<content:encoded><![CDATA[<p>When you know about username and password logins, the whole Flickr authentication process for web applications seems a little weird on first sight, nevertheless it is logical and necessary after you have done some reading (for example the official <a href="http://www.flickr.com/services/api/auth.howto.web.html">Flickr WebApp Auth HowTo</a>).<br />
To get started and into coding quickly (using <a href="http://flickrj.sourceforge.net/">FlickrJ</a> and Java) I recommend <a href="https://www.phillconrad.org/cisc474/Wiki.jsp?page=Flickr_Authentication">this page</a>. Especially the code example is excellent in my opinion! Thanks Andy Sacher!</p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2011/02/authentication-with-flickrj/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing GWT Application in Virtual Machine</title>
		<link>http://svenbuschbeck.net/wordpress/2011/01/testing-gwt-application-in-virtual-machine/</link>
		<comments>http://svenbuschbeck.net/wordpress/2011/01/testing-gwt-application-in-virtual-machine/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 17:38:27 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[gwt]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=956</guid>
		<description><![CDATA[I am developing on a Mac, but to test my GWT applications for cross-browser compatibility in Internet Explorer I need to use Windows, thus I got Windows 7 installed using Parallels. Just by the way, to be able to test in different Internet Explorer version, I am using a pretty handy application called IETester. But [...]]]></description>
			<content:encoded><![CDATA[<p>I am developing on a Mac, but to test my GWT applications for cross-browser compatibility in Internet Explorer I need to use Windows, thus I got Windows 7 installed using Parallels. Just by the way, to be able to test in different Internet Explorer version, I am using a pretty handy application called <a href="http://www.my-debugbar.com/wiki/IETester">IETester</a>.<br />
But trying to access localhost with IE in the virtual machine did not work. I got a “404 page not found” error instead of seeing my app running on the local App Engine instance. Obviously, Parallels does not automatically forward localhost requests to OSX and maybe that is actually a good idea security-wise.<br />
To fix the issue, you need to run Google App Engine on a public network interface, or in other words, bind the App Engine server to all available IP addresses. The down side: everybody knowing your IP address can see the GWT app now, but otherwise you are not allowed to access it in the virutal machine as from your OSX’s point of view, that Windows machine is “some other guy accessing from the outside”, too. To make GAE accessible from the outside, add the parameter “-bindAddress 0.0.0.0″ when launching you local GAE. Using Eclipse you can achieve that by right clicking your project -&gt; Run As -&gt; Run Configurations -&gt; Choose “(x)= Arguments” tab; add the option to the top most box titled “Program arguments” in the options area (e.g. before “-port 8888″).</p>
<p>The first part of the list of arguments should look something like that:</p>
<pre>-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl GlocalUiPg2.html -logLevel INFO -codeServerPort 9997 -bindAddress 0.0.0.0 -port 8888 ...</pre>
<p>Now, you can access you app using the OSX’s public IP address. (You can get to know your IP by having a look at the network preferences panel.) Launching GAE from Eclipse, you will see a different link (URL) in the “Development Mode” tab now, containing the public IP already. Using that one in, say, your Firefox on Mac, it will ask you now whether you want to allow the debugger access. That is also due to the fact, that you are now using a public address, so it is not clear to your local debug server, whether that request came from the same computer or someone else in the network.</p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2011/01/testing-gwt-application-in-virtual-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Casting collections in Java</title>
		<link>http://svenbuschbeck.net/wordpress/2010/12/casting-collections-in-java/</link>
		<comments>http://svenbuschbeck.net/wordpress/2010/12/casting-collections-in-java/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 10:49:13 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=937</guid>
		<description><![CDATA[Assuming two classes A and B as class A {} class B extends A {} It is just logical that casting B to A works fine: A anObjectOfClassA = new B(); But when it comes to collections of As and Bs, a strange phenomenon appears in Java: Collection&#60;B&#62; collectionOfBs = new LinkedList&#60;B&#62;(); Collection&#60;A&#62; collectionOfAs = [...]]]></description>
			<content:encoded><![CDATA[<p>Assuming two classes A and B as</p>
<pre>class A {}
class B extends A {}</pre>
</p>
<p>It is just logical that casting B to A works fine:</p>
<pre>A anObjectOfClassA = new B();</pre>
</p>
<p>But when it comes to collections of As and Bs, a strange phenomenon appears in Java:</p>
<pre>Collection&lt;B&gt; collectionOfBs = new LinkedList&lt;B&gt;();
Collection&lt;A&gt; collectionOfAs = (Collection&lt;A&gt;)collectionOfBs; // this line does not compile!</pre>
<p>That is, though the collection wrapper (the java.util.Collection class) is the same and B extends A, casting a collection of objects of class B to a collection of objects of class A throws an compile-time error.
</p>
<p>But it works using generics (the whole class for the sake of completeness and reusability):</p>
<pre>import java.util.Collection;
import java.util.LinkedList;

public class CollectionCastingExample {

  class A {}
  class B extends A {}

  Collection&lt;B&gt; collectionOfBs = new LinkedList&lt;B&gt;();
//  Collection&lt;A&gt; collectionOfAs = (Collection&lt;A&gt;)collectionOfBs;

  Collection&lt;A&gt; collectionOfAs = downCastCollection(collectionOfBs, A.class);

  /**
   * Casts a collection of objects of class B where B extends A to a collection of objects of class A.
   *
   * @param &lt;T&gt; Base class
   * @param collection Collection of objects of a class extending T
   * @param aClass Representation of T
   * @return Collection of objects of T casted from given collection of objects of a class extending T.
   */
  @SuppressWarnings("unchecked")
  public static &lt;T&gt; Collection&lt;T> downCastCollection(Collection&lt;? extends T&gt; collection,
      Class&lt;T&gt; aClass) {
    return (Collection&lt;T&gt;) collection;
  }
}</pre>
<p>Despite the fact that a <code>@SuppressWarnings("unchecked")</code> is required, it avoids iterating over the whole collection of Bs and casting each of them from B to A plus adding them to a new collection of As.</p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2010/12/casting-collections-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a New Service (GWT)</title>
		<link>http://svenbuschbeck.net/wordpress/2010/12/adding-a-new-service-gwt/</link>
		<comments>http://svenbuschbeck.net/wordpress/2010/12/adding-a-new-service-gwt/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 15:02:08 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[gwt]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=930</guid>
		<description><![CDATA[Adding a new servlet/service to you GWT application is quite straight forward, e.g. by copying the example “greetingService” or creating a new servlet. But it’s easy to overlook a required change/adjustment of your project’s configuration and you might end up with an error message like “Blocked attempt to access interface ‘some.package.SomeService’, which is not implemented [...]]]></description>
			<content:encoded><![CDATA[<p>Adding a new servlet/service to you GWT application is quite straight forward, e.g. by copying the example “greetingService” or creating a new servlet. But it’s easy to overlook a required change/adjustment of your project’s configuration and you might end up with an error message like “Blocked attempt to access interface ‘some.package.SomeService’, which is not implemented by ‘some.other.package.SomeOtherServiceImpl’; this is either misconfiguration or a hack attempt”.</p>
<p>Check list (<strong>some</strong> should be replaced with whatever you want to call your new service):</p>
<ul>
<li>Copy or create files:<br />
<strong>Some</strong>Service.java and <strong>Some</strong>ServiceAsync.java in client package<br />
<strong>Some</strong>ServiceImpl.java in server package + change implementation statement to <strong>Some</strong>Service</li>
<li>Adjust web.xml:
<pre>&lt;servlet&gt;
	&lt;servlet-name&gt;<strong>some</strong>Servlet&lt;/servlet-name&gt;
	&lt;servlet-class&gt;some.package.<strong>Some</strong>ServiceImpl&lt;/servlet-class&gt;
&lt;/servlet&gt;
&lt;servlet-mapping&gt;
	&lt;servlet-name&gt;<strong>some</strong>Servlet&lt;/servlet-name&gt;
	&lt;url-pattern&gt;/[copy base directory name from other service declaration]/<strong>some</strong>&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;</pre>
</li>
<li>Annotate interface SomeService.java:
<pre>@RemoteServiceRelativePath("<strong>some</strong>")</pre>
</li>
<li>Connect to your new service in the client:
<pre>private final <strong>Some</strong>ServiceAsync someService = GWT.create(<strong>Some</strong>Service.class);</pre>
</li>
</ul>
<p>Definitely some possibilities to make a mistakes or miss something here.</p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2010/12/adding-a-new-service-gwt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizing System or Home Partion</title>
		<link>http://svenbuschbeck.net/wordpress/2010/05/resizing-system-or-home-partion/</link>
		<comments>http://svenbuschbeck.net/wordpress/2010/05/resizing-system-or-home-partion/#comments</comments>
		<pubDate>Sat, 08 May 2010 10:25:32 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=847</guid>
		<description><![CDATA[A very convenient tool for creating, moving, and resizing partitions is GParted. I use it for all my partition-changing-needs — it is really powerful and yet easy to use! But it is not possible to resize system relevant partitions while the system is running — makes sense, right? But you can download GParted as LiveCD ISO [...]]]></description>
			<content:encoded><![CDATA[<p>A very convenient tool for creating, moving, and resizing partitions is <a href="http://gparted.sourceforge.net/index.php" target="_blank">GParted</a>. I use it for all my partition-changing-needs — it is really powerful and yet easy to use! <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>But it is not possible to resize system relevant partitions while the system is running — makes sense, right? <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>But you can download <a href="http://sourceforge.net/projects/gparted/files/gparted-live-stable/" target="_blank">GParted as LiveCD ISO file</a> and burn it on a CD. After that, restart your computer with the CD in your drive and a small linux will start up directly from CD including GParted, thus allowing you to modify any drive and partition there is. <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Do all required changes, click the exit button and you are done. In my case, the computer did not reboot automatically, instead I ended up with a command line interface — use the command “sudo reboot” to restart the system yourself if that happens.</p>
<p>And just by the way, GParted does also handle Windows partitions easily — so there is no need to buy or “get” Partition Magic from somewhere.<strong> But never forget to backup your data first. </strong></p>
<p>Yet another hint: <strong>GParted works most reliable if you do one step at a time. </strong>So for example, there are partitions A and B (A is in front of B) and you wish to give some of the free space in A to B. You need to do following steps: Shrink A, move B left and finally grow B. From my experience, GParted works best if you really do all those steps separately, apply each of then, and go for the next one if the last one finished successfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2010/05/resizing-system-or-home-partion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flickering Screen After Upgrade to Kubuntu 10.04</title>
		<link>http://svenbuschbeck.net/wordpress/2010/04/flickering-screen-after-upgrade-to-kubuntu-10-04/</link>
		<comments>http://svenbuschbeck.net/wordpress/2010/04/flickering-screen-after-upgrade-to-kubuntu-10-04/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 22:04:50 +0000</pubDate>
		<dc:creator>Sven Buschbeck</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://svenbuschbeck.net/wordpress/?p=845</guid>
		<description><![CDATA[First of all, I was amazed how smoothly the upgrade went. (K)Ubuntu and I guess other distributions as well have gone quite a far way to become platforms for everybody — with a lot of software but even more tools, helpers and automatic background services — like the nice upgrade service. There was only one problem I [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, I was amazed how smoothly the upgrade went. (K)Ubuntu and I guess other distributions as well have gone quite a far way to become platforms for everybody — with a lot of software but even more tools, helpers and automatic background services — like the nice upgrade service.</p>
<p>There was only one problem I ran into and I want to share the solution.</p>
<p>I am running Kubuntu 10.04 (just upgraded today) on a Lenovo IBM ThinkPad R60 (Yes, one of those with both brands on them <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) with an ATI Radeon X1400 graphics device. But since upgraded, my display started flickering — not permanently but unbearable.</p>
<p>The solution that worked for me (at least partially — see below — and this is of cause depending on the graphics device type) was to install the proprietary ATI drivers. I know, it is not a good solution, I do not like to use them neither and if anyone out there is reading this with a better solution in mind, let me know it!! <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<em>Edit 2011-02-14: Added a new post with an additional, alternative solution <a href="http://svenbuschbeck.net/wordpress/2011/02/flickering-screen-with-ati-radeon-x1400-and-ubuntu/">here</a>.</em></p>
<p>So what you need to do is  to get your favorite package management tool (e.g. Synaptic or KPackageKit) — just hit Alt+F2 and type “package” and pick KPackageKit from the list (it will ask you for the super user password). Then, search for “fglrx”. In KPackageKit, you will find a result titled “Video driver for the ATI graphics accelerator”, and something below the title like “fglrx — 2:8.723.1-0ubuntu3” but the version number should not matter. Click the arrow to the right, hit “Apply” and after rebooting, everything should perfectly without any configuration.</p>
<p>Good luck. <img src='http://svenbuschbeck.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Problems noticed so far: The driver causes “Segmentation Fault” error messages, e.g. when trying to open up the display settings. That’s ugly, I know. But you can read in several forum and blog posts, that the support for the former nicely working driver for the ATI X1400 has been discontinued since 10.04, hence, it’s just good luck that the fglrx works somehow — good to know *after* upgrading, right. But still, the flickering was unbearable for me, thus, I accept the issues for now. I will keep my eyes peeled hoping for a proper solution in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://svenbuschbeck.net/wordpress/2010/04/flickering-screen-after-upgrade-to-kubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

