<?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>students@work</title>
	<atom:link href="http://www.stupent.at/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stupent.at</link>
	<description>Antworten auf die die Menschheit gewartet hat!  -- Heisenberg war hier ... oder auch nicht!</description>
	<lastBuildDate>Tue, 12 Jan 2010 14:41:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>NHibernate/Active Record &#8211; StaleStateException?</title>
		<link>http://www.stupent.at/2010/01/12/nhibernateactive-record-stalestateexception/</link>
		<comments>http://www.stupent.at/2010/01/12/nhibernateactive-record-stalestateexception/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 13:15:50 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[Absurdes]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[active record]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[nhibernate]]></category>

		<guid isPermaLink="false">http://www.stupent.at/?p=240</guid>
		<description><![CDATA[Today I had to use an Ative Record implementation for C#: Castle Active Record. It worked verfy fine until i needed to save a one to many relationship. Then the underlying NHibernate yielded the following Exception:
   StaleStateException: unexpected row count -1 expected 1 . 
Googling for that Exception gave me two options: At [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2010%2F01%2F12%2Fnhibernateactive-record-stalestateexception%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2010%2F01%2F12%2Fnhibernateactive-record-stalestateexception%2F" height="61" width="51" /></a></div><p>Today I had to use an Ative Record implementation for C#: <a href="http://www.castleproject.org/activerecord/index.html">Castle Active Record</a>. It worked verfy fine until i needed to save a one to many relationship. Then the underlying NHibernate yielded the following Exception:<br />
  <quote> StaleStateException: unexpected row count -1 expected 1 </quote>. </p>
<p>Googling for that Exception gave me two options: At first, turning the sql servers NOCOUNT property OFF by either sending &#8220;SET NOCOUNT OFF&#8221; or setting the appropriate property of the SQL-Server in the config dialog. Both did not work for me, as i am neither the Admin of the server nor i can send the command by hand through the many layers introduced by ActiveRecord/NHibernate. </p>
<p>Another possible solution was overriding the connection driver to let i send the query everytime the connection gets requested. This was proposed by the blog author of: http://www.socialanimal.com/archives/2008/03/07/nhibernate-and-nocount/. This either didn&#8217;t work for me.</p>
<p>But taking a look in the database suprised me! My Data was actually written! So a simply try {} catch(&#8230;) { //ignore } did the job! </p>
<p>SHAME ON ME FOR THAT <img src='http://www.stupent.at/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2010/01/12/nhibernateactive-record-stalestateexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synchronize Samsung Star 5230 on Ubuntu</title>
		<link>http://www.stupent.at/2010/01/09/synchronize-samsung-star-5230-on-ubuntu/</link>
		<comments>http://www.stupent.at/2010/01/09/synchronize-samsung-star-5230-on-ubuntu/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 10:11:34 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[5230]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[star]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.stupent.at/?p=236</guid>
		<description><![CDATA[My todays post covers my efforts to synchronize my samsung star mobile phone on ubuntu. 
First of all I tried BitPim, an open source tool to sync mobile phones. Unfortunatelly, with the current version of bitpim, it didn&#8217;t work. 
So I installed a VirtualBox using Windows Vista. Samsungs PC Studio seems not to work on [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2010%2F01%2F09%2Fsynchronize-samsung-star-5230-on-ubuntu%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2010%2F01%2F09%2Fsynchronize-samsung-star-5230-on-ubuntu%2F" height="61" width="51" /></a></div><p>My todays post covers my efforts to synchronize my samsung star mobile phone on ubuntu. </p>
<p>First of all I tried BitPim, an open source tool to sync mobile phones. Unfortunatelly, with the current version of bitpim, it didn&#8217;t work. </p>
<p>So I installed a VirtualBox using Windows Vista. Samsungs PC Studio seems not to work on a virtual installation of Vista? At least when I tried to install it it crashed my whole installation ;-(</p>
<p>So far, it does not work for me (ok, dualbooting to windows DOES work) </p>
<p>Edit 1 [01/12/10]: What works is sending files via Bluetooth. The mobile recognizes the files based on their ending. So you can send your contact data using *.vcf files. Each contact in one file is in my part of view just boring <img src='http://www.stupent.at/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2010/01/09/synchronize-samsung-star-5230-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samsung Widget Development &#8211; Part1 &#8211; Eclipse</title>
		<link>http://www.stupent.at/2009/11/25/samsung-widget-development-part1-eclipse/</link>
		<comments>http://www.stupent.at/2009/11/25/samsung-widget-development-part1-eclipse/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 13:23:53 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[touchwiz]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.stupent.at/?p=231</guid>
		<description><![CDATA[Part 1 of the development series:
First of all, we need to setup the development environment. This is provided by Samsung as Eclipse-Plugin.
Therefor we need to download eclipse (The Java EE Edition!) (http://www.eclipse.org/downloads)
After downloading and setting up eclipse, install the Samsung Widget Developer SDK: 
Within Eclipse, click on Help, then Install new Software.
Add the following URL: [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F11%2F25%2Fsamsung-widget-development-part1-eclipse%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F11%2F25%2Fsamsung-widget-development-part1-eclipse%2F" height="61" width="51" /></a></div><p>Part 1 of the development series:</p>
<p>First of all, we need to setup the development environment. This is provided by Samsung as Eclipse-Plugin.<br />
Therefor we need to download eclipse (The Java EE Edition!) (<a href="http://www.eclipse.org/downloads">http://www.eclipse.org/downloads</a>)</p>
<p>After downloading and setting up eclipse, install the Samsung Widget Developer SDK: </p>
<p>Within Eclipse, click on <strong>Help</strong>, then <strong>Install new Software</strong>.</p>
<p>Add the following URL: <em>http://widget.samsungmobile.com/sdk/</em> and install the plugin!</p>
<p>That&#8217;s it, you can now start to develop Samsung TouchWiz Widgets!</p>
<p>Part 2 will cover a short sample project!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2009/11/25/samsung-widget-development-part1-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new blog-series will start soon! Samsung Widget Development!</title>
		<link>http://www.stupent.at/2009/11/21/a-new-blog-series-will-start-soon-samsung-widget-development/</link>
		<comments>http://www.stupent.at/2009/11/21/a-new-blog-series-will-start-soon-samsung-widget-development/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 13:39:52 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[midp]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[touchwiz]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.stupent.at/?p=222</guid>
		<description><![CDATA[On Monday I willl receive my brand new Samsung Star mobile phone. This day will be the start of a new series of this blog about Samsung Widget Development! Stay tuned!
First information sources for this: 

http://www.bada.com
http://innovator.samsungmobile.com

]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F11%2F21%2Fa-new-blog-series-will-start-soon-samsung-widget-development%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F11%2F21%2Fa-new-blog-series-will-start-soon-samsung-widget-development%2F" height="61" width="51" /></a></div><p>On Monday I willl receive my brand new Samsung Star mobile phone. This day will be the start of a new series of this blog about Samsung Widget Development! <strong>Stay tuned</strong>!</p>
<p>First information sources for this: </p>
<ul>
<li><a href="http://www.bada.com">http://www.bada.com</a></li>
<li><a href="http://innovator.samsungmobile.com">http://innovator.samsungmobile.com</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2009/11/21/a-new-blog-series-will-start-soon-samsung-widget-development/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Cobertura 1.9.2 / JDK 1.6.0_14 incompatible</title>
		<link>http://www.stupent.at/2009/11/04/cobertura-1-9-2-jdk-1-6-0_14-incompatible/</link>
		<comments>http://www.stupent.at/2009/11/04/cobertura-1-9-2-jdk-1-6-0_14-incompatible/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 15:38:27 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[cobertura]]></category>
		<category><![CDATA[coverage]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.stupent.at/?p=220</guid>
		<description><![CDATA[Using Cobertura 1.9.2 with  JDK 1.6.0_14 raised the following exceptions:

Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
at java.io.File.deleteOnExit(File.java:939)
at net.sourceforge.cobertura.util.FileLocker.(FileLocker.java:80)
at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:230)
at net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: Shutdown in progress
at java.lang.Shutdown.add(Shutdown.java:62)
at java.lang.System$2.registerShutdownHook(System.java:1146)
at java.io.DeleteOnExitHook.(DeleteOnExitHook.java:20)
The newer versions of Cobertura fixed this issue!
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F11%2F04%2Fcobertura-1-9-2-jdk-1-6-0_14-incompatible%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F11%2F04%2Fcobertura-1-9-2-jdk-1-6-0_14-incompatible%2F" height="61" width="51" /></a></div><p>Using Cobertura 1.9.2 with  JDK 1.6.0_14 raised the following exceptions:</p>
<p><code><br />
Exception in thread "Thread-0" java.lang.ExceptionInInitializerError<br />
at java.io.File.deleteOnExit(File.java:939)<br />
at net.sourceforge.cobertura.util.FileLocker.<init>(FileLocker.java:80)<br />
at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:230)<br />
at net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31)<br />
at java.lang.Thread.run(Thread.java:619)<br />
Caused by: java.lang.IllegalStateException: Shutdown in progress<br />
at java.lang.Shutdown.add(Shutdown.java:62)<br />
at java.lang.System$2.registerShutdownHook(System.java:1146)<br />
at java.io.DeleteOnExitHook.<clinit>(DeleteOnExitHook.java:20)</clinit></init></code></p>
<p>The newer versions of Cobertura fixed this issue!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2009/11/04/cobertura-1-9-2-jdk-1-6-0_14-incompatible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send your Plushes on a world-trip</title>
		<link>http://www.stupent.at/2009/09/01/send-your-plushes-on-a-world-trip/</link>
		<comments>http://www.stupent.at/2009/09/01/send-your-plushes-on-a-world-trip/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 11:10:59 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.stupent.at/?p=218</guid>
		<description><![CDATA[Today I came across a very funny new web application. 
www.world-of-plush.com
On this site, you can register your favorite item you want to send on a world trip. Then you print out the tag, attach it to your item, and give it to someone who is going on a journey. Then he/she takes pictures, and writes [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F09%2F01%2Fsend-your-plushes-on-a-world-trip%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F09%2F01%2Fsend-your-plushes-on-a-world-trip%2F" height="61" width="51" /></a></div><p>Today I came across a very funny new web application. </p>
<p><a href="http://www.world-of-plush.com">www.world-of-plush.com</a></p>
<p>On this site, you can register your favorite item you want to send on a world trip. Then you print out the tag, attach it to your item, and give it to someone who is going on a journey. Then he/she takes pictures, and writes geo-tagged blog entries, which are displayed on the world map.</p>
<p>If you give it to some one stranger, and he writers a blog entry, you&#8217;ll become friend!</p>
<p>A new, and very funny social net. Im curious where my Plush will be in about one year <img src='http://www.stupent.at/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>You should really have a look at it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2009/09/01/send-your-plushes-on-a-world-trip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu / Dell Vostro 1510 Media Keys Flashing</title>
		<link>http://www.stupent.at/2009/07/14/ubuntu-dell-vostro-1510-media-keys-flashing/</link>
		<comments>http://www.stupent.at/2009/07/14/ubuntu-dell-vostro-1510-media-keys-flashing/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 14:16:17 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[1510]]></category>
		<category><![CDATA[led blinking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vostro]]></category>

		<guid isPermaLink="false">http://www.stupent.at/?p=214</guid>
		<description><![CDATA[Have you ever wondered, what is happening when your media keys keep flashing?
This means your kernel has some sort of panic  
This happend to me with some sort of strange combination of wlan-access-point and ubuntu-kernel. Whenever i got a new dhcp-lease from this one access-point, my kernel paniced and the last log message was [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F07%2F14%2Fubuntu-dell-vostro-1510-media-keys-flashing%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F07%2F14%2Fubuntu-dell-vostro-1510-media-keys-flashing%2F" height="61" width="51" /></a></div><p>Have you ever wondered, what is happening when your media keys keep flashing?</p>
<p>This means your kernel has some sort of <strong>panic</strong> <img src='http://www.stupent.at/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>This happend to me with some sort of strange combination of wlan-access-point and ubuntu-kernel. Whenever i got a new dhcp-lease from this one access-point, my kernel paniced and the last log message was that i got a new IP. </p>
<p>See google for more information on kernel panic reasons!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2009/07/14/ubuntu-dell-vostro-1510-media-keys-flashing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Base64 En-/Decoding using OpenSSL in C</title>
		<link>http://www.stupent.at/2009/07/03/base64-en-decoding-using-openssl-in-c/</link>
		<comments>http://www.stupent.at/2009/07/03/base64-en-decoding-using-openssl-in-c/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 21:39:14 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[UNI]]></category>
		<category><![CDATA[base64]]></category>
		<category><![CDATA[bio]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[openssl]]></category>

		<guid isPermaLink="false">http://www.stupent.at/?p=195</guid>
		<description><![CDATA[Recently i had to implement Base64 en &#38; decoding using openssl&#8217;s bio library, which by the way is just great, but a little &#8220;under-documented!&#8221;
If you ever wondered, why the standard example of decoding base64 data always returns 0 when using it with your test data? Well there is some nice undocumented feature: Strings that do [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F07%2F03%2Fbase64-en-decoding-using-openssl-in-c%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F07%2F03%2Fbase64-en-decoding-using-openssl-in-c%2F" height="61" width="51" /></a></div><p>Recently i had to implement Base64 en &amp; decoding using openssl&#8217;s bio library, which by the way is just great, but a little &#8220;under-documented!&#8221;</p>
<p>If you ever wondered, why the standard example of decoding base64 data always returns 0 when using it with your test data? Well there is some nice undocumented feature: Strings that do not end with a newline &#8216;\n&#8217; are not processed! So you have two possibilities: adding a newline to the string or use the following flag:</p>
<p>BIO_set_flags(BIO* to your bio_f_base64, BIO_FLAGS_BASE64_NO_NL);</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3396611173469301";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
//2007-04-05: Swabidu
google_ad_channel = "2349987622";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Edit: 21/Dec/08:</p>
<p>After handin of the courses homework i can now give some details about how to do it:</p>
<p>Using a chain of BIO filters is the most flexible way to handle proper base64 en-/decoding:</p>
<p><code><br />
//write base64 coded data to stdout<br />
BIO* b64 = BIO_new(BIO_f_base64());<br />
BIO* bio_out = BIO_new_fp(stdout, BIO_NOCLOSE);<br />
bio_out = BIO_push(b64, bio_out); //attach output bio to base64 bio<br />
BIO_write(bio_out,"data",sizeof("data"));<br />
BIO_flush(bio_out); //flush the buffer<br />
BIO_free_all(bio_out); //cleanup!<br />
</code></p>
<p>For more information see the super perfect documentation: http://www.openssl.org/docs/crypto/BIO_f_base64.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2009/07/03/base64-en-decoding-using-openssl-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing Matlab from Java</title>
		<link>http://www.stupent.at/2009/04/15/accessing-matlab-from-java/</link>
		<comments>http://www.stupent.at/2009/04/15/accessing-matlab-from-java/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 11:42:44 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[matlab]]></category>

		<guid isPermaLink="false">http://www.stupent.at/2009/04/15/accessing-matlab-from-java/</guid>
		<description><![CDATA[Today i had to access a matlab script from a java program. After some hours of trying to get it work by using matlabs command line i found a method to call a matlab script without using the command line. Using matlab -r &#8220;functionName&#8221; didn&#8217;t work because of some unknown charset erros i haven&#8217;t found [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F04%2F15%2Faccessing-matlab-from-java%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F04%2F15%2Faccessing-matlab-from-java%2F" height="61" width="51" /></a></div><p>Today i had to access a matlab script from a java program. After some hours of trying to get it work by using matlabs command line i found a method to call a matlab script without using the command line. Using matlab -r &#8220;functionName&#8221; didn&#8217;t work because of some unknown charset erros i haven&#8217;t found till now. The basic idea is based on this <a href="http://shatterednirvana.wordpress.com/2007/07/12/howto-call-matlab-from-java-kinda/">blog-post</a>.</p>
<p>Therefore, a process must be created:</p>
<p><code><br />
String command = "matlab -nosplash -nodesktop";<br />
Process process = Runtime.getRuntime().exec(command);<br />
</code></p>
<p>Afterwards we obtain the standard-input of the process and send a command to be interpreted by matlab:</p>
<p><code><br />
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(process.getOutputStream()));<br />
out.write("function_to_be_executed");<br />
out.write("\n");<br />
out.write("exit;") // this will close matlab after the execution finished!<br />
</code></p>
<p>If you like to see what is happening, try to read from the process.getInputStream()</p>
<p>hope that helps some of you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2009/04/15/accessing-matlab-from-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taking a Webcam-Snapshot on Ubuntu/Dell Vostro 1510</title>
		<link>http://www.stupent.at/2009/01/08/taking-a-webcam-snapshot-on-ubuntu-with-dell-vostro-1510/</link>
		<comments>http://www.stupent.at/2009/01/08/taking-a-webcam-snapshot-on-ubuntu-with-dell-vostro-1510/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 15:32:52 +0000</pubDate>
		<dc:creator>Cici</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[1510]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vostro]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://www.stupent.at/?p=208</guid>
		<description><![CDATA[Today i got to take snapshots with the integrated camera of my Dell Vostro 1510!
After some tries using mplayer, gqcam, camstreamer and others, I thought it would never work. But some adjustment of the parameters passed to mplayer it finally worked to get out movies:
mencoder tv:// -tv driver=v4l2:device=/dev/video0 -ofps 60 -ovc lavc -lavcopts vcodec=mjpeg -o [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F01%2F08%2Ftaking-a-webcam-snapshot-on-ubuntu-with-dell-vostro-1510%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.stupent.at%2F2009%2F01%2F08%2Ftaking-a-webcam-snapshot-on-ubuntu-with-dell-vostro-1510%2F" height="61" width="51" /></a></div><p>Today i got to take snapshots with the integrated camera of my Dell Vostro 1510!</p>
<p>After some tries using mplayer, gqcam, camstreamer and others, I thought it would never work. But some adjustment of the parameters passed to mplayer it finally worked to get out movies:</p>
<p><code>mencoder tv:// -tv driver=v4l2:device=/dev/video0 -ofps 60 -ovc lavc -lavcopts vcodec=mjpeg -o test.avi</code></p>
<p>To record single images use these commands:</p>
<p><code>mplayer -vo jpeg -fps30 tv:// -tv  driver=v4l2:device=/dev/video0 -frames 1</code></p>
<p>The file 00000001.jpg now contains your screenshot!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stupent.at/2009/01/08/taking-a-webcam-snapshot-on-ubuntu-with-dell-vostro-1510/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.874 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-10 13:16:06 -->
