<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Cerebral Mastication</title>
	<atom:link href="http://www.cerebralmastication.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cerebralmastication.com</link>
	<description>Something to Chew On</description>
	<lastBuildDate>Wed, 02 Jan 2013 17:07:00 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Loading Big (ish) Data into R by JD Long</title>
		<link>http://www.cerebralmastication.com/2009/11/loading-big-data-into-r/comment-page-1/#comment-155774</link>
		<dc:creator>JD Long</dc:creator>
		<pubDate>Wed, 02 Jan 2013 17:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=416#comment-155774</guid>
		<description>Thanks Dieter. I really appreciate the link refresh.</description>
		<content:encoded><![CDATA[<p>Thanks Dieter. I really appreciate the link refresh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Loading Big (ish) Data into R by Dieter Menne</title>
		<link>http://www.cerebralmastication.com/2009/11/loading-big-data-into-r/comment-page-1/#comment-155770</link>
		<dc:creator>Dieter Menne</dc:creator>
		<pubDate>Wed, 02 Jan 2013 16:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=416#comment-155770</guid>
		<description>Since the link to &quot;this discussion&quot; is dead, here is it again:

http://r-project.markmail.org/thread/iatn4krvfbbykfmk</description>
		<content:encoded><![CDATA[<p>Since the link to &#8220;this discussion&#8221; is dead, here is it again:</p>
<p><a href="http://r-project.markmail.org/thread/iatn4krvfbbykfmk" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/r-project.markmail.org/thread/iatn4krvfbbykfmk?referer=');">http://r-project.markmail.org/thread/iatn4krvfbbykfmk</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Loading Big (ish) Data into R by JD Long</title>
		<link>http://www.cerebralmastication.com/2009/11/loading-big-data-into-r/comment-page-1/#comment-139234</link>
		<dc:creator>JD Long</dc:creator>
		<pubDate>Sun, 18 Nov 2012 19:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=416#comment-139234</guid>
		<description>That&#039;s odd, I agree.</description>
		<content:encoded><![CDATA[<p>That&#8217;s odd, I agree.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Loading Big (ish) Data into R by Hui Cheng</title>
		<link>http://www.cerebralmastication.com/2009/11/loading-big-data-into-r/comment-page-1/#comment-138535</link>
		<dc:creator>Hui Cheng</dc:creator>
		<pubDate>Fri, 16 Nov 2012 22:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=416#comment-138535</guid>
		<description>Hello,

Thanks for the post. I successfully read a 18660916 x 4 table using sqldf. However, when I tried it on a 4000 x 4500 table. Only header was read in. I couldn&#039;t figure out why.

Hui</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for the post. I successfully read a 18660916 x 4 table using sqldf. However, when I tried it on a 4000 x 4500 table. Only header was read in. I couldn&#8217;t figure out why.</p>
<p>Hui</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Loading Big (ish) Data into R by JD Long</title>
		<link>http://www.cerebralmastication.com/2009/11/loading-big-data-into-r/comment-page-1/#comment-130172</link>
		<dc:creator>JD Long</dc:creator>
		<pubDate>Fri, 19 Oct 2012 13:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=416#comment-130172</guid>
		<description>Sandy, 

What platform are you on and how much memory do you have. i.e. are you on 64 bit Linux with 16gb ram?</description>
		<content:encoded><![CDATA[<p>Sandy, </p>
<p>What platform are you on and how much memory do you have. i.e. are you on 64 bit Linux with 16gb ram?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Details of two-way sync between two Ubuntu machines by Wavemaker</title>
		<link>http://www.cerebralmastication.com/2011/04/details-of-two-way-sync-between-two-ubuntu-machines/comment-page-1/#comment-130023</link>
		<dc:creator>Wavemaker</dc:creator>
		<pubDate>Thu, 18 Oct 2012 23:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=966#comment-130023</guid>
		<description>This tip is still valuable. Since long I&#039;ve used this syncing setup with reasonable succes. Over time I&#039;ve developed the sysv init script as below. It allows automatic starting of the sync at boot and works reasonably well for me. I hope it can be of use to someone.

--- /etc/init.d/lansync on client ---

#!/bin/sh
#
### BEGIN INIT INFO
# Provides:          lansync
# Required-Start:    $ssh
# Short-Description: lansync init script
# Description:       files synchronization using lsyncd and unison
### END INIT INFO
#

NAME=&quot;lansync&quot;

NICELEVEL=19
IONICECLASS=&quot;idle&quot;
export HOME=&quot;/root&quot;
DAEMON=&quot;/usr/local/bin/lsyncd&quot;
PIDFILE=&quot;/var/run/$NAME.pid&quot;

CONFIG_FILE1=&quot;/etc/lansync/lsyncd.conf&quot;
ROOT1=&quot;/home/testuser/LanSync&quot;
ROOT2=&quot;ssh://serverip//home/testuser/LanSync&quot;
LOG_FILE1=&quot;/var/log/lansync.log&quot;


if [ &quot;$(id -u)&quot; != &quot;0&quot; ]
then
  log_failure_msg &quot;You must be root to start, stop or restart $NAME.&quot;
  exit 1
fi

case &quot;$1&quot; in
  start)
     echo -n &quot;Starting $NAME daemon...&quot;
     echo -n &quot;Starting $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1


     start-stop-daemon --start --oknodo --nice $NICELEVEL --iosched $IONICECLASS \
       --exec $DAEMON -- $CONFIG_FILE1 -pidfile $PIDFILE
     #debug alternative:
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE

     daemon -- nice ionice -c 3 unison -batch -group -owner -ui text $ROOT1 $ROOT2 &gt; $LOG_FILE1
     #debug alternatives:
     #unison -ui graphic -group -owner $ROOT1 $ROOT2
     #unison -batch -group -owner -ui text $ROOT1 $ROOT2

     echo &quot;done&quot;
     exit 1
     ;;
  stop)
     echo -n &quot;Stopping $NAME daemon...&quot;
     echo -n &quot;Stopping $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1

     start-stop-daemon --stop --oknodo --pidfile $PIDFILE --retry 5
     rm -rf $PIDFILE

     echo &quot;done&quot;
     exit 1
     ;;
  restart)

     /etc/init.d/$NAME stop
     /etc/init.d/$NAME start

     exit 1
     ;;
  *)
     echo &quot;Usage: /etc/init.d/$NAME {start&#124;stop&#124;restart}&quot;
     exit 1
esac

exit 0


--- End ---

--- /etc/init.d/lansync on server ---

#!/bin/sh
#
### BEGIN INIT INFO
# Provides:          lansync
# Required-Start:    $ssh
# Short-Description: lansync init script
# Description:       files synchronization using lsyncd and unison
### END INIT INFO
#

NAME=&quot;lansync&quot;

NICELEVEL=19
IONICECLASS=&quot;idle&quot;
export HOME=&quot;/root&quot;
DAEMON=&quot;/usr/local/bin/lsyncd&quot;
PIDFILE=&quot;/var/run/$NAME.pid&quot;

CONFIG_FILE1=&quot;/etc/lansync/lsyncd.conf&quot;
ROOT1=&quot;/home/testuser/LanSync&quot;
ROOT2=&quot;ssh://serverip//home/testuser/LanSync&quot;
LOG_FILE1=&quot;/var/log/lansync.log&quot;


if [ &quot;$(id -u)&quot; != &quot;0&quot; ]
then
  log_failure_msg &quot;You must be root to start, stop or restart $NAME.&quot;
  exit 1
fi

case &quot;$1&quot; in
  start)
     echo -n &quot;Starting $NAME daemon...&quot;
     echo -n &quot;Starting $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1


     start-stop-daemon --start --oknodo --nice $NICELEVEL --iosched $IONICECLASS \
       --exec $DAEMON -- $CONFIG_FILE1 -pidfile $PIDFILE
     #debug alternative:
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE

--- /etc/init.d/lansync on client ---

#!/bin/sh
#
### BEGIN INIT INFO
# Provides:          lansync
# Required-Start:    $ssh
# Short-Description: lansync init script
# Description:       files synchronization using lsyncd and unison
### END INIT INFO
#

NAME=&quot;lansync&quot;

NICELEVEL=19
IONICECLASS=&quot;idle&quot;
export HOME=&quot;/root&quot;
DAEMON=&quot;/usr/local/bin/lsyncd&quot;
PIDFILE=&quot;/var/run/$NAME.pid&quot;

CONFIG_FILE1=&quot;/etc/lansync/lsyncd.conf&quot;
ROOT1=&quot;/home/testuser/LanSync&quot;
ROOT2=&quot;ssh://serverip//home/testuser/LanSync&quot;
LOG_FILE1=&quot;/var/log/lansync.log&quot;


if [ &quot;$(id -u)&quot; != &quot;0&quot; ]
then
  log_failure_msg &quot;You must be root to start, stop or restart $NAME.&quot;
  exit 1
fi

case &quot;$1&quot; in
  start)
     echo -n &quot;Starting $NAME daemon...&quot;
     echo -n &quot;Starting $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1


     start-stop-daemon --start --oknodo --nice $NICELEVEL --iosched $IONICECLASS \
       --exec $DAEMON -- $CONFIG_FILE1 -pidfile $PIDFILE
     #debug alternative:
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE

     daemon -- ssh clientip nice ionice -c 3 \
       unison -batch -group -owner -ui text $ROOT1 $ROOT2 &gt; $LOG_FILE1

     echo &quot;done&quot;
     exit 1
     ;;
  stop)
     echo -n &quot;Stopping $NAME daemon...&quot;
     echo -n &quot;Stopping $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1

     start-stop-daemon --stop --oknodo --pidfile $PIDFILE --retry 5
     rm -rf $PIDFILE

     echo &quot;done&quot;
     exit 1
     ;;
  restart)

     /etc/init.d/$NAME stop
     /etc/init.d/$NAME start

     exit 1
     ;;
  *)
     echo &quot;Usage: /etc/init.d/$NAME {start&#124;stop&#124;restart}&quot;
     exit 1
esac

exit 0


--- End ---

     echo &quot;done&quot;
     exit 1
     ;;
  stop)
     echo -n &quot;Stopping $NAME daemon...&quot;
     echo -n &quot;Stopping $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1

     start-stop-daemon --stop --oknodo --pidfile $PIDFILE --retry 5
     rm -rf $PIDFILE

     echo &quot;done&quot;
     exit 1
     ;;
  restart)

     /etc/init.d/$NAME stop
     /etc/init.d/$NAME start

     exit 1
     ;;
  *)
     echo &quot;Usage: /etc/init.d/$NAME {start&#124;stop&#124;restart}&quot;
     exit 1
esac

exit 0


--- End ---</description>
		<content:encoded><![CDATA[<p>This tip is still valuable. Since long I&#8217;ve used this syncing setup with reasonable succes. Over time I&#8217;ve developed the sysv init script as below. It allows automatic starting of the sync at boot and works reasonably well for me. I hope it can be of use to someone.</p>
<p>&#8212; /etc/init.d/lansync on client &#8212;</p>
<p>#!/bin/sh<br />
#<br />
### BEGIN INIT INFO<br />
# Provides:          lansync<br />
# Required-Start:    $ssh<br />
# Short-Description: lansync init script<br />
# Description:       files synchronization using lsyncd and unison<br />
### END INIT INFO<br />
#</p>
<p>NAME=&#8221;lansync&#8221;</p>
<p>NICELEVEL=19<br />
IONICECLASS=&#8221;idle&#8221;<br />
export HOME=&#8221;/root&#8221;<br />
DAEMON=&#8221;/usr/local/bin/lsyncd&#8221;<br />
PIDFILE=&#8221;/var/run/$NAME.pid&#8221;</p>
<p>CONFIG_FILE1=&#8221;/etc/lansync/lsyncd.conf&#8221;<br />
ROOT1=&#8221;/home/testuser/LanSync&#8221;<br />
ROOT2=&#8221;ssh://serverip//home/testuser/LanSync&#8221;<br />
LOG_FILE1=&#8221;/var/log/lansync.log&#8221;</p>
<p>if [ "$(id -u)" != "0" ]<br />
then<br />
  log_failure_msg &#8220;You must be root to start, stop or restart $NAME.&#8221;<br />
  exit 1<br />
fi</p>
<p>case &#8220;$1&#8243; in<br />
  start)<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;start &#8211;oknodo &#8211;nice $NICELEVEL &#8211;iosched $IONICECLASS \<br />
       &#8211;exec $DAEMON &#8212; $CONFIG_FILE1 -pidfile $PIDFILE<br />
     #debug alternative:<br />
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE</p>
<p>     daemon &#8212; nice ionice -c 3 unison -batch -group -owner -ui text $ROOT1 $ROOT2 &gt; $LOG_FILE1<br />
     #debug alternatives:<br />
     #unison -ui graphic -group -owner $ROOT1 $ROOT2<br />
     #unison -batch -group -owner -ui text $ROOT1 $ROOT2</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  stop)<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;stop &#8211;oknodo &#8211;pidfile $PIDFILE &#8211;retry 5<br />
     rm -rf $PIDFILE</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  restart)</p>
<p>     /etc/init.d/$NAME stop<br />
     /etc/init.d/$NAME start</p>
<p>     exit 1<br />
     ;;<br />
  *)<br />
     echo &#8220;Usage: /etc/init.d/$NAME {start|stop|restart}&#8221;<br />
     exit 1<br />
esac</p>
<p>exit 0</p>
<p>&#8212; End &#8212;</p>
<p>&#8212; /etc/init.d/lansync on server &#8212;</p>
<p>#!/bin/sh<br />
#<br />
### BEGIN INIT INFO<br />
# Provides:          lansync<br />
# Required-Start:    $ssh<br />
# Short-Description: lansync init script<br />
# Description:       files synchronization using lsyncd and unison<br />
### END INIT INFO<br />
#</p>
<p>NAME=&#8221;lansync&#8221;</p>
<p>NICELEVEL=19<br />
IONICECLASS=&#8221;idle&#8221;<br />
export HOME=&#8221;/root&#8221;<br />
DAEMON=&#8221;/usr/local/bin/lsyncd&#8221;<br />
PIDFILE=&#8221;/var/run/$NAME.pid&#8221;</p>
<p>CONFIG_FILE1=&#8221;/etc/lansync/lsyncd.conf&#8221;<br />
ROOT1=&#8221;/home/testuser/LanSync&#8221;<br />
ROOT2=&#8221;ssh://serverip//home/testuser/LanSync&#8221;<br />
LOG_FILE1=&#8221;/var/log/lansync.log&#8221;</p>
<p>if [ "$(id -u)" != "0" ]<br />
then<br />
  log_failure_msg &#8220;You must be root to start, stop or restart $NAME.&#8221;<br />
  exit 1<br />
fi</p>
<p>case &#8220;$1&#8243; in<br />
  start)<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;start &#8211;oknodo &#8211;nice $NICELEVEL &#8211;iosched $IONICECLASS \<br />
       &#8211;exec $DAEMON &#8212; $CONFIG_FILE1 -pidfile $PIDFILE<br />
     #debug alternative:<br />
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE</p>
<p>&#8212; /etc/init.d/lansync on client &#8212;</p>
<p>#!/bin/sh<br />
#<br />
### BEGIN INIT INFO<br />
# Provides:          lansync<br />
# Required-Start:    $ssh<br />
# Short-Description: lansync init script<br />
# Description:       files synchronization using lsyncd and unison<br />
### END INIT INFO<br />
#</p>
<p>NAME=&#8221;lansync&#8221;</p>
<p>NICELEVEL=19<br />
IONICECLASS=&#8221;idle&#8221;<br />
export HOME=&#8221;/root&#8221;<br />
DAEMON=&#8221;/usr/local/bin/lsyncd&#8221;<br />
PIDFILE=&#8221;/var/run/$NAME.pid&#8221;</p>
<p>CONFIG_FILE1=&#8221;/etc/lansync/lsyncd.conf&#8221;<br />
ROOT1=&#8221;/home/testuser/LanSync&#8221;<br />
ROOT2=&#8221;ssh://serverip//home/testuser/LanSync&#8221;<br />
LOG_FILE1=&#8221;/var/log/lansync.log&#8221;</p>
<p>if [ "$(id -u)" != "0" ]<br />
then<br />
  log_failure_msg &#8220;You must be root to start, stop or restart $NAME.&#8221;<br />
  exit 1<br />
fi</p>
<p>case &#8220;$1&#8243; in<br />
  start)<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;start &#8211;oknodo &#8211;nice $NICELEVEL &#8211;iosched $IONICECLASS \<br />
       &#8211;exec $DAEMON &#8212; $CONFIG_FILE1 -pidfile $PIDFILE<br />
     #debug alternative:<br />
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE</p>
<p>     daemon &#8212; ssh clientip nice ionice -c 3 \<br />
       unison -batch -group -owner -ui text $ROOT1 $ROOT2 &gt; $LOG_FILE1</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  stop)<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;stop &#8211;oknodo &#8211;pidfile $PIDFILE &#8211;retry 5<br />
     rm -rf $PIDFILE</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  restart)</p>
<p>     /etc/init.d/$NAME stop<br />
     /etc/init.d/$NAME start</p>
<p>     exit 1<br />
     ;;<br />
  *)<br />
     echo &#8220;Usage: /etc/init.d/$NAME {start|stop|restart}&#8221;<br />
     exit 1<br />
esac</p>
<p>exit 0</p>
<p>&#8212; End &#8212;</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  stop)<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;stop &#8211;oknodo &#8211;pidfile $PIDFILE &#8211;retry 5<br />
     rm -rf $PIDFILE</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  restart)</p>
<p>     /etc/init.d/$NAME stop<br />
     /etc/init.d/$NAME start</p>
<p>     exit 1<br />
     ;;<br />
  *)<br />
     echo &#8220;Usage: /etc/init.d/$NAME {start|stop|restart}&#8221;<br />
     exit 1<br />
esac</p>
<p>exit 0</p>
<p>&#8212; End &#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Details of two-way sync between two Ubuntu machines by Wavemaker</title>
		<link>http://www.cerebralmastication.com/2011/04/details-of-two-way-sync-between-two-ubuntu-machines/comment-page-1/#comment-130022</link>
		<dc:creator>Wavemaker</dc:creator>
		<pubDate>Thu, 18 Oct 2012 23:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=966#comment-130022</guid>
		<description>I&#039;ve since a long time experimented with this syncing setup and now use the following sysv init files on ubuntu, which makes automatic management of the syncing possible. I hope it can be of use to someone. lsyncd.conf is still identical and should be present on both systems.

---- Code starting for system 1 (client) here: ----

#!/bin/sh
#
### BEGIN INIT INFO
# Provides:          lansync
# Required-Start:    $ssh
# Short-Description: lansync init script
# Description:       files synchronization using lsyncd and unison
### END INIT INFO
#

NAME=&quot;lansync&quot;

NICELEVEL=19
IONICECLASS=&quot;idle&quot;
export HOME=&quot;/root&quot;
DAEMON=&quot;/usr/local/bin/lsyncd&quot;
PIDFILE=&quot;/var/run/$NAME.pid&quot;

CONFIG_FILE1=&quot;/etc/lansync/lsyncd.conf&quot;
ROOT1=&quot;/home/test/LanSync&quot;
ROOT2=&quot;ssh://serverip//home/test/LanSync&quot;
LOG_FILE1=&quot;/var/log/lansync.log&quot;

if [ &quot;$(id -u)&quot; != &quot;0&quot; ]
then

  log_failure_msg &quot;You must be root to start, stop or restart $NAME.&quot;
  exit 1
fi

case &quot;$1&quot; in
  start)
     echo -n &quot;Starting $NAME daemon...&quot;
     echo -n &quot;Starting $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1


     start-stop-daemon --start --oknodo --nice $NICELEVEL --iosched $IONICECLASS \
       --exec $DAEMON -- $CONFIG_FILE1 -pidfile $PIDFILE
     #debug alternative:
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE

     daemon -- nice ionice -c 3 unison -batch -group -owner -ui text $ROOT1 $ROOT2 &gt; $LOG_FILE1
     #debug alternatives:
     #unison -ui graphic -group -owner $ROOT1 $ROOT2
     #unison -batch -group -owner -ui text $ROOT1 $ROOT2

     echo &quot;done&quot;
     exit 1
     ;;
  stop)
     echo -n &quot;Stopping $NAME daemon...&quot;
     echo -n &quot;Stopping $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1

     start-stop-daemon --stop --oknodo --pidfile $PIDFILE --retry 5
     rm -rf $PIDFILE

     echo &quot;done&quot;
     exit 1
     ;;
  restart)

     /etc/init.d/$NAME stop
     /etc/init.d/$NAME start

     exit 1
     ;;
  *)
     echo &quot;Usage: /etc/init.d/$NAME {start&#124;stop&#124;restart}&quot;
     exit 1
esac

exit 0

---- END ----


---- Code starting for system 2 (server) here: ----

#!/bin/sh
#
### BEGIN INIT INFO
# Provides:          lansync
# Required-Start:    $ssh
# Short-Description: lansync init script
# Description:       files synchronization using lsyncd and unison
### END INIT INFO
#

NAME=&quot;lansync&quot;

NICELEVEL=19
IONICECLASS=&quot;idle&quot;
export HOME=&quot;/root&quot;
DAEMON=&quot;/usr/local/bin/lsyncd&quot;
PIDFILE=&quot;/var/run/$NAME.pid&quot;

CONFIG_FILE1=&quot;/etc/lansync/lsyncd.conf&quot;
ROOT1=&quot;/home/test/LanSync&quot;
ROOT2=&quot;ssh://clientip//home/test/LanSync&quot;
LOG_FILE1=&quot;/var/log/lansync.log&quot;

if [ &quot;$(id -u)&quot; != &quot;0&quot; ]
then

  log_failure_msg &quot;You must be root to start, stop or restart $NAME.&quot;
  exit 1
fi

case &quot;$1&quot; in
  start)
     echo -n &quot;Starting $NAME daemon...&quot;
     echo -n &quot;Starting $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1


     start-stop-daemon --start --oknodo --nice $NICELEVEL --iosched $IONICECLASS \
       --exec $DAEMON -- $CONFIG_FILE1 -pidfile $PIDFILE
     #debug alternative:
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE

     daemon -- ssh clientip nice ionice -c 3 \
       unison -batch -group -owner -ui text $ROOT1 $ROOT2 &gt; $LOG_FILE1

     echo &quot;done&quot;
     exit 1
     ;;
  stop)
     echo -n &quot;Stopping $NAME daemon...&quot;
     echo -n &quot;Stopping $NAME daemon...&quot; &gt;&gt; $LOG_FILE1
     date &gt;&gt; $LOG_FILE1

     start-stop-daemon --stop --oknodo --pidfile $PIDFILE --retry 5
     rm -rf $PIDFILE

     echo &quot;done&quot;
     exit 1
     ;;
  restart)

     /etc/init.d/$NAME stop
     /etc/init.d/$NAME start

     exit 1
     ;;
  *)
     echo &quot;Usage: /etc/init.d/$NAME {start&#124;stop&#124;restart}&quot;
     exit 1
esac

exit 0

----- END ----</description>
		<content:encoded><![CDATA[<p>I&#8217;ve since a long time experimented with this syncing setup and now use the following sysv init files on ubuntu, which makes automatic management of the syncing possible. I hope it can be of use to someone. lsyncd.conf is still identical and should be present on both systems.</p>
<p>&#8212;- Code starting for system 1 (client) here: &#8212;-</p>
<p>#!/bin/sh<br />
#<br />
### BEGIN INIT INFO<br />
# Provides:          lansync<br />
# Required-Start:    $ssh<br />
# Short-Description: lansync init script<br />
# Description:       files synchronization using lsyncd and unison<br />
### END INIT INFO<br />
#</p>
<p>NAME=&#8221;lansync&#8221;</p>
<p>NICELEVEL=19<br />
IONICECLASS=&#8221;idle&#8221;<br />
export HOME=&#8221;/root&#8221;<br />
DAEMON=&#8221;/usr/local/bin/lsyncd&#8221;<br />
PIDFILE=&#8221;/var/run/$NAME.pid&#8221;</p>
<p>CONFIG_FILE1=&#8221;/etc/lansync/lsyncd.conf&#8221;<br />
ROOT1=&#8221;/home/test/LanSync&#8221;<br />
ROOT2=&#8221;ssh://serverip//home/test/LanSync&#8221;<br />
LOG_FILE1=&#8221;/var/log/lansync.log&#8221;</p>
<p>if [ "$(id -u)" != "0" ]<br />
then</p>
<p>  log_failure_msg &#8220;You must be root to start, stop or restart $NAME.&#8221;<br />
  exit 1<br />
fi</p>
<p>case &#8220;$1&#8243; in<br />
  start)<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;start &#8211;oknodo &#8211;nice $NICELEVEL &#8211;iosched $IONICECLASS \<br />
       &#8211;exec $DAEMON &#8212; $CONFIG_FILE1 -pidfile $PIDFILE<br />
     #debug alternative:<br />
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE</p>
<p>     daemon &#8212; nice ionice -c 3 unison -batch -group -owner -ui text $ROOT1 $ROOT2 &gt; $LOG_FILE1<br />
     #debug alternatives:<br />
     #unison -ui graphic -group -owner $ROOT1 $ROOT2<br />
     #unison -batch -group -owner -ui text $ROOT1 $ROOT2</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  stop)<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;stop &#8211;oknodo &#8211;pidfile $PIDFILE &#8211;retry 5<br />
     rm -rf $PIDFILE</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  restart)</p>
<p>     /etc/init.d/$NAME stop<br />
     /etc/init.d/$NAME start</p>
<p>     exit 1<br />
     ;;<br />
  *)<br />
     echo &#8220;Usage: /etc/init.d/$NAME {start|stop|restart}&#8221;<br />
     exit 1<br />
esac</p>
<p>exit 0</p>
<p>&#8212;- END &#8212;-</p>
<p>&#8212;- Code starting for system 2 (server) here: &#8212;-</p>
<p>#!/bin/sh<br />
#<br />
### BEGIN INIT INFO<br />
# Provides:          lansync<br />
# Required-Start:    $ssh<br />
# Short-Description: lansync init script<br />
# Description:       files synchronization using lsyncd and unison<br />
### END INIT INFO<br />
#</p>
<p>NAME=&#8221;lansync&#8221;</p>
<p>NICELEVEL=19<br />
IONICECLASS=&#8221;idle&#8221;<br />
export HOME=&#8221;/root&#8221;<br />
DAEMON=&#8221;/usr/local/bin/lsyncd&#8221;<br />
PIDFILE=&#8221;/var/run/$NAME.pid&#8221;</p>
<p>CONFIG_FILE1=&#8221;/etc/lansync/lsyncd.conf&#8221;<br />
ROOT1=&#8221;/home/test/LanSync&#8221;<br />
ROOT2=&#8221;ssh://clientip//home/test/LanSync&#8221;<br />
LOG_FILE1=&#8221;/var/log/lansync.log&#8221;</p>
<p>if [ "$(id -u)" != "0" ]<br />
then</p>
<p>  log_failure_msg &#8220;You must be root to start, stop or restart $NAME.&#8221;<br />
  exit 1<br />
fi</p>
<p>case &#8220;$1&#8243; in<br />
  start)<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Starting $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;start &#8211;oknodo &#8211;nice $NICELEVEL &#8211;iosched $IONICECLASS \<br />
       &#8211;exec $DAEMON &#8212; $CONFIG_FILE1 -pidfile $PIDFILE<br />
     #debug alternative:<br />
     #$DAEMON $CONFIG_FILE1 -pidfile $PIDFILE</p>
<p>     daemon &#8212; ssh clientip nice ionice -c 3 \<br />
       unison -batch -group -owner -ui text $ROOT1 $ROOT2 &gt; $LOG_FILE1</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  stop)<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221;<br />
     echo -n &#8220;Stopping $NAME daemon&#8230;&#8221; &gt;&gt; $LOG_FILE1<br />
     date &gt;&gt; $LOG_FILE1</p>
<p>     start-stop-daemon &#8211;stop &#8211;oknodo &#8211;pidfile $PIDFILE &#8211;retry 5<br />
     rm -rf $PIDFILE</p>
<p>     echo &#8220;done&#8221;<br />
     exit 1<br />
     ;;<br />
  restart)</p>
<p>     /etc/init.d/$NAME stop<br />
     /etc/init.d/$NAME start</p>
<p>     exit 1<br />
     ;;<br />
  *)<br />
     echo &#8220;Usage: /etc/init.d/$NAME {start|stop|restart}&#8221;<br />
     exit 1<br />
esac</p>
<p>exit 0</p>
<p>&#8212;&#8211; END &#8212;-</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Loading Big (ish) Data into R by Sandy</title>
		<link>http://www.cerebralmastication.com/2009/11/loading-big-data-into-r/comment-page-1/#comment-129862</link>
		<dc:creator>Sandy</dc:creator>
		<pubDate>Thu, 18 Oct 2012 08:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=416#comment-129862</guid>
		<description>Hi,

I&#039;ve tried this sqldf approach with a file of 611 MB (2099 columns, 96360 rows), but I get the error message that it cannot allocate a vector of 411 Kb.
My memory.limit is 3000 MB, so I guess it should be possible.
What am I doing wrong?

Thanks,
Sandy</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve tried this sqldf approach with a file of 611 MB (2099 columns, 96360 rows), but I get the error message that it cannot allocate a vector of 411 Kb.<br />
My memory.limit is 3000 MB, so I guess it should be possible.<br />
What am I doing wrong?</p>
<p>Thanks,<br />
Sandy</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Fast Intro to PLYR for R by Bob Muenchen</title>
		<link>http://www.cerebralmastication.com/2009/08/a-fast-intro-to-plyr-for-r/comment-page-1/#comment-124168</link>
		<dc:creator>Bob Muenchen</dc:creator>
		<pubDate>Fri, 21 Sep 2012 17:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=339#comment-124168</guid>
		<description>Oops, I missed Wabe&#039;s comment about summarize!</description>
		<content:encoded><![CDATA[<p>Oops, I missed Wabe&#8217;s comment about summarize!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Fast Intro to PLYR for R by Bob Muenchen</title>
		<link>http://www.cerebralmastication.com/2009/08/a-fast-intro-to-plyr-for-r/comment-page-1/#comment-124167</link>
		<dc:creator>Bob Muenchen</dc:creator>
		<pubDate>Fri, 21 Sep 2012 17:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=339#comment-124167</guid>
		<description>If you do this example using plyr&#039;s summerize function, you can avoid typing df$ so many times and you also get to name your columns:

&gt; ddply(dd, c(&quot;dim1&quot;,&quot;dim2&quot;), summarize,
+       v1mean = mean(v1),
+       v2mean = mean(v2),
+       v3mean = mean(v3),
+       v1sd   = sd(v1),
+       v2sd   = sd(v2),
+       v3sd   = sd(v3))
  dim1 dim2   v1mean    v2mean   v3mean    v1sd    v2sd    v3sd
1    A    J  0.04736  0.091364 -0.30501 1.07886 0.96619 1.13664
2    B    J  0.30301  0.227677 -0.24818 1.22907 0.98196 1.29158
3    B    K -0.28136 -0.264688  0.35963 0.77938 0.83391 1.11255
4    C    K -0.24694 -0.163735 -0.24561 0.79591 0.91162 0.83031</description>
		<content:encoded><![CDATA[<p>If you do this example using plyr&#8217;s summerize function, you can avoid typing df$ so many times and you also get to name your columns:</p>
<p>&gt; ddply(dd, c(&#8220;dim1&#8243;,&#8221;dim2&#8243;), summarize,<br />
+       v1mean = mean(v1),<br />
+       v2mean = mean(v2),<br />
+       v3mean = mean(v3),<br />
+       v1sd   = sd(v1),<br />
+       v2sd   = sd(v2),<br />
+       v3sd   = sd(v3))<br />
  dim1 dim2   v1mean    v2mean   v3mean    v1sd    v2sd    v3sd<br />
1    A    J  0.04736  0.091364 -0.30501 1.07886 0.96619 1.13664<br />
2    B    J  0.30301  0.227677 -0.24818 1.22907 0.98196 1.29158<br />
3    B    K -0.28136 -0.264688  0.35963 0.77938 0.83391 1.11255<br />
4    C    K -0.24694 -0.163735 -0.24561 0.79591 0.91162 0.83031</p>
]]></content:encoded>
	</item>
</channel>
</rss>
