Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Slash::Blob

posted by Krow on 03:40 PM February 21st, 2003   Printer-friendly   Email story
I've added Slash::Blob to the main dist in CVS. Its a module for storing binaries and serving them up on the web. It will be the foundation for most of the new features we are adding so that we can use images and pdf files with stories (and other subsystems).
If you are writing modules you may find it useful for your own applications. Feedback is welcome.
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • This is a major "win" dude, and makes all the difference between "using slash to run a meta-news site" and "using slash to run any site".

    I for one, am greatly appreciative.
  • What, Christmas in Feb? What the heck!?!?

    I'm going to be in heaven now. Thanks Krow!

    --

    --
    It's either on the beat or off the beat, it's that easy.
  • Ok, so, I updated my Slash site using the latest CVS. Did all the stuff in updates, and installed the plugin.

    Now how does it work?

    --

    --
    It's either on the beat or off the beat, it's that easy.
    • Just the first stage. Mainly announced for the module writers. I may though put a simple interface on it to begin with though if people would find that useful. Give a few more weeks and it will be integrated into admin.pl to make story attachments a bit easier.
      --

      --
      You can't grep a dead tree.
      • Ooo, I for one would like a simple interface. Perhaps a way to have multiple Blobs in a story. And maybe even to have some sort of access level stuff (IE: registered, good Karma, etc).

        Thanks for the work!

        --

        --
        It's either on the beat or off the beat, it's that easy.
        • I will see what I can do about putting in a simple interface (it should be trivial).

          The way stories will be done, it will be possible to have multiple binaries in a single story, and they won't all have to be images. AKA some could very well be pdf files and such.
          --

          --
          You can't grep a dead tree.
  • can't wait to play...
    --


    "How about you interface with my ass? By biting it!" --Bender
    • [Sun Feb 23 04:40:48 2003] [error] Can't locate Slash/Apache/Banlist.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl . /usr/local/apache/ /usr/local/apache/lib/perl) at (eval 152) line 3.

      [Sun Feb 23 04:40:48 2003] [error] Undefined subroutine &Slash::Apache::Banlist::handler called at PerlAccessHandler subroutine `Slash::Apache::Banlist' line 1.

      [Sun Feb 23 04:40:58 2003] [error] Undefined subroutine &Slash::Apache::Banlist::handler called at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Sl ash/Apache.pm line 252.
      --


      "How about you interface with my ass? By biting it!" --Bender
      • From your cvs checkout do a make clean; make; make install.

        I think for some reason it didn't put the Banlist pm in your site_perl.
        --

        --
        You can't grep a dead tree.
        • First, I updated my CVS (cvs update -APCd), then did the 'make clean; make; make install', last went and reinstalled the slashsite, and got this:

          What is the email address of the account? [vlad@vlad.geekizoid.com]
          DBD::mysql::db do failed: Column 'value' cannot be null at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Sl ash/DB/Utility.pm line 590.
          Error in library:Slash::DB::Utility:/usr/local/lib/perl5/si te_perl/5.8.0/i686-linux/Slash/DB/Utility.pm:580:I NSERT INTO site_info (value,name,description) VALUES(
              NULL,
              'plugin',
              NULL)

          Which was called by:Slash::Install:/usr/local/lib/perl5/site_perl/5 .8.0/i686-linux/Slash/Install.pm:34:INSERT INTO site_info (value,name,description) VALUES(
              NULL,
              'plugin',
              NULL)

          Can't open /usr/local/slash/plugins/Blob/dump: No such file or directory at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Sl ash/Install.pm line 353.
          Template file /usr/local/slash/plugins/Events/templates/data;eve nts;default could not be opened: No such file or directory
          DBD::mysql::db do failed: Column count doesn't match value count at row 1 at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Sl ash/DB/Utility.pm line 590.
          Error in library:Slash::Install:/usr/local/lib/perl5/site_p erl/5.8.0/i686-linux/Slash/Install.pm:360:INSERT INTO menus VALUES (null,'admin','Menus','[% constants.rootdir %]/menuedit.pl',1000,99)
          Which was called by:Slash::Install:/usr/local/lib/perl5/site_perl/5 .8.0/i686-linux/Slash/Install.pm:161:INSERT INTO menus VALUES (null,'admin','Menus','[% constants.rootdir %]/menuedit.pl',1000,99)
          Failed on :INSERT INTO menus VALUES (null,'admin','Menus','[% constants.rootdir %]/menuedit.pl',1000,99):
          DBD::mysql::db do failed: Column count doesn't match value count at row 1 at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Sl ash/DB/Utility.pm line 590.
          Error in library:Slash::Install:/usr/local/lib/perl5/site_p erl/5.8.0/i686-linux/Slash/Install.pm:360:INSERT INTO menus VALUES (null,'menuedit','Create New Menu','[% constants.rootdir %]/menuedit.pl?op=menucreate',1000,0)
          Which was called by:Slash::Install:/usr/local/lib/perl5/site_perl/5 .8.0/i686-linux/Slash/Install.pm:161:INSERT INTO menus VALUES (null,'menuedit','Create New Menu','[% constants.rootdir %]/menuedit.pl?op=menucreate',1000,0)
          Failed on :INSERT INTO menus VALUES (null,'menuedit','Create New Menu','[% constants.rootdir %]/menuedit.pl?op=menucreate',1000,0):
          DBD::mysql ::db do failed: Column count doesn't match value count at row 1 at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/Sl ash/DB/Utility.pm line 590.
          Error in library:Slash::Install:/usr/local/lib/perl5/site_p erl/5.8.0/i686-linux/Slash/Install.pm:360:INSERT INTO menus VALUES (null,'menuedit','Back to Admin','[% constants.rootdir %]/admin.pl',100,0)
          Which was called by:Slash::Install:/usr/local/lib/perl5/site_perl/5 .8.0/i686-linux/Slash/Install.pm:161:INSERT INTO menus VALUES (null,'menuedit','Back to Admin','[% constants.rootdir %]/admin.pl',100,0)
          Failed on :INSERT INTO menus VALUES (null,'menuedit','Back to Admin','[% constants.rootdir %]/admin.pl',100,0):
          --


          "How about you interface with my ass? By biting it!" --Bender
        • Also, that didn't change the error in the server logs. :-)
          --


          "How about you interface with my ass? By biting it!" --Bender
  • Hey Krow, is this what you were referring to the other day [slashcode.com]?

    It sure looks like it :)

    Ok, here's my question - why have seclev in the schema [slashcode.com]? Why not use ACL? I'm just curious. The seclev's tried, and true and works. However, even in my own plugins and code and crap, I'm constantly wondering if I shouldn't stop using it altogether and use the ACL system.

    tf23
    --
    lottadot [lottadot.com]
    • Baically because we have never put an editor for them in admin.pl and we just aren't in the habit of using them. It is hard to shake the practise.

      And yes, this is what I was talking about.
      --

      --
      You can't grep a dead tree.
  • Digging deeper into the code, it seems everything will be saved into a MYSQL database. Is that smart? Is that fast?

    Why can't we get something that could store the files in directories and such like perhaps what MoveableType does?

    --

    --
    It's either on the beat or off the beat, it's that easy.
    • It is very fast.

      Livejournal serves all its images from a DB. We are talking 18 million page views and images on all of them.

      It works very well :)
      --

      --
      You can't grep a dead tree.
      • LiveJournal.com [livejournal.com]? Hmm, well, if you say it is fast, I'll trust ya ;-).

        So when can we get some sorta interface to add stuff to stories and stuff?

        --

        --
        It's either on the beat or off the beat, it's that easy.
        • Yep, them.

          If I wasn't very tired at the moment and feeling a little paranoid I would commit it and all of the rest of the new tag language this evening. So the answer is probably tomorrow afternoon.
          --

          --
          You can't grep a dead tree.