From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18499 Path: main.gmane.org!not-for-mail From: Matt Simmons Newsgroups: gmane.emacs.gnus.general Subject: Re: all you MP3 people out there... a fix for lars! Date: 10 Nov 1998 23:10:24 -800 Sender: owner-ding@hpc.uh.edu Message-ID: References: <86vhl48scz.fsf@kramer-fast.bp.aventail.com> <87g1c7o795.fsf@perv.daft.com> <8iww5j3x6e.fsf@broca.biostr.washington.edu> <86d87a58uo.fsf@kramer-fast.bp.aventail.com> <86zpad53al.fsf@kramer-fast.bp.aventail.com> <86lnlrviwx.fsf@kramer-fast.bp.aventail.com> <86iugu8elw.fsf@kramer-fast.bp.aventail.com> Reply-To: simmonmt@acm.org NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035157012 6455 80.91.224.250 (20 Oct 2002 23:36:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:36:52 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id CAA24527 for ; Wed, 11 Nov 1998 02:13:59 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id BAB01927; Wed, 11 Nov 1998 01:10:58 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 11 Nov 1998 01:10:49 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id BAA01565 for ; Wed, 11 Nov 1998 01:10:39 -0600 (CST) Original-Received: from auckland.aotearoa.dom (ali-ca20-61.ix.netcom.com [209.110.228.253]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id CAA24464 for ; Wed, 11 Nov 1998 02:10:30 -0500 (EST) Original-Received: (from simmonmt@localhost) by auckland.aotearoa.dom (8.9.0/8.9.0) id XAA18971; Tue, 10 Nov 1998 23:10:25 -0800 (PST) Original-To: ding@gnus.org X-URL: http://www.netcom.com/~simmonmt X-Face: D[PqtC0{)hpA)1z!)zD\KAuEdk$Z}~Y|fa{B^.?FJD5a*QxZ=O%/.`LL;NE0xRmT1B] 0SHZ7.Vdo1a-OX%C)Cj^AGiun"$hx&S>=`{{,fiYtCo'QtAo>=,qdy(II In-Reply-To: Lars Magne Ingebrigtsen's message of "07 Nov 1998 14:54:49 +0100" Original-Lines: 43 User-Agent: Gnus/5.07004 (Pterodactyl Gnus v0.40) XEmacs/21.0 (Pyrenean-pre6) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:18499 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:18499 >>>>> "Lars" == Lars Magne Ingebrigtsen writes: Lars> DISCID=46074b06 Lars> That DISCID thing looks really clever, doesn't it? 32 bits; that Lars> should be four billion possibilities, right? Hah! Shows how little you actually grasp of the deeper meanings of the CDDB format. You actually thought that the DISCID was a number! What could possibly have made you think that? Was it that it looks like a base 16 number? pfeh. Maybe it was the fact that the components of the DISCID are themselves numbers? uhm, no. If you gain enlightenment, you will of course realize that the DISCID is... a string! Why else would a request for DISCID 410fd10 fail to match the record with DISCID 0410fd10? Specifically, why else would it whine about a badly formed DISKID? Why else would I have to ask Bill to apply the following to cddb.el to work around a galette bug? Grrr. ---------------------------------------------------8<----------------- RCS/cddb.el,v --> standard output revision 1.2 --- - Tue Nov 10 23:07:54 1998 +++ cddb.el Tue Nov 10 23:07:45 1998 @@ -262,7 +262,7 @@ ;; Get the disk ID (re-search-forward "^CDROM: disk id = \\([a-f0-9]+\\)" nil t) - (setq discid (match-string 1)) + (setq discid (format "%08x" (string-to-int (match-string 1) 16))) (list discid num-tracks length track-info)))) ----------------->8--------------------------------------------------- Matt -- Matt Simmons - simmonmt@acm.org - http://www.netcom.com/~simmonmt The man who smiles when things go wrong has thought of someone he can blame it on. --Jones' Law