Chez G blogs http://groupedia.com/blog en ACM SigPlan style with latex on ubuntu http://groupedia.com/content/acm-sigplan-style-latex-ubuntu <p>These are just some notes on how I got the <span class="caps">ACM</span> sigplan class style working with LyX under Ubuntu.</p> <ul> <li>Install class file <ul> <li><a href="http://www.sigplan.org/sigplanconf.cls">Download class file</a></li> <li>Save in /usr/local/share/texmf/tex/latex/sigplanconf.cls (must be root)</li> <li>Tell latex it&#8217;s there: sudo texhash</li> </ul></li> <li>Reconfigure LyX <ul> <li>In Lyx, Tools-&gt;Reconfigure. Then restart LyX.</li> </ul></li> <li>Open <a href="http://groupedia.com/files/acm-sigplan-template.lyx">this LyX template</a></li> </ul> <p>Strangely, after doing this (probably the texhash), my paper size changed to A4 from letter. To fix this: <ul> <li>su, then echo &#8220;letter&#8221; &gt; /etc/papersize</li> <li>sudo texconfig-sys and set paper size</li> </ul></p> <p>Then, as is usual and baffling for me and Latex, the papers generated from LyX came out as A4 for a while, then went back to letter. I&#8217;m not sure if LyX is caching something somewhere, but that&#8217;s my guess.</p> http://groupedia.com/content/acm-sigplan-style-latex-ubuntu#comments Thu, 25 Mar 2010 16:56:23 +0000 George 153 at http://groupedia.com How to bypass voicemail prompts http://groupedia.com/content/how-bypass-voicemail-prompts <p><a href="http://pogue.blogs.nytimes.com/2010/02/18/will-carriers-offer-a-better-way-to-get-voicemail/?hp">David Pogue of the <span class="caps">NYT</span></a> has been tirelessly bugging cell phone companies to reduce the irritating messages that you must listen to before you can leave your friend a voicemail. Today, he posted some interesting instructions:</p> <blockquote>And I’ll admire you if you’ll re-record your own voice mail greeting so that it includes instructions for bypassing the carrier’s own recording: “Hi, it’s David. To jump to the beep, press 1.” (It’s 1 for Sprint or AT&amp;T, * for Verizon, # for T-Mobile.</blockquote> <p>So let&#8217;s all change our voicemail greetings to tell people how to shortcut the blather.</p> http://groupedia.com/content/how-bypass-voicemail-prompts#comments Thu, 18 Feb 2010 19:56:20 +0000 George 152 at http://groupedia.com New recipes posted http://groupedia.com/content/new-recipes-posted <p>Theresa had a &#8220;cooking club&#8221; meeting at my house last week. She showed us how to eat <a href="http://groupedia.com/content/polish-borscht">Polish Borscht</a> (I say that because she prepared it that day before). And she showed us how to cook <a href="http://groupedia.com/content/go%25C5%2582%25C4%2585bki-recipe-stuffed-cabbage-galumbkee">Gołąbki</a>. Both were delicious.</p> <p>I&#8217;ve also posted one of my favorite The Pump Energy Food recipes, the <a href="http://groupedia.com/content/dionysus-plate">Dionysus Plate</a>. It&#8217;s light, fresh, and full of protein for you muscularnes out there.</p> http://groupedia.com/content/new-recipes-posted#comments Thu, 18 Feb 2010 19:28:46 +0000 George 151 at http://groupedia.com Video and music with XBMC, Boxee, and Windows Media Center http://groupedia.com/content/video-and-music-xbmc-boxee-and-windows-media-center <p>Here&#8217;s what I do today. Mostly I&#8217;m running <span class="caps">XBMC</span> on Linux on a computer under the TV. I get TV shows via bittorrent &#8212; mostly documentaries from <span class="caps">PBS</span>. I also boot into Windows 7 so that I can watch streaming Netflix via Windows Media Center (which is built in to Win7). Unfortunately, I hate the music interface to <span class="caps">WMC</span>, so I use 2 programs.</p> <p>I just tried the (closed) Boxee beta today. Someone figured out how to download the beta and posted it to bittorrent (see [1] below). Running on Win7, it searches all the various places to get media (such as Hulu.com and Netflix). It presents you with a listing of, for example, various TV shows and then connects you to the service that will stream it, whether it&#8217;s netflix or abc.com or whatever. That&#8217;s nice, and helps with the chaos described in the <span class="caps">NYT</span> article.</p> <p>Problems: <ul> <li>Unfortunately, Netflix still hasn&#8217;t provided a Linux version, hence Win7.</li> <li>The video streaming services are still trying to decide what the rules of the game are. For example, there&#8217;s a popular piece of $150 hardware called the Popcorn Hour that allows you to play <span class="caps">DVD</span>&#8217;s, music, netflix, etc. &#8212; but Google has just shut down their YouTube access.</li> <li>Boxee has played cat-and-mouse games with some content providers, trying to circumvent their blocking the video streams. For many sites it has a contract agreement (e.g., Netflix) and that will probably be the wave of the future. Honestly, most of the sites appear to be funded via inline ads (just like regular tv), so that business model should still work.</li> </ul></p> <p>The Boxee Box (hardware) was recently announced (due at <span class="caps">CES</span> in January) and should cost $200. It&#8217;s not really possible to replace a cable subscription yet, <span class="caps">IMO</span>. But, if you&#8217;re a non-rabid consumer of tv like me, it does work acceptably well (especially with Netflix streaming).</p> <p>-g</p> <p>[1] http://thepiratebay.org/torrent/5211168/Boxee_Beta_0.9.20.9647</p> http://groupedia.com/content/video-and-music-xbmc-boxee-and-windows-media-center#comments Tue, 15 Dec 2009 00:10:18 +0000 George 147 at http://groupedia.com 9 Gigabytes of Spam http://groupedia.com/content/9-gigabytes-spam <p>I run my own mailserver, for better or for worse, and I use SpamAssassin to catch spam. For years I have been tucking it away in a folder. Guess how much was there? Give up? Nine gigabytes! Thanks, spammers!</p> http://groupedia.com/content/9-gigabytes-spam#comments Wed, 09 Dec 2009 20:34:44 +0000 George 146 at http://groupedia.com Tomato 1.27 and Ubuntu Karmic http://groupedia.com/content/tomato-127-and-ubuntu-karmic <p>Curious thing some of you may run into. I tried to plug a Ubuntu Karmic 9.10 linux machine into my router running Tomato 1.27, but it failed. Turns out you need to disable IPv6, since Tomato does not support it.</p> <p>Right click on NetworkManager panel applet.<br /> Choose Edit Connections&#8230;<br /> Choose &#8220;Audo eth1&#8221; (or whichever port)<br /> Press &#8220;Edit&#8221;<br /> Select IPv6 tab<br /> Set Method to &#8220;Ignore&#8221;<br /> Click Apply</p> http://groupedia.com/content/tomato-127-and-ubuntu-karmic#comments Mon, 07 Dec 2009 22:19:58 +0000 George 145 at http://groupedia.com LyX, Memoir, run-in headings http://groupedia.com/content/lyx-memoir-run-headings <p>Here&#8217;s the magic code for your document settings -&gt; LaTeX preamble to get run-in headings:</p> <pre> % makes 4-th level (SubSubSection) headings run-in % page 154 of memoir manual \setbeforesubsubsecskip{0ex} \setsubsubsecindent{\parindent} \setaftersubsubsecskip{-1ex} </pre> <p>What is a run-in heading? Normal headings are on their own line. Run-in headings have the text immediately following on the same line.</p> <p><strong>This is a heading</strong><br /> This is the body text that is in the paragraph. This is the body text that is in the paragraph. This is the body text that is in the paragraph. This is the body text that is in the paragraph. This is the body text that is in the paragraph. This is the body text that is in the paragraph. </p> <p><strong>This is a run-in heading.</strong> This is the body text that is in the paragraph. This is the body text that is in the paragraph. This is the body text that is in the paragraph. This is the body text that is in the paragraph. This is the body text that is in the paragraph. This is the body text that is in the paragraph. </p> <p>Now, if anyone knows how to make this appear in LyX by editing the layout file, I&#8217;d love to hear it.</p> http://groupedia.com/content/lyx-memoir-run-headings#comments Wed, 25 Nov 2009 00:30:51 +0000 George 144 at http://groupedia.com LyX and Jurabib http://groupedia.com/content/lyx-and-jurabib <p>I&#8217;m writing a book, so fussy things like getting references to appear right in the text have been occupying my time unexpectedly. I use the LyX document processor, which I really enjoy for writing long documents like my thesis and this book.</p> <p>Here&#8217;s how to get nice reference to appear in the text like this (Smith, 1995).<br /> <!--break--><br /> In LyX:</p> <ul> <li>Document-&gt;Settings-&gt;Bibliography select Jurabib</li> <li>Document-&gt;Settings-&gt;Latex preamble paste this:</li> </ul> <pre> % Jurabib bibliography \jurabibsetup{% titleformat=italic,% titleformat=commasep,% authorformat=and, % yield foo, bar, and baz not foo/bar/baz commabeforerest,% ibidem=strict,% citefull=first,% lookat,% oxford,% pages=format,% idem% } </pre> <ul> <li>Do one of these two things: <ul> <li>For every citation in your document, when you insert it, select the &#8220;citation style&#8221; on the citation dialog that looks like (Smith, 1995)</li> <li>Do a global search/replace on the raw .lyx file using a text editor, making sure every citation looks like &#8220;LatexCommand citep&#8221;, not &#8220;cite&#8221; or other variants.</li> </ul></li> </ul> http://groupedia.com/content/lyx-and-jurabib#comments Sun, 23 Aug 2009 01:15:39 +0000 George 143 at http://groupedia.com Adding comments to PDF's -- free http://groupedia.com/content/adding-comments-pdfs-free <p>My extensive research into the subject (i.e., googling for 30 seconds) has revealed that there are two free <span class="caps">PDF</span> readers (Win/Mac) that will let you add comments to <span class="caps">PDF</span> documents. I&#8217;ve tested them, and those comments can be seen when you open it up in other readers, like Adobe&#8217;s free reader.</p> <ul> <li><a href="http://www.foxitsoftware.com/pdf/reader/download.php">Foxit reader</a></li> <li><a href="http://www.docu-track.com/home/prod_user/PDF-XChange_Tools/pdfx_viewer"><span class="caps">PDF</span> Xchange viewer</a></li> </ul> <p>Good to know if, like me, you plan to send out <span class="caps">PDF</span>s and hope to get comments back on them.</p> http://groupedia.com/content/adding-comments-pdfs-free#comments Thu, 20 Aug 2009 23:13:44 +0000 George 142 at http://groupedia.com Chapter revision http://groupedia.com/content/chapter-revision <p>Ok, so it doesn&#8217;t have the pizazz of a whole new chapter, but the chapter on architecture models has been seriously revamped. I changed the example that runs through the chapter and added several sections on views. But perhaps the most important change is that I packaged it better &#8212; frontmatter introduces the topic and sets expectations better, transitions are more effective at signposting, and the conclusion really is one and not just a summary.</p> <p>It&#8217;s kind of nice to be back on book writing after taking a few months off to teach classes. Still, I hope to be doing some more classes soon.</p> http://groupedia.com/content/chapter-revision#comments Fri, 07 Aug 2009 00:18:48 +0000 George 140 at http://groupedia.com