<?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 etc.</title>
	<atom:link href="http://promberger.info/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://promberger.info/linux</link>
	<description>my outsourced memory for your perusal</description>
	<lastBuildDate>Thu, 08 Sep 2011 11:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Emacs 22 does not highlight region</title>
		<link>http://promberger.info/linux/2011/09/08/emacs-22-does-not-highlight-region/</link>
		<comments>http://promberger.info/linux/2011/09/08/emacs-22-does-not-highlight-region/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 11:06:06 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=395</guid>
		<description><![CDATA[Well, I doubt many people have this problem. For some reason, on a server I use the installed Emacs version is Emacs&#160;22, not the current Emacs&#160;23, and I ran into the problem that I was expecting transient-mark-mode when it was in persistent-mark-mode, as I figured out here. However, it&#8217;s the kind of solution you don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I doubt many people have this problem. For some reason, on a server I use the installed Emacs version is Emacs&nbsp;22, not the current Emacs&nbsp;23, and I ran into the problem that I was expecting <code>transient-mark-mode</code> when it was in <code>persistent-mark-mode</code>, as I figured out <a href="http://www.gnu.org/s/libtool/manual/emacs/Mark.html">here</a>. However, it&#8217;s the kind of solution you don&#8217;t easily find when you don&#8217;t know Emacs terminology (mark, point, region, active), so an attempt to make this more googleable especially for Emacs newbies:</p>
<p>The symptom was that in an Emacs buffer, after hitting Ctrl and the spacebar (<code>C-space</code>) and then moving the cursor, I was expecting the text in between (between mark and point) to be highlighted (indicating an active region), but the region was not highlighted and not active. Accordingly, then doing a <code>replace-string</code> and expecting it to replace text in the region that is &#8220;normally&#8221; (in Emacs&nbsp;23) highlighted did not replace anything. (I was, however, able to cut and paste (kill and yank) the same region. In Emacs-speak, the region was not active. Another symptom: after <code>M-x replace-string</code> where I normally see &#8220;Replace string in region&#8221; in the minibuffer, it now only said &#8220;Replace string&#8221;. </p>
<p>The solution:</p>
<pre>M-x transient-mark-mode</pre>
<p>to enable transient-mark-mode and get the expected behaviour (this command toggles it on and off). </p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2011/09/08/emacs-22-does-not-highlight-region/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to connect to kclad (the KCL Active Directory domain)</title>
		<link>http://promberger.info/linux/2011/08/30/how-to-connect-to-kclad-the-kcl-active-directory-domain/</link>
		<comments>http://promberger.info/linux/2011/08/30/how-to-connect-to-kclad-the-kcl-active-directory-domain/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 10:40:23 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=386</guid>
		<description><![CDATA[I followed these instructions (I did not get any errors). sudo aptitude install likewise-open5 Connect: sudo domainjoin-cli join kclad.ds.kcl.ac.uk LOGIN Reboot. Add the line winbind use default domain = yes to the file /etc/samba/lwiauthd.conf Reboot. Check if you are connected: sudo domainjoin-cli query I now seem to be connected whenever I am on the KCL [...]]]></description>
			<content:encoded><![CDATA[<p>I followed <a href="http://www.petenetlive.com/KB/Article/0000384.htm">these instructions</a> (I did not get any errors).</p>
<pre>sudo aptitude install likewise-open5</pre>
<p>Connect:</p>
<pre>sudo domainjoin-cli join kclad.ds.kcl.ac.uk LOGIN</pre>
<p>Reboot.<br />
Add the line <code>winbind use default domain = yes</code> to the file <code>/etc/samba/lwiauthd.conf</code><br />
Reboot.<br />
Check if you are connected:</p>
<pre>sudo domainjoin-cli query</pre>
<p>I now seem to be connected whenever I am on the KCL network.<br />
Leave:</p>
<pre>sudo domainjoin-cli leave</pre>
<p>(I don&#8217;t explicitly leave. It disconnects when I disconnect from the network.)</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2011/08/30/how-to-connect-to-kclad-the-kcl-active-directory-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find more network printers from the Ubuntu command line</title>
		<link>http://promberger.info/linux/2011/08/19/find-more-network-printers-from-the-ubuntu-command-line/</link>
		<comments>http://promberger.info/linux/2011/08/19/find-more-network-printers-from-the-ubuntu-command-line/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 14:21:54 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=383</guid>
		<description><![CDATA[Some of the network printers at work do not show up when I try to find them via the Ubuntu GUI System -> Administration -> Printing but I can find them via the command hp-probe. Here at work the list returned by hp-probe is long and I know the names I&#8217;m looking for start with [...]]]></description>
			<content:encoded><![CDATA[<p>Some of the network printers at work do not show up when I try to find them via the Ubuntu GUI System -> Administration -> Printing but I can find them via the command <code>hp-probe</code>.  Here at work the list returned by hp-probe is long and I know the names I&#8217;m looking for start with &#8220;printer0&#8243; so I do</p>
<pre>hp-probe -bnet | grep printer0</pre>
<p>This returns lines that contain a URI like this</p>
<pre>hp:/net/HP_LaserJet_P3005?ip=159.92.99.39</pre>
<p>Copy that and go back to the GUI where you paste it under &#8220;Enter device URI&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2011/08/19/find-more-network-printers-from-the-ubuntu-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ggplot2 error &#8220;invalid argument to unary operator&#8221;</title>
		<link>http://promberger.info/linux/2011/08/08/ggplot2-error-invalid-argument-to-unary-operator/</link>
		<comments>http://promberger.info/linux/2011/08/08/ggplot2-error-invalid-argument-to-unary-operator/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 14:24:05 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=377</guid>
		<description><![CDATA[I had a longish ggplot command and kept getting the error: invalid argument to unary operator It happened when I was specifying custom labels with scale_y_continuous but it turns out this was irrelevant and it hinged on a line break. It turnsout (at least when stepping through the code with ESS in Emacs using C-c [...]]]></description>
			<content:encoded><![CDATA[<p>I had a longish ggplot command and kept getting the error:</p>
<pre>invalid argument to unary operator</pre>
<p>It happened when I was specifying custom labels with <code>scale_y_continuous</code> but it turns out  this was irrelevant and it hinged on a line break. It turnsout (at least when stepping through the code with ESS in Emacs using <code>C-c C-c</code>, bound to <code>ess-eval-function-or-paragraph-and-step</code>, you need to have the <code>+</code> of tying different ggplot bits together on the end of the preceding line.</p>
<p>This won&#8217;t work:</p>
<pre>ggplot(longdata, aes(x=x, y = y))
+ geom_jitter(alpha = 0.6)
</pre>
<p>This will:</p>
<pre>
ggplot(longdata, aes(x=x, y = y)) +
geom_jitter(alpha = 0.6)
</pre>
<p>(Or, put it all on one line).</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2011/08/08/ggplot2-error-invalid-argument-to-unary-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flexSURVEY</title>
		<link>http://promberger.info/linux/2010/12/14/flexsurvey/</link>
		<comments>http://promberger.info/linux/2010/12/14/flexsurvey/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 19:15:22 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=368</guid>
		<description><![CDATA[I came across flexSURVEY, which looks similar in idea to my Template&#160;2.0 for web experiments, except flexSURVEY uses PHP (Template 2.0 is pure JavaScript up to the point of data submission at the end). I haven&#8217;t tried it, but it looks like it could be a nice way to do some speedy PHP-based questionnaires.]]></description>
			<content:encoded><![CDATA[<p>I came across <a href="http://flexsurvey.de">flexSURVEY</a>, which looks similar in idea to my <a href="http://promberger.info/template-2.0">Template&nbsp;2.0 for web experiments</a>, except flexSURVEY uses PHP (Template 2.0 is pure JavaScript up to the point of data submission at the end). </p>
<p>I haven&#8217;t tried it, but it looks like it could be a nice way to do some speedy PHP-based questionnaires.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2010/12/14/flexsurvey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use sed to remove the first column in a comma separated file (csv)</title>
		<link>http://promberger.info/linux/2010/08/02/use-sed-to-remove-the-first-column-in-a-comma-separated-file-csv/</link>
		<comments>http://promberger.info/linux/2010/08/02/use-sed-to-remove-the-first-column-in-a-comma-separated-file-csv/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 11:32:41 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Regular expressions]]></category>
		<category><![CDATA[Sed]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=357</guid>
		<description><![CDATA[Here&#8217;s how: sed -i 's/[^,]*,//' file.csv Note the [^,]* bit, which matches everything that is not a comma. Don&#8217;t use .*, because this will greedily match commas, too. (Usually, cut is useful for these sort of things, but cut cannot readily replace the file in place.)]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how:</p>
<pre>sed -i 's/[^,]*,//' file.csv</pre>
<p>Note the <code>[^,]*</code> bit, which matches everything that is not a comma. Don&#8217;t use <code>.*</code>, because this will greedily match commas, too. (Usually, <code>cut</code> is useful for these sort of things, but cut cannot readily replace the file in place.)</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2010/08/02/use-sed-to-remove-the-first-column-in-a-comma-separated-file-csv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get Emacs key bindings in Ubuntu</title>
		<link>http://promberger.info/linux/2010/02/16/how-to-get-emacs-key-bindings-in-ubuntu/</link>
		<comments>http://promberger.info/linux/2010/02/16/how-to-get-emacs-key-bindings-in-ubuntu/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 12:59:45 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[misc.]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=353</guid>
		<description><![CDATA[To get the Emacs key bindings (especially, Ctrl-a to go to beginning of line, Ctrl-e to end of line) systemwide, e.g. in Firefox, you use: gconf-editor and change the setting desktop &#8594; gnome &#8594; interface &#8594; gtk_key_theme from &#8220;Default&#8221; to &#8220;Emacs&#8221;.]]></description>
			<content:encoded><![CDATA[<p>To get the Emacs key bindings (especially, Ctrl-a to go to beginning of line, Ctrl-e to end of line) systemwide, e.g. in Firefox, you use:</p>
<pre>gconf-editor</pre>
<p>and change the setting desktop &rarr; gnome &rarr; interface &rarr; gtk_key_theme from &#8220;Default&#8221; to &#8220;Emacs&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2010/02/16/how-to-get-emacs-key-bindings-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How not to ask a question on R-help</title>
		<link>http://promberger.info/linux/2010/02/12/how-not-to-ask-a-question-on-r-help/</link>
		<comments>http://promberger.info/linux/2010/02/12/how-not-to-ask-a-question-on-r-help/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 12:03:20 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Noobs]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=349</guid>
		<description><![CDATA[One great way to get help with R is by asking a question on the r-help mailing list. More often than not I have actually figured out the answer simply by typing up the question, because that made me think more clearly about what the problem really was. The people on the list are exceedingly [...]]]></description>
			<content:encoded><![CDATA[<p>One great way to get help with R is by asking a question on the r-help mailing list. More often than not I have actually figured out the answer simply by typing up the question, because that made me think more clearly about what the problem really was. The people on the list are exceedingly helpful. Not all of the posters are. I&#8217;ll now start collecting some fun examples of threads which might be called &#8220;How not to ask a quesiton on R-help&#8221;. Here is <a href="http://tolstoy.newcastle.edu.au/R/e9/help/10/02/4677.html">the first one</a>. Nice quote from Greg Snow:</p>
<blockquote><p>
If you show us your data/code/output as has been requested, then we may be able to tell which it is. Without that information you are expecting either R or the members of the list to read your mind.  I keep making notes to my future self to use the timetravel package (not written yet, that&#8217;s why I need my future self to use it) to send a copy of the esp package (also not written yet) back in time to me so I can use it for situations like this.  But so far that has not worked (maybe my future self is even more lazy than my present self, or my near future self does something to offend my far future self enough that he is unwilling to do this small favor for my current past self, darn, either way means I should probably do better on the diet/exercise).
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2010/02/12/how-not-to-ask-a-question-on-r-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R: loops vs apply (vectorization)</title>
		<link>http://promberger.info/linux/2010/02/10/r-loops-vs-apply-vectorization/</link>
		<comments>http://promberger.info/linux/2010/02/10/r-loops-vs-apply-vectorization/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 14:08:03 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=346</guid>
		<description><![CDATA[A helpful article in by Uwe Ligges and John Fox in R news 2008(1), pp 46-50, about loops vs. apply was just pointed out on R-help. I&#8217;ve uploaded it here (pdf).]]></description>
			<content:encoded><![CDATA[<p>A helpful article in by Uwe Ligges and John Fox in R news 2008(1), pp 46-50, about loops vs. apply was just pointed out on R-help. I&#8217;ve uploaded it <a href="http://promberger.info/files/rnews-vectorvsloops2008.pdf">here (pdf)</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2010/02/10/r-loops-vs-apply-vectorization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My first RMySQL session</title>
		<link>http://promberger.info/linux/2010/01/21/my-first-rmysql-session/</link>
		<comments>http://promberger.info/linux/2010/01/21/my-first-rmysql-session/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 14:01:48 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=332</guid>
		<description><![CDATA[# 'fai1' is an empty MySQL database for which 'mpromber' has all privileges mycon]]></description>
			<content:encoded><![CDATA[<pre># 'fai1' is an empty MySQL database for which 'mpromber' has all privileges
mycon <- dbConnect(MySQL(),user='mpromber',dbname='fai1') # pass seems to be read from ~/.my.cnf
# dsub is a data frame:
dbWriteTable(mycon,"dsub",dsub) # create table "dsub"
dbDisconnect(mycon) # close connection
</pre>
<p>Time for lunch.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2010/01/21/my-first-rmysql-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

