From owner-freebsd-questions Fri Oct 12 10:54:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id D960337B417 for ; Fri, 12 Oct 2001 10:54:15 -0700 (PDT) Received: (qmail 3886 invoked by uid 100); 12 Oct 2001 17:54:14 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15303.11846.886398.351236@guru.mired.org> Date: Fri, 12 Oct 2001 12:54:14 -0500 To: Louis LeBlanc , Mark Drayton Cc: questions@freebsd.org Subject: Re: Way Off Topic: Bookmarks In-Reply-To: <34551253@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Drayton types: > what ever (thursday@sdf.lonestar.org) wrote: > > I'm wondering what people are doing to manage their bookmarks. In my > > home office, I find myself switching between Netscrape on my Windows > > machine, and between Konqueror & Netscrape on my FreeBSD machine. I > > mostly use the FreeBSD machine for surfing, but my NN/Win instance had > > the biggest bookmarks file (years of surfing on that platform before I > > found the *nix light). > I have a web page on my server with all my commonly used bookmarks. I > store all the bookmarks in an XML file (easier to edit) which is then > turned into HTML by a CGI script. Mine - which Louis and I have been discussing - stores them in an SQL database, which is also easier to edit, and makes keeping track of things like the last visit and the visitor count easy. The CGI script accepts an argument to sort on either one of those two fields. That means I can put either the ones I use a lot or the ones I used recently at the top of the list. Louis LeBlanc types: > On 10/11/01 01:47 PM, Mike Meyer sat at the `puter and typed: > > Thank you. Yes, I can add things automatically from my primary > > browser. I use w3m, which is the only browser I know of that supports > > the concept of "open another browser on a page". One of the "other" > > browsers is a script that accepts the URL on the command line, digs > > the title up over the network, and adds the url and title to the > > database. > > Any scriptable browser could do this kind of thing, though the only > > scriptable browsers I know of are Amosaic, Ibrowse and AWeb, none of > > which run on Unix. In fact, this all started with Amosaic. > Hmm. There must be a way to handle this from within Galeon, Mozilla, > or Netscrape. Maybe some kind of kludge. Maybe just a perl tool you > can just pass the URL to. It could then grab the title and dump it to > the cgi handler at your site. What I mean by a "scriptable browser" is one that lets me associate a command that includes information from the current page with a user command of some kind. Netscape can't do it. I don't think Mozilla can. Galeon might, but my builds of it fail to run. > > I'm also not sure how the py_apache module would be dealt with. It's > > not a port, and the port with that functionality doesn't build and > > would require rewriting the thing. > I have a /usr/ports/www/mod_python port. As far as I can tell, it's > the same idea, just a different implementation. Yup. Except that 1) it doesn't build here, and 2) it uses a different API, so I'd have to rewrite my scripts. > > If you really want, I might be able to find the original versions that > > kept text in a page. I'm pretty sure I've got the ARexx version, and > > there are rexx interpreters in the ports tree. I'm not so sure about > > the version that I used on Unix before I write the current version. > I still think perl will do this. Even a secure connection would be > possible to connect to a secure server. Of course Perl could do this. I just prefer Python to Perl. Having a maildrop to add URLs is pretty straightforward. The hard part is getting a command in the browser that will invoke the script that adds a URL. Before I switched to w3m, I would copy and paste the URL into a shell to add it :-(. A scriptable environment is one of the things I miss when working on Unix desktops. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message