Slashdot Mirror


New Slash Version v1.0.3

pudge writes "Yo. We released slash-1.0.3. Bug reports and CVS and file downloads are on SourceForge. Slashcode is now hosted at Exodus with Slashdot and Freshmeat. " The scary part is that now Slashdot and Slashcode are totally synched up... which means programmers can e-mail diffs instead of bug reports and feature suggestions (hint hint hint!)

40 of 109 comments (clear)

  1. What did you do with CmdrTaco?! by Longing · · Score: 4

    Slashcode and Slashdot are synched up? Who are you, and what did you do with CmdrTaco?! We demand his release!!

    1. Re:What did you do with CmdrTaco?! by El+Volio · · Score: 5
      "Slashcode and Slashdot are synched up? Who are you, and what did you do with CmdrTaco?! We demand his release!"

      Every time you ask about his release, they'll keep him in captivity for another 24 hours...

      --

      "You can never have too many elephants on your team."

    2. Re:What did you do with CmdrTaco?! by scrytch · · Score: 2

      > Every time you ask about his release, they'll keep him in captivity for another 24 hours..

      crontabs are being edited across the land as we speak...

      --
      I've finally had it: until slashdot gets article moderation, I am not coming back.
  2. What About Ad Rotation? by LaNMaN2000 · · Score: 2

    In the last update, you mentioned that you abandoned Adfu in favor of a C program that you developed for ad-rotation, which would run under Apache. When will the code for that be available?

    --

    ByteMyCode.com: A Web 2.0 code sharing community.
    1. Re:What About Ad Rotation? by BilldaCat · · Score: 2

      I use Adcycle (http://www.adcycle.com) with my existing Slash installation (1.0.2) at http://www.e-league.com with no problems.. I'd try that if you need an ad rotator.

      --
      BilldaCat
    2. Re:What About Ad Rotation? by Kurt+Gray · · Score: 2
      I'm working on it. Right now the Andover.Net ad rotation system works on an Apache module written in C. The ad data is stored in text files locally on each web server (or NFS server for clustered web sites like Slashdot) and hourly cron jobs on each server count number of impressions per ad then create new ad rotation lists. I don't know whether to be proud or ashamed that the system is still based on flat text files and string parsing -- I like to keep things simple for the sake of reliability. We're currently working on moving all of the ad serving logic into a CORBA server that talks to a database -- so much for simplicity.

      Anyway, if you're still interested, even after I've shamefully confessed that it's all based on flat text files, please email me and I'll let you know when I've got a SourceForge project ready for it.

  3. feature suggestions by ChristTrekker · · Score: 5
    • Valid HTML 4.
    • A set of style rules that doesn't blind a guy when reading BSD or Apache sections.
    1. Re:feature suggestions by dingbat_hp · · Score: 4

      I'd support XHTML (but go easy on the CSS), but not XML. XML doesn't allow much extra that can't be achieved anyway by screen scraping, and that's pretty easy in XHTML (Palm portallers, read the last para before screaming at me).

      The only real benefit from going with XML would be for people who wanted to leech Slashdot content and rebadge it on other sites in a fairly greedy manner. This isn't something that many will want, nor should it be encouraged. If there's a demand for headline and link-swapping between sites, then use RSS - it's what it's there for.

      The downside of XML, is that it's compatible with nothing out there browser-wise and so you'd inevitably fall back to a two-formats legacy position, probably involving HTML 3.2 for the lesser stream.

      XHTML Transitional doesn't break any existing browsers, and it still lets you use enough format control to make it viewable on old Netscapes. A good push for WAI standards on Slash content would fit in with an XHTML move and would probably benefit people doing portals for wireless and small-screen devices. I certainly don't think that wireless portalling needs XML (with a SlashSchema) instead of XHTML.

    2. Re:feature suggestions by King+Babar · · Score: 2
      The downside of XML, is that it's compatible with nothing out there browser-wise and so you'd inevitably fall back to a two-formats legacy position, probably involving HTML 3.2 for the lesser stream.

      Two points about this.

      First, I think there is better XML display support than you might think. Given that you're realistically looking something like a year ahead on this, I don't see why you shouldn't go for the gusto.

      You also suggest that going with just XHTML won't require any fall-back position. I'm really not sure that's true. And even if it were true, you could turn an internal XML representation into the traditional, cruftified Slashdot HTML that we and our browsers know and love.

      But, having said that, I agree that XHTML (with full CSS) is waaaay better than nothing. Given that Slashdot is News for Nerds, I see no reason why it shouldn't be at least closer to the leading edge with respect to style sheets and standards compliance.

      --

      Babar

    3. Re:feature suggestions by angelo · · Score: 2

      Correct, but the problem with XSL is that it is somewhat of a proc hog when run server-side, as you have to re-purpose your pages for each user. While you have to do this anyway for custom pages on /., they don't usually do this by browser.

      I like XSL, but it would appear to be a zero sum gain over HTML4.1Transitional(or XHTML) and CSS.

    4. Re:feature suggestions by angelo · · Score: 2

      Of course, somebody will need to re-write the templates for /. and some of the validators. One problem: all of the templates use upper-case elements, and suffer from a severe "quote-lack", since even numbers need to be quoted. Most of the empty elements do not have a trailing />. A lot of the code validates out any element with a /> ending.

      These things do not make it impossible to redo Slashdot, just darnde difficult.

    5. Re:feature suggestions by dingbat_hp · · Score: 2

      You can use XSL/whatever-transformations-you-desire to spit it out as HTML (or XHTML) from the server side today

      I know this. For the last twelve months, I've worked on little else. Trust me, that's not a good choice for building any Slashcode version in the "near future".

      Similarly, neither is client side XML. You can get away with that on msdn.microsoft.com/xml/, where you know anyone connecting is going to understand the issue, even if they are using a non-IE browser. You'd have to be pretty brave though to try it in the Linux-loving mosh-pit of Slashdot !

  4. Re:the reason they dont switch.. by Trem · · Score: 2

    Yeah, they're so lousy, they can't even come up with a web site that anyone actually uses. :p
    And what's wrong with using what you know? If the code _works_ and it works just fine, why write it in a "more complicated" language? Did I mention that the code works?

  5. Re:The *real* wonderful part... by ai731 · · Score: 3
    The real scary part about this, is that now the trolls will have the full source code to analyse for loopholes and bugs that will allow them further abuse of the system.

    the real wonderful part is that there will now be lots more 'pairs of eyes' checking the slashcode for loopholes and bugs that will allow quicker bugfixes and a more robust system...

    ... i've heard this argument somewhere before - haven't you?

    ai731

    --

    --
    "I use the words you taught me. If they don't mean anything any more, teach me others. Or let me be silent"
  6. Re:the reason they dont switch.. by TaxSlave · · Score: 2

    Some of us out here are even worse programmers, and wouldn't have the skill to write something on this scale if they wanted to. I should know, I'm one of them.

    I setup slash a few months ago, and had a major learning experience with apache, perl, CPAN and funky virtual server setups. Now, I've got it running great and I'm extending the functionality by running Zope side-by-side.

    I've been talking about my website idea for a LONG time with my family. Thanks to these lousy programmers, an even worse programmer has been able to impress a lot of people.

    Now, if I can just get hits.

    Dave

  7. Does it serve properly yet? by Old+Wolf · · Score: 3

    For the last few weeks, Slashdot has add annoying "pauses" where the browser will connect to the server, but no data will ever come. These pauses last for anything from one minute to 30. Then I have to squish all my posting in before the next piece of downtime.

    Has anyone else noticed this?

    1. Re:Does it serve properly yet? by GC · · Score: 2

      In my last company we had a UUNET line. Even when overall usage was low slashdot would hang like hell on me.
      At home on a 56k (Freeserve, UK) link it would go through fine.

      I thought that the banner ads were hanging the page load, because UUNET had poor routing to the banner ad sites.

      In my new company (AT&T line) slashdot loads just great.

      It might also have something to do with the fact that Slashdot has been completely revamped over recent weeks.

  8. Re:Don't you think it's time to switch from Slash? by luckykaa · · Score: 4

    Rewrite it in VBScript so that it runs locally on compliant browsers.

    Sorry..... I'll shoot myself now.

  9. Suggestions for discussion by Hrunting · · Score: 5

    Here's a few things to bandy about (no need for actual diffs).

    Theming
    Everyone bitches about the colors, especially in the BSD and Apache sections (and, I must say, YRO isn't much better). Why not setup a colors preferences panel? That shouldn't be too hard to implement.

    Removal of Comments
    Given the recent controversy over Microsoft and what not, give users the ability to remove their own comments, maybe with a karma penalty or something. We can moderate our system, but we can't responsibly manage it.

    That's just a couple of ideas, and there's tons more, I'm sure. On to Slash 2.0!

    1. Re:Suggestions for discussion by kaphka · · Score: 2
      give users the ability to remove their own comments
      There's a better solution than this, I think, which I've advocated for a while: Let users apply negative moderation to their own posts, whenever they want to, with no karma penalty. Presumably this could be done from the "user info" page.

      This way, nobody would be able to actually "erase" a comment, but foolish or accidental posts could be painlessly swatted down by their authors.
      --

      MSK

    2. Re:Suggestions for discussion by Hrunting · · Score: 2

      There's a better solution than this, I think, which I've advocated for a while: Let users apply negative moderation to their own posts, whenever they want to, with no karma penalty.

      I actually think this is a great idea for 'removing' posts in general, except it fails to solve the only real reason I (for one) would ever want to see a post removed, and that's if it violated some sort of law (again, the example being the Microsoft letter). Moderating it down still allows it to be in the system, which could eventually be a legal hassle. I know there are logical referential reasons why posts can't just *poof*, but allowing the user to replace his post with message (sort of away thing), either a [ this post has been deleted ] or more personalized [ I have been asked by greedy corporate lawyers to remove this post or be sued. Their address is so contact them. ] message could solve both problems as well as inform. Obviously, only registered accounts would qualify; ACs could fall under the jurisdiction of Slashdot. Also, I think this should come with a heavy karma penalty, because self-censorship affects others. Allowing others to mark their posts down without penalty could lead to the removal of some very insightful threads from the common discussion.

      Just like you can put up an offensive or illegal sign in a community park, you should also be able to take it down and put a conciliatory or explanatory note back up in its place.

  10. Re:feature suggestions (-1, Redundant, -1, Redunda by Ed+Avis · · Score: 2

    I think that Cascading Style Sheets _should_ mean that you can set up your own colour schemes, which override those used by Slashdot. If Slashdot is using CSS properly, that is.

    I don't know if any browser lets you specify different stylesheets for different sites though.

    --
    -- Ed Avis ed@membled.com
  11. Re:Meta-moderation in 1.0.3? by Anomalous+Canard · · Score: 2

    Yes, the meta-mod bug looks like it's fixed.

    If you have never meta-moderated, go to http://slashdot.org/metamod.pl and get in on the fun.

    Anomalous: inconsistent with or deviating from what is usual, normal, or expected

    --
    Anomalous: deviating from what is usual, normal, or expected
    Canard: a false or unfounded repor
  12. Re:So fix it! by pudge · · Score: 4
    Do NOT send it to CmdrTaco. Or me, or CowboyNeal, or CaptTofu. Use SourceForge for bugs and patches and feature requests.

    As to us "not knowing SQL" (I am not sure if that is tongue-in-cheek or not), well, all I can say is that there is a lot of really old code in there. Sure, you are going to see a lot of cruft. We're working hard on rewriting major portions of the thing. You may see some code in there that does nothing at all, or does nothing useful, or does something bad. All I can say to that is "duh." Send a patch or a bug report if you like, we will certainly appreciate it.

    But don't bother pointing out that, gasp, bugs and bad code are in Slash. That's a given. That's why we are working so hard on it and devoting so many resources to it (four full-time developers, IIRC, not including CmdrTaco, plus several more, like Cliff, who are splitting time with Slash and other projects). The code was pretty good for what it was, but over time it got crufty, and now we are going back and fixing it. That's how these things work.

  13. Re:need to account for people with high karma by radja · · Score: 2

    My suggestion would be to use redundant in those cases. Like this one.

    //rdj

    --

    No one can understand the truth until he drinks of coffee's frothy goodness.
    --Sheikh Abd-Al-Kadir, 1587
  14. HTML formatting suggestion by Now15 · · Score: 3
    Remove the legacy HTML 3.2 code base, and replace with a fully HTML 4 compliant structure which is visually formatted with cascading style sheets. Allow users to specify their own style sheet from a hosted URL.

    The most important goal of this change should be code compactness, whereby repetitive use of bgcolor, font, align, etc is replaced with simplified CSS classes. This should significantly reduce bandwidth requirements per user, most important considering the ever-solid limit of 56k dial-up.

    While it is nowhere near valid HTML 4, users of the very latest nightly builds of Mozilla (an important display bug was recently fixed), or the excellent IE5 for Windows (I hate Microsoft more than YOU do, but their HTML rendering engine is admittedly a work of art), can check out the following link here: whirlpool.net.au .

    It's my hobby site with a slash-esque feel, written totally by hand and powered with Cold Fusion (it's no PHP, but it's easy and fast). The design concept, programming, content and everything else was done by me.

    I would be very interested in donating a design structure for Slashdot, keeping in mind download times, the legacy look-and-feel, and HTML 4 compliance. test

    --

    --

    Computers are useless: they can only give you answers. -- Pablo Picasso
  15. Re:If... by pudge · · Score: 2

    I don't know enough about mysql and other databases to know if something else would be better. That said, I am impressed with mysql, and my only significant problem with it for Slashdot is lack of replication, which is being developed now.

    I would absolutely not go to PHP, basically because I love Perl and don't like PHP.

    Would PHP increase development speed? No. I am very fast at developing with Perl, and I don't see how developing in another language would be faster. Even if I could learn PHP real well, I would still be as fast or faster in Perl. For other people, it might increase development speed, I dunno. Not for me, certainly.

    Would PHP be able to keep up with traffic? Probably, as much as Perl can.

    Would PHP be faster than Perl? Of course not.

    Would PHP require less memory than Perl? I don't know. I've heard it would.

    Would PHP make it more maintanable and expandable by other people? If those people knew PHP better than Perl, yes. If they knew Perl better than PHP, no. "Maintainability" is a function of good programming practices, not language. My Perl programs and modules are far more maintainable than a lot of C, C++, Python, and PHP code out there. And there are far less maintainable than others of the same languages. The language is mostly irrelevant in this respect.

    And in that line of thought, objectively speaking, it is a clear fact that moving to PHP would make Slash less maintainable, since the developers working on the project know and like Perl a lot better.

    This stupid PHP advocacy is about as useful and as interesting as BSD vs. Linux. If you like PHP, use it. I don't give a damn. But don't try to make me feel silly or stupid or wrong for using Perl, just so you can feel better about your personal decision to use PHP. It won't work. I am proud to use Perl, and love it, and the best emotion you can get out of me is pity, not because you are using a language I feel to be less useful and interesting and mature, but because you have little better to do with your time.

  16. So where do we report "Slashdot-specific" errata? by orpheus · · Score: 2

    A little off-topic, but important to /. and /.'ers

    Sometimes I notice bugs that do not seem to be in the Slashcode per se, but seem to be affecting Slashdot alone. Often these are not consistent ongoing bugs, but transient, lasting 1-3 days.

    One example: one weekend, my BBC Science slashbox was filled with VA/Linux corporate links instead of articles. The problem was reproducible (on my account at least) from different machines.

    I realize this may be due to changes and updating (both software and hardware), but I am of the opinion that 'bugs don'f fix themselves'. I have reported a few to slashcode, but clearly this was some sort of config error at /.

    Also, it took me quite a bit of searching before I was moderately confident that Slashcode was the place to go. This should be in the FAQ, or better, be a separate entry in the upper left corner, along with FAQ, privacy, submit story, etc.

    Slashdot: every responsible site needs a good site specific bug reporting mechanism! How would you feel about *any* company that linked you to the BBS software manufacturer, under the presumption that the underlying code may be flawed but their own site implementation and administration was perfect?

    No one knows better that /.'ers how important bug reporting is. Why do we have to hunt for that link? It needs to be prominent, in several places around the site, including the 'front page'
    _____________

    --

    If you can go to bed, knowing you did a valuable thing today, you're very lucky. If you can't... it's not bedtime

  17. Re:So where do we report "Slashdot-specific" errat by pudge · · Score: 3

    I added a special "Slashdot" bug group on SourceForge yesterday, so you can submit your Slashdot bugs in the same place, but tag them as specific to Slashdot if you like.

    And yeah, I suppose this should be somewhere on the site in a FAQ or something. I just mentioned it to CowboyNeal.

  18. Plain Old Text by ucblockhead · · Score: 2

    At some point, will the "Plain Old Text" posting option get fixed so that it really posts exactly what gets typed?

    You know, like not processing tags and not removing anything that looks like a tag?

    (Previewing, I see now that it has just somehow been swapped with the "Extrans" option.)

    --
    The cake is a pie
    1. Re:Plain Old Text by Bradley · · Score: 2
      One thing I'd like is for something like extrans used to be - Similar to plain text in that

      would be added, but you could add links with , for times when you didn't want HTML for markup, but rather for embedding useful info.

      doesn't take that much effort, true, but it was still useful.

      I believe that was a bug, but it was a useful one :)

  19. Re:Suggestion by CaseyB · · Score: 2
    Make it so that more than one adjective can be applied to posts

    This information is available today. If you click on the #cid of a comment, it shows a breakdown of the moderation so far.

    But it would be nice if this information were part of the header of each comment on the main page.

  20. Re:If... by jd · · Score: 3
    Golden Rules of Programming:

    • Keep layers to a minimum (interfaces are SLOW and that's an easy spot for bugs to creep in)
    • Keep the number of daemons/threads BELOW OR EQUAL to the number of CPUs.
    • Where speed is critical, write it yourself, inline.
    • In any program, (Bugs)/(No. of components * No. of lines) = Constant
      • Given these, let's look at PHP/MySQL. You've got the web server, PHP, Zend, the Zend Optimizer, the PHP application, the database driver, the database server and the database itself.

        That's a lot of components, and a LOT of overhead in lines of code. And that means lots of bugs.

        IMHO, the only conclusion I can reach is that, if I were to write a Slash-like system, I would start by throwing out the web server. It doesn't really DO anything for you, it just copies data from one place to another. A 4 or 5 line program could do that. That gives you enormous speed-up (by freeing up RAM as well as by having a much faster server).

        After the webserver, I'd have to throw out the database. Each URL points to a unique entry, so I can just as easily use sparse arrays and hashing. A database is just wasted overhead.

        That leaves PHP, Zend and the Zend optimizer. Since the rest is now direct, in-line code, you're better off with C. This removes 3 packages and 5 interfaces, all of which would rip out yet more bugs.

        In the end, the entire Slash/Perl|PHP/DB/httpd gumph, with the potential for a huge number of security holes and other assorted bugs, could be replaced by a much smaller, specialised C app that did everything.

        (In practice, I doubt anyone'd ever want to write such an app. The Unix practice of reusable components has proven good enough, to the point that everything is done that way, now, even if for any given task, it's horribly inefficient and very prone to errors.)

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  21. Please no CSS by LordNimon · · Score: 2

    I have to disagree with many of the other posters - I've found that web sites with CSS often render poorly with my browser. I'm in favor of simplified HTML that lets the browser do most of the formatting. So what if the colors are bad? A preferences panel for color choices will take care of that. There's no reason to make major changes to Slashcode.

    --
    And the men who hold high places must be the ones who start
    To mold a new reality... closer to the heart
  22. Question for Pudge by Pinball+Wizard · · Score: 2

    In your opinion, what defines a 1.0 release?

    --

    No, Thursday's out. How about never - is never good for you?

  23. Re:If... by angelo · · Score: 2

    Keep the number of daemons/threads BELOW OR EQUAL to the number of CPUs.

    I suppose by this you mean that the number of daemons/threads SPAWNED from a single user request keeps at n-1 in relationship to the processor. At my Concentric-hosted site, I have to keep it under 1 thread per script or it will kproc me. That isn't so bad, since it keeps me from doing stupid things like globbing massive directories and the like when I can just do an opendir/readdir and run the results through grep. I take up one read that way.

    Given these, let's look at PHP/MySQL. You've got the web server, PHP, Zend, the Zend Optimizer, the PHP application, the database driver, the database server and the database itself.

    Actually, on one server I work with PHP and Apache are compiled against each other, we don't use Zend, and the MySQL can't be helped. However, it is nice in the fact that our editors don't need to worry about setting up the ODBC every time, or even writing out headers every time, as php does a lot of this for you. It already knows where mysql is and so on.

    On my personal site, I use perl. I use it because:

    it's on almost every server out there.

    It's mostly backend stuff, and

    It is a programmer's language, and not just a programming language. Larry thinks about how hard it would be to progrom something, and adds functions accordingly.

    IMHO, the only conclusion I can reach is that, if I were to write a Slash-like system, I would start by throwing out the web server.

    If you wanted to get really technical, you don't even need a webserver. You could do the whole thing through text in a telnet session like a mud or a old-fashioned bbs. You can even write your own caching and load-balancing software to keep it up. But you don't have to. There is already a framework in place to do this. In fact the next Linux kernel will have khttpd, and you won't even need a webserver unless you want to do dynamic content. Then the program you mentioned above would be quite nice. As above so below.

    (In practice, I doubt anyone'd ever want to write such an app. The Unix practice of reusable components has proven good enough, to the point that everything is done that way, now, even if for any given task, it's horribly inefficient and very prone to errors.)

    In essence, a lot of the programs mentioned in your post already are quite debugged, and checked for security by the "thousands of eyes" looking over the code. Your proposition would only be safe if you followed in their footsteps and copied their code. However, You could just use their software and save yourself the trouble. Why build the cow when you can run the milk for free? <ducks>

  24. Re:"overrated" needed for automatic +1 by Anomalous+Canard · · Score: 3

    I think that the check box should be used to get your' +1, i.e. the default is the normal posting level and, furthermore, that your karma should go down by 1 for each +1 bonus you give yourself.

    Anomalous: inconsistent with or deviating from what is usual, normal, or expected

    --
    Anomalous: deviating from what is usual, normal, or expected
    Canard: a false or unfounded repor
  25. Re:Here is the code that's really bad by pudge · · Score: 2

    You picked the code that is actually the oldest code in Slash (significantly older than the MySQL book). It's being changed. Schemas are being changed, code is being changed. You found some obviously crufty code that needs to get changed, that is being changed. Good for you.

  26. Thanks again! by roystgnr · · Score: 2

    Yeah, I know I'm not the only one saying it, but I don't see enough posts saying it yet:

    Thanks for releasing your CGI code, and double thanks for getting the running code and the public source in sync.

    I was one of the more annoyingly whiny complainers before the 0.9 slash release; here's hoping that now that both the slash code and school are out I can do something with it this summer..

  27. Re:Here is the code that's really bad by pudge · · Score: 2

    No.