From Michael.Paoli at cal.berkeley.edu Thu Mar 3 17:43:16 2011 From: Michael.Paoli at cal.berkeley.edu (Michael Paoli) Date: Thu, 03 Mar 2011 17:43:16 -0800 Subject: [buug] Debian CDs @ BUUG Thursday (tonight) Message-ID: <20110303174316.14314wsrg63ezs84@webmail.rawbw.com> I have some Debian GNU/Linux 6.0.0 "Squeeze" CDs that I'll be bringing to this Thursday (tonight)'s BUUG meeting. That's the latest "stable"(/production) Debian release, Debian 6.0 "Squeeze" released 2011-02-06 The CDs I have are i386 and amd64: Debian GNU/Linux 6.0.0 "Squeeze" - Official i386 CD Binary-1 Debian GNU/Linux 6.0.0 "Squeeze" - Official amd64 CD Binary-1 http://www.debian.org/News/2011/20110205a http://www.balug.org/ From khogoboom at gmail.com Wed Mar 9 14:55:33 2011 From: khogoboom at gmail.com (Karen Hogoboom) Date: Wed, 9 Mar 2011 14:55:33 -0800 Subject: [buug] hello In-Reply-To: References: Message-ID: Hi John, Ian, Michael, Heinriques, Charles, and Rick (whom I'm not sure I've met), and one or two that I met but whose names I've forgotten (I'm sorry), Michael managed to remind me of my first friends who were boys. However, we did not "go together," in the parlance of my generation. My first crush was on a guy named Chip, but he didn't know I existed because there was this girl, Laura, and she was the most beautiful kindergartner on our side of the school. My first actual friend who was a boy was Phillip, but he scared me one day. Karen P.S. Phillip's family later saved the lives of my sister and I when I was 8. I am very grateful for that. K Hi Buug, > > I'd like to introduce myself and warn you--I have just joined your mailing > list and am thinking I will attend the Thursday meeting. :-) > > Geekfactorwise, "I *am* technical!", but, how can I say this, I was raised > backwards. > > I was born in Berkeley, but not raised here. > I was schooled in Berkeley but did not live here--Malcolm X, Longfellow, > Magic Mountain, Maybeck, UCB (BA Computer Science '98) > I am not anti-social, but do not make friends easily > I was not popular in highschool > My first boyfriend repairs air conditioners > My second contender, who I LJBF'd ended up working at JPL > My ex-husband works at "the lab" but not ours > I was not raised "in the Berkeley network" > I worked at Sybase for awhile > I do not know anyone by their SCA names > I might know some of the people you know--Allen, Elton, Larry, Cynthia, > Cecily, Jym, at least two Bobs and two Marks. > I am female, so I don't "know my stuff" that depth-first-way that guys do. > I'm a breadth-firster > I have only played DnD a few times > I am not powerless over WoW, and I will be hitting the job search hard any > day now > > What drives me to you is that I finally wiped my XP machine and put FreeBSD > on it and realized I need to understand the history of X better. I have > been, by my own bad choices, fate and bad breeding, working in the Microsoft > world for most of my career. Do I want gnome or kde when I don't even want > to *emulate* MS on this machine? > > Karen > > -- > http://www.linkedin.com/in/karenlhogoboom > http://www.facebook.com/klhogoboom > http://boomtownbits.livejournal.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From khogoboom at gmail.com Thu Mar 10 06:30:13 2011 From: khogoboom at gmail.com (Karen Hogoboom) Date: Thu, 10 Mar 2011 06:30:13 -0800 Subject: [buug] login [not] a daemon? ... & CDs In-Reply-To: <20101202175803.884907iax7aj71kc@webmail.rawbw.com> References: <877hfyzncy.fsf@matica.localdomain> <878w08b08f.fsf@matica.localdomain> <20101202175803.884907iax7aj71kc@webmail.rawbw.com> Message-ID: The machine gets power. Memories of gears turn. Eventually the bios starts (on my Dell). The kernel gets invoked. In system memory, input from the console gets put into a system buffer. It overflows or the code is good. Eventually rc.d gets read? Then there's an exec? Thank you Ian and Michael for the clarification up to this point. I still don't see why a base install of BSD decided I wanted to use PAM. Karen On Thu, Dec 2, 2010 at 5:58 PM, Michael Paoli < Michael.Paoli at cal.berkeley.edu> wrote: > From: "Ian Zimmerman" >> Subject: Re: [buug] hello >> Date: Thu, 02 Dec 2010 08:36:32 -0800 >> > > Karen> That is my new project for awhile then. login [pam] -- I fail. >> Karen> I don't know why there has to be a daemon for login. >> >> Not a daemon. This is the same process that becomes your shell after >> you log in. >> > > Well, ... depends a bit how one logs in, ... may or may not *directly* be > a daemon, ... but there would at least be inetd or xinetd or init somewhere > behind it ... it nothing else. Has to be something that forks/execs that > shell or login/shell/process. > > ... 1 hr. to BUUG :-) ... oh, and I'll be bringing some CDs (Ubuntu & > others). > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Paoli at cal.berkeley.edu Thu Mar 10 17:46:25 2011 From: Michael.Paoli at cal.berkeley.edu (Michael Paoli) Date: Thu, 10 Mar 2011 17:46:25 -0800 Subject: [buug] PAM (& base install of BSD) In-Reply-To: References: <877hfyzncy.fsf@matica.localdomain> <878w08b08f.fsf@matica.localdomain> <20101202175803.884907iax7aj71kc@webmail.rawbw.com> Message-ID: <20110310174625.43411vgnwfb6ht0k@webmail.rawbw.com> > From: "Karen Hogoboom" > Subject: Re: login [not] a daemon? ... & CDs > Date: Thu, 10 Mar 2011 06:30:13 -0800 > I still don't see why a base install of BSD decided I wanted to use PAM. Because PAM is generally the right way to do it. It rather cleanly (via API) separates out most authentication, etc. from the programs that need to use such. In the "bad old days" before PAM, if one needed to add a new authentication scheme, one would have to update (e.g. recode/recompile) all the programs that used authentication to support the new authentication scheme. Likewise if a bug was found in said authentication scheme, all those programs would need to be updated. With PAM, just the PAM modules/programs themselves would need to be updated. The concept and practice is relatively similar to shared libraries in general. From khogoboom at gmail.com Thu Mar 10 17:49:52 2011 From: khogoboom at gmail.com (Karen Hogoboom) Date: Thu, 10 Mar 2011 17:49:52 -0800 Subject: [buug] PAM (& base install of BSD) In-Reply-To: <20110310174625.43411vgnwfb6ht0k@webmail.rawbw.com> References: <877hfyzncy.fsf@matica.localdomain> <878w08b08f.fsf@matica.localdomain> <20101202175803.884907iax7aj71kc@webmail.rawbw.com> <20110310174625.43411vgnwfb6ht0k@webmail.rawbw.com> Message-ID: So, you're saying I want a process running all the time that sucks up CPU cycles while I'm on my own machine talking only to myself on a base install of BSD. On Thu, Mar 10, 2011 at 5:46 PM, Michael Paoli < Michael.Paoli at cal.berkeley.edu> wrote: > From: "Karen Hogoboom" >> Subject: Re: login [not] a daemon? ... & CDs >> Date: Thu, 10 Mar 2011 06:30:13 -0800 >> > > I still don't see why a base install of BSD decided I wanted to use PAM. >> > > Because PAM is generally the right way to do it. It rather cleanly > (via API) separates out most authentication, etc. from the programs > that need to use such. > > In the "bad old days" before PAM, if one needed to add a new > authentication scheme, one would have to update (e.g. recode/recompile) > all the programs that used authentication to support the new > authentication scheme. Likewise if a bug was found in said > authentication scheme, all those programs would need to be updated. > With PAM, just the PAM modules/programs themselves would need to be > updated. The concept and practice is relatively similar to shared > libraries in general. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Paoli at cal.berkeley.edu Thu Mar 10 18:06:34 2011 From: Michael.Paoli at cal.berkeley.edu (Michael Paoli) Date: Thu, 10 Mar 2011 18:06:34 -0800 Subject: [buug] process running all the time that sucks up ... (PAM?) In-Reply-To: References: <877hfyzncy.fsf@matica.localdomain> <878w08b08f.fsf@matica.localdomain> <20101202175803.884907iax7aj71kc@webmail.rawbw.com> <20110310174625.43411vgnwfb6ht0k@webmail.rawbw.com> Message-ID: <20110310180634.339771fqewgjxa4g@webmail.rawbw.com> That's not what I said. Whether or not such process(es) exist is generally speaking quite independent of PAM. That you see something like: login [pam] in the ps(1) listing, is just login's way of telling you it utilizes PAM. If it didn't you'd probably just see: login If you want to disable any and all processes that wait/listen for a login, you probably could ... but then logging in would be quite a challenge - even from the console. Unix/Linux/BSD, etc. - multiuser multitasking operating system. That generally requires some means to authenticate and something that somehow "listens", in one way or another, for such a request. > From: "Karen Hogoboom" > Subject: Re: PAM (& base install of BSD) > Date: Thu, 10 Mar 2011 17:49:52 -0800 > So, you're saying I want a process running all the time that sucks up CPU > cycles while I'm on my own machine talking only to myself on a base install > of BSD. > > On Thu, Mar 10, 2011 at 5:46 PM, Michael Paoli < > Michael.Paoli at cal.berkeley.edu> wrote: > >> From: "Karen Hogoboom" >>> Subject: Re: login [not] a daemon? ... & CDs >>> Date: Thu, 10 Mar 2011 06:30:13 -0800 >>> >> >> I still don't see why a base install of BSD decided I wanted to use PAM. >>> >> >> Because PAM is generally the right way to do it. It rather cleanly >> (via API) separates out most authentication, etc. from the programs >> that need to use such. >> >> In the "bad old days" before PAM, if one needed to add a new >> authentication scheme, one would have to update (e.g. recode/recompile) >> all the programs that used authentication to support the new >> authentication scheme. Likewise if a bug was found in said >> authentication scheme, all those programs would need to be updated. >> With PAM, just the PAM modules/programs themselves would need to be >> updated. The concept and practice is relatively similar to shared >> libraries in general. From Michael.Paoli at cal.berkeley.edu Fri Mar 11 10:54:30 2011 From: Michael.Paoli at cal.berkeley.edu (Michael Paoli) Date: Fri, 11 Mar 2011 10:54:30 -0800 Subject: [buug] BALUG Tu 2011-03-15: Jack Deslippe on Developing for Android; & other BALUG news Message-ID: <20110311105430.16427tqho3p8ighc@webmail.rawbw.com> BALUG Tu 2011-03-15: Jack Deslippe on Developing for Android; & other BALUG news In this issue (details further below): 2011-03-15 Tu: BALUG meeting Tu: Jack Deslippe on Developing for Android Debian/Linux/Ubuntu/... CDs 2011-05-17: Cloud.com's Mark Hinkle, VP of Community, on: Open Source Solutions for Building and Deploying Private and Public Clouds Twitter! - follow BALUG on Twitter: BALUG_org ------------------------------ Bay Area Linux User Group (BALUG) meeting Tuesday 6:30 P.M. 2011-03-15 Please RSVP if you're planning to come (see further below). For our Tuesday 6:30 P.M. 2011-03-15 meeting, we're proud to present: Jack Deslippe[1] on Developing for Android[2] It is has become clear over the last few years that mobile devices such as smartphones, "superphones" and tablets are more than just a passing fad - they are quickly becoming the new primary goto devices for the public's computing and connecting needs. This mobile revolution has given Linux[3] & open-source a second chance at being the OS of choice for the average end-user. In particular, the Linux powered, open-source, Android OS[2] has recently emerged as the number one selling OS on mobile devices in the US. Jack will give a brief introduction to what Android is (and is not) and will discuss the opportunities and challenges of developing for Android. Finally, he will walk us through developing your first Android application on an Ubuntu[4] desktop and talk about some of the development lessons that he learned the hard way. Jack Deslippe is computational physics Ph.D. student candidate at UC Berkeley[5]. He spends his weekdays programming for some of the largest super-computers in the world and his weekends developing for some of the smallest computers (Android phones). He has been using Linux for 10 years on the desktop and server and, 2 years ago, founded the Berkeley Linux Users Group[6]. He is an active member of the Ubuntu-California local team[7] and a developer-of/contributor-to various desktop Linux projects. You can learn more about Jack at jdeslippe.com[1]. 1. http://jdeslippe.com/ 2. http://en.wikipedia.org/wiki/Android_(operating_system) 3. http://en.wikipedia.org/wiki/Linux 4. http://www.ubuntu.com/ 5. http://www.berkeley.edu/ 6. http://www.berkeleylug.com/ 7. http://loco.ubuntu.com/teams/ubuntu-california See also a bit further below for some additional goodies we'll have at this meeting (CDs, etc.) So, if you'd like to join us please RSVP to: rsvp at balug.org **Why RSVP??** Well, don't worry we won't turn you away, but the RSVPs really help the Four Seas Restaurant plan the meal and dining arrangements and such. Meeting Details... 6:30pm Tuesday, March 15th, 2011 2011-03-15 Four Seas Restaurant http://www.fourseasr.com/ 731 Grant Ave. San Francisco, CA 94108 Easy PARKING: Portsmouth Square Garage at 733 Kearny: http://www.sfpsg.com/ Cost: The meetings are always free, but for dinner, for your gift of $13 cash, we give you a gift of dinner - joining us for a yummy family-style Chinese dinner - tax and tip included (your gift also helps in our patronizing the restaurant venue and helping to defray BALUG costs such treating our speakers to dinner). Additional goodies we'll have at this meeting (at least the following): We'll have various Linux(Debian/Ubuntu/Kubuntu/Fedora/...) CDs available at the 2011-03-15 BALUG meeting (and likely also future meetings as long as our supply lasts/continues), most notably presently including: Debian GNU/Linux 6.0.0 "Squeeze" - latest "stable"(/production) released 2011-02-06: Debian GNU/Linux 6.0.0 "Squeeze" - Official i386 CD Binary-1 Debian GNU/Linux 6.0.0 "Squeeze" - Official amd64 CD Binary-1 Ubuntu 10.10 Desktop CD PC (Intel x86) i386 Kubuntu 10.10 Desktop Edition Fedora 14 i686 And other editions/releases/flavors Thanks to Grant Bowman and the Ubuntu California Team and others for getting CDs to us. ------------------------------ For our Tuesday 6:30 P.M. 2011-05-17 meeting, we're proud to present: Cloud.com[1]'s Mark Hinkle, VP of Community, on: Open Source Solutions for Building and Deploying Private and Public Clouds As cloud computing has moved beyond hype, becoming a true enterprise-ready tool that cuts IT costs and fits a variety of use cases, IT is seeking new ways to efficiently and cost-effectively build, deploy and manage clouds. Cloud.com's CloudStack Community Edition, available under the GPLv3 license, is an open sourced Infrastructure as a Service (IaaS) software platform that simplifies the creation and management of public and private clouds. This platform seamlessly integrates with existing data center infrastructure without the need for modifications, special-purpose hardware or reconfiguration, making it possible for users to instantly realize the benefits of the cloud. CloudStack Community Edition delivers several benefits including: o Massive computing power - providing virtually unlimited CPUs on-demand, as required and billed by actual usage in public, private or hybrid deployments. o Powerful API - Easily build, integrate and use applications based on common cloud APIs like Amazon's Web Services API, Citrix Cloud CenterT (C3) API and the vCloud API o Secure Cloud Computing - Isolating compute, network, and storage resources by user, location and deployment. o Comprehensive Service Management - Defining, metering, deploying and managing services to be consumed within your cloud. o Automated resource distribution - delivering capabilities to automate the distribution of compute, network and storage while adhering to defined policies on load balancing, data security and compliance. o Real-time visibility and reporting capabilities - ensuring compliance, security and comprehensive metering customer usage. o Simplified management - empowering administrators to offset the daily management of services to the end users with a powerful self-service portal that gives the day-to-day management tasks to the user, enabling administrators to focus on more business critical issues while giving the client more control and agility over the service by providing a catalog of custom built and pre-defined machine images. This session will provide best practices for building clouds, and a technical overview and demonstration of CloudStack. Mark Hinkle is Cloud.com's Vice President of Community where he is responsible for driving all of the community efforts around the Cloud.com's leading open source, cloud computing software and ecosystem. Before that he was the force behind the Zenoss Core open source management projects adoption and community involvement, growing community membership to over 100,000 members. He is a co-founder of both the Open Source Management Consortium and the Desktop Linux Consortium, has served as Editor-in-Chief for both LinuxWorld Magazine and Enterprise Open Source Magazine, and authored the book, "Windows to Linux Business Desktop Migration" (Thomson, 2006). Mark has also held executive positions at a number of technology start-ups, including Earthlink, (previously MindSpring)--where he was the head of the technical support organization recognized by PC Computing and PC World as the best in the industry--Win4Lin and Emu Software. 1. http://www.cloud.com/ ------------------------------ Twitter! - follow BALUG on Twitter: BALUG_org You can now follow BALUG on Twitter. We're still working out exactly how we'll use that BALUG_org account on Twitter, but follow us there, and we'll likely include at least some announcements and updates. Thoughts/feedback on how we use that Twitter account? - drop us a note at: publicity-feedback at balug.org ------------------------------ Feedback on our publicity/announcements (e.g. contacts or lists where we should get our information out that we're not presently reaching, or things we should do differently): publicity-feedback at balug.org ------------------------------ http://www.balug.org/ From jzitt at josephzitt.com Fri Mar 11 13:40:45 2011 From: jzitt at josephzitt.com (Joseph Zitt) Date: Fri, 11 Mar 2011 16:40:45 -0500 Subject: [buug] Need help with LaTeX problem Message-ID: Hi. Is anyone here using LaTeX, and specifically the KOMA-Script package? I have a document in which the inner margins are unacceptably narrow. Altering the BCOR value in the \documentclass line should deal with this, but has no effect. I've been wrestling with this for almost a year. Any clues? -- Joseph Zitt ::http://www.josephzitt.com From itz at buug.org Fri Mar 11 14:17:37 2011 From: itz at buug.org (Ian Zimmerman) Date: Fri, 11 Mar 2011 14:17:37 -0800 Subject: [buug] Need help with LaTeX problem In-Reply-To: (Joseph Zitt's message of "Fri, 11 Mar 2011 16:40:45 -0500") References: Message-ID: <87r5aduwse.fsf@matica.localdomain> Joseph> Hi. Is anyone here using LaTeX, and specifically the KOMA-Script Joseph> package? I have a document in which the inner margins are Joseph> unacceptably narrow. Altering the BCOR value in the Joseph> \documentclass line should deal with this, but has no Joseph> effect. I've been wrestling with this for almost a year. Any Joseph> clues? I have some LaTeX experience, though it's rusty and not specifically with this package. If nobody else offers help, I'll look at the docs .. -- Ian Zimmerman gpg public key: 1024D/C6FF61AD fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD Ham is for reading, not for eating. From itz at buug.org Fri Mar 11 23:46:38 2011 From: itz at buug.org (Ian Zimmerman) Date: Fri, 11 Mar 2011 23:46:38 -0800 Subject: [buug] firefox/iceweasel: how to auto-gunzip files Message-ID: <87ipvovl0h.fsf@matica.localdomain> Since back before the beginning of history, I have run apache on my desktop. Originally there was some justification in that I had cgi scripts, for example to browse version control repos. But now all that is on a personal server machine and /usr/lib/cgi-bin on my desktop is empty. However, I still find it necessary to keep apache for a single stupid reason: it is the only way I know to conveniently browse Debian's /usr/share/doc tree, where files (of any type) are gzipped depending on size (which means that in a single directory of HTML files, for example, some can be gzipped and some not). When apache serves these files it sends a Content-Encoding header and firefox knows what to do, but if I browse them as a file:// URL it just asks a stupid question like: You have chose to open foo.html.gz which is a: gzip What should iceweasel do with this file? And of course there is no good answer, or the good answer would be like "gunzip and render it, dammit!" How _can_ I force iceweasel to do just that?? Or do you other Debian users also run apache on every box? -- Ian Zimmerman gpg public key: 1024D/C6FF61AD fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD Ham is for reading, not for eating. From cjr at grundrisse.org Sat Mar 12 00:10:40 2011 From: cjr at grundrisse.org (Claude Rubinson) Date: Sat, 12 Mar 2011 02:10:40 -0600 Subject: [buug] firefox/iceweasel: how to auto-gunzip files In-Reply-To: <87ipvovl0h.fsf@matica.localdomain> References: <87ipvovl0h.fsf@matica.localdomain> Message-ID: <20110312081040.GC1968@wagner> On Fri, Mar 11, 2011 at 11:46:38PM -0800, Ian Zimmerman wrote: > You have chose to open > > foo.html.gz > > which is a: gzip > > What should iceweasel do with this file? > > And of course there is no good answer, or the good answer would be like > "gunzip and render it, dammit!" How _can_ I force iceweasel to do just that?? > Or do you other Debian users also run apache on every box? Would zrun (part of Joey Hess' moreutils package) do the job? Claude From Michael.Paoli at cal.berkeley.edu Sat Mar 12 09:00:16 2011 From: Michael.Paoli at cal.berkeley.edu (Michael Paoli) Date: Sat, 12 Mar 2011 09:00:16 -0800 Subject: [buug] Lynx: Re: firefox/iceweasel: how to auto-gunzip files In-Reply-To: <87ipvovl0h.fsf@matica.localdomain> References: <87ipvovl0h.fsf@matica.localdomain> Message-ID: <20110312090016.86904j6xwcd6luao@webmail.rawbw.com> Okay, probably not the answer you were looking for, but I typically use Lynx for that. It handles gzipped files (with names ending in .gz) just fine on file: URLs. Most of those documentation files aren't html with (important/significant - if any) images in them anyway. > From: "Ian Zimmerman" > Subject: [buug] firefox/iceweasel: how to auto-gunzip files > Date: Fri, 11 Mar 2011 23:46:38 -0800 > > Since back before the beginning of history, I have run apache on my > desktop. Originally there was some justification in that I had cgi > scripts, for example to browse version control repos. But now all that > is on a personal server machine and /usr/lib/cgi-bin on my desktop is > empty. > > However, I still find it necessary to keep apache for a single stupid > reason: it is the only way I know to conveniently browse Debian's > /usr/share/doc tree, where files (of any type) are gzipped depending on > size (which means that in a single directory of HTML files, for example, > some can be gzipped and some not). When apache serves these files it > sends a Content-Encoding header and firefox knows what to do, but if I > browse them as a file:// URL it just asks a stupid question like: > > You have chose to open > > foo.html.gz > > which is a: gzip > > What should iceweasel do with this file? > > And of course there is no good answer, or the good answer would be like > "gunzip and render it, dammit!" How _can_ I force iceweasel to do > just that?? > Or do you other Debian users also run apache on every box? From khogoboom at gmail.com Sat Mar 12 09:10:43 2011 From: khogoboom at gmail.com (Karen Hogoboom) Date: Sat, 12 Mar 2011 09:10:43 -0800 Subject: [buug] Need help with LaTeX problem In-Reply-To: <87r5aduwse.fsf@matica.localdomain> References: <87r5aduwse.fsf@matica.localdomain> Message-ID: Hi Joseph, I could introduce you to my cousin Anya Lunden who wrote her Linguistics PhD thesis in LaTeX. You could also find her on Linked In or Facebook. Feel free to drop my name. Karen On Fri, Mar 11, 2011 at 2:17 PM, Ian Zimmerman wrote: > > Joseph> Hi. Is anyone here using LaTeX, and specifically the KOMA-Script > Joseph> package? I have a document in which the inner margins are > Joseph> unacceptably narrow. Altering the BCOR value in the > Joseph> \documentclass line should deal with this, but has no > Joseph> effect. I've been wrestling with this for almost a year. Any > Joseph> clues? > > I have some LaTeX experience, though it's rusty and not specifically > with this package. If nobody else offers help, I'll look at the docs .. > > -- > Ian Zimmerman > gpg public key: 1024D/C6FF61AD > fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD > Ham is for reading, not for eating. > _______________________________________________ > Buug mailing list > Buug at weak.org > http://www.weak.org/mailman/listinfo/buug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From itz at buug.org Sat Mar 12 12:33:07 2011 From: itz at buug.org (Ian Zimmerman) Date: Sat, 12 Mar 2011 12:33:07 -0800 Subject: [buug] Lynx: Re: firefox/iceweasel: how to auto-gunzip files In-Reply-To: <20110312090016.86904j6xwcd6luao@webmail.rawbw.com> (Michael Paoli's message of "Sat, 12 Mar 2011 09:00:16 -0800") References: <87ipvovl0h.fsf@matica.localdomain> <20110312090016.86904j6xwcd6luao@webmail.rawbw.com> Message-ID: <87zkp0nkos.fsf@matica.localdomain> Ian> However, I still find it necessary to keep apache for a single Ian> stupid reason: it is the only way I know to conveniently browse Ian> Debian's /usr/share/doc tree, where files (of any type) are gzipped Ian> depending Michael> Okay, probably not the answer you were looking for, but I Michael> typically use Lynx for that. It handles gzipped files (with Michael> names ending in .gz) just fine on file: URLs. Most of those Michael> documentation files aren't html with (important/significant - Michael> if any) images in them anyway. This would actually be a good solution, I have all but forgotten about lynx ;-) But it doesn't seem to handle .xhtml files. Perhaps there is something I can configure to make that work? -- Ian Zimmerman gpg public key: 1024D/C6FF61AD fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD Ham is for reading, not for eating. From Michael.Paoli at cal.berkeley.edu Sat Mar 12 21:01:55 2011 From: Michael.Paoli at cal.berkeley.edu (Michael Paoli) Date: Sat, 12 Mar 2011 21:01:55 -0800 Subject: [buug] substring of integers problem In-Reply-To: <87vd0zt3t3.fsf@matica.localdomain> References: <87vd0zt3t3.fsf@matica.localdomain> Message-ID: <20110312210155.201563iti0fxvpgk@webmail.rawbw.com> Not quite a "perfect" solution (e.g. it can hit some overflow/underflow/conversion errors in some cases - including not detecting them in some cases), but ... I also realized later I could've coded it to solve from left to right, rather than right to left ... and could thus possibly not process/parse the arguments (input integers) until they're needed, and thus also not need to store them all. Most of the "real work" happens within about 21 lines of body of loop. The rest is mostly just initialization and final output. It needs more comments :-) ... I had a bunch, but stripped most of them out ... they'd not kept up to how the code had "evolved". In any case: $ ./maxsumsubset 1 2 3 -8 5 1, 2, 3 $ ./maxsumsubset 1 2 3 -8 5 8 5, 8 $ ./maxsumsubset 1 2 3 -6 5 8 1, 2, 3, -6, 5, 8 5, 8 $ perl -e '@_=(); for(my $n=15;$n>0;--$n){push(@_,int(rand(19))-9);};print(join('\'' '\'', at _),"\n");' 6 4 6 -5 8 -5 3 -8 1 4 2 -6 2 -5 8 $ ./maxsumsubset 6 4 6 -5 8 -5 3 -8 1 4 2 -6 2 -5 8 6, 4, 6, -5, 8 $ perl -e '@_=(); for(my $n=15;$n>0;--$n){push(@_,int(rand(19))-9);};print(join('\'' '\'', at _),"\n");' 7 -7 2 -3 -8 -9 -5 -4 -2 -1 -8 -6 5 0 8 $ ./maxsumsubset 7 -7 2 -3 -8 -9 -5 -4 -2 -1 -8 -6 5 0 8 5, 0, 8 $ perl -e '@_=(); for(my $n=15;$n>0;--$n){push(@_,int(rand(19))-9);};print(join('\'' '\'', at _),"\n");' 2 1 -8 8 -2 -7 1 5 6 6 -3 -4 1 -8 -3 $ ./maxsumsubset 2 1 -8 8 -2 -7 1 5 6 6 -3 -4 1 -8 -3 1, 5, 6, 6 $ perl -e '@_=(); for(my $n=15;$n>0;--$n){push(@_,int(rand(19))-9);};print(join('\'' '\'', at _),"\n");' 8 -8 -3 -5 -9 -7 8 -3 -5 3 -4 1 1 -7 8 $ ./maxsumsubset 8 -8 -3 -5 -9 -7 8 -3 -5 3 -4 1 1 -7 8 8 $ perl -e '@_=(); for(my $n=15;$n>0;--$n){push(@_,int(rand(19))-9);};print(join('\'' '\'', at _),"\n");' -4 9 6 2 2 9 3 -9 -3 -6 0 0 2 0 0 $ ./maxsumsubset -4 9 6 2 2 9 3 -9 -3 -6 0 0 2 0 0 9, 6, 2, 2, 9, 3 $ expand -t 4 < maxsumsubset #!/usr/bin/perl $^W=1; use strict; # vi(1) :se tabstop=4 # given list of integers, find subset(s) of consecutive integer(s) in # list having the maximum sum # we'll take our list from argument(s) # initialize list my @list=(); # check arguments and populate list, abort on invalid argument for (@ARGV) { if( ! /^ [-+]? (?: \d+ (?:\.0*)? | \d*\.0+ ) $ /ox ){ die ( "$0: $_ not integer in expected format:\n", '/^[-+]?(?:\d+(?:\.0*)?|\d*\.0+)$/)', ", aborting", ) ; }; # sanity check for precision loss if($_>0){ $_ - 1 != $_ or die("$0: precision loss? - failed test: $_ - 1 != $_, aborting"); }else{ $_ + 1 != $_ or die("$0: precision loss? - failed test: $_ + 1 != $_, aborting"); }; # sanity check for possible underflow, overflow or bad conversion { my $original=$_; #'/^[-+]?(?:\d+(?:\.0*)?|\d*\.0+)$/)', # normalize form s/^\+//o; # strip any leading + s/^(?!0$)-?(?:0+\.?|0*\.0+)$/0/o; # nominalize zero to 0 s/\.0*$//o; # strip zero decimal portion s/^(-?)0+(?=[1-9])/\1/o; # strip unneded leading 0s ($_ + 0) . '' eq $_ or die ("$0: convesion problem? $original --> $_, failed test: ($_ + 0) . '' eq $_, aborting"); } push (@list,$_+0); }; # trivial solutions first: if ($#list <= 0){ if ($#list == -1){ # empty input list print "null\n"; exit(0); }elsif($#list == 0){ # single element input list print "$list[0]\n"; exit(0); }; # should be unreachable, but if we're here: die("$0: \$#list(==$#list) <=0 but not -1 or 0, aborting"); }; # additional pre-loop initialization my $sum=$list[$#list]; my %solution=($sum => [$sum]); #(setkey => [set], ...) my $sum_to_right=$sum; my %solution_to_right=($sum => [$sum]); #(setkey => [set], ...) # concatenation string for setkey (must not contain digit or -) my $c='.'; # iterate over our list, right to left, start at next to rightmost # position for ( my $index=$#list-1; # index position in list, work right to left $index>=0; --$index ){ my $here=$list[$index]; if($sum_to_right >= 0){ $sum_to_right+=$here; for (keys %solution_to_right){ $solution_to_right{$here . $c . $_}= [$here,@{$solution_to_right{$_}}]; delete $solution_to_right{$_}; }; }else{ # $sum_to_right < 0 $sum_to_right=$here; %solution_to_right=($here => [$here]); }; if($sum_to_right >= $sum){ if($sum_to_right > $sum){ $sum=$sum_to_right; %solution=(); }; for (keys %solution_to_right){ $solution{$_}=[@{$solution_to_right{$_}}]; }; #}else{ # $sum_to_right < $sum # nothing to do in this case }; }; for(keys %solution){ print(join(', ',@{$solution{$_}}),"\n"); }; > From: "Ian Zimmerman" > Subject: Re: [buug] substring of integers problem > Date: Fri, 04 Feb 2011 22:04:20 -0800 > > Karen> You may find this helpful: > Karen> http://en.wikipedia.org/wiki/Longest_common_substring_problem > > That's an interesting problem too, but I don't think it is relevant to > mine :-P I must have not explained it clearly, so I'll do it again > here. Apologies to those who have already seen this. > > The problem is: given a list (array, finite sequence, vector - whatever > you want to call it) of integers, positive and negative, find a slice > (contiguous subsequence) which maximizes the *sum* of the integers in > the slice. > > Examples: if the input list is [1, 2, 3, -8, 5], then there's exactly one > solution, namely [1, 2, 3]. If the input list is [1, 2, 3, -8, 5, 8] > there's again a unique solution, [5, 8]. If I change the -8 to a -6, > there are now 2 solutions: [5, 8] and the full input list. Only one > solution is required if there are multiple ones. From itz at buug.org Sat Mar 12 22:59:51 2011 From: itz at buug.org (Ian Zimmerman) Date: Sat, 12 Mar 2011 22:59:51 -0800 Subject: [buug] substring of integers problem In-Reply-To: <20110312210155.201563iti0fxvpgk@webmail.rawbw.com> (Michael Paoli's message of "Sat, 12 Mar 2011 21:01:55 -0800") References: <87vd0zt3t3.fsf@matica.localdomain> <20110312210155.201563iti0fxvpgk@webmail.rawbw.com> Message-ID: <87sjurtsig.fsf@matica.localdomain> Michael> Not quite a "perfect" solution (e.g. it can hit some Michael> overflow/underflow/conversion errors in some cases - including Michael> not detecting them in some cases), but ... I also realized Michael> later I could've coded it to solve from left to right, rather Michael> than right to left ... and could thus possibly not Michael> process/parse the arguments (input integers) until they're Michael> needed, and thus also not need to store them all. Most of the Michael> "real work" happens within about 21 lines of body of loop. The Michael> rest is mostly just initialization and final output. It needs Michael> more comments :-) ... I had a bunch, but stripped most of them Michael> out ... they'd not kept up to how the code had "evolved". Yes, I think that's correct (allowing for my rusty Perl). I found that this is quite a famous problem, it's discussed in 2 books I got this month :-) It's also in wikipedia: https://secure.wikimedia.org/wikipedia/en/wiki/Maximum_subarray_problem -- Ian Zimmerman gpg public key: 1024D/C6FF61AD fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD Ham is for reading, not for eating. From Michael.Paoli at cal.berkeley.edu Sun Mar 13 10:25:05 2011 From: Michael.Paoli at cal.berkeley.edu (Michael Paoli) Date: Sun, 13 Mar 2011 10:25:05 -0700 Subject: [buug] substring of integers problem In-Reply-To: <87sjurtsig.fsf@matica.localdomain> References: <87vd0zt3t3.fsf@matica.localdomain> <20110312210155.201563iti0fxvpgk@webmail.rawbw.com> <87sjurtsig.fsf@matica.localdomain> Message-ID: <20110313102505.15523nf1pucyxv6s@webmail.rawbw.com> Ah, yes, ... http://en.wikipedia.org/wiki/Maximum_subarray_problem has an additional constraint: "containing at least one positive number" which I didn't include, as it's not stated/included in: http://www.weak.org/pipermail/buug/2011-February/003716.html It was a "simple enough" problem there was likely much material (and "solutions") on it ... but for purpose of exercise, I didn't peek. I was somewhat surprised how the algorithm got simpler and simpler as I optimized (and fixed) the code. $ ./maxsumsubset -5 -3 -5 -3 $ references/excerpts: http://www.weak.org/pipermail/buug/2011-March/003741.html > From: "Ian Zimmerman" > Subject: Re: [buug] substring of integers problem > Date: Sat, 12 Mar 2011 22:59:51 -0800 > Michael> Not quite a "perfect" solution (e.g. it can hit some > Michael> overflow/underflow/conversion errors in some cases - including > Michael> not detecting them in some cases), but ... I also realized > Michael> later I could've coded it to solve from left to right, rather > Michael> than right to left ... and could thus possibly not > Michael> process/parse the arguments (input integers) until they're > Michael> needed, and thus also not need to store them all. Most of the > Michael> "real work" happens within about 21 lines of body of loop. The > Michael> rest is mostly just initialization and final output. It needs > Michael> more comments :-) ... I had a bunch, but stripped most of them > Michael> out ... they'd not kept up to how the code had "evolved". > > Yes, I think that's correct (allowing for my rusty Perl). > > I found that this is quite a famous problem, it's discussed in 2 books I > got this month :-) It's also in wikipedia: > > https://secure.wikimedia.org/wikipedia/en/wiki/Maximum_subarray_problem From khogoboom at gmail.com Mon Mar 21 21:30:04 2011 From: khogoboom at gmail.com (Karen Hogoboom) Date: Mon, 21 Mar 2011 21:30:04 -0700 Subject: [buug] Puzzle for next time Message-ID: What is "clean" energy? How many women's backs were made bare to get it? -------------- next part -------------- An HTML attachment was scrubbed... URL: