<?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>Netflow Developments &#187; auto</title>
	<atom:link href="http://blog.netflowdevelopments.com/tag/auto/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.netflowdevelopments.com</link>
	<description>The latest and greatest happenings in the world of Science, Technology and everything else Geek</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:48:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to disable wordpress autoformatting ( and  tags)</title>
		<link>http://blog.netflowdevelopments.com/2011/04/01/how-to-disable-wordpress-autoformatting-and-tags/</link>
		<comments>http://blog.netflowdevelopments.com/2011/04/01/how-to-disable-wordpress-autoformatting-and-tags/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 15:23:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/?p=641</guid>
		<description><![CDATA[I posted a few days ago about how to prevent wordpress from inserting &#60;br \&#62; and made a note that I would have to do a bit more research to figure out how to disable the &#60;p&#62;&#8217;s .  Well a bit more research later I&#8217;ve found the solution to getting rid of all the bloody [...]]]></description>
			<content:encoded><![CDATA[<p>I posted a few days ago about how to prevent wordpress from inserting &lt;br \&gt; and made a note that I would have to do a bit more research to figure out how to disable the &lt;p&gt;&#8217;s .  Well a bit more research later I&#8217;ve found the solution to getting rid of all the bloody tags that WP throws in there.</p>
<p>What you need to do is to go into your wp-content/plugins directory and either create a new directory and copy the following into a .php file or simply put this into a file into the plugins directory:</p>
<blockquote><p>&lt;?php<br />
/* Plugin Name: WP Unformat<br />
* Plugin URI: http://wpvibe.com<br />
* Author: Jonathan Dingman<br />
* Author URI: http://jonathan.vc<br />
* Version: 1.0<br />
* Description: Disables the &lt;p&gt; that is automatically inserted by WordPress<br />
*/</p>
<p>remove_filter(&#8216;the_content&#8217;, &#8216;wpautop&#8217;);</p>
<p>?&gt;</p></blockquote>
<p>Of course credit is due to Jonathan Dingman for writing this simple little ditty, but I can say it works great!  Also you should <strong>undo</strong> any edits to the formatting.php file if you want to use the above</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2011/04/01/how-to-disable-wordpress-autoformatting-and-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Prevent wordpress from automatically inserting  tags everywhere</title>
		<link>http://blog.netflowdevelopments.com/2011/03/29/how-to-prevent-wordpress-from-automatically-inserting-tags-everywhere/</link>
		<comments>http://blog.netflowdevelopments.com/2011/03/29/how-to-prevent-wordpress-from-automatically-inserting-tags-everywhere/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 20:19:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/?p=637</guid>
		<description><![CDATA[One of the more annoying features of wordpress is it&#8217;s need to auto-format all of your html to high hell, especially when you are importing posts in html format.  Everytime you have a line break WP will put a &#60;br \&#62; in there, screwing everything up. There are a few plugins around to turn this [...]]]></description>
			<content:encoded><![CDATA[<p>One of the more annoying features of wordpress is it&#8217;s need to auto-format all of your html to high hell, especially when you are importing posts in html format.  Everytime you have a line break WP will put a &lt;br \&gt; in there, screwing everything up.</p>
<p>There are a few plugins around to turn this off however the ones I tried didn&#8217;t do jack so I had to go into the wp-includes/formatting.php file and specify that I like my html the way it is thank you very much.</p>
<p>It&#8217;s easy enough, in your formatting.php file change the following line:</p>
<p>function wpautop($pee, $br = 1) {<br />
to<br />
function wpautop($pee, $br = 0) {</p>
<p>done.. Now WP will still insert &lt;p&gt; tags throughout but not as many fo them.. I haven&#8217;t gotten around to solving that problem but I imagine it&#8217;ll be just as simple.  Remember that when you upgrade to a newer version of WP you might have to go in and make this adjustment again</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2011/03/29/how-to-prevent-wordpress-from-automatically-inserting-tags-everywhere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a custom slideshow for your wallpaper in ubuntu</title>
		<link>http://blog.netflowdevelopments.com/2010/07/12/creating-a-custom-slideshow-for-your-wallpaper-in-ubuntu/</link>
		<comments>http://blog.netflowdevelopments.com/2010/07/12/creating-a-custom-slideshow-for-your-wallpaper-in-ubuntu/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 10:21:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux / Freebsd]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[cosmos]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[slideshow]]></category>
		<category><![CDATA[space art]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wallpaper]]></category>
		<category><![CDATA[xml]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/?p=498</guid>
		<description><![CDATA[So it seems that I&#8217;ve had a similar experience to a lot of people changing their wallpapers in ubuntu.  You&#8217;re scrolling through a bunch and in the list you notice this one called cosmos that doesn&#8217;t quite looks like the rest.  &#8220;Hmmm, what&#8217;s this?&#8217; you think.  This looks like a bunch of images stacked on [...]]]></description>
			<content:encoded><![CDATA[<p>So it seems that I&#8217;ve had a similar experience to a lot of people changing their wallpapers in ubuntu.  You&#8217;re scrolling through a<img class="alignright" title="wallpaper" src="http://1.bp.blogspot.com/_njfTl4D4ZQU/Sz426eLDH8I/AAAAAAAAABI/OFixF5QPI9s/s320/sample1.png" alt="" width="320" height="270" /> bunch and in the list you notice this one called cosmos that doesn&#8217;t quite looks like the rest.  &#8220;Hmmm, what&#8217;s this?&#8217; you think.  This looks like a bunch of images stacked on top of each other.  Could it be?  And yes, it is, it&#8217;s a multi-image slideshow that can have as your background that rotates on a schedule that you choose.  I immediately sat down and started figuring out how this thing works and in the end it was pretty simple, time consuming to setup as you have to input a ton of values into an xml file but simple.  I&#8217;m not going to go into huge detail about how it works if you want to read more head over to <a href="http://www.linuxjournal.com/content/create-custom-transitioning-background-your-gnome-228-desktop" target="_blank">http://www.linuxjournal.com/content/create-custom-transitioning-background-your-gnome-228-desktop</a></p>
<p>So today I stumbled upon a motherload of amazing 3D space art at <a href="http://joejesus.deviantart.com">http://joejesus.deviantart.com</a> and I go completely gaga over space art.. My wallpapers are all sci-fi scenes, I just can&#8217;t get over how breath taking some of these are.  So I raided the guys stash and ended up with around 30-40 new pieces for my wallpaper slideshow and like hell was I going to enter all of these in by hand so off I went searching for a nice little script that would do it for me.  I mean come on, one of the reasons I&#8217;m a linux user because I gave up the notion that time consuming repetitive tasks were something that you had to do by hand and sure enough I found a wonderful gentlemen over at the ubuntu forums who coded up a beauty of a script that worked like a charm.  So make sure to head over to : <a href="http://ubuntuforums.org/showthread.php?p=9578962" target="_blank">http://ubuntuforums.org/showthread.php?p=9578962</a> and give the guy a big thank you hug for saving you hours of work, and read the instructions on how to use it.</p>
<p>Here&#8217;s the script, just copy and paste this into a file, chmod it to 755 and you&#8217;re off to the races:</p>
<blockquote>
<pre>#!/bin/sh
#This script creates xml files that can act as dynamic wallpapers for Gnome by referring to multiple wallpapers
#Coded by David J Krajnik
if [ "$*" = "" ]; then
  echo "This script creates xml files that can act as dynamic backgrounds for Gnome by referring to multiple wallpapers";
  echo "Usage: mkwlppr.sh target-file.xml [duration] pic1 pic2 [pic3 .. picN]";
else
  files=$*;
  #Grab the name of the target xml file
  xmlfile=`echo $files | cut -d " " -f 1`;
  #remove the first item from $files
  files=`echo $files | sed 's/^\&lt;[^ ]*\&gt;//'`;
  if [ "`echo $xmlfile | grep '\.xml$'`" = "" ]; then
    echo "Your target file must be an XML file";
  else
    inputIsValid="true";
    firstItem=`echo $files | cut -d " " -f 1`;
    duration="1795.0";#set the default duration
    if [ "`echo $firstItem | grep '^[0-9]\+\.[0-9]\+$'`" != "" ]; then
      echo "The duration must be an integer";
      files=`echo $files | sed 's/^\&lt;[^ ]*\&gt;//'`;
      inputIsValid="";
    elif [ "`echo $firstItem | grep '^[0-9]\+$'`" != "" ]; then
      #If the item is a number, then use it as the duration for each wallpaper image
      duration="`expr $firstItem - 5`.0";
      #remove the duration from the list of files
      files=`echo $files | sed 's/^\&lt;[^ ]*\&gt;//'`;
    fi
    if [ "$files" = "" ]; then
      echo "You must enter image files to associate with the XML file";
    else
      for file in $files
      do
        if [ ! -f $file ]; then
	  echo "\"$file\" does not exist";
	  inputIsValid="";
        elif [ "`echo $file | sed 's/^.*\.\(jpg\|jpeg\|bmp\|png\|gif\|tif\|tiff\|jif\|jfif\|jp2\|jpx\|j2k\|j2c\)$//'`" != "" ]; then
	  echo "\"$file\" is not an image file";
	  inputIsValid="";
	fi
      done
      if [ $inputIsValid ]; then
        currDir=`pwd`;
        echo "&lt;background&gt;" &gt;&gt; $xmlfile
        echo "  &lt;starttime&gt;\n    &lt;year&gt;2009&lt;/year&gt;\n    &lt;month&gt;08&lt;/month&gt;\n    &lt;day&gt;04&lt;/day&gt;" &gt;&gt; $xmlfile;
        echo "    &lt;hour&gt;00&lt;/hour&gt;\n    &lt;minute&gt;00&lt;/minute&gt;\n    &lt;second&gt;00&lt;/second&gt;\n  &lt;/starttime&gt;" &gt;&gt; $xmlfile;
        echo "  &lt;!-- This animation will start at midnight. --&gt;" &gt;&gt; $xmlfile;
        firstFile=`echo $files | cut -d " " -f 1`;#grab the first item
        if [ "`echo $firstFile | sed 's/\(.\).*/\1/'`" != "/" ]; then
          #If the first character in the filename is not '/', then it is a relative path and must have the current directory's path appended
          firstFile="$currDir/$firstFile";
        fi
        firstFile=`echo $firstFile | sed 's/[^/]\+\/\.\.\/\?//g'`;#Remove occurrences of ".." from the filepath
        files=`echo $files | sed 's/^\&lt;[^ ]*\&gt;//'`;#remove the first item
        prevFile=$firstFile;
        currFile="";
        #TODO add absolute path to the filenames
        #if $currFile =~ "^/.*" then the file needs to path appended
        echo "  &lt;static&gt;\n    &lt;duration&gt;$duration&lt;/duration&gt;\n    &lt;file&gt;$firstFile&lt;/file&gt;\n  &lt;/static&gt;" &gt;&gt; $xmlfile;
        for currFile in $files
        do
          if [ "`echo $currFile | sed 's/\(.\).*/\1/'`" != "/" ]; then
            #If the first character in the filename is not '/', then it is a relative path and must have the current directory's path appended
            currFile="$currDir/$currFile";
          fi
          currFile=`echo $currFile | sed 's/[^/]\+\/\.\.\/\?//g'`;#Remove occurrences of ".." from the filepath
          echo "  &lt;transition&gt;\n    &lt;duration&gt;5.0&lt;/duration&gt;\n    &lt;from&gt;$prevFile&lt;/from&gt;\n    &lt;to&gt;$currFile&lt;/to&gt;\n  &lt;/transition&gt;" &gt;&gt; $xmlfile;
          echo "  &lt;static&gt;\n    &lt;duration&gt;$duration&lt;/duration&gt;\n    &lt;file&gt;$currFile&lt;/file&gt;\n  &lt;/static&gt;" &gt;&gt; $xmlfile;
          prevFile=$currFile;
        done
        echo "  &lt;transition&gt;\n    &lt;duration&gt;5.0&lt;/duration&gt;\n    &lt;from&gt;$currFile&lt;/from&gt;\n    &lt;to&gt;$firstFile&lt;/to&gt;\n  &lt;/transition&gt;" &gt;&gt; $xmlfile;
        echo "&lt;/background&gt;" &gt;&gt; $xmlfile;
      fi
    fi
  fi
fi
</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2010/07/12/creating-a-custom-slideshow-for-your-wallpaper-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling Autocomplete by reverse searching history in Linux</title>
		<link>http://blog.netflowdevelopments.com/2010/03/13/enabling-autocomplete-by-reverse-searching-history-in-linux/</link>
		<comments>http://blog.netflowdevelopments.com/2010/03/13/enabling-autocomplete-by-reverse-searching-history-in-linux/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 11:07:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux / Freebsd]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[complete]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[reverse search]]></category>
		<category><![CDATA[up arrow]]></category>
		<guid isPermaLink="false">http://blog.netflowdevelopments.com/?p=428</guid>
		<description><![CDATA[Being a FreeBSD user I just got used to a very nice feature that would allow me to autocomplete commands based on my history.  So for example if 15 commands ago I had typed &#8216;cat filenames1 &#62; filename2&#8242; and I wanted to retype that command I could just type &#8216;cat&#8217; and then press up and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="linux" src="http://www.open-of-course.org/courses/file.php/24/linux-logo-full.jpg" alt="" width="196" height="216" />Being a FreeBSD user I just got used to a very nice feature that would allow me to autocomplete commands based on my history.  So for example if 15 commands ago I had typed &#8216;cat filenames1 &gt; filename2&#8242; and I wanted to retype that command I could just type &#8216;cat&#8217; and then press up and it would go through my history and bring up the last command I typed starting with &#8216;cat&#8217; until I got back to the desired command, only bringing up those in my history starting with &#8216;cat&#8217; of course.</p>
<p>Unfortunately this isn&#8217;t the way it works in linux, in linux pressing up, no matter how much you&#8217;ve typed so far will just take you back through the command history.  Sure you can press ctrl-r but I couldn&#8217;t be bothered to figure that out.  Besides there is a much cooler way to go about it.</p>
<p>what you  do is to edit /etc/inputrc:<br />
vi gedit /etc/inputrc</p>
<p>somewhere around line 40 is the following:</p>
<p># alternate mappings for &#8220;page up&#8221; and &#8220;page down&#8221; to search the history<br />
#&#8221;\e[5~&#8221;: history-search-backward<br />
#&#8221;\e[6~&#8221;: history-search-forward<br />
Uncomment those lines, close term and open an new one and viola!  It works the same but with page up and down instead.  Beauty!  If you didn&#8217;t know about this at all go in there and turn it on right now because man this is a time saver and a half.  You&#8217;ll thank me later!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netflowdevelopments.com/2010/03/13/enabling-autocomplete-by-reverse-searching-history-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

