Computer SW Languages Web - Berkeley CSUA MOTD
Berkeley CSUA MOTD:Computer:SW:Languages:Web:
Results 1 - 150 of 166   < 1 2 >
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/12/24 [General] UID:1000 Activity:popular
12/24   

2008/4/7-12 [Computer/SW/Languages/Web] UID:49681 Activity:nil
4/7     What does this mean and how do I decode it?
        Na "Napvrag" Ncevy Sbby'f cenax ba bhe PRB?
        \_ Don't they teach rot 13 in schools these days?
        \_ copy-n-paste it into: cat | rot13
        \_ 'An "Ancient" April Fool's prank on our CEO?'
        \_ Hope I'm not breakign the DMCA here -- rot13 in tr:
        \_ Hope I'm not breaking the DMCA here -- rot13 in tr:
             tr a-zA-Z n-za-mN-ZA-M
2007/9/24 [Computer/SW/Languages/Web] UID:48165 Activity:nil
9/24    has anyone gotten php working on apache via fastcgi? I have to
        set this up as a test environment for deploying a site i've
        been working on and cant get it working. any good docs out
        there? I've found several but none seem to work for me. thx
2007/9/23-24 [Computer/SW/Languages/Perl, Computer/SW/WWW/Server, Computer/SW/Languages/Web] UID:48152 Activity:kinda low
9/23    I have an Apache question:
        If I have a directory which allows both CGI handler and Perl
        handler (mod_perl) how can I tell which is being invoked by the
        web server? The scripts are being executed, but I have no idea if
        mod_perl is running correctly or if the CGI Handler is just
        picking them up and running them. How can I tell?
        \_ If you like wasteful suburban living, chances are you don't
           need to know if they're running. They're all magically taken
           care of by other tax payers, like freeways and support systems
           for your big suburban mansion.
        \_ http://modperlbook.org/html/3-10-How-Can-I-Tell-if-mod_perl-Is-Running.html
        \_ http://urltea.com/1khw (modperlbook.org)
           Also you're supposed to get a 50X performance difference so try out
           a bunch of your own DoS clients and see the latency or something.
        \_ http://www.perlmonks.org/?node_id=377648
           Check the http header! Look for:
HTTP/1.1 200 OK
Date: Tue, 27 Jul 2004 07:10:54 GMT
Server: Apache/2.0.48 (Unix) mod_perl/1.99_13 Perl/v5.8.0 PHP/4.3.5  <=== !!!
...
           \_ I do not think this is valid for RHEL, which loads mod_perl
              as a .so. Certainly my server does not say this and yet it
              certainly does not complain when it loads the module. RHEL
              installs apache as an RPM and mod_perl as another RPM, so I
              don't think the apache ID string reflects reality. My
              question is not really "Is mod_perl installed?". I am sure
              it is. The question is "How do I know that my configuration
              is working the way I want it to, with mod_perl handling the
              .pl scripts instead of .cgi?"
2007/9/10 [Computer/SW/Languages/Web] UID:47984 Activity:nil
9/10    Hm, is cgi still diabled?
        \_ Conservatives do not use iPhones.
2007/6/28-7/2 [Computer/SW/Languages/Java, Computer/SW/Languages/Web] UID:47110 Activity:low
6/28    People say good things about servlets-- shared connection pool,
        shared resources, not having to fork new proc, not having to
        interpret, etc. However, the chart below says otherwise. Is
        this consistent with what you guys have experienced? It appears
        that Servlet is the big loser here:
      http://www.dmst.aueb.gr/dds/pubs/conf/2002-SANE-DynCont/html/dyncont.html
        \_ Well, "servlets" is a pretty big category.  Tomcat is pretty sucky
           yes (it's 100% java, what do you expect?) but there are other
           servlet engines out there.  Also from looking that their
           methedology, it doesn't look like they increased the number of
           concurrent worker threads for tomcat.  My memory is tomcat is
           set to use some piddling number of threads in the default
           configuration, which would totally make those results make sense.
           \_ Yeah, tomcat is the reference implementation and is not
              taken seriously by businesses that have clue.
              \_ What do businesses that have a clue use? Jetty seems even
                 worse than tomcat. Resin has worked well for me in the
                 past. How about you?
                 \_ Resin works well and is inexpensive.
        \_ This paper is from 2002.  I would hesitate to apply its
           conclusions today.
2007/6/20-24 [Computer/SW/Languages/Web] UID:47021 Activity:nil
6/20    I need a php page that lists a bunch of files in a directory
        for easy downloading.  no i can't alter my apache options
        and accomplish it that way.  any suggestion?
        \_ write maybe 10 lines of PHP?
        \_ What a jerk!
        \_ I was hoping someone had written it already
2007/4/16-19 [Computer/SW/Languages/Web] UID:46323 Activity:nil
4/16    Hoping to get a recommendation for a friend ...
        "I'm looking into setting up a server for some static web pages, a
         wiki, a Subversion server, and possibly some other stuff (e.g.
         BugZilla).  Can you recommend a hosting service?  I think I need shell
         access, PHP, MySql, and Apache.  The bandwidth and storage
         requirements will be modest, so a modest price would be nice."
        \_ Set up a $200 box on a friend's cable/dsl line.
2007/3/4-7 [Computer/SW/Languages/Web] UID:45870 Activity:nil
3/4     I've been out of the CSUA loop for a while.  Is CGI no longer
        allowed/working?
        \_ That's right. It's takes too much unix fu to set it up and
           we just can't handle it.
2006/10/26-29 [Computer/SW/Languages/Web] UID:44992 Activity:nil
10/26   Sudoku Rubix Cube:
        http://toys.brando.com.hk/prod_detail.php?prod_id=00112
        \_ It doesn't seem very sudoku-like.  All the faces just have
           1-9 on them, all in order, which makes it equivalent to a
           normal Rubik's cube (aside from orienting the center
           squares).
        \_ I saw some with white background in Walgreen's.
2006/10/18-21 [Computer/SW/Languages/Web] UID:44852 Activity:low
10/17   has anyone tried to use Soda as a Calendar Server?  Does it
        requires more than just mod_webDAV?
        \_ I am playing with this right now (trying to get iCal to synch
           to something..anything.)  From what it looks like you need
           something that actually supports DAV, like PHPGroupWare (not
           so sure on that one) or Horde/IMP.  I'd be interested in what
           you come up with though.  -John
           \_ most of the stuff requires php.  Can on do this on a
              CGI/php system instead of straight-php? thinking of doing this
              on ocf
              \_ Yeah I'm sure you could, but you'd probably have to write
                 it yourself.  PHPGroupware and HORDE are the only freebies
                 I've found that seem to do it, and I'm having a bitch of a
                 time getting HORDE to play nice (you may not, I have PHP
                 issues with PEAR and other apps.)  -John
                 \_ how about webcalendar?
                    \_ No clue--if you get it working, let me know :-)  If you
                       mail me @zog.net, I will be working on the HORDE thing
                       this week and will be glad to share what I find.  -John
2006/9/8-12 [Computer/SW/Languages/Web] UID:44328 Activity:nil
9/9     http://news.yahoo.com/s/ap/20060908/ap_en_mo/people_brad_pitt
        "Angie and I will consider tying the knot when everyone else in the
        country who wants to be married is legally able,"
        Go Brad!  I and my sister will forever be grateful.
        \_ "My sister and I"... didn't you learn anything in school?
           \_ I am a self-centered redneck.
           \_ I was not aware of any rule stronger than custom for
              saying "my sister and I" rather than "I and my sister".
              Given the symmetry of the "and" idea, it would not
              seem to matter grammatically or syntactically.  I would
              have classified his phrase as uncommon but not
              incorrect.
              \_ Strunk & White.  "XYZ and I" is correct.   "I and XYZ"
                 is incorrect.  It hurts my ears to read "I and XYZ".
                 \_ how about "myself and XYZ..." does it hurt your year
                    equally as much?
                    \_ "myself" is obviously incorrect in that context.  -tom
                       \- The "-self" pronouns are generally REFLEXIVE
                          pronouns. These are used when the object
                          "loops" back to the subject. For example,
                          one would write "The Asp touched Brain@soda"
                          one would write "The Asp touched brain@soda"
                          or "The Asp touched him." But this has a different
                          meaning from "The Asp touched himself." There is
                          another use for -self which are called INTENSIVE
                          pronouns which are a bit harder to explain.
                          It's more a case of emphasis on your person ...
                          like adding "personally". For example: "The Asp,
                          himself, touched brain@soda." or
                          "My sister, herself, will be forever grateful." =
                          "My sister will personally be very grateful."
                          Re: ordering of "I and x" vs "x and I" ... I think
                          this is generally consdered "more polite" rather
                          than be explained in terms of linguistic principles
                          and grammar. So in some other languages, "I and x"
                          may be just fine ... but of course the I vs me
                          distinction would still exist [I'm inclinded to say
                          the Bengali eqivalent of "I and X" is ok, but maybe
                          somebody else can chime in about other langauges.]
2024/12/24 [General] UID:1000 Activity:popular
12/24   

2006/9/4-7 [Computer/SW/Database, Computer/SW/Languages/Web] UID:44272 Activity:nil
9/4     php/oracle part-time student job opening(s).  -jones
        details: /csua/pub/jobs/ucb_boalt_student_webapp_developer
2006/8/14-16 [Computer/SW/OS/FreeBSD, Computer/SW/Languages/Web] UID:43990 Activity:nil
8/14    Anyone know if there's a FreeBSD equivalent to Linux binfmt-misc?
        \_ Pretty sure not.  OOC, why do you want it?
           \_ Just setup apache with suexec and fcgid.  wanted userdir
              php modules to start in suexec w/o having to copy php binary
              to each user's public_html.  For now, will just create an
              entry in httpd.conf for each user and have a wrapper script
              copied to the public_html.  -op
2006/7/30-8/2 [Computer/SW/Languages/Web, Computer/SW/Security] UID:43838 Activity:low
7/28    Anyone have more info on the breakins on a bunch of Cal sites?
        http://www.csua.org/u/gkg   -John
        \_ Yes.
           http://ls.berkeley.edu/lscr/news/2006-07-25-security-incident
           (The defacements were mostly one multi-homed server).  -tom
           \_ Most kernel problems require local access to exploit.
              so, if not a user account then some other insecure service
              that can be used as a starting point.  Is this the case here?
              Do you know/mind_telling_us the details? -crebbs
              Do you mind telling us the details? -crebbs
              \_ The machine is a web hosting server for L&S departments,
                 where departments can install their own PHP code.  There
                 was a security hole in user-installed PHP code that got
                 the hackers shell access, and they used a 0-day RedHat
                 kernel priv escalation bug (SYS_PRCTL) to get root.
                 It is worth noting that the bad PHP code was hand-written,
                 not some package like phpBB with security holes which you can
                 search the net for; the initial compromise seemed to have
                 a higher degree of sophistication than is usually found
                 in script kiddies.  -tom
                 \_ I doubt the hackers found the PHP hole the same day the
                    Redhat bug came out.  I'd bet a buck they had non-root
                    shell access on the machine for a long time.  I also
                    suspect they had root for a while too.  Or there was more
                    than 1 set of hackers.  Why would sophisticated hackers
                    waste a quality attack on a web page defacement?  I'd bet
                    another buck they still have access to that and several
                    other machines.
                    \_ I can pretty closely track their root access; they
                       did have it for over a week before it was discovered.
                       I am pretty certain that they no longer have root
                       access.  I agree that there are likely remaining
                       apache-level holes on the machine; it's an
                       occupational hazard of an open PHP hosting environment.
                       When is PHP going to implement taint mode, anyway?
                         -tom
                       \_ The only way to be absolutely sure is to rebuild the
                          box.  You could do a bit by bit comparison from a CD
                          on all the binaries but yech.
                          \_ Yes, I've read "Reflections on Trusting Trust."
                          \_ Yes, I've read "eflections on the Revolution in
                             France"
                              -tom
                          \_ Yes, I've read "Reflections on the Revolution in
                             France" -tom
2006/6/23-28 [Computer/SW/Security, Computer/SW/Languages/Web] UID:43481 Activity:nil
6/23    apache back on and PHP seems to be working once more (so the main page
        works too). Security modules have been added, so if they interfere with
        things, mail root. Hopefully they won't though. Thanks for your patience
        and understanding --michener
2006/6/17-21 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:43423 Activity:nil
6/17    dbushong and php xml gurus, thanks so much for your help! I don't
        know what I'd do without you guys. Google and http://php.net are clearly
        _insuperior_ than the motd. Anyways I have just a few more question.
          What's the proper way to embed text and binaries into XML? Should
        I simply call htmlspecialchars() on each item or just HEX it? Second
        question is, if I let users do "SELECT *" and want to return as
        XML how do I check the mySQL type for each field(column) name? I
        tried using mysql_field_type(...) but when it sees a TEXT field, it
        returns it as a BLOB, wtf?
        \_ "insuperior than"?
        \_ Putting binary data in XML sucks.  You'll have to basically &#NNN;
           every out-of-charset byte.  Probably best to just base64_encode() it
           and throw that into the entity.  TEXT columns are BLOB columns, they
           just are searched differently, essentially (case insensitive, respect
           charset, yadda).  I don't know the PHP way to do introspection on
           your table, offhand, but you could always parse the result of
           DESC table or SHOW CREATE TABLE table.  --dbushong
2006/6/14-18 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:43394 Activity:nil
6/14    Need php assistance. Let's say I have the following XML:
          <xml><hello>&ltHello&gt</hello></xml>
        Then I parse it as follows:
          $xml_parser=xml_parser_create();
          xml_set_character_data_handler($xml_parser, "my_function");
        My problem is my handler function "my_function" will parse it as
        <, then Hello, then > separately instead of one line!  How do I make
        the XML parser parse the <hello> content just once? Thanks.
        \_ Don't forget it's &gt; and &lt; not &gt and &lt
           I'd recommend using the domxml functions:
           http://us2.php.net/manual/en/function.domxml-open-mem.php
           $x = domxml_open_mem('<xml><hello>&lt;Hello&gt;</hello></xml>');
           $d = $x->document_element();
           $hs = $x->get_elements_by_tagname('hello'); $h = $hs[0];
           $hs = $x->getElementsByTagName('hello'); $h = $hs[0]; //stupid php
           $hs = $x->get_elements_by_tag_name('hello'); $h = $hs[0];
           $h->get_content();  // == "<Hello>"
           --dbushong
           \_ How do I access deeper levels? Repeated
              $x->get_element_by_tagname('aa')->get_element_by_tagname->('bb')
              ->... doesn't seem to work
           --dbushong
              \_ note that it's get_element*s*_by_tagname.  it returns an
                 array.  note the $h = $hs[0] above.  PHP sucks and you can't
                 do $obj->method()[0]->method()[0], etc. so you have to keep
                 assigning to variables.  I actually made a function at one
                 point to make this a little easier:
                 function first($arr) { return $arr[0]; } so then you can say:
                 $h = first($x->get_elements_by_tagname('hello'));
                 If you want to access a specific deep thing, consider using the
                 xpath functions that API provides.  --dbushong
2006/6/13-15 [Computer/SW/Languages/Perl, Computer/SW/Languages/Web] UID:43374 Activity:nil
6/13    In PHP what is the Perl equivalent of
        map {$_="HEY $_ HO";} @array; ? Thanks so much!!!
        \_ foreach ($array as $i => $val)
             $array[$i] = "HEY $val HO";
           --dbushong
2006/5/30-6/3 [Computer/SW/Languages/Web] UID:43233 Activity:nil
5/30    Looking for a UNIX equivalent of "file <file>" in PHP. I'd like
        PHP to determine what type of file it is looking at without
        having to call system or exec("file $file"...). Please help...
        \_ Try the Fileinfo PECL extension: http://pecl.php.net/package/Fileinfo
2006/5/18-22 [Computer/SW/Languages/Web] UID:43098 Activity:nil
5/18    I'm working with a developer who's used to C++/Java development
        environments that show you all the object relationships,
        inheritance, where functions are defined, where functions are
        used, etc.  We have a huge, painful application written in
        object oriented PHP that he's trying to figure out.  Do you
        guys know of and/or have you used any editors for PHP that have
        the kind of object oriented awareness like IntelliJ or Eclipse?
        He's really stuck in the high-level IDE way of working and I
        need him to figure this code out much quicker than his
        current pace.  Thanks!
        \_ There are PHP IDEs out there but I couldn't make any reccomendations
           Some people are working on a PHP add-on for Eclipse, but it's not
           ready for use yet.
           Since you have a huge, painful OO PHP application, may I ask why you
           haven't moved to an IDE?  I realize there's a bit of pride in saying
           VI is your IDE, but a real IDE can give big productivity gains
           even if you already know the project like the back of your hand.
           \_ You're preaching to the choir, trust me!  The group I work for is
              very security-conscious and I'm not allowed to install any other
              software, like a PHP IDE.  I've done most of my development using
              Java IDE's like IntelliJ, so I know how powerful and useful they
              are.  The PHP application in question is something that was built
              long ago by a CS student, and is undocumented, other than a feature
              spec.  I'm in charge of helping another group rewrite the
              application, from the spec, but using the existing PHP code as a
              secondary reference.  Really we should only be using the spec and
              not the code, but it is what it is unfortunately.
2006/5/8-9 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:42975 Activity:low
5/8     I noticed the posting about about CGI being enabled again, but
        my CGI files don't seem to work.  Has the setup changed in some
        way, are others also still having problems?  Thanks
        \_ CGI scripts don't seem to be working for me either. --jameslin
        \_ They were enabled, but due to a misconfiguration, i.e. choice of
           user/group for CSUA home page, someone used a random hoser's badly
           written cgi to deface the CSUA web page.  Thus, they were disabled.
           -dans
           \_ ouch!  thanks for the info.  So is CGI not going to be available
              any more, then?  Should we be using PHP or something else instead?
              \_ I'm not on soda root, I'm just filling in folks on current
                 history.  As tom indicates, PHP suffers from similar
                 problems.  My understanding is that they are working on it,
                 but, being students, have lots of other obligations that
                 supercede making improvements to our little playground. -dans
           \_ The solution to that is to do a find and fix files owned by
              nobody/www, not disable CGI.  You can do the same thing w/ PHP!
              \_ Yes, and now the web server is running as "nobody", which I
                 think is not ideal practice ("nobody" is used by too many
                 things; the web server user should be unique to the web
                 server), but should remove the concern about CGIs (which
                 are no more problematic than PHP).  -tom
        \_ Ed claims he just enabled CGI's. -dans
           \_ Okay, now I'm getting "Premature end of script headers" errors,
              but these scripts worked fine on the old FreeBSD iteration of
              soda.  I'm basically just doing:
                 #!/bin/sh
                 echo "Content-type: text/html"
                 echo ""
                 echo "<html><body><p>blah</p></body></html>"
              Also, are the permissions on the apache logs going to be changed?
              It's sometimes useful to be able to read the error log to figure
              out what's failing.
              \_ It's really hard to say without seeing your script.  Maybe
                 your path to echo is not set properly?  I'm not root, and as
                 far as I know, root doesn't read the motd (at least not as a
                 source of the more things to do).  Why don't you try mailing
                 root? -dans
              \_ Perl cgi is working fine. Most likely, path is not set
                 properly.
                 \_ No, it's not a path problem.  The problem went away when
                    I made the script world-readable instead of just
                    world-executable.  Why should that matter?
                    \_ because the web server can't read the script if it's
                       not readable.  duh.  -tom
                       \_ You're begging the question.  Why does the web server
                          need to read it?  It doesn't need to read it to
                          execute it, and it did it fine in the previous
                          incarnation of soda, so I'm still curious what the
                          rationale is.  Does the web server do some analysis
                          of the script beforehand to see if it does unsafe
                          things?
                          \_ It's a *script*.  You need to be able to read
                             a script to execute it; how else will the web
                             server see #!/bin/sh?  -tom
                             \_ not only that, scripts are INTERPRETED.  You
                                can't read shit out of them unless they're
                                read.
                             \_ Yes, that makes total sense.  I'm an idiot.
                                I guess I was misled by it working before, but
                                I suppose that's because soda used to use
                                suexec?
                                \_ yes, probably suexec was su'ing to the
                                   user before it tried to read the script,
                                   therefore it was using the user permissions
                                   instead of the world permissions.  -tom
2006/5/3-5 [Computer/SW/Languages/Web] UID:42906 Activity:nil
5/2     Running into a weird php problem. When I do the following I get
        both "1" and "2":
                print "1";
                require_once('./print_something.php');
                print "2";
        However, when I replace require_once with require (because I
        want to print something multiple times), I never get "2", ever.
        The control flow is never returned to me. Why is that?
        \_ Syntax error or call to exit() or die() in print_something.php?
           (OK, not syntax error if it makes it through the first time....)
        \_ At that point in the file had print_something.php been already
           required?  It looks like print_somthing.php can't handle being
           loaded twice.  It isn't idempotent.
2006/4/28-29 [Computer/SW/Languages/Web] UID:42858 Activity:nil
4/27    What's up with the CSUA homepage?  What's that quote?
        I don't get it.
        \- I assume we got rooted again. OMG, hahah. I give up - linxu
           \_ You're probably not rooted, but you made the mistake of
              having the web heirarchy owned by the UID that the web
              server is running under.  Therefore, any hole in any installed
              CGI or PHP can re-write pages, and probably execute arbitrary
              code as the web server user.  -tom
                \- Soooo re-enabling cgi-bin and being dumb was the cause.
                   I still give up though. Ah, well...-linxu
                   \_ suexec or cgiwrap or the likes is a good idea too.
                   \_ find . -user www -exec chown not-www {} \;
                      would be a good start.  -tom
2006/4/11-16 [Computer/SW/Languages/Web] UID:42734 Activity:nil
4/11    Does anyone know why Soda returns the following on PHP
        even though it is in fact running PHP5.xxx?
        "Fatal error: Call to undefined function preg_replace()"
        \_ Version of PHP has nothing to do w/ it.  The PCRE module
           needs to be installed and loaded for preg_replace() to work.
           --dbushong
2006/4/5-7 [Computer/SW/Languages/Web] UID:42686 Activity:nil
4/5     Desperately looking for a new co-lo site that gives you cgi, php,
        and unlimited email forwarding (you provide your own domain name).
        Cheap and reliable. SSH/shell is a must.
        \_ I think you mean (possibly shared) virtual hosting, not colo.  I
           know a number of people who are happy with Dreamhost and TextDrive.
           -dans
2006/4/4 [Computer/SW/Languages/Web] UID:42662 Activity:kinda low
4/4     Help PHP MySQL experts! I installed PHP5 and Pear and tried
        /usr/bin/php mytest.php. It works, except it doesn't know where
        to find mysql_connect(...). How do you tell the command line
        how to invoke mysql commands? Thanks.
        \_ I'm the op and I did install mysql and it works under apache2. I
           figured out my problem. There are two files,
           /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini.
           Pear (command line php) uses /etc/php5/cli/php.ini, in which
           I need to uncomment "extension=mysql.so" the same way I did it
           for /etc/php5/apache2/php.ini. Thanks for your help Dave!
        By the way I don't this problem when I call the same PHP via HTTP.
        \_ PEAR is just a set of written-in-PHP classes and modules; it doesn't
           provide any library functionality.  You need to install the mysql
           extension, which ships w/ PHP.  In your UNIX it may ship as a
           separate package.  --dbushong
2006/3/24-27 [Computer/SW/Languages/Web] UID:42409 Activity:nil
3/24    PHP masters, help. In Perl I used to be able to do the followings:
        ($var1,$var2,@rest)=@list_of_variables;
        @partial_list=@complete_list[5..10];
        Things of that nature. But in PHP I can't find this type of
        syntactic sugar anywhere on the manpage to do the shortcut so I
        end up doing clumsy things like
        $var1=$list_of_variables[0];
        ...
        Help :(
        \_ list($var1, $var2, $var3) = $list_of_variables;
           $partial_list = array_slice($complete_list, 5, 6);
           --dbushong
           \_ Jesus Bushong Christ. You are my savior. Where and how did you
              learn your PHP? Thanks so much.
              \_ http://www.us2.php.net
                 Lots of typing alt-s (jumps you to the function search box
                 at the top) and guessing function names, then looking through
                 the list of matches and the list of functions in the same
                 package that shows up on the left nav when you're looking
                 at a given function def
2006/2/16-17 [Computer/SW/Languages/Web] UID:41887 Activity:nil
2/16    In PHP, If I loop $result=mysql_query("...SQL here..."); with
        a lot of results, while reusing the variable
        $result without ever using mysql_free_result($result),
        would that make the memory space blow up? Like:
        while (1) {
          $result=mysql_query("...SQL HERE...");
          ... use the results in $result ...
          // mysql_free_result($result); commented out. Mem blow?
        }
        \_ Yes.  As per the manual, the memory is freed at the end of the
           page request.
        \_ Consider using Pear DB instead of the mysql functions directly.
           It adds a lot of handy shortcut functions, helps abstract your
           code away from being mysql-specific, and offers an "autofree"
           option. --dbushong
2006/1/27-29 [Computer/SW/Languages/Web] UID:41573 Activity:nil
1/27    I've enabled suexec and ExecCGI in my apache2. I created a simple
        CGI that when `whoami` is executed, claims as me instead of
        www-data|http. Great. However, when I tried the same thing in
        php, it no longer executes as me. Why is that?
        \_ mod_php 'executed' stuff is run as the webserver uid
        \_ You'd have to run PHP under CGI to get this to work, and then it
           would be as slow as any other CGI stuff.  You can run it under
           FastCGI, but then you'd have to have one FastCGI setup per user,
           as I understand it.
2006/1/26-29 [Computer/SW/Languages/Web] UID:41548 Activity:nil
1/26    In PHP how do you do a regular http get? I'd like to avoid
        using system("wget ...") mechanism. Thanks.
        \_ $html = file_get_contents('<DEAD>...');<DEAD>    --dbushong
           For more details, read:
           http://php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
           http://www.php.net/manual/en/features.remote-files.php
2006/1/19-21 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:41436 Activity:moderate
1/19    How do I configure apache so that all the files in certain
        directories are executed as PHP without the ugly .php extension?
        \_ Turn on MultiViews; you can leave the files with the .php
           extension, but just access them without using the extension.  -tom
           \_ Oh goodie, someone talking about MultiViews.  Are there any
              potential problems with turning them on I should be aware of?
              - !op
              \_ I suppose it makes it marginally easier for someone to
                 guess one of your URLs.  There is some potential confusion
                 if you have two files with the same base name in the
                 same directory.  But I don't think there are significant
                 issues.  Our site has been that way for several months:
                 http://ls.berkeley.edu/lscr.  -tom
              \_ MultiViews are not the rigut solution for that. They use content
                 negotiation, IIRC and that causes problems with validation and
                 old browsers. I'd recommend using URL rewriting. in your
                 .htaccess put something like:
                 Options -MultiViews
                 RewriteEngine on
                 RewriteCond   %{DOCUMENT_ROOT}%{REQUEST_URI}.php -f
                 RewriteRule   .* %{REQUEST_URI}.php
                 \_ How does MultiViews cause problems with validation or
                    old browsers?  It's transparent to the client unless
                    the client asks for something specific in content
                    negotiation.  -tom
                    \_ I thought it used to. Apparently I was wrong.
                       By the way http://ls.berkeley.edu/lscr does not
                       pass validation at http://validator.w3.org
                       \_ It validates in HTML Tidy.  I'll look at the
                          issues http://w3.org brings up.  -tom
                          \_ Update for those who care: It looks like HTML
                             Tidy only validates against HTML 1.0 Transitional,
                             even if the DOCTYPE is HTML 1.1 Strict.
                             The 1.1 Strict warnings include stuff for
                             backwards compatibility with not-very-old
                             browsers (IE 5.5), so we may look at falling
                             back to 1.0 Transitional.  -tom
                             \_ Do you mean XHTML rather than HTML?
                                also there is no "XHTML 1.1 Strict."
                                just XHTML 1.1   fwiw.
                                \_ Yes, I mean XTHML.  -tom
        \_ Do your files have an extension now?  If it's, e.g. ".html", you
           could just toss this into your .htaccess:
           AddType application/x-httpd-php .html
           --dbushong
2006/1/17-18 [Computer/SW/Languages/Web] UID:41403 Activity:low
1/17    CGI or PHP, which one is better?
        \_ PHP.
        \_ CGI is actually the method by which pretty much all dynamic web
           applications function.  If you mean "CGI scripts", then that doesn't
           really say anything about what language/system you're using.  Perl?
           /bin/sh?  C?
           \_ Uhm, no. That was ten years ago. PHP is usually built into the
              webserver, so you don't need CGI anymore. Use PHP.
              \_ What do you mean "build into the webserver"?  You mean mod_php
                 like mod_perl?
                 \_ Exactly, vs. using mod_CGI.
                    \_ PHP is a language.  It can be loaded as a module
                       into the web server, or not.  Same with perl.  -tom
              \_ need is subjective.  If you trust everyone and every app they
                 install, yes, you don't need cgi.
                 \_ What? You think CGI is inherently more safe than something
                    that is a module to apache? On what basis? CGI is only as
                    safe as what you allow people to hook into.
           \_ More proof above that most motd posters don't have real jobs.
2006/1/15-17 [Computer/SW/Languages/Web] UID:41379 Activity:nil
1/15    Sorry, totally off topic from anything political or bike related:
        I want to run a small message board+mailing list.  Or maybe not
        mailist list.  Not sure if that's a requirement.  Anyway, it will
        only be used by a dozen people, I intend to at least use a .htaccess
        file, I don't want it in any search engines, etc.  I'd like it to
        be easy to setup and maintain but I'm willing to do a nightmare setup
        if I don't have to do much later.  Anything else it does is a plus.
        I have my own hardware, net, domain name, NS, MX, etc.  Any
        suggestions appreciated.  Oh yeah, it should run on *nix, in case that
        wasn't clear.  Thanks!
        \_ mailman?
        \_ <yourfavorite swiss cheese CGI/PHP bulletin board> + mailman?
2005/11/12-14 [Computer/SW/Languages/Web, Computer/SW/Languages/Perl, Computer/SW/Unix] UID:40555 Activity:nil
11/11   Hey MOTD, I'm looking for a good webhosting service.  A coworker has
        recommended http://dreamhost.com.  Does anybody have any first hand experience
        with that provider?   Does anyone have any suggestions, warnings or
        general advice?  Ideally I'm looking for a place with a unix shell,
        php, perl, and possibly mysql & cron -- but it doesn't have to have
        heavyweight bandwidth, etc.    TIA.                    -mice
        \_ It may be more money & work than you wanted, but I've had good
           luck w/ http://johncompanies.com.  You get root on a jailed system: FreeBSD
           w/ ports tree available or some Linux distro w/ some pkg system.
           So you can run any sort of mail/web/anything server you want.
           Very responsive support.  But it's like $30 - $70/month.  --dbushong
           \_ Is that how much you pay for http://csua.org?
              \_ No, currently I just run it off my home DSL.  I'm thinking
                 about getting either a colo'ed box or something like this
                 one of these days just to have the option to scale a web app
                 to higher bandwidth on short notice should I ever actually
                 manage to market anything successfully (e.g.
                 http://floatingsheep.com/wishlist ), but for now it's not
                 quite worth the expense. --dbushong
        \_ I have friends who use dreamhost (and one of them gave me a login).
           AFAICT it seems to be pretty good (unix shell, perl, php, mysql,
           and I assume cron).  If I had to pay for hosting myself, I'd
           probably go with them. --jameslin
2005/11/9-11 [Computer/SW/Languages/Web] UID:40509 Activity:nil
11/9    Hot buns!  (Barely save for work.)
        http://news.yahoo.com/photo/051108/ids_photos_en/r1836230989.jpg
        "The event was organised to entertain the children by a member of a
        local charity ..."  What kind of idea is it to entertain children by
        having hot models flash their bare bottom?
        \_ Different culture, man.  Personally, I don't think nudity is
           inherently harmful or unhealthy.  That's an american puritanical
           attitude (OMG!  A Breast!  For 2 seconds! Think of the CHILDRENNN!).
                \_ Correct.  Topless beaches not a big deal in non-puritannical
                   societies.  Also, thong bikinis not an issue.
                   \_ Not even for children?
                      \_ Will somebody please think of them?
                      \_ Thong bikinis better for adults with actual goodies
                         to show off.
        \_ Umm.. this kids appear to be 12 and up, and many are on drugs.
           \_ It would have entertained me at age 12.
        \_ http://web.wenxuecity.com/BBSView.php?SubID=gossip&MsgID=9847
           More hot buns for my soda brothers.
        \_ Definitely a nice butt.
2005/9/24-26 [Computer/SW/Languages/Web, Computer/SW/OS/Windows] UID:39854 Activity:nil
9/24    Any recommendations for extracting text from a WPS file?
        Apparently it was made with MS Works. OpenOffice can't open it
        \_ tr -d "\000-\010\016-\037\177-\377" <  test.wps
2005/9/14-15 [Computer/SW/Languages/Web] UID:39682 Activity:nil
9/14    Oh man.  Can someone please explain to me why PHP isn't the spawn of
        the devil?
        http://us2.php.net/manual/en/language.variables.variable.php
        \_ It's the spawn of Perl, isn't that good enough?
2005/9/7-9 [Computer/SW/Languages/Web] UID:39555 Activity:nil
9/7     MOTD boob-man, I need more pictures!
        \_ Here is the biggest boob in America:
           http://en.wikipedia.org/wiki/Image:George-W-Bush.jpeg
        \_ http://images.google.com/images?q=boobs&hl=en&btnG=Search+Images
           moron.
           \_ No no no, the true boob man only posts community webshots
              links.  Long live motd boob-man! --boob man #1 fan
                \_ just look on http://bustywebshots.blogspot.com
        \_ http://ame78.com/live.php
2005/8/21-22 [Computer/SW/Languages/Web] UID:39207 Activity:kinda low
8/20    Someone sent me the following: http://www.ame78.com/live.php
        Now I REALLY want to learn how to read Chinese characters.
        How do I get started? I'm not in school by the way.
        \_ "Fun with Chinese Characters" is a great book for learning what
           Chinese characters are all about.  Great pictures, lots of
           explanations, and the etymologies make it much easier to start
           memorizing characters than if you plunge in to some textbook from
           scratch.  Amazon has it.
        \_ http://www.google.com/language_tools?hl=en
        \_ Some of those are Japanese models.
        \_ Somewhat NSFW
        \_ Huh?  What kind of site is this?  I didn't investigate as I am
           at work, but I didn't see anything that would make me want to
           study chinese characters.  Maybe speak chinese?
2005/7/15-16 [Computer/SW/Languages/Web] UID:38651 Activity:nil
7/14    was ein gutes zu verwendendes Paket (Perl) einfache Linien zu zeichnen
        circles in GIF oder in JPG? Ich möchte etwas tun, das zeichnet
        lines für ein cgi oder ein PHP, Dank.
        \_ ImageMagik?
        \_ GD?
        \_ GD, aber es werden (durch Rückstellung) tun png. (das gerade
           http://us3.php.net/manual/en/ref.image.php -- dbushong
2005/7/14-16 [Computer/SW/Languages/Web] UID:38620 Activity:nil
7/14    What is a good package to use (Perl) to draw simple lines and
        circles in GIF or JPG? I'd like to do something that draws
        lines for a CGI or PHP, thanks.
        \_ ImageMagik?
        \_ GD?
        \_ GD, but it'll (by default) do PNG.  (Which is just as good).
           http://us3.php.net/manual/en/ref.image.php  --dbushong
           \_ Uh, ok. So I'm trying to install GD.pm, which requires
              gd (c files) to be compiles, which requires libpng, which
              requires zlib. I keep going down the dependency list and
              keep hacking, isn't there an easier way? BTW I don't have
              root on the machine so RPM whatever is out of the question.
2005/4/29-5/3 [Computer/SW/Languages/Web] UID:37414 Activity:nil
4/29    Has anyone here used Propel for php persistence?  Thumbs up/down?
2005/4/12-15 [Computer/SW/Languages/Web] UID:37160 Activity:nil
4/12    I know someone that's looking for a contract programmer in the New
        York area.  They want someone fluent in PHP and database development
        to customize and extend one or more content management systems.
        You'll also need to be able to easily go back and forth between
        geekspeak and english.  email me if interested, and I'll put you in
        touch with the appropriate people. -dans
        \_ Sodomize?
2005/3/20-22 [Computer/SW/Languages/Web] UID:36775 Activity:nil
3/20    I know register globals in PHP are bad, but is there some lazy
        programmer advantage to them?
        \_ They let you be lazy.  But it's really not worth it.  Just use
           something like my args() function:
           http://bushong.net/dave/sw/files/args.php.txt
           So just at the top of a script you say:
           args('foo', 'bar[]', 'baz!');
           And now you've got a string $foo, array $bar, and required
           string $baz out of a query string like ?foo=42&bar[]=69&baz=18
           --dbushong
2005/2/16-17 [Computer/SW/Languages/Web] UID:36208 Activity:nil
2/16    Does anyone have a useful css-mode.el or php-mode.el file that
        they'd be willing to share? Thanks.
2005/1/21-24 [Computer/SW/Languages/Web] UID:35845 Activity:nil 50%like:34159
1/21    Can someone recommend a good low-priced place to provide web
        hosting?
        \_ Sitelutions is a buck a month for their basic setup, and I've had
           no hassles.
                \_ Thanks. I just checked them out, but they don't allow
                   PHP in that basic plan.
        \_ I've heard good things about hostrocket but have never used them.
        \_ I know people who've had good experiences with http://jiffynet.net. 100M
           of space for $20/year. PHP, MySQL, shell, email. I haven't used
           them myself. -gm
2005/1/19-3/5 [Computer/SW/Languages/Web] UID:35793 Activity:nil 66%like:12725
1/19    PHP upgraded. Bugs to root.
2005/1/16-17 [Computer/SW/Languages/Perl, Computer/SW/Languages/Web] UID:35734 Activity:high
1/15    What's the easiest/best thing to use to quickly create small GUI
        tools/apps for Windows? (cross-platform ok too) Like the equivalent
        of a perl script with a Windows GUI. Only for myself right now but
        I need to decide what to invest my time learning. So it might as well
        be cross platform if there's no big downside. I have hardly any
        experience with GUIs. Thanks.
        \_ I have the same question but maybe not for a perl script, also
           the GUI can be as simple as possible.
                \_ perl/tk is decent, though you might want to look into VB if you
                   want to interact with the os.  I'd advise staying away from
                   Java at all costs. --darin
                   \_ ya, sounds like VB is what the op is looking for.
                      \_ Is VB cross platform?
                         \_ and free? :( -op
                   \_ Performance aside, why no Java?
        \_ http://wxperl.sourceforge.net
           There's also APIs into wxwindows for Python and other languages.
           I think it's what the original windows version of BitTorrent is
           written in.  --dbushong
           \_ Ok I started playing with wxruby so I'll see how that goes, even
              though it's beta. found at http://wxruby.sourceforge.net.
2004/12/17-19 [Computer/SW/Languages/Web] UID:35345 Activity:nil
12/17   Has anybody here upgraded to PHP 5.0.3? I'm getting started with
        XML and the SimpleXML extension looks great. Wondering if it's
        time to upgrade.  http://php.net says PHP 5 is experimental.
        Any idea how stable/unstable that would be?
2004/12/17 [Computer/SW/WWW/Server, Computer/SW/Languages/Web] UID:35336 Activity:nil
12/16   I've had Apache 1.3.27 installed for several months now. All of a
        sudden, as of two days ago, we're getting random "forbidden" pages
        throughout our site, including our webmail program and front page.
        httpd.conf hasn't been touched in over a month. Any ideas?
        \_ p0wn3d!
           \_ It is fairly likely that your installation has been broken into.
              Why did you install 1.3.27 several months ago?  Current release
              is 1.3.33.  But the most likely problem is with something like
              PHPBB or PHPwebsite; we're seeing many exploits in PHP systems
              on campus right now.  -tom
2004/11/22 [Computer/SW/Languages/Web, Finance/Investment] UID:35006 Activity:low
11/21   Has anyone tried opening a bank account in say, Canada or
        Switzerland? How's the interest rate there and how accessible
        are they online? The second question is, is there a FREE site
        that is like <DEAD>etrade.com<DEAD> where they show you the exchange rate
        chart, trend, etc for the past few years? Thanks.
        \_ Do not open a European bank account for the interest rate.  I
           recommend the Liechtensteinische Landesbank (<DEAD>www.llb.li)--they're<DEAD>
           pretty nice and professional.  Just dump your cash into some long-
           term bonds there if you care about interest (I assume that's not
           your primary worry, or you wouldn't be asking this question.)  As
           for exchange rates, check http://oanda.com.  -John
2004/11/4-6 [Computer/SW/OS/FreeBSD, Computer/SW/Languages/Web] UID:34655 Activity:nil
11/04   (Sorry, but this fell victim to troll scroll, so again:)
        Does anyone know of or can someone recommend a company (not a one-man
        consulting show) that will support an open source firewall product
        for a large corporation?  BSD-based, a bunch of PHP, etc.  I'm looking
        for someone to do features development, 3d level support, and general
        management "peace of mind"...
        \_ http://mnl.com  For more info, feel free to mail me:
           david+d+1100247667.250b72@bushong.net  --dbushong
2004/11/2 [Computer/SW/Languages/Web] UID:34531 Activity:high
11/2    No wonder he turned suicide bomber.  Those 42 virgins are the only
        girlfriends he could ever hope of having.
        http://news.xinhuanet.com/english/2004-11/02/content_2167359.htm
        \_ What 42 virgins are you talking about?  No such mentioning in the
           article.
           \_ I find your human humor highly illogical, Captain.
2004/11/1 [Computer/SW/Languages/Web] UID:34507 Activity:nil
11/1    A coworker would like to run PHP w/o a web server as a shell
        script. Is this possible? Suggestions?
        \_ There's a php shell, and for standalone client-side apps there's
           PHP-GTK, though I'm confused as to why not just use Perl or
           something.
           \_ There's some PHP tools he would like to use.
              \_ Fair enough.  I'm kinda partial to PHP myself.
        \_ Yeah, it's possible.  Just make sure you install the commandline
           tool (bin/php) when you build it, then you just do something like:
           #!/usr/local/bin/php
           <?
             // your script goes here, use stuff like $_SERVER['ARGV']
           ?>
           --dbushong
2004/10/30-11/1 [Science/GlobalWarming, Computer/SW/Languages/Web] UID:34464 Activity:insanely high
10/30   How hard would it be to fake something like the recent Bin Laden tape?
        Every time something like this happens, un-named "experts" declare it
        to be authentic or not, but how hard would it be with modern computer
        video equipment to fool people?  It seems odd to me that the media
        downplay this possibility.  I'm asking this as a *technical* question,
        not as some conspiracy theory question about what really happened  in
        this case.
        \_ So you agree with Walter Cronkite that Karl Rove is somehow
           involved in the creation and/or release of the OBL tape?
        \_ It's possible to fake things to arbitrary fidelity with enough
           money.  The technology is there.  Modern CGI is very powerful.
           -- ilyas
           \_ ok, that's interesting.  Does such technology exist anywhere
              outside hollywood?  Could a bunch of people with a lot of money
              in, say, Pakistan do something like this from scratch?
              \_ It is serious tinfoil hat territory to think that an OBL tape
                 would be faked with CGI.  If Pakistan were to try to fake it,
                 they would get a look-alike.  -tom
                 \_ I agree 100%.  The question is whether it's *possible*
                    technically for someone outside of hollywood to do this
                    convincingly.
                    \_ Tom is wrong.  It's true that no one will bother to
                       spend the money in practice, but the feat is not
                       technically out of reach.  Consider ff the movie.
                       They had essentially photorealistic quality, but the
                       faces/bodies moved in ... odd ways.  That movie was
                       a while ago, and it wasn't better then because square
                       had a fixed budget.  If a government commissioned a
                       fully photorealistic clip of someone, money being no
                       object, it would be done.  The entire clip would be
                       special cased, there would be an army of 'animators'
                       involved, the tag might run in the billions, but it
                       could be done.  The bottleneck is not the technology
                       but how far people are willing to go.  Ask any
                       graphics/vision guy. -- ilyas
                       graphics/vision guy.  Tom also needs help with reading
                       comprehension, as he seems to be answering a tinfoil
                       question, which op explicitly said he was not asking.
                         -- ilyas
                       \_ FF was *not* photorealistic.  It would be obvious to
                          anyone looking at it that those faces were animated.
                          It was an impressive feat, but one which would fool
                          only an audience willing to suspend its disbelief.
                          Humans are *very* picky about what we will accept
                          in terms of facial appearance and movement.  -tom
                          \_ FF faces certainly did not _move_ in a
                             photorealistic way, but the stills were quite
                             believable faces.  Anyways, I still think what
                             I said is possible with enough money.  -- ilyas
                             \_ yeah, if you just put billions of dollars into
                                inventing new technologies, in 10 or 15 years
                                you might be able to achieve the same thing as
                                $10K in plastic surgery.  And then you can
                                spend another 20 years working on generating
                                a plausible computer-generated voice that
                                sounds like a particular person.  Christ,
                                you're an idiot.  -tom
                                \_ So, John, how many examples do you need?
                                    -- ilyas
                                   \_ Well, I wouldn't call people names, but
                                      I don't know who's right or wrong, so
                                      I'll pass :-)  -John
                                   \_ examples of what?  you setting up a
                                      strawman that's totally unrelated to
                                      the original question?  There's no
                                      shortage of those.  -tom
                          \_ FF?  The Final Fantasy movie with the weird story
                             line about ghosts from an alien world on Earth?
                             Their big claim to fame was getting the character
                             hair to look right which I think they got 99%.
                             If someone is saying FF had photo realistic faces
                             then sorry, I'm with tom on this one.  They did
                             good facial expressions but not good faces if that
                             makes any sense.
                       \_ I wonder if you took FF-quality CGI actors, and then
                          ran the video through filters to degrade it to VHS
                          quality, if it would look a lot more realistic
                          because the small errors get blurred out.
                       \_ You're an idiot.  All of the movement was
                          motion-captured.
                          \_ Uh, so?  Why is that not a valid technique?
                    \_ With CGI?  No.  Nor in Hollywood.  -tom
2004/9/16-10/27 [Computer/SW/Languages/Web] UID:33571 Activity:nil
9/16    PHP scripts are now processed by the php4 module, and
        index.php has been added to Apache's DirectoryIndex directive.
2004/9/16-17 [Computer/SW/Languages/Web, Computer/SW/Unix] UID:33570 Activity:kinda low
9/16    Soda question:  I have a file index.php in one of my public_html
        subdirectories, but when I http to ~me/foo/ the PHP isn't getting
        processed, though ~me/public_html/foo/index.php is getting served up.
        What am I doing wrong?
        \_ Do this "ln -s index.php index.html".  I had to do the same thing
           for my index.htm.
           \_ Doesn't help. It loads the file but does not process it.
           \_ why not mv index.htm index.html
              \_ It was automatically generated, and I didn't want to rename it
                 every time it's generated.
                 \_ who was automatically generating it?
                    \_ Photoshop.
        \_ Ah, I think what I'm looking for is for the line in httpd.conf
           #AddType application/x-httpd-php .php
           to be uncommented, but barring that, I can deal. -op
           Did a workarouns with a dummy index.html and the meta tag
           http-equiv="Refresh"
           \_ Never use meta refresh. It breaks the back button.
              http://www.w3.org/QA/Tips/reback
        \_ I just added index.php to DirectoryIndex in httpd.conf so
           it should work correctly now. -brett
              http://httpd.apache.org/docs-2.0/mod/mod_alias.html.en#redirect
              \_ meta refresh works client side when you can't change the
                 server config... I don't think we have mod rewrite access
                 on (based on quick scan of the httpd.conf)
                 \_ on soda you can put this in your .htaccess:
                    Redirect /~user/foo/old.html <DEAD>new.url/whatever<DEAD>
                    Meta refresh sucks. Don't use Meta refresh.
        \_ Great question. index.php has just been added to DirectoryIndex.
2004/9/16-17 [Computer/SW/Languages/Web, Computer/SW/Languages/Perl] UID:33560 Activity:low
9/15    Are there any opensource website management systems that will let
        you create a site similar to http://cnn.com ? PHPNuke and Slashcode might
        be able to work but doesn't seem to be quite right.
        \_ PHP: Midgard: http://www.midgard-project.org
           Perl: Mason:  http://www.masonhq.com
           --dbushong
        \_ Sorry, I used the wrong term. I'm not looking for a CMS. I'm
           looking for a tool/app? that let's me create nice frontend templates
           can nicely display entries from either flat files or possibly,
           a CMS. midgard and mason both seem like a good start though. tnx.
2004/9/12-13 [Computer/SW/Languages/Web] UID:33477 Activity:nil
9/12    Does anyone have any good PHP learning sites that they could recommend
        to a webdesigner that doesn't have programming experience? So far,
        http://php.net and webmonkey seem to be pretty good.
        \_ http://www.w3schools.com
2004/9/3-5 [Computer/SW/Languages/Web] UID:33342 Activity:high 50%like:33058
9/3     Can anyone recommend a good introductory PHP book?
        \_ The API on http://php.net is superb if you know perl.
        \_ On a related note, do people really like embedding code in HTML via
           PHP?  It seems incredibly hackish and error-prone to me.
           \_ I worked at a place during .ASP.  It become a nightmare when
           \_ I worked at a place doing .ASP.  It become a nightmare when
              trying to do site updates because of the fuzzy line between
              code and content.  We wanted content updates to be fast and
              easy but code updates to be heavily QA'd but when your code and
              content blur lines like this, yes it does become incredibly
              hackish, error-prone, and hard to deal with in a professional
              software shop.
           \_ How is it more error prone that using non-embedded code?
              Yes, some people like emdedding code in HTML as ASP, PHP,
              mod_perl/Masson, and similar technologies are extremely
              popular on the web.
              \_ With code fragments here and there, I see the potential for
                 (1) reuse via copy and paste and
                 (2) "losing" the flow of the code in the html
                 (3) if some page elements are conditional, it has the
                     potential to be very confusing.
                 \_ HTML sucks too! Use all text/plain.
                    \_ My non-trivial HTML experience was with Perl and MySQL,
                       using a template library for rendering the HTML.  I
                       liked the separation of code and content.
                       \_ What is your point?
                    \_ My only non-trivial HTML experience was with Perl and
                       MySQL, using a template library for rendering the HTML.
                       I liked the separation of code and content.  PHP looks
                       like a mess by comparison.
           \_ These are process issues, not language issues.  When I write PHP,
              I put all of the code possible in functions that go in (usually
              auto-)included lib files.  Then all my web-accessible PHP (HTML)
              files have in them are ifs, foreachs, etc.  (All the same stuff
              you'd use in any templating language; why use another language?)
              --dbushong
        \_ ORA's new "Web Database Applications with PHP and MySQL" just
           came out a few months ago. It covers PHP 5 and whichever
           MySQL version was current at the time of publishing. Yes, you
           might learn it on the web too, though, I still prefer reading
           books myself..
2004/8/23-24 [Computer/Networking, Computer/SW/Languages/Web, Computer/SW/Unix] UID:33086 Activity:very high
8/23    Is soda running a web proxy?
        \_ Not to my knowledge, but if you need one (assuming you're talking
           about a cgi proxy) I recommend setting up nph-proxy.cgi.  It's
           free and easy and works a charm.  -John
           \_ If you want a real http(s)/ftp proxy I recommend squid:
              http://www.squid-cache.org
              It isn't too hard to get running, and for low traffic
              volume the default config provides reasonble performance.
                \_ Seconded.  But "real" http proxies don't work from behind
                   corporate firewalls, usually.  CGI proxies do.  -John
        \_ note that running an unauthenticated web proxy is a violation of
           campus policy.  (And is likely to get you in trouble).  -tom
           \_ is that worse than fingering soda a few times per second?
              \_ Only ONE MAN would DARE give me the raspberry!
2004/8/19-20 [Computer/SW/Database, Computer/SW/Languages/Web] UID:33025 Activity:moderate
8/19    Please suggest a good web hosting site.  Ideally with
        php/shell/sql/cgi-bin support.  TIA
        \_ http://findmyhosting.com is a good search engine for what you want.
        \_ http://he.net
        \_ http://qualityhostonline.com -- starting at $4/year
           \_ I pay $2/yr.
           \_ that doesn't have shell does it?
        \_ thanks for your help - op
2004/8/18-19 [Politics/Domestic/Gay, Computer/SW/Languages/Web] UID:32988 Activity:very high
8/17    http://www.nydailynews.com/front/story/223286p-191854c.html
        Gov. McGreevey:  I am married to a woman, and had a gay affair with
          Cipel, aiding his emmigration from Israel to be with me by giving him
          a cush homeland security director job although he wasn't qualified.
          He was going to sue for sexual harrassment unless I paid him $5
          million.  But he sure is cute.
        Cipel:  It's true!  Not only that, I'm straight.  All his advances
          were unwanted!
        Gay college professor:  Cipel had a relationship with me!
        \_ What is McGreevey's wife's stance on this?  I don't see it mentioned
           in the news.
           \_ She thinks Cipel's kinda cute too.
           \_ The wife almost never speaks when a politician is forced to go
              public as a scumbag cheat of any sort.  They "stand by their
              man" because what else is she going to do if she helps his
              career go down the drain?  He's the gravy train.
              \_ Did Hillary express support during the Monica scandal?
                 \_ She's still married to him, isn't she?
        \_ Am I the only one who thinks McGreevey's wife is hot?
           \_ Yes.
           \_ I haven't even seen a pic in the news yet.  URL please?
           \_ Pic?
              \_ There is a shot on Rush Limbaugh's page:
http://www.rushlimbaugh.com/home/daily/site_081704/content/cutting_edge.guest.h
tml
                 http://tinyurl.com/54kj8
                 \_ Thanks.  Hmm, hard to tell from that pic if she's hot.
                    \_ CNN had a pic a few days ago when this was news.  She's
                       aged milf at best and that's only with full make-up.
           \_ Yes, I think waking up to his wife everyday turned him gay.
              HOTTER!!  GAYER!!
           \_ she might have been hot 20 years ago.
        \_ homophobic bigot!
2004/8/7-8 [Computer/SW/Languages/Web] UID:32762 Activity:nil
8/7     How do I run php scripts on csua?tia
        \_ man www
2004/7/6 [Computer/SW/Graphics, Computer/SW/Languages/Web] UID:31176 Activity:insanely high
7/6     Matrix Ultimate Collection:
        http://forums.matrixfans.net/showthread.php?s=&threadid=24272
        \_ The ultimate collection would be to rewrite parts 2 & 3 into
           something watchable.
           \_ True that.
           \_ And more computer graphics to replace Keanu Reeves.
              \_ You mean Keanu isn't CGI?
                 \_ They got an actor to play the boring bits.
                    People are cheaper than computer time.
2004/5/19 [Computer/SW/Languages/Web] UID:30288 Activity:nil
5/19    Audited PHP: http://www.hardened-php.net/documentation.php
        \_ PHP is for panies.  With vi and perl 4.036 you should be able to
           do anything you need to.
2004/5/8-9 [Recreation/Humor, Computer/SW/Languages/Web, Recreation/Media] UID:30105 Activity:nil
5/8     Van Helsing: all action.  Literally, non-stop action.  There is almost
        no point in the movie where you aren't watching action or in the short
        setup to action.  Stick your tongue in cheek, ignore the few minor
        timeline and plot issues and enjoy the show.  I personally found it
        amusing that the female lead was doing all sorts of acrobatics in a
        tight, inflexible corset.  The cgi was excellent except for 2-3 brief
        shots.
2004/5/2-4 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:29950 Activity:very high
5/1     Can someone please recommend a good apachelog analyzer (generates
        statistics, etc etc)? Something cool, maybe with HTML+graphics,
        easy to use, and free.
        \_ awstats.  uses php, easy to set up.  maybe doesn't do everything
           that webalyzer does, but a heck of a lot easier to install.
           \_ umm, webalizer is pretty easy to install.
        \_ analog is the STANDARD!
        \_ Search the web for "Scratchy"
2004/3/24 [Computer/SW/Languages/Web] UID:12831 Activity:nil
3/24    I'm being asked convert a simple ASP script from IIS to Apache.
        The script is written in VB and all it does is echo back the cookies and
        query string params of the HTTP request, along with a hardcoded body.
        What's the easiest way to write something to do the same thing using
        Apache.  Ideas or pointers to sample code is appreciated.
        \_ I think you'll need a scriptng language along with Apache.
           Try a PHP or Perl/CGI script.
           http://www.google.com/search?q=php+cookies
        \_ PHP has a phpinfo() function that will print out the entire
           environment for you, if you're just looking for a debug tool.  If you
           really need to port this specific page, PHP is still a good candidate.
        \_ I think you need to learn how to format properly.
        \_ http://docs.rinet.ru/UCGI/ch13.htm
2004/3/23-24 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:12825 Activity:nil
3/23    A friend is going to create an email account for her small business
        and post it on the net.  Assuming she would get lots of spams, she
        wants to know whether spam blocking at hotmail or yahoo is any good
        or whether she should use a domain hosting service.
        \_ Why does she want to post it on the web? Just make her a
           comments form and and cgi/php script that sends her email.
           Commercial spam blocking services suck ass.
           \_ There are various simple b2b sites that let businesses post ads
              with contact info, like a bulletin board.  So it's beyond her
              control.  Many such sites are not spam-smart yet.
        \_ I know this is not what you asked, but I highly recommend you make
           some sort of "contact us!" page for the business with a HTML form,
           rather than post her email address on her site.      -brain
        \_ Spam blocking at yahoo and hotmail is waaayyy too overzealous for
           this sort of thing.  I have a box set up to do
           ``what you want'' (TM) for email, i.e. IMAPS, non-destructive
           spamassassin with well trained bayes filters, SMTP+AUTH over SSL,
           redundant MX hosts, etc.  As long as your friend is not going to
           bandwidth hose or attract DOS attacks I would be willing to host
           her email inexpensively.  If your friend's business is something
           cool, e.g. non-profit working to promote human rights, I'll do it
           gratis.  Drop me an email. -dans
                \_ What method and server software do you use for SMTP+AUTH?
                   \_ Pretty much everyone is running Cyrus SASL for the
                      authentication layer.  All modern MTA's that I am aware
                      of have the necessary plumbing to support SASL.  I run
                      postfix, but I've also done it with sendmail (I wouldn't
                      want to do it again). -dans
           \_ My friend is selling bio weapons to third world nations so they
              can play on a level field with the evil Western powers.  It is
              entirely non-profit and advances the rights of women and the poor
              in the third world.  What do I need to do to get a free account?
              \_ One meellion dollars in small, unmarked, non-consecutively
                 numbered bills. -dans
           \_ Thanks.  Are you running a commercial hosting service?  Is there
              any commercial hosting service that does it?  (presummably with
              a shell account?)
              \_ No, I am not running a commercial hosting service.  I just
                 happen to have several boxes set up to do this, and offer
                 service to friends, family, and friends of friends.  Mostly
                 it is an evil ploy to get my friends off of shitty webmail
                 services like Hotmail and Yahoo so I don't ever have to
                 update my address book, resend messsages when they bounce due
                 to quota, etc...  In particular, email account != shell
                 account on my boxes.  Most people don't need shell accounts,
                 and most people lack the clue to use a shell account in a
                 responsible manner that won't compromise system security.
                 -dans
                 \_ I guess that is why almost no low cost hosting service
                    offers a shell account.  But if I have a domain hosted
                    with email acct., is there a way to route the incoming
                    emails there first to a place where I have shell acct.,
                    say soda, filtered it w. spamassassin, and then route
                    back to that domain?
                    \_ No, I think it's mostly that shell accounts aren't in
                       wide demand.  ftp is sufficient for most people's needs
                       so it's not cost effective to provide shell accounts.
                       You *can* route it to a place with a shell account and
                       filter it with spamassassin, probably easiest to do
                       with /etc/aliases, which I can set up.  Pushing it back
                       to the original box is tricky to do without creating
                       mail loops.  Of course, if you read what I wrote,
                       you'll note that my box is already running
                       spamassassin.  Also, I've got my box set up to allow
                       mail filtering without a shell via sieve. -dans

        \_ I have a yahoo account, and I seem to get a lot less spam than my
           family and friends who use hotmail.
2004/3/13-14 [Computer/SW/Database, Computer/SW/Languages/Web] UID:12653 Activity:nil
3/13    Anyone got pointers to docs/files for info on using MySQL on soda?
        It's for a class project and wanted to use PHP and MySQL on soda
        to experiment with it.  Has anyone tested it out?
        Is this it? '/usr/local/bin/safe_mysqld'  Thanks in advance...
        \_ We have a postgres server available for such projects; email
           root for more info.
2004/2/24-8/5 [Computer/SW/Languages/Web] UID:12725 Activity:nil 66%like:35793
2/23    php upgraded to 4.3.4; bugs to erikk
2004/2/20-21 [Computer/SW/Languages/Web] UID:12328 Activity:kinda low
2/20    Anyone know of any simple console or php based calendar/appointment
        program?  I just can't get myself to use my palm effectively enough
        to remember stuff.
        \_ PHPiCalendar (source forge project) displays your .ics calendar
           files.  So you could just upload your calendar to your server and
           use it as the front end.  Otherwise, Yahoo! is cool. -brain
        \_ I've recently started using the Yahoo calendar. It is pretty
           useful. The UI can be a bit clunky at times, but it does what
           I want... and web-accessibility is a big plus for me. One cool
           feature I like is that it will send you reminders for appt's
           via SMS msg's to your cell phone.
           \_ Thanks.  I'll try it again and see if it's improved since few
              years back.  I think it was rather slow before.  Now, any
              shell utils? -op
              \_ I have been thinking of writing one. What feature do you want?
              \_ I have been thinking of writing one.
                \_ I don't want to discourage you but there are a lot of them
                   at sourceforge.              -brain
                   \_ but they all suck
                         \_ What would you like it to be?  I have some interest
                            in writing one that I would use myself.
                   at sourceforge.              -brain
                   \_ but they all suck
                      \_ this is what i've found. any evidence say otherwise?
2004/1/5-6 [Computer/HW/CPU, Computer/SW/Languages/Web] UID:11663 Activity:nil
1/5     Not something you want to see before making a trade:
        An error has occured while processing request:
        <DEAD>trade.americanexpress.com/brokerage/AControlServlet<DEAD>
        Message: [JSP 1.0 Processor] reported an error
        ... along with the associated Java stack trace.
2003/10/29-30 [Computer/SW/Languages/Web] UID:10849 Activity:nil
10/29   Hosting question...
        So what are some recomendations for very cheap and reliable
        hosting options? I want DB support (MySQL, or postgres), JSP/servlet
        stuff, and other general scripting things like PErl, PHP. I'd also
        like to get a couple domains, and dont have any access to servers
        to do name serving. thanks.
        \_ when you find this magical utopian provider that will cheaply and
           reliably host your entire network, your db, java engine and every
           thing else and do it on their own hardware, please let the rest of
           us know.  i've got 40 racks of servers i'd like to move to this
           wonderland.
           \_ well "cheap" and "reliable" are obviously relative, and there
              is obviously an inverse correlation between the two. There
              are many places that will do most of what asked about and
              I was just soliciting recommendations. ... but thanks for
              keeping the motd useless.
              \_ my pleasure.  next time ask an answerable question and you
                 might get an answer you can use.
        \_ how about 10 of us pitch in for a nice Linux box and co-locate it.
           We'll run it like an extension of CSUA, or a colony of it. A bunch
           of us can vote what should be there and what shouldn't, and some
           of us can manage portions of it like postgres, apache, sendmail,
           spamassassin, etc etc. It'll be more efficient than CSUA since
           there are less people and no politburo, and it'll be better
           because there are less users.
           \_ Why would anyone want that?  I come here for the people.  Most of
              us already have jobs and high speed near-the-backbone net access
              if we wanted to grab an IP and dump a box outside the corp. fw
              for personal use.
2003/10/29-30 [Computer/SW/Languages/Web] UID:10846 Activity:very high
10/29   And so it begins, bit by bit the death of outsourcing:
        http://home.businesswire.com/portal/site/google/index.jsp?ndmViewId=news_view&newsId=20031023005950&newsLang=en
        Send your shit overseas or to someone with no attachment to the US and
        reap the 'rewards'.  This is an extra zinger on top of last week's
        UCSF medical transcription extortion problem.
        \_ http://csua.org/u/4ua
        Send your shit overseas or to someone with no attachment to the US and
        reap the 'rewards'.  This is an extra zinger on top of last week's
        UCSF medical transcription extortion problem.
        \_ Ehh. That could happen regardless of outsourcing.
           \_ Bzzt not quite.  In this concrete example, Russia has very
              weak to nonexistent computer crime laws.  There has historically
              been almost no interest on the part of Russian law enforcement
              agencies to cooperate (for better or worse) with their western
              counterpart in areas like this.  -John
            \_ yeah right, try it here and your ass would be in prison by the
               end of the week.  if it was that easy it'd happen all the time
               or do you just believe that American employees are just really
               ethical compared to their foreign counterparts?
2003/10/28 [Computer/SW/Languages/Web] UID:10826 Activity:moderate
10/28   Any tips on using php on csua?  I get "end of script headers"
        server error when I try to incorporate php into my html file on
        csua, do I need to put some other path or something in? (anyone
        have a template or simple script they can point me to?) Thanks!
        \_ judging from the logs, i think Soda's suexec+php setup
           is screwy and doesn't work, mail root?
        \_ man www
              PHP scripts are processed by Apache's cgi handler and  php
              if they have execute premissions and begin with this line:
              #!/usr/local/bin/php
              if they have execute premissions and begin with this line:
              #!/usr/local/bin/php
        \_ http://www.csua.berkeley.edu/~danh/phpinfo.php works
           \_ Thanks - I had assumed it was loaded as a module... -OP
2003/10/21-22 [Computer/SW/Languages/Web] UID:10710 Activity:nil
10/20   When did the dailycal switch to using PHP? Articles actually load now.
        \_ dailycal started working after they stopped using http://autobahn.org,
           a cheapo ISP managed by lame ass people and admined by a mediocre
           sysadmin who has a bloated ego.
        \_ WTF are you talking about? That shit doesn't load at all. I need
           my SoT fix!
2003/9/1-2 [Computer/SW/Languages/Web] UID:10032 Activity:nil
9/1     All the sobig email I get seems to come from a specific IP address:
        <DEAD>adsl-XXX-XXX-XXX-XXX.dsl.sntc01.pacbell.net<DEAD> .  Is this reliable?
        Would contacting PacBell be of any use?
        \_ no.  just delete it and any email from evil people this way
           in your .procmailrc unless for some reason others really have
           to send you a windows screensaver or dll via email:
           :0 B:
           * ^content-transfer-encoding.*base64
           * name=.*\.(pcd|pif|reg|scr|sct|shb|shs|url|vb|vbe|dll)
           /dev/null
        \_ Delete everything between "All" and "?" and the answer would still
           be: No.
           \_ the <DEAD>pacbell.net<DEAD> address is the only one listed before it arrives
              at soda.  Unless I'm getting them from a soda user, can that
              still be a spoofed header?  is sobig even known to forge headers?
2003/7/16 [Computer/SW/Languages/Perl, Computer/SW/Languages/Web] UID:29051 Activity:high
7/15    What's the best language for web scripting these days? Perl? PHP?
        Python? Something else?
        \_ PHP is really fast.
           \_ php is a pos if you need to do anything real. Perl or
              jsp/jsf is the way to go.
                \_ starting a new perl process for each web page
                   being served up will be much slower than php.
                   I'm curious if anybody has opinions on mod_perl.
                   \_ My understanding is that with mod_perl, perl outperforms
                      php--without it, it loses.  But I haven't run any
                      comparisons myself.
                      \_ I've coded in both and supported lots of coders in all.
                         PHP has the quickest dev. times, is easiest to do almost
                         anything and has had the least problems.  (really none).
                         It's just my experience, but i've been on two bigish php
                         projects with no problems and have never dealt with a
                         java or mod-perl project where there wasn't some
                         weirdness that had to be worked through.
        \_ i guess cold fusion is completely dead
        \_ do we have a LAMP set up on soda?
        \_ 'best' for what?  fastest?  more secure?  best supported?  best
           dev environment?  it's like asking if one OS is 'better' than
           another.  is this a somewhat subtle attempt to start a flame war?
           you need something less subtle to get a good flame fest going.
2003/7/9 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:28968 Activity:high
7/8     Is there a way to put a colored border on the inside of a cell
        in an html table?
        \_ use CSS, border attribute
           \_ td, th { border: 2px solid orange }
                \_ why ",", not " "?
                   \_ RTFSpecs
                   \_ with comma: "apply this rule to any td or th"
                       w/o comma: "apply only to th that is child of td"
        \_ Can't you set BGCOLOR?  For example, <TD BGCOLOR=GREEN>
           I don't know if it's standard, though, so it might not work in
           all browsers.
           \_ That stuff has been deprecated.
           \_ and you will die for suggesting the use of bgcolor, esp. in caps
        \_ related css question: how can i change the blue background of the
           selected item in a dropdown list?
           \_ select option:active { background-color: pink; } might
              work.
              \_ at least w/ IE6, it doesn't work. i think "active" is
                 only a pseudo-class for the a element, no?
                 \_ In CSS1, yes, but CSS2 expands active, hover, and focus
                    to all elements.  See if it works with mozilla.  Also, try
                    select, option:active { background-color: pink; }
                          ^ note the comma
                    just to make sure.
                 \_ I suggest using the validator services. valid xhtml is
                    the way of the future.  http://validator.w3.org and
                    http://jigsaw.w3.org/css-validator
                    \_ ya very nice and all but it still doesnt work.
                       \_ it may not work but at least you'll be spec-clean!
2003/6/10 [Computer/SW/Languages/Web] UID:28685 Activity:low
6/9     Anyone out there use any of these PHP IDEs?  Any one better than
        the others?  (this ain't for me i'm happy with slickedit).
        \_ I use ed.  It's the STANDARD PHP IDE!
2003/5/13-14 [Computer/SW/Languages/Java, Computer/SW/Languages/Web] UID:28421 Activity:high
5/12    I'm making a website for a friend and he'd like to process some
        simple credit card transactions (he's a lawyer and its for one-
        time legal consultations). Anyone know a good way to do this?
        Yahoo and Earthlink both seem to offer services, but I already have
        a full dynamic web app, and thus would prefer to not have to use
        some dumbed-down GUI interface for setting the thing up. thanks.
        \_ Talk to the CC folks you'll be dealing with.  They each have a
           variety of different methods and pricing for cc+net charges.
           There's software on your end to talk to their end on an encrypted
           connection and an API to go with it which the software will deal
           with.  The software's task is generic, do some research and buy
           whatever fits your budget.
           \_ I don't get it... are you saying the banks providing merchant
              accounts will typically provide me w/ an API for processing
              CC transactions?
              \_ no, im saying there *is* a standard api that the people who
                 build the cc software use to talk to the banks.  it's unlikely
                 anyone will give random hacker dude their api.
                 \_ ok, I guess I'm not being clear... what I'm asking for
                    are some recomendations for cc software places
                    \_ I've been looking at a variety of systems and have
                       some notes here :  http://csua.org/u/ebd
                       I think I'll be going with ECHO since they have a Java
                       version and my app is mostly JSP/servlets     -brain
                       \_ great! thanks alot.
        \_ rule of thumb-- don't work for a lawyer.
        \_ I use VeriSign.  They offer you APIs to talk to all major
           credit card issuers.  You only pay them a small fee when
           someone charges his/her card.
2003/5/9-10 [Computer/SW/Languages/Perl, Computer/SW/Languages/Web] UID:28387 Activity:kinda low
5/8     is there a perl equiv of the php "escapeshellarg()" function?
        \_ Tell us what escapeshellarg actually does (I can guess but...).
           I know perl but not php.  I'm sure I'm not the only one.
           \_ I'm trying to untaint a var that i will pass to a shell cmd.
              I think $ARGV[0] =~ s(')('\\'')g  should do it, but <shrug>.
        \_ You may want to look at quotemeta, but this sounds like an ugly
           hack.
           \_ open(FOO,"\Q$tainted\E |");
2003/4/28-29 [Computer/SW/Languages/Web] UID:28245 Activity:moderate
4/27    Macromedia ColdFusion and Jrun are steaming piles of horseshit that
        are not fit to be emptied in an outhouse, much less run a web
        application.
        \_ You only just figured this out now?
        \_ Doing your programming in tags (I got stuck with ColdFusion
           at sony) is always a bad idea(TM). I assume you're stuck
           using it because the dimwits before you got stuck on the
           platform. In fact, JavaScript and JSP and ASP are only
           marginally better. Mixing HTML with other shit is always
           a bad idea.
           \_ Yeah!  do all your web coding with SSI!
           \_ What alternative do you propose?
              \_ ATG Dynamo does a good job of enforcing the MVC
                 design pattern with its Java application server.
              \_ CGI.
        \_ This wasn't really a revelation, more an exclamation of
           frustration.  Anyone know a ISP that will let you run ColdFusion
           backed by mysql?  Additionally, will need SSL support.  I need
           something set up fairly quickly, but only for a month or two. -op
2003/4/24 [Computer/SW/Languages/Web, Computer/SW/Languages/Misc] UID:28209 Activity:nil
4/23    HTML form JSP question:
        What I have is essentially, an array of a set of radio buttons.
        Since radio buttons are identified by its name and there is no
        concept of scope in HTML, how do I deal with this? I really want
        to avoid things like
        <input type="radio" name="radio1">
        <input type="radio" name="radio2">
        <input type="radio" name="radio3">

        mainly because the javabean for this form is going to be a pain
        in the butt to write.

        any pointer? custom tag?  thanks in advance
        \_ Well, any form inputs are basically parameters to a function
           (read cgi).  So name them accordingly.  A terse, descriptive
           name.  And there certainly is "scope" in HTML.  It's global per-
           page (correct me if I'm wrong).  Also, you mention JSP, which
           definitely has definable scope (e.g. page, session, etc.)
           --scotsman
           \_ what i want is a radio input which has the scope of
              let say, 1 table row!
        \_ radio buttons belong to a group, so you could do the following:
           <input type="radio" name="group1" value="radio1"/>
           <input type="radio" name="group1" value="radio2"/>
           <input type="radio" name="group1" value="radio3"/>
           So, the parameter is group1 and then whichever radio button
           is selected will pass the value.
           \_ Well, this is what you would do for, say, a multiple choice
              question or the like.
              \_ What is your use case exactly?
                \_ example: a page of 10 multiple choice questions.
                   idealy we want be able use an array to handle
                   them, instead of hardcoding the name.
                   \_ I wouldn't recommend this, but if you want to use an
                      array you could give each question-group the same name
                      and then make the value for each answer something like
                      q1_a2 (1 and 2 would be values from the question and
                      answer loops).   Then you could retrieve every
                      answer by getting the parameter value array for the
                      parameter named "questions".  An example entry would
                      be:
                      <input type="radio" name="questions" value="q1_a2"/>
                      But I'd rather name each question-group something
                      like q1 ... qn and then each answer in that group
                      a1 ... an and then just pull out the parameter values
                      using a loop of names q1 ... qn and stop when the
                      value for q_current is empty.
2003/4/17 [Computer/SW/Languages/Web] UID:28153 Activity:nil
4/16    about half years ago, I asked a question basically compare different
        kind of server-side scripts: jsp, asp, php, etc, and I got a pretty
        good response.  One thing I did "miss" was that I didn't ask about
        Cold Fusion.   Now, in my company, my boss is trying to stuff
        Cold Fusion down our throats.  How's Cold Fusion compare with all
        other server-side scripts, in terms of advantages, disadvantages?
        Thanks in advance  [blatant grammar errors corrected]
        \_ Cold Fusion == PHP only buggier and non-free.  Considering how
           hard PHP sucks, that's probably a bad sign.
        \_ My wife did some work with Cold Fusion and she couldn't think
           of enough bad things to say about it.  I was most impressed
           with the fact that you couldn't really write your own functions
           in Cold Fusion until something like version 4!  Based on her
           experience I would advise you to resist Cold Fusion as much
           as possible.  Good luck.  -emin
2003/3/23 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:27808 Activity:high
3/22    The real solution would be to replace motd.public with something a
        little more secure and functional, like a CGI weblog script or
        something.  But that would be too rational and easy, which wouldn't
        be in the spirit of the motd.
        \_ http://csua.org/motd
        \_ that wouldn't be the motd anymore would it?
        \_ The real solution to what exactly?  I don't see a problem.
2003/3/19 [Computer/SW/Languages/JavaScript, Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:27739 Activity:moderate
3/18    How do I put my e-mail address in my home page and avoid being picked
        up by spammers?  Do spammers scan for "mailto:" links or do they scan
        for all text in the .html files?  Thx.
        \_ Don't worry so much about the scan part...it is too hard to
           maintain. I just use spamassassin now, and sometimes give
           out user-tag (or user+tag) type addresses.
        \_ put up an image of your email address. The spammers aren't going
           to bother taking the image file and trying to OCR it to get the
           email address.
           \_ Cool!  Thanks!
        \_ Make a form that posts to a cgi script that sends you mail
        \_ post your email address to usenet then everyone will have it and
           you won't need it on your web page.
           \_ This is like that entry on the multiple-choice test your
              teachers warned you about.
              \_ "E"!  It's always "E"!
        \_ Someone deleted my post about JavaScript obfuscation, which is
           probably the best way to keep the functionality of a mailto: link
           while hiding from spammers.  ObGoogle.  -tom
        \_ I wouldn't use a mailto: link. I'd rather just post my email
           address in html using '&#64;' for '@' and '&#46;' for '.'.
           This will prevent the vast majority of spammers from harvesting
           your email addr from your webpage.
           \_ This sounds good too.  Thanks.
           \_ Thanks! -spammer
2003/3/5-6 [Computer/SW/Languages/Web, Computer/SW/Editors/Vi] UID:27604 Activity:high
3/5     VI people, please ignore:
        I have defined a function (well, copied from the web) using
        (defun jsp-mode() .....), dump it into my .emacs file
        how to call it explicitly in emacs? M-x then?
        (and no, i dont' know how to hook my jsp-mode to .jsp file)
        \_ VI people how to ignore?  Maybe VI people knowing how to, eh?
           Some people how to knowing multiple editor environments!  --howto
           \_   I do have multimode.el.  I did managed to get jsp mode to work
                but I still don't know how to call functions which
                explicitly defined in the .emacs file.
                \_ Explicity defined is managed getting jsp mode work but not
                   how to doing explicit function call VI!
        \_ You weenies and your interative editors.  SED is the STANDARD!
        \_ You weenies and your interactive editors.  SED is the STANDARD!
            \_ Real Men(c) don't make speling mistakes!
            \_ Your interactive editor incorrectly assumed "interactive"
               instead of "iterative."
2003/2/11-12 [Computer/SW/Languages/Web] UID:27371 Activity:high 71%like:27368
2/11    Need to write lexer for VB.  (Links to spec)P  obgoogle failed.
        \_ sounds like an interesting project. what you doing?
           \_ Adding a lexer for a program analysis tool that already does
              c/c++, php, python, perl.  The program is written on unix,
              I just need a better way of finding out the lang spec for VB
              other than writing a bunch of examples and seeing what comes
              spewing out of m$ compiler.
        \_ your seach-fu is lacking.  "Visual Basic language specification"
           on google returns this as the first result.
           http://csua.org/u/930 (msdn.microsoft.com)

2/11/2...003 - Hi tony!
2003/2/11 [Computer/SW/Languages/Web] UID:27368 Activity:nil 71%like:27371
2/11    Need to write lexer for VB.  (Links to spec)P  obgoogle failed.

2/11/2...003 - Hi tony!
2003/1/4-5 [Computer/SW/Languages/Web] UID:26986 Activity:kinda low
1/3     Looking for a part-time / side job that involves programming (HTML,
        Javascript, VBScript, ASP, VB, Java - but not Enterprise Java).  I have
        a full time job already (tech-related, but not programming) but looking
        for something to gain additional experience (have experience with all
        of the above at a high level).  Not looking for a big supplemental
        income.  Any "coder-monkey" type jobs where I can work from home?  Not
        a troll.
        \_ Low income side jobs don't work with cable modem.
        \_ i'm unemployed and would be willing to do the same...
             \_ and this is why the employed geek above will have a hard
                time finding that situation right now.
2002/11/20 [Computer/SW/Languages/Web] UID:26580 Activity:nil
11/19   can we turn on php support on the webserver please?
        \_ Note that using mod_php on a multiuser system could
           introduce some awkward security issues. Why not just
           execute PHP scripts as CGIs? -!root
           \_ sure! how do i do that
             \_ Someone needs to install the php interpreter on soda and it
                better be compiled with --enable-discard-path or it might not
                work well for CGIs. -!root
                \_ After looking at the ports collection, doing
                   "cd /usr/ports/lang/php4 && make install"
                   should probably do it.
                   \_ Done.  --root
                      \_ I'm still getting <?phpinfo()?> as the result of
                         my test.php - should I rename the file something else
                         or have it in a different dir?
2002/10/2 [Computer/SW/Languages/Web, Computer/SW/Languages/Perl] UID:26073 Activity:high
10/1    I am trying to modify an application with a pretty complicated post and
        i seem to be missing the variable names or the values that i got from
        just reading the source.  Is there a way I can change the file it posts
        to to "myfile.[php||pl||sh||whatever" and have "myfile" just dump
        exactly what is being posted to it?
        \_ if you're using the CGI library in perl,
           you can dump out all post values the page is receiving
           easily, i think the syntax is something like
           print $query->dump; - danh
            \_ Undefined subroutine CGI::dump
                \_ and actually i just tried the below
                   on a different machine and i got the same error,
                   it works on soda though - danh
                   \_ Was it a linux box? Mine is.  But your are right it works
                      fine on soda and i can just post to a .cgi here. - tnx.
                \_      #!/usr/bin/perl

                        use strict;
                        use CGI;
                        my $query = new CGI;
                        print $query->header();
                        print $query->dump;
2002/9/7-8 [Computer/SW/Languages/Web] UID:25796 Activity:nil
9/6     I need to write a Highly Secure (like banking/gambling level security)
        web application.
        Is Java any more secure than php (ceteris paribus).
        And what is the best way to go about getting an outside agency that
        will do a thorough audit when i'm done.  I don't need some h0zer to
        run a nessus/SAINT scan and throw it on some letterhead.
        \_ i'd trust java a bit more than php.  it's actually a main dev
           concern, where with php it seems like it's been an afterthought.
           take it with a grain of salt.  i'm a sysadmin, not a developer.
        \_ Concerning audits, I would do two types;  first of all, don't
           underestimate h0zers with nessus/SAINT.  Peer review is a Good
           Thing (tm).  Don't hesitate to ask people you know to hammer away
           at it.  You'll also, for the suits, want a (mainly pro-forma)
           formal audit--depending on your level of funding, you might want
           either a consultancy that does a lot of security work, like kpmg
           (ugh, disclaimer, I think they're all pretty worthless, but this
           is for the suits, remember), or one of any number of smaller
           outfits to have a go at it.  Otherwise, you can probably find
           someone CISA certified through ISACA (http://www.isaca.org with
           strong application audit clue.  If that's no good, mail me and
           I can probably help you find someone, obBlatantPlug.  -John
2002/7/30-31 [Computer/SW/Languages/Web] UID:25454 Activity:high
7/30    On your soda account, has anoyone tried using 'gallery' web app
        from http://sourceforge.net.  Also, how do I setup php support?  If 'gallery'
        is not a good photo 'gallery', what's good?
        \_ I've gotten liveframe (look it up) successfully
           on soda
        \_ use any of the free online services
        \_ dbushong seems to have written something... http://bushong.net/pics
        \_ I just use File -> Automate -> Web Photo Gallery in Photoshop.
        \_ i heart gallery -shac
2002/7/17 [Computer/SW/Languages/Web, Academia/Berkeley/CSUA/Motd] UID:25380 Activity:high 75%like:25378
7/16    My CGI stuff on soda is failing with "premature ejaculation"
        What the deally, yo?
        \_ Did you edit the files on Windoze and are now trying to run
           them on Unix? They treat <CR> and <LF> differently.
        \_ Is this the suexec problem?
        \_ I mailed www, and was told it was because they were working on
           getting suexec working.  At the time, even trivial CGI stuff wasn't
           working.  It appears to be fixed this morning (7/17).
           \_ Looks OK now.  Thanks for looking into it.
              -OP (original poster, i just invented a new motd-ism!)
                \_ uh, people have been using -OP for years.
                   \_ I've been using that since 3rd grade!  You
                      got molded!!!
                      \_ Um.  Isn't it "moded," short for "outmoded"?
                   \_ Well no for a year or so maybe.  And *I* invented it.
                      Or coined it, actually.
2002/7/17 [Computer/SW/Languages/Web] UID:25378 Activity:nil 57%like:25301 75%like:25380
7/16    My CGI stuff on soda is failing with "premature end of script headers"
        What the deally, yo?
        \_ Did you edit the files on Windoze and are now trying to run
           them on Unix? They treat <CR> and <LF> differently.
        \_ Is this the suexec problem?
        \_ I mailed www, and was told it was because they were working on
           getting suexec working.  At the time, even trivial CGI stuff wasn't
           working.  It appears to be fixed this morning (7/17).
           \_ Looks OK now.  Thanks for looking into it.
              -OP (original poster, i just invented a new motd-ism!)
                \_ uh, people have been using -OP for years.
2002/7/8-10 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:25301 Activity:high 57%like:25378
7/8     All of my CGI scripts on Soda have died all of a sudden.
        Error message:
        Premature end of script headers: (filename.cgi)
        What gives?
        \_ CGI suexec has not been built into the new apache httpd.
           if user www cannot read/execute your .cgi script, it will
           fail to run. suexec will be added later. -- jwang
                                             \_ approx timeframe?
             \_ if www CAN read/execute your script (perm 755),
                then you get the message described above.
                if www CAN NOT read/execute your script (perm 700)
                then you get a server error "mod_mime_magic: can't read
                'filename'." either way it doesn't work.
           \_ hmm.. couldn't basic things like suexec support be tested
              and ironed out before switching to the new httpd?
              \_ fuck off
        \_ .shtml doesn't work either.
             \_ Which part?
2002/5/8-10 [Computer/SW/Languages/Web] UID:24759 Activity:nil
5/8     Anybody knows where I can find an FAQ on creating a cgi-bin
        for my webpage on soda?
        \_ anyone want to install a servlet engine on soda so
           we can use JSP?
         \_ I second this: Perl CGI is outdated technology.
            Also add a Tomcat server for web services.
        \_ Shouldn't that be "a FAQ"?
           \_ "an FAQ" is ok if you pronounce it "ef-ay-que".
             \_ I pronounce it "fack", as in FAQ U, luser.
2002/4/4-5 [Computer/SW/Languages/Web] UID:24317 Activity:very high
4/3     What is advantage/disadvantage of various server-side scripting?
        JSP, M$ ASP, PHP?
        \_ Next page of replies summarized: Your mileage may vary.
        \_ visit link:www.codecharge.com for a nifty tool.  Otherwise, PHP is my
           favorite since it has source, is designed from ground zero for
           web-pages, and is cross-platform.
        \_ JSP -> Its java, its slow but its pretty secure and reasonably
                  well thought out.
           ASP -> Its M$. You are pretty much stuck to shitty x86 boxes
                  running windows if you want ASP. Yes there is Sun's
                  Chillsoft ASP for Linux but they you are stuck with
                  shitty x86 boxes running Linux. In either case your
                  box will be r00ted in a short time, so you will need
                  to get lots of boxes and keep reimaging them frequently.
           PHP -> D00D PHP 15 S0 '1337. It is OSS and all that other
                  GN00 non-sense and in addition it is a immature language
                  saddled with horrible half broken libraries that have
                  inconsistent volatile interfaces and "object models".
                  Given the right circumstances (ask php to exec a ten
                  line c program that fork's and execs) and it will lock
                  up you machine. And don't even think about doing db
                  interactions in php.
          If it were up to me, I'd say go with perl (modperl or fastcgi)
          or java servlets instead of these stupid scripting languages.
          If you are really interested in speed, security and flexbility
          write the damn thing in C.
          \_ PHP, JSP and perl all have better security features than C.
             \_ Name them. Name a single "feature" that cannot be
                implemented in C.
                \_ He can't.  What he's really saying is his coding fu
                   is weak and he needs a baby scripting language to
                   coddle him through at the expense of speed and power.
                   \_ I would not consider perl a "baby scripting
                      language", but you are right on all other
                      counts.
                      \_ I'm a perl coder and I've seen them on TV.  It's
                         easier than C and slower thus I call it a baby
                         scripting language.
          \_ Everything is possible in C, just not necessarily as easy.
             You get a *lot* of speed but give up everything else for it.
                   and therefore already in memory so the context switch cost
                   is going to be low relative to the speed gained for any
                   non-trivial program and even many trivial ones.  Try it
                   yourself.  You'll see.   --done it before
             \_ uh... how can you get speed writing server-side stuff
                in C?
                \_ Why not?  What's so magical about "server side" that makes
                   C slow?  Are you sure you know what "server side" means?
              \_ There is a direct correlation between the two. You can't spend
                 3 years building all the things in C that are free w/ MS or
                 Java. So you just don't have those things. So your shit sucks
                 because it is slow or lacks features.
                \_ Java and Perl code tends to run from within Web server/
                   app-server process space, ie down't spawn new processes.
                   C CGI, on the other hand, will probably be forking a new
                   process for every shitty little page, which is totally not
                   worth it. Hence, C CGI tends to be a good deal slower than
                   Perl/Java.   -muchandr
                   \_ Uh oh... someone is unaware that a C app will be cached
                      and therefore already in memory so the context switch
                      cost is going to be low relative to the speed gained
                      for any non-trivial program and even many trivial ones.
                      Try it yourself.  You'll see.   --done it before
                   \_ C code can be run in the context of the web server if
                      desired by writting a trivial module that uses shared
                      memory to communicate with your real C deamons that do
                      all the work.
        \_ Speed Java (/ASP?) >> Speed C when you think about all the tools
           for Java that are available to do things like load balancing, cxn
           mgmt, etc.
           \_ No.  This is development time not code speed.
              \_ There is a direct correlation between the two. You can't
                 spend 3 years building all the things in C that are free
                 w/ MS or Java. So you just don't have those things. So
                 your shit sucks because it is slow or lacks features.
                 \_ a few clues: libraries, code borrowing, thanks for being
                    with us today, Rice A Roni on your way out.  And for some
                    things 3 years to build something that will be fast when
                    it's done is better than 6 months for something that will
                    always be too slow.
                    \_ and what happened to Kiva? NetDynamics? iPlanet?
                       all that beautiful C++ code got thrown away in favor
                       of the Java reference implementation. -gosha
                       \_ C++?!?!  Are you fucking insane?  How dare you put
                          C++ into the same sentence as C!?!  WTF is wrong
                          with you?  Of course the C++ code got thrown away!
                          Like, uhm, duh!  Damn, has the whole motd gone 420?
              \_ C is slow.  Write code in assembly.
                 \_ 010100110101101011100111001010110011001101010101010100101
                    \_ do it in hardware.
                       \_ Provide a lab and I'm there.
        \_ Tcl... like Perl but faster learning curve
           \_ Madness ye all who pass this way!
           \_ who gave phil greenspun a csua account?
2002/3/6-7 [Computer/SW/Languages/Web] UID:24036 Activity:high
3/6     Regarding php in apache, the argument of undue load from the
        php module can be taken care of with a reverse proxy web cache
        like squid.  This is highly effective, and I'd be glad to set it
        up.  --scotsman
        \_ can you set up PCP?
           \_ No but I can snort it
                \_ Real Men(c) inject it raw.
                   \_ Real Men(c) booty bump it -sky
                      \_ where can I get PCP sky?
2002/3/4-5 [Computer/SW/Languages/Web] UID:24020 Activity:high
3/3     Doh.  I missed out on the answer to the "Can we run php on Soda?"
        thread and I can't seem to find an answer on the Soda webpage.
        Are there any plans afoot to implement php on Soda?  --erikred
        \_ For the fifth time, no.  If you want to run php, build it yourself,
           and run it via CGI mechanisms.
           \_ why not?
              \_ Grumble.  From the CSUA FAQ:
                 We expect our members to be at least somewhat computer
                 literate, and to have an interest in learning and
                 experimenting. Because of that, and the fact that our staff
                 are all volunteers, we don't serve the users in the same way
                 someplaces like the [19]OCF does.  This doesn't mean soda is
                 especially unreliable or uncared for, it just means we expect
                 people to be better able to fend for themselves.
                 ...
                 9. Soda doesn't have XXX installed, could you please install
                 it?
                 No. Except in special cases, soda staff does not install
                 software on request. Soda is meant to promote a user
                 community, and as such we encourage people to make their
                 own contributions by installing new software. In addition,
                 installing software can be a great learning experience
                 (and is how a number of soda staff got their start). If
                 you wish to install something on soda, just send mail to
                 root asking for the necessary permissions to do so.

                 Furthermore, the majority of sodans don't have php-enabled
                 web pages, so the extra overhead of running php from within
                 Apache (i.e. mod_php) is wasteful.
                 \_ This is a stupid response.  Obviously, mod_php is much
                    more interesting than the CGI version, and a user can't
                    install mod_php.  A decision on whether the small amount
                    of extra resources required for mod_php is worthwhile
                    should be made by the people who run the machine, not
                    some anonymous coward on the MOTD.  (If you can manage
                    to get the people who run the machine to respond to
                    e-mail).  -tom
                    \_ No, it isn't a stupid response.  Saying "please install
                       PHP" is just the beginning...   "OK, but I need the
                       gd charting module!  and the DB access module!  what
                       about the LDAP module?"  ad infinitum  If it were just
                       one "portinstall -P", sure, why not.
                        \_ no it's a stupid response, grumpy root person.
                           it's not like installing software is actually
                           difficult in these days of ports and packages,
                           big freakin' deal.  doesn't anyone enjoy
                           a challenge anymore?
                                \_ sysadmins work for pay these days -ex-vp
                    \_ tom, I'm just parroting the response that root staff
                       gave the last three times this was asked.  Fuck off.
                       - anonymous coward on the MOTD.
        \_ Thank you.  --erikred
        \_ why don't ou just run PHP on ocf?
2002/1/3 [Computer/SW/Languages/Web] UID:23440 Activity:very high
1/2     Does CSUA support PHP?
        \_ No, PHP is an abomination.  It should be destroyed...
           Seriously though:
           > cd /usr/local/apache/conf
           > grep php httpd.conf
             # http://www.php.net will typically use:
             #AddType application/x-httpd-php3 .php3
             #AddType application/x-httpd-php3-source .phps
             #AddType application/x-httpd-php .php
             #AddType application/x-httpd-php-source .phps
             <Files ~ "\.(cgi|shtml|phtml|php3?)$">
           So the answer would be no.  That said, you can still use it.  Build
           your own copy of php, and run your php pages as CGI pages. -dans
           \_ Is JSP an abomination?
              \_ yes.
                 \_ Is CGI an abomination too?  What isn't an abomination?
2001/12/22 [Computer/SW/Languages/Web] UID:23350 Activity:high
12/22   DailyCal is running on IIS/ASP?!!  God saves us!
        >http://www.dailycal.org/article.asp?id=7323
        \_ This is just another option to become a writer.  Upload your own
           stories or modify the ones already there to suit your taste.
2001/12/20-21 [Computer/SW/Languages/Web] UID:23324 Activity:kinda low
12/19   I'm just learning this to be more "marketable". JSP is just a more
        glorified Servlet (expanded Servlet) right? Then, is EJB also a more
        glorified Servlet? And J2EE is just a bunch of EJBs right? I'm hoping
        someone could just give me a simple explanation.
        \_Not exactly. JSP is an embedded servlet inside an HTML. So a servlet
        is analogous to a complete server side object, i.e. any type of CGI
        program. You hook up HTML to a servlet strictly by coding in links in
        your html. A JSP is actually written INSIDE html code, so it's
        analogous to ASP, ColdFusion, and very cursorely like JavaScript.
        When a JSP page is called, a servlet is actually compiled on the
        server side from the stub parts of the JSP. This is similar to all
        types of "Server Page" technology. The advantagous of Server Page
        stuff over traditional CGI type tech is that web people can just
        throw everything into one HTML page instead of having to write a
        seperate piece of code on the server. As a result, if you know
        servlets, you already know JSP.
        [ reformatted - motd formatting daemon ]
        \_ Servlets/JSPs are techniques for handling HTTP requests. EJB is
           an architecture for distributed object systems. J2EE includes
           JSP/Servlets, EJB, and other things like JMS (architecture/api
           for messaging middleware).
2001/9/6 [Computer/SW/Languages/Web, Computer/SW/Unix] UID:22325 Activity:nil
9/5     DEADBEEF, CAFEBABE, what else.
        \_ D000B015 --pld
        \_  grep '^[a-fo]*$' /usr/share/dict/words   -- misha
            \_ grep -i '^[a-foizsg]*$' /usr/share/dict/words | tr \
               '[a-foOiIzZsSgG]' '[A-F0011225599]'   -alexf&&officehosers
               \_ [] and '' are not needed for tr. -- 0XCF31337
               \_ well if you're gonna go that far you might as well add
                  in the '7' == 'T'... personally I wouldn't go beyond 0,1,5.
                  this problem is not complete until you compile a list of all
                  8-letter combinations.
                  \_ sorry all, I'm dumb... what are we looking for here?
        \_ ABEDBABE
2001/7/27-28 [Computer/SW/Languages/Web] UID:21973 Activity:high
7/27    So what do people here think of Tomcat/Velocity for web application
        development?  Is there a future in it?  I'm looking for something
        more useful than PHP and something that's not Perl.     -randal
        \_ If you are going to go the Tomcat route, I think it is
           worthwhile taking a look at Struts. JSP is nasty but Struts
           makes it somewhat usable. -payam
           \_ What's wrong with traditional Servlets?
              \_ Separation of the front-end design from the back-end
                 logic is usually considered a good thing.
                 \_ thank you for not capitalizing "good thing"
                 \_ And you can't do this using Servlets because...?
                    \_ Because I'm loath to allow designers to start
                       mucking around with .java files and build scripts.
                       From my experience, it's just too foreign for your
                       average designmonkey. JSP/php/blah files
                       at least look like normal HTML. Plus, today
                       there is reasonable tool support for designers to use.
                       \_ Designers? You mean the artists don't you. The
                          ones who talk about flows and usability and look
                          and feel. My experience has been that we just
                          end up rewriting thier shit anyway. I just use
                          them for icons, style sheets and proofreading.
                          Its all thier english degrees are good for anyway.
                          \_ yeah, you certainly need people to proof-read
                             your stuff.  It's spelled "their," and "it's" is
                             the contraction for which you're looking.  but
                             with all due respect, coders generally don't
                             seem to be good authorities on usability either.
        \_ JSP is evil. Velocity is Perlish (ergo crap). Use the real thing:
                http://freemarker.sourceforge.net
2001/7/24-25 [Computer/SW/Database, Computer/SW/Languages/Web] UID:21929 Activity:high
7/24    I was told that Broadvision AppServer cost $1 million a pop.  That's
        crazy.  I'm considering buying MS IIS + SQL + ASP programming to do
        the small b2b ecommerce site. It's the cheapest solution I've found
        so far.  I'm still open for a solaris solution though.  Anything
        equivalent in unix land that cost less than $1000?
        \_ Apache + MySQL + PHP is equivalent to IIS+SQL+ASP, and it's
           all free.  -tom
           \_ similarly; solaris-x86 +apache+mysql+php: still free.
        \_ intershop not do what you want?
           \_ I tend not to buy from companies whose stock is trading around
              1 dollar.  Where am I going to get the support if I buy?  At
              least if I use freeware I know that I'm getting what I paid for.
              which is nothing!
                \_ I agree with you about the freeware part, but Intershop
                   is a fairly decent product, and the stock price in this
                   case is completely irrelevant.  -John
        \_ Look into OpenACS... its a toolkit built on AOLserver +
           PostgreSQL. AOLserver uses Tcl for scripting and, of course,
           its all open source. - rory
        \_ ok.  BV is a little expensive.  for your small site, they will
           probably sell it to you for about $200k.  if cheap is what you
           want, then i second apache + mysql + php. -uctt
           \_ the company is not a dotcom and they don't depend on their web
              site for revenue generation.  They need a web site for automation
              and cost reduction.  $200K is the annual salary of a good
              designer.  gimme a break!  I think I will look into mySQL and
              PHP. Thanks guys!
        \_ Jakarta Tomcat + Jakarta Struts + Apache + Postgres.
        \_ Apache + mod_ssl + mod_perl + Mason + Postgres
        \_ yah!  yermom!
2001/7/18 [Computer/SW/WWW/Server, Computer/SW/Languages/Web] UID:21845 Activity:high
7/19    I have a mysterious problem with a cgi program.  It was working
        well.  Then, I moved it to a different computer.  Now, some of the
        screens will give 500: Internal... errors, but will work after
        hitting reload several times.  What kind of server (apache)
        misconfiguration could cause a program to work only part of the
        time, given the same input/state?  I'm mystified.
        \_ Possibly you moved it to a machine that's behind a load balancer,
           and you're only getting your machine 1 out of N trials?
           \_ There is only one machine, but I have been wondering if
              it is making a difference which of the apache child
              processes handles the request.
                \_ there are a million things that could be wrong.  Check
                   the apache error logs.  -tom
                   \_ Tried to do that, but logs have been intermittent.
                      We have mod_cgi, and a ScriptLog directive.  Many
                      errors don't produce anything for the %response
                      or the %stderr sections.  So, all I get is the
                      request, and an entry in error_log that says
                      "Premature end of script headers."
                      \_perhaps set up an http proxy to view what's
                      happening, or send the GET request yourself via
                      telnet...
                      \_ Do you have mod_perl enabled?  You may be stepping
                         on variables.  I'd disable ScriptLog, it's really
                         not intended for production environments.  Check
                         your suexec log if you have suexec enabled (and you
                         should).  -tom
        \_ race condition
2001/7/14-16 [Computer/SW/Languages/Web] UID:21802 Activity:very high
7/14  bay area jobless rate stands at 4.2.
        \_ Sounds like some of the english majors who are expert
           coders in vbscript still have jobs or have managed to
           get employement in their main field of expertise, food
           service.
           \_ I don't think I've every heard the words "expert" and
              "vbscript coders" used in the same sentence before.
      \_ [deleted for obvious trollishness]
           \_ [ restored (sortof) for humor value ]
                 wireless 3g broadband b2b web portal architecture
                 leveraging opensource internet technologies such
                 as xml, jsp, servlet, vbscript, active-x, cgi, html,
                 soap, wap, ldap, asp and linsux for enabling synergized
                 highly available 24 by 7 interbusiness commerce in
                 the emergent online global village's bazzar?
           \_ [ restored (sort of) for humor value ]
        \_ I guess the english majors who are expert vbscript still
           have jobs or have quickly converted from the "high-tech"
           or "internet sector" to a sector of the job market they
                 ldap, asp, perl, ssl, ipv6 and linsux for enabling
                 highly available 24 by 7 e-commerce business and
                 customer relationship synergies in the new economy's
                 emergent online borderless global villages' bazzar
                 and marketplace?
                 Where have you been since 1996? Hiding in the great
                 unexplored eastern darks of africa? Grad school?
        \_ [deleted for obvious trollishness]
           are better qualified for: "food service".
           \_ I'm never seend "expert" and vbscript used in the
              same sentence.
              \_ You never had to deal with "entreprenuers" who were
                 developing a scalable clustered worldwide distributed
                 wireless 3g broadband b2b, c2b, b2c and c2c web
                 portal architecture leveraging proprietary opensource
                 microsoft internet technologies such as xml, jsp,
                 ldap, asp, perl, ipv6 and linsux for enabling highly
                 servlet, vbscript, active-x, cgi, html, soap, wap,
                 ldap, asp, perl, ipv6 and linux for enabling highly
                 available 24 by 7 e-commerce business and customer
                 relationship synergies in the new economy's emergent
                 online borderless global villages' bazaar and
                 marketplace?
                 \_ Whoever wrote this: you're a genius!
               \_ That's you... right, geordan?
                  \_ Sadly, no.  I wasn't able to leverage a scalable,
                     future-proof component-based architecture for this
                     time-critical opportunity.  -geordan
2001/7/12 [Computer/SW/Languages/Perl, Computer/SW/Languages/Web] UID:21779 Activity:nil
7/11    who offers classes on PHP in the east bay area?  work is paying.
        \_ take the money and go get some cheap whores... why would you
           want to take a PHP class?
           \_ d00d! "cheap"?! do you realize how much a "PHP class" is likely
              to cost? this'd cover an all-night orgy with half a dozen
              top-notch professionals...
        \_ Don't bother.  If you know perl, you can learn PHP.  It's
           simpler, albeit with uglier syntax, and, IMHO, inferior.  If
           you don't know perl, learn it.  If you can't learn perl, you
           obviously have issues with functional programming languages,
           and won't be able to learn PHP.
           \_ Dude.  If Perl is a functional programming language then the
              Moon is made of green cheese.  Lambdas do not a functional
              language make.  Perl is about as procedural as they come.
              It's proud of it in fact.  Perl is evil.  Look at Ocaml if
              you want to know what Perl could have been if it was a good
              little language.
              \_ Hah!  Shows what *you* know!  You can do ANYTHING with perl!
                 even get yourself fired!!1!  err....hold on a second....
                 that came out wrong....
2001/7/11 [Computer/SW/Languages/Web] UID:21769 Activity:nil
7/12    Why is ASP so bad?
          An example of an ASP model- Yahoo Finance- This entire site is
        one big ASP application. You can login- load you stock portfolio-
        track its performance- host discussions- view data related to
        stocks
          Same goes for the bill pay.. same goes for the MyYahoo stuff..
        Yahoo has gone way beyond the portal to information- They give
        people the ability to Loadand Retrieve data using the ASP model.
        The whole ASP thing just got a bad name because a lot of broke
        dot coms lost their shirts persuing the ASP model- in particular
        related to the keyword ecommerce.  But in actuality the ASP model
        is far superior to anything (except for maybe the security
        aspect). The rollout costs are nil- the training costs are
        minimized- the ability to implement quick enhancements is there-
        If lets say- Ellison got his way with the network computer- we
        really would have a better operating environment as MSFT could go
        in real time and update the interface and release enhancements
        without having to bundle the entire package together.
          The Ecommerce ASP is still a multibillion dollar solution. Look
        at Ebay- ASP  model. SAP applications may as well be considered
        ASP now with all the http://MySAP.com integration they have. Just
        becuase we all don't use commerce one's or ariba's software
        doesn't mean it is a flawed idea- or bad technology.
2001/2/13 [Computer/SW/Languages/Web, Computer/SW/OS/FreeBSD] UID:20579 Activity:nil
2/12    We're Windoze weenies running Win2K for web serving, SMTP, and
        file serving.  We would like to put either OpenBSD or Red Hat
        Linux up and slowly migrate services here, including backup.
        The argument for OpenBSD is that, as newbies, we're less prone
        to suffer for security holes.  The argument for Red Hat is that
        it's widely supported, and we should learn how to secure it
        day by day anyway.  When all is said and done, which is
        better for our purposes?
        \_ I would run OpenBSD for SMTP and file sharing (I'm assuming
           you want SAMBA, but if you want NFS, OpenBSD supports v3,
           unlike LinSUX). You would probably be better off running
           LinSUX for web serving, since you can get nifty cool web
           stuff like PHP, ASP (yes M$ ASP is available on Linux,
           via a company called ChiliSoft AKA Cobalt AKA Sun), JSP,
           Servlets, FrontPage Extensions, etc. to run on LinSUX much
           easier than *BSD and Solaris.
           If you want a dedicated web serving appliance with LinSUX
           take a look at the Cobalt (AKA Sun) RaQ3/4, they are pretty
           cheap and do web stuff pretty well (all that nifty web stuff
           is pre-installed and configured (except JSP & Servlets) on
           the RaQs).
2000/12/12-13 [Computer/SW/Languages/Web] UID:20085 Activity:moderate
12/12   where can i buy a retractible metal baton thru mail order?
        \_ http://www.cutleryshoppe.com carries the ASP batons.
2000/11/14-15 [Computer/SW/Graphics, Computer/SW/Languages/Web] UID:19778 Activity:nil
11/14   Favorite Website:
        http://fatchicksinpartyhats.com : 1
        http://amihotornot.com : 2
        http://theonion.com :
        http://google.com :
        /.: 1
        http://www.csua.berkeley.edu/~psb : 1
        <DEAD>amigothornot.com<DEAD>: 1
        \_ <DEAD>www.amigothornot.com/r/?eid=HOE&key=WLFJH<DEAD>
                \_ Coming soon:  http://www.amigayornot.com
                                 http://www.amigeekornot.com
                                     \_ umm. it's, um, there already.
                                        \_ geek
                                 <DEAD>www.doihavealife.com<DEAD>
                                 <DEAD>www.amithepresidentornot.com<DEAD>
2000/10/31-11/1 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:19606 Activity:nil
10/30   22498 www     105   0   572K   504K RUN     39.6H 64.09% 64.09% httpd
        What's going on?
        \_ I told that streaming VRML porn was a bad idea!
        \_ that's just my infinite loop CGI script.  -fucker
2000/10/30-31 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:19599 Activity:moderate
10/29   Lets say I want to schedule a meeting with 30 people, not all of which
        use something like Outlook. Is there a cgi script or whatever that will
        let people just plug in their preferred times on a web page and have
        the tool pick the best time?
        \ http://evite.com
        \_ http://evite.com
                \_ No. Evite does not let your guests select which times
                   they are free and then calculate the best time.
                \_ Also, evite sells that database of your friend's email
                   addresses to spammers.  What kind of friend does that?
        \_ zaplets are pretty useful. Let's you schedule meetings through
           html/javascript in an email... automatically updates your email
           and lets you know when things change. <DEAD>www.firedrop.com<DEAD> (new name)
2000/8/15 [Computer/SW/Languages/Web] UID:18990 Activity:very high
8/14    Reviews of WebLogic?
        \_it's good but also check out iPlanet, IBM's Websphere,
          and ATG's Dynamo.  These are good too.
          \_ WebSphere Must DIE
                \_ Don't bother with iPlanet and Websphere if you want EJB 1.1
                   It is either WebLogic or Inprise (first tier) or
                   Silverstream and similar crap.
                   Orion/JBoss/Enhydra/whatever (second tier). Avoid PowerTier
                   Silverstream and similar crap. If you just want servlets
                   there are plenty of servlet containers out there besides
                   WebLogic.
        \_ yee haa!!!
        \_ A++.
        \_ valuation++
        \_ don't even consider anything else.
        \_
        \_ BLEAH!  --sysadmin who has to deal with the aftermath everyday
        \_ don't listen to what the sysadmin says.
                \_ Yeah, we just have to keep the shit running after you're
                   done coding for it, so when the black box dies and the
                   site is down for 72 hours while you're trying to get
                   emergency tech support from BEA, you'll remember to listen
                   to the sysadmin next time.  Typical coder monkey wearing
                   blinders on the highway.
                        \_ Ugh it's a process on a box that can't run away
                           with memory and if the application sucks, it's
                           really not up to the admin to deal with it.
                           \_ Let's see, it dies on it's own, it won't serve
                              but still answers the weblogic port, the cluster
                              code is a total cluster fuck, so to speak, and
                              the load balancing plugin for iplanet is total
                              garbage my dog could have written better in his
                              sleep in VB.  Any questions?  And oh yeah,
                              where'd you get the idea it isn't a sysadmin
                              problem if the site crashes?  I want a job at
                              your company.  -sysadmin
             \_ Umm, I am a sysadmin and now i'm worried, is it really more
                difficult to support than, say, DYNAMO? more buggy, etc? -top
                \_ Haven't touch dynamo so I can't compare but I can assure
                   you that weblogic sucks, that $17,000/cpu license sucks,
                   that the license prices are going up soon sucks, and that
                   my company is switching off weblogic ASAP.  That part
                   doesn't suck.  -sysadmin
                   \_ What are you using instead?
2000/8/10-11 [Computer/SW/Languages/Web] UID:18958 Activity:moderate
8/10    Does it really make sense that JSP / HTML / web weenies get paid
        more than core developers? It just doesn't make sense.
        \_ They usually don't.  If they do, you have every right to
           walk down to your HR/middle-manager's office and smack them
           around.  What gives you the right?  Tell them the soda users
           told you to do it.
           \_ Do you mean "they don't really make sense" or "they don't get
              paid more"?
              \_ What do you mean by "Do you mean...?" Are you talking
                 dollars or sense?
        \_ The job market gives you that right.  Polish resume and walk.  You
           work for stupid people.  If you stay then _they_ aren't the stupid
           ones....
2000/7/13-14 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web, Computer/SW/Unix] UID:18662 Activity:kinda low
7/13    How can I redirect a web page to another page automatically on
        loading?  I've checked lots of HTML guides and have seen this
        happen before (no CGI) but can't find the code
        \_ In <HEAD> section:
           <META HTTP-EQUIV="Refresh" CONTENT="0; URL=<DEAD>new-url/"<DEAD>
           Change 0 to N to delay by N seconds. This is a means of
           mimicking HTTP headers in HTML, and is not 2.0-standard, so
           may not be supported by some of the oldest browsers. Anything '96
           and up is more or less guaranteed to support it. -alexf
           \_  thanks!
                \_ You're better off with a server side redirect but meta-
                   refresh will work if you're stuck on geocities or some
                   other garbage site.
2000/7/5-6 [Computer/SW/OS/Windows, Computer/SW/Languages/Web] UID:18589 Activity:moderate 64%like:18584
7/5     Anybody understand today's dilbert?  I don't know what a "loofah" is.
        The dictionary meaning doesn't make sense to me in the context of the
        strip.

r/4     M$ Word question: I want to create two columns in a Word
        document and be able to paste in only side of the text
        and still be able to type in the other. Eg;

             text               comment
             text               comment
             text               comment

         -MS doofus
        \_ make a table.  -tom
           \_ I could do that, but if I want to paste an entire text
              I would have to clip and paste paragrpah by paragraph. Tedious
              but do able. -MS D
                \_ uh, what are you talking about?  you click in the cell,
                   and paste the whole text.  I just tried it, it works. -tom
                  \_ um...I think he wants to paste into an entire column,
                     not just one cell in a column.
                        \_ if the stuff is in an Excel spreadsheet it will
                           do that.  -tom
        \_ um... Format>Columns?  Or is that too easy?
        \_ learn MS Word Basic scripting language
        \_ How many times do i need to repeat this answer for all M$ questions:
           Download to UNIX machine. Create document columns.
           Upload to windows and import into M$ Word.
           \_ And to save some dufus the trouble of putting this, i'll go
              ahead and put: "But that's not easy for the Windows people
              in my office to use"
              \_ To which I'll go ahead and reply: "spend the 45 seconds
                 and make a CGI out of it"
                 \_ And then I have to support a friggin CGI and host forever.
                    To which I say, "No fucking thanks!"
                    \_ uh, if you don't want to support it, you don't have to.
        \_ ratbert's offering to be used as a scrubbing sponge. -goetz
           \_ Figures, goetz is the only one here who can understand English.
            \_loofah is actually Latin, derived from luffa.
              \_ in a manner of speaking. it's a 19th-century neologism.
        \_ "loofah" is a type of sponge -- it is actually the dried fiber
           of a squash-like fruit/vegetable. --chris
                \_ Hello Mrs. English Major, Self-Righteous Bitch
2000/7/4-5 [Computer/SW/Languages/Web, Computer/SW/Languages/Misc] UID:18581 Activity:nil
7/3     How does one tell a browser to use a specified stylesheet with a given
        xml doc?  I use <?xml-stylesheet type="text/xml" href="./style.xsl"?>
        but my browser (IE) still displays it in the default xml-only format.
        Does using a stylesheet require a DTD?
        \_ No, IE is just very finicky about your stylesheet and has poor
           error reporting- if your xsl is bad, it just won't display
           anything. You have to  specify the correct names space, and
           (probably) include some default templates to match for stuff
           that you otherwise wouldn't bother accounting for, for example:
           <xsl:template match="text()|@*">
                <xsl:value-of select="."/>
           </xsl:template>
           see also
        http://metalab.unc.edu/xml/books/bible/updates/14.html#Default
        http://metalab.unc.edu/xml/books/bible/updates/14.html#Overview
2000/5/9-10 [Computer/SW/Languages/Web, Computer/SW/Unix] UID:18219 Activity:nil
5/8     Is there a Visual Basic equivalent to the UNIX system() function?
        \_ ShellExecute or CreateProcess - chiapet
        \_ Shell (command, windowmode)
          \_ Thanks.  Shell seems decent.  Is there any way for Shell
             to return the output to VB?
             \_ Redirect the output to a file and then have VB code read the
                file?  -- yuen
                \_ Yeah, I thought of that, but I was hoping there was
                   a cleaner way.
                   \_ Under windows???  pshaw!
                   \_ There isn't.  If you want you can use that Win32 function
                      that generates a unique filename.
2000/5/4-5 [Computer/SW/Languages/Web, Computer/SW/OS/Windows] UID:18166 Activity:high
4/33    My brother is a MCSE looking for a job in the LA area.  Anybody
        know of a good contracting agency in LA?  He's looking for an
        entry level NT admin position.  Thanks.
        \_ I love how people think that these certifications actually
           mean anything. "ooooh. He's Microsoft certified.  He must
           be competent."
           \_ Good Sodan, you are preaching to the choir.
        \_ I assume you mean LA as in Los Angeles rather than LA as in
           Louisiana?
           \_ Yes, (s)he really means the Lousiana area ...
           \_ Duh?  Spent more than a week in California?
              \_ giggle.
              \_ tee hee.
                 \_ wow.  Cherry Poptart on the motd.
        \_ LA sucks. the only ppl who live there are like lame ppl..
           oh right, MSCE certified...
           \_ help! i'm feeling, like, sooo lame today. but the sucking helps.
        \_ email your resume to kinney@csua i hear he's hiring asp/web
           ppl.
           \_ Whoah. Yu guyz doo ASP.  Dats RAD dude.  Ware Kan eye ketchup
              to da bleeeding edge man? -tjb
                \_ Quit defaming his once good name. He can do that himself.
                \_ Good name?  The day the playboy interview comes out and she
                   lists "Berkeley Computer Losers" under her 'turn ons' list,
                   is the day, uhm, uhm, well nothing, it would never happen.
2000/4/28-29 [Computer/SW/Languages/Web] UID:18135 Activity:nil
4/27    For those of you who are graduating (BS/MS/PHP), get $100
        certificate from Amazon by filling out the survey at
        <DEAD>survey.collegehire.com/survey/selectpage.html<DEAD>
        (You can get more if you refer)
        If you are not on collegehire's master graduating list, you will
        need to send in a resume + transcript to prove your eligibility.
        -YC (who filled out the form and then found out about the proof
         of status thingy)
        \_ It's a trick! Don't do it!
2000/4/7-9 [Computer/SW/Languages/Web] UID:17955 Activity:moderate
4/7     Looking for web discussion/bulletin board software.  Suggestions?
        \_ ed /etc/motd.public
        \_ php Phorum http://php.net - tpc
        \_ Source for Slashdot-style web boards is available --oj
        \_ Phorum http://php.net - tpc
        \_ <DEAD>www.ezboard.com<DEAD> may do the trick.
2000/4/5 [Computer/SW/Languages/Web] UID:17922 Activity:nil
4/5     apache running on RedHat 6.1,  CGI works and i'm trying to get
        a personal user cgi-bin set up.  Put it in the CONF file exactly
        like the original CGI was set up, restarted httpd.  Doesn't work.
        i.e. when you attempt to access the cgi file it just pops up as text.
        The EXACT same file works in the regular cgi-bin. It is world r-x.
        (and directory is world x)  Help.
        \_ Is it the default configuration?  You probably need to turn on
           Options ExecCGI
           for the directory in question.  And there are ways to configure
           all files ending in .cgi to be considered cgi.  --oj
           \_ Yeah, the config entry is...
                <Directory /home/cricket/public_html/cricket>
                AllowOverride None
                Options ExecCGI
                </Directory>
              (Allowing all .cgi files seems like a security problem).
        \_ use suexec, don't just allow user CGI.  -tom
2000/3/30-31 [Computer/SW/Languages/Web, Computer/HW] UID:17894 Activity:moderate
3/30    I want to use jsp on a production server, there are several
        implementations, does anyone have any recommendations?
        \_ IBM WebSphere.  Its one disadvantage is that it doesn't support
           jdk 1.2.
           \_ We use Netscape Enterprise Server 4.0 SP3 on Solaris and handle
              about 30M hits a month using JSP and servlets. But then again,
              I work for Netscape/AOL so we have to use it. -atom
            \_ what about opensource versions?
            \_ what about apache modules? -not that level of production
        \_ Bea Weblogic is the pretty much the coolest product I've seen.
           They support jdk2, and have a clustering server that you can throw
           as much hardware at as you want in order to scale.
2000/2/17-21 [Computer/SW/Languages/Web] UID:17540 Activity:low
2/17    What's the best way to learn ASP? What do I need to download?
        \_ ASP is *really* hard.  I suggest a class.
           \_ kidding right? just use javascript/vbscript, wrox books
               need IIS 4.0, nt server.. etc.
                \_ Any idea what NT Server costs?  You mean you're going to
                   use a pirated copy?  You can't mean that.
                   \_ guess I'm spoiled at work. have NT server
                        \_ Download option pack, latest service pack, install
                           IIS, buy ASP book for dummies.
        \_ forget it, that is only stuff people with klew like tjb and do
                \_ tjb does ASP?!  How can I catch up to the bleeding edge?!
        \_ ASP can be run with MS Personal Web Server.  It's mess to
         locate on their site (think it's part of an option pack) but it's
         free. The Wrox Beginning ASP book by Brian Francis seems pretty
         good. - cathyg
2000/1/27 [Computer/SW/Languages/Web] UID:17347 Activity:low
1/26    Anyone know of a tool to convert a page using ASP into a page using
        JSP (or vice versa)?  If so, a pointer would be appreciated.
        \_ Our company had to role their own for ASP-to-JSP and JSP-to-ASP.
           It's definitely non-trivial, and requires a little manual fixing
           afterwards.  I searched all over the place, but never found
           tools for this.
2000/1/13-14 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:17232 Activity:nil
1/12    Is there such thing as jsp-mode in Emacs?
        ||
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
(setq auto-mode-alist (cons '("\\.jsp$" . html-helper-mode) auto-mode-alist))
2000/1/4 [Computer/SW/Languages/Web] UID:17157 Activity:nil 76%like:17153
1/3     Do most/any ISP's allow you to set up Streaming Video?
        recommendations for ISP's that do (bonus if they also have PHP)
        Quality, support and ease of set up is more important than cost.
                                -crebbs
        \_ Co-lo.  Buy bandwidth, setup unix box.
2000/1/1 [Computer/SW/Languages/Web] UID:17141 Activity:high
01/01   Paramount's ASP page on next week's voyager says it airs in 1900
        http://www.startrekcontinuum.com/brf/quadrant.asp?ssector=VOYupcoming.asp
        \_ So what?  Are we going to be smothered in an endless stream of
           pointless reports of meaningless y2k display glitches on every
           www site out there big and small?  Let it go.
        \_ Not nearly as funny as the US Naval Observatory (supposedly US

           official time) showing 19100 [just guessing here -- someone forgot
           to RTFM on perl localtime?]

01/01
<motd-entry indentation=fucked>
Boredcast Message from 'coganman': Sat Jan  1 00:00:11 2000

DDDDDDDDDDDDD        IIIIIIIIIII  NNNNN         NNNNN      GGGGGGG        !!!
D::::::::::::DDD     I:::::::::I  N::::N        N:::N    GG:::::::GG     !:::!
D:::::::::::::::DD   I:::::::::I  N:::::N       N:::N   G:::::::::::G   !:::::!
DDD:::::DDDDD:::::D  IIII:::IIII  N::::::N      N:::N  G::::GGGGGG::G  !:::::::!
  D:::::D    D:::::D    I:::I     N:::::::N     N:::N  G:::G      G::G !:::::::!
  D:::::D     D:::::D   I:::I     N:::N::::N    N:::N  G:::G      GGGG !:::::::!
  D:::::D     D:::::D   I:::I     N:::NN::::N   N:::N  G:::G           !:::::::!
  D:::::D     D:::::D   I:::I     N:::N N::::N  N:::N  G:::G            !:::::!
  D:::::D     D:::::D   I:::I     N:::N  N::::N N:::N  G:::G    GGGGGG  !:::::!
  D:::::D     D:::::D   I:::I     N:::N   N::::NN:::N  G:::G    G::::G   !:::!
  D:::::D     D:::::D   I:::I     N:::N    N::::N:::N  G:::G    GGG::G   !:::!
  D:::::D    D:::::D    I:::I     N:::N     N:::::::N  G:::G      G::G    !!!
DDD:::::DDDDD:::::D  IIII:::IIII  N:::N      N::::::N  G::::GGGGGG::G
D:::::::::::::::DD   I:::::::::I  N:::N       N:::::N   G:::::::::::G     !!!
D::::::::::::DDD     I:::::::::I  N:::N        N::::N    GG:::::::GG     !:::!
DDDDDDDDDDDDD        IIIIIIIIIII  NNNNN         NNNNN      GGGGGGG        !!!
</motd-entry>
1999/12/8-9 [Computer/SW/Languages/Web, Computer/SW/Languages/Misc] UID:17026 Activity:nil
12/7    What is the best FREE search engine cgi script to search a small
        to mid size website?  and where can I get it?  thankx boy/gals.
        \_ actually there are probably more boys than gals here...so it's
           correct to say boys/gal.
        \_ http://www.htdig.org
1999/11/14-15 [Computer/SW/Languages/Java, Computer/SW/Languages/Web] UID:16873 Activity:nil
11/13   What is a *.jsp page? Is it one of those M$ asp, in Java?
        \_ server side java.  It can run on linux machines ...
1999/10/15-17 [Computer/SW/Languages/Web] UID:29931 Activity:nil
10/14   I am familiar with JSP/servlets my company is apparently
        trying php.  Any ideas on the disadvantages of
        php or should I just bite the bullet and learn something that may not
        even be as good
        \_ You should fear the unknown and resist change, so it'll be easier
           for a young, fresh, flexible grad to replace you in a year.
        \_ You sound biased without any information.  How do you know
           it's not going to be better?
1999/9/15 [Computer/SW/Languages/Web] UID:16518 Activity:very high
9/14    Why has soda's load been so high lately? I can't play games!
        \_ too many h0zers!
        \_ %0 %0 # run this and your shell will change to /csua/adm/bin/sorry
           \_ what does this do?
        \_ They should first learn Visual Basic, and then move onto ASP,
           and Visual C++.
        \_ Everything in here is wrong except the bits about
           "what", "play", and "many".
1999/9/14-15 [Computer/SW/Languages/Functional, Computer/SW/Languages/Web] UID:16512 Activity:very high 70%like:16522
9/13    I accidentally typed "mal" when I was going to run "mail".  What
        /csua/bin/wall y 2>&1 > /dev/null do?  Thx.  -- yuen
        \_ Huh huh... he said, "free pussy..."
         \_ uh no.  he said free cat.  reading isn't your strong point is it?
        \_ I'm bad!
              \_ He's an idiot.
        \_ i believe in the power of scheme!
        \_ "mal" = "bad" in French
               \_ I'm bad!
        \_ it's just a stupid shellscript. Read it and figure it out
           for yourself (it's harmless)
            \_ I just ran it and now I get all these broadcast messages on
               my screen.  How do I un-do mal?  I realize my mesg is y, but
               it was y before and I didn't get any broadcast message.  -- yuen
        \_ what does:
                /csua/bin/wall y 2>&1 > /dev/null
           do wrt redirection of output?
        \_ They should first learn Visual Basic, and then move onto ASP,
           interested (or annoyed), then she can pick some fundamentals which
           and Visual C++.
        \_ dri and dir should also be shell commands...
        \_ I'm bad!
        \_ it's just a stupid shellscript. Read it and figure it out
           for yourself (it's harmless)
               |_ type mesg n, wallall -n
               \_ To undo "mal":  Logout.  Never log back in.
               \_ man wallall
        \_ You need to tell the computer that you definitely want
           these messages off.  "chsh -s /usr/bin/yes".
1999/6/30-7/1 [Academia/Berkeley/CSUA, Computer/SW/Languages/Web] UID:16039 Activity:kinda low
6/30    Are cgi-scripts enabled on csua homepages?
        \_ Read 'man www'
        \_ Where is the man page located?  I need to add it onto my
           MANPATH...
                \_ unsetenv MANPATH and use the default
                   it will find all you need
1999/1/20-23 [Computer/SW/Languages/Web] UID:15263 Activity:kinda low
1/20    A quick question: how can I create a link in html or javascript
        so that whenever user clicks on the link, it will launch an
        executable program? One solution I have in mind is to wrap the
        executable into an ActiveX control. But is there any other way
        I can do it? Otherwise, how can I wrap the executable into a
        Active X control? I'm fairly new to ActiveX and VB, any help are
        appreciated. -bkong
        \_ So do you want a general solution or a windows only solution?
        \_ I'd be really scared if this was actually possible to do.  Think
           of all the webserver based security hacks you could do!
           \_ it's totally possible to do.  It's also incredibly dangerous.
                remember the "Outer-Limits" control that erases your hard
                drive and opens your CD-ROM, saying "here's your cup holder"?
                No joke.  It really happened.  It can happen.  Courtesy of
                MS OLE.
        \_ Wrap it inside any CGI program or a servlet.  Have your CGI
           program or servlet make a system call to the executable.  Your
           link will just point to the CGI/servlet wrapper.
           \_ I'd have to agree.  Writing server-side logic is the far superior
                solution.  Plus with servlets you can whip up a fast little
                program.  If you have the time, code yer CGI in C.  The
                NCSA has a bunch of publicly-available CGI libraries, all
                in ANSI/ISO C, very sexy.   -brain
                \_ and these run on the client machine and not the server?
                        \_ ummm... no.  You'll have to use hidden form fields,
                           Java Applets, or JavaScript to retain state.  It
                           need not be a very large client presence.  But
                           this gets you:
                                * runnability on older and non-MS browsers
                                * security
                                * smaller downloads than ActiveX components
                           ...but if you really need complex things running
                           (like too big for the client) then you can always
                           slap some Java IDL or Enterprise Java Beans
                           technology onto the application. The client gets
                           downloaded, makes a request to the component on the
                           server, which does all the work...   -brain
1998/11/10-11 [Computer/SW/Languages/Web] UID:14940 Activity:high
11/11   Any recommendations on a good web hosting service? (I already have
        dialup connection, just need a larger disk quota, CGI, and
        preferably, some mailing list capability.)
        \_ Try <DEAD>www.vectro.com<DEAD> - they're pretty competent & very cheap!
        \_ http://www.best.com $30. 25MB. shell/pop. cgi. unlimited mailing lists.
           multiple aliases. domain name capability. frontpage support. fast.
        \_ avoid http://prowebsite.com. my friend had nothing but problems with
           them, not the least that half the time she couldn't access her
           site. their servers run on SGI IRIX, which may explain it.
        \_ http://www.sandwich.net  Cheap, reliable, and scalable to your budget.
           Quote for the above from best net: $10.30/month for pop, cgi, unix
           shell, 25MB quota, full domain name.  $5.95/month per mailing list
           (with discounts for more than three.)  Check it out.
        \_ Time travelling?  Is it tomorrow yet???????? --xtine
           \_ It's been 11/10 all day today (Tuesday).
              \_ No; it was 11/11 this morning, then someone edited it to 11/10
1998/7/2-3 [Computer/SW/Security, Computer/SW/Languages/Web] UID:14289 Activity:nil
7/2     Microsoft security flaw. "::$DATA" behind any asp code will
         allow you to read source code.
        \_ So?  What about Microsoft isn't a security flaw?
1998/6/4-8 [Computer/SW/Database, Computer/SW/Security, Computer/SW/Languages/Web] UID:14175 Activity:moderate
6/4     Anyone have experience with http://best.com as web host provider? Good?
        Bad? Comparable alternatives?
        \_ Good.  No comparable alternatives.  -tom
        \_<DEAD>www.best.com/boxes/~indian<DEAD>
        \_ Best experience i've ever had with a web provider. They
                provide competent and beyond-the-call-of-duty technical
                support, FAQs, etc. -appel
                http://www.chaosium.com
                http://www.glorantha.com
           \_ I'm using it for two of my web sites (http://www.theil.com and
              http://www.docmisha.com and would definitely recommend it to
              other folks.  Haven't had such a good experience with their
              tech support though.   -genie
           \_ I plan on having several CGI scripts. They list a 1000cgi
              seconds/day. I highly doubt I'll reach that limit, but just
              so I have a reference, what type of program with how many
              uses per day would come close to hitting that quota?
                \_ run your CGI with "time foo.cgi" to see the amount of
                   CPU time it takes.  It's basically a non-issue unless
                   you're grabbing nude pictures out of a database. -tom
                   \_ Though wall-clock time on your system and wall-clock
                      time on their system may be rather different.
                      Is it an issue if you're grabbing pictures of clothed
                      people from a DB? :-)
                      \_ You're not charged for wall-clock time, you're charged
                         for CPU time.  They run boxes very similar to soda,
                         so CPU time here should be comparable.  It is unlikely
                         that you'll get enough hits to matter if you're
                         grabbing pictures of clothed people from a db.  -tom
1998/2/20-21 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:13707 Activity:high
2/20    Why have CGI scripts stopped working?  Now I am seeing "Premature end
        of script header" message in the error.log even though the same script
        was unchanged and was working fine just few days ago?  Has any
        configuration change been implemented on the Web server?
        \_ *chuckle*
          \_ recompile.
                \_ WILL SOMEONE PLEASE FIX .CGI EXECUTION? THANKS.
1998/2/18 [Computer/SW/Languages/Web] UID:13690 Activity:high
2/17    VB rules too much.  I am never going back to C++ programming
        again.  Fuck Java also.
        \_ VB sucks so horribly if you have to go beyond what little
                it provides
           \_ "VB rules" "VB sucks" mmm... intelligent arguing.
                \_ Play nice, children.
        \_ And it looked so much like you'd be fully recovered after that
           massive, traumatic brain injury.  A shame.
1998/2/13-14 [Computer/SW/WWW/Server, Computer/SW/Languages/Web] UID:13666 Activity:kinda low
2/13    So what's the new deal with soda webserver?  Total quota now = 10MB?
                                                        \_ No.  Use "quota -v"
        cgi works? How--cgi-bin directory, anything called .cgi, etc...?
                                                \_ *.cgi
        what else does webserver do?  Server-side includes, wrapping, logging?
                                        \_ Yes, no, yes.
1997/3/28 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:32104 Activity:nil
3/28    Anybody know of any free software that lets you create graphs for html
        pages on the fly?  e.g.  input some data from user and run the cgi
        program to create a graph from that.
        \_ xgraph
1995/1/5 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:31690 Activity:nil
1/3     Due to security considerations, CGI script execution has been
        turned off for general users on www.csua.  If you have a CGI
        script that you would like to use, send it to www@csua and
        it will be placed in a directory for execution.
2024/12/24 [General] UID:1000 Activity:popular
12/24   
Results 1 - 150 of 166   < 1 2 >
Berkeley CSUA MOTD:Computer:SW:Languages:Web:
.