php-general Digest 12 Jun 2012 10:30:48 -0000 Issue 7850

Topics (messages 318211 through 318215):

looking for a PHP texte indexer
        318211 by: Mihamina Rakotomandimby
        318212 by: marco.behnke.biz

Re: Which workstation????
        318213 by: Simon Schick

Re: show info from mysql db
        318214 by: Jim Lucas

Problem with ssh2 public/private key connecting
        318215 by: Radek Krejča

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Hi all,

I have a small job ad website, where some poster tend to flood with the same ad, just in order to be on top of the recent sort.

To perturb the strict duplication detection (yes it's weak), they add one or two words that makes difference.

The result is a duplication of many ads.

I would like to search for duplicates by looking for ads with 80%-90% same words and decide they're the same, so that I can group them.

Of course, putting a limiting mecanism or even a moderation is scheduled, but I want to process existing first.

I dont want to use MySQL for indexing, I believe text indexers are best tools for this: Am I wrong?

What would you suggest me to process and lookup for duplicates in that situation?

--
RMA.

--- End Message ---
--- Begin Message ---

Mihamina Rakotomandimby <miham...@rktmb.org> hat am 11. Juni 2012 um 11:12
geschrieben:

> Hi all,
>
> I have a small job ad website, where some poster tend to flood with the
> same ad, just in order to be on top of the recent sort.
>
> To perturb the strict duplication detection (yes it's weak), they add
> one or two words that makes difference.
>
> The result is a duplication of many ads.
>
> I would like to search for duplicates by looking for ads with 80%-90%
> same words and decide they're the same, so that I can group them.
>
> Of course, putting a limiting mecanism or even a moderation is
> scheduled, but I want to process existing first.
>
> I dont want to use MySQL for indexing, I believe text indexers are best
> tools for this: Am I wrong?
>
> What would you suggest me to process and lookup for duplicates in that
> situation?

Maybe take a look at

http://de.php.net/manual/de/function.similar-text.php
http://de.php.net/manual/de/function.levenshtein.php


>
> --
> RMA.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ma...@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz

--- End Message ---
--- Begin Message ---
Hi, All

There was an interesting talk on the PHP Conference Spring 2012:
Concepts of Success: Choose Your Framework
http://phpconference.com/2012spring/keynotes#session-3

If somebody has been there, please write some notes ... I personally
haven't had the time to join but am quite interested, what the developer of
the frameworks say about their own systems in comparison to others. Pro and
(more interesting) Contra arguments.

The only stuff I found is in german and quite limited:
http://it-republik.de/php/artikel/FLOW3-Zend-Symfony-Auf-der-Suche-nach-dem-besten-Framework-4826.html

Bye
Simon

On Tue, Jun 5, 2012 at 2:22 PM, Simon Schick <simonsimc...@googlemail.com>wrote:

> Hi, Farzan
>
> I do not really get your point of confusion ...
>
> What you've posted here are tools/frameworks that do not to the same stuff
> at all, yes you could even use all without missing something ...
>
> cakephp
> .. is a full-stack PHP-Framework. Yes, I have to say that there's quite a
> bunch of full-stack frameworks in PHP you could choose and I myself would
> recommend one by knowing how much experience you have in PHP :)
>
> smarty
> .. is a template-engine for PHP. If you want to use smarty, twig, php
> itself or another library as template-engine is up to you. Using a
> template-engine for some programmers I know just feel like a better
> separation between the view and the controler/model (search for
> ModelViewControler if you don't know what I mean here).
>
> netbeans
> .. is an IDE where you can develop with. I prefer to use PhpStorm, others
> use EclipsePDT, Notepad++ or even the basic editor of windows. This is just
> about syntax-highlight, code-completion and other things helping you to
> develop your code.
>
> Hope that helps :)
>
> Bye
> Simon
>
>
> On Tue, Jun 5, 2012 at 2:10 PM, Farzan Dalaee <farzan.dal...@gmail.com>wrote:
>
>> hi guys
>> i really confuse by choosing the best work station for php ( cakephp ,
>> smarty , net bean , ... ) , please give me some advisdes.
>> and please tell why which one is better,
>> tnx
>> best regards farzan
>
>
>

--- End Message ---
--- Begin Message ---
On 06/10/2012 09:50 AM, Tim Dunphy wrote:
You had been keeping the password secret, but it looks like you
accidentally leaked it, so a replacement might be in order :)


oh wow.. gotta hate when you do that!!! on it!


Glad you got it fixed. Typos can be little buggers to find sometimes.

me too.. fell back to the old 'echo hello' test strategy .. have to
try to remember that strategy before i go running for help.. :)

FYI: When developing, make sure to have "error_reporting = E_ALL" and "display_errors = On" or be sure to tail your error_log file.


tim

On Sun, Jun 10, 2012 at 12:15 PM, Adam Richardson<simples...@gmail.com>  wrote:
On Sun, Jun 10, 2012 at 8:25 AM, Tim Dunphy<bluethu...@gmail.com>  wrote:
$dbc = mysqli_connect('127.0.0.1','admin',secret','trek_db')
     or die ('Could not connect to database');

used to be...

$dbc = mysqli_conect('127.0.0.1','admin','Duk30fZh0u','trek_db')
     or die ('Could not connect to database');

You had been keeping the password secret, but it looks like you
accidentally leaked it, so a replacement might be in order :)

Glad you got it fixed. Typos can be little buggers to find sometimes.

Adam

--
Nephtali:  A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com





--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

--- End Message ---
--- Begin Message ---
Hi,

I have problem with ssh2_Auth_Pubkey_File. I have one server for
connecting to others. On all of theese is FreeBSD installed, but
different versions.

I am using dsa keys for connecting. From command line works everything
fine (with using the same key files). But from php I have problem - a
few servers with new version of FreeBSD dont accept connection.

On machine where is php installed I have this message in php errorlog:

[Tue Jun 12 12:15:37 2012] [error] [client ::1] PHP Warning:
ssh2_auth_pubkey_file(): Authentication failed for useruser using public
key: Username/PublicKey combination invalid in /usr/local/www/pokus.php
on line 119

and in auth.log on remote machine I have:

Jun 12 12:15:37 remote10 sshd[14012]: Did not receive identification
string from 92.62.224.xx

I thing, that problem is not in script - I am able to connect to some
machines. But where could be a problem, I dont know.

Here are methods, which I have to tried:

        #private $_METHODS              = Array('hostkey' => 'ssh-dss');
        private $_METHODS               = Array('kex' =>
'diffie-hellman-group1-sha1','hostkey' => 'ssh-dss','client_to_server'
=> Array('crypt' => '3des-cbc','mac' => 'hmac-md5','comp' =>
'none'),'server_to_client' => Array('crypt' => '3des-cbc','mac' =>
'hmac-md5','comp' => 'none'));

....
        private function Set_Connection()
        {
                $this->_connection = ssh2_Connect($this->_device_hostname,
$this->_device_port, $this->_METHODS);
                if(!$this->_connection)
                {
                        $this->_connection = NULL;
                        return false;
                }
                
                if(!ssh2_Auth_Pubkey_File($this->_connection, $this->_USER,
$this->_PUBLIC_KEY_PATH, $this->_PRIVATE_KEY_PATH))
                {
                        $this->_connection = NULL;
                        return false;
                }
                
                return true;
        }

Thank you for any suggestion.
Radek

--- End Message ---

Reply via email to