<?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>Linux Swords &#187; linux</title>
	<atom:link href="http://blog.mjava.ch/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mjava.ch</link>
	<description>kids, baduk und cmd-lines</description>
	<lastBuildDate>Thu, 23 Dec 2010 12:01:30 +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>Find a specific class in your maven repository</title>
		<link>http://blog.mjava.ch/2009/01/08/find-a-specific-class-in-your-maven-repository/</link>
		<comments>http://blog.mjava.ch/2009/01/08/find-a-specific-class-in-your-maven-repository/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 22:27:19 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2009/01/08/find-a-specific-class-in-your-maven-repository/</guid>
		<description><![CDATA[If you don&#8217;t want to use findjar, you can use a groovy script.
You can use the following:

It will search recursively all jar files under &#8216;/home/USER/.m2/repository&#8217;, just adjust the value for &#8216;USER&#8217;.
Please excuse the poor formatting of the code, I blame the browser for it  

import java.util.jar.JarFile
if (args?.size() == 0 &#124;&#124; args[0]?.length() == 0)
{
  [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t want to use <a href="http://www.findjar.com">findjar</a>, you can use a groovy script.</p>
<p>You can use the following:<br />
<span id="more-224"></span><br />
It will search recursively all jar files under &#8216;/home/USER/.m2/repository&#8217;, just adjust the value for &#8216;USER&#8217;.</p>
<p>Please excuse the poor formatting of the code, I blame the browser for it <img src='http://blog.mjava.ch/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><code><br />
import java.util.jar.JarFile</p>
<p>if (args?.size() == 0 || args[0]?.length() == 0)<br />
{<br />
    println "usage with Parameters: <ClassNameToSearch> [pathToJarFiles]"<br />
    println "per default /home/USER/.m2/repository will be searched"<br />
    println<br />
    System.exit(1)<br />
}</p>
<p>def searchingClass = args[0]<br />
def folder = args.size() > 1 ? args[1] : "/home/knm/.m2/repository"</p>
<p>println "groovy searching for Class $searchingClass in $folder"<br />
def basedir = new File(folder)</p>
<p>// gets all jar-files in basedir<br />
jars = []<br />
 public void  recursedirs(File filedir)<br />
 {<br />
  filedir.listFiles().each<br />
  { file -><br />
    if (file.isFile() &#038;&#038; file.name.endsWith("jar") )<br />
     { jars << file }<br />
     else if (file.isDirectory() )<br />
     { this.recursedirs(file) }<br />
  }<br />
 }<br />
recursedirs( basedir)<br />
files = jars</p>
<p>for (currentFile in files)<br />
{<br />
    try {<br />
        new JarFile(currentFile).entries().each {entry -><br />
            if (entry.name =~ searchingClass)<br />
            {<br />
                tmp = entry.name.replaceAll("/", ".").replaceAll(".class", "")<br />
                println "$tmp ===> $folder/$currentFile.name"<br />
            }<br />
        }<br />
    }<br />
    catch (Throwable t)<br />
    {<br />
        println "\nFailed to open $currentFile.canonicalPath: ${t.toString()}"<br />
    }<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2009/01/08/find-a-specific-class-in-your-maven-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux screenshot via cmdline</title>
		<link>http://blog.mjava.ch/2008/11/28/linux-screenshot-via-cmdline/</link>
		<comments>http://blog.mjava.ch/2008/11/28/linux-screenshot-via-cmdline/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 11:49:55 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2008/11/28/linux-screenshot-via-cmdline/</guid>
		<description><![CDATA[The cmdline way for a screenshot:
import myFile.png
Cursor turns into a crosshair cursor -> span an area and the screenshot will be safed as myFile.png
[wiki]
]]></description>
			<content:encoded><![CDATA[<p>The cmdline way for a screenshot:</p>
<p><code>import myFile.png</code></p>
<p>Cursor turns into a crosshair cursor -> span an area and the screenshot will be safed as <em>myFile.png</em></p>
<p>[<a href="http://wiki.mjava.ch/index.php/Screenshot">wiki</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/11/28/linux-screenshot-via-cmdline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>where does tux live?</title>
		<link>http://blog.mjava.ch/2008/11/18/where-does-tux-live/</link>
		<comments>http://blog.mjava.ch/2008/11/18/where-does-tux-live/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 14:34:21 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2008/11/18/where-does-tux-live/</guid>
		<description><![CDATA[where does tux, the linux-mascot live?
On the nerd pole! 
rotfl!!
]]></description>
			<content:encoded><![CDATA[<p>where does tux, the linux-mascot live?<br />
On the nerd pole! </p>
<p>rotfl!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/11/18/where-does-tux-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>more cmdlines [linux-user only]</title>
		<link>http://blog.mjava.ch/2008/10/20/more-cmdlines-linux-user-only/</link>
		<comments>http://blog.mjava.ch/2008/10/20/more-cmdlines-linux-user-only/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 20:19:40 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash cmdline]]></category>

		<guid isPermaLink="false">http://blog.mjava.ch/2008/10/20/more-cmdlines-linux-user-only/</guid>
		<description><![CDATA[I recently learned and relearned more of common cmdlines and oneliners in bash.
Posting them gives me a place to lookup these until I enter them properly into my wiki.
linux-users follow here
copying/moving files/directories for backup:
mv originalfilename.txt{,.backup}
will result in originalfilename.txt.backup
!! will repeat the last command, usefull for adding sudo in front of it: &#8217;sudo !!&#8217;
As for repeating [...]]]></description>
			<content:encoded><![CDATA[<p>I recently learned and relearned more of common cmdlines and oneliners in <em>bash</em>.<br />
Posting them gives me a place to lookup these until I enter them properly into my wiki.</p>
<p>linux-users follow here<span id="more-219"></span></p>
<p>copying/moving files/directories for backup:<br />
<code>mv originalfilename.txt{,.backup}</code><br />
will result in <em>originalfilename.txt.backup</em></p>
<p><code>!!</code> will repeat the last command, usefull for adding <em>sudo</em> in front of it: <em>&#8217;sudo !!&#8217;</em></p>
<p>As for repeating the last command, you can also use the <em>&#8216;^a^b&#8217;</em> notation. It will repeat the last command and replace the first &#8216;a&#8217; with a &#8216;b&#8217;. Let&#8217;s see an example:</p>
<p>Let&#8217;s say your last command was <em>tar xzvf somefile-version-1.16.9.tar.gz</em> and you realized that<br />
you should have written &#8216;17&#8242; instead of &#8216;16&#8242;. Here&#8217;s the quickfix:<br />
<code>^16^17</code></p>
<p>If you look at the output of the <em>history </em>  command, you&#8217;ll see the command-number in front of the command. You can use <em>&#8216;!&#8217; </em>  with the number:</p>
<p><code>!534</code></p>
<p>will repeat the command with the number 534.</p>
<p>Another usefull shortcut is <em>&lt;Esc&gt; + &#8216;_&#8217;</em>. This will repeat the last parameter of the last command, usefull when creating new directories and then &#8216;cd&#8217; into them.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2008/10/20/more-cmdlines-linux-user-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>calendar</title>
		<link>http://blog.mjava.ch/2007/11/15/calendar/</link>
		<comments>http://blog.mjava.ch/2007/11/15/calendar/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 11:58:19 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[SF & Fantasy]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stocker-knoller.ch/?p=166</guid>
		<description><![CDATA[Todays Message
Nov 16         Bilbo reaches the Lonely Mountain
]]></description>
			<content:encoded><![CDATA[<p>Todays Message</p>
<p><tt>Nov 16         Bilbo reaches the Lonely Mountain</tt></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2007/11/15/calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LinuxSwords Wiki</title>
		<link>http://blog.mjava.ch/2007/09/10/linuxswords-wiki/</link>
		<comments>http://blog.mjava.ch/2007/09/10/linuxswords-wiki/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 10:01:16 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stocker-knoller.ch/?p=155</guid>
		<description><![CDATA[I have played a while with  to find a suitable wiki for me. I wanted to have a place to store cribs and I thought a wiki might be a good place for this.
 You are invited to add your own stuff to it! You can found the wiki at http://stocker-knoller.ch/wiki
or at http://www.linuxswords.com/wiki. I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p><img align="left" src='http://stocker-knoller.ch/wp-content/uploads/2007/09/lstux1.png' alt='lstux1.png' />I have played a while with <a href="http://www.wikimatrix.org"></a> to find a suitable wiki for me. I wanted to have a place to store cribs and I thought a wiki might be a good place for this.</p>
<p> You are invited to add your own stuff to it! You can found the wiki at <a href="http://stocker-knoller.ch/wiki">http://stocker-knoller.ch/wiki</a><br />
or at <a href="http://www.linuxswords.com/wiki">http://www.linuxswords.com/wiki</a>. I&#8217;m still looking for a good Icon, does anyone of you know where to find tux-images? If so, please leave a comment.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2007/09/10/linuxswords-wiki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video Capturing</title>
		<link>http://blog.mjava.ch/2007/06/17/video-capturing/</link>
		<comments>http://blog.mjava.ch/2007/06/17/video-capturing/#comments</comments>
		<pubDate>Sun, 17 Jun 2007 19:41:00 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stocker-knoller.ch/?p=130</guid>
		<description><![CDATA[I was looking for a tool to capture videos from my desktop. First i tried x11rec, but the output is a *.mng file which is an outdatet movie-format. The only alternative output is a *.gif file but i wanted an mpg-file. Unfortunately fmpeg couldn&#8217;t handle the format either so I investigated a little bit more.
I [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a tool to capture videos from my desktop. First i tried <a href="http://0xcc.net/x11rec/index.html.en">x11rec</a>, but the output is a *.mng file which is an outdatet movie-format. The only alternative output is a *.gif file but i wanted an mpg-file. Unfortunately <em>fmpeg</em> couldn&#8217;t handle the format either so I investigated a little bit more.</p>
<p>I finally found <a href="http://xvidcap.sourceforge.net/">xVidCap</a> which installs just fine with a *.deb file. It looks a bit old but it&#8217;s an easy to handle and pretty intuitive to use. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2007/06/17/video-capturing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu als Webapplikation</title>
		<link>http://blog.mjava.ch/2007/06/13/ubuntu-als-webapplikation/</link>
		<comments>http://blog.mjava.ch/2007/06/13/ubuntu-als-webapplikation/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 10:49:19 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stocker-knoller.ch/?p=129</guid>
		<description><![CDATA[Es gibt ja bereits vielerlei Formen von Ubuntu: Kubuntu, Xubuntu, Edubuntu etc.
Nun gibt es Ubuntu neu auch als Webapplikation:Wubuntu. Man Ubuntu im Browserfenter starten. Allerdings kann die Webapplikation bis jetzt nur den Browser starten, aber vielleicht kommt ja noch mehr&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Es gibt ja bereits vielerlei Formen von Ubuntu: <a href="http://www.kubuntu.com/">Kubuntu,</a> <a href="http://www.xubuntu.com/">Xubuntu,</a> <a href="http://www.edubuntu.com/">Edubuntu</a> etc.</p>
<p>Nun gibt es Ubuntu neu auch als Webapplikation:<a href="http://wubuntu.weejewel.net/" target="_blank">Wubuntu</a>. Man Ubuntu im Browserfenter starten. Allerdings kann die Webapplikation bis jetzt nur den Browser starten, aber vielleicht kommt ja noch mehr&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2007/06/13/ubuntu-als-webapplikation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yubnub</title>
		<link>http://blog.mjava.ch/2007/06/10/yubnub-2/</link>
		<comments>http://blog.mjava.ch/2007/06/10/yubnub-2/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 09:39:08 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stocker-knoller.ch/?p=125</guid>
		<description><![CDATA[Another yubnub golden egg
pgp name.
Search for PGP keys n the DFN PGP keyserver. Output format is verbose, with fingerprint
]]></description>
			<content:encoded><![CDATA[<p>Another <a href="http://stocker-knoller.ch/?p=10">yubnub</a> <a href="http://yubnub.org/kernel/golden_eggs?args=">golden egg</a></p>
<p><code>pgp name</code>.</p>
<p>Search for PGP keys n the DFN PGP keyserver. Output format is verbose, with fingerprint</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2007/06/10/yubnub-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Movie-Splitten</title>
		<link>http://blog.mjava.ch/2007/05/18/movie-splitten/</link>
		<comments>http://blog.mjava.ch/2007/05/18/movie-splitten/#comments</comments>
		<pubDate>Fri, 18 May 2007 17:14:36 +0000</pubDate>
		<dc:creator>mjava</dc:creator>
				<category><![CDATA[cmd-lines]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stocker-knoller.ch/?p=118</guid>
		<description><![CDATA[Eigentlich klingt die Aufgabe einfach. Aus einem Film eine einzelne Szene rauschneiden. 
Ich habe diverse Ubuntu/Linux-Tools ausprobiert mit erschreckenden Ergebnissen. Nix wollte richtig laufen: iLive, Avidemux, Shajaga, gopchop, kino, pitivi.
Alle haben versagt, oder genügen den Anforderungen nicht. iLive hat sogar meine XServer abgeschossen. Also zurück auf die commandline. Nach einer Sekunden-Suche mittels apt-cache search das [...]]]></description>
			<content:encoded><![CDATA[<p>Eigentlich klingt die Aufgabe einfach. Aus einem Film eine einzelne Szene rauschneiden. </p>
<p>Ich habe diverse Ubuntu/Linux-Tools ausprobiert mit erschreckenden Ergebnissen. Nix wollte richtig laufen: iLive, <a href="http://fixounet.free.fr/avidemux/">Avidemux,</a> Shajaga, gopchop, <a href="http://http://www.digital-world.de/news/video/software/kino_10_kostenloses_dv_tool_fuer_linux/1255914/kino_10_kostenloses_dv_tool_fuer_linux.html">kino,</a> pitivi.</p>
<p>Alle haben versagt, oder genügen den Anforderungen nicht. iLive hat sogar meine XServer abgeschossen. Also zurück auf die commandline. Nach einer Sekunden-Suche mittels <tt>apt-cache search</tt> das <strong>mpgtx</strong> gefunden. Funktionierte tadellos! Syntax ist sogar bequemer als die Klicki-Bunti-Guis.</p>
<p><code>mpgsplit MeinFilm.mpg -s [29:34.33 - 32:22.00]</code><br />
Diese Syntax ist so intuitiv, die muss man nicht mehr erklären</p>
<p>Das  Auf der Commando-Zeile gehts doch am besten!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mjava.ch/2007/05/18/movie-splitten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

