<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-174976654231615795</id><updated>2012-01-06T08:54:44.310-08:00</updated><title type='text'>man ubuntu</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://manubuntu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://manubuntu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Adam Sadovsky</name><uri>http://www.blogger.com/profile/08051911525506067961</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-174976654231615795.post-7028694238685683893</id><published>2010-09-11T12:56:00.001-07:00</published><updated>2010-09-11T13:23:29.545-07:00</updated><title type='text'>Emacs tab indents and Python</title><content type='html'>Okay, so this isn't about Ubuntu, but whatever.&lt;br /&gt;&lt;br /&gt;Best resource I've found:&lt;br /&gt;&lt;a href="http://www.dansanderson.com/blog/2007/07/indenting-source-code-in-emacs.html"&gt;http://www.dansanderson.com/blog/2007/07/indenting-source-code-in-emacs.html&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Also interesting:&lt;br /&gt;&lt;a href="http://www.jwz.org/doc/tabs-vs-spaces.html"&gt;http://www.jwz.org/doc/tabs-vs-spaces.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;However, neither of these work for getting Python to auto-indent 2 spaces in Emacs (for Mac). In particular, (setq-default py-indent-offset 2) appears to do nothing.&lt;br /&gt;&lt;br /&gt;To fix that, I had to dig around python.el:&lt;br /&gt;1. C-h f python-mode&lt;br /&gt;2. Click python.el&lt;br /&gt;3. Search around for "indent"&lt;br /&gt;4. Aha! There are python-indent and python-guess-indent variables (s/aha/wtf/)&lt;br /&gt;5. Add (setq-default python-indent 2) and (setq-default python-guess-indent nil) to ~/.emacs&lt;br /&gt;6. Re-open the Python script in question&lt;br /&gt;&lt;br /&gt;Problem solved! (I can't say I completely understand why, since this seems at odds with the comments in python.el and elsewhere, but whatever.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/174976654231615795-7028694238685683893?l=manubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manubuntu.blogspot.com/feeds/7028694238685683893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manubuntu.blogspot.com/2010/09/emacs-tab-indents.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/7028694238685683893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/7028694238685683893'/><link rel='alternate' type='text/html' href='http://manubuntu.blogspot.com/2010/09/emacs-tab-indents.html' title='Emacs tab indents and Python'/><author><name>Adam Sadovsky</name><uri>http://www.blogger.com/profile/08051911525506067961</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-174976654231615795.post-7645226554506693256</id><published>2009-03-21T01:26:00.001-07:00</published><updated>2009-04-01T23:17:37.389-07:00</updated><title type='text'>Reset sound</title><content type='html'>Sound stops working every so often. Here's a fix that appears to work:&lt;br /&gt;1. sudo lsof | grep pcm&lt;br /&gt;2. Kill the listed processes (they're currently using audio).&lt;br /&gt;3. sudo /etc/init.d/alsa-utils restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/174976654231615795-7645226554506693256?l=manubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manubuntu.blogspot.com/feeds/7645226554506693256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manubuntu.blogspot.com/2009/03/reset-sound.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/7645226554506693256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/7645226554506693256'/><link rel='alternate' type='text/html' href='http://manubuntu.blogspot.com/2009/03/reset-sound.html' title='Reset sound'/><author><name>Adam Sadovsky</name><uri>http://www.blogger.com/profile/08051911525506067961</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-174976654231615795.post-5714116456050400182</id><published>2009-02-18T22:57:00.001-08:00</published><updated>2009-02-18T23:04:31.299-08:00</updated><title type='text'>Copying from a remote server securely</title><content type='html'>Use the 'scp' command. For example:&lt;br /&gt;scp sadovsky@xenon.stanford.edu:/afs/cs.stanford.edu/u/sadovsky/adam.txt ~/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/174976654231615795-5714116456050400182?l=manubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manubuntu.blogspot.com/feeds/5714116456050400182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manubuntu.blogspot.com/2009/02/copying-from-remote-server-securely.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/5714116456050400182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/5714116456050400182'/><link rel='alternate' type='text/html' href='http://manubuntu.blogspot.com/2009/02/copying-from-remote-server-securely.html' title='Copying from a remote server securely'/><author><name>Adam Sadovsky</name><uri>http://www.blogger.com/profile/08051911525506067961</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-174976654231615795.post-6018504054247445977</id><published>2009-02-08T18:10:00.001-08:00</published><updated>2011-05-17T01:50:51.658-07:00</updated><title type='text'>Installing R</title><content type='html'>Today I installed R. It was pretty straightforward. Basic steps:&lt;br /&gt;&lt;br /&gt;1. Go to &lt;a href="http://www.r-project.org/"&gt;http://www.r-project.org/&lt;/a&gt; and read what to do&lt;br /&gt;2. Add an entry to /etc/apt/sources.list such as:&lt;br /&gt;deb http://cran.stat.ucla.edu/bin/linux/ubuntu intrepid/&lt;br /&gt;3. Fetch the appropriate key (otherwise 'sudo apt-get update' fails):&lt;br /&gt;gpg --keyserver subkeys.pgp.net --recv-key E2A11821&lt;br /&gt;gpg -a --export E2A11821 | sudo apt-key add -&lt;br /&gt;4. sudo apt-get update&lt;br /&gt;5. sudo apt-get install r-base&lt;br /&gt;&lt;br /&gt;That's it! To run R, simply type 'R' from the command line. &lt;br /&gt;&lt;br /&gt;See here for more information:&lt;br /&gt;&lt;a href="http://cran.r-project.org/doc/manuals/R-intro.pdf"&gt;http://cran.r-project.org/doc/manuals/R-intro.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Update (2011-05-17): It appears the gpg key changes over time. Check installation instructions for latest key.&lt;br /&gt;&lt;a href="http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu/"&gt;http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/174976654231615795-6018504054247445977?l=manubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manubuntu.blogspot.com/feeds/6018504054247445977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manubuntu.blogspot.com/2009/02/installing-r.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/6018504054247445977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/6018504054247445977'/><link rel='alternate' type='text/html' href='http://manubuntu.blogspot.com/2009/02/installing-r.html' title='Installing R'/><author><name>Adam Sadovsky</name><uri>http://www.blogger.com/profile/08051911525506067961</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-174976654231615795.post-8969695696185959712</id><published>2009-01-19T14:48:00.000-08:00</published><updated>2011-05-17T01:52:01.528-07:00</updated><title type='text'>Intro</title><content type='html'>I just bought components for a new desktop and plan to run Ubuntu (current version is 8.10 Intrepid Ibex). I will use this blog to keep track of problems, solutions, tips, and tricks I pick up along the way. &lt;br /&gt;&lt;br /&gt;For starters, here's my system configuration:&lt;br /&gt;2 Western Digital Caviar SE16 WD7500AAKS 750GB 7200 RPM SATA 3.0Gb/s Hard Drive - OEM&lt;br /&gt;1 LG 22X DVD±R DVD Burner Black SATA Model GH22NS30 - OEM&lt;br /&gt;1 OCZ Platinum 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500) Dual Channel Kit Desktop Memory Model OCZ2P10664GK - Retail&lt;br /&gt;2 Nippon Labs 18" (1.5 ft.) SATA II Cable with locking latch Model SATA-L0.5-R - Retail&lt;br /&gt;1 Antec Sonata III 500 Black 0.8mm cold rolled steel ATX Mid Tower Computer Case 500W Power Supply - Retail&lt;br /&gt;1 ASUS P5KPL-AM/PS LGA 775 Intel G31 Micro ATX Intel Motherboard - Retail&lt;br /&gt;1 Intel Core 2 Quad Q8200 2.33GHz LGA 775 95W Quad-Core Processor Model BX80580Q8200 - Retail&lt;br /&gt;1 EVGA 256-P2-N751-TR GeForce 8600 GT 256MB 128-bit GDDR3 PCI Express x16 SLI Supported Video Card - Retail&lt;br /&gt;&lt;br /&gt;Total cost from NewEgg after rebates was around $640. Plus, they threw in a free...&lt;br /&gt;1 Intel Gift - Leap Ahead rubber bracelet - OEM&lt;br /&gt;&lt;br /&gt;Onwards and upwards!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/174976654231615795-8969695696185959712?l=manubuntu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manubuntu.blogspot.com/feeds/8969695696185959712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manubuntu.blogspot.com/2009/01/intro.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/8969695696185959712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/174976654231615795/posts/default/8969695696185959712'/><link rel='alternate' type='text/html' href='http://manubuntu.blogspot.com/2009/01/intro.html' title='Intro'/><author><name>Adam Sadovsky</name><uri>http://www.blogger.com/profile/08051911525506067961</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
