Thank you to those who donated to Piano Society in 2017.

RSS feeds

Discussion in 'General' started by schmonz, Jan 6, 2007.

  1. techneut

    techneut Active Member Piano Society Artist

    Joined:
    Jun 12, 2006
    Messages:
    9,927
    Likes Received:
    2
    Location:
    Netherlands
    Last Name:
    Breemer
    First Name:
    Chris
    Nope, I don't think it is stored in the mp3. The Id3Lib API does not have a method or property for it and that is a sure sign. I can calculate it if it's a CBR recording but if it's VBR then I guess you have to play the file before you know the length. This why I really only want CBR recordings.
    The calculation is easy enough in C but I would not quite know how to script it.

    BTW schmontz, you'll have to teach me the basics od RSS feeds as I don't really understand what it is you have been doing. It would be nice if people can subscribe to the new recordings list.
     
  2. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    Okay, the latest mp3splt spits out track length to stderr as it works, and I've got a sed expression to convert that to the format iTunes wants. For the time being, it has to do a useless split to /dev/null, but that's quick enough for automation purposes, and I've put in a request for a command-line argument to just print the duration of the input and exit. Could you install mp3splt? Probably handy to have on the server anyway, for quick-trimming submissions that need it.

    The easiest way to start with RSS and Atom, assuming you have a Gmail account, is Google Reader. It should give you the idea pretty quickly, and some folks like it well enough to use as their primary feed reader.
     
  3. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    Pleeeeeeease? Thanks :)
     
  4. techneut

    techneut Active Member Piano Society Artist

    Joined:
    Jun 12, 2006
    Messages:
    9,927
    Likes Received:
    2
    Location:
    Netherlands
    Last Name:
    Breemer
    First Name:
    Chris
    Argh... this is no fun :!: It wants the jdk1.4 to be installed, and the libmp3splt, which in turn wants libid3tag, lobigg0, libvorbis, etc.....

    Isn't there some "apt-get" command which downloads and installs all the dependencies ? I am not too good at this stuff really, and too lazy to download and install dozens of packages manually.
     
  5. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    JDK? Yikes. I didn't need that on my NetBSD or Mac OS X systems when I was packaging mp3splt for pkgsrc. I'm pretty ignorant about other package systems, but judging from this page, looks like the command to try is "apt-get install mp3splt":

    http://www.debian.org/doc/FAQ/ch-pkgtools.en.html
     
  6. techneut

    techneut Active Member Piano Society Artist

    Joined:
    Jun 12, 2006
    Messages:
    9,927
    Likes Received:
    2
    Location:
    Netherlands
    Last Name:
    Breemer
    First Name:
    Chris
    Yeah if only that would work ! Throws me some blurb, then says

    Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

    So I do that, and then it can't get the packages, throwing 404 HTTP errors:

    ...
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/ ... 2_i386.deb 404 Not Found
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    So I do 'apt-get -f install --fix-missing' and , after throwing the 404 errors again, apt-get proceeds to just sit there eating up all the cpu.

    Lastly, I do 'apt-get update' and it throws me a lot of blurb, 404 error, and lastly the message

    E: Some index files failed to download, they have been ignored, or old ones used instead.

    Seems like apt-get update did not help any as the original install command still thros the same errors. Cripes, this hairy-fairy stuff does get on my nerves. So much for Linux saving the world... give me Windows anytime :x

    I think I'll give up on trying to install anything. Earlier attempts to install the JDK 1.4 ended in a similar quagmire.
     
  7. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    Yuck. Tell you what, I'll try build mp3splt into my home dir using pkgsrc (and then get rid of pkgsrc). In order to bootstrap pkgsrc the system needs to have libncurses-dev and/or libtermcap -- can apt-get at least do those for us?
     
  8. techneut

    techneut Active Member Piano Society Artist

    Joined:
    Jun 12, 2006
    Messages:
    9,927
    Likes Received:
    2
    Location:
    Netherlands
    Last Name:
    Breemer
    First Name:
    Chris
    I have not made friends with apt-get yet. It keeps throwing HTTP 404 errors at me whatever I try. Maybe I should try and use another repository URL but I am not sure what to choose.

    But why would mp3slt, which I assume to be a commandline utility, need termcap or even curses :?:
     
  9. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    It's the pkgsrc tools themselves that need some terminal awareness -- at least tnftp, which has a nice interactive mode. (Then again, I'm still amazed that apt-get wanted to pull in Java for mp3splt. Something in the middle obviously thinks it needs it, I just have no idea what that could possibly be...)

    According to /etc/lsb-release, the OS is Ubuntu 6.10. That's pretty old, right? Maybe too old for the repositories to be around anymore? https://help.ubuntu.com/6.10/ubuntu/ser ... t-get.html is the most specific apt-get documentation I can find about that version, and maybe the apt-get update will help with the 404's. (In the long run I'd guess we'd want to keep a little closer to the latest Ubuntu, though of course that requires someone to do the work.)
     
  10. techneut

    techneut Active Member Piano Society Artist

    Joined:
    Jun 12, 2006
    Messages:
    9,927
    Likes Received:
    2
    Location:
    Netherlands
    Last Name:
    Breemer
    First Name:
    Chris
    I am not not sure if we really want to keep up with Ubuntu patches, as long as we have no problems. It would perhaps make sense to do so, but we have not got a dedicated sysadmin. Personally I want to stay away from this quicksand as much as possible, and I am not sure if the issue at hand is worth all the trouble.

    But, if you think mp3splt is something we must have I can ask the Swedish admin guy to see if he can install it.
     
  11. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    Okay, I was wondering that (that's why I qualified my guess). mp3splt or no mp3splt, if Ubuntu 6.x is no longer being supported (which I don't know for a fact), then the system is fragile against e.g., security holes, which tend to rear their head at inconvenient junctures and consume annoying amounts of time to deal with, unless the OS can be expected to provide convenient and timely updates for such things. Which Ubuntu definitely does, for whatever versions of Ubuntu they're paying that kind of attention to.

    So despite the fact that none of this is gonna be news to you, I'd say now's the time to think about the bigger-picture problem pretty carefully (if you haven't already), precisely because it isn't hurting right now. ;-)

    I would be happy to volunteer some of my sysadmin-time -- including doing a significant upgrade of the OS, if we can plan it well enough that we're comfortable -- starting in a couple weeks, when midterm exams and papers are behind me. Would you be open to that?
     
  12. techneut

    techneut Active Member Piano Society Artist

    Joined:
    Jun 12, 2006
    Messages:
    9,927
    Likes Received:
    2
    Location:
    Netherlands
    Last Name:
    Breemer
    First Name:
    Chris
    Yes we could certainly use some help in this area. I'll need to discuss this with Robert though. As far as I remember the two of you previously agreed on something but I am not sure what exactly it was.
     
  13. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    Me neither. I'm dead to the world until the 19th but then I have winter break, perfect for taking however long it takes to do whatever needs to be done for server health (and RSS feeds). Could you try to work something out with Robert for me in the next few weeks? And then I'd need you guys to be available around during some of that time to explain any confusing details of the status quo and vet/approve/veto the changes I'll want to propose. Is that doable?
     
  14. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    Hmmm... this stuff seems to have gone missing since I last worked on it. In fact, my home directory looks awfully empty. Chris, Robert, is there a backup from which my nearly-finished work could be restored? I've got time and I'd really like to see Piano Society doing podcasting -- and not only because it's the only way I'll ever stand a chance of keeping up with all the new music published here. :p

    Thanks guys.
     
  15. techneut

    techneut Active Member Piano Society Artist

    Joined:
    Jun 12, 2006
    Messages:
    9,927
    Likes Received:
    2
    Location:
    Netherlands
    Last Name:
    Breemer
    First Name:
    Chris
    The Return Of The Schmonz 8)
    In dire need of diskspace, we zipped up your homedir and moved it to another partition. Frankly, we did not think you were with us anymore, in terms of being involved in the site. But if you intend to continue, of course I can put it all back again.
     
  16. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    Yes please! I promise my absences will always be intermittent. :)
     
  17. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    Meep meep?
     
  18. techneut

    techneut Active Member Piano Society Artist

    Joined:
    Jun 12, 2006
    Messages:
    9,927
    Likes Received:
    2
    Location:
    Netherlands
    Last Name:
    Breemer
    First Name:
    Chris
    Blip. Squeak. Pip !

    Forgot all about that. Will do it tonight. Do be conservatiove with out diskspace please !
     
  19. techneut

    techneut Active Member Piano Society Artist

    Joined:
    Jun 12, 2006
    Messages:
    9,927
    Likes Received:
    2
    Location:
    Netherlands
    Last Name:
    Breemer
    First Name:
    Chris
    It's all back there, Amitai. Have fun.

    You seem to have installed an awful lot of packages... All needed for RSS ? If not, please remove so as to save diskspace.

    If you're good with installing software on Linux, maybe you could install telnet over http ? I tried that, but it requires Java and I did not succeed in installing that.
     
  20. schmonz

    schmonz Amitai Schleier Piano Society Artist Trusted Member

    Joined:
    Nov 19, 2006
    Messages:
    191
    Likes Received:
    0
    Location:
    New York, NY
    Home Page:
    Last Name:
    Schleier
    First Name:
    Amitai
    Whoops, I'd had an SSH key in place from before (that was still working yesterday) and now I seem not to have it anymore -- I'm being prompted for a password instead (beats me what it is, if I ever had one set). Is there a copy of my ~/.ssh/authorized_keys you could put back? If not, please create it (owned by schmonz, mode 600) with the following contents:

    ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxJvX8AFc5o6eNsgOpJM69Co7C7FZ2GPanoNazD2ANYS2BVAir1QDG/PEqEhssLmvgkJ2UirNL8CQX8Af1DAqs/UJnhYelbYC7QRK3l4byCjfyUkgrCujqQ4oj/ydTDKNdYjoludI5eFW8GC4O0K5AHcXfs/hdI99Yc76vVaaZBNq1EDwfoGqwGegOmyQjdiHta7/wamN8bVeyXi8qepNzlnYzOH8HtcneP61AvrC+hEcZD2I302tCgUDfW0VgGo30mC2etyICZX/kWWiLtwjP50DpiujbVAEd8gs/UPvKXFXRVURm4KJt/bAFkxZld2Q+QqyIc618+M7I/0Dt6HCyw== schmonz@magnetic-babysitter

    I'll remove as much as possible once I manage to get logged in again. ;-)
     

Share This Page