Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'that?': 0.05; 'versions,': 0.05; 'column': 0.07; 'table.': 0.07; 'hostname': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tracing': 0.09; 'also:': 0.16; 'data...': 0.16; 'increment': 0.16; 'name).': 0.16; 'reboot': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'table;': 0.16; 'jan': 0.18; 'all,': 0.21; 'browsers': 0.22; 'trace': 0.22; 'dependent': 0.23; 'for?': 0.23; 'user.': 0.23; 'host': 0.24; 'appear': 0.26; 'skip:[ 10': 0.26; 'expand': 0.26; 'older': 0.27; 'fixed': 0.28; 'header:X -Complaints-To:1': 0.28; 'embed': 0.29; 'probably': 0.29; 'maybe': 0.29; 'connection': 0.30; 'fri,': 0.30; 'hosted': 0.30; 'checked': 0.30; 'primary': 0.30; 'located': 0.31; 'could': 0.32; 'page.': 0.33; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'auto': 0.35; 'table': 0.35; 'something': 0.35; 'next': 0.35; 'received:org': 0.36; 'really': 0.36; 'but': 0.36; "i'll": 0.36; 'charset:us-ascii': 0.36; 'operating': 0.36; 'does': 0.37; 'two': 0.37; 'why': 0.37; 'systems,': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'shows': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'most': 0.61; 'skip:a 40': 0.61; 'pays': 0.62; 'maximum': 0.63; 'different': 0.63; 'times': 0.63; 'visit': 0.64; 'webpage': 0.65; 'hours': 0.66; 'saving': 0.72; 'day': 0.73; '2013': 0.84; 'dhcp': 0.84; 'domain,': 0.84; 'dsl': 0.84; 'me).': 0.84; 'route': 0.84; 'dennis': 0.91; 'visits': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: mysql solution Date: Fri, 25 Jan 2013 16:56:44 -0500 Organization: > Bestiaria Support Staff < References: <88306c73-dfa2-44e1-ab0c-d90dba05be1c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-16-247.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 58 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359151015 news.xs4all.nl 6951 [2001:888:2000:d::a6]:41133 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37695 On Fri, 25 Jan 2013 07:43:53 -0800 (PST), Ferrous Cranus declaimed the following in gmane.comp.python.general: > > what do you mean by that? > > " Furthermore, your "visitors" table is only saving the most recent > "useros" and "browser" data... Is that what you really want -- or do you > want to log ALL users that visit the page. " > > If the same hostname visits my webpage multiple times i only update the userOS, bwoswer, date information. > And what use will you make of that? Consider that "hostname" is not something unique to a user. Heck, unless on pays for a fixed domain, a DHCP system "hostname" can change from one user to another every day (common DHCP "lease" is 24 hours; every 24 hours a DSL connection renegotiates an IP number, and many ISPs embed that IP number into a DNS name). E:\UserData\Wulfraed\My Documents>tracert 76.249.16.247 Tracing route to adsl-76-249-16-247.dsl.klmzmi.sbcglobal.net [76.249.16.247] over a maximum of 30 hops: 1 2 ms <1 ms <1 ms 192.168.2.1 2 1 ms 1 ms 1 ms adsl-76-249-16-247.dsl.klmzmi.sbcglobal.net [76.249.16.247] Trace complete. If I reboot my DSL modem, I'll probably get a different IP number, and hence a different host name (lovely, I pay for Earthlink DSL in Grand Rapids, but they apparently are hosted on old AT&T [SBC] servers located in Kalamazoo). Note how the IP number is in the name (I checked my DSL modem to find the IP number assigned to me). Also, with NAT, I could start up my two laptops and my Nook HD+ browsers -- giving three different operating systems, three browser versions, etc. and all will appear to be from the same hostname... To me, the result is meaningless -- it only shows the most recent access but no history. > What do you mean? > > And also: why does the table 'visitors' ahs to have an auto increment column ID what for? Habbit -- I /always/ create an auto-increment primary key for a table; after all, maybe next year you expand the system and now need a way to reference the older table. Better to have a unique primary key that is not dependent upon data fields available for use. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/