RE: upgrading is just like installing -----Original Message----- From: rceejke@jidanni.org [mailto:rceejke@jidanni.org]  Sent: Tuesday, February 12, 2008 3:26 PM To: zqoqi@spamassassin.apache.org Subject: Re: upgrading is just like installing KB> User? SA is for administrators, not for users. Also, there is *nothing* KB> special about SA version numbers. J> Is too or else there wouldn't be a user_prefs file or instructions for J> installing non-root. And SA version numbers & aliases often need explaining, J> just like Debian package version numbers etc. Not all software version J> number systems are the same or else there would be several ways to enter a J> decimal password OK never mind. ---- Ummm .. sa version numbers?  Aliases?  Decimal passwords? Package explanations? .... HUH? (I think you are on the wrong list, or have to go back to school or something(?) Anyhow, yes , the user_prefs files are for user-based settings, but you are missing too many points for me to continue as it's just too silly to add more to the thread! :P cheers, jamie >From ccteb.xgddi@cs.put.poznan.pl  Sun Feb 24 10:30:12 2008 Content-Transfer-Encoding: 8bit From: Dawid Weiss  Precedence: list MIME-Version: 1.0 To: Carrot2-developers  References: 	<47B04B9D.50006@cs.put.poznan.pl> 	 In-Reply-To:  Date: Wed, 13 Feb 2008 08:31:58 +0100 Reply-To: Carrot2-developers  Message-ID: <47B29CEE.6060905@cs.put.poznan.pl> Content-Type: text/plain; charsetSubject: Re: [C2-devel] Changing Parameters into DCS with alternate Algorithm Message: 2 Jeff, The number of clusters you're getting will be hard to predict or tune --  remember these are search results clustering algorithms -- a lot of clusters  defies the purpose of the algorithm (because you want to compact search results,  not provide a whole new data set to analyze). But back to the point. STC doesn't have many tuning options. I would recommend looking at the browser  first, trying to tune the algorithm of your choice so that it returns good  results. Once you do this, look at the values of parameters and... fetch the  source code, because it's currently the only way to find out what you need. For STC, the parameters are in: StcParameters.java And constants you will need are defined in: StcConstants.java So, for example, the parameter for minimum base cluster score is  "stc.threshold.minBaseClusterScore". If you want DCS to use this parameter, you  will need to add it to your REST query. 1. Start the DCS with default STC algorithm: dcs -port 8000 2. Open REST interface description with a browser: http://localhost:8000/rest/ When you look at the HTML of this Web page, it mimics the HTTP parameters you  need to set programmatically (note the server accepts HTTP in  multipart/form-data only). So... to run a STC clustering with changed base cluster score, you would send a  REST query with the following parameters (I encode them here as  x-www-form-urlencoded with new lines for convenience): dcs.clusters.onlydcs.default.algorithmstc.threshold.minBaseClusterScore& c2stream That's it. Will work. Dawid Jeff G wrote: > Dawid, Thanks for the response, I know how to launch DCS, but haven't found > any examples on how to get better results, currently only getting a few > clusters for several hundred documents.  An example of how the "actual" > parameters for STC, i see the ones in teh browser, but not sure how to > translate those to actual inputs to DCS. >  > Thanks Jeff >  >  >  >  >> Date: Mon, 11 Feb 2008 14:20:29 +0100 From: ccteb.xgddi@cs.put.poznan.pl  >> To: gjxwrk0-yondqmvcrg@lists.sourceforge.net Subject: Re: [C2-devel] >> Changing Parameters into DCS with alternate Algorithm >>  >>  >> Hi Jeff, >>  >> When you start the DCS, open its REST service with a browser -- it contains >>  instructions and a description how to pass parameters. In short, you name >> the algorithm to use, any parameters this algorithm has must precede the >> data stream in the HTTP request (in case of the REST service). >>  >> D. >>  >>  >> Jeff G wrote: >>> Does anyone have any examples on how to use DCS with anything other than >>> the default algorithm? Or setting parameters using the Alternate >>> algorithm, specifically STC >>>  >>>  >>>  >>>  >>> Thanks >>>  >>>  >>> _________________________________________________________________ Connect >>> and share in new ways with Windows Live.  >>> http://www.windowslive.com/share.html?ocid>>>  >>>  >>>  >>> ------------------------------------------------------------------------ >>>  >>> ------------------------------------------------------------------------- >>>  This SF.net email is sponsored by: Microsoft Defy all challenges. >>> Microsoft(R) Visual Studio 2008.  >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>  >>>  >>> ------------------------------------------------------------------------ >>>  >>> _______________________________________________ Carrot2-developers >>> mailing list gjxwrk0-yondqmvcrg@lists.sourceforge.net  >>> https://lists.sourceforge.net/lists/listinfo/carrot2-developers >> -------------------------------------------------------------------------  >> This SF.net email is sponsored by: Microsoft Defy all challenges. >> Microsoft(R) Visual Studio 2008.  >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/  >> _______________________________________________ Carrot2-developers mailing >> list gjxwrk0-yondqmvcrg@lists.sourceforge.net  >> https://lists.sourceforge.net/lists/listinfo/carrot2-developers >  > _________________________________________________________________ Need to > know the score, the latest news, or you need your Hotmailï¿½ï¿½-get your "fix".  > http://www.msnmobilefix.com/Default.aspx >  >  > ------------------------------------------------------------------------ >  > -------------------------------------------------------------------------  > This SF.net email is sponsored by: Microsoft Defy all challenges. > Microsoft(R) Visual Studio 2008.  > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >  >  > ------------------------------------------------------------------------ >  > _______________________________________________ Carrot2-developers mailing > list gjxwrk0-yondqmvcrg@lists.sourceforge.net  > https://lists.sourceforge.net/lists/listinfo/carrot2-developers ----Content-Type: text/plain; charsetMIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --Content-Type: text/plain; charsetMIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: Digest Footer _______________________________________________ Carrot2-developers mailing list gjxwrk0-yondqmvcrg@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/carrot2-developers -- >From ahlg.rwhsv@gmail.com  Sun Feb 24 10:30:49 2008 Message-ID: <58ce48dc0802201446p28412ebfk60a130af830d1447@mail.gmail.com> Date: Wed, 20 Feb 2008 17:46:31 -0500 From: "Chas. Owens"  To: "Joseph L. Casale"  Subject: Re: Suppressing output from backtick operator Cc: "soiofdvxg@perl.org"  MIME-Version: 1.0 Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit On Wed, Feb 20, 2008 at 5:42 PM, Chas. Owens  wrote: snip >  This code also benefits from the fact that it only spawns on process snip That should be "one process" not "on process".  It is important, and I forgot to add this, to use waitpid* to reap the child process after an open3 unless you don't mind zombies. * http://perldoc.perl.org/functions/waitpid.html --  Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From jgthyod@ActiveNetwerx.com  Sun Feb 24 10:30:49 2008 Date: Wed, 20 Feb 2008 15:48:07 -0700 From: "Joseph L. Casale"  Subject: RE: Suppressing output from backtick operator To: "'soiofdvxg@perl.org'"  Message-id: <1C8CF1EA1A5B5940B81B0710B2A4C93850BB382BF5@an-ex.ActiveNetwerx.int> MIME-version: 1.0 Content-type: text/plain; charsetContent-transfer-encoding: quoted-printable > That should be "one process" not "on process".  It is important, and I > forgot to add this, to use waitpid* to reap the child process after an > open3 unless you don't mind zombies. > > * http://perldoc.perl.org/functions/waitpid.html Thank you Chas and yitzle jlc --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From zuroeq@users.sourceforge.net  Sun Feb 24 10:30:49 2008 Message-ID:  Date: Wed, 20 Feb 2008 17:50:08 -0500 From: yitzle  To: "Joseph L. Casale"  Subject: Re: Suppressing output from backtick operator Cc: "soiofdvxg@perl.org"  MIME-Version: 1.0 Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit Suggestion: rather than use egrep (which, as Chas points out, requires a new process - and ignoring his solution for a moment - sorry), it might make more sense (and increase portability) to move the RegEx parsing into Perl. my $var (Did I do this right? I'm not very familiar with grep) --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From ahlg.rwhsv@gmail.com  Sun Feb 24 10:30:49 2008 Message-ID: <58ce48dc0802201501j7b2a6743lbc5ba46fda96e896@mail.gmail.com> Date: Wed, 20 Feb 2008 18:01:18 -0500 From: "Chas. Owens"  To: yitzle  Subject: Re: Suppressing output from backtick operator Cc: "Joseph L. Casale" ,  	"soiofdvxg@perl.org"  MIME-Version: 1.0 Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit On Wed, Feb 20, 2008 at 5:50 PM, yitzle  wrote: snip >  my $var >  (Did I do this right? I'm not very familiar with grep) snip That is mostly correct.  You are using the grep function in scalar context, so it will return the number of items matched rather than the items themselves. You need a join to make it work the way it was intended.  Also, you don't use a comma after the block and the backticks should be terminated (which is why I like qx// better, it is easier to see) my $var  On a related note, my solution implements an egrep -v rather than an egrep.  It should have been my $var while (<$out>) {    next unless /This|That/;    $var .} --  Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From jgthyod@ActiveNetwerx.com  Sun Feb 24 10:30:49 2008 Date: Wed, 20 Feb 2008 16:34:05 -0700 From: "Joseph L. Casale"  Subject: RE: Suppressing output from backtick operator To: "soiofdvxg@perl.org"  Message-id: <1C8CF1EA1A5B5940B81B0710B2A4C93850BB382BF6@an-ex.ActiveNetwerx.int> MIME-version: 1.0 Content-type: text/plain; charsetContent-transfer-encoding: quoted-printable > Suggestion: rather than use egrep (which, as Chas points out, requires > a new process - and ignoring his solution for a moment - sorry), it > might make more sense (and increase portability) to move the RegEx > parsing into Perl. > > my $var = grep {/This|That/}, `cmd --arg1 --arg2; > (Did I do this right? I'm not very familiar with grep) Actually, I very quickly saw what I was doing was silly. I moved to something a little different for that portion: my $var = `cmd -arg`; if ($var =~ /(expr0|expr1|expr2|expr3)/) {         Do stuff; } This seemed to work! I was able to reuse the code for the other scenarios while only executing the system call once which was actually a lengthy resource intensive op. Probably a million other *and* better ways :) Thanks for the help guys! jlc --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From wwsddj@telus.net  Sun Feb 24 10:30:49 2008 Message-ID: <47BCCA94.8000009@telus.net> Date: Wed, 20 Feb 2008 16:49:24 -0800 From: "John W. Krahn"  MIME-Version: 1.0 To: Perl Beginners  Subject: Re: Printing text between two blank lines Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit Gunnar Hjalmarsson wrote: > obdulio santana wrote: >> Please let me know if everything is Ok. >> >> @l >> @nl >> map { print $l[$_] if ("$nl[$_ - 1]$nl[$_]$nl[$_ + 1]" eq "101" ) } (0 .. >> $#nl); >  > 1. It's no longer a tiny version. ;-) > 2. It generates a warning. Aren't you using strictures and warnings?? > 3. I'd use a foreach loop instead of map in void context. >  >     foreach ( 1 .. $#nl-1 ) { >         print $l[$_] if ("$nl[$_ - 1]$nl[$_]$nl[$_ + 1]" eq "101" ); >     } Or print the list returned from map: print map "$nl[$_-1]$nl[$_]$nl[$_+1]" eq '101' ? $l[$_] : (), 0 .. $#nl; John --  Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order.                            -- Larry Wall --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From sgvenmhrlbyhus@gmail.com  Sun Feb 24 10:30:49 2008 Message-ID:  Date: Thu, 21 Feb 2008 08:18:45 -0500 From: "obdulio santana"  To: "Perl Beginners"  Subject: Re: Printing text between two blank lines MIME-Version: 1.0 Content-Type: multipart/alternative;  	boundary ------Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit Content-Disposition: inline 2008/2/20, John W. Krahn : > > Gunnar Hjalmarsson wrote: > > obdulio santana wrote: > >> Please let me know if everything is Ok. > >> > >> @l > >> @nl > >> map { print $l[$_] if ("$nl[$_ - 1]$nl[$_]$nl[$_ + 1]" eq "101" ) } (0 > .. > >> $#nl); > > > > 1. It's no longer a tiny version. ;-) > > 2. It generates a warning. Aren't you using strictures and warnings?? > > 3. I'd use a foreach loop instead of map in void context. > > > >     foreach ( 1 .. $#nl-1 ) { > >         print $l[$_] if ("$nl[$_ - 1]$nl[$_]$nl[$_ + 1]" eq "101" ); > >     } > > > Or print the list returned from map: > > print map "$nl[$_-1]$nl[$_]$nl[$_+1]" eq '101' ? $l[$_] : (), 0 .. $#nl; > > Hi, ****************************************** use strict; use warnings; $_ s/^\\s*\\n(^.+\\n)(? __END__ maybe you prefer this tiny version with strict and warnings, yesterday's version was a rush variant,  ..  sorry but    this one is not so bad or, is it?:-) blah blah weather, sports blah ... just small talk Thanks you all live free or die ************************************************* ------ --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From uiaregi@gunnar.cc  Sun Feb 24 10:30:49 2008 Message-ID: <20080221153953.9861.qmail@lists.develooper.com> To: soiofdvxg@perl.org Date: Thu, 21 Feb 2008 16:39:19 +0100 From: Gunnar Hjalmarsson  MIME-Version: 1.0 Subject: Re: Printing text between two blank lines Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit obdulio santana wrote: >  > use strict; > use warnings; > $_ > s/^\\s*\\n(^.+\\n)(? >    this one >  > is not so bad or, is it?:-) Actually it's rather similar to some of the solutions that were posted  previously in this thread.  http://www.mail-archive.com/beginners%40perl.org/msg92134.html However, the s/// operator seems not to be the right tool. The m//  operator in a while loop is better.      print $1 while /^\\s*\\n(^.+\\n)(? --  Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From efzr.zix@gmail.com  Sun Feb 24 10:30:49 2008 Message-ID: <18c1e5f20802202231t6e0e7dc4m5a1e3d62c7918884@mail.gmail.com> Date: Thu, 21 Feb 2008 14:31:00 +0800 From: "J. Peng"  To: soiofdvxg@perl.org Subject: address translation MIME-Version: 1.0 Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit how to translate this mask to clear text form with perl? netmask 0xffffffff thanks. --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From wwsddj@telus.net  Sun Feb 24 10:30:49 2008 Message-ID: <47BD2846.4020901@telus.net> Date: Wed, 20 Feb 2008 23:29:10 -0800 From: "John W. Krahn"  MIME-Version: 1.0 To: Perl Beginners  Subject: Re: address translation Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit J. Peng wrote: > how to translate this mask to clear text form with perl? > netmask 0xffffffff If you mean an IP address netmask then 0xffffffff is an invalid netmask  because all the bits are 1. John --  Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order.                            -- Larry Wall --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename