Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44982

Re: Making safe file names

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Making safe file names
Date 2013-05-08 20:16 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-1B572B.20162508052013@news.panix.com> (permalink)
References <51895D03.4000300@gmail.com> <CAA=1kxTnyFgLW=N_7mOCNnj75qDHt8Dfd-aYUYD8deLTrUBQ4g@mail.gmail.com> <518989E1.8010701@gmail.com> <mailman.1465.1368056269.3114.python-list@python.org>

Show all headers | View raw


In article <mailman.1465.1368056269.3114.python-list@python.org>,
 Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:

> On Tue, 07 May 2013 18:10:25 -0500, Andrew Berg
> <bahamutzero8825@gmail.com> declaimed the following in
> gmane.comp.python.general:
> 
> > None of these would work because I would have no idea which file stores 
> > data for which artist without writing code to figure it out. If I
> > were to end up writing a bug that messed up a few of my cache files and 
> > noticed it with a specific artist (e.g., doing a "now playing" and
> > seeing the wrong tags), I would either have to manually match up the hash 
> > or base64 encoding in order to delete just that file so that it
> > gets regenerated or nuke and regenerate my entire cache.
> >
> 	And now you've seen why music players don't show the user the
> physical file name, but maintain a database mapping the internal data
> (name, artist, track#, album, etc.) to whatever mangled name was needed
> to satisfy the file system.

Yup.  At Songza, we deal with this crap every day.  It usually bites us 
the worst when trying to do keyword searches.  When somebody types in 
"Blue Oyster Cult", they really mean "Blue Oyster Cult", and our search 
results need to reflect that.  Likewise for Ke$ha, Beyonce, and I don't 
even want to think about the artist formerly known as an unpronounceable 
glyph.

Pro-tip, guys.  If you want to form a band, and expect people to be able 
to find your stuff in a search engine some day, don't play cute with 
your name.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Making safe file names Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-08 19:37 -0400
  Re: Making safe file names Roy Smith <roy@panix.com> - 2013-05-08 20:16 -0400
    Re: Making safe file names Chris Angelico <rosuav@gmail.com> - 2013-05-09 10:27 +1000
    Re: Making safe file names Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-09 01:49 +0000
      Re: Making safe file names Roy Smith <roy@panix.com> - 2013-05-08 21:56 -0400
    Re: Making safe file names Andrew Berg <bahamutzero8825@gmail.com> - 2013-05-08 21:11 -0500
      Re: Making safe file names Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-09 03:08 +0000
        Re: Making safe file names Roy Smith <roy@panix.com> - 2013-05-09 08:55 -0400
          Re: Making safe file names Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-05-10 12:04 +1200
            Re: Making safe file names Tim Chase <python.list@tim.thechases.com> - 2013-05-09 19:17 -0500
        Re: Making safe file names Chris Angelico <rosuav@gmail.com> - 2013-05-09 13:53 +1000

csiph-web