<?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>PJ. Mostly Harmless</title>
	<atom:link href="http://pj.freefaculty.org/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://pj.freefaculty.org/blog</link>
	<description>Preventing Absent Mindedness One Post at a Time!</description>
	<lastBuildDate>Wed, 16 May 2012 21:28:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Debian recollection: remember when your laptop could not reboot?</title>
		<link>http://pj.freefaculty.org/blog/?p=93</link>
		<comments>http://pj.freefaculty.org/blog/?p=93#comments</comments>
		<pubDate>Wed, 16 May 2012 21:25:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[reboot]]></category>

		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=93</guid>
		<description><![CDATA[Remember that &#8220;I can&#8217;t reboot&#8221; problem has hit all of the Dell laptop on which I&#8217;ve installed Debian Linux 6. The symptom is that the screen froze after initiating a reboot. You might wait forever and it would not change. Its a known problem, I think everybody is pointing at everybody else saying &#8220;you did [...]]]></description>
			<content:encoded><![CDATA[<p>Remember that &#8220;I can&#8217;t reboot&#8221; problem has hit all of the Dell laptop on which I&#8217;ve installed Debian Linux 6. </p>
<p>The symptom is that the screen froze after initiating a reboot.  You might wait forever and it would not change.  Its a known problem, I think everybody is pointing at everybody else saying &#8220;you did not follow the standard correctly.&#8221;</p>
<p>Here is the fix. </p>
<p>The kernel line in the boot thingie has to have the magic word &#8220;noapic&#8221;. </p>
<p>You can do that intereractively every time you start, but it is better to make it automatic. </p>
<p>Here&#8217;s the way I did it.</p>
<p>look in /etc/default.  That&#8217;s a Debian place, similar to RedHat&#8217;s /etc/sysconfig.</p>
<p>THere should be a file &#8220;grub&#8221;.  You only need to change one thing, the 4th line.<br />
I put in &#8220;noapic&#8221;.  I remove the &#8220;quiet&#8221; option because I like to watch the error messages.</p>
<p>After that, you run &#8220;update-grub&#8221;. That has to be done as root (or if you setup &#8220;sudo&#8221;, that way).</p>
<p>Here is my grub file:</p>
<p># If you change this file, run &#8216;update-grub&#8217; afterwards to update<br />
# /boot/grub/grub.cfg.<br />
# For full documentation of the options in this file, see:<br />
#   info -f grub -n &#8216;Simple configuration&#8217;</p>
<p>GRUB_DEFAULT=0<br />
GRUB_TIMEOUT=15<br />
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`<br />
GRUB_CMDLINE_LINUX_DEFAULT=&#8221;noapic&#8221;<br />
GRUB_CMDLINE_LINUX=&#8221;"</p>
<p># Uncomment to enable BadRAM filtering, modify to suit your needs<br />
# This works with Linux (no patch required) and with any kernel that obtains<br />
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD &#8230;)<br />
#GRUB_BADRAM=&#8221;0&#215;01234567,0xfefefefe,0x89abcdef,0xefefefef&#8221;</p>
<p># Uncomment to disable graphical terminal (grub-pc only)<br />
#GRUB_TERMINAL=console</p>
<p># The resolution used on graphical terminal<br />
# note that you can use only modes which your graphic card supports via VBE<br />
# you can see them in real GRUB with the command `vbeinfo&#8217;<br />
#GRUB_GFXMODE=640&#215;480</p>
<p> Uncomment if you don&#8217;t want GRUB to pass &#8220;root=UUID=xxx&#8221; parameter to Linux<br />
#GRUB_DISABLE_LINUX_UUID=true</p>
<p># Uncomment to disable generation of recovery mode menu entries<br />
#GRUB_DISABLE_RECOVERY=&#8221;true&#8221;</p>
<p># Uncomment to get a beep at grub start<br />
#GRUB_INIT_TUNE=&#8221;480 440 1&#8243;</p>
<p>################################################################</p>
<p>Here&#8217;s what update grub looks like on my system. I have several kernels installed, so it cycles thorough each one.</p>
<p>$ su<br />
Password:<br />
root@pjlap-124:/home/pauljohn# update-grub<br />
Generating grub.cfg &#8230;<br />
Found background image: /usr/share/images/desktop-base/desktop-grub.png<br />
Found linux image: /boot/vmlinuz-3.2.0-2-amd64<br />
Found initrd image: /boot/initrd.img-3.2.0-2-amd64<br />
Found linux image: /boot/vmlinuz-3.0.0-1-amd64<br />
Found initrd image: /boot/initrd.img-3.0.0-1-amd64<br />
Found Windows 7 (loader) on /dev/sda2<br />
Found Debian GNU/Linux (6.0.1) on /dev/sda9<br />
done</p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=93</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stable Debian, new R</title>
		<link>http://pj.freefaculty.org/blog/?p=91</link>
		<comments>http://pj.freefaculty.org/blog/?p=91#comments</comments>
		<pubDate>Wed, 16 May 2012 19:15:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=91</guid>
		<description><![CDATA[To get the new R with the Debian stable, here&#8217;s what you do. http://rweb.quant.ku.edu/cran/bin/linux/debian/ In your system&#8217;s directory for addon repositories, /etc/apt/sources.list.d, you create a file with a name &#8220;R.list&#8221; (must be &#8220;list&#8221; on the end&#8221; and in there you put this instruction. deb http:///bin/linux/debian squeeze-cran/ I suggest replace with &#8220;rweb.quant.ku.edu/cran&#8221; then as root (type [...]]]></description>
			<content:encoded><![CDATA[<p>To get the new R with the Debian stable, here&#8217;s what you do.</p>
<p>http://rweb.quant.ku.edu/cran/bin/linux/debian/</p>
<p>In your system&#8217;s directory for addon repositories, /etc/apt/sources.list.d, you create a file with a name &#8220;R.list&#8221; (must be &#8220;list&#8221; on the end&#8221; and in there you put this instruction.</p>
<p>deb http://<favorite -cran-mirror>/bin/linux/debian squeeze-cran/</p>
<p>I suggest replace </favorite><favorite -cran-mirror> with &#8220;rweb.quant.ku.edu/cran&#8221;</p>
<p>then as root (type &#8220;su -&#8221; in terminal)</p>
<p>$ apt-get update</p>
<p>$ apt-get install r-base r-base-dev</p>
<p>This will come back with some hassle about installing insecure packages because we have not &#8220;bothered&#8221; with getting the security key for that apt package maintainer.  The procedure described in the web page under &#8220;Secure Apt&#8221; was bumpy. For me, the gpg was not able to directly import the key, so I had to do:</p>
<p>gpg -a &#8211;export 381BA480 > jranke_cran.asc</p>
<p>apt-key add jranke_cran.asc</p>
<p>After R is installed, be aware of this issue.  The R core team&#8217;s packages are installed under /usr/lib/R/library.  Other packages that have been turned into debian packages will go under /usr/local/lib/R/site-library.  If the non-root user runs install.packages, then the system will invite the user to install them in his home directory, under ~/R/.  SO the R system has a complicated set of paths to survey when it looks for packages, and it is a possibility (danger?) that there may be several installed.  For example, if the Debian packager has made a package that gets installed under /usr/local/lib/R/site-library, and then a user notices that is old, the user can run install.packages and a newer version will get dropped into ~/R.  However, if the system administrator comes along and updates the Debian packages, then the one in the system may be newer.</p>
<p>Also remember, after updating your R packages, consider making 2 steps.</p>
<p>1. Use apt-get (or synaptic) to make sure you are up-to date on other R packages that have been turned into debian packages.</p>
<p>2. Run R as root and do this:</p>
<p>> update.packages(ask=F, checkBuilt=TRUE, dep=TRUE)</p>
<p>That forces re-installation of packages that were built under old R.</favorite></p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=91</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KU&#8217;s digicert SMIME email; my memo</title>
		<link>http://pj.freefaculty.org/blog/?p=89</link>
		<comments>http://pj.freefaculty.org/blog/?p=89#comments</comments>
		<pubDate>Tue, 15 May 2012 17:11:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[email security]]></category>

		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=89</guid>
		<description><![CDATA[Here&#8217;s the gist of it: You can sign up through KU for a Digicert certificate to secure email within KU. There&#8217;s no excuse anymore for sending secure information in email without encryption. Longer explanation For securing email communications, there are 2 leading approaches, PGP and S/MIME. Both of these systems give the user a &#8220;two [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the gist of it: You can sign up through KU for a Digicert certificate to secure email within KU. There&#8217;s no excuse anymore for sending secure information in email without encryption.</p>
<p>Longer explanation</p>
<p>For securing email communications, there are 2 leading approaches, PGP and S/MIME. Both of these systems give the user a<br />
&#8220;two part&#8221; security system.  A private part, that you use to &#8220;decode&#8221; messages, and a public part, that others use to encrypt messages to you and to verify your identity when you send messages to them.  I now have both of them set up in my computer.  Contrary to the KU website, it is not necessary to use Outlook as your mail client and you need not have<br />
Windows or Macintosh to make this work.</p>
<p>PGP is what I use most of the time because its is free and fairly widely used throughout the world.  I&#8217;ve been using<br />
Thunderbird for email for a long time and an addon called &#8220;Enigmail&#8221; works with PGP.  When I want to send email to<br />
people, I go check on a public PGP key server, such as http://pgp.mit.edu.  For WIndows users, there is a free/open<br />
implementation gpg4win and a PGP key manager program called Kleopatra that comes with it.</p>
<p>KU decided to go in a different direction.</p>
<p>The S/MIME system is based on SSL certificates.  One&#8217;s email program can be configured to use either/both PGP and<br />
S/MIME.  Until now, I avoided S/MIME because secure certificates are expensive.  If you buy one for yourself personally,<br />
the price can be substantial.  KU has arranged with the Digicert company to create certificates, however, so for faculty<br />
and staff, it is free to get a certificate pair.</p>
<p>Now that this system exists, and is integrated into the KU Outlook mail server system, it seems to me you have no excuse<br />
for using plain old insecure email when you are communicating about budgets and ID numbers.  Please go here and sign up<br />
for certificates. Lets see if we can make encrypted mail work.</p>
<p>http://www.technology.ku.edu/ca/digicert/index.shtml</p>
<p>What&#8217;s the down side?  KU&#8217;s not paying for the certificates for students, and they certainly don&#8217;t provide the<br />
certificates for people at other institution.  So I still use PGP more often than S/MIME (Digicert), but I need to have<br />
both because KU administrators think that the S/MIME system is preferred.</p>
<p>pj</p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=89</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iwlwifi head&#8217;s up: kernel 3.2 problems</title>
		<link>http://pj.freefaculty.org/blog/?p=85</link>
		<comments>http://pj.freefaculty.org/blog/?p=85#comments</comments>
		<pubDate>Thu, 15 Mar 2012 16:59:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=85</guid>
		<description><![CDATA[I run Debian testing and the kernel upgraded to 3.2 a while ago. I&#8217;ve had the problem that my dell laptop with Centrino wireless card can&#8217;t join wireless networks, Like others, I had mistaken this for a network-manager problem because an upgrade of n-m occurred around the same time. This week I learned that this [...]]]></description>
			<content:encoded><![CDATA[<p>I run Debian testing and the kernel upgraded to 3.2 a while ago.  I&#8217;ve had the problem that my dell laptop with Centrino wireless card can&#8217;t join wireless networks, Like others, I had mistaken this for a network-manager problem because an<br />
upgrade of n-m occurred around the same time.</p>
<p>This week I learned that this is likely do to a change in the wifi driver in the kernel, iwlagn replaced by iwlwifi, and<br />
the rumor is that the last dependable version of the wifi driver is in kernel 3.1.0.<br />
(https://bugzilla.redhat.com/show_bug.cgi?id=785561)</p>
<p>After hearing that issue, I have started booting the 3.1 kernel and the wifi problem has completely disappeared!  I&#8217;ve<br />
seen some posts indicating the problem is known and solved in experimental versions of the 3.2.x kernel, but I have no<br />
actual evidence because I can&#8217;t waste another day fighting with this.</p>
<p>For the details:</p>
<p>This is a Dell Precision laptop M4600.</p>
<p>$ lspci -v<br />
&#8230;.<br />
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)<br />
        Subsystem: Intel Corporation Centrino Ultimate-N 6300 3&#215;3 AGN<br />
        Flags: bus master, fast devsel, latency 0, IRQ 48<br />
        Memory at ded00000 (64-bit, non-prefetchable) [size=8K]<br />
        Capabilities: <access denied><br />
        Kernel driver in use: iwlagn<br />
$ uname -r<br />
3.1.0-1-amd64</p>
<p>You will know if you are experiencing same problem under kernel 3.2.x if you see this in dmesg</p>
<p>[  812.138914] ADDRCONF(NETDEV_UP): wlan0: link is not ready<br />
[  819.918684] wlan0: authenticate with 5c:d9:98:65:64:b0 (try 1)<br />
[  819.920615] wlan0: authenticated<br />
[  820.028658] wlan0: associate with 5c:d9:98:65:64:b0 (try 1)<br />
[  820.031205] wlan0: deauthenticated from 5c:d9:98:65:64:b0 (Reason: 9)<br />
[  848.322384] wlan0: authenticate with 5c:d9:98:65:64:b0 (try 1)<br />
[  848.324254] wlan0: authenticated<br />
[  848.331230] wlan0: failed to insert Dummy STA entry for the AP (error -17)<br />
[  875.755429] wlan0: deauthenticating from 5c:d9:98:65:64:b0 by local choice (reason=2)<br />
[  875.804617] wlan0: authenticate with 5c:d9:98:65:64:b0 (try 1)<br />
[  875.807889] wlan0: authenticated<br />
[  875.808495] wlan0: failed to insert Dummy STA entry for the AP (error -17)</access></p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=85</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R &#8230; dot-dot-dot arguments</title>
		<link>http://pj.freefaculty.org/blog/?p=82</link>
		<comments>http://pj.freefaculty.org/blog/?p=82#comments</comments>
		<pubDate>Mon, 06 Feb 2012 19:51:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=82</guid>
		<description><![CDATA[Working with dot-dot-dot has been a challenge. I would not have understood this post by Gabor Grothenieck in r-help on 2011-10-9, but I do now! And I&#8217;m so happy! &#8221; Suppose we wish to call f with the control.list components plus those in the default.args not already specified in the control.list. If any such arg [...]]]></description>
			<content:encoded><![CDATA[<p>Working with dot-dot-dot has been a challenge.<br />
I would not have understood this post by Gabor Grothenieck in r-help on 2011-10-9, but I do now!  And I&#8217;m so happy!</p>
<p>&#8221;<br />
Suppose we wish to call f with the control.list components plus<br />
those in the default.args not already specified in the control.list.<br />
If any such arg is not an arg of f exclude it:</p>
<p># test data &#8211; f, default.args and control.list<br />
f < - function(a, b, c = 0, d = 1) print(match.call())<br />
default.args <- list(a = 2, b = 1)<br />
control.list <- list(a = 1, d = 2, e = 3)</p>
<p># override default.args with control.list<br />
use.args <- modifyList(default.args, control.list)</p>
<p># exclude components of use.args that are not args of f<br />
sel <- names(use.args) %in% names(as.list(args(f)))<br />
final.args <- use.args[sel]</p>
<p># run f<br />
do.call("f", final.args)</p>
<p>The last line gives:</p>
<p>> do.call(&#8220;f&#8221;, final.args)<br />
f(a = 1, b = 1, d = 2)<br />
&#8221;</p>
<p>Wow. That touches all the bases.  Understand that, you understand &#8220;it&#8221;.</p>
<p>The problem I fought first was the &#8220;double  specification&#8221; of options. The &#8230;  may add arguments that are already set.  The magic bullet for that is the &#8220;modifyList&#8221; function, which can take a default list of settings and selectively replace them with new settings.  Awesome.</p>
<p>Then you have the problem that the dot arguments may not apply to a function in which they are to be called. That&#8217;s where the args function retrieves the legal arguments from a function and then picks the ones that match. Awesome.</p>
<p>I used &#8220;formals&#8221; for same purpose in my code, before I saw Gabor&#8217;s post. </p>
<p>See also</p>
<p>Richie Cotton:</p>
<p>f &lt;- function(x, &#8230;)<br />
{<br />
dots &lt;- list(&#8230;)                   #1<br />
if(length(dots) == 0) return(NULL)<br />
cat(&#8220;The arguments in &#8230; are\n&#8221;)<br />
print(dots)<br />
f(&#8230;)                              #2<br />
}</p>
<p>f(1,2,3,&#8221;a&#8221;, list(&#8220;monkey&#8221;))</p>
<p>The function, f, stores all but the first input argument in the  ellipsis variable. For accessing its contents, it is easiest to convert  it to a list (1). The main use however is for passing arguments to  subfunctions, which requires no conversion (2).</p>
<p>########################</p>
<p>Why sometimes</p>
<p>input_list &lt;- list(&#8230;)</p>
<p>and other times:</p>
<p>object &lt;- as.list(substitute(list(&#8230;)))[-1L]</p>
<p><a href="http://stackoverflow.com/questions/3057341/how-to-use-rs-ellipsis-feature-when-writing-your-own-function">http://stackoverflow.com/questions/3057341/how-to-use-rs-ellipsis-featur&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=82</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 4 will drive you insane. Maybe</title>
		<link>http://pj.freefaculty.org/blog/?p=78</link>
		<comments>http://pj.freefaculty.org/blog/?p=78#comments</comments>
		<pubDate>Wed, 04 May 2011 04:25:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=78</guid>
		<description><![CDATA[FF4 is OK, but they have made some changes I absolutely hate. They hide some menu items, for no particular reason. And they swapped the &#8220;New Window&#8221; and &#8220;New Tab&#8221; items in the right click. People respond &#8220;install the menu-editor addon&#8221; but that&#8217;s a big mistake. It does not work well. My right menu flies [...]]]></description>
			<content:encoded><![CDATA[<p>FF4 is OK, but they have made some changes I absolutely hate.  They hide some menu items, for no particular reason.</p>
<p>And they swapped the &#8220;New Window&#8221; and &#8220;New Tab&#8221; items in the right click.  </p>
<p>People respond &#8220;install the menu-editor addon&#8221; but that&#8217;s a big mistake. It does not work well. My right menu flies off to the side, or strobes randomly, when I have that open. The ME author says he won&#8217;t fix it because it conflicts with too many other programs.</p>
<p>Luckily, there is a more direct fix that does not require an addon.  In the file &#8220;userChrome.css&#8221; insert the following lines. (If file does not exist, create it).</p>
<p>The file is under your user profile: .mozilla/firefox/whatever.default/chrome</p>
<p>$ cat userChrome.css<br />
@namespace url(&#8220;http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul&#8221;); /* only needed once */</p>
<p>/* Always show all hidden menu entries */<br />
#navigator-toolbox menuitem[class="show-only-for-keyboard"] { display:-moz-box !important; }</p>
<p>#contentAreaContextMenu > * { -moz-box-ordinal-group: 2; }<br />
#context-openlink { -moz-box-ordinal-group: 1 !important; }</p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=78</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create RPMs for yourself</title>
		<link>http://pj.freefaculty.org/blog/?p=73</link>
		<comments>http://pj.freefaculty.org/blog/?p=73#comments</comments>
		<pubDate>Mon, 07 Mar 2011 16:08:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[rpmbuild]]></category>

		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=73</guid>
		<description><![CDATA[create ~/.rpmmacros: [pauljohn@pols12 ~]$ cat .rpmmacros %_topdir /home/pauljohn/LinuxDownloads/redhat %_signature gpg %_gpg_name Paul Johnson %_unpackaged_files_terminate_build 0 2. Make the directory mkdir -p ~/LinuxDownloads/redhat 3. Install rpmbuild program $ yum install rpm-build 4. Download the SRPM file of something you want to build. I used firefox to browse, found something on epel, then downloaded from cli: $ [...]]]></description>
			<content:encoded><![CDATA[<p>create </p>
<p>~/.rpmmacros:</p>
<p>[pauljohn@pols12 ~]$ cat .rpmmacros<br />
%_topdir  /home/pauljohn/LinuxDownloads/redhat</p>
<p>%_signature  gpg<br />
%_gpg_name Paul Johnson</p>
<p>%_unpackaged_files_terminate_build 0</p>
<p>2. Make the directory</p>
<p>mkdir -p ~/LinuxDownloads/redhat</p>
<p>3. Install rpmbuild program</p>
<p>$ yum install rpm-build</p>
<p>4. Download the SRPM file of something you want to build. I used firefox to browse,<br />
found something on epel, then downloaded from cli:</p>
<p>$ wget http://download.fedora.redhat.com/pub/epel/6/SRPMS/R-2.12.1-1.el6.src.rpm</p>
<p>5. Install that src.rpm. Unlike other RPM installs, this IS NOT run as root, and it will drop the files into the topdir defined above in .rpmmacros.</p>
<p>$ rpm -ivh R-2.12.1-1.el6.src.rpm</p>
<p>Warnings will say &#8220;user mockbuild does not exist&#8221;. Just ignore it.</p>
<p>6. Note that creates the directories SPECS and SOURCES under LinuxDownloads/redhat.</p>
<p>Create the others you will need in there</p>
<p>$ mkdir BUILD<br />
$ mkdir RPMS<br />
$ mkdir SRPMS</p>
<p>6. cd to LinuxDownloads/redhat/SPECS.</p>
<p>Read the &#8220;spec&#8221; file, it controls how the build works.  When I have<br />
trouble compiling programs, I almost always download an SRPM file<br />
from that project and study how the packager built it.</p>
<p>If you just want to rebuild R as Tom had done it for EPEL, go ahead.</p>
<p>$ rpmbuild -ba R.spec</p>
<p>If you don&#8217;t want to build everything, well, then don&#8217;t. </p>
<p>Read the rpmbuild manual page.</p>
<p>$ rpmbuild -bp R.spec</p>
<p>Or </p>
<p>$ rpmbuild -bb R.spec</p>
<p>7. The usual scenario is that I study the spec file, then<br />
figure out what changes I want to make.  </p>
<p>Now my purpose is to make an RPM for R-2.12.2, which I&#8217;m sure<br />
EPEL will offer on its own, but I&#8217;m eager.</p>
<p>So I get the source code for that version of R, put it in the<br />
LinuxDownloads/redhat/SOURCES folder. Hopefully, that follows<br />
the same naming convention as the previous R packaging. If<br />
it doesn&#8217;t, there will be more work to do.</p>
<p>Then go back to spec file, and change the VERSION number so<br />
it matches the new R source just downloaded.</p>
<p>If everything is &#8220;just right&#8221;, then the new rpm can be built<br />
without further trouble.  Usually, things don&#8217;t go just<br />
right. Perhaps the packaging for the previous version<br />
applied a patch that is no longer needed (or has already<br />
been applied in R itself), so you have to remove that from the<br />
spec file. </p>
<p>Or you want to change the build options in the spec.</p>
<p>There is some controversy about how R ought to be built, and<br />
you see the results in the difference of Debian and Epel packaging<br />
of R. Look at the configure statements, you&#8217;ll see what I mean.</p>
<p>Posted from <a href="http://sourceforge.net/projects/gscribble/">GScribble</a>.</p>
<p>Posted from <a href="http://sourceforge.net/projects/gscribble/">GScribble</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=73</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mplus File transfer utility</title>
		<link>http://pj.freefaculty.org/blog/?p=70</link>
		<comments>http://pj.freefaculty.org/blog/?p=70#comments</comments>
		<pubDate>Thu, 03 Feb 2011 18:53:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Stats]]></category>

		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=70</guid>
		<description><![CDATA[Don&#8217;t Forget to try: N2Mplus Can convert Excel and SPSS -> Mplus. http://www.danielsoper.com/n2mplus/default.aspx]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t Forget to try:</p>
<p>N2Mplus</p>
<p>Can convert Excel and SPSS -> Mplus.</p>
<p>http://www.danielsoper.com/n2mplus/default.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=70</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple Imputation: SEM &amp; diagnostics</title>
		<link>http://pj.freefaculty.org/blog/?p=68</link>
		<comments>http://pj.freefaculty.org/blog/?p=68#comments</comments>
		<pubDate>Thu, 03 Feb 2011 18:52:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=68</guid>
		<description><![CDATA[Here: http://www.statmodel.com/discussion/messages/22/381.html I found this: Bruce A. Cooper posted on Monday, March 19, 2007 &#8211; 5:59 pm Thanks, Linda - Here are some references that you may find useful. I haven&#8217;t gotten the Statistics in Medicine reference yet, but Don Rubin referred to it and two others in the &#8220;IMPUTE&#8221; thread &#8220;IMPUTE: Re: &#8220;Averaging&#8221; chi-square [...]]]></description>
			<content:encoded><![CDATA[<p>Here:</p>
<p>http://www.statmodel.com/discussion/messages/22/381.html</p>
<p>I found this:</p>
<p> Bruce A. Cooper posted on Monday, March 19, 2007 &#8211; 5:59 pm<br />
Thanks, Linda -</p>
<p>Here are some references that you may find useful.</p>
<p>I haven&#8217;t gotten the Statistics in Medicine reference yet, but Don Rubin referred to it and two others in the &#8220;IMPUTE&#8221; thread &#8220;IMPUTE: Re: &#8220;Averaging&#8221; chi-square values (fwd)&#8221; as providing information about averaging Chi-squared values from SEM models on imputed data sets. There are some other notes in the IMPUTE threads re averaging R-squared values, but you already report R-squared for the imputation analysis. It would be nice to have the DF for the t-tests and the and an option for testing the Deviance, too!</p>
<p>Thread: http://www.mail-archive.com/impute@utdallas.edu/msg00158.html</p>
<p>References:<br />
Li, K. H., Raghunathan, T. E., &#038; Rubin, D. B. (1991). Large-sample significance levels from multiply imputed data using moment-based statistics and an F-reference distribution. Journal of the American Statistical Association, 86(416), 1065-1073.</p>
<p>Rubin, D. B., &#038; Meng, X. L. (1992). Performing likelihood ratio tests with multiply-imputed data sets. Biometrika, 79(1), 103-111.</p>
<p>Rubin, D. B., &#038; Schenker, N. (1991). Multiple imputation in health-care databases: an overview and some applications. Stat Med, 10(4), 585-598. (PMID: 2057657)</p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=68</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion and my course notes/hanouts</title>
		<link>http://pj.freefaculty.org/blog/?p=66</link>
		<comments>http://pj.freefaculty.org/blog/?p=66#comments</comments>
		<pubDate>Wed, 26 Jan 2011 20:43:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Stats]]></category>
		<category><![CDATA[Teaching]]></category>

		<guid isPermaLink="false">http://pj.freefaculty.org/blog/?p=66</guid>
		<description><![CDATA[I&#8217;ve started an SVN archive where I&#8217;m going to be putting my source code for handouts and lectures, so if you want the LyX or R files for that stuff, you can have it. But you need to sign up for a CRMDA computing account (free) and then read my writeup on how to use [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started an SVN archive where I&#8217;m going to be putting my source code for handouts and lectures, so if you want the<br />
LyX or R files for that stuff, you can have it.  But you need to sign up for a CRMDA computing account (free) and then<br />
read my writeup on how to use an SVN version control system.</p>
<p>All the information on signing up and accessing these systems is on the CRMDA computing focal point:</p>
<p>http://pj.freefaculty.org/cgi-bin/mw</p>
<p>and the SVN manual I wrote is here:</p>
<p>http://pj.freefaculty.org/cgi-bin/mw/index.php?title=Software:VersionControlWithSVN</p>
<p>Read down to point 8, &#8220;I&#8217;m Shooting with Real Bullets Now&#8221;, and you see I&#8217;ve created my repository under</p>
<p>/crmda/users/pauljohn/SVN-repo</p>
<p>If you create an account, you should have read access to those files. I&#8217;m just starting now, but the beauty of SVN is<br />
you can easily get the updated copy or scan for changes.</p>
<p>I try to remember to print out pdf versions and drop them back into the stat website. For example, my handouts on<br />
logistic regression were pretty good, but not totally awesome.  Last week I turned up the dial to 9 for a couple of days<br />
and made a couple of things that I expect will really help. In particular, if you are considering using ordinal logistic<br />
regression, you will benefit from a review of the documents.  The meaning of the elusive terms &#8220;intercept&#8221; and<br />
&#8220;threshold&#8221; is laid bare; the puzzle that different programs report different numbers is solved.  In the web page, they<br />
are now under stat at</p>
<p>http://pj.freefaculty.org/stat/LogisticRegression/Logit1-1_2011.pdf</p>
<p>http://pj.freefaculty.org/stat/LogisticRegression/Ordinal-1.pdf</p>
<p>But in the SVN-repo, you find those as LyX (?LaTeX?) documents and fig files, which you could open, edit, print, etc.<br />
Assuming your computer is adequate, that is. These particular documents are Sweaved and will require the xfig program,<br />
so they won&#8217;t compile on just any old PC. But many of the ones I will upload soon will be plain vanilla LyX files that<br />
you can open, edit, compile, and print however you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://pj.freefaculty.org/blog/?feed=rss2&#038;p=66</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

